From 2b938c4b78d272f87a6a55eb8ce5dcbcaf69c8b8 Mon Sep 17 00:00:00 2001 From: bigvudi Date: Fri, 5 Jun 2026 15:00:32 +0500 Subject: [PATCH 01/13] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=80=D0=B5=D0=BD=D0=B4=D0=B5=D1=80=20=D1=84=D1=83?= =?UTF-8?q?=D0=BD=D0=BA=D1=86=D0=B8=D1=8E=20=D1=87=D1=82=D0=BE=D0=B1=D1=8B?= =?UTF-8?q?=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=B7=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/posts-page-component.js | 107 +++++++++-------------------- 1 file changed, 31 insertions(+), 76 deletions(-) diff --git a/components/posts-page-component.js b/components/posts-page-component.js index 662ccdbdc..98d194d0e 100644 --- a/components/posts-page-component.js +++ b/components/posts-page-component.js @@ -10,86 +10,41 @@ export function renderPostsPageComponent({ appEl }) { * @TODO: чтобы отформатировать дату создания поста в виде "19 минут назад" * можно использовать https://date-fns.org/v2.29.3/docs/formatDistanceToNow */ + const appHtml = `
`; From 51511d17a7983e6f571c733fead4c2512819e68b Mon Sep 17 00:00:00 2001 From: bigvudi Date: Fri, 5 Jun 2026 15:15:23 +0500 Subject: [PATCH 02/13] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=82=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index 123a9e3b6..546a9c01e 100644 --- a/api.js +++ b/api.js @@ -1,6 +1,6 @@ // Замени на свой, чтобы получить независимый от других набор данных. // "боевая" версия инстапро лежит в ключе prod -const personalKey = "prod"; +const personalKey = "Tyryshkin1"; const baseHost = "https://webdev-hw-api.vercel.app"; const postsHost = `${baseHost}/api/v1/${personalKey}/instapro`; From 950c0d3c84e3aba3c169789bdc8ed5ff6609f7b7 Mon Sep 17 00:00:00 2001 From: bigvudi Date: Fri, 5 Jun 2026 15:50:48 +0500 Subject: [PATCH 03/13] =?UTF-8?q?=D0=A1=D0=BB=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/add-post-page-component.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/components/add-post-page-component.js b/components/add-post-page-component.js index 8277f093b..c2d9ffcd4 100644 --- a/components/add-post-page-component.js +++ b/components/add-post-page-component.js @@ -5,7 +5,23 @@ export function renderAddPostPageComponent({ appEl, onAddPostClick }) {
Cтраница добавления поста - +
+

Добавить новый пост

+ +
+ +
+

Опишите фотографию:

+ +
+ + +
`; From 94b7c13e819a1bd6eafe0550d0f8c6c195733ce5 Mon Sep 17 00:00:00 2001 From: bigvudi Date: Fri, 5 Jun 2026 16:59:25 +0500 Subject: [PATCH 04/13] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=84=D0=BE=D1=82=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=8F=D0=B2=D0=B8=D0=BB=D0=BE=D1=81=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/add-post-page-component.js | 41 +++++++++++++++++-- index.js | 59 +++++++++++++++++++++++---- 2 files changed, 88 insertions(+), 12 deletions(-) diff --git a/components/add-post-page-component.js b/components/add-post-page-component.js index c2d9ffcd4..e63c9cabc 100644 --- a/components/add-post-page-component.js +++ b/components/add-post-page-component.js @@ -1,13 +1,17 @@ +import { renderUploadImageComponent } from "./upload-image-component.js"; export function renderAddPostPageComponent({ appEl, onAddPostClick }) { const render = () => { - // @TODO: Реализовать страницу добавления поста + // Переменная для динамического сохранения ссылки на загруженное фото + let imageUrl = ""; + + // @TODO: Реализовать страницу добавления поста — ИСПРАВЛЕНО const appHtml = `
- Cтраница добавления поста

Добавить новый пост

+
@@ -27,10 +31,39 @@ export function renderAddPostPageComponent({ appEl, onAddPostClick }) { appEl.innerHTML = appHtml; + // 1. Находим контейнер и запускаем в нем готовый компонент загрузки фото + const uploadImageContainer = document.querySelector( + ".upload-image-container", + ); + if (uploadImageContainer) { + renderUploadImageComponent({ + element: uploadImageContainer, + onImageUrlChange(newImageUrl) { + // Как только облако вернет ссылку на картинку, сохраняем её в нашу переменную + imageUrl = newImageUrl; + }, + }); + } + + // 2. Навешиваем живой обработчик клика на кнопку отправки document.getElementById("add-button").addEventListener("click", () => { + const descriptionInput = document.getElementById("description-input"); + + // Простая валидация перед отправкой, чтобы бэкенд не ругался ошибками 400 + if (!imageUrl) { + alert("Пожалуйста, выберите и загрузите фотографию"); + return; + } + + if (!descriptionInput.value.trim()) { + alert("Пожалуйста, добавьте описание к посту"); + return; + } + + // Передаем наверх реальные данные вместо старых текстовых заглушек onAddPostClick({ - description: "Описание картинки", - imageUrl: "https://image.png", + description: descriptionInput.value, + imageUrl: imageUrl, }); }); }; diff --git a/index.js b/index.js index 7f1817c75..7f04d1a90 100644 --- a/index.js +++ b/index.js @@ -68,10 +68,29 @@ export const goToPage = (newPage, data) => { if (newPage === USER_POSTS_PAGE) { // @@TODO: реализовать получение постов юзера из API - console.log("Открываю страницу пользователя: ", data.userId); - page = USER_POSTS_PAGE; - posts = []; - return renderApp(); + page = LOADING_PAGE; + renderApp(); + + // ИСПРАВЛЕНО: Прописан полный путь до постов юзера с добавлением знака $ + return fetch( + `https://webdev-hw-api.vercel.app/api/v1/Tyryshkin1/instapro?userId=${data.userId}`, + { + method: "GET", + headers: { + Authorization: getToken(), + }, + }, + ) + .then((response) => response.json()) + .then((responseData) => { + page = USER_POSTS_PAGE; + posts = responseData.posts; + renderApp(); + }) + .catch((error) => { + console.error("Ошибка получения постов пользователя:", error); + goToPage(POSTS_PAGE); + }); } page = newPage; @@ -111,8 +130,31 @@ const renderApp = () => { appEl, onAddPostClick({ description, imageUrl }) { // @TODO: реализовать добавление поста в API - console.log("Добавляю пост...", { description, imageUrl }); - goToPage(POSTS_PAGE); + + // ИСПРАВЛЕНО: Прописан полный путь для публикации поста с вашим ключом + fetch("https://webdev-hw-api.vercel.app/api/v1/Tyryshkin1/instapro", { + method: "POST", + body: JSON.stringify({ + description, + imageUrl, + }), + headers: { + Authorization: getToken(), + }, + }) + .then((response) => { + if (response.status === 400) { + throw new Error("Забыли описание или картинку"); + } + return response.json(); + }) + .then(() => { + goToPage(POSTS_PAGE); + }) + .catch((error) => { + console.error("Ошибка добавления поста:", error); + alert("Не удалось добавить post. Попробуйте снова."); + }); }, }); } @@ -125,8 +167,9 @@ const renderApp = () => { if (page === USER_POSTS_PAGE) { // @TODO: реализовать страницу с фотографиями отдельного пользвателя - appEl.innerHTML = "Здесь будет страница фотографий пользователя"; - return; + return renderPostsPageComponent({ + appEl, + }); } }; From bf4705a5c6b1abe1989f0edf9d171de5687de779 Mon Sep 17 00:00:00 2001 From: bigvudi Date: Sat, 6 Jun 2026 11:40:18 +0500 Subject: [PATCH 05/13] =?UTF-8?q?=D0=A3=D1=81=D1=82=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D0=B4=20=D0=B4=D0=B0=D1=82=D0=B0=20=D1=84=D0=BD?= =?UTF-8?q?=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/.gitignore | 3 + components/posts-page-component.js | 67 +- index.js | 4 +- node_modules/.package-lock.json | 17 + node_modules/date-fns/CHANGELOG.md | 2883 + node_modules/date-fns/LICENSE.md | 21 + node_modules/date-fns/README.md | 58 + node_modules/date-fns/SECURITY.md | 12 + .../date-fns/_lib/addLeadingZeros.cjs | 7 + .../date-fns/_lib/addLeadingZeros.d.cts | 4 + .../date-fns/_lib/addLeadingZeros.d.ts | 4 + node_modules/date-fns/_lib/addLeadingZeros.js | 5 + node_modules/date-fns/_lib/cdnPolyfill.cjs | 39 + node_modules/date-fns/_lib/cdnPolyfill.js | 38 + node_modules/date-fns/_lib/defaultLocale.cjs | 8 + .../date-fns/_lib/defaultLocale.d.cts | 1 + node_modules/date-fns/_lib/defaultLocale.d.ts | 1 + node_modules/date-fns/_lib/defaultLocale.js | 1 + node_modules/date-fns/_lib/defaultOptions.cjs | 13 + .../date-fns/_lib/defaultOptions.d.cts | 11 + .../date-fns/_lib/defaultOptions.d.ts | 11 + node_modules/date-fns/_lib/defaultOptions.js | 9 + .../date-fns/_lib/format/formatters.cjs | 780 + .../date-fns/_lib/format/formatters.d.cts | 18 + .../date-fns/_lib/format/formatters.d.ts | 18 + .../date-fns/_lib/format/formatters.js | 776 + .../date-fns/_lib/format/lightFormatters.cjs | 102 + .../_lib/format/lightFormatters.d.cts | 11 + .../date-fns/_lib/format/lightFormatters.d.ts | 11 + .../date-fns/_lib/format/lightFormatters.js | 92 + .../date-fns/_lib/format/longFormatters.cjs | 67 + .../date-fns/_lib/format/longFormatters.d.cts | 4 + .../date-fns/_lib/format/longFormatters.d.ts | 4 + .../date-fns/_lib/format/longFormatters.js | 64 + .../date-fns/_lib/getRoundingMethod.cjs | 11 + .../date-fns/_lib/getRoundingMethod.d.cts | 4 + .../date-fns/_lib/getRoundingMethod.d.ts | 4 + .../date-fns/_lib/getRoundingMethod.js | 8 + .../_lib/getTimezoneOffsetInMilliseconds.cjs | 31 + .../getTimezoneOffsetInMilliseconds.d.cts | 15 + .../_lib/getTimezoneOffsetInMilliseconds.d.ts | 15 + .../_lib/getTimezoneOffsetInMilliseconds.js | 29 + node_modules/date-fns/_lib/normalizeDates.cjs | 11 + .../date-fns/_lib/normalizeDates.d.cts | 13 + .../date-fns/_lib/normalizeDates.d.ts | 13 + node_modules/date-fns/_lib/normalizeDates.js | 9 + .../date-fns/_lib/normalizeInterval.cjs | 12 + .../date-fns/_lib/normalizeInterval.d.cts | 5 + .../date-fns/_lib/normalizeInterval.d.ts | 5 + .../date-fns/_lib/normalizeInterval.js | 6 + .../date-fns/_lib/protectedTokens.cjs | 27 + .../date-fns/_lib/protectedTokens.d.cts | 7 + .../date-fns/_lib/protectedTokens.d.ts | 7 + node_modules/date-fns/_lib/protectedTokens.js | 23 + node_modules/date-fns/_lib/test.cjs | 54 + node_modules/date-fns/_lib/test.d.cts | 14 + node_modules/date-fns/_lib/test.d.ts | 14 + node_modules/date-fns/_lib/test.js | 46 + .../_lib/test/tzOffsetTransitions.cjs | 142 + .../_lib/test/tzOffsetTransitions.d.cts | 48 + .../_lib/test/tzOffsetTransitions.d.ts | 48 + .../date-fns/_lib/test/tzOffsetTransitions.js | 138 + node_modules/date-fns/add.cjs | 104 + node_modules/date-fns/add.d.cts | 73 + node_modules/date-fns/add.d.ts | 73 + node_modules/date-fns/add.js | 98 + node_modules/date-fns/addBusinessDays.cjs | 82 + node_modules/date-fns/addBusinessDays.d.cts | 42 + node_modules/date-fns/addBusinessDays.d.ts | 42 + node_modules/date-fns/addBusinessDays.js | 79 + node_modules/date-fns/addDays.cjs | 60 + node_modules/date-fns/addDays.d.cts | 55 + node_modules/date-fns/addDays.d.ts | 55 + node_modules/date-fns/addDays.js | 61 + node_modules/date-fns/addHours.cjs | 38 + node_modules/date-fns/addHours.d.cts | 36 + node_modules/date-fns/addHours.d.ts | 36 + node_modules/date-fns/addHours.js | 35 + node_modules/date-fns/addISOWeekYears.cjs | 39 + node_modules/date-fns/addISOWeekYears.d.cts | 37 + node_modules/date-fns/addISOWeekYears.d.ts | 37 + node_modules/date-fns/addISOWeekYears.js | 36 + node_modules/date-fns/addMilliseconds.cjs | 37 + node_modules/date-fns/addMilliseconds.d.cts | 36 + node_modules/date-fns/addMilliseconds.d.ts | 36 + node_modules/date-fns/addMilliseconds.js | 35 + node_modules/date-fns/addMinutes.cjs | 36 + node_modules/date-fns/addMinutes.d.cts | 36 + node_modules/date-fns/addMinutes.d.ts | 36 + node_modules/date-fns/addMinutes.js | 37 + node_modules/date-fns/addMonths.cjs | 78 + node_modules/date-fns/addMonths.d.cts | 40 + node_modules/date-fns/addMonths.d.ts | 40 + node_modules/date-fns/addMonths.js | 76 + node_modules/date-fns/addQuarters.cjs | 33 + node_modules/date-fns/addQuarters.d.cts | 36 + node_modules/date-fns/addQuarters.d.ts | 36 + node_modules/date-fns/addQuarters.js | 34 + node_modules/date-fns/addSeconds.cjs | 33 + node_modules/date-fns/addSeconds.d.cts | 36 + node_modules/date-fns/addSeconds.d.ts | 36 + node_modules/date-fns/addSeconds.js | 34 + node_modules/date-fns/addWeeks.cjs | 33 + node_modules/date-fns/addWeeks.d.cts | 36 + node_modules/date-fns/addWeeks.d.ts | 36 + node_modules/date-fns/addWeeks.js | 34 + node_modules/date-fns/addYears.cjs | 33 + node_modules/date-fns/addYears.d.cts | 36 + node_modules/date-fns/addYears.d.ts | 36 + node_modules/date-fns/addYears.js | 34 + .../date-fns/areIntervalsOverlapping.cjs | 70 + .../date-fns/areIntervalsOverlapping.d.cts | 60 + .../date-fns/areIntervalsOverlapping.d.ts | 60 + .../date-fns/areIntervalsOverlapping.js | 71 + node_modules/date-fns/cdn.js | 13108 +++++ node_modules/date-fns/cdn.min.js | 4 + node_modules/date-fns/clamp.cjs | 61 + node_modules/date-fns/clamp.d.cts | 66 + node_modules/date-fns/clamp.d.ts | 66 + node_modules/date-fns/clamp.js | 59 + node_modules/date-fns/closestIndexTo.cjs | 56 + node_modules/date-fns/closestIndexTo.d.cts | 29 + node_modules/date-fns/closestIndexTo.d.ts | 29 + node_modules/date-fns/closestIndexTo.js | 57 + node_modules/date-fns/closestTo.cjs | 57 + node_modules/date-fns/closestTo.d.cts | 59 + node_modules/date-fns/closestTo.d.ts | 59 + node_modules/date-fns/closestTo.js | 58 + node_modules/date-fns/compareAsc.cjs | 45 + node_modules/date-fns/compareAsc.d.cts | 37 + node_modules/date-fns/compareAsc.d.ts | 37 + node_modules/date-fns/compareAsc.js | 46 + node_modules/date-fns/compareDesc.cjs | 45 + node_modules/date-fns/compareDesc.d.cts | 37 + node_modules/date-fns/compareDesc.d.ts | 37 + node_modules/date-fns/compareDesc.js | 46 + node_modules/date-fns/constants.cjs | 242 + node_modules/date-fns/constants.d.cts | 192 + node_modules/date-fns/constants.d.ts | 192 + node_modules/date-fns/constants.js | 216 + node_modules/date-fns/constructFrom.cjs | 49 + node_modules/date-fns/constructFrom.d.cts | 43 + node_modules/date-fns/constructFrom.d.ts | 43 + node_modules/date-fns/constructFrom.js | 50 + node_modules/date-fns/constructNow.cjs | 35 + node_modules/date-fns/constructNow.d.cts | 33 + node_modules/date-fns/constructNow.d.ts | 33 + node_modules/date-fns/constructNow.js | 36 + node_modules/date-fns/daysToWeeks.cjs | 31 + node_modules/date-fns/daysToWeeks.d.cts | 23 + node_modules/date-fns/daysToWeeks.d.ts | 23 + node_modules/date-fns/daysToWeeks.js | 32 + .../date-fns/differenceInBusinessDays.cjs | 90 + .../date-fns/differenceInBusinessDays.d.cts | 60 + .../date-fns/differenceInBusinessDays.d.ts | 60 + .../date-fns/differenceInBusinessDays.js | 90 + .../date-fns/differenceInCalendarDays.cjs | 66 + .../date-fns/differenceInCalendarDays.d.cts | 41 + .../date-fns/differenceInCalendarDays.d.ts | 41 + .../date-fns/differenceInCalendarDays.js | 63 + .../differenceInCalendarISOWeekYears.cjs | 44 + .../differenceInCalendarISOWeekYears.d.cts | 35 + .../differenceInCalendarISOWeekYears.d.ts | 35 + .../differenceInCalendarISOWeekYears.js | 48 + .../date-fns/differenceInCalendarISOWeeks.cjs | 59 + .../differenceInCalendarISOWeeks.d.cts | 35 + .../differenceInCalendarISOWeeks.d.ts | 35 + .../date-fns/differenceInCalendarISOWeeks.js | 56 + .../date-fns/differenceInCalendarMonths.cjs | 42 + .../date-fns/differenceInCalendarMonths.d.cts | 33 + .../date-fns/differenceInCalendarMonths.d.ts | 33 + .../date-fns/differenceInCalendarMonths.js | 43 + .../date-fns/differenceInCalendarQuarters.cjs | 44 + .../differenceInCalendarQuarters.d.cts | 33 + .../differenceInCalendarQuarters.d.ts | 33 + .../date-fns/differenceInCalendarQuarters.js | 44 + .../date-fns/differenceInCalendarWeeks.cjs | 64 + .../date-fns/differenceInCalendarWeeks.d.cts | 50 + .../date-fns/differenceInCalendarWeeks.d.ts | 50 + .../date-fns/differenceInCalendarWeeks.js | 61 + .../date-fns/differenceInCalendarYears.cjs | 38 + .../date-fns/differenceInCalendarYears.d.cts | 33 + .../date-fns/differenceInCalendarYears.d.ts | 33 + .../date-fns/differenceInCalendarYears.js | 39 + node_modules/date-fns/differenceInDays.cjs | 107 + node_modules/date-fns/differenceInDays.d.cts | 63 + node_modules/date-fns/differenceInDays.d.ts | 63 + node_modules/date-fns/differenceInDays.js | 108 + node_modules/date-fns/differenceInHours.cjs | 41 + node_modules/date-fns/differenceInHours.d.cts | 34 + node_modules/date-fns/differenceInHours.d.ts | 34 + node_modules/date-fns/differenceInHours.js | 42 + .../date-fns/differenceInISOWeekYears.cjs | 65 + .../date-fns/differenceInISOWeekYears.d.cts | 34 + .../date-fns/differenceInISOWeekYears.d.ts | 34 + .../date-fns/differenceInISOWeekYears.js | 58 + .../date-fns/differenceInMilliseconds.cjs | 29 + .../date-fns/differenceInMilliseconds.d.cts | 27 + .../date-fns/differenceInMilliseconds.d.ts | 27 + .../date-fns/differenceInMilliseconds.js | 30 + node_modules/date-fns/differenceInMinutes.cjs | 46 + .../date-fns/differenceInMinutes.d.cts | 40 + .../date-fns/differenceInMinutes.d.ts | 40 + node_modules/date-fns/differenceInMinutes.js | 46 + node_modules/date-fns/differenceInMonths.cjs | 57 + .../date-fns/differenceInMonths.d.cts | 26 + node_modules/date-fns/differenceInMonths.d.ts | 26 + node_modules/date-fns/differenceInMonths.js | 61 + .../date-fns/differenceInQuarters.cjs | 33 + .../date-fns/differenceInQuarters.d.cts | 31 + .../date-fns/differenceInQuarters.d.ts | 31 + node_modules/date-fns/differenceInQuarters.js | 33 + node_modules/date-fns/differenceInSeconds.cjs | 37 + .../date-fns/differenceInSeconds.d.cts | 33 + .../date-fns/differenceInSeconds.d.ts | 33 + node_modules/date-fns/differenceInSeconds.js | 37 + node_modules/date-fns/differenceInWeeks.cjs | 54 + node_modules/date-fns/differenceInWeeks.d.cts | 52 + node_modules/date-fns/differenceInWeeks.d.ts | 52 + node_modules/date-fns/differenceInWeeks.js | 54 + node_modules/date-fns/differenceInYears.cjs | 64 + node_modules/date-fns/differenceInYears.d.cts | 29 + node_modules/date-fns/differenceInYears.d.ts | 29 + node_modules/date-fns/differenceInYears.js | 63 + node_modules/date-fns/docs/cdn.md | 120 + node_modules/date-fns/docs/config.d.ts | 2 + node_modules/date-fns/docs/config.js | 135 + node_modules/date-fns/docs/fp.md | 72 + node_modules/date-fns/docs/gettingStarted.md | 76 + node_modules/date-fns/docs/i18n.md | 91 + .../date-fns/docs/i18nContributionGuide.md | 1059 + node_modules/date-fns/docs/logo.svg | 26 + node_modules/date-fns/docs/logotype.svg | 1 + node_modules/date-fns/docs/release.md | 19 + node_modules/date-fns/docs/timeZones.md | 127 + node_modules/date-fns/docs/unicodeTokens.md | 54 + node_modules/date-fns/docs/webpack.md | 53 + node_modules/date-fns/eachDayOfInterval.cjs | 71 + node_modules/date-fns/eachDayOfInterval.d.cts | 62 + node_modules/date-fns/eachDayOfInterval.d.ts | 62 + node_modules/date-fns/eachDayOfInterval.js | 72 + node_modules/date-fns/eachHourOfInterval.cjs | 67 + .../date-fns/eachHourOfInterval.d.cts | 59 + node_modules/date-fns/eachHourOfInterval.d.ts | 59 + node_modules/date-fns/eachHourOfInterval.js | 68 + .../date-fns/eachMinuteOfInterval.cjs | 71 + .../date-fns/eachMinuteOfInterval.d.cts | 61 + .../date-fns/eachMinuteOfInterval.d.ts | 61 + node_modules/date-fns/eachMinuteOfInterval.js | 72 + node_modules/date-fns/eachMonthOfInterval.cjs | 70 + .../date-fns/eachMonthOfInterval.d.cts | 61 + .../date-fns/eachMonthOfInterval.d.ts | 61 + node_modules/date-fns/eachMonthOfInterval.js | 71 + .../date-fns/eachQuarterOfInterval.cjs | 73 + .../date-fns/eachQuarterOfInterval.d.cts | 60 + .../date-fns/eachQuarterOfInterval.d.ts | 60 + .../date-fns/eachQuarterOfInterval.js | 70 + node_modules/date-fns/eachWeekOfInterval.cjs | 82 + .../date-fns/eachWeekOfInterval.d.cts | 69 + node_modules/date-fns/eachWeekOfInterval.d.ts | 69 + node_modules/date-fns/eachWeekOfInterval.js | 83 + .../date-fns/eachWeekendOfInterval.cjs | 56 + .../date-fns/eachWeekendOfInterval.d.cts | 57 + .../date-fns/eachWeekendOfInterval.d.ts | 57 + .../date-fns/eachWeekendOfInterval.js | 56 + node_modules/date-fns/eachWeekendOfMonth.cjs | 45 + .../date-fns/eachWeekendOfMonth.d.cts | 43 + node_modules/date-fns/eachWeekendOfMonth.d.ts | 43 + node_modules/date-fns/eachWeekendOfMonth.js | 46 + node_modules/date-fns/eachWeekendOfYear.cjs | 42 + node_modules/date-fns/eachWeekendOfYear.d.cts | 40 + node_modules/date-fns/eachWeekendOfYear.d.ts | 40 + node_modules/date-fns/eachWeekendOfYear.js | 43 + node_modules/date-fns/eachYearOfInterval.cjs | 70 + .../date-fns/eachYearOfInterval.d.cts | 61 + node_modules/date-fns/eachYearOfInterval.d.ts | 61 + node_modules/date-fns/eachYearOfInterval.js | 71 + node_modules/date-fns/endOfDay.cjs | 35 + node_modules/date-fns/endOfDay.d.cts | 35 + node_modules/date-fns/endOfDay.d.ts | 35 + node_modules/date-fns/endOfDay.js | 36 + node_modules/date-fns/endOfDecade.cjs | 40 + node_modules/date-fns/endOfDecade.d.cts | 34 + node_modules/date-fns/endOfDecade.d.ts | 34 + node_modules/date-fns/endOfDecade.js | 41 + node_modules/date-fns/endOfHour.cjs | 35 + node_modules/date-fns/endOfHour.d.cts | 35 + node_modules/date-fns/endOfHour.d.ts | 35 + node_modules/date-fns/endOfHour.js | 36 + node_modules/date-fns/endOfISOWeek.cjs | 35 + node_modules/date-fns/endOfISOWeek.d.cts | 37 + node_modules/date-fns/endOfISOWeek.d.ts | 37 + node_modules/date-fns/endOfISOWeek.js | 36 + node_modules/date-fns/endOfISOWeekYear.cjs | 47 + node_modules/date-fns/endOfISOWeekYear.d.cts | 38 + node_modules/date-fns/endOfISOWeekYear.d.ts | 38 + node_modules/date-fns/endOfISOWeekYear.js | 45 + node_modules/date-fns/endOfMinute.cjs | 35 + node_modules/date-fns/endOfMinute.d.cts | 35 + node_modules/date-fns/endOfMinute.d.ts | 35 + node_modules/date-fns/endOfMinute.js | 36 + node_modules/date-fns/endOfMonth.cjs | 37 + node_modules/date-fns/endOfMonth.d.cts | 35 + node_modules/date-fns/endOfMonth.d.ts | 35 + node_modules/date-fns/endOfMonth.js | 38 + node_modules/date-fns/endOfQuarter.cjs | 38 + node_modules/date-fns/endOfQuarter.d.cts | 35 + node_modules/date-fns/endOfQuarter.d.ts | 35 + node_modules/date-fns/endOfQuarter.js | 39 + node_modules/date-fns/endOfSecond.cjs | 35 + node_modules/date-fns/endOfSecond.d.cts | 35 + node_modules/date-fns/endOfSecond.d.ts | 35 + node_modules/date-fns/endOfSecond.js | 36 + node_modules/date-fns/endOfToday.cjs | 32 + node_modules/date-fns/endOfToday.d.cts | 30 + node_modules/date-fns/endOfToday.d.ts | 30 + node_modules/date-fns/endOfToday.js | 33 + node_modules/date-fns/endOfTomorrow.cjs | 39 + node_modules/date-fns/endOfTomorrow.d.cts | 30 + node_modules/date-fns/endOfTomorrow.d.ts | 30 + node_modules/date-fns/endOfTomorrow.js | 40 + node_modules/date-fns/endOfWeek.cjs | 53 + node_modules/date-fns/endOfWeek.d.cts | 44 + node_modules/date-fns/endOfWeek.d.ts | 44 + node_modules/date-fns/endOfWeek.js | 54 + node_modules/date-fns/endOfYear.cjs | 37 + node_modules/date-fns/endOfYear.d.cts | 32 + node_modules/date-fns/endOfYear.d.ts | 32 + node_modules/date-fns/endOfYear.js | 38 + node_modules/date-fns/endOfYesterday.cjs | 35 + node_modules/date-fns/endOfYesterday.d.cts | 29 + node_modules/date-fns/endOfYesterday.d.ts | 29 + node_modules/date-fns/endOfYesterday.js | 36 + node_modules/date-fns/format.cjs | 440 + node_modules/date-fns/format.d.cts | 311 + node_modules/date-fns/format.d.ts | 311 + node_modules/date-fns/format.js | 434 + node_modules/date-fns/formatDistance.cjs | 199 + node_modules/date-fns/formatDistance.d.cts | 95 + node_modules/date-fns/formatDistance.d.ts | 95 + node_modules/date-fns/formatDistance.js | 199 + .../date-fns/formatDistanceStrict.cjs | 188 + .../date-fns/formatDistanceStrict.d.cts | 110 + .../date-fns/formatDistanceStrict.d.ts | 110 + node_modules/date-fns/formatDistanceStrict.js | 189 + node_modules/date-fns/formatDistanceToNow.cjs | 98 + .../date-fns/formatDistanceToNow.d.cts | 93 + .../date-fns/formatDistanceToNow.d.ts | 93 + node_modules/date-fns/formatDistanceToNow.js | 95 + .../date-fns/formatDistanceToNowStrict.cjs | 88 + .../date-fns/formatDistanceToNowStrict.d.cts | 83 + .../date-fns/formatDistanceToNowStrict.d.ts | 83 + .../date-fns/formatDistanceToNowStrict.js | 85 + node_modules/date-fns/formatDuration.cjs | 103 + node_modules/date-fns/formatDuration.d.cts | 75 + node_modules/date-fns/formatDuration.d.ts | 75 + node_modules/date-fns/formatDuration.js | 102 + node_modules/date-fns/formatISO.cjs | 106 + node_modules/date-fns/formatISO.d.cts | 46 + node_modules/date-fns/formatISO.d.ts | 46 + node_modules/date-fns/formatISO.js | 104 + node_modules/date-fns/formatISO9075.cjs | 85 + node_modules/date-fns/formatISO9075.d.cts | 46 + node_modules/date-fns/formatISO9075.d.ts | 46 + node_modules/date-fns/formatISO9075.js | 86 + node_modules/date-fns/formatISODuration.cjs | 39 + node_modules/date-fns/formatISODuration.d.cts | 26 + node_modules/date-fns/formatISODuration.d.ts | 26 + node_modules/date-fns/formatISODuration.js | 39 + node_modules/date-fns/formatRFC3339.cjs | 84 + node_modules/date-fns/formatRFC3339.d.cts | 39 + node_modules/date-fns/formatRFC3339.d.ts | 39 + node_modules/date-fns/formatRFC3339.js | 81 + node_modules/date-fns/formatRFC7231.cjs | 62 + node_modules/date-fns/formatRFC7231.d.cts | 22 + node_modules/date-fns/formatRFC7231.d.ts | 22 + node_modules/date-fns/formatRFC7231.js | 63 + node_modules/date-fns/formatRelative.cjs | 92 + node_modules/date-fns/formatRelative.d.cts | 54 + node_modules/date-fns/formatRelative.d.ts | 54 + node_modules/date-fns/formatRelative.js | 88 + node_modules/date-fns/fp.cjs | 4358 ++ node_modules/date-fns/fp.d.cts | 397 + node_modules/date-fns/fp.d.ts | 397 + node_modules/date-fns/fp.js | 398 + node_modules/date-fns/fp/_lib/convertToFP.cjs | 20 + .../date-fns/fp/_lib/convertToFP.d.cts | 17 + .../date-fns/fp/_lib/convertToFP.d.ts | 17 + node_modules/date-fns/fp/_lib/convertToFP.js | 17 + node_modules/date-fns/fp/add.cjs | 7 + node_modules/date-fns/fp/add.d.cts | 5 + node_modules/date-fns/fp/add.d.ts | 5 + node_modules/date-fns/fp/add.js | 9 + node_modules/date-fns/fp/addBusinessDays.cjs | 10 + .../date-fns/fp/addBusinessDays.d.cts | 5 + node_modules/date-fns/fp/addBusinessDays.d.ts | 5 + node_modules/date-fns/fp/addBusinessDays.js | 9 + .../fp/addBusinessDaysWithOptions.cjs | 8 + .../fp/addBusinessDaysWithOptions.d.cts | 7 + .../fp/addBusinessDaysWithOptions.d.ts | 7 + .../date-fns/fp/addBusinessDaysWithOptions.js | 9 + node_modules/date-fns/fp/addDays.cjs | 7 + node_modules/date-fns/fp/addDays.d.cts | 5 + node_modules/date-fns/fp/addDays.d.ts | 5 + node_modules/date-fns/fp/addDays.js | 9 + .../date-fns/fp/addDaysWithOptions.cjs | 8 + .../date-fns/fp/addDaysWithOptions.d.cts | 6 + .../date-fns/fp/addDaysWithOptions.d.ts | 6 + .../date-fns/fp/addDaysWithOptions.js | 9 + node_modules/date-fns/fp/addHours.cjs | 10 + node_modules/date-fns/fp/addHours.d.cts | 5 + node_modules/date-fns/fp/addHours.d.ts | 5 + node_modules/date-fns/fp/addHours.js | 9 + .../date-fns/fp/addHoursWithOptions.cjs | 8 + .../date-fns/fp/addHoursWithOptions.d.cts | 6 + .../date-fns/fp/addHoursWithOptions.d.ts | 6 + .../date-fns/fp/addHoursWithOptions.js | 9 + node_modules/date-fns/fp/addISOWeekYears.cjs | 10 + .../date-fns/fp/addISOWeekYears.d.cts | 5 + node_modules/date-fns/fp/addISOWeekYears.d.ts | 5 + node_modules/date-fns/fp/addISOWeekYears.js | 9 + .../fp/addISOWeekYearsWithOptions.cjs | 8 + .../fp/addISOWeekYearsWithOptions.d.cts | 7 + .../fp/addISOWeekYearsWithOptions.d.ts | 7 + .../date-fns/fp/addISOWeekYearsWithOptions.js | 9 + node_modules/date-fns/fp/addMilliseconds.cjs | 10 + .../date-fns/fp/addMilliseconds.d.cts | 5 + node_modules/date-fns/fp/addMilliseconds.d.ts | 5 + node_modules/date-fns/fp/addMilliseconds.js | 9 + .../fp/addMillisecondsWithOptions.cjs | 8 + .../fp/addMillisecondsWithOptions.d.cts | 7 + .../fp/addMillisecondsWithOptions.d.ts | 7 + .../date-fns/fp/addMillisecondsWithOptions.js | 9 + node_modules/date-fns/fp/addMinutes.cjs | 10 + node_modules/date-fns/fp/addMinutes.d.cts | 5 + node_modules/date-fns/fp/addMinutes.d.ts | 5 + node_modules/date-fns/fp/addMinutes.js | 9 + .../date-fns/fp/addMinutesWithOptions.cjs | 8 + .../date-fns/fp/addMinutesWithOptions.d.cts | 6 + .../date-fns/fp/addMinutesWithOptions.d.ts | 6 + .../date-fns/fp/addMinutesWithOptions.js | 9 + node_modules/date-fns/fp/addMonths.cjs | 10 + node_modules/date-fns/fp/addMonths.d.cts | 5 + node_modules/date-fns/fp/addMonths.d.ts | 5 + node_modules/date-fns/fp/addMonths.js | 9 + .../date-fns/fp/addMonthsWithOptions.cjs | 8 + .../date-fns/fp/addMonthsWithOptions.d.cts | 6 + .../date-fns/fp/addMonthsWithOptions.d.ts | 6 + .../date-fns/fp/addMonthsWithOptions.js | 9 + node_modules/date-fns/fp/addQuarters.cjs | 10 + node_modules/date-fns/fp/addQuarters.d.cts | 5 + node_modules/date-fns/fp/addQuarters.d.ts | 5 + node_modules/date-fns/fp/addQuarters.js | 9 + .../date-fns/fp/addQuartersWithOptions.cjs | 8 + .../date-fns/fp/addQuartersWithOptions.d.cts | 6 + .../date-fns/fp/addQuartersWithOptions.d.ts | 6 + .../date-fns/fp/addQuartersWithOptions.js | 9 + node_modules/date-fns/fp/addSeconds.cjs | 10 + node_modules/date-fns/fp/addSeconds.d.cts | 5 + node_modules/date-fns/fp/addSeconds.d.ts | 5 + node_modules/date-fns/fp/addSeconds.js | 9 + .../date-fns/fp/addSecondsWithOptions.cjs | 8 + .../date-fns/fp/addSecondsWithOptions.d.cts | 6 + .../date-fns/fp/addSecondsWithOptions.d.ts | 6 + .../date-fns/fp/addSecondsWithOptions.js | 9 + node_modules/date-fns/fp/addWeeks.cjs | 10 + node_modules/date-fns/fp/addWeeks.d.cts | 5 + node_modules/date-fns/fp/addWeeks.d.ts | 5 + node_modules/date-fns/fp/addWeeks.js | 9 + .../date-fns/fp/addWeeksWithOptions.cjs | 8 + .../date-fns/fp/addWeeksWithOptions.d.cts | 6 + .../date-fns/fp/addWeeksWithOptions.d.ts | 6 + .../date-fns/fp/addWeeksWithOptions.js | 9 + node_modules/date-fns/fp/addWithOptions.cjs | 10 + node_modules/date-fns/fp/addWithOptions.d.cts | 6 + node_modules/date-fns/fp/addWithOptions.d.ts | 6 + node_modules/date-fns/fp/addWithOptions.js | 9 + node_modules/date-fns/fp/addYears.cjs | 10 + node_modules/date-fns/fp/addYears.d.cts | 5 + node_modules/date-fns/fp/addYears.d.ts | 5 + node_modules/date-fns/fp/addYears.js | 9 + .../date-fns/fp/addYearsWithOptions.cjs | 8 + .../date-fns/fp/addYearsWithOptions.d.cts | 6 + .../date-fns/fp/addYearsWithOptions.d.ts | 6 + .../date-fns/fp/addYearsWithOptions.js | 9 + .../date-fns/fp/areIntervalsOverlapping.cjs | 8 + .../date-fns/fp/areIntervalsOverlapping.d.cts | 11 + .../date-fns/fp/areIntervalsOverlapping.d.ts | 11 + .../date-fns/fp/areIntervalsOverlapping.js | 9 + .../fp/areIntervalsOverlappingWithOptions.cjs | 11 + .../areIntervalsOverlappingWithOptions.d.cts | 13 + .../areIntervalsOverlappingWithOptions.d.ts | 13 + .../fp/areIntervalsOverlappingWithOptions.js | 9 + node_modules/date-fns/fp/cdn.js | 13661 +++++ node_modules/date-fns/fp/cdn.min.js | 4 + node_modules/date-fns/fp/clamp.cjs | 7 + node_modules/date-fns/fp/clamp.d.cts | 8 + node_modules/date-fns/fp/clamp.d.ts | 8 + node_modules/date-fns/fp/clamp.js | 9 + node_modules/date-fns/fp/clampWithOptions.cjs | 10 + .../date-fns/fp/clampWithOptions.d.cts | 9 + .../date-fns/fp/clampWithOptions.d.ts | 9 + node_modules/date-fns/fp/clampWithOptions.js | 9 + node_modules/date-fns/fp/closestIndexTo.cjs | 10 + node_modules/date-fns/fp/closestIndexTo.d.cts | 5 + node_modules/date-fns/fp/closestIndexTo.d.ts | 5 + node_modules/date-fns/fp/closestIndexTo.js | 9 + node_modules/date-fns/fp/closestTo.cjs | 10 + node_modules/date-fns/fp/closestTo.d.cts | 5 + node_modules/date-fns/fp/closestTo.d.ts | 5 + node_modules/date-fns/fp/closestTo.js | 9 + .../date-fns/fp/closestToWithOptions.cjs | 8 + .../date-fns/fp/closestToWithOptions.d.cts | 6 + .../date-fns/fp/closestToWithOptions.d.ts | 6 + .../date-fns/fp/closestToWithOptions.js | 9 + node_modules/date-fns/fp/compareAsc.cjs | 10 + node_modules/date-fns/fp/compareAsc.d.cts | 5 + node_modules/date-fns/fp/compareAsc.d.ts | 5 + node_modules/date-fns/fp/compareAsc.js | 9 + node_modules/date-fns/fp/compareDesc.cjs | 10 + node_modules/date-fns/fp/compareDesc.d.cts | 5 + node_modules/date-fns/fp/compareDesc.d.ts | 5 + node_modules/date-fns/fp/compareDesc.js | 9 + node_modules/date-fns/fp/constructFrom.cjs | 10 + node_modules/date-fns/fp/constructFrom.d.cts | 9 + node_modules/date-fns/fp/constructFrom.d.ts | 9 + node_modules/date-fns/fp/constructFrom.js | 9 + node_modules/date-fns/fp/daysToWeeks.cjs | 10 + node_modules/date-fns/fp/daysToWeeks.d.cts | 1 + node_modules/date-fns/fp/daysToWeeks.d.ts | 1 + node_modules/date-fns/fp/daysToWeeks.js | 9 + .../date-fns/fp/differenceInBusinessDays.cjs | 8 + .../fp/differenceInBusinessDays.d.cts | 5 + .../date-fns/fp/differenceInBusinessDays.d.ts | 5 + .../date-fns/fp/differenceInBusinessDays.js | 9 + .../differenceInBusinessDaysWithOptions.cjs | 11 + .../differenceInBusinessDaysWithOptions.d.cts | 7 + .../differenceInBusinessDaysWithOptions.d.ts | 7 + .../fp/differenceInBusinessDaysWithOptions.js | 9 + .../date-fns/fp/differenceInCalendarDays.cjs | 8 + .../fp/differenceInCalendarDays.d.cts | 5 + .../date-fns/fp/differenceInCalendarDays.d.ts | 5 + .../date-fns/fp/differenceInCalendarDays.js | 9 + .../differenceInCalendarDaysWithOptions.cjs | 11 + .../differenceInCalendarDaysWithOptions.d.cts | 7 + .../differenceInCalendarDaysWithOptions.d.ts | 7 + .../fp/differenceInCalendarDaysWithOptions.js | 9 + .../fp/differenceInCalendarISOWeekYears.cjs | 11 + .../fp/differenceInCalendarISOWeekYears.d.cts | 5 + .../fp/differenceInCalendarISOWeekYears.d.ts | 5 + .../fp/differenceInCalendarISOWeekYears.js | 9 + ...renceInCalendarISOWeekYearsWithOptions.cjs | 9 + ...nceInCalendarISOWeekYearsWithOptions.d.cts | 7 + ...enceInCalendarISOWeekYearsWithOptions.d.ts | 7 + ...erenceInCalendarISOWeekYearsWithOptions.js | 9 + .../fp/differenceInCalendarISOWeeks.cjs | 8 + .../fp/differenceInCalendarISOWeeks.d.cts | 5 + .../fp/differenceInCalendarISOWeeks.d.ts | 5 + .../fp/differenceInCalendarISOWeeks.js | 9 + ...ifferenceInCalendarISOWeeksWithOptions.cjs | 11 + ...ferenceInCalendarISOWeeksWithOptions.d.cts | 7 + ...fferenceInCalendarISOWeeksWithOptions.d.ts | 7 + ...differenceInCalendarISOWeeksWithOptions.js | 9 + .../fp/differenceInCalendarMonths.cjs | 8 + .../fp/differenceInCalendarMonths.d.cts | 5 + .../fp/differenceInCalendarMonths.d.ts | 5 + .../date-fns/fp/differenceInCalendarMonths.js | 9 + .../differenceInCalendarMonthsWithOptions.cjs | 11 + ...ifferenceInCalendarMonthsWithOptions.d.cts | 7 + ...differenceInCalendarMonthsWithOptions.d.ts | 7 + .../differenceInCalendarMonthsWithOptions.js | 9 + .../fp/differenceInCalendarQuarters.cjs | 8 + .../fp/differenceInCalendarQuarters.d.cts | 5 + .../fp/differenceInCalendarQuarters.d.ts | 5 + .../fp/differenceInCalendarQuarters.js | 9 + ...ifferenceInCalendarQuartersWithOptions.cjs | 11 + ...ferenceInCalendarQuartersWithOptions.d.cts | 7 + ...fferenceInCalendarQuartersWithOptions.d.ts | 7 + ...differenceInCalendarQuartersWithOptions.js | 9 + .../date-fns/fp/differenceInCalendarWeeks.cjs | 8 + .../fp/differenceInCalendarWeeks.d.cts | 5 + .../fp/differenceInCalendarWeeks.d.ts | 5 + .../date-fns/fp/differenceInCalendarWeeks.js | 9 + .../differenceInCalendarWeeksWithOptions.cjs | 11 + ...differenceInCalendarWeeksWithOptions.d.cts | 7 + .../differenceInCalendarWeeksWithOptions.d.ts | 7 + .../differenceInCalendarWeeksWithOptions.js | 9 + .../date-fns/fp/differenceInCalendarYears.cjs | 8 + .../fp/differenceInCalendarYears.d.cts | 5 + .../fp/differenceInCalendarYears.d.ts | 5 + .../date-fns/fp/differenceInCalendarYears.js | 9 + .../differenceInCalendarYearsWithOptions.cjs | 11 + ...differenceInCalendarYearsWithOptions.d.cts | 7 + .../differenceInCalendarYearsWithOptions.d.ts | 7 + .../differenceInCalendarYearsWithOptions.js | 9 + node_modules/date-fns/fp/differenceInDays.cjs | 10 + .../date-fns/fp/differenceInDays.d.cts | 5 + .../date-fns/fp/differenceInDays.d.ts | 5 + node_modules/date-fns/fp/differenceInDays.js | 9 + .../fp/differenceInDaysWithOptions.cjs | 8 + .../fp/differenceInDaysWithOptions.d.cts | 6 + .../fp/differenceInDaysWithOptions.d.ts | 6 + .../fp/differenceInDaysWithOptions.js | 9 + .../date-fns/fp/differenceInHours.cjs | 10 + .../date-fns/fp/differenceInHours.d.cts | 5 + .../date-fns/fp/differenceInHours.d.ts | 5 + node_modules/date-fns/fp/differenceInHours.js | 9 + .../fp/differenceInHoursWithOptions.cjs | 8 + .../fp/differenceInHoursWithOptions.d.cts | 7 + .../fp/differenceInHoursWithOptions.d.ts | 7 + .../fp/differenceInHoursWithOptions.js | 9 + .../date-fns/fp/differenceInISOWeekYears.cjs | 8 + .../fp/differenceInISOWeekYears.d.cts | 5 + .../date-fns/fp/differenceInISOWeekYears.d.ts | 5 + .../date-fns/fp/differenceInISOWeekYears.js | 9 + .../differenceInISOWeekYearsWithOptions.cjs | 11 + .../differenceInISOWeekYearsWithOptions.d.cts | 7 + .../differenceInISOWeekYearsWithOptions.d.ts | 7 + .../fp/differenceInISOWeekYearsWithOptions.js | 9 + .../date-fns/fp/differenceInMilliseconds.cjs | 8 + .../fp/differenceInMilliseconds.d.cts | 5 + .../date-fns/fp/differenceInMilliseconds.d.ts | 5 + .../date-fns/fp/differenceInMilliseconds.js | 9 + .../date-fns/fp/differenceInMinutes.cjs | 8 + .../date-fns/fp/differenceInMinutes.d.cts | 5 + .../date-fns/fp/differenceInMinutes.d.ts | 5 + .../date-fns/fp/differenceInMinutes.js | 9 + .../fp/differenceInMinutesWithOptions.cjs | 8 + .../fp/differenceInMinutesWithOptions.d.cts | 7 + .../fp/differenceInMinutesWithOptions.d.ts | 7 + .../fp/differenceInMinutesWithOptions.js | 9 + .../date-fns/fp/differenceInMonths.cjs | 8 + .../date-fns/fp/differenceInMonths.d.cts | 5 + .../date-fns/fp/differenceInMonths.d.ts | 5 + .../date-fns/fp/differenceInMonths.js | 9 + .../fp/differenceInMonthsWithOptions.cjs | 8 + .../fp/differenceInMonthsWithOptions.d.cts | 7 + .../fp/differenceInMonthsWithOptions.d.ts | 7 + .../fp/differenceInMonthsWithOptions.js | 9 + .../date-fns/fp/differenceInQuarters.cjs | 8 + .../date-fns/fp/differenceInQuarters.d.cts | 5 + .../date-fns/fp/differenceInQuarters.d.ts | 5 + .../date-fns/fp/differenceInQuarters.js | 9 + .../fp/differenceInQuartersWithOptions.cjs | 11 + .../fp/differenceInQuartersWithOptions.d.cts | 7 + .../fp/differenceInQuartersWithOptions.d.ts | 7 + .../fp/differenceInQuartersWithOptions.js | 9 + .../date-fns/fp/differenceInSeconds.cjs | 8 + .../date-fns/fp/differenceInSeconds.d.cts | 5 + .../date-fns/fp/differenceInSeconds.d.ts | 5 + .../date-fns/fp/differenceInSeconds.js | 9 + .../fp/differenceInSecondsWithOptions.cjs | 8 + .../fp/differenceInSecondsWithOptions.d.cts | 7 + .../fp/differenceInSecondsWithOptions.d.ts | 7 + .../fp/differenceInSecondsWithOptions.js | 9 + .../date-fns/fp/differenceInWeeks.cjs | 10 + .../date-fns/fp/differenceInWeeks.d.cts | 5 + .../date-fns/fp/differenceInWeeks.d.ts | 5 + node_modules/date-fns/fp/differenceInWeeks.js | 9 + .../fp/differenceInWeeksWithOptions.cjs | 8 + .../fp/differenceInWeeksWithOptions.d.cts | 7 + .../fp/differenceInWeeksWithOptions.d.ts | 7 + .../fp/differenceInWeeksWithOptions.js | 9 + .../date-fns/fp/differenceInYears.cjs | 10 + .../date-fns/fp/differenceInYears.d.cts | 5 + .../date-fns/fp/differenceInYears.d.ts | 5 + node_modules/date-fns/fp/differenceInYears.js | 9 + .../fp/differenceInYearsWithOptions.cjs | 8 + .../fp/differenceInYearsWithOptions.d.cts | 7 + .../fp/differenceInYearsWithOptions.d.ts | 7 + .../fp/differenceInYearsWithOptions.js | 9 + .../date-fns/fp/eachDayOfInterval.cjs | 10 + .../date-fns/fp/eachDayOfInterval.d.cts | 14 + .../date-fns/fp/eachDayOfInterval.d.ts | 14 + node_modules/date-fns/fp/eachDayOfInterval.js | 9 + .../fp/eachDayOfIntervalWithOptions.cjs | 8 + .../fp/eachDayOfIntervalWithOptions.d.cts | 16 + .../fp/eachDayOfIntervalWithOptions.d.ts | 16 + .../fp/eachDayOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachHourOfInterval.cjs | 8 + .../date-fns/fp/eachHourOfInterval.d.cts | 14 + .../date-fns/fp/eachHourOfInterval.d.ts | 14 + .../date-fns/fp/eachHourOfInterval.js | 9 + .../fp/eachHourOfIntervalWithOptions.cjs | 8 + .../fp/eachHourOfIntervalWithOptions.d.cts | 16 + .../fp/eachHourOfIntervalWithOptions.d.ts | 16 + .../fp/eachHourOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachMinuteOfInterval.cjs | 8 + .../date-fns/fp/eachMinuteOfInterval.d.cts | 14 + .../date-fns/fp/eachMinuteOfInterval.d.ts | 14 + .../date-fns/fp/eachMinuteOfInterval.js | 9 + .../fp/eachMinuteOfIntervalWithOptions.cjs | 11 + .../fp/eachMinuteOfIntervalWithOptions.d.cts | 16 + .../fp/eachMinuteOfIntervalWithOptions.d.ts | 16 + .../fp/eachMinuteOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachMonthOfInterval.cjs | 8 + .../date-fns/fp/eachMonthOfInterval.d.cts | 14 + .../date-fns/fp/eachMonthOfInterval.d.ts | 14 + .../date-fns/fp/eachMonthOfInterval.js | 9 + .../fp/eachMonthOfIntervalWithOptions.cjs | 8 + .../fp/eachMonthOfIntervalWithOptions.d.cts | 16 + .../fp/eachMonthOfIntervalWithOptions.d.ts | 16 + .../fp/eachMonthOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachQuarterOfInterval.cjs | 8 + .../date-fns/fp/eachQuarterOfInterval.d.cts | 14 + .../date-fns/fp/eachQuarterOfInterval.d.ts | 14 + .../date-fns/fp/eachQuarterOfInterval.js | 9 + .../fp/eachQuarterOfIntervalWithOptions.cjs | 11 + .../fp/eachQuarterOfIntervalWithOptions.d.cts | 16 + .../fp/eachQuarterOfIntervalWithOptions.d.ts | 16 + .../fp/eachQuarterOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachWeekOfInterval.cjs | 8 + .../date-fns/fp/eachWeekOfInterval.d.cts | 14 + .../date-fns/fp/eachWeekOfInterval.d.ts | 14 + .../date-fns/fp/eachWeekOfInterval.js | 9 + .../fp/eachWeekOfIntervalWithOptions.cjs | 8 + .../fp/eachWeekOfIntervalWithOptions.d.cts | 16 + .../fp/eachWeekOfIntervalWithOptions.d.ts | 16 + .../fp/eachWeekOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachWeekendOfInterval.cjs | 8 + .../date-fns/fp/eachWeekendOfInterval.d.cts | 14 + .../date-fns/fp/eachWeekendOfInterval.d.ts | 14 + .../date-fns/fp/eachWeekendOfInterval.js | 9 + .../fp/eachWeekendOfIntervalWithOptions.cjs | 11 + .../fp/eachWeekendOfIntervalWithOptions.d.cts | 16 + .../fp/eachWeekendOfIntervalWithOptions.d.ts | 16 + .../fp/eachWeekendOfIntervalWithOptions.js | 9 + .../date-fns/fp/eachWeekendOfMonth.cjs | 8 + .../date-fns/fp/eachWeekendOfMonth.d.cts | 4 + .../date-fns/fp/eachWeekendOfMonth.d.ts | 4 + .../date-fns/fp/eachWeekendOfMonth.js | 9 + .../fp/eachWeekendOfMonthWithOptions.cjs | 8 + .../fp/eachWeekendOfMonthWithOptions.d.cts | 6 + .../fp/eachWeekendOfMonthWithOptions.d.ts | 6 + .../fp/eachWeekendOfMonthWithOptions.js | 9 + .../date-fns/fp/eachWeekendOfYear.cjs | 10 + .../date-fns/fp/eachWeekendOfYear.d.cts | 4 + .../date-fns/fp/eachWeekendOfYear.d.ts | 4 + node_modules/date-fns/fp/eachWeekendOfYear.js | 9 + .../fp/eachWeekendOfYearWithOptions.cjs | 8 + .../fp/eachWeekendOfYearWithOptions.d.cts | 6 + .../fp/eachWeekendOfYearWithOptions.d.ts | 6 + .../fp/eachWeekendOfYearWithOptions.js | 9 + .../date-fns/fp/eachYearOfInterval.cjs | 8 + .../date-fns/fp/eachYearOfInterval.d.cts | 14 + .../date-fns/fp/eachYearOfInterval.d.ts | 14 + .../date-fns/fp/eachYearOfInterval.js | 9 + .../fp/eachYearOfIntervalWithOptions.cjs | 8 + .../fp/eachYearOfIntervalWithOptions.d.cts | 16 + .../fp/eachYearOfIntervalWithOptions.d.ts | 16 + .../fp/eachYearOfIntervalWithOptions.js | 9 + node_modules/date-fns/fp/endOfDay.cjs | 10 + node_modules/date-fns/fp/endOfDay.d.cts | 4 + node_modules/date-fns/fp/endOfDay.d.ts | 4 + node_modules/date-fns/fp/endOfDay.js | 9 + .../date-fns/fp/endOfDayWithOptions.cjs | 8 + .../date-fns/fp/endOfDayWithOptions.d.cts | 5 + .../date-fns/fp/endOfDayWithOptions.d.ts | 5 + .../date-fns/fp/endOfDayWithOptions.js | 9 + node_modules/date-fns/fp/endOfDecade.cjs | 10 + node_modules/date-fns/fp/endOfDecade.d.cts | 4 + node_modules/date-fns/fp/endOfDecade.d.ts | 4 + node_modules/date-fns/fp/endOfDecade.js | 9 + .../date-fns/fp/endOfDecadeWithOptions.cjs | 8 + .../date-fns/fp/endOfDecadeWithOptions.d.cts | 5 + .../date-fns/fp/endOfDecadeWithOptions.d.ts | 5 + .../date-fns/fp/endOfDecadeWithOptions.js | 9 + node_modules/date-fns/fp/endOfHour.cjs | 10 + node_modules/date-fns/fp/endOfHour.d.cts | 4 + node_modules/date-fns/fp/endOfHour.d.ts | 4 + node_modules/date-fns/fp/endOfHour.js | 9 + .../date-fns/fp/endOfHourWithOptions.cjs | 8 + .../date-fns/fp/endOfHourWithOptions.d.cts | 5 + .../date-fns/fp/endOfHourWithOptions.d.ts | 5 + .../date-fns/fp/endOfHourWithOptions.js | 9 + node_modules/date-fns/fp/endOfISOWeek.cjs | 10 + node_modules/date-fns/fp/endOfISOWeek.d.cts | 4 + node_modules/date-fns/fp/endOfISOWeek.d.ts | 4 + node_modules/date-fns/fp/endOfISOWeek.js | 9 + .../date-fns/fp/endOfISOWeekWithOptions.cjs | 8 + .../date-fns/fp/endOfISOWeekWithOptions.d.cts | 5 + .../date-fns/fp/endOfISOWeekWithOptions.d.ts | 5 + .../date-fns/fp/endOfISOWeekWithOptions.js | 9 + node_modules/date-fns/fp/endOfISOWeekYear.cjs | 10 + .../date-fns/fp/endOfISOWeekYear.d.cts | 4 + .../date-fns/fp/endOfISOWeekYear.d.ts | 4 + node_modules/date-fns/fp/endOfISOWeekYear.js | 9 + .../fp/endOfISOWeekYearWithOptions.cjs | 8 + .../fp/endOfISOWeekYearWithOptions.d.cts | 6 + .../fp/endOfISOWeekYearWithOptions.d.ts | 6 + .../fp/endOfISOWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/endOfMinute.cjs | 10 + node_modules/date-fns/fp/endOfMinute.d.cts | 4 + node_modules/date-fns/fp/endOfMinute.d.ts | 4 + node_modules/date-fns/fp/endOfMinute.js | 9 + .../date-fns/fp/endOfMinuteWithOptions.cjs | 8 + .../date-fns/fp/endOfMinuteWithOptions.d.cts | 5 + .../date-fns/fp/endOfMinuteWithOptions.d.ts | 5 + .../date-fns/fp/endOfMinuteWithOptions.js | 9 + node_modules/date-fns/fp/endOfMonth.cjs | 10 + node_modules/date-fns/fp/endOfMonth.d.cts | 4 + node_modules/date-fns/fp/endOfMonth.d.ts | 4 + node_modules/date-fns/fp/endOfMonth.js | 9 + .../date-fns/fp/endOfMonthWithOptions.cjs | 8 + .../date-fns/fp/endOfMonthWithOptions.d.cts | 5 + .../date-fns/fp/endOfMonthWithOptions.d.ts | 5 + .../date-fns/fp/endOfMonthWithOptions.js | 9 + node_modules/date-fns/fp/endOfQuarter.cjs | 10 + node_modules/date-fns/fp/endOfQuarter.d.cts | 4 + node_modules/date-fns/fp/endOfQuarter.d.ts | 4 + node_modules/date-fns/fp/endOfQuarter.js | 9 + .../date-fns/fp/endOfQuarterWithOptions.cjs | 8 + .../date-fns/fp/endOfQuarterWithOptions.d.cts | 5 + .../date-fns/fp/endOfQuarterWithOptions.d.ts | 5 + .../date-fns/fp/endOfQuarterWithOptions.js | 9 + node_modules/date-fns/fp/endOfSecond.cjs | 10 + node_modules/date-fns/fp/endOfSecond.d.cts | 4 + node_modules/date-fns/fp/endOfSecond.d.ts | 4 + node_modules/date-fns/fp/endOfSecond.js | 9 + .../date-fns/fp/endOfSecondWithOptions.cjs | 8 + .../date-fns/fp/endOfSecondWithOptions.d.cts | 5 + .../date-fns/fp/endOfSecondWithOptions.d.ts | 5 + .../date-fns/fp/endOfSecondWithOptions.js | 9 + node_modules/date-fns/fp/endOfWeek.cjs | 10 + node_modules/date-fns/fp/endOfWeek.d.cts | 4 + node_modules/date-fns/fp/endOfWeek.d.ts | 4 + node_modules/date-fns/fp/endOfWeek.js | 9 + .../date-fns/fp/endOfWeekWithOptions.cjs | 8 + .../date-fns/fp/endOfWeekWithOptions.d.cts | 5 + .../date-fns/fp/endOfWeekWithOptions.d.ts | 5 + .../date-fns/fp/endOfWeekWithOptions.js | 9 + node_modules/date-fns/fp/endOfYear.cjs | 10 + node_modules/date-fns/fp/endOfYear.d.cts | 4 + node_modules/date-fns/fp/endOfYear.d.ts | 4 + node_modules/date-fns/fp/endOfYear.js | 9 + .../date-fns/fp/endOfYearWithOptions.cjs | 8 + .../date-fns/fp/endOfYearWithOptions.d.cts | 5 + .../date-fns/fp/endOfYearWithOptions.d.ts | 5 + .../date-fns/fp/endOfYearWithOptions.js | 9 + node_modules/date-fns/fp/format.cjs | 7 + node_modules/date-fns/fp/format.d.cts | 5 + node_modules/date-fns/fp/format.d.ts | 5 + node_modules/date-fns/fp/format.js | 9 + node_modules/date-fns/fp/formatDistance.cjs | 10 + node_modules/date-fns/fp/formatDistance.d.cts | 5 + node_modules/date-fns/fp/formatDistance.d.ts | 5 + node_modules/date-fns/fp/formatDistance.js | 9 + .../date-fns/fp/formatDistanceStrict.cjs | 8 + .../date-fns/fp/formatDistanceStrict.d.cts | 5 + .../date-fns/fp/formatDistanceStrict.d.ts | 5 + .../date-fns/fp/formatDistanceStrict.js | 9 + .../fp/formatDistanceStrictWithOptions.cjs | 11 + .../fp/formatDistanceStrictWithOptions.d.cts | 7 + .../fp/formatDistanceStrictWithOptions.d.ts | 7 + .../fp/formatDistanceStrictWithOptions.js | 9 + .../date-fns/fp/formatDistanceWithOptions.cjs | 8 + .../fp/formatDistanceWithOptions.d.cts | 6 + .../fp/formatDistanceWithOptions.d.ts | 6 + .../date-fns/fp/formatDistanceWithOptions.js | 9 + node_modules/date-fns/fp/formatDuration.cjs | 10 + node_modules/date-fns/fp/formatDuration.d.cts | 4 + node_modules/date-fns/fp/formatDuration.d.ts | 4 + node_modules/date-fns/fp/formatDuration.js | 9 + .../date-fns/fp/formatDurationWithOptions.cjs | 8 + .../fp/formatDurationWithOptions.d.cts | 5 + .../fp/formatDurationWithOptions.d.ts | 5 + .../date-fns/fp/formatDurationWithOptions.js | 9 + node_modules/date-fns/fp/formatISO.cjs | 10 + node_modules/date-fns/fp/formatISO.d.cts | 4 + node_modules/date-fns/fp/formatISO.d.ts | 4 + node_modules/date-fns/fp/formatISO.js | 9 + node_modules/date-fns/fp/formatISO9075.cjs | 10 + node_modules/date-fns/fp/formatISO9075.d.cts | 4 + node_modules/date-fns/fp/formatISO9075.d.ts | 4 + node_modules/date-fns/fp/formatISO9075.js | 9 + .../date-fns/fp/formatISO9075WithOptions.cjs | 8 + .../fp/formatISO9075WithOptions.d.cts | 5 + .../date-fns/fp/formatISO9075WithOptions.d.ts | 5 + .../date-fns/fp/formatISO9075WithOptions.js | 9 + .../date-fns/fp/formatISODuration.cjs | 10 + .../date-fns/fp/formatISODuration.d.cts | 4 + .../date-fns/fp/formatISODuration.d.ts | 4 + node_modules/date-fns/fp/formatISODuration.js | 9 + .../date-fns/fp/formatISOWithOptions.cjs | 8 + .../date-fns/fp/formatISOWithOptions.d.cts | 5 + .../date-fns/fp/formatISOWithOptions.d.ts | 5 + .../date-fns/fp/formatISOWithOptions.js | 9 + node_modules/date-fns/fp/formatRFC3339.cjs | 10 + node_modules/date-fns/fp/formatRFC3339.d.cts | 4 + node_modules/date-fns/fp/formatRFC3339.d.ts | 4 + node_modules/date-fns/fp/formatRFC3339.js | 9 + .../date-fns/fp/formatRFC3339WithOptions.cjs | 8 + .../fp/formatRFC3339WithOptions.d.cts | 5 + .../date-fns/fp/formatRFC3339WithOptions.d.ts | 5 + .../date-fns/fp/formatRFC3339WithOptions.js | 9 + node_modules/date-fns/fp/formatRFC7231.cjs | 10 + node_modules/date-fns/fp/formatRFC7231.d.cts | 4 + node_modules/date-fns/fp/formatRFC7231.d.ts | 4 + node_modules/date-fns/fp/formatRFC7231.js | 9 + node_modules/date-fns/fp/formatRelative.cjs | 10 + node_modules/date-fns/fp/formatRelative.d.cts | 5 + node_modules/date-fns/fp/formatRelative.d.ts | 5 + node_modules/date-fns/fp/formatRelative.js | 9 + .../date-fns/fp/formatRelativeWithOptions.cjs | 8 + .../fp/formatRelativeWithOptions.d.cts | 6 + .../fp/formatRelativeWithOptions.d.ts | 6 + .../date-fns/fp/formatRelativeWithOptions.js | 9 + .../date-fns/fp/formatWithOptions.cjs | 10 + .../date-fns/fp/formatWithOptions.d.cts | 6 + .../date-fns/fp/formatWithOptions.d.ts | 6 + node_modules/date-fns/fp/formatWithOptions.js | 9 + node_modules/date-fns/fp/fromUnixTime.cjs | 10 + node_modules/date-fns/fp/fromUnixTime.d.cts | 1 + node_modules/date-fns/fp/fromUnixTime.d.ts | 1 + node_modules/date-fns/fp/fromUnixTime.js | 9 + .../date-fns/fp/fromUnixTimeWithOptions.cjs | 8 + .../date-fns/fp/fromUnixTimeWithOptions.d.cts | 5 + .../date-fns/fp/fromUnixTimeWithOptions.d.ts | 5 + .../date-fns/fp/fromUnixTimeWithOptions.js | 9 + node_modules/date-fns/fp/getDate.cjs | 7 + node_modules/date-fns/fp/getDate.d.cts | 4 + node_modules/date-fns/fp/getDate.d.ts | 4 + node_modules/date-fns/fp/getDate.js | 9 + .../date-fns/fp/getDateWithOptions.cjs | 8 + .../date-fns/fp/getDateWithOptions.d.cts | 5 + .../date-fns/fp/getDateWithOptions.d.ts | 5 + .../date-fns/fp/getDateWithOptions.js | 9 + node_modules/date-fns/fp/getDay.cjs | 7 + node_modules/date-fns/fp/getDay.d.cts | 4 + node_modules/date-fns/fp/getDay.d.ts | 4 + node_modules/date-fns/fp/getDay.js | 9 + node_modules/date-fns/fp/getDayOfYear.cjs | 10 + node_modules/date-fns/fp/getDayOfYear.d.cts | 4 + node_modules/date-fns/fp/getDayOfYear.d.ts | 4 + node_modules/date-fns/fp/getDayOfYear.js | 9 + .../date-fns/fp/getDayOfYearWithOptions.cjs | 8 + .../date-fns/fp/getDayOfYearWithOptions.d.cts | 5 + .../date-fns/fp/getDayOfYearWithOptions.d.ts | 5 + .../date-fns/fp/getDayOfYearWithOptions.js | 9 + .../date-fns/fp/getDayWithOptions.cjs | 10 + .../date-fns/fp/getDayWithOptions.d.cts | 5 + .../date-fns/fp/getDayWithOptions.d.ts | 5 + node_modules/date-fns/fp/getDayWithOptions.js | 9 + node_modules/date-fns/fp/getDaysInMonth.cjs | 10 + node_modules/date-fns/fp/getDaysInMonth.d.cts | 4 + node_modules/date-fns/fp/getDaysInMonth.d.ts | 4 + node_modules/date-fns/fp/getDaysInMonth.js | 9 + .../date-fns/fp/getDaysInMonthWithOptions.cjs | 8 + .../fp/getDaysInMonthWithOptions.d.cts | 5 + .../fp/getDaysInMonthWithOptions.d.ts | 5 + .../date-fns/fp/getDaysInMonthWithOptions.js | 9 + node_modules/date-fns/fp/getDaysInYear.cjs | 10 + node_modules/date-fns/fp/getDaysInYear.d.cts | 4 + node_modules/date-fns/fp/getDaysInYear.d.ts | 4 + node_modules/date-fns/fp/getDaysInYear.js | 9 + .../date-fns/fp/getDaysInYearWithOptions.cjs | 8 + .../fp/getDaysInYearWithOptions.d.cts | 5 + .../date-fns/fp/getDaysInYearWithOptions.d.ts | 5 + .../date-fns/fp/getDaysInYearWithOptions.js | 9 + node_modules/date-fns/fp/getDecade.cjs | 10 + node_modules/date-fns/fp/getDecade.d.cts | 4 + node_modules/date-fns/fp/getDecade.d.ts | 4 + node_modules/date-fns/fp/getDecade.js | 9 + .../date-fns/fp/getDecadeWithOptions.cjs | 8 + .../date-fns/fp/getDecadeWithOptions.d.cts | 5 + .../date-fns/fp/getDecadeWithOptions.d.ts | 5 + .../date-fns/fp/getDecadeWithOptions.js | 9 + node_modules/date-fns/fp/getHours.cjs | 10 + node_modules/date-fns/fp/getHours.d.cts | 4 + node_modules/date-fns/fp/getHours.d.ts | 4 + node_modules/date-fns/fp/getHours.js | 9 + .../date-fns/fp/getHoursWithOptions.cjs | 8 + .../date-fns/fp/getHoursWithOptions.d.cts | 5 + .../date-fns/fp/getHoursWithOptions.d.ts | 5 + .../date-fns/fp/getHoursWithOptions.js | 9 + node_modules/date-fns/fp/getISODay.cjs | 10 + node_modules/date-fns/fp/getISODay.d.cts | 4 + node_modules/date-fns/fp/getISODay.d.ts | 4 + node_modules/date-fns/fp/getISODay.js | 9 + .../date-fns/fp/getISODayWithOptions.cjs | 8 + .../date-fns/fp/getISODayWithOptions.d.cts | 5 + .../date-fns/fp/getISODayWithOptions.d.ts | 5 + .../date-fns/fp/getISODayWithOptions.js | 9 + node_modules/date-fns/fp/getISOWeek.cjs | 10 + node_modules/date-fns/fp/getISOWeek.d.cts | 4 + node_modules/date-fns/fp/getISOWeek.d.ts | 4 + node_modules/date-fns/fp/getISOWeek.js | 9 + .../date-fns/fp/getISOWeekWithOptions.cjs | 8 + .../date-fns/fp/getISOWeekWithOptions.d.cts | 5 + .../date-fns/fp/getISOWeekWithOptions.d.ts | 5 + .../date-fns/fp/getISOWeekWithOptions.js | 9 + node_modules/date-fns/fp/getISOWeekYear.cjs | 10 + node_modules/date-fns/fp/getISOWeekYear.d.cts | 4 + node_modules/date-fns/fp/getISOWeekYear.d.ts | 4 + node_modules/date-fns/fp/getISOWeekYear.js | 9 + .../date-fns/fp/getISOWeekYearWithOptions.cjs | 8 + .../fp/getISOWeekYearWithOptions.d.cts | 5 + .../fp/getISOWeekYearWithOptions.d.ts | 5 + .../date-fns/fp/getISOWeekYearWithOptions.js | 9 + .../date-fns/fp/getISOWeeksInYear.cjs | 10 + .../date-fns/fp/getISOWeeksInYear.d.cts | 4 + .../date-fns/fp/getISOWeeksInYear.d.ts | 4 + node_modules/date-fns/fp/getISOWeeksInYear.js | 9 + .../fp/getISOWeeksInYearWithOptions.cjs | 8 + .../fp/getISOWeeksInYearWithOptions.d.cts | 6 + .../fp/getISOWeeksInYearWithOptions.d.ts | 6 + .../fp/getISOWeeksInYearWithOptions.js | 9 + node_modules/date-fns/fp/getMilliseconds.cjs | 10 + .../date-fns/fp/getMilliseconds.d.cts | 4 + node_modules/date-fns/fp/getMilliseconds.d.ts | 4 + node_modules/date-fns/fp/getMilliseconds.js | 9 + node_modules/date-fns/fp/getMinutes.cjs | 10 + node_modules/date-fns/fp/getMinutes.d.cts | 4 + node_modules/date-fns/fp/getMinutes.d.ts | 4 + node_modules/date-fns/fp/getMinutes.js | 9 + .../date-fns/fp/getMinutesWithOptions.cjs | 8 + .../date-fns/fp/getMinutesWithOptions.d.cts | 5 + .../date-fns/fp/getMinutesWithOptions.d.ts | 5 + .../date-fns/fp/getMinutesWithOptions.js | 9 + node_modules/date-fns/fp/getMonth.cjs | 10 + node_modules/date-fns/fp/getMonth.d.cts | 4 + node_modules/date-fns/fp/getMonth.d.ts | 4 + node_modules/date-fns/fp/getMonth.js | 9 + .../date-fns/fp/getMonthWithOptions.cjs | 8 + .../date-fns/fp/getMonthWithOptions.d.cts | 5 + .../date-fns/fp/getMonthWithOptions.d.ts | 5 + .../date-fns/fp/getMonthWithOptions.js | 9 + .../fp/getOverlappingDaysInIntervals.cjs | 8 + .../fp/getOverlappingDaysInIntervals.d.cts | 11 + .../fp/getOverlappingDaysInIntervals.d.ts | 11 + .../fp/getOverlappingDaysInIntervals.js | 9 + node_modules/date-fns/fp/getQuarter.cjs | 10 + node_modules/date-fns/fp/getQuarter.d.cts | 4 + node_modules/date-fns/fp/getQuarter.d.ts | 4 + node_modules/date-fns/fp/getQuarter.js | 9 + .../date-fns/fp/getQuarterWithOptions.cjs | 8 + .../date-fns/fp/getQuarterWithOptions.d.cts | 5 + .../date-fns/fp/getQuarterWithOptions.d.ts | 5 + .../date-fns/fp/getQuarterWithOptions.js | 9 + node_modules/date-fns/fp/getSeconds.cjs | 10 + node_modules/date-fns/fp/getSeconds.d.cts | 4 + node_modules/date-fns/fp/getSeconds.d.ts | 4 + node_modules/date-fns/fp/getSeconds.js | 9 + node_modules/date-fns/fp/getTime.cjs | 7 + node_modules/date-fns/fp/getTime.d.cts | 4 + node_modules/date-fns/fp/getTime.d.ts | 4 + node_modules/date-fns/fp/getTime.js | 9 + node_modules/date-fns/fp/getUnixTime.cjs | 10 + node_modules/date-fns/fp/getUnixTime.d.cts | 4 + node_modules/date-fns/fp/getUnixTime.d.ts | 4 + node_modules/date-fns/fp/getUnixTime.js | 9 + node_modules/date-fns/fp/getWeek.cjs | 7 + node_modules/date-fns/fp/getWeek.d.cts | 4 + node_modules/date-fns/fp/getWeek.d.ts | 4 + node_modules/date-fns/fp/getWeek.js | 9 + node_modules/date-fns/fp/getWeekOfMonth.cjs | 10 + node_modules/date-fns/fp/getWeekOfMonth.d.cts | 4 + node_modules/date-fns/fp/getWeekOfMonth.d.ts | 4 + node_modules/date-fns/fp/getWeekOfMonth.js | 9 + .../date-fns/fp/getWeekOfMonthWithOptions.cjs | 8 + .../fp/getWeekOfMonthWithOptions.d.cts | 5 + .../fp/getWeekOfMonthWithOptions.d.ts | 5 + .../date-fns/fp/getWeekOfMonthWithOptions.js | 9 + .../date-fns/fp/getWeekWithOptions.cjs | 8 + .../date-fns/fp/getWeekWithOptions.d.cts | 5 + .../date-fns/fp/getWeekWithOptions.d.ts | 5 + .../date-fns/fp/getWeekWithOptions.js | 9 + node_modules/date-fns/fp/getWeekYear.cjs | 10 + node_modules/date-fns/fp/getWeekYear.d.cts | 4 + node_modules/date-fns/fp/getWeekYear.d.ts | 4 + node_modules/date-fns/fp/getWeekYear.js | 9 + .../date-fns/fp/getWeekYearWithOptions.cjs | 8 + .../date-fns/fp/getWeekYearWithOptions.d.cts | 5 + .../date-fns/fp/getWeekYearWithOptions.d.ts | 5 + .../date-fns/fp/getWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/getWeeksInMonth.cjs | 10 + .../date-fns/fp/getWeeksInMonth.d.cts | 4 + node_modules/date-fns/fp/getWeeksInMonth.d.ts | 4 + node_modules/date-fns/fp/getWeeksInMonth.js | 9 + .../fp/getWeeksInMonthWithOptions.cjs | 8 + .../fp/getWeeksInMonthWithOptions.d.cts | 5 + .../fp/getWeeksInMonthWithOptions.d.ts | 5 + .../date-fns/fp/getWeeksInMonthWithOptions.js | 9 + node_modules/date-fns/fp/getYear.cjs | 7 + node_modules/date-fns/fp/getYear.d.cts | 4 + node_modules/date-fns/fp/getYear.d.ts | 4 + node_modules/date-fns/fp/getYear.js | 9 + .../date-fns/fp/getYearWithOptions.cjs | 8 + .../date-fns/fp/getYearWithOptions.d.cts | 5 + .../date-fns/fp/getYearWithOptions.d.ts | 5 + .../date-fns/fp/getYearWithOptions.js | 9 + .../date-fns/fp/hoursToMilliseconds.cjs | 8 + .../date-fns/fp/hoursToMilliseconds.d.cts | 4 + .../date-fns/fp/hoursToMilliseconds.d.ts | 4 + .../date-fns/fp/hoursToMilliseconds.js | 9 + node_modules/date-fns/fp/hoursToMinutes.cjs | 10 + node_modules/date-fns/fp/hoursToMinutes.d.cts | 4 + node_modules/date-fns/fp/hoursToMinutes.d.ts | 4 + node_modules/date-fns/fp/hoursToMinutes.js | 9 + node_modules/date-fns/fp/hoursToSeconds.cjs | 10 + node_modules/date-fns/fp/hoursToSeconds.d.cts | 4 + node_modules/date-fns/fp/hoursToSeconds.d.ts | 4 + node_modules/date-fns/fp/hoursToSeconds.js | 9 + node_modules/date-fns/fp/interval.cjs | 10 + node_modules/date-fns/fp/interval.d.cts | 9 + node_modules/date-fns/fp/interval.d.ts | 9 + node_modules/date-fns/fp/interval.js | 9 + .../date-fns/fp/intervalToDuration.cjs | 8 + .../date-fns/fp/intervalToDuration.d.cts | 7 + .../date-fns/fp/intervalToDuration.d.ts | 7 + .../date-fns/fp/intervalToDuration.js | 9 + .../fp/intervalToDurationWithOptions.cjs | 8 + .../fp/intervalToDurationWithOptions.d.cts | 9 + .../fp/intervalToDurationWithOptions.d.ts | 9 + .../fp/intervalToDurationWithOptions.js | 9 + .../date-fns/fp/intervalWithOptions.cjs | 8 + .../date-fns/fp/intervalWithOptions.d.cts | 10 + .../date-fns/fp/intervalWithOptions.d.ts | 10 + .../date-fns/fp/intervalWithOptions.js | 9 + node_modules/date-fns/fp/intlFormat.cjs | 10 + node_modules/date-fns/fp/intlFormat.d.cts | 6 + node_modules/date-fns/fp/intlFormat.d.ts | 6 + node_modules/date-fns/fp/intlFormat.js | 9 + .../date-fns/fp/intlFormatDistance.cjs | 8 + .../date-fns/fp/intlFormatDistance.d.cts | 5 + .../date-fns/fp/intlFormatDistance.d.ts | 5 + .../date-fns/fp/intlFormatDistance.js | 9 + .../fp/intlFormatDistanceWithOptions.cjs | 8 + .../fp/intlFormatDistanceWithOptions.d.cts | 7 + .../fp/intlFormatDistanceWithOptions.d.ts | 7 + .../fp/intlFormatDistanceWithOptions.js | 9 + node_modules/date-fns/fp/isAfter.cjs | 7 + node_modules/date-fns/fp/isAfter.d.cts | 5 + node_modules/date-fns/fp/isAfter.d.ts | 5 + node_modules/date-fns/fp/isAfter.js | 9 + node_modules/date-fns/fp/isBefore.cjs | 10 + node_modules/date-fns/fp/isBefore.d.cts | 5 + node_modules/date-fns/fp/isBefore.d.ts | 5 + node_modules/date-fns/fp/isBefore.js | 9 + node_modules/date-fns/fp/isDate.cjs | 7 + node_modules/date-fns/fp/isDate.d.cts | 1 + node_modules/date-fns/fp/isDate.d.ts | 1 + node_modules/date-fns/fp/isDate.js | 9 + node_modules/date-fns/fp/isEqual.cjs | 7 + node_modules/date-fns/fp/isEqual.d.cts | 5 + node_modules/date-fns/fp/isEqual.d.ts | 5 + node_modules/date-fns/fp/isEqual.js | 9 + node_modules/date-fns/fp/isExists.cjs | 10 + node_modules/date-fns/fp/isExists.d.cts | 6 + node_modules/date-fns/fp/isExists.d.ts | 6 + node_modules/date-fns/fp/isExists.js | 9 + .../date-fns/fp/isFirstDayOfMonth.cjs | 10 + .../date-fns/fp/isFirstDayOfMonth.d.cts | 4 + .../date-fns/fp/isFirstDayOfMonth.d.ts | 4 + node_modules/date-fns/fp/isFirstDayOfMonth.js | 9 + .../fp/isFirstDayOfMonthWithOptions.cjs | 8 + .../fp/isFirstDayOfMonthWithOptions.d.cts | 6 + .../fp/isFirstDayOfMonthWithOptions.d.ts | 6 + .../fp/isFirstDayOfMonthWithOptions.js | 9 + node_modules/date-fns/fp/isFriday.cjs | 10 + node_modules/date-fns/fp/isFriday.d.cts | 4 + node_modules/date-fns/fp/isFriday.d.ts | 4 + node_modules/date-fns/fp/isFriday.js | 9 + .../date-fns/fp/isFridayWithOptions.cjs | 8 + .../date-fns/fp/isFridayWithOptions.d.cts | 5 + .../date-fns/fp/isFridayWithOptions.d.ts | 5 + .../date-fns/fp/isFridayWithOptions.js | 9 + node_modules/date-fns/fp/isLastDayOfMonth.cjs | 10 + .../date-fns/fp/isLastDayOfMonth.d.cts | 4 + .../date-fns/fp/isLastDayOfMonth.d.ts | 4 + node_modules/date-fns/fp/isLastDayOfMonth.js | 9 + .../fp/isLastDayOfMonthWithOptions.cjs | 8 + .../fp/isLastDayOfMonthWithOptions.d.cts | 5 + .../fp/isLastDayOfMonthWithOptions.d.ts | 5 + .../fp/isLastDayOfMonthWithOptions.js | 9 + node_modules/date-fns/fp/isLeapYear.cjs | 10 + node_modules/date-fns/fp/isLeapYear.d.cts | 4 + node_modules/date-fns/fp/isLeapYear.d.ts | 4 + node_modules/date-fns/fp/isLeapYear.js | 9 + .../date-fns/fp/isLeapYearWithOptions.cjs | 8 + .../date-fns/fp/isLeapYearWithOptions.d.cts | 5 + .../date-fns/fp/isLeapYearWithOptions.d.ts | 5 + .../date-fns/fp/isLeapYearWithOptions.js | 9 + node_modules/date-fns/fp/isMatch.cjs | 7 + node_modules/date-fns/fp/isMatch.d.cts | 5 + node_modules/date-fns/fp/isMatch.d.ts | 5 + node_modules/date-fns/fp/isMatch.js | 9 + .../date-fns/fp/isMatchWithOptions.cjs | 8 + .../date-fns/fp/isMatchWithOptions.d.cts | 6 + .../date-fns/fp/isMatchWithOptions.d.ts | 6 + .../date-fns/fp/isMatchWithOptions.js | 9 + node_modules/date-fns/fp/isMonday.cjs | 10 + node_modules/date-fns/fp/isMonday.d.cts | 4 + node_modules/date-fns/fp/isMonday.d.ts | 4 + node_modules/date-fns/fp/isMonday.js | 9 + .../date-fns/fp/isMondayWithOptions.cjs | 8 + .../date-fns/fp/isMondayWithOptions.d.cts | 5 + .../date-fns/fp/isMondayWithOptions.d.ts | 5 + .../date-fns/fp/isMondayWithOptions.js | 9 + node_modules/date-fns/fp/isSameDay.cjs | 10 + node_modules/date-fns/fp/isSameDay.d.cts | 5 + node_modules/date-fns/fp/isSameDay.d.ts | 5 + node_modules/date-fns/fp/isSameDay.js | 9 + .../date-fns/fp/isSameDayWithOptions.cjs | 8 + .../date-fns/fp/isSameDayWithOptions.d.cts | 6 + .../date-fns/fp/isSameDayWithOptions.d.ts | 6 + .../date-fns/fp/isSameDayWithOptions.js | 9 + node_modules/date-fns/fp/isSameHour.cjs | 10 + node_modules/date-fns/fp/isSameHour.d.cts | 5 + node_modules/date-fns/fp/isSameHour.d.ts | 5 + node_modules/date-fns/fp/isSameHour.js | 9 + .../date-fns/fp/isSameHourWithOptions.cjs | 8 + .../date-fns/fp/isSameHourWithOptions.d.cts | 6 + .../date-fns/fp/isSameHourWithOptions.d.ts | 6 + .../date-fns/fp/isSameHourWithOptions.js | 9 + node_modules/date-fns/fp/isSameISOWeek.cjs | 10 + node_modules/date-fns/fp/isSameISOWeek.d.cts | 5 + node_modules/date-fns/fp/isSameISOWeek.d.ts | 5 + node_modules/date-fns/fp/isSameISOWeek.js | 9 + .../date-fns/fp/isSameISOWeekWithOptions.cjs | 8 + .../fp/isSameISOWeekWithOptions.d.cts | 6 + .../date-fns/fp/isSameISOWeekWithOptions.d.ts | 6 + .../date-fns/fp/isSameISOWeekWithOptions.js | 9 + .../date-fns/fp/isSameISOWeekYear.cjs | 10 + .../date-fns/fp/isSameISOWeekYear.d.cts | 5 + .../date-fns/fp/isSameISOWeekYear.d.ts | 5 + node_modules/date-fns/fp/isSameISOWeekYear.js | 9 + .../fp/isSameISOWeekYearWithOptions.cjs | 8 + .../fp/isSameISOWeekYearWithOptions.d.cts | 7 + .../fp/isSameISOWeekYearWithOptions.d.ts | 7 + .../fp/isSameISOWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/isSameMinute.cjs | 10 + node_modules/date-fns/fp/isSameMinute.d.cts | 5 + node_modules/date-fns/fp/isSameMinute.d.ts | 5 + node_modules/date-fns/fp/isSameMinute.js | 9 + node_modules/date-fns/fp/isSameMonth.cjs | 10 + node_modules/date-fns/fp/isSameMonth.d.cts | 5 + node_modules/date-fns/fp/isSameMonth.d.ts | 5 + node_modules/date-fns/fp/isSameMonth.js | 9 + .../date-fns/fp/isSameMonthWithOptions.cjs | 8 + .../date-fns/fp/isSameMonthWithOptions.d.cts | 6 + .../date-fns/fp/isSameMonthWithOptions.d.ts | 6 + .../date-fns/fp/isSameMonthWithOptions.js | 9 + node_modules/date-fns/fp/isSameQuarter.cjs | 10 + node_modules/date-fns/fp/isSameQuarter.d.cts | 5 + node_modules/date-fns/fp/isSameQuarter.d.ts | 5 + node_modules/date-fns/fp/isSameQuarter.js | 9 + .../date-fns/fp/isSameQuarterWithOptions.cjs | 8 + .../fp/isSameQuarterWithOptions.d.cts | 6 + .../date-fns/fp/isSameQuarterWithOptions.d.ts | 6 + .../date-fns/fp/isSameQuarterWithOptions.js | 9 + node_modules/date-fns/fp/isSameSecond.cjs | 10 + node_modules/date-fns/fp/isSameSecond.d.cts | 5 + node_modules/date-fns/fp/isSameSecond.d.ts | 5 + node_modules/date-fns/fp/isSameSecond.js | 9 + node_modules/date-fns/fp/isSameWeek.cjs | 10 + node_modules/date-fns/fp/isSameWeek.d.cts | 5 + node_modules/date-fns/fp/isSameWeek.d.ts | 5 + node_modules/date-fns/fp/isSameWeek.js | 9 + .../date-fns/fp/isSameWeekWithOptions.cjs | 8 + .../date-fns/fp/isSameWeekWithOptions.d.cts | 6 + .../date-fns/fp/isSameWeekWithOptions.d.ts | 6 + .../date-fns/fp/isSameWeekWithOptions.js | 9 + node_modules/date-fns/fp/isSameYear.cjs | 10 + node_modules/date-fns/fp/isSameYear.d.cts | 5 + node_modules/date-fns/fp/isSameYear.d.ts | 5 + node_modules/date-fns/fp/isSameYear.js | 9 + .../date-fns/fp/isSameYearWithOptions.cjs | 8 + .../date-fns/fp/isSameYearWithOptions.d.cts | 6 + .../date-fns/fp/isSameYearWithOptions.d.ts | 6 + .../date-fns/fp/isSameYearWithOptions.js | 9 + node_modules/date-fns/fp/isSaturday.cjs | 10 + node_modules/date-fns/fp/isSaturday.d.cts | 4 + node_modules/date-fns/fp/isSaturday.d.ts | 4 + node_modules/date-fns/fp/isSaturday.js | 9 + .../date-fns/fp/isSaturdayWithOptions.cjs | 8 + .../date-fns/fp/isSaturdayWithOptions.d.cts | 5 + .../date-fns/fp/isSaturdayWithOptions.d.ts | 5 + .../date-fns/fp/isSaturdayWithOptions.js | 9 + node_modules/date-fns/fp/isSunday.cjs | 10 + node_modules/date-fns/fp/isSunday.d.cts | 4 + node_modules/date-fns/fp/isSunday.d.ts | 4 + node_modules/date-fns/fp/isSunday.js | 9 + .../date-fns/fp/isSundayWithOptions.cjs | 8 + .../date-fns/fp/isSundayWithOptions.d.cts | 5 + .../date-fns/fp/isSundayWithOptions.d.ts | 5 + .../date-fns/fp/isSundayWithOptions.js | 9 + node_modules/date-fns/fp/isThursday.cjs | 10 + node_modules/date-fns/fp/isThursday.d.cts | 4 + node_modules/date-fns/fp/isThursday.d.ts | 4 + node_modules/date-fns/fp/isThursday.js | 9 + .../date-fns/fp/isThursdayWithOptions.cjs | 8 + .../date-fns/fp/isThursdayWithOptions.d.cts | 5 + .../date-fns/fp/isThursdayWithOptions.d.ts | 5 + .../date-fns/fp/isThursdayWithOptions.js | 9 + node_modules/date-fns/fp/isTuesday.cjs | 10 + node_modules/date-fns/fp/isTuesday.d.cts | 4 + node_modules/date-fns/fp/isTuesday.d.ts | 4 + node_modules/date-fns/fp/isTuesday.js | 9 + .../date-fns/fp/isTuesdayWithOptions.cjs | 8 + .../date-fns/fp/isTuesdayWithOptions.d.cts | 5 + .../date-fns/fp/isTuesdayWithOptions.d.ts | 5 + .../date-fns/fp/isTuesdayWithOptions.js | 9 + node_modules/date-fns/fp/isValid.cjs | 7 + node_modules/date-fns/fp/isValid.d.cts | 1 + node_modules/date-fns/fp/isValid.d.ts | 1 + node_modules/date-fns/fp/isValid.js | 9 + node_modules/date-fns/fp/isWednesday.cjs | 10 + node_modules/date-fns/fp/isWednesday.d.cts | 4 + node_modules/date-fns/fp/isWednesday.d.ts | 4 + node_modules/date-fns/fp/isWednesday.js | 9 + .../date-fns/fp/isWednesdayWithOptions.cjs | 8 + .../date-fns/fp/isWednesdayWithOptions.d.cts | 5 + .../date-fns/fp/isWednesdayWithOptions.d.ts | 5 + .../date-fns/fp/isWednesdayWithOptions.js | 9 + node_modules/date-fns/fp/isWeekend.cjs | 10 + node_modules/date-fns/fp/isWeekend.d.cts | 4 + node_modules/date-fns/fp/isWeekend.d.ts | 4 + node_modules/date-fns/fp/isWeekend.js | 9 + .../date-fns/fp/isWeekendWithOptions.cjs | 8 + .../date-fns/fp/isWeekendWithOptions.d.cts | 5 + .../date-fns/fp/isWeekendWithOptions.d.ts | 5 + .../date-fns/fp/isWeekendWithOptions.js | 9 + node_modules/date-fns/fp/isWithinInterval.cjs | 10 + .../date-fns/fp/isWithinInterval.d.cts | 8 + .../date-fns/fp/isWithinInterval.d.ts | 8 + node_modules/date-fns/fp/isWithinInterval.js | 9 + .../fp/isWithinIntervalWithOptions.cjs | 8 + .../fp/isWithinIntervalWithOptions.d.cts | 9 + .../fp/isWithinIntervalWithOptions.d.ts | 9 + .../fp/isWithinIntervalWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfDecade.cjs | 10 + .../date-fns/fp/lastDayOfDecade.d.cts | 4 + node_modules/date-fns/fp/lastDayOfDecade.d.ts | 4 + node_modules/date-fns/fp/lastDayOfDecade.js | 9 + .../fp/lastDayOfDecadeWithOptions.cjs | 8 + .../fp/lastDayOfDecadeWithOptions.d.cts | 6 + .../fp/lastDayOfDecadeWithOptions.d.ts | 6 + .../date-fns/fp/lastDayOfDecadeWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfISOWeek.cjs | 10 + .../date-fns/fp/lastDayOfISOWeek.d.cts | 4 + .../date-fns/fp/lastDayOfISOWeek.d.ts | 4 + node_modules/date-fns/fp/lastDayOfISOWeek.js | 9 + .../fp/lastDayOfISOWeekWithOptions.cjs | 8 + .../fp/lastDayOfISOWeekWithOptions.d.cts | 6 + .../fp/lastDayOfISOWeekWithOptions.d.ts | 6 + .../fp/lastDayOfISOWeekWithOptions.js | 9 + .../date-fns/fp/lastDayOfISOWeekYear.cjs | 8 + .../date-fns/fp/lastDayOfISOWeekYear.d.cts | 4 + .../date-fns/fp/lastDayOfISOWeekYear.d.ts | 4 + .../date-fns/fp/lastDayOfISOWeekYear.js | 9 + .../fp/lastDayOfISOWeekYearWithOptions.cjs | 11 + .../fp/lastDayOfISOWeekYearWithOptions.d.cts | 6 + .../fp/lastDayOfISOWeekYearWithOptions.d.ts | 6 + .../fp/lastDayOfISOWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfMonth.cjs | 10 + node_modules/date-fns/fp/lastDayOfMonth.d.cts | 4 + node_modules/date-fns/fp/lastDayOfMonth.d.ts | 4 + node_modules/date-fns/fp/lastDayOfMonth.js | 9 + .../date-fns/fp/lastDayOfMonthWithOptions.cjs | 8 + .../fp/lastDayOfMonthWithOptions.d.cts | 6 + .../fp/lastDayOfMonthWithOptions.d.ts | 6 + .../date-fns/fp/lastDayOfMonthWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfQuarter.cjs | 10 + .../date-fns/fp/lastDayOfQuarter.d.cts | 4 + .../date-fns/fp/lastDayOfQuarter.d.ts | 4 + node_modules/date-fns/fp/lastDayOfQuarter.js | 9 + .../fp/lastDayOfQuarterWithOptions.cjs | 8 + .../fp/lastDayOfQuarterWithOptions.d.cts | 6 + .../fp/lastDayOfQuarterWithOptions.d.ts | 6 + .../fp/lastDayOfQuarterWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfWeek.cjs | 10 + node_modules/date-fns/fp/lastDayOfWeek.d.cts | 4 + node_modules/date-fns/fp/lastDayOfWeek.d.ts | 4 + node_modules/date-fns/fp/lastDayOfWeek.js | 9 + .../date-fns/fp/lastDayOfWeekWithOptions.cjs | 8 + .../fp/lastDayOfWeekWithOptions.d.cts | 5 + .../date-fns/fp/lastDayOfWeekWithOptions.d.ts | 5 + .../date-fns/fp/lastDayOfWeekWithOptions.js | 9 + node_modules/date-fns/fp/lastDayOfYear.cjs | 10 + node_modules/date-fns/fp/lastDayOfYear.d.cts | 4 + node_modules/date-fns/fp/lastDayOfYear.d.ts | 4 + node_modules/date-fns/fp/lastDayOfYear.js | 9 + .../date-fns/fp/lastDayOfYearWithOptions.cjs | 8 + .../fp/lastDayOfYearWithOptions.d.cts | 5 + .../date-fns/fp/lastDayOfYearWithOptions.d.ts | 5 + .../date-fns/fp/lastDayOfYearWithOptions.js | 9 + node_modules/date-fns/fp/lightFormat.cjs | 10 + node_modules/date-fns/fp/lightFormat.d.cts | 5 + node_modules/date-fns/fp/lightFormat.d.ts | 5 + node_modules/date-fns/fp/lightFormat.js | 9 + node_modules/date-fns/fp/max.cjs | 7 + node_modules/date-fns/fp/max.d.cts | 4 + node_modules/date-fns/fp/max.d.ts | 4 + node_modules/date-fns/fp/max.js | 9 + node_modules/date-fns/fp/maxWithOptions.cjs | 10 + node_modules/date-fns/fp/maxWithOptions.d.cts | 5 + node_modules/date-fns/fp/maxWithOptions.d.ts | 5 + node_modules/date-fns/fp/maxWithOptions.js | 9 + node_modules/date-fns/fp/milliseconds.cjs | 10 + node_modules/date-fns/fp/milliseconds.d.cts | 4 + node_modules/date-fns/fp/milliseconds.d.ts | 4 + node_modules/date-fns/fp/milliseconds.js | 9 + .../date-fns/fp/millisecondsToHours.cjs | 8 + .../date-fns/fp/millisecondsToHours.d.cts | 4 + .../date-fns/fp/millisecondsToHours.d.ts | 4 + .../date-fns/fp/millisecondsToHours.js | 9 + .../date-fns/fp/millisecondsToMinutes.cjs | 8 + .../date-fns/fp/millisecondsToMinutes.d.cts | 4 + .../date-fns/fp/millisecondsToMinutes.d.ts | 4 + .../date-fns/fp/millisecondsToMinutes.js | 9 + .../date-fns/fp/millisecondsToSeconds.cjs | 8 + .../date-fns/fp/millisecondsToSeconds.d.cts | 4 + .../date-fns/fp/millisecondsToSeconds.d.ts | 4 + .../date-fns/fp/millisecondsToSeconds.js | 9 + node_modules/date-fns/fp/min.cjs | 7 + node_modules/date-fns/fp/min.d.cts | 4 + node_modules/date-fns/fp/min.d.ts | 4 + node_modules/date-fns/fp/min.js | 9 + node_modules/date-fns/fp/minWithOptions.cjs | 10 + node_modules/date-fns/fp/minWithOptions.d.cts | 5 + node_modules/date-fns/fp/minWithOptions.d.ts | 5 + node_modules/date-fns/fp/minWithOptions.js | 9 + node_modules/date-fns/fp/minutesToHours.cjs | 10 + node_modules/date-fns/fp/minutesToHours.d.cts | 4 + node_modules/date-fns/fp/minutesToHours.d.ts | 4 + node_modules/date-fns/fp/minutesToHours.js | 9 + .../date-fns/fp/minutesToMilliseconds.cjs | 8 + .../date-fns/fp/minutesToMilliseconds.d.cts | 4 + .../date-fns/fp/minutesToMilliseconds.d.ts | 4 + .../date-fns/fp/minutesToMilliseconds.js | 9 + node_modules/date-fns/fp/minutesToSeconds.cjs | 10 + .../date-fns/fp/minutesToSeconds.d.cts | 4 + .../date-fns/fp/minutesToSeconds.d.ts | 4 + node_modules/date-fns/fp/minutesToSeconds.js | 9 + node_modules/date-fns/fp/monthsToQuarters.cjs | 10 + .../date-fns/fp/monthsToQuarters.d.cts | 4 + .../date-fns/fp/monthsToQuarters.d.ts | 4 + node_modules/date-fns/fp/monthsToQuarters.js | 9 + node_modules/date-fns/fp/monthsToYears.cjs | 10 + node_modules/date-fns/fp/monthsToYears.d.cts | 1 + node_modules/date-fns/fp/monthsToYears.d.ts | 1 + node_modules/date-fns/fp/monthsToYears.js | 9 + node_modules/date-fns/fp/nextDay.cjs | 7 + node_modules/date-fns/fp/nextDay.d.cts | 5 + node_modules/date-fns/fp/nextDay.d.ts | 5 + node_modules/date-fns/fp/nextDay.js | 9 + .../date-fns/fp/nextDayWithOptions.cjs | 8 + .../date-fns/fp/nextDayWithOptions.d.cts | 6 + .../date-fns/fp/nextDayWithOptions.d.ts | 6 + .../date-fns/fp/nextDayWithOptions.js | 9 + node_modules/date-fns/fp/nextFriday.cjs | 10 + node_modules/date-fns/fp/nextFriday.d.cts | 4 + node_modules/date-fns/fp/nextFriday.d.ts | 4 + node_modules/date-fns/fp/nextFriday.js | 9 + .../date-fns/fp/nextFridayWithOptions.cjs | 8 + .../date-fns/fp/nextFridayWithOptions.d.cts | 5 + .../date-fns/fp/nextFridayWithOptions.d.ts | 5 + .../date-fns/fp/nextFridayWithOptions.js | 9 + node_modules/date-fns/fp/nextMonday.cjs | 10 + node_modules/date-fns/fp/nextMonday.d.cts | 4 + node_modules/date-fns/fp/nextMonday.d.ts | 4 + node_modules/date-fns/fp/nextMonday.js | 9 + .../date-fns/fp/nextMondayWithOptions.cjs | 8 + .../date-fns/fp/nextMondayWithOptions.d.cts | 5 + .../date-fns/fp/nextMondayWithOptions.d.ts | 5 + .../date-fns/fp/nextMondayWithOptions.js | 9 + node_modules/date-fns/fp/nextSaturday.cjs | 10 + node_modules/date-fns/fp/nextSaturday.d.cts | 4 + node_modules/date-fns/fp/nextSaturday.d.ts | 4 + node_modules/date-fns/fp/nextSaturday.js | 9 + .../date-fns/fp/nextSaturdayWithOptions.cjs | 8 + .../date-fns/fp/nextSaturdayWithOptions.d.cts | 5 + .../date-fns/fp/nextSaturdayWithOptions.d.ts | 5 + .../date-fns/fp/nextSaturdayWithOptions.js | 9 + node_modules/date-fns/fp/nextSunday.cjs | 10 + node_modules/date-fns/fp/nextSunday.d.cts | 4 + node_modules/date-fns/fp/nextSunday.d.ts | 4 + node_modules/date-fns/fp/nextSunday.js | 9 + .../date-fns/fp/nextSundayWithOptions.cjs | 8 + .../date-fns/fp/nextSundayWithOptions.d.cts | 5 + .../date-fns/fp/nextSundayWithOptions.d.ts | 5 + .../date-fns/fp/nextSundayWithOptions.js | 9 + node_modules/date-fns/fp/nextThursday.cjs | 10 + node_modules/date-fns/fp/nextThursday.d.cts | 4 + node_modules/date-fns/fp/nextThursday.d.ts | 4 + node_modules/date-fns/fp/nextThursday.js | 9 + .../date-fns/fp/nextThursdayWithOptions.cjs | 8 + .../date-fns/fp/nextThursdayWithOptions.d.cts | 5 + .../date-fns/fp/nextThursdayWithOptions.d.ts | 5 + .../date-fns/fp/nextThursdayWithOptions.js | 9 + node_modules/date-fns/fp/nextTuesday.cjs | 10 + node_modules/date-fns/fp/nextTuesday.d.cts | 4 + node_modules/date-fns/fp/nextTuesday.d.ts | 4 + node_modules/date-fns/fp/nextTuesday.js | 9 + .../date-fns/fp/nextTuesdayWithOptions.cjs | 8 + .../date-fns/fp/nextTuesdayWithOptions.d.cts | 5 + .../date-fns/fp/nextTuesdayWithOptions.d.ts | 5 + .../date-fns/fp/nextTuesdayWithOptions.js | 9 + node_modules/date-fns/fp/nextWednesday.cjs | 10 + node_modules/date-fns/fp/nextWednesday.d.cts | 4 + node_modules/date-fns/fp/nextWednesday.d.ts | 4 + node_modules/date-fns/fp/nextWednesday.js | 9 + .../date-fns/fp/nextWednesdayWithOptions.cjs | 8 + .../fp/nextWednesdayWithOptions.d.cts | 5 + .../date-fns/fp/nextWednesdayWithOptions.d.ts | 5 + .../date-fns/fp/nextWednesdayWithOptions.js | 9 + node_modules/date-fns/fp/parse.cjs | 7 + node_modules/date-fns/fp/parse.d.cts | 6 + node_modules/date-fns/fp/parse.d.ts | 6 + node_modules/date-fns/fp/parse.js | 9 + node_modules/date-fns/fp/parseISO.cjs | 10 + node_modules/date-fns/fp/parseISO.d.cts | 1 + node_modules/date-fns/fp/parseISO.d.ts | 1 + node_modules/date-fns/fp/parseISO.js | 9 + .../date-fns/fp/parseISOWithOptions.cjs | 8 + .../date-fns/fp/parseISOWithOptions.d.cts | 5 + .../date-fns/fp/parseISOWithOptions.d.ts | 5 + .../date-fns/fp/parseISOWithOptions.js | 9 + node_modules/date-fns/fp/parseJSON.cjs | 10 + node_modules/date-fns/fp/parseJSON.d.cts | 1 + node_modules/date-fns/fp/parseJSON.d.ts | 1 + node_modules/date-fns/fp/parseJSON.js | 9 + .../date-fns/fp/parseJSONWithOptions.cjs | 8 + .../date-fns/fp/parseJSONWithOptions.d.cts | 5 + .../date-fns/fp/parseJSONWithOptions.d.ts | 5 + .../date-fns/fp/parseJSONWithOptions.js | 9 + node_modules/date-fns/fp/parseWithOptions.cjs | 10 + .../date-fns/fp/parseWithOptions.d.cts | 7 + .../date-fns/fp/parseWithOptions.d.ts | 7 + node_modules/date-fns/fp/parseWithOptions.js | 9 + node_modules/date-fns/fp/previousDay.cjs | 10 + node_modules/date-fns/fp/previousDay.d.cts | 5 + node_modules/date-fns/fp/previousDay.d.ts | 5 + node_modules/date-fns/fp/previousDay.js | 9 + .../date-fns/fp/previousDayWithOptions.cjs | 8 + .../date-fns/fp/previousDayWithOptions.d.cts | 6 + .../date-fns/fp/previousDayWithOptions.d.ts | 6 + .../date-fns/fp/previousDayWithOptions.js | 9 + node_modules/date-fns/fp/previousFriday.cjs | 10 + node_modules/date-fns/fp/previousFriday.d.cts | 4 + node_modules/date-fns/fp/previousFriday.d.ts | 4 + node_modules/date-fns/fp/previousFriday.js | 9 + .../date-fns/fp/previousFridayWithOptions.cjs | 8 + .../fp/previousFridayWithOptions.d.cts | 6 + .../fp/previousFridayWithOptions.d.ts | 6 + .../date-fns/fp/previousFridayWithOptions.js | 9 + node_modules/date-fns/fp/previousMonday.cjs | 10 + node_modules/date-fns/fp/previousMonday.d.cts | 4 + node_modules/date-fns/fp/previousMonday.d.ts | 4 + node_modules/date-fns/fp/previousMonday.js | 9 + .../date-fns/fp/previousMondayWithOptions.cjs | 8 + .../fp/previousMondayWithOptions.d.cts | 6 + .../fp/previousMondayWithOptions.d.ts | 6 + .../date-fns/fp/previousMondayWithOptions.js | 9 + node_modules/date-fns/fp/previousSaturday.cjs | 10 + .../date-fns/fp/previousSaturday.d.cts | 4 + .../date-fns/fp/previousSaturday.d.ts | 4 + node_modules/date-fns/fp/previousSaturday.js | 9 + .../fp/previousSaturdayWithOptions.cjs | 8 + .../fp/previousSaturdayWithOptions.d.cts | 6 + .../fp/previousSaturdayWithOptions.d.ts | 6 + .../fp/previousSaturdayWithOptions.js | 9 + node_modules/date-fns/fp/previousSunday.cjs | 10 + node_modules/date-fns/fp/previousSunday.d.cts | 4 + node_modules/date-fns/fp/previousSunday.d.ts | 4 + node_modules/date-fns/fp/previousSunday.js | 9 + .../date-fns/fp/previousSundayWithOptions.cjs | 8 + .../fp/previousSundayWithOptions.d.cts | 6 + .../fp/previousSundayWithOptions.d.ts | 6 + .../date-fns/fp/previousSundayWithOptions.js | 9 + node_modules/date-fns/fp/previousThursday.cjs | 10 + .../date-fns/fp/previousThursday.d.cts | 4 + .../date-fns/fp/previousThursday.d.ts | 4 + node_modules/date-fns/fp/previousThursday.js | 9 + .../fp/previousThursdayWithOptions.cjs | 8 + .../fp/previousThursdayWithOptions.d.cts | 6 + .../fp/previousThursdayWithOptions.d.ts | 6 + .../fp/previousThursdayWithOptions.js | 9 + node_modules/date-fns/fp/previousTuesday.cjs | 10 + .../date-fns/fp/previousTuesday.d.cts | 4 + node_modules/date-fns/fp/previousTuesday.d.ts | 4 + node_modules/date-fns/fp/previousTuesday.js | 9 + .../fp/previousTuesdayWithOptions.cjs | 8 + .../fp/previousTuesdayWithOptions.d.cts | 6 + .../fp/previousTuesdayWithOptions.d.ts | 6 + .../date-fns/fp/previousTuesdayWithOptions.js | 9 + .../date-fns/fp/previousWednesday.cjs | 10 + .../date-fns/fp/previousWednesday.d.cts | 4 + .../date-fns/fp/previousWednesday.d.ts | 4 + node_modules/date-fns/fp/previousWednesday.js | 9 + .../fp/previousWednesdayWithOptions.cjs | 8 + .../fp/previousWednesdayWithOptions.d.cts | 6 + .../fp/previousWednesdayWithOptions.d.ts | 6 + .../fp/previousWednesdayWithOptions.js | 9 + node_modules/date-fns/fp/quartersToMonths.cjs | 10 + .../date-fns/fp/quartersToMonths.d.cts | 4 + .../date-fns/fp/quartersToMonths.d.ts | 4 + node_modules/date-fns/fp/quartersToMonths.js | 9 + node_modules/date-fns/fp/quartersToYears.cjs | 10 + .../date-fns/fp/quartersToYears.d.cts | 4 + node_modules/date-fns/fp/quartersToYears.d.ts | 4 + node_modules/date-fns/fp/quartersToYears.js | 9 + .../date-fns/fp/roundToNearestHours.cjs | 8 + .../date-fns/fp/roundToNearestHours.d.cts | 4 + .../date-fns/fp/roundToNearestHours.d.ts | 4 + .../date-fns/fp/roundToNearestHours.js | 9 + .../fp/roundToNearestHoursWithOptions.cjs | 8 + .../fp/roundToNearestHoursWithOptions.d.cts | 6 + .../fp/roundToNearestHoursWithOptions.d.ts | 6 + .../fp/roundToNearestHoursWithOptions.js | 9 + .../date-fns/fp/roundToNearestMinutes.cjs | 8 + .../date-fns/fp/roundToNearestMinutes.d.cts | 4 + .../date-fns/fp/roundToNearestMinutes.d.ts | 4 + .../date-fns/fp/roundToNearestMinutes.js | 9 + .../fp/roundToNearestMinutesWithOptions.cjs | 11 + .../fp/roundToNearestMinutesWithOptions.d.cts | 6 + .../fp/roundToNearestMinutesWithOptions.d.ts | 6 + .../fp/roundToNearestMinutesWithOptions.js | 9 + node_modules/date-fns/fp/secondsToHours.cjs | 10 + node_modules/date-fns/fp/secondsToHours.d.cts | 4 + node_modules/date-fns/fp/secondsToHours.d.ts | 4 + node_modules/date-fns/fp/secondsToHours.js | 9 + .../date-fns/fp/secondsToMilliseconds.cjs | 8 + .../date-fns/fp/secondsToMilliseconds.d.cts | 4 + .../date-fns/fp/secondsToMilliseconds.d.ts | 4 + .../date-fns/fp/secondsToMilliseconds.js | 9 + node_modules/date-fns/fp/secondsToMinutes.cjs | 10 + .../date-fns/fp/secondsToMinutes.d.cts | 4 + .../date-fns/fp/secondsToMinutes.d.ts | 4 + node_modules/date-fns/fp/secondsToMinutes.js | 9 + node_modules/date-fns/fp/set.cjs | 7 + node_modules/date-fns/fp/set.d.cts | 5 + node_modules/date-fns/fp/set.d.ts | 5 + node_modules/date-fns/fp/set.js | 9 + node_modules/date-fns/fp/setDate.cjs | 7 + node_modules/date-fns/fp/setDate.d.cts | 5 + node_modules/date-fns/fp/setDate.d.ts | 5 + node_modules/date-fns/fp/setDate.js | 9 + .../date-fns/fp/setDateWithOptions.cjs | 8 + .../date-fns/fp/setDateWithOptions.d.cts | 6 + .../date-fns/fp/setDateWithOptions.d.ts | 6 + .../date-fns/fp/setDateWithOptions.js | 9 + node_modules/date-fns/fp/setDay.cjs | 7 + node_modules/date-fns/fp/setDay.d.cts | 5 + node_modules/date-fns/fp/setDay.d.ts | 5 + node_modules/date-fns/fp/setDay.js | 9 + node_modules/date-fns/fp/setDayOfYear.cjs | 10 + node_modules/date-fns/fp/setDayOfYear.d.cts | 5 + node_modules/date-fns/fp/setDayOfYear.d.ts | 5 + node_modules/date-fns/fp/setDayOfYear.js | 9 + .../date-fns/fp/setDayOfYearWithOptions.cjs | 8 + .../date-fns/fp/setDayOfYearWithOptions.d.cts | 6 + .../date-fns/fp/setDayOfYearWithOptions.d.ts | 6 + .../date-fns/fp/setDayOfYearWithOptions.js | 9 + .../date-fns/fp/setDayWithOptions.cjs | 10 + .../date-fns/fp/setDayWithOptions.d.cts | 6 + .../date-fns/fp/setDayWithOptions.d.ts | 6 + node_modules/date-fns/fp/setDayWithOptions.js | 9 + node_modules/date-fns/fp/setHours.cjs | 10 + node_modules/date-fns/fp/setHours.d.cts | 5 + node_modules/date-fns/fp/setHours.d.ts | 5 + node_modules/date-fns/fp/setHours.js | 9 + .../date-fns/fp/setHoursWithOptions.cjs | 8 + .../date-fns/fp/setHoursWithOptions.d.cts | 6 + .../date-fns/fp/setHoursWithOptions.d.ts | 6 + .../date-fns/fp/setHoursWithOptions.js | 9 + node_modules/date-fns/fp/setISODay.cjs | 10 + node_modules/date-fns/fp/setISODay.d.cts | 5 + node_modules/date-fns/fp/setISODay.d.ts | 5 + node_modules/date-fns/fp/setISODay.js | 9 + .../date-fns/fp/setISODayWithOptions.cjs | 8 + .../date-fns/fp/setISODayWithOptions.d.cts | 6 + .../date-fns/fp/setISODayWithOptions.d.ts | 6 + .../date-fns/fp/setISODayWithOptions.js | 9 + node_modules/date-fns/fp/setISOWeek.cjs | 10 + node_modules/date-fns/fp/setISOWeek.d.cts | 5 + node_modules/date-fns/fp/setISOWeek.d.ts | 5 + node_modules/date-fns/fp/setISOWeek.js | 9 + .../date-fns/fp/setISOWeekWithOptions.cjs | 8 + .../date-fns/fp/setISOWeekWithOptions.d.cts | 6 + .../date-fns/fp/setISOWeekWithOptions.d.ts | 6 + .../date-fns/fp/setISOWeekWithOptions.js | 9 + node_modules/date-fns/fp/setISOWeekYear.cjs | 10 + node_modules/date-fns/fp/setISOWeekYear.d.cts | 5 + node_modules/date-fns/fp/setISOWeekYear.d.ts | 5 + node_modules/date-fns/fp/setISOWeekYear.js | 9 + .../date-fns/fp/setISOWeekYearWithOptions.cjs | 8 + .../fp/setISOWeekYearWithOptions.d.cts | 7 + .../fp/setISOWeekYearWithOptions.d.ts | 7 + .../date-fns/fp/setISOWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/setMilliseconds.cjs | 10 + .../date-fns/fp/setMilliseconds.d.cts | 5 + node_modules/date-fns/fp/setMilliseconds.d.ts | 5 + node_modules/date-fns/fp/setMilliseconds.js | 9 + .../fp/setMillisecondsWithOptions.cjs | 8 + .../fp/setMillisecondsWithOptions.d.cts | 7 + .../fp/setMillisecondsWithOptions.d.ts | 7 + .../date-fns/fp/setMillisecondsWithOptions.js | 9 + node_modules/date-fns/fp/setMinutes.cjs | 10 + node_modules/date-fns/fp/setMinutes.d.cts | 5 + node_modules/date-fns/fp/setMinutes.d.ts | 5 + node_modules/date-fns/fp/setMinutes.js | 9 + .../date-fns/fp/setMinutesWithOptions.cjs | 8 + .../date-fns/fp/setMinutesWithOptions.d.cts | 6 + .../date-fns/fp/setMinutesWithOptions.d.ts | 6 + .../date-fns/fp/setMinutesWithOptions.js | 9 + node_modules/date-fns/fp/setMonth.cjs | 10 + node_modules/date-fns/fp/setMonth.d.cts | 5 + node_modules/date-fns/fp/setMonth.d.ts | 5 + node_modules/date-fns/fp/setMonth.js | 9 + .../date-fns/fp/setMonthWithOptions.cjs | 8 + .../date-fns/fp/setMonthWithOptions.d.cts | 6 + .../date-fns/fp/setMonthWithOptions.d.ts | 6 + .../date-fns/fp/setMonthWithOptions.js | 9 + node_modules/date-fns/fp/setQuarter.cjs | 10 + node_modules/date-fns/fp/setQuarter.d.cts | 5 + node_modules/date-fns/fp/setQuarter.d.ts | 5 + node_modules/date-fns/fp/setQuarter.js | 9 + .../date-fns/fp/setQuarterWithOptions.cjs | 8 + .../date-fns/fp/setQuarterWithOptions.d.cts | 6 + .../date-fns/fp/setQuarterWithOptions.d.ts | 6 + .../date-fns/fp/setQuarterWithOptions.js | 9 + node_modules/date-fns/fp/setSeconds.cjs | 10 + node_modules/date-fns/fp/setSeconds.d.cts | 5 + node_modules/date-fns/fp/setSeconds.d.ts | 5 + node_modules/date-fns/fp/setSeconds.js | 9 + .../date-fns/fp/setSecondsWithOptions.cjs | 8 + .../date-fns/fp/setSecondsWithOptions.d.cts | 6 + .../date-fns/fp/setSecondsWithOptions.d.ts | 6 + .../date-fns/fp/setSecondsWithOptions.js | 9 + node_modules/date-fns/fp/setWeek.cjs | 7 + node_modules/date-fns/fp/setWeek.d.cts | 5 + node_modules/date-fns/fp/setWeek.d.ts | 5 + node_modules/date-fns/fp/setWeek.js | 9 + .../date-fns/fp/setWeekWithOptions.cjs | 8 + .../date-fns/fp/setWeekWithOptions.d.cts | 6 + .../date-fns/fp/setWeekWithOptions.d.ts | 6 + .../date-fns/fp/setWeekWithOptions.js | 9 + node_modules/date-fns/fp/setWeekYear.cjs | 10 + node_modules/date-fns/fp/setWeekYear.d.cts | 5 + node_modules/date-fns/fp/setWeekYear.d.ts | 5 + node_modules/date-fns/fp/setWeekYear.js | 9 + .../date-fns/fp/setWeekYearWithOptions.cjs | 8 + .../date-fns/fp/setWeekYearWithOptions.d.cts | 6 + .../date-fns/fp/setWeekYearWithOptions.d.ts | 6 + .../date-fns/fp/setWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/setWithOptions.cjs | 10 + node_modules/date-fns/fp/setWithOptions.d.cts | 6 + node_modules/date-fns/fp/setWithOptions.d.ts | 6 + node_modules/date-fns/fp/setWithOptions.js | 9 + node_modules/date-fns/fp/setYear.cjs | 7 + node_modules/date-fns/fp/setYear.d.cts | 5 + node_modules/date-fns/fp/setYear.d.ts | 5 + node_modules/date-fns/fp/setYear.js | 9 + .../date-fns/fp/setYearWithOptions.cjs | 8 + .../date-fns/fp/setYearWithOptions.d.cts | 6 + .../date-fns/fp/setYearWithOptions.d.ts | 6 + .../date-fns/fp/setYearWithOptions.js | 9 + node_modules/date-fns/fp/startOfDay.cjs | 10 + node_modules/date-fns/fp/startOfDay.d.cts | 4 + node_modules/date-fns/fp/startOfDay.d.ts | 4 + node_modules/date-fns/fp/startOfDay.js | 9 + .../date-fns/fp/startOfDayWithOptions.cjs | 8 + .../date-fns/fp/startOfDayWithOptions.d.cts | 5 + .../date-fns/fp/startOfDayWithOptions.d.ts | 5 + .../date-fns/fp/startOfDayWithOptions.js | 9 + node_modules/date-fns/fp/startOfDecade.cjs | 10 + node_modules/date-fns/fp/startOfDecade.d.cts | 4 + node_modules/date-fns/fp/startOfDecade.d.ts | 4 + node_modules/date-fns/fp/startOfDecade.js | 9 + .../date-fns/fp/startOfDecadeWithOptions.cjs | 8 + .../fp/startOfDecadeWithOptions.d.cts | 5 + .../date-fns/fp/startOfDecadeWithOptions.d.ts | 5 + .../date-fns/fp/startOfDecadeWithOptions.js | 9 + node_modules/date-fns/fp/startOfHour.cjs | 10 + node_modules/date-fns/fp/startOfHour.d.cts | 4 + node_modules/date-fns/fp/startOfHour.d.ts | 4 + node_modules/date-fns/fp/startOfHour.js | 9 + .../date-fns/fp/startOfHourWithOptions.cjs | 8 + .../date-fns/fp/startOfHourWithOptions.d.cts | 5 + .../date-fns/fp/startOfHourWithOptions.d.ts | 5 + .../date-fns/fp/startOfHourWithOptions.js | 9 + node_modules/date-fns/fp/startOfISOWeek.cjs | 10 + node_modules/date-fns/fp/startOfISOWeek.d.cts | 4 + node_modules/date-fns/fp/startOfISOWeek.d.ts | 4 + node_modules/date-fns/fp/startOfISOWeek.js | 9 + .../date-fns/fp/startOfISOWeekWithOptions.cjs | 8 + .../fp/startOfISOWeekWithOptions.d.cts | 6 + .../fp/startOfISOWeekWithOptions.d.ts | 6 + .../date-fns/fp/startOfISOWeekWithOptions.js | 9 + .../date-fns/fp/startOfISOWeekYear.cjs | 8 + .../date-fns/fp/startOfISOWeekYear.d.cts | 4 + .../date-fns/fp/startOfISOWeekYear.d.ts | 4 + .../date-fns/fp/startOfISOWeekYear.js | 9 + .../fp/startOfISOWeekYearWithOptions.cjs | 8 + .../fp/startOfISOWeekYearWithOptions.d.cts | 6 + .../fp/startOfISOWeekYearWithOptions.d.ts | 6 + .../fp/startOfISOWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/startOfMinute.cjs | 10 + node_modules/date-fns/fp/startOfMinute.d.cts | 4 + node_modules/date-fns/fp/startOfMinute.d.ts | 4 + node_modules/date-fns/fp/startOfMinute.js | 9 + .../date-fns/fp/startOfMinuteWithOptions.cjs | 8 + .../fp/startOfMinuteWithOptions.d.cts | 5 + .../date-fns/fp/startOfMinuteWithOptions.d.ts | 5 + .../date-fns/fp/startOfMinuteWithOptions.js | 9 + node_modules/date-fns/fp/startOfMonth.cjs | 10 + node_modules/date-fns/fp/startOfMonth.d.cts | 4 + node_modules/date-fns/fp/startOfMonth.d.ts | 4 + node_modules/date-fns/fp/startOfMonth.js | 9 + .../date-fns/fp/startOfMonthWithOptions.cjs | 8 + .../date-fns/fp/startOfMonthWithOptions.d.cts | 5 + .../date-fns/fp/startOfMonthWithOptions.d.ts | 5 + .../date-fns/fp/startOfMonthWithOptions.js | 9 + node_modules/date-fns/fp/startOfQuarter.cjs | 10 + node_modules/date-fns/fp/startOfQuarter.d.cts | 4 + node_modules/date-fns/fp/startOfQuarter.d.ts | 4 + node_modules/date-fns/fp/startOfQuarter.js | 9 + .../date-fns/fp/startOfQuarterWithOptions.cjs | 8 + .../fp/startOfQuarterWithOptions.d.cts | 6 + .../fp/startOfQuarterWithOptions.d.ts | 6 + .../date-fns/fp/startOfQuarterWithOptions.js | 9 + node_modules/date-fns/fp/startOfSecond.cjs | 10 + node_modules/date-fns/fp/startOfSecond.d.cts | 4 + node_modules/date-fns/fp/startOfSecond.d.ts | 4 + node_modules/date-fns/fp/startOfSecond.js | 9 + .../date-fns/fp/startOfSecondWithOptions.cjs | 8 + .../fp/startOfSecondWithOptions.d.cts | 5 + .../date-fns/fp/startOfSecondWithOptions.d.ts | 5 + .../date-fns/fp/startOfSecondWithOptions.js | 9 + node_modules/date-fns/fp/startOfWeek.cjs | 10 + node_modules/date-fns/fp/startOfWeek.d.cts | 4 + node_modules/date-fns/fp/startOfWeek.d.ts | 4 + node_modules/date-fns/fp/startOfWeek.js | 9 + .../date-fns/fp/startOfWeekWithOptions.cjs | 8 + .../date-fns/fp/startOfWeekWithOptions.d.cts | 5 + .../date-fns/fp/startOfWeekWithOptions.d.ts | 5 + .../date-fns/fp/startOfWeekWithOptions.js | 9 + node_modules/date-fns/fp/startOfWeekYear.cjs | 10 + .../date-fns/fp/startOfWeekYear.d.cts | 4 + node_modules/date-fns/fp/startOfWeekYear.d.ts | 4 + node_modules/date-fns/fp/startOfWeekYear.js | 9 + .../fp/startOfWeekYearWithOptions.cjs | 8 + .../fp/startOfWeekYearWithOptions.d.cts | 6 + .../fp/startOfWeekYearWithOptions.d.ts | 6 + .../date-fns/fp/startOfWeekYearWithOptions.js | 9 + node_modules/date-fns/fp/startOfYear.cjs | 10 + node_modules/date-fns/fp/startOfYear.d.cts | 4 + node_modules/date-fns/fp/startOfYear.d.ts | 4 + node_modules/date-fns/fp/startOfYear.js | 9 + .../date-fns/fp/startOfYearWithOptions.cjs | 8 + .../date-fns/fp/startOfYearWithOptions.d.cts | 5 + .../date-fns/fp/startOfYearWithOptions.d.ts | 5 + .../date-fns/fp/startOfYearWithOptions.js | 9 + node_modules/date-fns/fp/sub.cjs | 7 + node_modules/date-fns/fp/sub.d.cts | 5 + node_modules/date-fns/fp/sub.d.ts | 5 + node_modules/date-fns/fp/sub.js | 9 + node_modules/date-fns/fp/subBusinessDays.cjs | 10 + .../date-fns/fp/subBusinessDays.d.cts | 5 + node_modules/date-fns/fp/subBusinessDays.d.ts | 5 + node_modules/date-fns/fp/subBusinessDays.js | 9 + .../fp/subBusinessDaysWithOptions.cjs | 8 + .../fp/subBusinessDaysWithOptions.d.cts | 7 + .../fp/subBusinessDaysWithOptions.d.ts | 7 + .../date-fns/fp/subBusinessDaysWithOptions.js | 9 + node_modules/date-fns/fp/subDays.cjs | 7 + node_modules/date-fns/fp/subDays.d.cts | 5 + node_modules/date-fns/fp/subDays.d.ts | 5 + node_modules/date-fns/fp/subDays.js | 9 + .../date-fns/fp/subDaysWithOptions.cjs | 8 + .../date-fns/fp/subDaysWithOptions.d.cts | 6 + .../date-fns/fp/subDaysWithOptions.d.ts | 6 + .../date-fns/fp/subDaysWithOptions.js | 9 + node_modules/date-fns/fp/subHours.cjs | 10 + node_modules/date-fns/fp/subHours.d.cts | 5 + node_modules/date-fns/fp/subHours.d.ts | 5 + node_modules/date-fns/fp/subHours.js | 9 + .../date-fns/fp/subHoursWithOptions.cjs | 8 + .../date-fns/fp/subHoursWithOptions.d.cts | 6 + .../date-fns/fp/subHoursWithOptions.d.ts | 6 + .../date-fns/fp/subHoursWithOptions.js | 9 + node_modules/date-fns/fp/subISOWeekYears.cjs | 10 + .../date-fns/fp/subISOWeekYears.d.cts | 5 + node_modules/date-fns/fp/subISOWeekYears.d.ts | 5 + node_modules/date-fns/fp/subISOWeekYears.js | 9 + .../fp/subISOWeekYearsWithOptions.cjs | 8 + .../fp/subISOWeekYearsWithOptions.d.cts | 7 + .../fp/subISOWeekYearsWithOptions.d.ts | 7 + .../date-fns/fp/subISOWeekYearsWithOptions.js | 9 + node_modules/date-fns/fp/subMilliseconds.cjs | 10 + .../date-fns/fp/subMilliseconds.d.cts | 5 + node_modules/date-fns/fp/subMilliseconds.d.ts | 5 + node_modules/date-fns/fp/subMilliseconds.js | 9 + .../fp/subMillisecondsWithOptions.cjs | 8 + .../fp/subMillisecondsWithOptions.d.cts | 7 + .../fp/subMillisecondsWithOptions.d.ts | 7 + .../date-fns/fp/subMillisecondsWithOptions.js | 9 + node_modules/date-fns/fp/subMinutes.cjs | 10 + node_modules/date-fns/fp/subMinutes.d.cts | 5 + node_modules/date-fns/fp/subMinutes.d.ts | 5 + node_modules/date-fns/fp/subMinutes.js | 9 + .../date-fns/fp/subMinutesWithOptions.cjs | 8 + .../date-fns/fp/subMinutesWithOptions.d.cts | 6 + .../date-fns/fp/subMinutesWithOptions.d.ts | 6 + .../date-fns/fp/subMinutesWithOptions.js | 9 + node_modules/date-fns/fp/subMonths.cjs | 10 + node_modules/date-fns/fp/subMonths.d.cts | 5 + node_modules/date-fns/fp/subMonths.d.ts | 5 + node_modules/date-fns/fp/subMonths.js | 9 + .../date-fns/fp/subMonthsWithOptions.cjs | 8 + .../date-fns/fp/subMonthsWithOptions.d.cts | 6 + .../date-fns/fp/subMonthsWithOptions.d.ts | 6 + .../date-fns/fp/subMonthsWithOptions.js | 9 + node_modules/date-fns/fp/subQuarters.cjs | 10 + node_modules/date-fns/fp/subQuarters.d.cts | 5 + node_modules/date-fns/fp/subQuarters.d.ts | 5 + node_modules/date-fns/fp/subQuarters.js | 9 + .../date-fns/fp/subQuartersWithOptions.cjs | 8 + .../date-fns/fp/subQuartersWithOptions.d.cts | 6 + .../date-fns/fp/subQuartersWithOptions.d.ts | 6 + .../date-fns/fp/subQuartersWithOptions.js | 9 + node_modules/date-fns/fp/subSeconds.cjs | 10 + node_modules/date-fns/fp/subSeconds.d.cts | 5 + node_modules/date-fns/fp/subSeconds.d.ts | 5 + node_modules/date-fns/fp/subSeconds.js | 9 + .../date-fns/fp/subSecondsWithOptions.cjs | 8 + .../date-fns/fp/subSecondsWithOptions.d.cts | 6 + .../date-fns/fp/subSecondsWithOptions.d.ts | 6 + .../date-fns/fp/subSecondsWithOptions.js | 9 + node_modules/date-fns/fp/subWeeks.cjs | 10 + node_modules/date-fns/fp/subWeeks.d.cts | 5 + node_modules/date-fns/fp/subWeeks.d.ts | 5 + node_modules/date-fns/fp/subWeeks.js | 9 + .../date-fns/fp/subWeeksWithOptions.cjs | 8 + .../date-fns/fp/subWeeksWithOptions.d.cts | 6 + .../date-fns/fp/subWeeksWithOptions.d.ts | 6 + .../date-fns/fp/subWeeksWithOptions.js | 9 + node_modules/date-fns/fp/subWithOptions.cjs | 10 + node_modules/date-fns/fp/subWithOptions.d.cts | 6 + node_modules/date-fns/fp/subWithOptions.d.ts | 6 + node_modules/date-fns/fp/subWithOptions.js | 9 + node_modules/date-fns/fp/subYears.cjs | 10 + node_modules/date-fns/fp/subYears.d.cts | 5 + node_modules/date-fns/fp/subYears.d.ts | 5 + node_modules/date-fns/fp/subYears.js | 9 + .../date-fns/fp/subYearsWithOptions.cjs | 8 + .../date-fns/fp/subYearsWithOptions.d.cts | 6 + .../date-fns/fp/subYearsWithOptions.d.ts | 6 + .../date-fns/fp/subYearsWithOptions.js | 9 + node_modules/date-fns/fp/toDate.cjs | 7 + node_modules/date-fns/fp/toDate.d.cts | 5 + node_modules/date-fns/fp/toDate.d.ts | 5 + node_modules/date-fns/fp/toDate.js | 9 + node_modules/date-fns/fp/transpose.cjs | 10 + node_modules/date-fns/fp/transpose.d.cts | 7 + node_modules/date-fns/fp/transpose.d.ts | 7 + node_modules/date-fns/fp/transpose.js | 9 + node_modules/date-fns/fp/types.cjs | 1 + node_modules/date-fns/fp/types.d.cts | 114 + node_modules/date-fns/fp/types.d.ts | 114 + node_modules/date-fns/fp/types.js | 1 + node_modules/date-fns/fp/weeksToDays.cjs | 10 + node_modules/date-fns/fp/weeksToDays.d.cts | 1 + node_modules/date-fns/fp/weeksToDays.d.ts | 1 + node_modules/date-fns/fp/weeksToDays.js | 9 + node_modules/date-fns/fp/yearsToDays.cjs | 10 + node_modules/date-fns/fp/yearsToDays.d.cts | 1 + node_modules/date-fns/fp/yearsToDays.d.ts | 1 + node_modules/date-fns/fp/yearsToDays.js | 9 + node_modules/date-fns/fp/yearsToMonths.cjs | 10 + node_modules/date-fns/fp/yearsToMonths.d.cts | 1 + node_modules/date-fns/fp/yearsToMonths.d.ts | 1 + node_modules/date-fns/fp/yearsToMonths.js | 9 + node_modules/date-fns/fp/yearsToQuarters.cjs | 10 + .../date-fns/fp/yearsToQuarters.d.cts | 4 + node_modules/date-fns/fp/yearsToQuarters.d.ts | 4 + node_modules/date-fns/fp/yearsToQuarters.js | 9 + node_modules/date-fns/fromUnixTime.cjs | 31 + node_modules/date-fns/fromUnixTime.d.cts | 30 + node_modules/date-fns/fromUnixTime.d.ts | 30 + node_modules/date-fns/fromUnixTime.js | 32 + node_modules/date-fns/getDate.cjs | 29 + node_modules/date-fns/getDate.d.cts | 27 + node_modules/date-fns/getDate.d.ts | 27 + node_modules/date-fns/getDate.js | 30 + node_modules/date-fns/getDay.cjs | 29 + node_modules/date-fns/getDay.d.cts | 27 + node_modules/date-fns/getDay.d.ts | 27 + node_modules/date-fns/getDay.js | 30 + node_modules/date-fns/getDayOfYear.cjs | 37 + node_modules/date-fns/getDayOfYear.d.cts | 27 + node_modules/date-fns/getDayOfYear.d.ts | 27 + node_modules/date-fns/getDayOfYear.js | 35 + node_modules/date-fns/getDaysInMonth.cjs | 36 + node_modules/date-fns/getDaysInMonth.d.cts | 27 + node_modules/date-fns/getDaysInMonth.d.ts | 27 + node_modules/date-fns/getDaysInMonth.js | 37 + node_modules/date-fns/getDaysInYear.cjs | 32 + node_modules/date-fns/getDaysInYear.d.cts | 27 + node_modules/date-fns/getDaysInYear.d.ts | 27 + node_modules/date-fns/getDaysInYear.js | 33 + node_modules/date-fns/getDecade.cjs | 35 + node_modules/date-fns/getDecade.d.cts | 27 + node_modules/date-fns/getDecade.d.ts | 27 + node_modules/date-fns/getDecade.js | 36 + node_modules/date-fns/getDefaultOptions.cjs | 31 + node_modules/date-fns/getDefaultOptions.d.cts | 26 + node_modules/date-fns/getDefaultOptions.d.ts | 26 + node_modules/date-fns/getDefaultOptions.js | 32 + node_modules/date-fns/getHours.cjs | 29 + node_modules/date-fns/getHours.d.cts | 27 + node_modules/date-fns/getHours.d.ts | 27 + node_modules/date-fns/getHours.js | 30 + node_modules/date-fns/getISODay.cjs | 33 + node_modules/date-fns/getISODay.d.cts | 30 + node_modules/date-fns/getISODay.d.ts | 30 + node_modules/date-fns/getISODay.js | 34 + node_modules/date-fns/getISOWeek.cjs | 42 + node_modules/date-fns/getISOWeek.d.cts | 29 + node_modules/date-fns/getISOWeek.d.ts | 29 + node_modules/date-fns/getISOWeek.js | 41 + node_modules/date-fns/getISOWeekYear.cjs | 56 + node_modules/date-fns/getISOWeekYear.d.cts | 29 + node_modules/date-fns/getISOWeekYear.d.ts | 29 + node_modules/date-fns/getISOWeekYear.js | 53 + node_modules/date-fns/getISOWeeksInYear.cjs | 42 + node_modules/date-fns/getISOWeeksInYear.d.cts | 29 + node_modules/date-fns/getISOWeeksInYear.d.ts | 29 + node_modules/date-fns/getISOWeeksInYear.js | 41 + node_modules/date-fns/getMilliseconds.cjs | 24 + node_modules/date-fns/getMilliseconds.d.cts | 19 + node_modules/date-fns/getMilliseconds.d.ts | 19 + node_modules/date-fns/getMilliseconds.js | 25 + node_modules/date-fns/getMinutes.cjs | 29 + node_modules/date-fns/getMinutes.d.cts | 27 + node_modules/date-fns/getMinutes.d.ts | 27 + node_modules/date-fns/getMinutes.js | 30 + node_modules/date-fns/getMonth.cjs | 29 + node_modules/date-fns/getMonth.d.cts | 27 + node_modules/date-fns/getMonth.d.ts | 27 + node_modules/date-fns/getMonth.js | 30 + .../getOverlappingDaysInIntervals.cjs | 67 + .../getOverlappingDaysInIntervals.d.cts | 40 + .../getOverlappingDaysInIntervals.d.ts | 40 + .../date-fns/getOverlappingDaysInIntervals.js | 66 + node_modules/date-fns/getQuarter.cjs | 31 + node_modules/date-fns/getQuarter.d.cts | 27 + node_modules/date-fns/getQuarter.d.ts | 27 + node_modules/date-fns/getQuarter.js | 32 + node_modules/date-fns/getSeconds.cjs | 24 + node_modules/date-fns/getSeconds.d.cts | 19 + node_modules/date-fns/getSeconds.d.ts | 19 + node_modules/date-fns/getSeconds.js | 25 + node_modules/date-fns/getTime.cjs | 24 + node_modules/date-fns/getTime.d.cts | 19 + node_modules/date-fns/getTime.d.ts | 19 + node_modules/date-fns/getTime.js | 25 + node_modules/date-fns/getUnixTime.cjs | 24 + node_modules/date-fns/getUnixTime.d.cts | 19 + node_modules/date-fns/getUnixTime.d.ts | 19 + node_modules/date-fns/getUnixTime.js | 25 + node_modules/date-fns/getWeek.cjs | 56 + node_modules/date-fns/getWeek.d.cts | 53 + node_modules/date-fns/getWeek.d.ts | 53 + node_modules/date-fns/getWeek.js | 55 + node_modules/date-fns/getWeekOfMonth.cjs | 54 + node_modules/date-fns/getWeekOfMonth.d.cts | 35 + node_modules/date-fns/getWeekOfMonth.d.ts | 35 + node_modules/date-fns/getWeekOfMonth.js | 51 + node_modules/date-fns/getWeekYear.cjs | 87 + node_modules/date-fns/getWeekYear.d.cts | 53 + node_modules/date-fns/getWeekYear.d.ts | 53 + node_modules/date-fns/getWeekYear.js | 76 + node_modules/date-fns/getWeeksInMonth.cjs | 45 + node_modules/date-fns/getWeeksInMonth.d.cts | 41 + node_modules/date-fns/getWeeksInMonth.d.ts | 41 + node_modules/date-fns/getWeeksInMonth.js | 46 + node_modules/date-fns/getYear.cjs | 29 + node_modules/date-fns/getYear.d.cts | 27 + node_modules/date-fns/getYear.d.ts | 27 + node_modules/date-fns/getYear.js | 30 + node_modules/date-fns/hoursToMilliseconds.cjs | 24 + .../date-fns/hoursToMilliseconds.d.cts | 18 + .../date-fns/hoursToMilliseconds.d.ts | 18 + node_modules/date-fns/hoursToMilliseconds.js | 25 + node_modules/date-fns/hoursToMinutes.cjs | 24 + node_modules/date-fns/hoursToMinutes.d.cts | 18 + node_modules/date-fns/hoursToMinutes.d.ts | 18 + node_modules/date-fns/hoursToMinutes.js | 25 + node_modules/date-fns/hoursToSeconds.cjs | 24 + node_modules/date-fns/hoursToSeconds.d.cts | 18 + node_modules/date-fns/hoursToSeconds.d.ts | 18 + node_modules/date-fns/hoursToSeconds.js | 25 + node_modules/date-fns/index.cjs | 2697 + node_modules/date-fns/index.d.cts | 246 + node_modules/date-fns/index.d.ts | 246 + node_modules/date-fns/index.js | 247 + node_modules/date-fns/interval.cjs | 48 + node_modules/date-fns/interval.d.cts | 59 + node_modules/date-fns/interval.d.ts | 59 + node_modules/date-fns/interval.js | 49 + node_modules/date-fns/intervalToDuration.cjs | 73 + .../date-fns/intervalToDuration.d.cts | 30 + node_modules/date-fns/intervalToDuration.d.ts | 30 + node_modules/date-fns/intervalToDuration.js | 66 + node_modules/date-fns/intlFormat.cjs | 120 + node_modules/date-fns/intlFormat.d.cts | 113 + node_modules/date-fns/intlFormat.d.ts | 113 + node_modules/date-fns/intlFormat.js | 121 + node_modules/date-fns/intlFormatDistance.cjs | 218 + .../date-fns/intlFormatDistance.d.cts | 126 + node_modules/date-fns/intlFormatDistance.d.ts | 126 + node_modules/date-fns/intlFormatDistance.js | 207 + node_modules/date-fns/isAfter.cjs | 25 + node_modules/date-fns/isAfter.d.cts | 23 + node_modules/date-fns/isAfter.d.ts | 23 + node_modules/date-fns/isAfter.js | 26 + node_modules/date-fns/isBefore.cjs | 25 + node_modules/date-fns/isBefore.d.cts | 23 + node_modules/date-fns/isBefore.d.ts | 23 + node_modules/date-fns/isBefore.js | 26 + node_modules/date-fns/isDate.cjs | 40 + node_modules/date-fns/isDate.d.cts | 33 + node_modules/date-fns/isDate.d.ts | 33 + node_modules/date-fns/isDate.js | 42 + node_modules/date-fns/isEqual.cjs | 28 + node_modules/date-fns/isEqual.d.cts | 26 + node_modules/date-fns/isEqual.d.ts | 26 + node_modules/date-fns/isEqual.js | 29 + node_modules/date-fns/isExists.cjs | 33 + node_modules/date-fns/isExists.d.cts | 29 + node_modules/date-fns/isExists.d.ts | 29 + node_modules/date-fns/isExists.js | 35 + node_modules/date-fns/isFirstDayOfMonth.cjs | 29 + node_modules/date-fns/isFirstDayOfMonth.d.cts | 27 + node_modules/date-fns/isFirstDayOfMonth.d.ts | 27 + node_modules/date-fns/isFirstDayOfMonth.js | 30 + node_modules/date-fns/isFriday.cjs | 29 + node_modules/date-fns/isFriday.d.cts | 27 + node_modules/date-fns/isFriday.d.ts | 27 + node_modules/date-fns/isFriday.js | 30 + node_modules/date-fns/isFuture.cjs | 25 + node_modules/date-fns/isFuture.d.cts | 20 + node_modules/date-fns/isFuture.d.ts | 20 + node_modules/date-fns/isFuture.js | 26 + node_modules/date-fns/isLastDayOfMonth.cjs | 31 + node_modules/date-fns/isLastDayOfMonth.d.cts | 24 + node_modules/date-fns/isLastDayOfMonth.d.ts | 24 + node_modules/date-fns/isLastDayOfMonth.js | 29 + node_modules/date-fns/isLeapYear.cjs | 27 + node_modules/date-fns/isLeapYear.d.cts | 24 + node_modules/date-fns/isLeapYear.d.ts | 24 + node_modules/date-fns/isLeapYear.js | 28 + node_modules/date-fns/isMatch.cjs | 298 + node_modules/date-fns/isMatch.d.cts | 303 + node_modules/date-fns/isMatch.d.ts | 303 + node_modules/date-fns/isMatch.js | 297 + node_modules/date-fns/isMonday.cjs | 29 + node_modules/date-fns/isMonday.d.cts | 27 + node_modules/date-fns/isMonday.d.ts | 27 + node_modules/date-fns/isMonday.js | 30 + node_modules/date-fns/isPast.cjs | 25 + node_modules/date-fns/isPast.d.cts | 20 + node_modules/date-fns/isPast.d.ts | 20 + node_modules/date-fns/isPast.js | 26 + node_modules/date-fns/isSameDay.cjs | 48 + node_modules/date-fns/isSameDay.d.cts | 39 + node_modules/date-fns/isSameDay.d.ts | 39 + node_modules/date-fns/isSameDay.js | 47 + node_modules/date-fns/isSameHour.cjs | 44 + node_modules/date-fns/isSameHour.d.cts | 34 + node_modules/date-fns/isSameHour.d.ts | 34 + node_modules/date-fns/isSameHour.js | 42 + node_modules/date-fns/isSameISOWeek.cjs | 40 + node_modules/date-fns/isSameISOWeek.d.cts | 36 + node_modules/date-fns/isSameISOWeek.d.ts | 36 + node_modules/date-fns/isSameISOWeek.js | 38 + node_modules/date-fns/isSameISOWeekYear.cjs | 42 + node_modules/date-fns/isSameISOWeekYear.d.cts | 31 + node_modules/date-fns/isSameISOWeekYear.d.ts | 31 + node_modules/date-fns/isSameISOWeekYear.js | 40 + node_modules/date-fns/isSameMinute.cjs | 39 + node_modules/date-fns/isSameMinute.d.cts | 34 + node_modules/date-fns/isSameMinute.d.ts | 34 + node_modules/date-fns/isSameMinute.js | 37 + node_modules/date-fns/isSameMonth.cjs | 43 + node_modules/date-fns/isSameMonth.d.cts | 34 + node_modules/date-fns/isSameMonth.d.ts | 34 + node_modules/date-fns/isSameMonth.js | 44 + node_modules/date-fns/isSameQuarter.cjs | 44 + node_modules/date-fns/isSameQuarter.d.cts | 34 + node_modules/date-fns/isSameQuarter.d.ts | 34 + node_modules/date-fns/isSameQuarter.js | 42 + node_modules/date-fns/isSameSecond.cjs | 47 + node_modules/date-fns/isSameSecond.d.cts | 42 + node_modules/date-fns/isSameSecond.d.ts | 42 + node_modules/date-fns/isSameSecond.js | 45 + node_modules/date-fns/isSameWeek.cjs | 52 + node_modules/date-fns/isSameWeek.d.cts | 46 + node_modules/date-fns/isSameWeek.d.ts | 46 + node_modules/date-fns/isSameWeek.js | 52 + node_modules/date-fns/isSameYear.cjs | 35 + node_modules/date-fns/isSameYear.d.cts | 29 + node_modules/date-fns/isSameYear.d.ts | 29 + node_modules/date-fns/isSameYear.js | 36 + node_modules/date-fns/isSaturday.cjs | 29 + node_modules/date-fns/isSaturday.d.cts | 27 + node_modules/date-fns/isSaturday.d.ts | 27 + node_modules/date-fns/isSaturday.js | 30 + node_modules/date-fns/isSunday.cjs | 29 + node_modules/date-fns/isSunday.d.cts | 27 + node_modules/date-fns/isSunday.d.ts | 27 + node_modules/date-fns/isSunday.js | 30 + node_modules/date-fns/isThisHour.cjs | 36 + node_modules/date-fns/isThisHour.d.cts | 29 + node_modules/date-fns/isThisHour.d.ts | 29 + node_modules/date-fns/isThisHour.js | 37 + node_modules/date-fns/isThisISOWeek.cjs | 37 + node_modules/date-fns/isThisISOWeek.d.cts | 30 + node_modules/date-fns/isThisISOWeek.d.ts | 30 + node_modules/date-fns/isThisISOWeek.js | 38 + node_modules/date-fns/isThisMinute.cjs | 28 + node_modules/date-fns/isThisMinute.d.cts | 21 + node_modules/date-fns/isThisMinute.d.ts | 21 + node_modules/date-fns/isThisMinute.js | 29 + node_modules/date-fns/isThisMonth.cjs | 35 + node_modules/date-fns/isThisMonth.d.cts | 28 + node_modules/date-fns/isThisMonth.d.ts | 28 + node_modules/date-fns/isThisMonth.js | 36 + node_modules/date-fns/isThisQuarter.cjs | 35 + node_modules/date-fns/isThisQuarter.d.cts | 28 + node_modules/date-fns/isThisQuarter.d.ts | 28 + node_modules/date-fns/isThisQuarter.js | 36 + node_modules/date-fns/isThisSecond.cjs | 27 + node_modules/date-fns/isThisSecond.d.cts | 21 + node_modules/date-fns/isThisSecond.d.ts | 21 + node_modules/date-fns/isThisSecond.js | 28 + node_modules/date-fns/isThisWeek.cjs | 42 + node_modules/date-fns/isThisWeek.d.cts | 42 + node_modules/date-fns/isThisWeek.d.ts | 42 + node_modules/date-fns/isThisWeek.js | 43 + node_modules/date-fns/isThisYear.cjs | 35 + node_modules/date-fns/isThisYear.d.cts | 28 + node_modules/date-fns/isThisYear.d.ts | 28 + node_modules/date-fns/isThisYear.js | 36 + node_modules/date-fns/isThursday.cjs | 29 + node_modules/date-fns/isThursday.d.cts | 27 + node_modules/date-fns/isThursday.d.ts | 27 + node_modules/date-fns/isThursday.js | 30 + node_modules/date-fns/isToday.cjs | 35 + node_modules/date-fns/isToday.d.cts | 28 + node_modules/date-fns/isToday.d.ts | 28 + node_modules/date-fns/isToday.js | 36 + node_modules/date-fns/isTomorrow.cjs | 36 + node_modules/date-fns/isTomorrow.d.cts | 28 + node_modules/date-fns/isTomorrow.d.ts | 28 + node_modules/date-fns/isTomorrow.js | 37 + node_modules/date-fns/isTuesday.cjs | 29 + node_modules/date-fns/isTuesday.d.cts | 27 + node_modules/date-fns/isTuesday.d.ts | 27 + node_modules/date-fns/isTuesday.js | 30 + node_modules/date-fns/isValid.cjs | 42 + node_modules/date-fns/isValid.d.cts | 32 + node_modules/date-fns/isValid.d.ts | 32 + node_modules/date-fns/isValid.js | 40 + node_modules/date-fns/isWednesday.cjs | 29 + node_modules/date-fns/isWednesday.d.cts | 27 + node_modules/date-fns/isWednesday.d.ts | 27 + node_modules/date-fns/isWednesday.js | 30 + node_modules/date-fns/isWeekend.cjs | 30 + node_modules/date-fns/isWeekend.d.cts | 27 + node_modules/date-fns/isWeekend.d.ts | 27 + node_modules/date-fns/isWeekend.js | 31 + node_modules/date-fns/isWithinInterval.cjs | 57 + node_modules/date-fns/isWithinInterval.d.cts | 50 + node_modules/date-fns/isWithinInterval.d.ts | 50 + node_modules/date-fns/isWithinInterval.js | 58 + node_modules/date-fns/isYesterday.cjs | 36 + node_modules/date-fns/isYesterday.d.cts | 28 + node_modules/date-fns/isYesterday.d.ts | 28 + node_modules/date-fns/isYesterday.js | 37 + node_modules/date-fns/lastDayOfDecade.cjs | 37 + node_modules/date-fns/lastDayOfDecade.d.cts | 34 + node_modules/date-fns/lastDayOfDecade.d.ts | 34 + node_modules/date-fns/lastDayOfDecade.js | 38 + node_modules/date-fns/lastDayOfISOWeek.cjs | 35 + node_modules/date-fns/lastDayOfISOWeek.d.cts | 37 + node_modules/date-fns/lastDayOfISOWeek.d.ts | 37 + node_modules/date-fns/lastDayOfISOWeek.js | 36 + .../date-fns/lastDayOfISOWeekYear.cjs | 45 + .../date-fns/lastDayOfISOWeekYear.d.cts | 38 + .../date-fns/lastDayOfISOWeekYear.d.ts | 38 + node_modules/date-fns/lastDayOfISOWeekYear.js | 46 + node_modules/date-fns/lastDayOfMonth.cjs | 37 + node_modules/date-fns/lastDayOfMonth.d.cts | 35 + node_modules/date-fns/lastDayOfMonth.d.ts | 35 + node_modules/date-fns/lastDayOfMonth.js | 38 + node_modules/date-fns/lastDayOfQuarter.cjs | 38 + node_modules/date-fns/lastDayOfQuarter.d.cts | 35 + node_modules/date-fns/lastDayOfQuarter.d.ts | 35 + node_modules/date-fns/lastDayOfQuarter.js | 39 + node_modules/date-fns/lastDayOfWeek.cjs | 44 + node_modules/date-fns/lastDayOfWeek.d.cts | 37 + node_modules/date-fns/lastDayOfWeek.d.ts | 37 + node_modules/date-fns/lastDayOfWeek.js | 45 + node_modules/date-fns/lastDayOfYear.cjs | 37 + node_modules/date-fns/lastDayOfYear.d.cts | 35 + node_modules/date-fns/lastDayOfYear.d.ts | 35 + node_modules/date-fns/lastDayOfYear.js | 38 + node_modules/date-fns/lightFormat.cjs | 140 + node_modules/date-fns/lightFormat.d.cts | 64 + node_modules/date-fns/lightFormat.d.ts | 64 + node_modules/date-fns/lightFormat.js | 136 + node_modules/date-fns/locale.cjs | 1047 + node_modules/date-fns/locale.d.cts | 96 + node_modules/date-fns/locale.d.ts | 96 + node_modules/date-fns/locale.js | 97 + .../locale/_lib/buildFormatLongFn.cjs | 11 + .../locale/_lib/buildFormatLongFn.d.cts | 14 + .../locale/_lib/buildFormatLongFn.d.ts | 14 + .../date-fns/locale/_lib/buildFormatLongFn.js | 8 + .../date-fns/locale/_lib/buildLocalizeFn.cjs | 65 + .../locale/_lib/buildLocalizeFn.d.cts | 102 + .../date-fns/locale/_lib/buildLocalizeFn.d.ts | 102 + .../date-fns/locale/_lib/buildLocalizeFn.js | 62 + .../date-fns/locale/_lib/buildMatchFn.cjs | 60 + .../date-fns/locale/_lib/buildMatchFn.d.cts | 67 + .../date-fns/locale/_lib/buildMatchFn.d.ts | 67 + .../date-fns/locale/_lib/buildMatchFn.js | 57 + .../locale/_lib/buildMatchPatternFn.cjs | 23 + .../locale/_lib/buildMatchPatternFn.d.cts | 9 + .../locale/_lib/buildMatchPatternFn.d.ts | 9 + .../locale/_lib/buildMatchPatternFn.js | 20 + node_modules/date-fns/locale/af.cjs | 27 + node_modules/date-fns/locale/af.d.cts | 9 + node_modules/date-fns/locale/af.d.ts | 9 + node_modules/date-fns/locale/af.js | 28 + .../locale/af/_lib/formatDistance.cjs | 105 + .../locale/af/_lib/formatDistance.d.cts | 2 + .../locale/af/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/af/_lib/formatDistance.js | 101 + .../date-fns/locale/af/_lib/formatLong.cjs | 41 + .../date-fns/locale/af/_lib/formatLong.d.cts | 2 + .../date-fns/locale/af/_lib/formatLong.d.ts | 2 + .../date-fns/locale/af/_lib/formatLong.js | 39 + .../locale/af/_lib/formatRelative.cjs | 15 + .../locale/af/_lib/formatRelative.d.cts | 2 + .../locale/af/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/af/_lib/formatRelative.js | 11 + .../date-fns/locale/af/_lib/localize.cjs | 175 + .../date-fns/locale/af/_lib/localize.d.cts | 2 + .../date-fns/locale/af/_lib/localize.d.ts | 2 + .../date-fns/locale/af/_lib/localize.js | 173 + .../date-fns/locale/af/_lib/match.cjs | 134 + .../date-fns/locale/af/_lib/match.d.cts | 2 + .../date-fns/locale/af/_lib/match.d.ts | 2 + node_modules/date-fns/locale/af/_lib/match.js | 131 + node_modules/date-fns/locale/af/cdn.js | 577 + node_modules/date-fns/locale/af/cdn.min.js | 1 + node_modules/date-fns/locale/ar-DZ.cjs | 28 + node_modules/date-fns/locale/ar-DZ.d.cts | 10 + node_modules/date-fns/locale/ar-DZ.d.ts | 10 + node_modules/date-fns/locale/ar-DZ.js | 29 + .../locale/ar-DZ/_lib/formatDistance.cjs | 140 + .../locale/ar-DZ/_lib/formatDistance.d.cts | 2 + .../locale/ar-DZ/_lib/formatDistance.d.ts | 2 + .../locale/ar-DZ/_lib/formatDistance.js | 136 + .../date-fns/locale/ar-DZ/_lib/formatLong.cjs | 41 + .../locale/ar-DZ/_lib/formatLong.d.cts | 5 + .../locale/ar-DZ/_lib/formatLong.d.ts | 5 + .../date-fns/locale/ar-DZ/_lib/formatLong.js | 39 + .../locale/ar-DZ/_lib/formatRelative.cjs | 16 + .../locale/ar-DZ/_lib/formatRelative.d.cts | 2 + .../locale/ar-DZ/_lib/formatRelative.d.ts | 2 + .../locale/ar-DZ/_lib/formatRelative.js | 12 + .../date-fns/locale/ar-DZ/_lib/localize.cjs | 164 + .../date-fns/locale/ar-DZ/_lib/localize.d.cts | 2 + .../date-fns/locale/ar-DZ/_lib/localize.d.ts | 2 + .../date-fns/locale/ar-DZ/_lib/localize.js | 162 + .../date-fns/locale/ar-DZ/_lib/match.cjs | 145 + .../date-fns/locale/ar-DZ/_lib/match.d.cts | 2 + .../date-fns/locale/ar-DZ/_lib/match.d.ts | 2 + .../date-fns/locale/ar-DZ/_lib/match.js | 143 + node_modules/date-fns/locale/ar-DZ/cdn.js | 618 + node_modules/date-fns/locale/ar-DZ/cdn.min.js | 1 + node_modules/date-fns/locale/ar-EG.cjs | 27 + node_modules/date-fns/locale/ar-EG.d.cts | 9 + node_modules/date-fns/locale/ar-EG.d.ts | 9 + node_modules/date-fns/locale/ar-EG.js | 28 + .../locale/ar-EG/_lib/formatDistance.cjs | 139 + .../locale/ar-EG/_lib/formatDistance.d.cts | 2 + .../locale/ar-EG/_lib/formatDistance.d.ts | 2 + .../locale/ar-EG/_lib/formatDistance.js | 135 + .../date-fns/locale/ar-EG/_lib/formatLong.cjs | 41 + .../locale/ar-EG/_lib/formatLong.d.cts | 2 + .../locale/ar-EG/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ar-EG/_lib/formatLong.js | 39 + .../locale/ar-EG/_lib/formatRelative.cjs | 15 + .../locale/ar-EG/_lib/formatRelative.d.cts | 2 + .../locale/ar-EG/_lib/formatRelative.d.ts | 2 + .../locale/ar-EG/_lib/formatRelative.js | 11 + .../date-fns/locale/ar-EG/_lib/localize.cjs | 166 + .../date-fns/locale/ar-EG/_lib/localize.d.cts | 2 + .../date-fns/locale/ar-EG/_lib/localize.d.ts | 2 + .../date-fns/locale/ar-EG/_lib/localize.js | 164 + .../date-fns/locale/ar-EG/_lib/match.cjs | 139 + .../date-fns/locale/ar-EG/_lib/match.d.cts | 2 + .../date-fns/locale/ar-EG/_lib/match.d.ts | 2 + .../date-fns/locale/ar-EG/_lib/match.js | 136 + node_modules/date-fns/locale/ar-EG/cdn.js | 617 + node_modules/date-fns/locale/ar-EG/cdn.min.js | 1 + node_modules/date-fns/locale/ar-MA.cjs | 28 + node_modules/date-fns/locale/ar-MA.d.cts | 9 + node_modules/date-fns/locale/ar-MA.d.ts | 9 + node_modules/date-fns/locale/ar-MA.js | 29 + .../locale/ar-MA/_lib/formatDistance.cjs | 140 + .../locale/ar-MA/_lib/formatDistance.d.cts | 2 + .../locale/ar-MA/_lib/formatDistance.d.ts | 2 + .../locale/ar-MA/_lib/formatDistance.js | 136 + .../date-fns/locale/ar-MA/_lib/formatLong.cjs | 41 + .../locale/ar-MA/_lib/formatLong.d.cts | 5 + .../locale/ar-MA/_lib/formatLong.d.ts | 5 + .../date-fns/locale/ar-MA/_lib/formatLong.js | 39 + .../locale/ar-MA/_lib/formatRelative.cjs | 16 + .../locale/ar-MA/_lib/formatRelative.d.cts | 2 + .../locale/ar-MA/_lib/formatRelative.d.ts | 2 + .../locale/ar-MA/_lib/formatRelative.js | 12 + .../date-fns/locale/ar-MA/_lib/localize.cjs | 164 + .../date-fns/locale/ar-MA/_lib/localize.d.cts | 2 + .../date-fns/locale/ar-MA/_lib/localize.d.ts | 2 + .../date-fns/locale/ar-MA/_lib/localize.js | 162 + .../date-fns/locale/ar-MA/_lib/match.cjs | 144 + .../date-fns/locale/ar-MA/_lib/match.d.cts | 2 + .../date-fns/locale/ar-MA/_lib/match.d.ts | 2 + .../date-fns/locale/ar-MA/_lib/match.js | 142 + node_modules/date-fns/locale/ar-MA/cdn.js | 617 + node_modules/date-fns/locale/ar-MA/cdn.min.js | 1 + node_modules/date-fns/locale/ar-SA.cjs | 27 + node_modules/date-fns/locale/ar-SA.d.cts | 9 + node_modules/date-fns/locale/ar-SA.d.ts | 9 + node_modules/date-fns/locale/ar-SA.js | 28 + .../locale/ar-SA/_lib/formatDistance.cjs | 139 + .../locale/ar-SA/_lib/formatDistance.d.cts | 2 + .../locale/ar-SA/_lib/formatDistance.d.ts | 2 + .../locale/ar-SA/_lib/formatDistance.js | 135 + .../date-fns/locale/ar-SA/_lib/formatLong.cjs | 41 + .../locale/ar-SA/_lib/formatLong.d.cts | 2 + .../locale/ar-SA/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ar-SA/_lib/formatLong.js | 39 + .../locale/ar-SA/_lib/formatRelative.cjs | 15 + .../locale/ar-SA/_lib/formatRelative.d.cts | 2 + .../locale/ar-SA/_lib/formatRelative.d.ts | 2 + .../locale/ar-SA/_lib/formatRelative.js | 11 + .../date-fns/locale/ar-SA/_lib/localize.cjs | 164 + .../date-fns/locale/ar-SA/_lib/localize.d.cts | 2 + .../date-fns/locale/ar-SA/_lib/localize.d.ts | 2 + .../date-fns/locale/ar-SA/_lib/localize.js | 162 + .../date-fns/locale/ar-SA/_lib/match.cjs | 145 + .../date-fns/locale/ar-SA/_lib/match.d.cts | 2 + .../date-fns/locale/ar-SA/_lib/match.d.ts | 2 + .../date-fns/locale/ar-SA/_lib/match.js | 142 + node_modules/date-fns/locale/ar-SA/cdn.js | 614 + node_modules/date-fns/locale/ar-SA/cdn.min.js | 1 + node_modules/date-fns/locale/ar-TN.cjs | 27 + node_modules/date-fns/locale/ar-TN.d.cts | 9 + node_modules/date-fns/locale/ar-TN.d.ts | 9 + node_modules/date-fns/locale/ar-TN.js | 28 + .../locale/ar-TN/_lib/formatDistance.cjs | 138 + .../locale/ar-TN/_lib/formatDistance.d.cts | 2 + .../locale/ar-TN/_lib/formatDistance.d.ts | 2 + .../locale/ar-TN/_lib/formatDistance.js | 134 + .../date-fns/locale/ar-TN/_lib/formatLong.cjs | 41 + .../locale/ar-TN/_lib/formatLong.d.cts | 2 + .../locale/ar-TN/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ar-TN/_lib/formatLong.js | 39 + .../locale/ar-TN/_lib/formatRelative.cjs | 14 + .../locale/ar-TN/_lib/formatRelative.d.cts | 2 + .../locale/ar-TN/_lib/formatRelative.d.ts | 2 + .../locale/ar-TN/_lib/formatRelative.js | 10 + .../date-fns/locale/ar-TN/_lib/localize.cjs | 164 + .../date-fns/locale/ar-TN/_lib/localize.d.cts | 2 + .../date-fns/locale/ar-TN/_lib/localize.d.ts | 2 + .../date-fns/locale/ar-TN/_lib/localize.js | 162 + .../date-fns/locale/ar-TN/_lib/match.cjs | 145 + .../date-fns/locale/ar-TN/_lib/match.d.cts | 2 + .../date-fns/locale/ar-TN/_lib/match.d.ts | 2 + .../date-fns/locale/ar-TN/_lib/match.js | 143 + node_modules/date-fns/locale/ar-TN/cdn.js | 612 + node_modules/date-fns/locale/ar-TN/cdn.min.js | 1 + node_modules/date-fns/locale/ar.cjs | 28 + node_modules/date-fns/locale/ar.d.cts | 10 + node_modules/date-fns/locale/ar.d.ts | 10 + node_modules/date-fns/locale/ar.js | 29 + .../locale/ar/_lib/formatDistance.cjs | 138 + .../locale/ar/_lib/formatDistance.d.cts | 2 + .../locale/ar/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ar/_lib/formatDistance.js | 134 + .../date-fns/locale/ar/_lib/formatLong.cjs | 41 + .../date-fns/locale/ar/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ar/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ar/_lib/formatLong.js | 39 + .../locale/ar/_lib/formatRelative.cjs | 14 + .../locale/ar/_lib/formatRelative.d.cts | 2 + .../locale/ar/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ar/_lib/formatRelative.js | 10 + .../date-fns/locale/ar/_lib/localize.cjs | 164 + .../date-fns/locale/ar/_lib/localize.d.cts | 2 + .../date-fns/locale/ar/_lib/localize.d.ts | 2 + .../date-fns/locale/ar/_lib/localize.js | 162 + .../date-fns/locale/ar/_lib/match.cjs | 145 + .../date-fns/locale/ar/_lib/match.d.cts | 2 + .../date-fns/locale/ar/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ar/_lib/match.js | 143 + node_modules/date-fns/locale/ar/cdn.js | 613 + node_modules/date-fns/locale/ar/cdn.min.js | 1 + node_modules/date-fns/locale/az.cjs | 27 + node_modules/date-fns/locale/az.d.cts | 8 + node_modules/date-fns/locale/az.d.ts | 8 + node_modules/date-fns/locale/az.js | 28 + .../locale/az/_lib/formatDistance.cjs | 105 + .../locale/az/_lib/formatDistance.d.cts | 2 + .../locale/az/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/az/_lib/formatDistance.js | 101 + .../date-fns/locale/az/_lib/formatLong.cjs | 41 + .../date-fns/locale/az/_lib/formatLong.d.cts | 2 + .../date-fns/locale/az/_lib/formatLong.d.ts | 2 + .../date-fns/locale/az/_lib/formatLong.js | 39 + .../locale/az/_lib/formatRelative.cjs | 15 + .../locale/az/_lib/formatRelative.d.cts | 2 + .../locale/az/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/az/_lib/formatRelative.js | 11 + .../date-fns/locale/az/_lib/localize.cjs | 208 + .../date-fns/locale/az/_lib/localize.d.cts | 2 + .../date-fns/locale/az/_lib/localize.d.ts | 2 + .../date-fns/locale/az/_lib/localize.js | 206 + .../date-fns/locale/az/_lib/match.cjs | 187 + .../date-fns/locale/az/_lib/match.d.cts | 2 + .../date-fns/locale/az/_lib/match.d.ts | 2 + node_modules/date-fns/locale/az/_lib/match.js | 184 + node_modules/date-fns/locale/az/cdn.js | 635 + node_modules/date-fns/locale/az/cdn.min.js | 1 + node_modules/date-fns/locale/be-tarask.cjs | 27 + node_modules/date-fns/locale/be-tarask.d.cts | 9 + node_modules/date-fns/locale/be-tarask.d.ts | 9 + node_modules/date-fns/locale/be-tarask.js | 28 + .../locale/be-tarask/_lib/formatDistance.cjs | 263 + .../be-tarask/_lib/formatDistance.d.cts | 2 + .../locale/be-tarask/_lib/formatDistance.d.ts | 2 + .../locale/be-tarask/_lib/formatDistance.js | 259 + .../locale/be-tarask/_lib/formatLong.cjs | 38 + .../locale/be-tarask/_lib/formatLong.d.cts | 2 + .../locale/be-tarask/_lib/formatLong.d.ts | 2 + .../locale/be-tarask/_lib/formatLong.js | 36 + .../locale/be-tarask/_lib/formatRelative.cjs | 92 + .../be-tarask/_lib/formatRelative.d.cts | 2 + .../locale/be-tarask/_lib/formatRelative.d.ts | 2 + .../locale/be-tarask/_lib/formatRelative.js | 89 + .../locale/be-tarask/_lib/localize.cjs | 228 + .../locale/be-tarask/_lib/localize.d.cts | 2 + .../locale/be-tarask/_lib/localize.d.ts | 2 + .../locale/be-tarask/_lib/localize.js | 225 + .../date-fns/locale/be-tarask/_lib/match.cjs | 138 + .../locale/be-tarask/_lib/match.d.cts | 2 + .../date-fns/locale/be-tarask/_lib/match.d.ts | 2 + .../date-fns/locale/be-tarask/_lib/match.js | 135 + node_modules/date-fns/locale/be-tarask/cdn.js | 1006 + .../date-fns/locale/be-tarask/cdn.min.js | 2 + node_modules/date-fns/locale/be.cjs | 28 + node_modules/date-fns/locale/be.d.cts | 10 + node_modules/date-fns/locale/be.d.ts | 10 + node_modules/date-fns/locale/be.js | 29 + .../locale/be/_lib/formatDistance.cjs | 263 + .../locale/be/_lib/formatDistance.d.cts | 2 + .../locale/be/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/be/_lib/formatDistance.js | 259 + .../date-fns/locale/be/_lib/formatLong.cjs | 38 + .../date-fns/locale/be/_lib/formatLong.d.cts | 2 + .../date-fns/locale/be/_lib/formatLong.d.ts | 2 + .../date-fns/locale/be/_lib/formatLong.js | 36 + .../locale/be/_lib/formatRelative.cjs | 92 + .../locale/be/_lib/formatRelative.d.cts | 2 + .../locale/be/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/be/_lib/formatRelative.js | 89 + .../date-fns/locale/be/_lib/localize.cjs | 228 + .../date-fns/locale/be/_lib/localize.d.cts | 2 + .../date-fns/locale/be/_lib/localize.d.ts | 2 + .../date-fns/locale/be/_lib/localize.js | 225 + .../date-fns/locale/be/_lib/match.cjs | 138 + .../date-fns/locale/be/_lib/match.d.cts | 2 + .../date-fns/locale/be/_lib/match.d.ts | 2 + node_modules/date-fns/locale/be/_lib/match.js | 135 + node_modules/date-fns/locale/be/cdn.js | 1007 + node_modules/date-fns/locale/be/cdn.min.js | 2 + node_modules/date-fns/locale/bg.cjs | 28 + node_modules/date-fns/locale/bg.d.cts | 10 + node_modules/date-fns/locale/bg.d.ts | 10 + node_modules/date-fns/locale/bg.js | 29 + .../locale/bg/_lib/formatDistance.cjs | 105 + .../locale/bg/_lib/formatDistance.d.cts | 2 + .../locale/bg/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/bg/_lib/formatDistance.js | 101 + .../date-fns/locale/bg/_lib/formatLong.cjs | 38 + .../date-fns/locale/bg/_lib/formatLong.d.cts | 2 + .../date-fns/locale/bg/_lib/formatLong.d.ts | 2 + .../date-fns/locale/bg/_lib/formatLong.js | 36 + .../locale/bg/_lib/formatRelative.cjs | 98 + .../locale/bg/_lib/formatRelative.d.cts | 2 + .../locale/bg/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/bg/_lib/formatRelative.js | 95 + .../date-fns/locale/bg/_lib/localize.cjs | 158 + .../date-fns/locale/bg/_lib/localize.d.cts | 2 + .../date-fns/locale/bg/_lib/localize.d.ts | 2 + .../date-fns/locale/bg/_lib/localize.js | 156 + .../date-fns/locale/bg/_lib/match.cjs | 121 + .../date-fns/locale/bg/_lib/match.d.cts | 2 + .../date-fns/locale/bg/_lib/match.d.ts | 2 + node_modules/date-fns/locale/bg/_lib/match.js | 118 + node_modules/date-fns/locale/bg/cdn.js | 749 + node_modules/date-fns/locale/bg/cdn.min.js | 2 + node_modules/date-fns/locale/bn.cjs | 28 + node_modules/date-fns/locale/bn.d.cts | 10 + node_modules/date-fns/locale/bn.d.ts | 10 + node_modules/date-fns/locale/bn.js | 29 + .../locale/bn/_lib/formatDistance.cjs | 109 + .../locale/bn/_lib/formatDistance.d.cts | 2 + .../locale/bn/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/bn/_lib/formatDistance.js | 103 + .../date-fns/locale/bn/_lib/formatLong.cjs | 41 + .../date-fns/locale/bn/_lib/formatLong.d.cts | 2 + .../date-fns/locale/bn/_lib/formatLong.d.ts | 2 + .../date-fns/locale/bn/_lib/formatLong.js | 39 + .../locale/bn/_lib/formatRelative.cjs | 15 + .../locale/bn/_lib/formatRelative.d.cts | 2 + .../locale/bn/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/bn/_lib/formatRelative.js | 11 + .../date-fns/locale/bn/_lib/localize.cjs | 258 + .../date-fns/locale/bn/_lib/localize.d.cts | 3 + .../date-fns/locale/bn/_lib/localize.d.ts | 3 + .../date-fns/locale/bn/_lib/localize.js | 255 + .../date-fns/locale/bn/_lib/match.cjs | 145 + .../date-fns/locale/bn/_lib/match.d.cts | 2 + .../date-fns/locale/bn/_lib/match.d.ts | 2 + node_modules/date-fns/locale/bn/_lib/match.js | 142 + node_modules/date-fns/locale/bn/cdn.js | 632 + node_modules/date-fns/locale/bn/cdn.min.js | 1 + node_modules/date-fns/locale/bs.cjs | 27 + node_modules/date-fns/locale/bs.d.cts | 9 + node_modules/date-fns/locale/bs.d.ts | 9 + node_modules/date-fns/locale/bs.js | 28 + .../locale/bs/_lib/formatDistance.cjs | 194 + .../locale/bs/_lib/formatDistance.d.cts | 2 + .../locale/bs/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/bs/_lib/formatDistance.js | 190 + .../date-fns/locale/bs/_lib/formatLong.cjs | 41 + .../date-fns/locale/bs/_lib/formatLong.d.cts | 2 + .../date-fns/locale/bs/_lib/formatLong.d.ts | 2 + .../date-fns/locale/bs/_lib/formatLong.js | 39 + .../locale/bs/_lib/formatRelative.cjs | 44 + .../locale/bs/_lib/formatRelative.d.cts | 2 + .../locale/bs/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/bs/_lib/formatRelative.js | 40 + .../date-fns/locale/bs/_lib/localize.cjs | 229 + .../date-fns/locale/bs/_lib/localize.d.cts | 2 + .../date-fns/locale/bs/_lib/localize.d.ts | 2 + .../date-fns/locale/bs/_lib/localize.js | 227 + .../date-fns/locale/bs/_lib/match.cjs | 134 + .../date-fns/locale/bs/_lib/match.d.cts | 2 + .../date-fns/locale/bs/_lib/match.d.ts | 2 + node_modules/date-fns/locale/bs/_lib/match.js | 131 + node_modules/date-fns/locale/bs/cdn.js | 713 + node_modules/date-fns/locale/bs/cdn.min.js | 1 + node_modules/date-fns/locale/ca.cjs | 28 + node_modules/date-fns/locale/ca.d.cts | 10 + node_modules/date-fns/locale/ca.d.ts | 10 + node_modules/date-fns/locale/ca.js | 29 + .../locale/ca/_lib/formatDistance.cjs | 121 + .../locale/ca/_lib/formatDistance.d.cts | 2 + .../locale/ca/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ca/_lib/formatDistance.js | 117 + .../date-fns/locale/ca/_lib/formatLong.cjs | 41 + .../date-fns/locale/ca/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ca/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ca/_lib/formatLong.js | 39 + .../locale/ca/_lib/formatRelative.cjs | 28 + .../locale/ca/_lib/formatRelative.d.cts | 2 + .../locale/ca/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ca/_lib/formatRelative.js | 24 + .../date-fns/locale/ca/_lib/localize.cjs | 234 + .../date-fns/locale/ca/_lib/localize.d.cts | 2 + .../date-fns/locale/ca/_lib/localize.d.ts | 2 + .../date-fns/locale/ca/_lib/localize.js | 232 + .../date-fns/locale/ca/_lib/match.cjs | 166 + .../date-fns/locale/ca/_lib/match.d.cts | 2 + .../date-fns/locale/ca/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ca/_lib/match.js | 163 + node_modules/date-fns/locale/ca/cdn.js | 675 + node_modules/date-fns/locale/ca/cdn.min.js | 1 + node_modules/date-fns/locale/cdn.js | 44037 ++++++++++++++++ node_modules/date-fns/locale/cdn.min.js | 2 + node_modules/date-fns/locale/ckb.cjs | 28 + node_modules/date-fns/locale/ckb.d.cts | 10 + node_modules/date-fns/locale/ckb.d.ts | 10 + node_modules/date-fns/locale/ckb.js | 29 + .../locale/ckb/_lib/formatDistance.cjs | 105 + .../locale/ckb/_lib/formatDistance.d.cts | 2 + .../locale/ckb/_lib/formatDistance.d.ts | 2 + .../locale/ckb/_lib/formatDistance.js | 101 + .../date-fns/locale/ckb/_lib/formatLong.cjs | 41 + .../date-fns/locale/ckb/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ckb/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ckb/_lib/formatLong.js | 39 + .../locale/ckb/_lib/formatRelative.cjs | 15 + .../locale/ckb/_lib/formatRelative.d.cts | 2 + .../locale/ckb/_lib/formatRelative.d.ts | 2 + .../locale/ckb/_lib/formatRelative.js | 11 + .../date-fns/locale/ckb/_lib/localize.cjs | 193 + .../date-fns/locale/ckb/_lib/localize.d.cts | 2 + .../date-fns/locale/ckb/_lib/localize.d.ts | 2 + .../date-fns/locale/ckb/_lib/localize.js | 190 + .../date-fns/locale/ckb/_lib/match.cjs | 140 + .../date-fns/locale/ckb/_lib/match.d.cts | 2 + .../date-fns/locale/ckb/_lib/match.d.ts | 2 + .../date-fns/locale/ckb/_lib/match.js | 137 + node_modules/date-fns/locale/ckb/cdn.js | 584 + node_modules/date-fns/locale/ckb/cdn.min.js | 1 + node_modules/date-fns/locale/cs.cjs | 29 + node_modules/date-fns/locale/cs.d.cts | 11 + node_modules/date-fns/locale/cs.d.ts | 11 + node_modules/date-fns/locale/cs.js | 30 + .../locale/cs/_lib/formatDistance.cjs | 324 + .../locale/cs/_lib/formatDistance.d.cts | 2 + .../locale/cs/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/cs/_lib/formatDistance.js | 320 + .../date-fns/locale/cs/_lib/formatLong.cjs | 41 + .../date-fns/locale/cs/_lib/formatLong.d.cts | 2 + .../date-fns/locale/cs/_lib/formatLong.d.ts | 2 + .../date-fns/locale/cs/_lib/formatLong.js | 39 + .../locale/cs/_lib/formatRelative.cjs | 35 + .../locale/cs/_lib/formatRelative.d.cts | 2 + .../locale/cs/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/cs/_lib/formatRelative.js | 31 + .../date-fns/locale/cs/_lib/localize.cjs | 194 + .../date-fns/locale/cs/_lib/localize.d.cts | 2 + .../date-fns/locale/cs/_lib/localize.d.ts | 2 + .../date-fns/locale/cs/_lib/localize.js | 192 + .../date-fns/locale/cs/_lib/match.cjs | 137 + .../date-fns/locale/cs/_lib/match.d.cts | 2 + .../date-fns/locale/cs/_lib/match.d.ts | 2 + node_modules/date-fns/locale/cs/_lib/match.js | 134 + node_modules/date-fns/locale/cs/cdn.js | 840 + node_modules/date-fns/locale/cs/cdn.min.js | 1 + node_modules/date-fns/locale/cy.cjs | 27 + node_modules/date-fns/locale/cy.d.cts | 9 + node_modules/date-fns/locale/cy.d.ts | 9 + node_modules/date-fns/locale/cy.js | 28 + .../locale/cy/_lib/formatDistance.cjs | 118 + .../locale/cy/_lib/formatDistance.d.cts | 2 + .../locale/cy/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/cy/_lib/formatDistance.js | 114 + .../date-fns/locale/cy/_lib/formatLong.cjs | 41 + .../date-fns/locale/cy/_lib/formatLong.d.cts | 2 + .../date-fns/locale/cy/_lib/formatLong.d.ts | 2 + .../date-fns/locale/cy/_lib/formatLong.js | 39 + .../locale/cy/_lib/formatRelative.cjs | 15 + .../locale/cy/_lib/formatRelative.d.cts | 2 + .../locale/cy/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/cy/_lib/formatRelative.js | 11 + .../date-fns/locale/cy/_lib/localize.cjs | 205 + .../date-fns/locale/cy/_lib/localize.d.cts | 2 + .../date-fns/locale/cy/_lib/localize.d.ts | 2 + .../date-fns/locale/cy/_lib/localize.js | 203 + .../date-fns/locale/cy/_lib/match.cjs | 146 + .../date-fns/locale/cy/_lib/match.d.cts | 2 + .../date-fns/locale/cy/_lib/match.d.ts | 2 + node_modules/date-fns/locale/cy/_lib/match.js | 143 + node_modules/date-fns/locale/cy/cdn.js | 621 + node_modules/date-fns/locale/cy/cdn.min.js | 1 + node_modules/date-fns/locale/da.cjs | 30 + node_modules/date-fns/locale/da.d.cts | 12 + node_modules/date-fns/locale/da.d.ts | 12 + node_modules/date-fns/locale/da.js | 31 + .../locale/da/_lib/formatDistance.cjs | 105 + .../locale/da/_lib/formatDistance.d.cts | 2 + .../locale/da/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/da/_lib/formatDistance.js | 101 + .../date-fns/locale/da/_lib/formatLong.cjs | 41 + .../date-fns/locale/da/_lib/formatLong.d.cts | 2 + .../date-fns/locale/da/_lib/formatLong.d.ts | 2 + .../date-fns/locale/da/_lib/formatLong.js | 39 + .../locale/da/_lib/formatRelative.cjs | 15 + .../locale/da/_lib/formatRelative.d.cts | 2 + .../locale/da/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/da/_lib/formatRelative.js | 11 + .../date-fns/locale/da/_lib/localize.cjs | 170 + .../date-fns/locale/da/_lib/localize.d.cts | 2 + .../date-fns/locale/da/_lib/localize.d.ts | 2 + .../date-fns/locale/da/_lib/localize.js | 168 + .../date-fns/locale/da/_lib/match.cjs | 135 + .../date-fns/locale/da/_lib/match.d.cts | 2 + .../date-fns/locale/da/_lib/match.d.ts | 2 + node_modules/date-fns/locale/da/_lib/match.js | 132 + node_modules/date-fns/locale/da/cdn.js | 576 + node_modules/date-fns/locale/da/cdn.min.js | 1 + node_modules/date-fns/locale/de-AT.cjs | 28 + node_modules/date-fns/locale/de-AT.d.cts | 9 + node_modules/date-fns/locale/de-AT.d.ts | 9 + node_modules/date-fns/locale/de-AT.js | 30 + .../date-fns/locale/de-AT/_lib/localize.cjs | 192 + .../date-fns/locale/de-AT/_lib/localize.d.cts | 2 + .../date-fns/locale/de-AT/_lib/localize.d.ts | 2 + .../date-fns/locale/de-AT/_lib/localize.js | 190 + node_modules/date-fns/locale/de-AT/cdn.js | 675 + node_modules/date-fns/locale/de-AT/cdn.min.js | 1 + node_modules/date-fns/locale/de.cjs | 31 + node_modules/date-fns/locale/de.d.cts | 13 + node_modules/date-fns/locale/de.d.ts | 13 + node_modules/date-fns/locale/de.js | 32 + .../locale/de/_lib/formatDistance.cjs | 200 + .../locale/de/_lib/formatDistance.d.cts | 2 + .../locale/de/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/de/_lib/formatDistance.js | 196 + .../date-fns/locale/de/_lib/formatLong.cjs | 42 + .../date-fns/locale/de/_lib/formatLong.d.cts | 2 + .../date-fns/locale/de/_lib/formatLong.d.ts | 2 + .../date-fns/locale/de/_lib/formatLong.js | 40 + .../locale/de/_lib/formatRelative.cjs | 15 + .../locale/de/_lib/formatRelative.d.cts | 2 + .../locale/de/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/de/_lib/formatRelative.js | 11 + .../date-fns/locale/de/_lib/localize.cjs | 193 + .../date-fns/locale/de/_lib/localize.d.cts | 2 + .../date-fns/locale/de/_lib/localize.d.ts | 2 + .../date-fns/locale/de/_lib/localize.js | 191 + .../date-fns/locale/de/_lib/match.cjs | 137 + .../date-fns/locale/de/_lib/match.d.cts | 2 + .../date-fns/locale/de/_lib/match.d.ts | 2 + node_modules/date-fns/locale/de/_lib/match.js | 134 + node_modules/date-fns/locale/de/cdn.js | 679 + node_modules/date-fns/locale/de/cdn.min.js | 1 + node_modules/date-fns/locale/el.cjs | 28 + node_modules/date-fns/locale/el.d.cts | 10 + node_modules/date-fns/locale/el.d.ts | 10 + node_modules/date-fns/locale/el.js | 29 + .../locale/el/_lib/formatDistance.cjs | 105 + .../locale/el/_lib/formatDistance.d.cts | 2 + .../locale/el/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/el/_lib/formatDistance.js | 101 + .../date-fns/locale/el/_lib/formatLong.cjs | 41 + .../date-fns/locale/el/_lib/formatLong.d.cts | 2 + .../date-fns/locale/el/_lib/formatLong.d.ts | 2 + .../date-fns/locale/el/_lib/formatLong.js | 39 + .../locale/el/_lib/formatRelative.cjs | 27 + .../locale/el/_lib/formatRelative.d.cts | 2 + .../locale/el/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/el/_lib/formatRelative.js | 23 + .../date-fns/locale/el/_lib/localize.cjs | 183 + .../date-fns/locale/el/_lib/localize.d.cts | 2 + .../date-fns/locale/el/_lib/localize.d.ts | 2 + .../date-fns/locale/el/_lib/localize.js | 181 + .../date-fns/locale/el/_lib/match.cjs | 137 + .../date-fns/locale/el/_lib/match.d.cts | 2 + .../date-fns/locale/el/_lib/match.d.ts | 2 + node_modules/date-fns/locale/el/_lib/match.js | 134 + node_modules/date-fns/locale/el/cdn.js | 601 + node_modules/date-fns/locale/el/cdn.min.js | 1 + node_modules/date-fns/locale/en-AU.cjs | 27 + node_modules/date-fns/locale/en-AU.d.cts | 9 + node_modules/date-fns/locale/en-AU.d.ts | 9 + node_modules/date-fns/locale/en-AU.js | 28 + .../date-fns/locale/en-AU/_lib/formatLong.cjs | 41 + .../locale/en-AU/_lib/formatLong.d.cts | 2 + .../locale/en-AU/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-AU/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-AU/cdn.js | 580 + node_modules/date-fns/locale/en-AU/cdn.min.js | 1 + node_modules/date-fns/locale/en-CA.cjs | 29 + node_modules/date-fns/locale/en-CA.d.cts | 10 + node_modules/date-fns/locale/en-CA.d.ts | 10 + node_modules/date-fns/locale/en-CA.js | 30 + .../locale/en-CA/_lib/formatDistance.cjs | 105 + .../locale/en-CA/_lib/formatDistance.d.cts | 2 + .../locale/en-CA/_lib/formatDistance.d.ts | 2 + .../locale/en-CA/_lib/formatDistance.js | 101 + .../date-fns/locale/en-CA/_lib/formatLong.cjs | 41 + .../locale/en-CA/_lib/formatLong.d.cts | 2 + .../locale/en-CA/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-CA/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-CA/cdn.js | 581 + node_modules/date-fns/locale/en-CA/cdn.min.js | 1 + node_modules/date-fns/locale/en-GB.cjs | 28 + node_modules/date-fns/locale/en-GB.d.cts | 9 + node_modules/date-fns/locale/en-GB.d.ts | 9 + node_modules/date-fns/locale/en-GB.js | 29 + .../date-fns/locale/en-GB/_lib/formatLong.cjs | 41 + .../locale/en-GB/_lib/formatLong.d.cts | 2 + .../locale/en-GB/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-GB/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-GB/cdn.js | 580 + node_modules/date-fns/locale/en-GB/cdn.min.js | 1 + node_modules/date-fns/locale/en-IE.cjs | 28 + node_modules/date-fns/locale/en-IE.d.cts | 9 + node_modules/date-fns/locale/en-IE.d.ts | 9 + node_modules/date-fns/locale/en-IE.js | 29 + node_modules/date-fns/locale/en-IE/cdn.js | 580 + node_modules/date-fns/locale/en-IE/cdn.min.js | 1 + node_modules/date-fns/locale/en-IN.cjs | 28 + node_modules/date-fns/locale/en-IN.d.cts | 9 + node_modules/date-fns/locale/en-IN.d.ts | 9 + node_modules/date-fns/locale/en-IN.js | 29 + .../date-fns/locale/en-IN/_lib/formatLong.cjs | 41 + .../locale/en-IN/_lib/formatLong.d.cts | 2 + .../locale/en-IN/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-IN/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-IN/cdn.js | 580 + node_modules/date-fns/locale/en-IN/cdn.min.js | 1 + node_modules/date-fns/locale/en-NZ.cjs | 28 + node_modules/date-fns/locale/en-NZ.d.cts | 9 + node_modules/date-fns/locale/en-NZ.d.ts | 9 + node_modules/date-fns/locale/en-NZ.js | 29 + .../date-fns/locale/en-NZ/_lib/formatLong.cjs | 41 + .../locale/en-NZ/_lib/formatLong.d.cts | 2 + .../locale/en-NZ/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-NZ/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-NZ/cdn.js | 580 + node_modules/date-fns/locale/en-NZ/cdn.min.js | 1 + node_modules/date-fns/locale/en-US.cjs | 28 + node_modules/date-fns/locale/en-US.d.cts | 10 + node_modules/date-fns/locale/en-US.d.ts | 10 + node_modules/date-fns/locale/en-US.js | 29 + .../locale/en-US/_lib/formatDistance.cjs | 105 + .../locale/en-US/_lib/formatDistance.d.cts | 2 + .../locale/en-US/_lib/formatDistance.d.ts | 2 + .../locale/en-US/_lib/formatDistance.js | 101 + .../date-fns/locale/en-US/_lib/formatLong.cjs | 41 + .../locale/en-US/_lib/formatLong.d.cts | 2 + .../locale/en-US/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-US/_lib/formatLong.js | 39 + .../locale/en-US/_lib/formatRelative.cjs | 15 + .../locale/en-US/_lib/formatRelative.d.cts | 2 + .../locale/en-US/_lib/formatRelative.d.ts | 2 + .../locale/en-US/_lib/formatRelative.js | 11 + .../date-fns/locale/en-US/_lib/localize.cjs | 189 + .../date-fns/locale/en-US/_lib/localize.d.cts | 2 + .../date-fns/locale/en-US/_lib/localize.d.ts | 2 + .../date-fns/locale/en-US/_lib/localize.js | 187 + .../date-fns/locale/en-US/_lib/match.cjs | 135 + .../date-fns/locale/en-US/_lib/match.d.cts | 2 + .../date-fns/locale/en-US/_lib/match.d.ts | 2 + .../date-fns/locale/en-US/_lib/match.js | 132 + node_modules/date-fns/locale/en-US/cdn.js | 581 + node_modules/date-fns/locale/en-US/cdn.min.js | 1 + node_modules/date-fns/locale/en-ZA.cjs | 28 + node_modules/date-fns/locale/en-ZA.d.cts | 9 + node_modules/date-fns/locale/en-ZA.d.ts | 9 + node_modules/date-fns/locale/en-ZA.js | 29 + .../date-fns/locale/en-ZA/_lib/formatLong.cjs | 41 + .../locale/en-ZA/_lib/formatLong.d.cts | 2 + .../locale/en-ZA/_lib/formatLong.d.ts | 2 + .../date-fns/locale/en-ZA/_lib/formatLong.js | 39 + node_modules/date-fns/locale/en-ZA/cdn.js | 580 + node_modules/date-fns/locale/en-ZA/cdn.min.js | 1 + node_modules/date-fns/locale/eo.cjs | 27 + node_modules/date-fns/locale/eo.d.cts | 9 + node_modules/date-fns/locale/eo.d.ts | 9 + node_modules/date-fns/locale/eo.js | 28 + .../locale/eo/_lib/formatDistance.cjs | 105 + .../locale/eo/_lib/formatDistance.d.cts | 2 + .../locale/eo/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/eo/_lib/formatDistance.js | 101 + .../date-fns/locale/eo/_lib/formatLong.cjs | 38 + .../date-fns/locale/eo/_lib/formatLong.d.cts | 2 + .../date-fns/locale/eo/_lib/formatLong.d.ts | 2 + .../date-fns/locale/eo/_lib/formatLong.js | 36 + .../locale/eo/_lib/formatRelative.cjs | 15 + .../locale/eo/_lib/formatRelative.d.cts | 2 + .../locale/eo/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/eo/_lib/formatRelative.js | 11 + .../date-fns/locale/eo/_lib/localize.cjs | 139 + .../date-fns/locale/eo/_lib/localize.d.cts | 2 + .../date-fns/locale/eo/_lib/localize.d.ts | 2 + .../date-fns/locale/eo/_lib/localize.js | 136 + .../date-fns/locale/eo/_lib/match.cjs | 140 + .../date-fns/locale/eo/_lib/match.d.cts | 2 + .../date-fns/locale/eo/_lib/match.d.ts | 2 + node_modules/date-fns/locale/eo/_lib/match.js | 138 + node_modules/date-fns/locale/eo/cdn.js | 541 + node_modules/date-fns/locale/eo/cdn.min.js | 1 + node_modules/date-fns/locale/es.cjs | 31 + node_modules/date-fns/locale/es.d.cts | 13 + node_modules/date-fns/locale/es.d.ts | 13 + node_modules/date-fns/locale/es.js | 32 + .../locale/es/_lib/formatDistance.cjs | 105 + .../locale/es/_lib/formatDistance.d.cts | 2 + .../locale/es/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/es/_lib/formatDistance.js | 101 + .../date-fns/locale/es/_lib/formatLong.cjs | 41 + .../date-fns/locale/es/_lib/formatLong.d.cts | 2 + .../date-fns/locale/es/_lib/formatLong.d.ts | 2 + .../date-fns/locale/es/_lib/formatLong.js | 39 + .../locale/es/_lib/formatRelative.cjs | 29 + .../locale/es/_lib/formatRelative.d.cts | 2 + .../locale/es/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/es/_lib/formatRelative.js | 25 + .../date-fns/locale/es/_lib/localize.cjs | 166 + .../date-fns/locale/es/_lib/localize.d.cts | 2 + .../date-fns/locale/es/_lib/localize.d.ts | 2 + .../date-fns/locale/es/_lib/localize.js | 164 + .../date-fns/locale/es/_lib/match.cjs | 140 + .../date-fns/locale/es/_lib/match.d.cts | 2 + .../date-fns/locale/es/_lib/match.d.ts | 2 + node_modules/date-fns/locale/es/_lib/match.js | 138 + node_modules/date-fns/locale/es/cdn.js | 593 + node_modules/date-fns/locale/es/cdn.min.js | 1 + node_modules/date-fns/locale/et.cjs | 27 + node_modules/date-fns/locale/et.d.cts | 9 + node_modules/date-fns/locale/et.d.ts | 9 + node_modules/date-fns/locale/et.js | 28 + .../locale/et/_lib/formatDistance.cjs | 200 + .../locale/et/_lib/formatDistance.d.cts | 2 + .../locale/et/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/et/_lib/formatDistance.js | 196 + .../date-fns/locale/et/_lib/formatLong.cjs | 41 + .../date-fns/locale/et/_lib/formatLong.d.cts | 2 + .../date-fns/locale/et/_lib/formatLong.d.ts | 2 + .../date-fns/locale/et/_lib/formatLong.js | 39 + .../locale/et/_lib/formatRelative.cjs | 15 + .../locale/et/_lib/formatRelative.d.cts | 2 + .../locale/et/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/et/_lib/formatRelative.js | 11 + .../date-fns/locale/et/_lib/localize.cjs | 179 + .../date-fns/locale/et/_lib/localize.d.cts | 2 + .../date-fns/locale/et/_lib/localize.d.ts | 2 + .../date-fns/locale/et/_lib/localize.js | 177 + .../date-fns/locale/et/_lib/match.cjs | 133 + .../date-fns/locale/et/_lib/match.d.cts | 2 + .../date-fns/locale/et/_lib/match.d.ts | 2 + node_modules/date-fns/locale/et/_lib/match.js | 130 + node_modules/date-fns/locale/et/cdn.js | 656 + node_modules/date-fns/locale/et/cdn.min.js | 1 + node_modules/date-fns/locale/eu.cjs | 27 + node_modules/date-fns/locale/eu.d.cts | 9 + node_modules/date-fns/locale/eu.d.ts | 9 + node_modules/date-fns/locale/eu.js | 28 + .../locale/eu/_lib/formatDistance.cjs | 105 + .../locale/eu/_lib/formatDistance.d.cts | 2 + .../locale/eu/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/eu/_lib/formatDistance.js | 101 + .../date-fns/locale/eu/_lib/formatLong.cjs | 41 + .../date-fns/locale/eu/_lib/formatLong.d.cts | 2 + .../date-fns/locale/eu/_lib/formatLong.d.ts | 2 + .../date-fns/locale/eu/_lib/formatLong.js | 39 + .../locale/eu/_lib/formatRelative.cjs | 28 + .../locale/eu/_lib/formatRelative.d.cts | 2 + .../locale/eu/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/eu/_lib/formatRelative.js | 24 + .../date-fns/locale/eu/_lib/localize.cjs | 171 + .../date-fns/locale/eu/_lib/localize.d.cts | 2 + .../date-fns/locale/eu/_lib/localize.d.ts | 2 + .../date-fns/locale/eu/_lib/localize.js | 169 + .../date-fns/locale/eu/_lib/match.cjs | 158 + .../date-fns/locale/eu/_lib/match.d.cts | 2 + .../date-fns/locale/eu/_lib/match.d.ts | 2 + node_modules/date-fns/locale/eu/_lib/match.js | 155 + node_modules/date-fns/locale/eu/cdn.js | 618 + node_modules/date-fns/locale/eu/cdn.min.js | 1 + node_modules/date-fns/locale/fa-IR.cjs | 27 + node_modules/date-fns/locale/fa-IR.d.cts | 9 + node_modules/date-fns/locale/fa-IR.d.ts | 9 + node_modules/date-fns/locale/fa-IR.js | 28 + .../locale/fa-IR/_lib/formatDistance.cjs | 105 + .../locale/fa-IR/_lib/formatDistance.d.cts | 2 + .../locale/fa-IR/_lib/formatDistance.d.ts | 2 + .../locale/fa-IR/_lib/formatDistance.js | 101 + .../date-fns/locale/fa-IR/_lib/formatLong.cjs | 41 + .../locale/fa-IR/_lib/formatLong.d.cts | 2 + .../locale/fa-IR/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fa-IR/_lib/formatLong.js | 39 + .../locale/fa-IR/_lib/formatRelative.cjs | 15 + .../locale/fa-IR/_lib/formatRelative.d.cts | 2 + .../locale/fa-IR/_lib/formatRelative.d.ts | 2 + .../locale/fa-IR/_lib/formatRelative.js | 11 + .../date-fns/locale/fa-IR/_lib/localize.cjs | 170 + .../date-fns/locale/fa-IR/_lib/localize.d.cts | 2 + .../date-fns/locale/fa-IR/_lib/localize.d.ts | 2 + .../date-fns/locale/fa-IR/_lib/localize.js | 168 + .../date-fns/locale/fa-IR/_lib/match.cjs | 145 + .../date-fns/locale/fa-IR/_lib/match.d.cts | 2 + .../date-fns/locale/fa-IR/_lib/match.d.ts | 2 + .../date-fns/locale/fa-IR/_lib/match.js | 142 + node_modules/date-fns/locale/fa-IR/cdn.js | 574 + node_modules/date-fns/locale/fa-IR/cdn.min.js | 1 + node_modules/date-fns/locale/fi.cjs | 29 + node_modules/date-fns/locale/fi.d.cts | 11 + node_modules/date-fns/locale/fi.d.ts | 11 + node_modules/date-fns/locale/fi.js | 30 + .../locale/fi/_lib/formatDistance.cjs | 147 + .../locale/fi/_lib/formatDistance.d.cts | 2 + .../locale/fi/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/fi/_lib/formatDistance.js | 143 + .../date-fns/locale/fi/_lib/formatLong.cjs | 41 + .../date-fns/locale/fi/_lib/formatLong.d.cts | 2 + .../date-fns/locale/fi/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fi/_lib/formatLong.js | 39 + .../locale/fi/_lib/formatRelative.cjs | 15 + .../locale/fi/_lib/formatRelative.d.cts | 2 + .../locale/fi/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/fi/_lib/formatRelative.js | 11 + .../date-fns/locale/fi/_lib/localize.cjs | 170 + .../date-fns/locale/fi/_lib/localize.d.cts | 2 + .../date-fns/locale/fi/_lib/localize.d.ts | 2 + .../date-fns/locale/fi/_lib/localize.js | 168 + .../date-fns/locale/fi/_lib/match.cjs | 137 + .../date-fns/locale/fi/_lib/match.d.cts | 2 + .../date-fns/locale/fi/_lib/match.d.ts | 2 + node_modules/date-fns/locale/fi/_lib/match.js | 134 + node_modules/date-fns/locale/fi/cdn.js | 614 + node_modules/date-fns/locale/fi/cdn.min.js | 1 + node_modules/date-fns/locale/fr-CA.cjs | 32 + node_modules/date-fns/locale/fr-CA.d.cts | 11 + node_modules/date-fns/locale/fr-CA.d.ts | 11 + node_modules/date-fns/locale/fr-CA.js | 35 + .../date-fns/locale/fr-CA/_lib/formatLong.cjs | 41 + .../locale/fr-CA/_lib/formatLong.d.cts | 2 + .../locale/fr-CA/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fr-CA/_lib/formatLong.js | 39 + node_modules/date-fns/locale/fr-CA/cdn.js | 563 + node_modules/date-fns/locale/fr-CA/cdn.min.js | 1 + node_modules/date-fns/locale/fr-CH.cjs | 31 + node_modules/date-fns/locale/fr-CH.d.cts | 12 + node_modules/date-fns/locale/fr-CH.d.ts | 12 + node_modules/date-fns/locale/fr-CH.js | 34 + .../date-fns/locale/fr-CH/_lib/formatLong.cjs | 41 + .../locale/fr-CH/_lib/formatLong.d.cts | 2 + .../locale/fr-CH/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fr-CH/_lib/formatLong.js | 39 + .../locale/fr-CH/_lib/formatRelative.cjs | 15 + .../locale/fr-CH/_lib/formatRelative.d.cts | 2 + .../locale/fr-CH/_lib/formatRelative.d.ts | 2 + .../locale/fr-CH/_lib/formatRelative.js | 11 + node_modules/date-fns/locale/fr-CH/cdn.js | 565 + node_modules/date-fns/locale/fr-CH/cdn.min.js | 1 + node_modules/date-fns/locale/fr.cjs | 28 + node_modules/date-fns/locale/fr.d.cts | 10 + node_modules/date-fns/locale/fr.d.ts | 10 + node_modules/date-fns/locale/fr.js | 29 + .../locale/fr/_lib/formatDistance.cjs | 104 + .../locale/fr/_lib/formatDistance.d.cts | 2 + .../locale/fr/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/fr/_lib/formatDistance.js | 100 + .../date-fns/locale/fr/_lib/formatLong.cjs | 41 + .../date-fns/locale/fr/_lib/formatLong.d.cts | 2 + .../date-fns/locale/fr/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fr/_lib/formatLong.js | 39 + .../locale/fr/_lib/formatRelative.cjs | 15 + .../locale/fr/_lib/formatRelative.d.cts | 2 + .../locale/fr/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/fr/_lib/formatRelative.js | 11 + .../date-fns/locale/fr/_lib/localize.cjs | 167 + .../date-fns/locale/fr/_lib/localize.d.cts | 2 + .../date-fns/locale/fr/_lib/localize.d.ts | 2 + .../date-fns/locale/fr/_lib/localize.js | 165 + .../date-fns/locale/fr/_lib/match.cjs | 136 + .../date-fns/locale/fr/_lib/match.d.cts | 2 + .../date-fns/locale/fr/_lib/match.d.ts | 2 + node_modules/date-fns/locale/fr/_lib/match.js | 133 + node_modules/date-fns/locale/fr/cdn.js | 562 + node_modules/date-fns/locale/fr/cdn.min.js | 1 + node_modules/date-fns/locale/fy.cjs | 27 + node_modules/date-fns/locale/fy.d.cts | 9 + node_modules/date-fns/locale/fy.d.ts | 9 + node_modules/date-fns/locale/fy.js | 28 + .../locale/fy/_lib/formatDistance.cjs | 105 + .../locale/fy/_lib/formatDistance.d.cts | 2 + .../locale/fy/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/fy/_lib/formatDistance.js | 101 + .../date-fns/locale/fy/_lib/formatLong.cjs | 41 + .../date-fns/locale/fy/_lib/formatLong.d.cts | 2 + .../date-fns/locale/fy/_lib/formatLong.d.ts | 2 + .../date-fns/locale/fy/_lib/formatLong.js | 39 + .../locale/fy/_lib/formatRelative.cjs | 15 + .../locale/fy/_lib/formatRelative.d.cts | 2 + .../locale/fy/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/fy/_lib/formatRelative.js | 11 + .../date-fns/locale/fy/_lib/localize.cjs | 131 + .../date-fns/locale/fy/_lib/localize.d.cts | 2 + .../date-fns/locale/fy/_lib/localize.d.ts | 2 + .../date-fns/locale/fy/_lib/localize.js | 129 + .../date-fns/locale/fy/_lib/match.cjs | 136 + .../date-fns/locale/fy/_lib/match.d.cts | 2 + .../date-fns/locale/fy/_lib/match.d.ts | 2 + node_modules/date-fns/locale/fy/_lib/match.js | 133 + node_modules/date-fns/locale/fy/cdn.js | 536 + node_modules/date-fns/locale/fy/cdn.min.js | 1 + node_modules/date-fns/locale/gd.cjs | 27 + node_modules/date-fns/locale/gd.d.cts | 9 + node_modules/date-fns/locale/gd.d.ts | 9 + node_modules/date-fns/locale/gd.js | 28 + .../locale/gd/_lib/formatDistance.cjs | 115 + .../locale/gd/_lib/formatDistance.d.cts | 2 + .../locale/gd/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/gd/_lib/formatDistance.js | 111 + .../date-fns/locale/gd/_lib/formatLong.cjs | 41 + .../date-fns/locale/gd/_lib/formatLong.d.cts | 2 + .../date-fns/locale/gd/_lib/formatLong.d.ts | 2 + .../date-fns/locale/gd/_lib/formatLong.js | 39 + .../locale/gd/_lib/formatRelative.cjs | 15 + .../locale/gd/_lib/formatRelative.d.cts | 2 + .../locale/gd/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/gd/_lib/formatRelative.js | 11 + .../date-fns/locale/gd/_lib/localize.cjs | 189 + .../date-fns/locale/gd/_lib/localize.d.cts | 2 + .../date-fns/locale/gd/_lib/localize.d.ts | 2 + .../date-fns/locale/gd/_lib/localize.js | 187 + .../date-fns/locale/gd/_lib/match.cjs | 135 + .../date-fns/locale/gd/_lib/match.d.cts | 2 + .../date-fns/locale/gd/_lib/match.d.ts | 2 + node_modules/date-fns/locale/gd/_lib/match.js | 132 + node_modules/date-fns/locale/gd/cdn.js | 588 + node_modules/date-fns/locale/gd/cdn.min.js | 1 + node_modules/date-fns/locale/gl.cjs | 28 + node_modules/date-fns/locale/gl.d.cts | 10 + node_modules/date-fns/locale/gl.d.ts | 10 + node_modules/date-fns/locale/gl.js | 29 + .../locale/gl/_lib/formatDistance.cjs | 105 + .../locale/gl/_lib/formatDistance.d.cts | 2 + .../locale/gl/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/gl/_lib/formatDistance.js | 101 + .../date-fns/locale/gl/_lib/formatLong.cjs | 41 + .../date-fns/locale/gl/_lib/formatLong.d.cts | 2 + .../date-fns/locale/gl/_lib/formatLong.d.ts | 2 + .../date-fns/locale/gl/_lib/formatLong.js | 39 + .../locale/gl/_lib/formatRelative.cjs | 28 + .../locale/gl/_lib/formatRelative.d.cts | 2 + .../locale/gl/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/gl/_lib/formatRelative.js | 24 + .../date-fns/locale/gl/_lib/localize.cjs | 158 + .../date-fns/locale/gl/_lib/localize.d.cts | 2 + .../date-fns/locale/gl/_lib/localize.d.ts | 2 + .../date-fns/locale/gl/_lib/localize.js | 156 + .../date-fns/locale/gl/_lib/match.cjs | 139 + .../date-fns/locale/gl/_lib/match.d.cts | 2 + .../date-fns/locale/gl/_lib/match.d.ts | 2 + node_modules/date-fns/locale/gl/_lib/match.js | 136 + node_modules/date-fns/locale/gl/cdn.js | 588 + node_modules/date-fns/locale/gl/cdn.min.js | 1 + node_modules/date-fns/locale/gu.cjs | 27 + node_modules/date-fns/locale/gu.d.cts | 9 + node_modules/date-fns/locale/gu.d.ts | 9 + node_modules/date-fns/locale/gu.js | 28 + .../locale/gu/_lib/formatDistance.cjs | 106 + .../locale/gu/_lib/formatDistance.d.cts | 2 + .../locale/gu/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/gu/_lib/formatDistance.js | 102 + .../date-fns/locale/gu/_lib/formatLong.cjs | 42 + .../date-fns/locale/gu/_lib/formatLong.d.cts | 2 + .../date-fns/locale/gu/_lib/formatLong.d.ts | 2 + .../date-fns/locale/gu/_lib/formatLong.js | 40 + .../locale/gu/_lib/formatRelative.cjs | 17 + .../locale/gu/_lib/formatRelative.d.cts | 2 + .../locale/gu/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/gu/_lib/formatRelative.js | 13 + .../date-fns/locale/gu/_lib/localize.cjs | 181 + .../date-fns/locale/gu/_lib/localize.d.cts | 2 + .../date-fns/locale/gu/_lib/localize.d.ts | 2 + .../date-fns/locale/gu/_lib/localize.js | 179 + .../date-fns/locale/gu/_lib/match.cjs | 137 + .../date-fns/locale/gu/_lib/match.d.cts | 2 + .../date-fns/locale/gu/_lib/match.d.ts | 2 + node_modules/date-fns/locale/gu/_lib/match.js | 134 + node_modules/date-fns/locale/gu/cdn.js | 573 + node_modules/date-fns/locale/gu/cdn.min.js | 1 + node_modules/date-fns/locale/he.cjs | 27 + node_modules/date-fns/locale/he.d.cts | 9 + node_modules/date-fns/locale/he.d.ts | 9 + node_modules/date-fns/locale/he.js | 28 + .../locale/he/_lib/formatDistance.cjs | 131 + .../locale/he/_lib/formatDistance.d.cts | 2 + .../locale/he/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/he/_lib/formatDistance.js | 127 + .../date-fns/locale/he/_lib/formatLong.cjs | 41 + .../date-fns/locale/he/_lib/formatLong.d.cts | 2 + .../date-fns/locale/he/_lib/formatLong.d.ts | 2 + .../date-fns/locale/he/_lib/formatLong.js | 39 + .../locale/he/_lib/formatRelative.cjs | 15 + .../locale/he/_lib/formatRelative.d.cts | 2 + .../locale/he/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/he/_lib/formatRelative.js | 11 + .../date-fns/locale/he/_lib/localize.cjs | 211 + .../date-fns/locale/he/_lib/localize.d.cts | 2 + .../date-fns/locale/he/_lib/localize.d.ts | 2 + .../date-fns/locale/he/_lib/localize.js | 209 + .../date-fns/locale/he/_lib/match.cjs | 141 + .../date-fns/locale/he/_lib/match.d.cts | 2 + .../date-fns/locale/he/_lib/match.d.ts | 2 + node_modules/date-fns/locale/he/_lib/match.js | 138 + node_modules/date-fns/locale/he/cdn.js | 662 + node_modules/date-fns/locale/he/cdn.min.js | 1 + node_modules/date-fns/locale/hi.cjs | 27 + node_modules/date-fns/locale/hi.d.cts | 9 + node_modules/date-fns/locale/hi.d.ts | 9 + node_modules/date-fns/locale/hi.js | 28 + .../locale/hi/_lib/formatDistance.cjs | 111 + .../locale/hi/_lib/formatDistance.d.cts | 9 + .../locale/hi/_lib/formatDistance.d.ts | 9 + .../date-fns/locale/hi/_lib/formatDistance.js | 105 + .../date-fns/locale/hi/_lib/formatLong.cjs | 41 + .../date-fns/locale/hi/_lib/formatLong.d.cts | 2 + .../date-fns/locale/hi/_lib/formatLong.d.ts | 2 + .../date-fns/locale/hi/_lib/formatLong.js | 39 + .../locale/hi/_lib/formatRelative.cjs | 15 + .../locale/hi/_lib/formatRelative.d.cts | 2 + .../locale/hi/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/hi/_lib/formatRelative.js | 11 + .../date-fns/locale/hi/_lib/localize.cjs | 231 + .../date-fns/locale/hi/_lib/localize.d.cts | 37 + .../date-fns/locale/hi/_lib/localize.d.ts | 37 + .../date-fns/locale/hi/_lib/localize.js | 227 + .../date-fns/locale/hi/_lib/match.cjs | 140 + .../date-fns/locale/hi/_lib/match.d.cts | 2 + .../date-fns/locale/hi/_lib/match.d.ts | 2 + node_modules/date-fns/locale/hi/_lib/match.js | 137 + node_modules/date-fns/locale/hi/cdn.js | 610 + node_modules/date-fns/locale/hi/cdn.min.js | 1 + node_modules/date-fns/locale/hr.cjs | 29 + node_modules/date-fns/locale/hr.d.cts | 11 + node_modules/date-fns/locale/hr.d.ts | 11 + node_modules/date-fns/locale/hr.js | 30 + .../locale/hr/_lib/formatDistance.cjs | 194 + .../locale/hr/_lib/formatDistance.d.cts | 2 + .../locale/hr/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/hr/_lib/formatDistance.js | 190 + .../date-fns/locale/hr/_lib/formatLong.cjs | 41 + .../date-fns/locale/hr/_lib/formatLong.d.cts | 2 + .../date-fns/locale/hr/_lib/formatLong.d.ts | 2 + .../date-fns/locale/hr/_lib/formatLong.js | 39 + .../locale/hr/_lib/formatRelative.cjs | 44 + .../locale/hr/_lib/formatRelative.d.cts | 2 + .../locale/hr/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/hr/_lib/formatRelative.js | 40 + .../date-fns/locale/hr/_lib/localize.cjs | 229 + .../date-fns/locale/hr/_lib/localize.d.cts | 2 + .../date-fns/locale/hr/_lib/localize.d.ts | 2 + .../date-fns/locale/hr/_lib/localize.js | 227 + .../date-fns/locale/hr/_lib/match.cjs | 149 + .../date-fns/locale/hr/_lib/match.d.cts | 2 + .../date-fns/locale/hr/_lib/match.d.ts | 2 + node_modules/date-fns/locale/hr/_lib/match.js | 146 + node_modules/date-fns/locale/hr/cdn.js | 728 + node_modules/date-fns/locale/hr/cdn.min.js | 1 + node_modules/date-fns/locale/ht.cjs | 28 + node_modules/date-fns/locale/ht.d.cts | 10 + node_modules/date-fns/locale/ht.d.ts | 10 + node_modules/date-fns/locale/ht.js | 29 + .../locale/ht/_lib/formatDistance.cjs | 105 + .../locale/ht/_lib/formatDistance.d.cts | 2 + .../locale/ht/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ht/_lib/formatDistance.js | 101 + .../date-fns/locale/ht/_lib/formatLong.cjs | 41 + .../date-fns/locale/ht/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ht/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ht/_lib/formatLong.js | 39 + .../locale/ht/_lib/formatRelative.cjs | 15 + .../locale/ht/_lib/formatRelative.d.cts | 2 + .../locale/ht/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ht/_lib/formatRelative.js | 11 + .../date-fns/locale/ht/_lib/localize.cjs | 129 + .../date-fns/locale/ht/_lib/localize.d.cts | 2 + .../date-fns/locale/ht/_lib/localize.d.ts | 2 + .../date-fns/locale/ht/_lib/localize.js | 127 + .../date-fns/locale/ht/_lib/match.cjs | 135 + .../date-fns/locale/ht/_lib/match.d.cts | 2 + .../date-fns/locale/ht/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ht/_lib/match.js | 132 + node_modules/date-fns/locale/ht/cdn.js | 542 + node_modules/date-fns/locale/ht/cdn.min.js | 1 + node_modules/date-fns/locale/hu.cjs | 29 + node_modules/date-fns/locale/hu.d.cts | 11 + node_modules/date-fns/locale/hu.d.ts | 11 + node_modules/date-fns/locale/hu.js | 30 + .../locale/hu/_lib/formatDistance.cjs | 86 + .../locale/hu/_lib/formatDistance.d.cts | 2 + .../locale/hu/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/hu/_lib/formatDistance.js | 82 + .../date-fns/locale/hu/_lib/formatLong.cjs | 41 + .../date-fns/locale/hu/_lib/formatLong.d.cts | 2 + .../date-fns/locale/hu/_lib/formatLong.d.ts | 2 + .../date-fns/locale/hu/_lib/formatLong.js | 39 + .../locale/hu/_lib/formatRelative.cjs | 39 + .../locale/hu/_lib/formatRelative.d.cts | 2 + .../locale/hu/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/hu/_lib/formatRelative.js | 35 + .../date-fns/locale/hu/_lib/localize.cjs | 140 + .../date-fns/locale/hu/_lib/localize.d.cts | 2 + .../date-fns/locale/hu/_lib/localize.d.ts | 2 + .../date-fns/locale/hu/_lib/localize.js | 138 + .../date-fns/locale/hu/_lib/match.cjs | 137 + .../date-fns/locale/hu/_lib/match.d.cts | 2 + .../date-fns/locale/hu/_lib/match.d.ts | 2 + node_modules/date-fns/locale/hu/_lib/match.js | 134 + node_modules/date-fns/locale/hu/cdn.js | 579 + node_modules/date-fns/locale/hu/cdn.min.js | 1 + node_modules/date-fns/locale/hy.cjs | 27 + node_modules/date-fns/locale/hy.d.cts | 9 + node_modules/date-fns/locale/hy.d.ts | 9 + node_modules/date-fns/locale/hy.js | 28 + .../locale/hy/_lib/formatDistance.cjs | 105 + .../locale/hy/_lib/formatDistance.d.cts | 2 + .../locale/hy/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/hy/_lib/formatDistance.js | 101 + .../date-fns/locale/hy/_lib/formatLong.cjs | 41 + .../date-fns/locale/hy/_lib/formatLong.d.cts | 2 + .../date-fns/locale/hy/_lib/formatLong.d.ts | 2 + .../date-fns/locale/hy/_lib/formatLong.js | 39 + .../locale/hy/_lib/formatRelative.cjs | 15 + .../locale/hy/_lib/formatRelative.d.cts | 2 + .../locale/hy/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/hy/_lib/formatRelative.js | 11 + .../date-fns/locale/hy/_lib/localize.cjs | 180 + .../date-fns/locale/hy/_lib/localize.d.cts | 2 + .../date-fns/locale/hy/_lib/localize.d.ts | 2 + .../date-fns/locale/hy/_lib/localize.js | 178 + .../date-fns/locale/hy/_lib/match.cjs | 138 + .../date-fns/locale/hy/_lib/match.d.cts | 2 + .../date-fns/locale/hy/_lib/match.d.ts | 2 + node_modules/date-fns/locale/hy/_lib/match.js | 135 + node_modules/date-fns/locale/hy/cdn.js | 596 + node_modules/date-fns/locale/hy/cdn.min.js | 1 + node_modules/date-fns/locale/id.cjs | 30 + node_modules/date-fns/locale/id.d.cts | 12 + node_modules/date-fns/locale/id.d.ts | 12 + node_modules/date-fns/locale/id.js | 31 + .../locale/id/_lib/formatDistance.cjs | 105 + .../locale/id/_lib/formatDistance.d.cts | 2 + .../locale/id/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/id/_lib/formatDistance.js | 101 + .../date-fns/locale/id/_lib/formatLong.cjs | 41 + .../date-fns/locale/id/_lib/formatLong.d.cts | 2 + .../date-fns/locale/id/_lib/formatLong.d.ts | 2 + .../date-fns/locale/id/_lib/formatLong.js | 39 + .../locale/id/_lib/formatRelative.cjs | 15 + .../locale/id/_lib/formatRelative.d.cts | 2 + .../locale/id/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/id/_lib/formatRelative.js | 11 + .../date-fns/locale/id/_lib/localize.cjs | 167 + .../date-fns/locale/id/_lib/localize.d.cts | 2 + .../date-fns/locale/id/_lib/localize.d.ts | 2 + .../date-fns/locale/id/_lib/localize.js | 165 + .../date-fns/locale/id/_lib/match.cjs | 135 + .../date-fns/locale/id/_lib/match.d.cts | 2 + .../date-fns/locale/id/_lib/match.d.ts | 2 + node_modules/date-fns/locale/id/_lib/match.js | 132 + node_modules/date-fns/locale/id/cdn.js | 576 + node_modules/date-fns/locale/id/cdn.min.js | 1 + node_modules/date-fns/locale/is.cjs | 28 + node_modules/date-fns/locale/is.d.cts | 10 + node_modules/date-fns/locale/is.d.ts | 10 + node_modules/date-fns/locale/is.js | 29 + .../locale/is/_lib/formatDistance.cjs | 105 + .../locale/is/_lib/formatDistance.d.cts | 2 + .../locale/is/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/is/_lib/formatDistance.js | 101 + .../date-fns/locale/is/_lib/formatLong.cjs | 41 + .../date-fns/locale/is/_lib/formatLong.d.cts | 2 + .../date-fns/locale/is/_lib/formatLong.d.ts | 2 + .../date-fns/locale/is/_lib/formatLong.js | 39 + .../locale/is/_lib/formatRelative.cjs | 15 + .../locale/is/_lib/formatRelative.d.cts | 2 + .../locale/is/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/is/_lib/formatRelative.js | 11 + .../date-fns/locale/is/_lib/localize.cjs | 168 + .../date-fns/locale/is/_lib/localize.d.cts | 2 + .../date-fns/locale/is/_lib/localize.d.ts | 2 + .../date-fns/locale/is/_lib/localize.js | 166 + .../date-fns/locale/is/_lib/match.cjs | 137 + .../date-fns/locale/is/_lib/match.d.cts | 2 + .../date-fns/locale/is/_lib/match.d.ts | 2 + node_modules/date-fns/locale/is/_lib/match.js | 134 + node_modules/date-fns/locale/is/cdn.js | 574 + node_modules/date-fns/locale/is/cdn.min.js | 1 + node_modules/date-fns/locale/it-CH.cjs | 27 + node_modules/date-fns/locale/it-CH.d.cts | 9 + node_modules/date-fns/locale/it-CH.d.ts | 9 + node_modules/date-fns/locale/it-CH.js | 28 + .../date-fns/locale/it-CH/_lib/formatLong.cjs | 41 + .../locale/it-CH/_lib/formatLong.d.cts | 2 + .../locale/it-CH/_lib/formatLong.d.ts | 2 + .../date-fns/locale/it-CH/_lib/formatLong.js | 39 + node_modules/date-fns/locale/it-CH/cdn.js | 804 + node_modules/date-fns/locale/it-CH/cdn.min.js | 2 + node_modules/date-fns/locale/it.cjs | 29 + node_modules/date-fns/locale/it.d.cts | 11 + node_modules/date-fns/locale/it.d.ts | 11 + node_modules/date-fns/locale/it.js | 30 + .../locale/it/_lib/formatDistance.cjs | 105 + .../locale/it/_lib/formatDistance.d.cts | 2 + .../locale/it/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/it/_lib/formatDistance.js | 101 + .../date-fns/locale/it/_lib/formatLong.cjs | 41 + .../date-fns/locale/it/_lib/formatLong.d.cts | 2 + .../date-fns/locale/it/_lib/formatLong.d.ts | 2 + .../date-fns/locale/it/_lib/formatLong.js | 39 + .../locale/it/_lib/formatRelative.cjs | 69 + .../locale/it/_lib/formatRelative.d.cts | 2 + .../locale/it/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/it/_lib/formatRelative.js | 66 + .../date-fns/locale/it/_lib/localize.cjs | 166 + .../date-fns/locale/it/_lib/localize.d.cts | 2 + .../date-fns/locale/it/_lib/localize.d.ts | 2 + .../date-fns/locale/it/_lib/localize.js | 164 + .../date-fns/locale/it/_lib/match.cjs | 136 + .../date-fns/locale/it/_lib/match.d.cts | 2 + .../date-fns/locale/it/_lib/match.d.ts | 2 + node_modules/date-fns/locale/it/_lib/match.js | 133 + node_modules/date-fns/locale/it/cdn.js | 806 + node_modules/date-fns/locale/it/cdn.min.js | 2 + node_modules/date-fns/locale/ja-Hira.cjs | 27 + node_modules/date-fns/locale/ja-Hira.d.cts | 9 + node_modules/date-fns/locale/ja-Hira.d.ts | 9 + node_modules/date-fns/locale/ja-Hira.js | 28 + .../locale/ja-Hira/_lib/formatDistance.cjs | 119 + .../locale/ja-Hira/_lib/formatDistance.d.cts | 2 + .../locale/ja-Hira/_lib/formatDistance.d.ts | 2 + .../locale/ja-Hira/_lib/formatDistance.js | 115 + .../locale/ja-Hira/_lib/formatLong.cjs | 41 + .../locale/ja-Hira/_lib/formatLong.d.cts | 2 + .../locale/ja-Hira/_lib/formatLong.d.ts | 2 + .../locale/ja-Hira/_lib/formatLong.js | 39 + .../locale/ja-Hira/_lib/formatRelative.cjs | 16 + .../locale/ja-Hira/_lib/formatRelative.d.cts | 2 + .../locale/ja-Hira/_lib/formatRelative.d.ts | 2 + .../locale/ja-Hira/_lib/formatRelative.js | 12 + .../date-fns/locale/ja-Hira/_lib/localize.cjs | 188 + .../locale/ja-Hira/_lib/localize.d.cts | 2 + .../locale/ja-Hira/_lib/localize.d.ts | 2 + .../date-fns/locale/ja-Hira/_lib/localize.js | 185 + .../date-fns/locale/ja-Hira/_lib/match.cjs | 122 + .../date-fns/locale/ja-Hira/_lib/match.d.cts | 2 + .../date-fns/locale/ja-Hira/_lib/match.d.ts | 2 + .../date-fns/locale/ja-Hira/_lib/match.js | 119 + node_modules/date-fns/locale/ja-Hira/cdn.js | 568 + .../date-fns/locale/ja-Hira/cdn.min.js | 1 + node_modules/date-fns/locale/ja.cjs | 31 + node_modules/date-fns/locale/ja.d.cts | 13 + node_modules/date-fns/locale/ja.d.ts | 13 + node_modules/date-fns/locale/ja.js | 32 + .../locale/ja/_lib/formatDistance.cjs | 119 + .../locale/ja/_lib/formatDistance.d.cts | 2 + .../locale/ja/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ja/_lib/formatDistance.js | 115 + .../date-fns/locale/ja/_lib/formatLong.cjs | 41 + .../date-fns/locale/ja/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ja/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ja/_lib/formatLong.js | 39 + .../locale/ja/_lib/formatRelative.cjs | 16 + .../locale/ja/_lib/formatRelative.d.cts | 2 + .../locale/ja/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ja/_lib/formatRelative.js | 12 + .../date-fns/locale/ja/_lib/localize.cjs | 179 + .../date-fns/locale/ja/_lib/localize.d.cts | 2 + .../date-fns/locale/ja/_lib/localize.d.ts | 2 + .../date-fns/locale/ja/_lib/localize.js | 177 + .../date-fns/locale/ja/_lib/match.cjs | 120 + .../date-fns/locale/ja/_lib/match.d.cts | 2 + .../date-fns/locale/ja/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ja/_lib/match.js | 118 + node_modules/date-fns/locale/ja/cdn.js | 572 + node_modules/date-fns/locale/ja/cdn.min.js | 1 + node_modules/date-fns/locale/ka.cjs | 28 + node_modules/date-fns/locale/ka.d.cts | 10 + node_modules/date-fns/locale/ka.d.ts | 10 + node_modules/date-fns/locale/ka.js | 29 + .../locale/ka/_lib/formatDistance.cjs | 122 + .../locale/ka/_lib/formatDistance.d.cts | 2 + .../locale/ka/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ka/_lib/formatDistance.js | 118 + .../date-fns/locale/ka/_lib/formatLong.cjs | 41 + .../date-fns/locale/ka/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ka/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ka/_lib/formatLong.js | 39 + .../locale/ka/_lib/formatRelative.cjs | 15 + .../locale/ka/_lib/formatRelative.d.cts | 2 + .../locale/ka/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ka/_lib/formatRelative.js | 11 + .../date-fns/locale/ka/_lib/localize.cjs | 189 + .../date-fns/locale/ka/_lib/localize.d.cts | 2 + .../date-fns/locale/ka/_lib/localize.d.ts | 2 + .../date-fns/locale/ka/_lib/localize.js | 187 + .../date-fns/locale/ka/_lib/match.cjs | 118 + .../date-fns/locale/ka/_lib/match.d.cts | 2 + .../date-fns/locale/ka/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ka/_lib/match.js | 115 + node_modules/date-fns/locale/ka/cdn.js | 559 + node_modules/date-fns/locale/ka/cdn.min.js | 1 + node_modules/date-fns/locale/kk.cjs | 27 + node_modules/date-fns/locale/kk.d.cts | 9 + node_modules/date-fns/locale/kk.d.ts | 9 + node_modules/date-fns/locale/kk.js | 28 + .../locale/kk/_lib/formatDistance.cjs | 253 + .../locale/kk/_lib/formatDistance.d.cts | 2 + .../locale/kk/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/kk/_lib/formatDistance.js | 249 + .../date-fns/locale/kk/_lib/formatLong.cjs | 38 + .../date-fns/locale/kk/_lib/formatLong.d.cts | 2 + .../date-fns/locale/kk/_lib/formatLong.d.ts | 2 + .../date-fns/locale/kk/_lib/formatLong.js | 36 + .../locale/kk/_lib/formatRelative.cjs | 65 + .../locale/kk/_lib/formatRelative.d.cts | 2 + .../locale/kk/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/kk/_lib/formatRelative.js | 62 + .../date-fns/locale/kk/_lib/localize.cjs | 208 + .../date-fns/locale/kk/_lib/localize.d.cts | 2 + .../date-fns/locale/kk/_lib/localize.d.ts | 2 + .../date-fns/locale/kk/_lib/localize.js | 206 + .../date-fns/locale/kk/_lib/match.cjs | 160 + .../date-fns/locale/kk/_lib/match.d.cts | 2 + .../date-fns/locale/kk/_lib/match.d.ts | 2 + node_modules/date-fns/locale/kk/_lib/match.js | 157 + node_modules/date-fns/locale/kk/cdn.js | 984 + node_modules/date-fns/locale/kk/cdn.min.js | 2 + node_modules/date-fns/locale/km.cjs | 27 + node_modules/date-fns/locale/km.d.cts | 9 + node_modules/date-fns/locale/km.d.ts | 9 + node_modules/date-fns/locale/km.js | 28 + .../locale/km/_lib/formatDistance.cjs | 42 + .../locale/km/_lib/formatDistance.d.cts | 2 + .../locale/km/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/km/_lib/formatDistance.js | 38 + .../date-fns/locale/km/_lib/formatLong.cjs | 41 + .../date-fns/locale/km/_lib/formatLong.d.cts | 2 + .../date-fns/locale/km/_lib/formatLong.d.ts | 2 + .../date-fns/locale/km/_lib/formatLong.js | 39 + .../locale/km/_lib/formatRelative.cjs | 15 + .../locale/km/_lib/formatRelative.d.cts | 2 + .../locale/km/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/km/_lib/formatRelative.js | 11 + .../date-fns/locale/km/_lib/localize.cjs | 172 + .../date-fns/locale/km/_lib/localize.d.cts | 2 + .../date-fns/locale/km/_lib/localize.d.ts | 2 + .../date-fns/locale/km/_lib/localize.js | 170 + .../date-fns/locale/km/_lib/match.cjs | 140 + .../date-fns/locale/km/_lib/match.d.cts | 2 + .../date-fns/locale/km/_lib/match.d.ts | 2 + node_modules/date-fns/locale/km/_lib/match.js | 137 + node_modules/date-fns/locale/km/cdn.js | 527 + node_modules/date-fns/locale/km/cdn.min.js | 1 + node_modules/date-fns/locale/kn.cjs | 27 + node_modules/date-fns/locale/kn.d.cts | 9 + node_modules/date-fns/locale/kn.d.ts | 9 + node_modules/date-fns/locale/kn.js | 28 + .../locale/kn/_lib/formatDistance.cjs | 215 + .../locale/kn/_lib/formatDistance.d.cts | 2 + .../locale/kn/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/kn/_lib/formatDistance.js | 211 + .../date-fns/locale/kn/_lib/formatLong.cjs | 43 + .../date-fns/locale/kn/_lib/formatLong.d.cts | 2 + .../date-fns/locale/kn/_lib/formatLong.d.ts | 2 + .../date-fns/locale/kn/_lib/formatLong.js | 41 + .../locale/kn/_lib/formatRelative.cjs | 15 + .../locale/kn/_lib/formatRelative.d.cts | 2 + .../locale/kn/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/kn/_lib/formatRelative.js | 11 + .../date-fns/locale/kn/_lib/localize.cjs | 172 + .../date-fns/locale/kn/_lib/localize.d.cts | 2 + .../date-fns/locale/kn/_lib/localize.d.ts | 2 + .../date-fns/locale/kn/_lib/localize.js | 170 + .../date-fns/locale/kn/_lib/match.cjs | 136 + .../date-fns/locale/kn/_lib/match.d.cts | 2 + .../date-fns/locale/kn/_lib/match.d.ts | 2 + node_modules/date-fns/locale/kn/_lib/match.js | 133 + node_modules/date-fns/locale/kn/cdn.js | 675 + node_modules/date-fns/locale/kn/cdn.min.js | 1 + node_modules/date-fns/locale/ko.cjs | 29 + node_modules/date-fns/locale/ko.d.cts | 11 + node_modules/date-fns/locale/ko.d.ts | 11 + node_modules/date-fns/locale/ko.js | 30 + .../locale/ko/_lib/formatDistance.cjs | 105 + .../locale/ko/_lib/formatDistance.d.cts | 2 + .../locale/ko/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ko/_lib/formatDistance.js | 101 + .../date-fns/locale/ko/_lib/formatLong.cjs | 41 + .../date-fns/locale/ko/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ko/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ko/_lib/formatLong.js | 39 + .../locale/ko/_lib/formatRelative.cjs | 15 + .../locale/ko/_lib/formatRelative.d.cts | 2 + .../locale/ko/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ko/_lib/formatRelative.js | 11 + .../date-fns/locale/ko/_lib/localize.cjs | 169 + .../date-fns/locale/ko/_lib/localize.d.cts | 2 + .../date-fns/locale/ko/_lib/localize.d.ts | 2 + .../date-fns/locale/ko/_lib/localize.js | 167 + .../date-fns/locale/ko/_lib/match.cjs | 118 + .../date-fns/locale/ko/_lib/match.d.cts | 2 + .../date-fns/locale/ko/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ko/_lib/match.js | 115 + node_modules/date-fns/locale/ko/cdn.js | 551 + node_modules/date-fns/locale/ko/cdn.min.js | 1 + node_modules/date-fns/locale/lb.cjs | 27 + node_modules/date-fns/locale/lb.d.cts | 9 + node_modules/date-fns/locale/lb.d.ts | 9 + node_modules/date-fns/locale/lb.js | 28 + .../locale/lb/_lib/formatDistance.cjs | 236 + .../locale/lb/_lib/formatDistance.d.cts | 2 + .../locale/lb/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/lb/_lib/formatDistance.js | 232 + .../date-fns/locale/lb/_lib/formatLong.cjs | 43 + .../date-fns/locale/lb/_lib/formatLong.d.cts | 2 + .../date-fns/locale/lb/_lib/formatLong.d.ts | 2 + .../date-fns/locale/lb/_lib/formatLong.js | 41 + .../locale/lb/_lib/formatRelative.cjs | 31 + .../locale/lb/_lib/formatRelative.d.cts | 2 + .../locale/lb/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/lb/_lib/formatRelative.js | 27 + .../date-fns/locale/lb/_lib/localize.cjs | 166 + .../date-fns/locale/lb/_lib/localize.d.cts | 2 + .../date-fns/locale/lb/_lib/localize.d.ts | 2 + .../date-fns/locale/lb/_lib/localize.js | 164 + .../date-fns/locale/lb/_lib/match.cjs | 136 + .../date-fns/locale/lb/_lib/match.d.cts | 2 + .../date-fns/locale/lb/_lib/match.d.ts | 2 + node_modules/date-fns/locale/lb/_lib/match.js | 133 + node_modules/date-fns/locale/lb/cdn.js | 703 + node_modules/date-fns/locale/lb/cdn.min.js | 1 + node_modules/date-fns/locale/lt.cjs | 28 + node_modules/date-fns/locale/lt.d.cts | 10 + node_modules/date-fns/locale/lt.d.ts | 10 + node_modules/date-fns/locale/lt.js | 29 + .../locale/lt/_lib/formatDistance.cjs | 180 + .../locale/lt/_lib/formatDistance.d.cts | 2 + .../locale/lt/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/lt/_lib/formatDistance.js | 176 + .../date-fns/locale/lt/_lib/formatLong.cjs | 41 + .../date-fns/locale/lt/_lib/formatLong.d.cts | 2 + .../date-fns/locale/lt/_lib/formatLong.d.ts | 2 + .../date-fns/locale/lt/_lib/formatLong.js | 39 + .../locale/lt/_lib/formatRelative.cjs | 15 + .../locale/lt/_lib/formatRelative.d.cts | 2 + .../locale/lt/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/lt/_lib/formatRelative.js | 11 + .../date-fns/locale/lt/_lib/localize.cjs | 226 + .../date-fns/locale/lt/_lib/localize.d.cts | 2 + .../date-fns/locale/lt/_lib/localize.d.ts | 2 + .../date-fns/locale/lt/_lib/localize.js | 224 + .../date-fns/locale/lt/_lib/match.cjs | 150 + .../date-fns/locale/lt/_lib/match.d.cts | 2 + .../date-fns/locale/lt/_lib/match.d.ts | 2 + node_modules/date-fns/locale/lt/_lib/match.js | 147 + node_modules/date-fns/locale/lt/cdn.js | 757 + node_modules/date-fns/locale/lt/cdn.min.js | 1 + node_modules/date-fns/locale/lv.cjs | 27 + node_modules/date-fns/locale/lv.d.cts | 9 + node_modules/date-fns/locale/lv.d.ts | 9 + node_modules/date-fns/locale/lv.js | 28 + .../locale/lv/_lib/formatDistance.cjs | 167 + .../locale/lv/_lib/formatDistance.d.cts | 2 + .../locale/lv/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/lv/_lib/formatDistance.js | 163 + .../date-fns/locale/lv/_lib/formatLong.cjs | 41 + .../date-fns/locale/lv/_lib/formatLong.d.cts | 2 + .../date-fns/locale/lv/_lib/formatLong.d.ts | 2 + .../date-fns/locale/lv/_lib/formatLong.js | 39 + .../locale/lv/_lib/formatRelative.cjs | 47 + .../locale/lv/_lib/formatRelative.d.cts | 2 + .../locale/lv/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/lv/_lib/formatRelative.js | 44 + .../date-fns/locale/lv/_lib/localize.cjs | 254 + .../date-fns/locale/lv/_lib/localize.d.cts | 2 + .../date-fns/locale/lv/_lib/localize.d.ts | 2 + .../date-fns/locale/lv/_lib/localize.js | 252 + .../date-fns/locale/lv/_lib/match.cjs | 139 + .../date-fns/locale/lv/_lib/match.d.cts | 2 + .../date-fns/locale/lv/_lib/match.d.ts | 2 + node_modules/date-fns/locale/lv/_lib/match.js | 136 + node_modules/date-fns/locale/lv/cdn.js | 1069 + node_modules/date-fns/locale/lv/cdn.min.js | 2 + node_modules/date-fns/locale/mk.cjs | 28 + node_modules/date-fns/locale/mk.d.cts | 10 + node_modules/date-fns/locale/mk.d.ts | 10 + node_modules/date-fns/locale/mk.js | 29 + .../locale/mk/_lib/formatDistance.cjs | 105 + .../locale/mk/_lib/formatDistance.d.cts | 2 + .../locale/mk/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/mk/_lib/formatDistance.js | 101 + .../date-fns/locale/mk/_lib/formatLong.cjs | 38 + .../date-fns/locale/mk/_lib/formatLong.d.cts | 2 + .../date-fns/locale/mk/_lib/formatLong.d.ts | 2 + .../date-fns/locale/mk/_lib/formatLong.js | 36 + .../locale/mk/_lib/formatRelative.cjs | 95 + .../locale/mk/_lib/formatRelative.d.cts | 2 + .../locale/mk/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/mk/_lib/formatRelative.js | 92 + .../date-fns/locale/mk/_lib/localize.cjs | 123 + .../date-fns/locale/mk/_lib/localize.d.cts | 2 + .../date-fns/locale/mk/_lib/localize.d.ts | 2 + .../date-fns/locale/mk/_lib/localize.js | 121 + .../date-fns/locale/mk/_lib/match.cjs | 119 + .../date-fns/locale/mk/_lib/match.d.cts | 2 + .../date-fns/locale/mk/_lib/match.d.ts | 2 + node_modules/date-fns/locale/mk/_lib/match.js | 116 + node_modules/date-fns/locale/mk/cdn.js | 738 + node_modules/date-fns/locale/mk/cdn.min.js | 2 + node_modules/date-fns/locale/mn.cjs | 27 + node_modules/date-fns/locale/mn.d.cts | 9 + node_modules/date-fns/locale/mn.d.ts | 9 + node_modules/date-fns/locale/mn.js | 28 + .../locale/mn/_lib/formatDistance.cjs | 143 + .../locale/mn/_lib/formatDistance.d.cts | 2 + .../locale/mn/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/mn/_lib/formatDistance.js | 139 + .../date-fns/locale/mn/_lib/formatLong.cjs | 41 + .../date-fns/locale/mn/_lib/formatLong.d.cts | 2 + .../date-fns/locale/mn/_lib/formatLong.d.ts | 2 + .../date-fns/locale/mn/_lib/formatLong.js | 39 + .../locale/mn/_lib/formatRelative.cjs | 15 + .../locale/mn/_lib/formatRelative.d.cts | 2 + .../locale/mn/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/mn/_lib/formatRelative.js | 11 + .../date-fns/locale/mn/_lib/localize.cjs | 198 + .../date-fns/locale/mn/_lib/localize.d.cts | 2 + .../date-fns/locale/mn/_lib/localize.d.ts | 2 + .../date-fns/locale/mn/_lib/localize.js | 196 + .../date-fns/locale/mn/_lib/match.cjs | 136 + .../date-fns/locale/mn/_lib/match.d.cts | 2 + .../date-fns/locale/mn/_lib/match.d.ts | 2 + node_modules/date-fns/locale/mn/_lib/match.js | 133 + node_modules/date-fns/locale/mn/cdn.js | 663 + node_modules/date-fns/locale/mn/cdn.min.js | 1 + node_modules/date-fns/locale/ms.cjs | 27 + node_modules/date-fns/locale/ms.d.cts | 9 + node_modules/date-fns/locale/ms.d.ts | 9 + node_modules/date-fns/locale/ms.js | 28 + .../locale/ms/_lib/formatDistance.cjs | 105 + .../locale/ms/_lib/formatDistance.d.cts | 2 + .../locale/ms/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ms/_lib/formatDistance.js | 101 + .../date-fns/locale/ms/_lib/formatLong.cjs | 41 + .../date-fns/locale/ms/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ms/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ms/_lib/formatLong.js | 39 + .../locale/ms/_lib/formatRelative.cjs | 15 + .../locale/ms/_lib/formatRelative.d.cts | 2 + .../locale/ms/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ms/_lib/formatRelative.js | 11 + .../date-fns/locale/ms/_lib/localize.cjs | 164 + .../date-fns/locale/ms/_lib/localize.d.cts | 2 + .../date-fns/locale/ms/_lib/localize.d.ts | 2 + .../date-fns/locale/ms/_lib/localize.js | 162 + .../date-fns/locale/ms/_lib/match.cjs | 135 + .../date-fns/locale/ms/_lib/match.d.cts | 2 + .../date-fns/locale/ms/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ms/_lib/match.js | 132 + node_modules/date-fns/locale/ms/cdn.js | 573 + node_modules/date-fns/locale/ms/cdn.min.js | 1 + node_modules/date-fns/locale/mt.cjs | 28 + node_modules/date-fns/locale/mt.d.cts | 10 + node_modules/date-fns/locale/mt.d.ts | 10 + node_modules/date-fns/locale/mt.js | 29 + .../locale/mt/_lib/formatDistance.cjs | 111 + .../locale/mt/_lib/formatDistance.d.cts | 2 + .../locale/mt/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/mt/_lib/formatDistance.js | 107 + .../date-fns/locale/mt/_lib/formatLong.cjs | 41 + .../date-fns/locale/mt/_lib/formatLong.d.cts | 2 + .../date-fns/locale/mt/_lib/formatLong.d.ts | 2 + .../date-fns/locale/mt/_lib/formatLong.js | 39 + .../locale/mt/_lib/formatRelative.cjs | 15 + .../locale/mt/_lib/formatRelative.d.cts | 2 + .../locale/mt/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/mt/_lib/formatRelative.js | 11 + .../date-fns/locale/mt/_lib/localize.cjs | 166 + .../date-fns/locale/mt/_lib/localize.d.cts | 2 + .../date-fns/locale/mt/_lib/localize.d.ts | 2 + .../date-fns/locale/mt/_lib/localize.js | 164 + .../date-fns/locale/mt/_lib/match.cjs | 144 + .../date-fns/locale/mt/_lib/match.d.cts | 2 + .../date-fns/locale/mt/_lib/match.d.ts | 2 + node_modules/date-fns/locale/mt/_lib/match.js | 141 + node_modules/date-fns/locale/mt/cdn.js | 579 + node_modules/date-fns/locale/mt/cdn.min.js | 1 + node_modules/date-fns/locale/nb.cjs | 29 + node_modules/date-fns/locale/nb.d.cts | 11 + node_modules/date-fns/locale/nb.d.ts | 11 + node_modules/date-fns/locale/nb.js | 30 + .../locale/nb/_lib/formatDistance.cjs | 105 + .../locale/nb/_lib/formatDistance.d.cts | 2 + .../locale/nb/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/nb/_lib/formatDistance.js | 101 + .../date-fns/locale/nb/_lib/formatLong.cjs | 41 + .../date-fns/locale/nb/_lib/formatLong.d.cts | 2 + .../date-fns/locale/nb/_lib/formatLong.d.ts | 2 + .../date-fns/locale/nb/_lib/formatLong.js | 39 + .../locale/nb/_lib/formatRelative.cjs | 15 + .../locale/nb/_lib/formatRelative.d.cts | 2 + .../locale/nb/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/nb/_lib/formatRelative.js | 11 + .../date-fns/locale/nb/_lib/localize.cjs | 131 + .../date-fns/locale/nb/_lib/localize.d.cts | 2 + .../date-fns/locale/nb/_lib/localize.d.ts | 2 + .../date-fns/locale/nb/_lib/localize.js | 129 + .../date-fns/locale/nb/_lib/match.cjs | 135 + .../date-fns/locale/nb/_lib/match.d.cts | 2 + .../date-fns/locale/nb/_lib/match.d.ts | 2 + node_modules/date-fns/locale/nb/_lib/match.js | 132 + node_modules/date-fns/locale/nb/cdn.js | 530 + node_modules/date-fns/locale/nb/cdn.min.js | 1 + node_modules/date-fns/locale/nl-BE.cjs | 30 + node_modules/date-fns/locale/nl-BE.d.cts | 12 + node_modules/date-fns/locale/nl-BE.d.ts | 12 + node_modules/date-fns/locale/nl-BE.js | 31 + .../locale/nl-BE/_lib/formatDistance.cjs | 105 + .../locale/nl-BE/_lib/formatDistance.d.cts | 2 + .../locale/nl-BE/_lib/formatDistance.d.ts | 2 + .../locale/nl-BE/_lib/formatDistance.js | 101 + .../date-fns/locale/nl-BE/_lib/formatLong.cjs | 41 + .../locale/nl-BE/_lib/formatLong.d.cts | 2 + .../locale/nl-BE/_lib/formatLong.d.ts | 2 + .../date-fns/locale/nl-BE/_lib/formatLong.js | 39 + .../locale/nl-BE/_lib/formatRelative.cjs | 15 + .../locale/nl-BE/_lib/formatRelative.d.cts | 2 + .../locale/nl-BE/_lib/formatRelative.d.ts | 2 + .../locale/nl-BE/_lib/formatRelative.js | 11 + .../date-fns/locale/nl-BE/_lib/localize.cjs | 131 + .../date-fns/locale/nl-BE/_lib/localize.d.cts | 2 + .../date-fns/locale/nl-BE/_lib/localize.d.ts | 2 + .../date-fns/locale/nl-BE/_lib/localize.js | 129 + .../date-fns/locale/nl-BE/_lib/match.cjs | 134 + .../date-fns/locale/nl-BE/_lib/match.d.cts | 2 + .../date-fns/locale/nl-BE/_lib/match.d.ts | 2 + .../date-fns/locale/nl-BE/_lib/match.js | 131 + node_modules/date-fns/locale/nl-BE/cdn.js | 539 + node_modules/date-fns/locale/nl-BE/cdn.min.js | 1 + node_modules/date-fns/locale/nl.cjs | 32 + node_modules/date-fns/locale/nl.d.cts | 14 + node_modules/date-fns/locale/nl.d.ts | 14 + node_modules/date-fns/locale/nl.js | 33 + .../locale/nl/_lib/formatDistance.cjs | 105 + .../locale/nl/_lib/formatDistance.d.cts | 2 + .../locale/nl/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/nl/_lib/formatDistance.js | 101 + .../date-fns/locale/nl/_lib/formatLong.cjs | 41 + .../date-fns/locale/nl/_lib/formatLong.d.cts | 2 + .../date-fns/locale/nl/_lib/formatLong.d.ts | 2 + .../date-fns/locale/nl/_lib/formatLong.js | 39 + .../locale/nl/_lib/formatRelative.cjs | 15 + .../locale/nl/_lib/formatRelative.d.cts | 2 + .../locale/nl/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/nl/_lib/formatRelative.js | 11 + .../date-fns/locale/nl/_lib/localize.cjs | 131 + .../date-fns/locale/nl/_lib/localize.d.cts | 2 + .../date-fns/locale/nl/_lib/localize.d.ts | 2 + .../date-fns/locale/nl/_lib/localize.js | 129 + .../date-fns/locale/nl/_lib/match.cjs | 134 + .../date-fns/locale/nl/_lib/match.d.cts | 2 + .../date-fns/locale/nl/_lib/match.d.ts | 2 + node_modules/date-fns/locale/nl/_lib/match.js | 131 + node_modules/date-fns/locale/nl/cdn.js | 541 + node_modules/date-fns/locale/nl/cdn.min.js | 1 + node_modules/date-fns/locale/nn.cjs | 27 + node_modules/date-fns/locale/nn.d.cts | 9 + node_modules/date-fns/locale/nn.d.ts | 9 + node_modules/date-fns/locale/nn.js | 28 + .../locale/nn/_lib/formatDistance.cjs | 124 + .../locale/nn/_lib/formatDistance.d.cts | 2 + .../locale/nn/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/nn/_lib/formatDistance.js | 120 + .../date-fns/locale/nn/_lib/formatLong.cjs | 41 + .../date-fns/locale/nn/_lib/formatLong.d.cts | 2 + .../date-fns/locale/nn/_lib/formatLong.d.ts | 2 + .../date-fns/locale/nn/_lib/formatLong.js | 39 + .../locale/nn/_lib/formatRelative.cjs | 15 + .../locale/nn/_lib/formatRelative.d.cts | 2 + .../locale/nn/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/nn/_lib/formatRelative.js | 11 + .../date-fns/locale/nn/_lib/localize.cjs | 131 + .../date-fns/locale/nn/_lib/localize.d.cts | 2 + .../date-fns/locale/nn/_lib/localize.d.ts | 2 + .../date-fns/locale/nn/_lib/localize.js | 129 + .../date-fns/locale/nn/_lib/match.cjs | 134 + .../date-fns/locale/nn/_lib/match.d.cts | 2 + .../date-fns/locale/nn/_lib/match.d.ts | 2 + node_modules/date-fns/locale/nn/_lib/match.js | 131 + node_modules/date-fns/locale/nn/cdn.js | 543 + node_modules/date-fns/locale/nn/cdn.min.js | 1 + node_modules/date-fns/locale/oc.cjs | 27 + node_modules/date-fns/locale/oc.d.cts | 9 + node_modules/date-fns/locale/oc.d.ts | 9 + node_modules/date-fns/locale/oc.js | 28 + .../locale/oc/_lib/formatDistance.cjs | 105 + .../locale/oc/_lib/formatDistance.d.cts | 2 + .../locale/oc/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/oc/_lib/formatDistance.js | 101 + .../date-fns/locale/oc/_lib/formatLong.cjs | 41 + .../date-fns/locale/oc/_lib/formatLong.d.cts | 2 + .../date-fns/locale/oc/_lib/formatLong.d.ts | 2 + .../date-fns/locale/oc/_lib/formatLong.js | 39 + .../locale/oc/_lib/formatRelative.cjs | 15 + .../locale/oc/_lib/formatRelative.d.cts | 2 + .../locale/oc/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/oc/_lib/formatRelative.js | 11 + .../date-fns/locale/oc/_lib/localize.cjs | 205 + .../date-fns/locale/oc/_lib/localize.d.cts | 2 + .../date-fns/locale/oc/_lib/localize.d.ts | 2 + .../date-fns/locale/oc/_lib/localize.js | 203 + .../date-fns/locale/oc/_lib/match.cjs | 130 + .../date-fns/locale/oc/_lib/match.d.cts | 2 + .../date-fns/locale/oc/_lib/match.d.ts | 2 + node_modules/date-fns/locale/oc/_lib/match.js | 127 + node_modules/date-fns/locale/oc/cdn.js | 585 + node_modules/date-fns/locale/oc/cdn.min.js | 1 + node_modules/date-fns/locale/pl.cjs | 30 + node_modules/date-fns/locale/pl.d.cts | 12 + node_modules/date-fns/locale/pl.d.ts | 12 + node_modules/date-fns/locale/pl.js | 31 + .../locale/pl/_lib/formatDistance.cjs | 170 + .../locale/pl/_lib/formatDistance.d.cts | 2 + .../locale/pl/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/pl/_lib/formatDistance.js | 166 + .../date-fns/locale/pl/_lib/formatLong.cjs | 41 + .../date-fns/locale/pl/_lib/formatLong.d.cts | 2 + .../date-fns/locale/pl/_lib/formatLong.d.ts | 2 + .../date-fns/locale/pl/_lib/formatLong.js | 39 + .../locale/pl/_lib/formatRelative.cjs | 68 + .../locale/pl/_lib/formatRelative.d.cts | 2 + .../locale/pl/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/pl/_lib/formatRelative.js | 65 + .../date-fns/locale/pl/_lib/localize.cjs | 215 + .../date-fns/locale/pl/_lib/localize.d.cts | 2 + .../date-fns/locale/pl/_lib/localize.d.ts | 2 + .../date-fns/locale/pl/_lib/localize.js | 213 + .../date-fns/locale/pl/_lib/match.cjs | 149 + .../date-fns/locale/pl/_lib/match.d.cts | 2 + .../date-fns/locale/pl/_lib/match.d.ts | 2 + node_modules/date-fns/locale/pl/_lib/match.js | 146 + node_modules/date-fns/locale/pl/cdn.js | 974 + node_modules/date-fns/locale/pl/cdn.min.js | 2 + node_modules/date-fns/locale/pt-BR.cjs | 28 + node_modules/date-fns/locale/pt-BR.d.cts | 10 + node_modules/date-fns/locale/pt-BR.d.ts | 10 + node_modules/date-fns/locale/pt-BR.js | 29 + .../locale/pt-BR/_lib/formatDistance.cjs | 105 + .../locale/pt-BR/_lib/formatDistance.d.cts | 2 + .../locale/pt-BR/_lib/formatDistance.d.ts | 2 + .../locale/pt-BR/_lib/formatDistance.js | 101 + .../date-fns/locale/pt-BR/_lib/formatLong.cjs | 41 + .../locale/pt-BR/_lib/formatLong.d.cts | 2 + .../locale/pt-BR/_lib/formatLong.d.ts | 2 + .../date-fns/locale/pt-BR/_lib/formatLong.js | 39 + .../locale/pt-BR/_lib/formatRelative.cjs | 26 + .../locale/pt-BR/_lib/formatRelative.d.cts | 2 + .../locale/pt-BR/_lib/formatRelative.d.ts | 2 + .../locale/pt-BR/_lib/formatRelative.js | 22 + .../date-fns/locale/pt-BR/_lib/localize.cjs | 179 + .../date-fns/locale/pt-BR/_lib/localize.d.cts | 2 + .../date-fns/locale/pt-BR/_lib/localize.d.ts | 2 + .../date-fns/locale/pt-BR/_lib/localize.js | 177 + .../date-fns/locale/pt-BR/_lib/match.cjs | 137 + .../date-fns/locale/pt-BR/_lib/match.d.cts | 2 + .../date-fns/locale/pt-BR/_lib/match.d.ts | 2 + .../date-fns/locale/pt-BR/_lib/match.js | 134 + node_modules/date-fns/locale/pt-BR/cdn.js | 595 + node_modules/date-fns/locale/pt-BR/cdn.min.js | 1 + node_modules/date-fns/locale/pt.cjs | 28 + node_modules/date-fns/locale/pt.d.cts | 10 + node_modules/date-fns/locale/pt.d.ts | 10 + node_modules/date-fns/locale/pt.js | 29 + .../locale/pt/_lib/formatDistance.cjs | 105 + .../locale/pt/_lib/formatDistance.d.cts | 2 + .../locale/pt/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/pt/_lib/formatDistance.js | 101 + .../date-fns/locale/pt/_lib/formatLong.cjs | 41 + .../date-fns/locale/pt/_lib/formatLong.d.cts | 2 + .../date-fns/locale/pt/_lib/formatLong.d.ts | 2 + .../date-fns/locale/pt/_lib/formatLong.js | 39 + .../locale/pt/_lib/formatRelative.cjs | 26 + .../locale/pt/_lib/formatRelative.d.cts | 2 + .../locale/pt/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/pt/_lib/formatRelative.js | 22 + .../date-fns/locale/pt/_lib/localize.cjs | 166 + .../date-fns/locale/pt/_lib/localize.d.cts | 2 + .../date-fns/locale/pt/_lib/localize.d.ts | 2 + .../date-fns/locale/pt/_lib/localize.js | 164 + .../date-fns/locale/pt/_lib/match.cjs | 140 + .../date-fns/locale/pt/_lib/match.d.cts | 2 + .../date-fns/locale/pt/_lib/match.d.ts | 2 + node_modules/date-fns/locale/pt/_lib/match.js | 137 + node_modules/date-fns/locale/pt/cdn.js | 584 + node_modules/date-fns/locale/pt/cdn.min.js | 1 + node_modules/date-fns/locale/ro.cjs | 29 + node_modules/date-fns/locale/ro.d.cts | 11 + node_modules/date-fns/locale/ro.d.ts | 11 + node_modules/date-fns/locale/ro.js | 30 + .../locale/ro/_lib/formatDistance.cjs | 105 + .../locale/ro/_lib/formatDistance.d.cts | 2 + .../locale/ro/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ro/_lib/formatDistance.js | 101 + .../date-fns/locale/ro/_lib/formatLong.cjs | 41 + .../date-fns/locale/ro/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ro/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ro/_lib/formatLong.js | 39 + .../locale/ro/_lib/formatRelative.cjs | 15 + .../locale/ro/_lib/formatRelative.d.cts | 2 + .../locale/ro/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ro/_lib/formatRelative.js | 11 + .../date-fns/locale/ro/_lib/localize.cjs | 162 + .../date-fns/locale/ro/_lib/localize.d.cts | 2 + .../date-fns/locale/ro/_lib/localize.d.ts | 2 + .../date-fns/locale/ro/_lib/localize.js | 160 + .../date-fns/locale/ro/_lib/match.cjs | 140 + .../date-fns/locale/ro/_lib/match.d.cts | 2 + .../date-fns/locale/ro/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ro/_lib/match.js | 137 + node_modules/date-fns/locale/ro/cdn.js | 578 + node_modules/date-fns/locale/ro/cdn.min.js | 1 + node_modules/date-fns/locale/ru.cjs | 28 + node_modules/date-fns/locale/ru.d.cts | 10 + node_modules/date-fns/locale/ru.d.ts | 10 + node_modules/date-fns/locale/ru.js | 29 + .../locale/ru/_lib/formatDistance.cjs | 250 + .../locale/ru/_lib/formatDistance.d.cts | 2 + .../locale/ru/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ru/_lib/formatDistance.js | 246 + .../date-fns/locale/ru/_lib/formatLong.cjs | 38 + .../date-fns/locale/ru/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ru/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ru/_lib/formatLong.js | 36 + .../locale/ru/_lib/formatRelative.cjs | 91 + .../locale/ru/_lib/formatRelative.d.cts | 2 + .../locale/ru/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ru/_lib/formatRelative.js | 88 + .../date-fns/locale/ru/_lib/localize.cjs | 212 + .../date-fns/locale/ru/_lib/localize.d.cts | 2 + .../date-fns/locale/ru/_lib/localize.d.ts | 2 + .../date-fns/locale/ru/_lib/localize.js | 210 + .../date-fns/locale/ru/_lib/match.cjs | 141 + .../date-fns/locale/ru/_lib/match.d.cts | 2 + .../date-fns/locale/ru/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ru/_lib/match.js | 138 + node_modules/date-fns/locale/ru/cdn.js | 979 + node_modules/date-fns/locale/ru/cdn.min.js | 2 + node_modules/date-fns/locale/se.cjs | 27 + node_modules/date-fns/locale/se.d.cts | 9 + node_modules/date-fns/locale/se.d.ts | 9 + node_modules/date-fns/locale/se.js | 28 + .../locale/se/_lib/formatDistance.cjs | 105 + .../locale/se/_lib/formatDistance.d.cts | 2 + .../locale/se/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/se/_lib/formatDistance.js | 101 + .../date-fns/locale/se/_lib/formatLong.cjs | 41 + .../date-fns/locale/se/_lib/formatLong.d.cts | 2 + .../date-fns/locale/se/_lib/formatLong.d.ts | 2 + .../date-fns/locale/se/_lib/formatLong.js | 39 + .../locale/se/_lib/formatRelative.cjs | 15 + .../locale/se/_lib/formatRelative.d.cts | 2 + .../locale/se/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/se/_lib/formatRelative.js | 11 + .../date-fns/locale/se/_lib/localize.cjs | 131 + .../date-fns/locale/se/_lib/localize.d.cts | 2 + .../date-fns/locale/se/_lib/localize.d.ts | 2 + .../date-fns/locale/se/_lib/localize.js | 129 + .../date-fns/locale/se/_lib/match.cjs | 136 + .../date-fns/locale/se/_lib/match.d.cts | 2 + .../date-fns/locale/se/_lib/match.d.ts | 2 + node_modules/date-fns/locale/se/_lib/match.js | 133 + node_modules/date-fns/locale/se/cdn.js | 528 + node_modules/date-fns/locale/se/cdn.min.js | 1 + node_modules/date-fns/locale/sk.cjs | 27 + node_modules/date-fns/locale/sk.d.cts | 9 + node_modules/date-fns/locale/sk.d.ts | 9 + node_modules/date-fns/locale/sk.js | 28 + .../locale/sk/_lib/formatDistance.cjs | 230 + .../locale/sk/_lib/formatDistance.d.cts | 2 + .../locale/sk/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/sk/_lib/formatDistance.js | 226 + .../date-fns/locale/sk/_lib/formatLong.cjs | 44 + .../date-fns/locale/sk/_lib/formatLong.d.cts | 2 + .../date-fns/locale/sk/_lib/formatLong.d.ts | 2 + .../date-fns/locale/sk/_lib/formatLong.js | 42 + .../locale/sk/_lib/formatRelative.cjs | 84 + .../locale/sk/_lib/formatRelative.d.cts | 2 + .../locale/sk/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/sk/_lib/formatRelative.js | 81 + .../date-fns/locale/sk/_lib/localize.cjs | 205 + .../date-fns/locale/sk/_lib/localize.d.cts | 2 + .../date-fns/locale/sk/_lib/localize.d.ts | 2 + .../date-fns/locale/sk/_lib/localize.js | 203 + .../date-fns/locale/sk/_lib/match.cjs | 138 + .../date-fns/locale/sk/_lib/match.d.cts | 2 + .../date-fns/locale/sk/_lib/match.d.ts | 2 + node_modules/date-fns/locale/sk/_lib/match.js | 135 + node_modules/date-fns/locale/sk/cdn.js | 951 + node_modules/date-fns/locale/sk/cdn.min.js | 2 + node_modules/date-fns/locale/sl.cjs | 28 + node_modules/date-fns/locale/sl.d.cts | 10 + node_modules/date-fns/locale/sl.d.ts | 10 + node_modules/date-fns/locale/sl.js | 29 + .../locale/sl/_lib/formatDistance.cjs | 344 + .../locale/sl/_lib/formatDistance.d.cts | 2 + .../locale/sl/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/sl/_lib/formatDistance.js | 340 + .../date-fns/locale/sl/_lib/formatLong.cjs | 41 + .../date-fns/locale/sl/_lib/formatLong.d.cts | 2 + .../date-fns/locale/sl/_lib/formatLong.d.ts | 2 + .../date-fns/locale/sl/_lib/formatLong.js | 39 + .../locale/sl/_lib/formatRelative.cjs | 48 + .../locale/sl/_lib/formatRelative.d.cts | 2 + .../locale/sl/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/sl/_lib/formatRelative.js | 44 + .../date-fns/locale/sl/_lib/localize.cjs | 167 + .../date-fns/locale/sl/_lib/localize.d.cts | 2 + .../date-fns/locale/sl/_lib/localize.d.ts | 2 + .../date-fns/locale/sl/_lib/localize.js | 165 + .../date-fns/locale/sl/_lib/match.cjs | 160 + .../date-fns/locale/sl/_lib/match.d.cts | 2 + .../date-fns/locale/sl/_lib/match.d.ts | 2 + node_modules/date-fns/locale/sl/_lib/match.js | 157 + node_modules/date-fns/locale/sl/cdn.js | 850 + node_modules/date-fns/locale/sl/cdn.min.js | 1 + node_modules/date-fns/locale/sq.cjs | 27 + node_modules/date-fns/locale/sq.d.cts | 9 + node_modules/date-fns/locale/sq.d.ts | 9 + node_modules/date-fns/locale/sq.js | 28 + .../locale/sq/_lib/formatDistance.cjs | 105 + .../locale/sq/_lib/formatDistance.d.cts | 2 + .../locale/sq/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/sq/_lib/formatDistance.js | 101 + .../date-fns/locale/sq/_lib/formatLong.cjs | 41 + .../date-fns/locale/sq/_lib/formatLong.d.cts | 2 + .../date-fns/locale/sq/_lib/formatLong.d.ts | 2 + .../date-fns/locale/sq/_lib/formatLong.js | 39 + .../locale/sq/_lib/formatRelative.cjs | 15 + .../locale/sq/_lib/formatRelative.d.cts | 2 + .../locale/sq/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/sq/_lib/formatRelative.js | 11 + .../date-fns/locale/sq/_lib/localize.cjs | 168 + .../date-fns/locale/sq/_lib/localize.d.cts | 2 + .../date-fns/locale/sq/_lib/localize.d.ts | 2 + .../date-fns/locale/sq/_lib/localize.js | 166 + .../date-fns/locale/sq/_lib/match.cjs | 135 + .../date-fns/locale/sq/_lib/match.d.cts | 2 + .../date-fns/locale/sq/_lib/match.d.ts | 2 + node_modules/date-fns/locale/sq/_lib/match.js | 132 + node_modules/date-fns/locale/sq/cdn.js | 577 + node_modules/date-fns/locale/sq/cdn.min.js | 1 + node_modules/date-fns/locale/sr-Latn.cjs | 27 + node_modules/date-fns/locale/sr-Latn.d.cts | 9 + node_modules/date-fns/locale/sr-Latn.d.ts | 9 + node_modules/date-fns/locale/sr-Latn.js | 28 + .../locale/sr-Latn/_lib/formatDistance.cjs | 194 + .../locale/sr-Latn/_lib/formatDistance.d.cts | 2 + .../locale/sr-Latn/_lib/formatDistance.d.ts | 2 + .../locale/sr-Latn/_lib/formatDistance.js | 190 + .../locale/sr-Latn/_lib/formatLong.cjs | 41 + .../locale/sr-Latn/_lib/formatLong.d.cts | 2 + .../locale/sr-Latn/_lib/formatLong.d.ts | 2 + .../locale/sr-Latn/_lib/formatLong.js | 39 + .../locale/sr-Latn/_lib/formatRelative.cjs | 44 + .../locale/sr-Latn/_lib/formatRelative.d.cts | 2 + .../locale/sr-Latn/_lib/formatRelative.d.ts | 2 + .../locale/sr-Latn/_lib/formatRelative.js | 40 + .../date-fns/locale/sr-Latn/_lib/localize.cjs | 229 + .../locale/sr-Latn/_lib/localize.d.cts | 2 + .../locale/sr-Latn/_lib/localize.d.ts | 2 + .../date-fns/locale/sr-Latn/_lib/localize.js | 227 + .../date-fns/locale/sr-Latn/_lib/match.cjs | 134 + .../date-fns/locale/sr-Latn/_lib/match.d.cts | 2 + .../date-fns/locale/sr-Latn/_lib/match.d.ts | 2 + .../date-fns/locale/sr-Latn/_lib/match.js | 131 + node_modules/date-fns/locale/sr-Latn/cdn.js | 712 + .../date-fns/locale/sr-Latn/cdn.min.js | 1 + node_modules/date-fns/locale/sr.cjs | 27 + node_modules/date-fns/locale/sr.d.cts | 9 + node_modules/date-fns/locale/sr.d.ts | 9 + node_modules/date-fns/locale/sr.js | 28 + .../locale/sr/_lib/formatDistance.cjs | 194 + .../locale/sr/_lib/formatDistance.d.cts | 2 + .../locale/sr/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/sr/_lib/formatDistance.js | 190 + .../date-fns/locale/sr/_lib/formatLong.cjs | 41 + .../date-fns/locale/sr/_lib/formatLong.d.cts | 2 + .../date-fns/locale/sr/_lib/formatLong.d.ts | 2 + .../date-fns/locale/sr/_lib/formatLong.js | 39 + .../locale/sr/_lib/formatRelative.cjs | 48 + .../locale/sr/_lib/formatRelative.d.cts | 2 + .../locale/sr/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/sr/_lib/formatRelative.js | 44 + .../date-fns/locale/sr/_lib/localize.cjs | 229 + .../date-fns/locale/sr/_lib/localize.d.cts | 2 + .../date-fns/locale/sr/_lib/localize.d.ts | 2 + .../date-fns/locale/sr/_lib/localize.js | 227 + .../date-fns/locale/sr/_lib/match.cjs | 134 + .../date-fns/locale/sr/_lib/match.d.cts | 2 + .../date-fns/locale/sr/_lib/match.d.ts | 2 + node_modules/date-fns/locale/sr/_lib/match.js | 131 + node_modules/date-fns/locale/sr/cdn.js | 712 + node_modules/date-fns/locale/sr/cdn.min.js | 1 + node_modules/date-fns/locale/sv.cjs | 29 + node_modules/date-fns/locale/sv.d.cts | 11 + node_modules/date-fns/locale/sv.d.ts | 11 + node_modules/date-fns/locale/sv.js | 30 + .../locale/sv/_lib/formatDistance.cjs | 124 + .../locale/sv/_lib/formatDistance.d.cts | 2 + .../locale/sv/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/sv/_lib/formatDistance.js | 120 + .../date-fns/locale/sv/_lib/formatLong.cjs | 41 + .../date-fns/locale/sv/_lib/formatLong.d.cts | 2 + .../date-fns/locale/sv/_lib/formatLong.d.ts | 2 + .../date-fns/locale/sv/_lib/formatLong.js | 39 + .../locale/sv/_lib/formatRelative.cjs | 15 + .../locale/sv/_lib/formatRelative.d.cts | 2 + .../locale/sv/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/sv/_lib/formatRelative.js | 11 + .../date-fns/locale/sv/_lib/localize.cjs | 168 + .../date-fns/locale/sv/_lib/localize.d.cts | 2 + .../date-fns/locale/sv/_lib/localize.d.ts | 2 + .../date-fns/locale/sv/_lib/localize.js | 166 + .../date-fns/locale/sv/_lib/match.cjs | 134 + .../date-fns/locale/sv/_lib/match.d.cts | 2 + .../date-fns/locale/sv/_lib/match.d.ts | 2 + node_modules/date-fns/locale/sv/_lib/match.js | 131 + node_modules/date-fns/locale/sv/cdn.js | 582 + node_modules/date-fns/locale/sv/cdn.min.js | 1 + node_modules/date-fns/locale/ta.cjs | 27 + node_modules/date-fns/locale/ta.d.cts | 9 + node_modules/date-fns/locale/ta.d.ts | 9 + node_modules/date-fns/locale/ta.js | 28 + .../locale/ta/_lib/formatDistance.cjs | 228 + .../locale/ta/_lib/formatDistance.d.cts | 2 + .../locale/ta/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ta/_lib/formatDistance.js | 224 + .../date-fns/locale/ta/_lib/formatLong.cjs | 45 + .../date-fns/locale/ta/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ta/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ta/_lib/formatLong.js | 43 + .../locale/ta/_lib/formatRelative.cjs | 15 + .../locale/ta/_lib/formatRelative.d.cts | 2 + .../locale/ta/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ta/_lib/formatRelative.js | 11 + .../date-fns/locale/ta/_lib/localize.cjs | 185 + .../date-fns/locale/ta/_lib/localize.d.cts | 2 + .../date-fns/locale/ta/_lib/localize.d.ts | 2 + .../date-fns/locale/ta/_lib/localize.js | 183 + .../date-fns/locale/ta/_lib/match.cjs | 141 + .../date-fns/locale/ta/_lib/match.d.cts | 2 + .../date-fns/locale/ta/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ta/_lib/match.js | 138 + node_modules/date-fns/locale/ta/cdn.js | 705 + node_modules/date-fns/locale/ta/cdn.min.js | 1 + node_modules/date-fns/locale/te.cjs | 27 + node_modules/date-fns/locale/te.d.cts | 9 + node_modules/date-fns/locale/te.d.ts | 9 + node_modules/date-fns/locale/te.js | 28 + .../locale/te/_lib/formatDistance.cjs | 203 + .../locale/te/_lib/formatDistance.d.cts | 2 + .../locale/te/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/te/_lib/formatDistance.js | 199 + .../date-fns/locale/te/_lib/formatLong.cjs | 46 + .../date-fns/locale/te/_lib/formatLong.d.cts | 2 + .../date-fns/locale/te/_lib/formatLong.d.ts | 2 + .../date-fns/locale/te/_lib/formatLong.js | 44 + .../locale/te/_lib/formatRelative.cjs | 17 + .../locale/te/_lib/formatRelative.d.cts | 2 + .../locale/te/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/te/_lib/formatRelative.js | 13 + .../date-fns/locale/te/_lib/localize.cjs | 175 + .../date-fns/locale/te/_lib/localize.d.cts | 2 + .../date-fns/locale/te/_lib/localize.d.ts | 2 + .../date-fns/locale/te/_lib/localize.js | 173 + .../date-fns/locale/te/_lib/match.cjs | 137 + .../date-fns/locale/te/_lib/match.d.cts | 2 + .../date-fns/locale/te/_lib/match.d.ts | 2 + node_modules/date-fns/locale/te/_lib/match.js | 134 + node_modules/date-fns/locale/te/cdn.js | 666 + node_modules/date-fns/locale/te/cdn.min.js | 1 + node_modules/date-fns/locale/th.cjs | 29 + node_modules/date-fns/locale/th.d.cts | 11 + node_modules/date-fns/locale/th.d.ts | 11 + node_modules/date-fns/locale/th.js | 30 + .../locale/th/_lib/formatDistance.cjs | 109 + .../locale/th/_lib/formatDistance.d.cts | 2 + .../locale/th/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/th/_lib/formatDistance.js | 105 + .../date-fns/locale/th/_lib/formatLong.cjs | 41 + .../date-fns/locale/th/_lib/formatLong.d.cts | 2 + .../date-fns/locale/th/_lib/formatLong.d.ts | 2 + .../date-fns/locale/th/_lib/formatLong.js | 39 + .../locale/th/_lib/formatRelative.cjs | 15 + .../locale/th/_lib/formatRelative.d.cts | 2 + .../locale/th/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/th/_lib/formatRelative.js | 11 + .../date-fns/locale/th/_lib/localize.cjs | 171 + .../date-fns/locale/th/_lib/localize.d.cts | 2 + .../date-fns/locale/th/_lib/localize.d.ts | 2 + .../date-fns/locale/th/_lib/localize.js | 169 + .../date-fns/locale/th/_lib/match.cjs | 137 + .../date-fns/locale/th/_lib/match.d.cts | 2 + .../date-fns/locale/th/_lib/match.d.ts | 2 + node_modules/date-fns/locale/th/_lib/match.js | 134 + node_modules/date-fns/locale/th/cdn.js | 573 + node_modules/date-fns/locale/th/cdn.min.js | 1 + node_modules/date-fns/locale/tr.cjs | 33 + node_modules/date-fns/locale/tr.d.cts | 15 + node_modules/date-fns/locale/tr.d.ts | 15 + node_modules/date-fns/locale/tr.js | 34 + .../locale/tr/_lib/formatDistance.cjs | 105 + .../locale/tr/_lib/formatDistance.d.cts | 2 + .../locale/tr/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/tr/_lib/formatDistance.js | 101 + .../date-fns/locale/tr/_lib/formatLong.cjs | 41 + .../date-fns/locale/tr/_lib/formatLong.d.cts | 2 + .../date-fns/locale/tr/_lib/formatLong.d.ts | 2 + .../date-fns/locale/tr/_lib/formatLong.js | 39 + .../locale/tr/_lib/formatRelative.cjs | 15 + .../locale/tr/_lib/formatRelative.d.cts | 2 + .../locale/tr/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/tr/_lib/formatRelative.js | 11 + .../date-fns/locale/tr/_lib/localize.cjs | 167 + .../date-fns/locale/tr/_lib/localize.d.cts | 2 + .../date-fns/locale/tr/_lib/localize.d.ts | 2 + .../date-fns/locale/tr/_lib/localize.js | 164 + .../date-fns/locale/tr/_lib/match.cjs | 153 + .../date-fns/locale/tr/_lib/match.d.cts | 2 + .../date-fns/locale/tr/_lib/match.d.ts | 2 + node_modules/date-fns/locale/tr/_lib/match.js | 150 + node_modules/date-fns/locale/tr/cdn.js | 604 + node_modules/date-fns/locale/tr/cdn.min.js | 1 + node_modules/date-fns/locale/types.cjs | 1 + node_modules/date-fns/locale/types.d.cts | 367 + node_modules/date-fns/locale/types.d.ts | 367 + node_modules/date-fns/locale/types.js | 1 + node_modules/date-fns/locale/ug.cjs | 27 + node_modules/date-fns/locale/ug.d.cts | 9 + node_modules/date-fns/locale/ug.d.ts | 9 + node_modules/date-fns/locale/ug.js | 28 + .../locale/ug/_lib/formatDistance.cjs | 105 + .../locale/ug/_lib/formatDistance.d.cts | 2 + .../locale/ug/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/ug/_lib/formatDistance.js | 101 + .../date-fns/locale/ug/_lib/formatLong.cjs | 41 + .../date-fns/locale/ug/_lib/formatLong.d.cts | 2 + .../date-fns/locale/ug/_lib/formatLong.d.ts | 2 + .../date-fns/locale/ug/_lib/formatLong.js | 39 + .../locale/ug/_lib/formatRelative.cjs | 15 + .../locale/ug/_lib/formatRelative.d.cts | 2 + .../locale/ug/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/ug/_lib/formatRelative.js | 11 + .../date-fns/locale/ug/_lib/localize.cjs | 178 + .../date-fns/locale/ug/_lib/localize.d.cts | 2 + .../date-fns/locale/ug/_lib/localize.d.ts | 2 + .../date-fns/locale/ug/_lib/localize.js | 176 + .../date-fns/locale/ug/_lib/match.cjs | 136 + .../date-fns/locale/ug/_lib/match.d.cts | 2 + .../date-fns/locale/ug/_lib/match.d.ts | 2 + node_modules/date-fns/locale/ug/_lib/match.js | 133 + node_modules/date-fns/locale/ug/cdn.js | 572 + node_modules/date-fns/locale/ug/cdn.min.js | 1 + node_modules/date-fns/locale/uk.cjs | 28 + node_modules/date-fns/locale/uk.d.cts | 10 + node_modules/date-fns/locale/uk.d.ts | 10 + node_modules/date-fns/locale/uk.js | 29 + .../locale/uk/_lib/formatDistance.cjs | 254 + .../locale/uk/_lib/formatDistance.d.cts | 2 + .../locale/uk/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/uk/_lib/formatDistance.js | 250 + .../date-fns/locale/uk/_lib/formatLong.cjs | 41 + .../date-fns/locale/uk/_lib/formatLong.d.cts | 2 + .../date-fns/locale/uk/_lib/formatLong.d.ts | 2 + .../date-fns/locale/uk/_lib/formatLong.js | 39 + .../locale/uk/_lib/formatRelative.cjs | 93 + .../locale/uk/_lib/formatRelative.d.cts | 2 + .../locale/uk/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/uk/_lib/formatRelative.js | 90 + .../date-fns/locale/uk/_lib/localize.cjs | 217 + .../date-fns/locale/uk/_lib/localize.d.cts | 2 + .../date-fns/locale/uk/_lib/localize.d.ts | 2 + .../date-fns/locale/uk/_lib/localize.js | 215 + .../date-fns/locale/uk/_lib/match.cjs | 142 + .../date-fns/locale/uk/_lib/match.d.cts | 2 + .../date-fns/locale/uk/_lib/match.d.ts | 2 + node_modules/date-fns/locale/uk/_lib/match.js | 139 + node_modules/date-fns/locale/uk/cdn.js | 989 + node_modules/date-fns/locale/uk/cdn.min.js | 2 + node_modules/date-fns/locale/uz-Cyrl.cjs | 27 + node_modules/date-fns/locale/uz-Cyrl.d.cts | 9 + node_modules/date-fns/locale/uz-Cyrl.d.ts | 9 + node_modules/date-fns/locale/uz-Cyrl.js | 28 + .../locale/uz-Cyrl/_lib/formatDistance.cjs | 105 + .../locale/uz-Cyrl/_lib/formatDistance.d.cts | 2 + .../locale/uz-Cyrl/_lib/formatDistance.d.ts | 2 + .../locale/uz-Cyrl/_lib/formatDistance.js | 101 + .../locale/uz-Cyrl/_lib/formatLong.cjs | 38 + .../locale/uz-Cyrl/_lib/formatLong.d.cts | 2 + .../locale/uz-Cyrl/_lib/formatLong.d.ts | 2 + .../locale/uz-Cyrl/_lib/formatLong.js | 36 + .../locale/uz-Cyrl/_lib/formatRelative.cjs | 15 + .../locale/uz-Cyrl/_lib/formatRelative.d.cts | 2 + .../locale/uz-Cyrl/_lib/formatRelative.d.ts | 2 + .../locale/uz-Cyrl/_lib/formatRelative.js | 11 + .../date-fns/locale/uz-Cyrl/_lib/localize.cjs | 125 + .../locale/uz-Cyrl/_lib/localize.d.cts | 2 + .../locale/uz-Cyrl/_lib/localize.d.ts | 2 + .../date-fns/locale/uz-Cyrl/_lib/localize.js | 123 + .../date-fns/locale/uz-Cyrl/_lib/match.cjs | 134 + .../date-fns/locale/uz-Cyrl/_lib/match.d.cts | 2 + .../date-fns/locale/uz-Cyrl/_lib/match.d.ts | 2 + .../date-fns/locale/uz-Cyrl/_lib/match.js | 131 + node_modules/date-fns/locale/uz-Cyrl/cdn.js | 521 + .../date-fns/locale/uz-Cyrl/cdn.min.js | 1 + node_modules/date-fns/locale/uz.cjs | 27 + node_modules/date-fns/locale/uz.d.cts | 9 + node_modules/date-fns/locale/uz.d.ts | 9 + node_modules/date-fns/locale/uz.js | 28 + .../locale/uz/_lib/formatDistance.cjs | 105 + .../locale/uz/_lib/formatDistance.d.cts | 2 + .../locale/uz/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/uz/_lib/formatDistance.js | 101 + .../date-fns/locale/uz/_lib/formatLong.cjs | 38 + .../date-fns/locale/uz/_lib/formatLong.d.cts | 2 + .../date-fns/locale/uz/_lib/formatLong.d.ts | 2 + .../date-fns/locale/uz/_lib/formatLong.js | 36 + .../locale/uz/_lib/formatRelative.cjs | 15 + .../locale/uz/_lib/formatRelative.d.cts | 2 + .../locale/uz/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/uz/_lib/formatRelative.js | 11 + .../date-fns/locale/uz/_lib/localize.cjs | 169 + .../date-fns/locale/uz/_lib/localize.d.cts | 2 + .../date-fns/locale/uz/_lib/localize.d.ts | 2 + .../date-fns/locale/uz/_lib/localize.js | 167 + .../date-fns/locale/uz/_lib/match.cjs | 135 + .../date-fns/locale/uz/_lib/match.d.cts | 2 + .../date-fns/locale/uz/_lib/match.d.ts | 2 + node_modules/date-fns/locale/uz/_lib/match.js | 132 + node_modules/date-fns/locale/uz/cdn.js | 568 + node_modules/date-fns/locale/uz/cdn.min.js | 1 + node_modules/date-fns/locale/vi.cjs | 28 + node_modules/date-fns/locale/vi.d.cts | 10 + node_modules/date-fns/locale/vi.d.ts | 10 + node_modules/date-fns/locale/vi.js | 29 + .../locale/vi/_lib/formatDistance.cjs | 105 + .../locale/vi/_lib/formatDistance.d.cts | 2 + .../locale/vi/_lib/formatDistance.d.ts | 2 + .../date-fns/locale/vi/_lib/formatDistance.js | 101 + .../date-fns/locale/vi/_lib/formatLong.cjs | 47 + .../date-fns/locale/vi/_lib/formatLong.d.cts | 2 + .../date-fns/locale/vi/_lib/formatLong.d.ts | 2 + .../date-fns/locale/vi/_lib/formatLong.js | 45 + .../locale/vi/_lib/formatRelative.cjs | 15 + .../locale/vi/_lib/formatRelative.d.cts | 2 + .../locale/vi/_lib/formatRelative.d.ts | 2 + .../date-fns/locale/vi/_lib/formatRelative.js | 11 + .../date-fns/locale/vi/_lib/localize.cjs | 288 + .../date-fns/locale/vi/_lib/localize.d.cts | 2 + .../date-fns/locale/vi/_lib/localize.d.ts | 2 + .../date-fns/locale/vi/_lib/localize.js | 286 + .../date-fns/locale/vi/_lib/match.cjs | 157 + .../date-fns/locale/vi/_lib/match.d.cts | 2 + .../date-fns/locale/vi/_lib/match.d.ts | 2 + node_modules/date-fns/locale/vi/_lib/match.js | 154 + node_modules/date-fns/locale/vi/cdn.js | 696 + node_modules/date-fns/locale/vi/cdn.min.js | 1 + node_modules/date-fns/locale/zh-CN.cjs | 31 + node_modules/date-fns/locale/zh-CN.d.cts | 13 + node_modules/date-fns/locale/zh-CN.d.ts | 13 + node_modules/date-fns/locale/zh-CN.js | 32 + .../locale/zh-CN/_lib/formatDistance.cjs | 105 + .../locale/zh-CN/_lib/formatDistance.d.cts | 2 + .../locale/zh-CN/_lib/formatDistance.d.ts | 2 + .../locale/zh-CN/_lib/formatDistance.js | 101 + .../date-fns/locale/zh-CN/_lib/formatLong.cjs | 41 + .../locale/zh-CN/_lib/formatLong.d.cts | 2 + .../locale/zh-CN/_lib/formatLong.d.ts | 2 + .../date-fns/locale/zh-CN/_lib/formatLong.js | 39 + .../locale/zh-CN/_lib/formatRelative.cjs | 34 + .../locale/zh-CN/_lib/formatRelative.d.cts | 2 + .../locale/zh-CN/_lib/formatRelative.d.ts | 2 + .../locale/zh-CN/_lib/formatRelative.js | 31 + .../date-fns/locale/zh-CN/_lib/localize.cjs | 185 + .../date-fns/locale/zh-CN/_lib/localize.d.cts | 2 + .../date-fns/locale/zh-CN/_lib/localize.d.ts | 2 + .../date-fns/locale/zh-CN/_lib/localize.js | 183 + .../date-fns/locale/zh-CN/_lib/match.cjs | 133 + .../date-fns/locale/zh-CN/_lib/match.d.cts | 2 + .../date-fns/locale/zh-CN/_lib/match.d.ts | 2 + .../date-fns/locale/zh-CN/_lib/match.js | 130 + node_modules/date-fns/locale/zh-CN/cdn.js | 774 + node_modules/date-fns/locale/zh-CN/cdn.min.js | 2 + node_modules/date-fns/locale/zh-HK.cjs | 27 + node_modules/date-fns/locale/zh-HK.d.cts | 9 + node_modules/date-fns/locale/zh-HK.d.ts | 9 + node_modules/date-fns/locale/zh-HK.js | 28 + .../locale/zh-HK/_lib/formatDistance.cjs | 105 + .../locale/zh-HK/_lib/formatDistance.d.cts | 2 + .../locale/zh-HK/_lib/formatDistance.d.ts | 2 + .../locale/zh-HK/_lib/formatDistance.js | 101 + .../date-fns/locale/zh-HK/_lib/formatLong.cjs | 41 + .../locale/zh-HK/_lib/formatLong.d.cts | 2 + .../locale/zh-HK/_lib/formatLong.d.ts | 2 + .../date-fns/locale/zh-HK/_lib/formatLong.js | 39 + .../locale/zh-HK/_lib/formatRelative.cjs | 15 + .../locale/zh-HK/_lib/formatRelative.d.cts | 2 + .../locale/zh-HK/_lib/formatRelative.d.ts | 2 + .../locale/zh-HK/_lib/formatRelative.js | 11 + .../date-fns/locale/zh-HK/_lib/localize.cjs | 185 + .../date-fns/locale/zh-HK/_lib/localize.d.cts | 2 + .../date-fns/locale/zh-HK/_lib/localize.d.ts | 2 + .../date-fns/locale/zh-HK/_lib/localize.js | 183 + .../date-fns/locale/zh-HK/_lib/match.cjs | 133 + .../date-fns/locale/zh-HK/_lib/match.d.cts | 2 + .../date-fns/locale/zh-HK/_lib/match.d.ts | 2 + .../date-fns/locale/zh-HK/_lib/match.js | 130 + node_modules/date-fns/locale/zh-HK/cdn.js | 566 + node_modules/date-fns/locale/zh-HK/cdn.min.js | 1 + node_modules/date-fns/locale/zh-TW.cjs | 29 + node_modules/date-fns/locale/zh-TW.d.cts | 11 + node_modules/date-fns/locale/zh-TW.d.ts | 11 + node_modules/date-fns/locale/zh-TW.js | 30 + .../locale/zh-TW/_lib/formatDistance.cjs | 105 + .../locale/zh-TW/_lib/formatDistance.d.cts | 2 + .../locale/zh-TW/_lib/formatDistance.d.ts | 2 + .../locale/zh-TW/_lib/formatDistance.js | 101 + .../date-fns/locale/zh-TW/_lib/formatLong.cjs | 41 + .../locale/zh-TW/_lib/formatLong.d.cts | 2 + .../locale/zh-TW/_lib/formatLong.d.ts | 2 + .../date-fns/locale/zh-TW/_lib/formatLong.js | 39 + .../locale/zh-TW/_lib/formatRelative.cjs | 15 + .../locale/zh-TW/_lib/formatRelative.d.cts | 2 + .../locale/zh-TW/_lib/formatRelative.d.ts | 2 + .../locale/zh-TW/_lib/formatRelative.js | 11 + .../date-fns/locale/zh-TW/_lib/localize.cjs | 185 + .../date-fns/locale/zh-TW/_lib/localize.d.cts | 2 + .../date-fns/locale/zh-TW/_lib/localize.d.ts | 2 + .../date-fns/locale/zh-TW/_lib/localize.js | 183 + .../date-fns/locale/zh-TW/_lib/match.cjs | 133 + .../date-fns/locale/zh-TW/_lib/match.d.cts | 2 + .../date-fns/locale/zh-TW/_lib/match.d.ts | 2 + .../date-fns/locale/zh-TW/_lib/match.js | 130 + node_modules/date-fns/locale/zh-TW/cdn.js | 568 + node_modules/date-fns/locale/zh-TW/cdn.min.js | 1 + node_modules/date-fns/max.cjs | 49 + node_modules/date-fns/max.d.cts | 38 + node_modules/date-fns/max.d.ts | 38 + node_modules/date-fns/max.js | 50 + node_modules/date-fns/milliseconds.cjs | 49 + node_modules/date-fns/milliseconds.d.cts | 39 + node_modules/date-fns/milliseconds.d.ts | 39 + node_modules/date-fns/milliseconds.js | 58 + node_modules/date-fns/millisecondsToHours.cjs | 30 + .../date-fns/millisecondsToHours.d.cts | 23 + .../date-fns/millisecondsToHours.d.ts | 23 + node_modules/date-fns/millisecondsToHours.js | 31 + .../date-fns/millisecondsToMinutes.cjs | 30 + .../date-fns/millisecondsToMinutes.d.cts | 23 + .../date-fns/millisecondsToMinutes.d.ts | 23 + .../date-fns/millisecondsToMinutes.js | 31 + .../date-fns/millisecondsToSeconds.cjs | 30 + .../date-fns/millisecondsToSeconds.d.cts | 23 + .../date-fns/millisecondsToSeconds.d.ts | 23 + .../date-fns/millisecondsToSeconds.js | 31 + node_modules/date-fns/min.cjs | 49 + node_modules/date-fns/min.d.cts | 38 + node_modules/date-fns/min.d.ts | 38 + node_modules/date-fns/min.js | 50 + node_modules/date-fns/minutesToHours.cjs | 30 + node_modules/date-fns/minutesToHours.d.cts | 23 + node_modules/date-fns/minutesToHours.d.ts | 23 + node_modules/date-fns/minutesToHours.js | 31 + .../date-fns/minutesToMilliseconds.cjs | 24 + .../date-fns/minutesToMilliseconds.d.cts | 18 + .../date-fns/minutesToMilliseconds.d.ts | 18 + .../date-fns/minutesToMilliseconds.js | 25 + node_modules/date-fns/minutesToSeconds.cjs | 24 + node_modules/date-fns/minutesToSeconds.d.cts | 18 + node_modules/date-fns/minutesToSeconds.d.ts | 18 + node_modules/date-fns/minutesToSeconds.js | 25 + node_modules/date-fns/monthsToQuarters.cjs | 30 + node_modules/date-fns/monthsToQuarters.d.cts | 23 + node_modules/date-fns/monthsToQuarters.d.ts | 23 + node_modules/date-fns/monthsToQuarters.js | 31 + node_modules/date-fns/monthsToYears.cjs | 29 + node_modules/date-fns/monthsToYears.d.cts | 22 + node_modules/date-fns/monthsToYears.d.ts | 22 + node_modules/date-fns/monthsToYears.js | 30 + node_modules/date-fns/nextDay.cjs | 39 + node_modules/date-fns/nextDay.d.cts | 38 + node_modules/date-fns/nextDay.d.ts | 38 + node_modules/date-fns/nextDay.js | 40 + node_modules/date-fns/nextFriday.cjs | 32 + node_modules/date-fns/nextFriday.d.cts | 31 + node_modules/date-fns/nextFriday.d.ts | 31 + node_modules/date-fns/nextFriday.js | 33 + node_modules/date-fns/nextMonday.cjs | 32 + node_modules/date-fns/nextMonday.d.cts | 34 + node_modules/date-fns/nextMonday.d.ts | 34 + node_modules/date-fns/nextMonday.js | 33 + node_modules/date-fns/nextSaturday.cjs | 32 + node_modules/date-fns/nextSaturday.d.cts | 34 + node_modules/date-fns/nextSaturday.d.ts | 34 + node_modules/date-fns/nextSaturday.js | 33 + node_modules/date-fns/nextSunday.cjs | 32 + node_modules/date-fns/nextSunday.d.cts | 34 + node_modules/date-fns/nextSunday.d.ts | 34 + node_modules/date-fns/nextSunday.js | 33 + node_modules/date-fns/nextThursday.cjs | 32 + node_modules/date-fns/nextThursday.d.cts | 34 + node_modules/date-fns/nextThursday.d.ts | 34 + node_modules/date-fns/nextThursday.js | 33 + node_modules/date-fns/nextTuesday.cjs | 32 + node_modules/date-fns/nextTuesday.d.cts | 34 + node_modules/date-fns/nextTuesday.d.ts | 34 + node_modules/date-fns/nextTuesday.js | 33 + node_modules/date-fns/nextWednesday.cjs | 32 + node_modules/date-fns/nextWednesday.d.cts | 34 + node_modules/date-fns/nextWednesday.d.ts | 34 + node_modules/date-fns/nextWednesday.js | 33 + node_modules/date-fns/package.json | 7423 +++ node_modules/date-fns/parse.cjs | 524 + node_modules/date-fns/parse.d.cts | 327 + node_modules/date-fns/parse.d.ts | 327 + node_modules/date-fns/parse.js | 513 + node_modules/date-fns/parse/_lib/Parser.cjs | 28 + node_modules/date-fns/parse/_lib/Parser.d.cts | 34 + node_modules/date-fns/parse/_lib/Parser.d.ts | 34 + node_modules/date-fns/parse/_lib/Parser.js | 25 + node_modules/date-fns/parse/_lib/Setter.cjs | 65 + node_modules/date-fns/parse/_lib/Setter.d.cts | 56 + node_modules/date-fns/parse/_lib/Setter.d.ts | 56 + node_modules/date-fns/parse/_lib/Setter.js | 56 + .../date-fns/parse/_lib/constants.cjs | 33 + .../date-fns/parse/_lib/constants.d.cts | 28 + .../date-fns/parse/_lib/constants.d.ts | 28 + node_modules/date-fns/parse/_lib/constants.js | 31 + node_modules/date-fns/parse/_lib/parsers.cjs | 110 + .../date-fns/parse/_lib/parsers.d.cts | 2 + node_modules/date-fns/parse/_lib/parsers.d.ts | 2 + node_modules/date-fns/parse/_lib/parsers.js | 108 + .../parse/_lib/parsers/AMPMMidnightParser.cjs | 57 + .../_lib/parsers/AMPMMidnightParser.d.cts | 17 + .../_lib/parsers/AMPMMidnightParser.d.ts | 17 + .../parse/_lib/parsers/AMPMMidnightParser.js | 54 + .../parse/_lib/parsers/AMPMParser.cjs | 57 + .../parse/_lib/parsers/AMPMParser.d.cts | 17 + .../parse/_lib/parsers/AMPMParser.d.ts | 17 + .../date-fns/parse/_lib/parsers/AMPMParser.js | 54 + .../parse/_lib/parsers/DateParser.cjs | 64 + .../parse/_lib/parsers/DateParser.d.cts | 15 + .../parse/_lib/parsers/DateParser.d.ts | 15 + .../date-fns/parse/_lib/parsers/DateParser.js | 62 + .../parse/_lib/parsers/DayOfYearParser.cjs | 62 + .../parse/_lib/parsers/DayOfYearParser.d.cts | 15 + .../parse/_lib/parsers/DayOfYearParser.d.ts | 15 + .../parse/_lib/parsers/DayOfYearParser.js | 60 + .../date-fns/parse/_lib/parsers/DayParser.cjs | 65 + .../parse/_lib/parsers/DayParser.d.cts | 15 + .../parse/_lib/parsers/DayParser.d.ts | 15 + .../date-fns/parse/_lib/parsers/DayParser.js | 62 + .../parse/_lib/parsers/DayPeriodParser.cjs | 58 + .../parse/_lib/parsers/DayPeriodParser.d.cts | 17 + .../parse/_lib/parsers/DayPeriodParser.d.ts | 17 + .../parse/_lib/parsers/DayPeriodParser.js | 55 + .../date-fns/parse/_lib/parsers/EraParser.cjs | 43 + .../parse/_lib/parsers/EraParser.d.cts | 14 + .../parse/_lib/parsers/EraParser.d.ts | 14 + .../date-fns/parse/_lib/parsers/EraParser.js | 39 + .../parse/_lib/parsers/ExtendedYearParser.cjs | 26 + .../_lib/parsers/ExtendedYearParser.d.cts | 12 + .../_lib/parsers/ExtendedYearParser.d.ts | 12 + .../parse/_lib/parsers/ExtendedYearParser.js | 23 + .../_lib/parsers/FractionOfSecondParser.cjs | 26 + .../_lib/parsers/FractionOfSecondParser.d.cts | 12 + .../_lib/parsers/FractionOfSecondParser.d.ts | 12 + .../_lib/parsers/FractionOfSecondParser.js | 20 + .../parse/_lib/parsers/Hour0To11Parser.cjs | 41 + .../parse/_lib/parsers/Hour0To11Parser.d.cts | 14 + .../parse/_lib/parsers/Hour0To11Parser.d.ts | 14 + .../parse/_lib/parsers/Hour0To11Parser.js | 35 + .../parse/_lib/parsers/Hour0to23Parser.cjs | 36 + .../parse/_lib/parsers/Hour0to23Parser.d.cts | 14 + .../parse/_lib/parsers/Hour0to23Parser.d.ts | 14 + .../parse/_lib/parsers/Hour0to23Parser.js | 30 + .../parse/_lib/parsers/Hour1To24Parser.cjs | 37 + .../parse/_lib/parsers/Hour1To24Parser.d.cts | 14 + .../parse/_lib/parsers/Hour1To24Parser.d.ts | 14 + .../parse/_lib/parsers/Hour1To24Parser.js | 31 + .../parse/_lib/parsers/Hour1to12Parser.cjs | 43 + .../parse/_lib/parsers/Hour1to12Parser.d.cts | 14 + .../parse/_lib/parsers/Hour1to12Parser.d.ts | 14 + .../parse/_lib/parsers/Hour1to12Parser.js | 37 + .../parse/_lib/parsers/ISODayParser.cjs | 120 + .../parse/_lib/parsers/ISODayParser.d.cts | 14 + .../parse/_lib/parsers/ISODayParser.d.ts | 14 + .../parse/_lib/parsers/ISODayParser.js | 117 + .../parse/_lib/parsers/ISOTimezoneParser.cjs | 57 + .../_lib/parsers/ISOTimezoneParser.d.cts | 12 + .../parse/_lib/parsers/ISOTimezoneParser.d.ts | 12 + .../parse/_lib/parsers/ISOTimezoneParser.js | 46 + .../_lib/parsers/ISOTimezoneWithZParser.cjs | 57 + .../_lib/parsers/ISOTimezoneWithZParser.d.cts | 12 + .../_lib/parsers/ISOTimezoneWithZParser.d.ts | 12 + .../_lib/parsers/ISOTimezoneWithZParser.js | 46 + .../parse/_lib/parsers/ISOWeekParser.cjs | 53 + .../parse/_lib/parsers/ISOWeekParser.d.cts | 14 + .../parse/_lib/parsers/ISOWeekParser.d.ts | 14 + .../parse/_lib/parsers/ISOWeekParser.js | 47 + .../parse/_lib/parsers/ISOWeekYearParser.cjs | 46 + .../_lib/parsers/ISOWeekYearParser.d.cts | 12 + .../parse/_lib/parsers/ISOWeekYearParser.d.ts | 12 + .../parse/_lib/parsers/ISOWeekYearParser.js | 43 + .../parse/_lib/parsers/LocalDayParser.cjs | 101 + .../parse/_lib/parsers/LocalDayParser.d.cts | 20 + .../parse/_lib/parsers/LocalDayParser.d.ts | 20 + .../parse/_lib/parsers/LocalDayParser.js | 95 + .../parse/_lib/parsers/LocalWeekParser.cjs | 55 + .../parse/_lib/parsers/LocalWeekParser.d.cts | 15 + .../parse/_lib/parsers/LocalWeekParser.d.ts | 15 + .../parse/_lib/parsers/LocalWeekParser.js | 46 + .../_lib/parsers/LocalWeekYearParser.cjs | 85 + .../_lib/parsers/LocalWeekYearParser.d.cts | 23 + .../_lib/parsers/LocalWeekYearParser.d.ts | 23 + .../parse/_lib/parsers/LocalWeekYearParser.js | 76 + .../parse/_lib/parsers/MinuteParser.cjs | 36 + .../parse/_lib/parsers/MinuteParser.d.cts | 14 + .../parse/_lib/parsers/MinuteParser.d.ts | 14 + .../parse/_lib/parsers/MinuteParser.js | 30 + .../parse/_lib/parsers/MonthParser.cjs | 94 + .../parse/_lib/parsers/MonthParser.d.cts | 14 + .../parse/_lib/parsers/MonthParser.d.ts | 14 + .../parse/_lib/parsers/MonthParser.js | 85 + .../parse/_lib/parsers/QuarterParser.cjs | 85 + .../parse/_lib/parsers/QuarterParser.d.cts | 14 + .../parse/_lib/parsers/QuarterParser.d.ts | 14 + .../parse/_lib/parsers/QuarterParser.js | 82 + .../parse/_lib/parsers/SecondParser.cjs | 36 + .../parse/_lib/parsers/SecondParser.d.cts | 14 + .../parse/_lib/parsers/SecondParser.d.ts | 14 + .../parse/_lib/parsers/SecondParser.js | 30 + .../_lib/parsers/StandAloneLocalDayParser.cjs | 102 + .../parsers/StandAloneLocalDayParser.d.cts | 20 + .../parsers/StandAloneLocalDayParser.d.ts | 20 + .../_lib/parsers/StandAloneLocalDayParser.js | 96 + .../_lib/parsers/StandAloneMonthParser.cjs | 94 + .../_lib/parsers/StandAloneMonthParser.d.cts | 14 + .../_lib/parsers/StandAloneMonthParser.d.ts | 14 + .../_lib/parsers/StandAloneMonthParser.js | 85 + .../_lib/parsers/StandAloneQuarterParser.cjs | 85 + .../parsers/StandAloneQuarterParser.d.cts | 14 + .../_lib/parsers/StandAloneQuarterParser.d.ts | 14 + .../_lib/parsers/StandAloneQuarterParser.js | 82 + .../parsers/TimestampMillisecondsParser.cjs | 21 + .../parsers/TimestampMillisecondsParser.d.cts | 12 + .../parsers/TimestampMillisecondsParser.d.ts | 12 + .../parsers/TimestampMillisecondsParser.js | 18 + .../_lib/parsers/TimestampSecondsParser.cjs | 24 + .../_lib/parsers/TimestampSecondsParser.d.cts | 12 + .../_lib/parsers/TimestampSecondsParser.d.ts | 12 + .../_lib/parsers/TimestampSecondsParser.js | 18 + .../parse/_lib/parsers/YearParser.cjs | 70 + .../parse/_lib/parsers/YearParser.d.cts | 25 + .../parse/_lib/parsers/YearParser.d.ts | 25 + .../date-fns/parse/_lib/parsers/YearParser.js | 61 + node_modules/date-fns/parse/_lib/types.cjs | 1 + node_modules/date-fns/parse/_lib/types.d.cts | 16 + node_modules/date-fns/parse/_lib/types.d.ts | 16 + node_modules/date-fns/parse/_lib/types.js | 1 + node_modules/date-fns/parse/_lib/utils.cjs | 171 + node_modules/date-fns/parse/_lib/utils.d.cts | 33 + node_modules/date-fns/parse/_lib/utils.d.ts | 33 + node_modules/date-fns/parse/_lib/utils.js | 138 + node_modules/date-fns/parseISO.cjs | 296 + node_modules/date-fns/parseISO.d.cts | 46 + node_modules/date-fns/parseISO.d.ts | 46 + node_modules/date-fns/parseISO.js | 294 + node_modules/date-fns/parseJSON.cjs | 60 + node_modules/date-fns/parseJSON.d.cts | 42 + node_modules/date-fns/parseJSON.d.ts | 42 + node_modules/date-fns/parseJSON.js | 61 + node_modules/date-fns/previousDay.cjs | 42 + node_modules/date-fns/previousDay.d.cts | 41 + node_modules/date-fns/previousDay.d.ts | 41 + node_modules/date-fns/previousDay.js | 43 + node_modules/date-fns/previousFriday.cjs | 32 + node_modules/date-fns/previousFriday.d.cts | 34 + node_modules/date-fns/previousFriday.d.ts | 34 + node_modules/date-fns/previousFriday.js | 33 + node_modules/date-fns/previousMonday.cjs | 32 + node_modules/date-fns/previousMonday.d.cts | 34 + node_modules/date-fns/previousMonday.d.ts | 34 + node_modules/date-fns/previousMonday.js | 33 + node_modules/date-fns/previousSaturday.cjs | 32 + node_modules/date-fns/previousSaturday.d.cts | 34 + node_modules/date-fns/previousSaturday.d.ts | 34 + node_modules/date-fns/previousSaturday.js | 33 + node_modules/date-fns/previousSunday.cjs | 32 + node_modules/date-fns/previousSunday.d.cts | 34 + node_modules/date-fns/previousSunday.d.ts | 34 + node_modules/date-fns/previousSunday.js | 33 + node_modules/date-fns/previousThursday.cjs | 32 + node_modules/date-fns/previousThursday.d.cts | 34 + node_modules/date-fns/previousThursday.d.ts | 34 + node_modules/date-fns/previousThursday.js | 33 + node_modules/date-fns/previousTuesday.cjs | 32 + node_modules/date-fns/previousTuesday.d.cts | 34 + node_modules/date-fns/previousTuesday.d.ts | 34 + node_modules/date-fns/previousTuesday.js | 33 + node_modules/date-fns/previousWednesday.cjs | 32 + node_modules/date-fns/previousWednesday.d.cts | 34 + node_modules/date-fns/previousWednesday.d.ts | 34 + node_modules/date-fns/previousWednesday.js | 33 + node_modules/date-fns/quartersToMonths.cjs | 24 + node_modules/date-fns/quartersToMonths.d.cts | 18 + node_modules/date-fns/quartersToMonths.d.ts | 18 + node_modules/date-fns/quartersToMonths.js | 25 + node_modules/date-fns/quartersToYears.cjs | 30 + node_modules/date-fns/quartersToYears.d.cts | 23 + node_modules/date-fns/quartersToYears.d.ts | 23 + node_modules/date-fns/quartersToYears.js | 31 + node_modules/date-fns/roundToNearestHours.cjs | 76 + .../date-fns/roundToNearestHours.d.cts | 63 + .../date-fns/roundToNearestHours.d.ts | 63 + node_modules/date-fns/roundToNearestHours.js | 77 + .../date-fns/roundToNearestMinutes.cjs | 67 + .../date-fns/roundToNearestMinutes.d.cts | 58 + .../date-fns/roundToNearestMinutes.d.ts | 58 + .../date-fns/roundToNearestMinutes.js | 67 + node_modules/date-fns/secondsToHours.cjs | 30 + node_modules/date-fns/secondsToHours.d.cts | 23 + node_modules/date-fns/secondsToHours.d.ts | 23 + node_modules/date-fns/secondsToHours.js | 31 + .../date-fns/secondsToMilliseconds.cjs | 24 + .../date-fns/secondsToMilliseconds.d.cts | 18 + .../date-fns/secondsToMilliseconds.d.ts | 18 + .../date-fns/secondsToMilliseconds.js | 25 + node_modules/date-fns/secondsToMinutes.cjs | 30 + node_modules/date-fns/secondsToMinutes.d.cts | 23 + node_modules/date-fns/secondsToMinutes.d.ts | 23 + node_modules/date-fns/secondsToMinutes.js | 31 + node_modules/date-fns/set.cjs | 60 + node_modules/date-fns/set.d.cts | 48 + node_modules/date-fns/set.d.ts | 48 + node_modules/date-fns/set.js | 61 + node_modules/date-fns/setDate.cjs | 35 + node_modules/date-fns/setDate.d.cts | 36 + node_modules/date-fns/setDate.d.ts | 36 + node_modules/date-fns/setDate.js | 36 + node_modules/date-fns/setDay.cjs | 59 + node_modules/date-fns/setDay.d.cts | 48 + node_modules/date-fns/setDay.d.ts | 48 + node_modules/date-fns/setDay.js | 60 + node_modules/date-fns/setDayOfYear.cjs | 36 + node_modules/date-fns/setDayOfYear.d.cts | 36 + node_modules/date-fns/setDayOfYear.d.ts | 36 + node_modules/date-fns/setDayOfYear.js | 37 + node_modules/date-fns/setDefaultOptions.cjs | 74 + node_modules/date-fns/setDefaultOptions.d.cts | 47 + node_modules/date-fns/setDefaultOptions.d.ts | 47 + node_modules/date-fns/setDefaultOptions.js | 78 + node_modules/date-fns/setHours.cjs | 35 + node_modules/date-fns/setHours.d.cts | 36 + node_modules/date-fns/setHours.d.ts | 36 + node_modules/date-fns/setHours.js | 36 + node_modules/date-fns/setISODay.cjs | 40 + node_modules/date-fns/setISODay.d.cts | 38 + node_modules/date-fns/setISODay.d.ts | 38 + node_modules/date-fns/setISODay.js | 41 + node_modules/date-fns/setISOWeek.cjs | 39 + node_modules/date-fns/setISOWeek.d.cts | 38 + node_modules/date-fns/setISOWeek.d.ts | 38 + node_modules/date-fns/setISOWeek.js | 40 + node_modules/date-fns/setISOWeekYear.cjs | 49 + node_modules/date-fns/setISOWeekYear.d.cts | 39 + node_modules/date-fns/setISOWeekYear.d.ts | 39 + node_modules/date-fns/setISOWeekYear.js | 50 + node_modules/date-fns/setMilliseconds.cjs | 35 + node_modules/date-fns/setMilliseconds.d.cts | 36 + node_modules/date-fns/setMilliseconds.d.ts | 36 + node_modules/date-fns/setMilliseconds.js | 36 + node_modules/date-fns/setMinutes.cjs | 35 + node_modules/date-fns/setMinutes.d.cts | 36 + node_modules/date-fns/setMinutes.d.ts | 36 + node_modules/date-fns/setMinutes.js | 36 + node_modules/date-fns/setMonth.cjs | 46 + node_modules/date-fns/setMonth.d.cts | 36 + node_modules/date-fns/setMonth.d.ts | 36 + node_modules/date-fns/setMonth.js | 47 + node_modules/date-fns/setQuarter.cjs | 37 + node_modules/date-fns/setQuarter.d.cts | 36 + node_modules/date-fns/setQuarter.d.ts | 36 + node_modules/date-fns/setQuarter.js | 38 + node_modules/date-fns/setSeconds.cjs | 35 + node_modules/date-fns/setSeconds.d.cts | 36 + node_modules/date-fns/setSeconds.d.ts | 36 + node_modules/date-fns/setSeconds.js | 36 + node_modules/date-fns/setWeek.cjs | 53 + node_modules/date-fns/setWeek.d.cts | 61 + node_modules/date-fns/setWeek.d.ts | 61 + node_modules/date-fns/setWeek.js | 54 + node_modules/date-fns/setWeekYear.cjs | 74 + node_modules/date-fns/setWeekYear.d.cts | 62 + node_modules/date-fns/setWeekYear.d.ts | 62 + node_modules/date-fns/setWeekYear.js | 75 + node_modules/date-fns/setYear.cjs | 40 + node_modules/date-fns/setYear.d.cts | 36 + node_modules/date-fns/setYear.d.ts | 36 + node_modules/date-fns/setYear.js | 41 + node_modules/date-fns/startOfDay.cjs | 35 + node_modules/date-fns/startOfDay.d.cts | 35 + node_modules/date-fns/startOfDay.d.ts | 35 + node_modules/date-fns/startOfDay.js | 36 + node_modules/date-fns/startOfDecade.cjs | 40 + node_modules/date-fns/startOfDecade.d.cts | 34 + node_modules/date-fns/startOfDecade.d.ts | 34 + node_modules/date-fns/startOfDecade.js | 41 + node_modules/date-fns/startOfHour.cjs | 35 + node_modules/date-fns/startOfHour.d.cts | 35 + node_modules/date-fns/startOfHour.d.ts | 35 + node_modules/date-fns/startOfHour.js | 36 + node_modules/date-fns/startOfISOWeek.cjs | 35 + node_modules/date-fns/startOfISOWeek.d.cts | 37 + node_modules/date-fns/startOfISOWeek.d.ts | 37 + node_modules/date-fns/startOfISOWeek.js | 36 + node_modules/date-fns/startOfISOWeekYear.cjs | 42 + .../date-fns/startOfISOWeekYear.d.cts | 38 + node_modules/date-fns/startOfISOWeekYear.d.ts | 38 + node_modules/date-fns/startOfISOWeekYear.js | 43 + node_modules/date-fns/startOfMinute.cjs | 35 + node_modules/date-fns/startOfMinute.d.cts | 35 + node_modules/date-fns/startOfMinute.d.ts | 35 + node_modules/date-fns/startOfMinute.js | 36 + node_modules/date-fns/startOfMonth.cjs | 37 + node_modules/date-fns/startOfMonth.d.cts | 36 + node_modules/date-fns/startOfMonth.d.ts | 36 + node_modules/date-fns/startOfMonth.js | 38 + node_modules/date-fns/startOfQuarter.cjs | 38 + node_modules/date-fns/startOfQuarter.d.cts | 35 + node_modules/date-fns/startOfQuarter.d.ts | 35 + node_modules/date-fns/startOfQuarter.js | 39 + node_modules/date-fns/startOfSecond.cjs | 35 + node_modules/date-fns/startOfSecond.d.cts | 35 + node_modules/date-fns/startOfSecond.d.ts | 35 + node_modules/date-fns/startOfSecond.js | 36 + node_modules/date-fns/startOfToday.cjs | 31 + node_modules/date-fns/startOfToday.d.cts | 29 + node_modules/date-fns/startOfToday.d.ts | 29 + node_modules/date-fns/startOfToday.js | 32 + node_modules/date-fns/startOfTomorrow.cjs | 40 + node_modules/date-fns/startOfTomorrow.d.cts | 29 + node_modules/date-fns/startOfTomorrow.d.ts | 29 + node_modules/date-fns/startOfTomorrow.js | 41 + node_modules/date-fns/startOfWeek.cjs | 53 + node_modules/date-fns/startOfWeek.d.cts | 47 + node_modules/date-fns/startOfWeek.d.ts | 47 + node_modules/date-fns/startOfWeek.js | 54 + node_modules/date-fns/startOfWeekYear.cjs | 64 + node_modules/date-fns/startOfWeekYear.d.cts | 59 + node_modules/date-fns/startOfWeekYear.d.ts | 59 + node_modules/date-fns/startOfWeekYear.js | 65 + node_modules/date-fns/startOfYear.cjs | 36 + node_modules/date-fns/startOfYear.d.cts | 35 + node_modules/date-fns/startOfYear.d.ts | 35 + node_modules/date-fns/startOfYear.js | 37 + node_modules/date-fns/startOfYesterday.cjs | 39 + node_modules/date-fns/startOfYesterday.d.cts | 29 + node_modules/date-fns/startOfYesterday.d.ts | 29 + node_modules/date-fns/startOfYesterday.js | 40 + node_modules/date-fns/sub.cjs | 80 + node_modules/date-fns/sub.d.cts | 56 + node_modules/date-fns/sub.d.ts | 56 + node_modules/date-fns/sub.js | 73 + node_modules/date-fns/subBusinessDays.cjs | 33 + node_modules/date-fns/subBusinessDays.d.cts | 36 + node_modules/date-fns/subBusinessDays.d.ts | 36 + node_modules/date-fns/subBusinessDays.js | 34 + node_modules/date-fns/subDays.cjs | 30 + node_modules/date-fns/subDays.d.cts | 33 + node_modules/date-fns/subDays.d.ts | 33 + node_modules/date-fns/subDays.js | 31 + node_modules/date-fns/subHours.cjs | 33 + node_modules/date-fns/subHours.d.cts | 36 + node_modules/date-fns/subHours.d.ts | 36 + node_modules/date-fns/subHours.js | 34 + node_modules/date-fns/subISOWeekYears.cjs | 35 + node_modules/date-fns/subISOWeekYears.d.cts | 38 + node_modules/date-fns/subISOWeekYears.d.ts | 38 + node_modules/date-fns/subISOWeekYears.js | 36 + node_modules/date-fns/subMilliseconds.cjs | 23 + node_modules/date-fns/subMilliseconds.d.cts | 26 + node_modules/date-fns/subMilliseconds.d.ts | 26 + node_modules/date-fns/subMilliseconds.js | 24 + node_modules/date-fns/subMinutes.cjs | 33 + node_modules/date-fns/subMinutes.d.cts | 36 + node_modules/date-fns/subMinutes.d.ts | 36 + node_modules/date-fns/subMinutes.js | 34 + node_modules/date-fns/subMonths.cjs | 33 + node_modules/date-fns/subMonths.d.cts | 36 + node_modules/date-fns/subMonths.d.ts | 36 + node_modules/date-fns/subMonths.js | 34 + node_modules/date-fns/subQuarters.cjs | 33 + node_modules/date-fns/subQuarters.d.cts | 36 + node_modules/date-fns/subQuarters.d.ts | 36 + node_modules/date-fns/subQuarters.js | 34 + node_modules/date-fns/subSeconds.cjs | 28 + node_modules/date-fns/subSeconds.d.cts | 31 + node_modules/date-fns/subSeconds.d.ts | 31 + node_modules/date-fns/subSeconds.js | 29 + node_modules/date-fns/subWeeks.cjs | 33 + node_modules/date-fns/subWeeks.d.cts | 36 + node_modules/date-fns/subWeeks.d.ts | 36 + node_modules/date-fns/subWeeks.js | 34 + node_modules/date-fns/subYears.cjs | 33 + node_modules/date-fns/subYears.d.cts | 36 + node_modules/date-fns/subYears.d.ts | 36 + node_modules/date-fns/subYears.js | 34 + node_modules/date-fns/toDate.cjs | 46 + node_modules/date-fns/toDate.d.cts | 46 + node_modules/date-fns/toDate.d.ts | 46 + node_modules/date-fns/toDate.js | 47 + node_modules/date-fns/transpose.cjs | 52 + node_modules/date-fns/transpose.d.cts | 39 + node_modules/date-fns/transpose.d.ts | 39 + node_modules/date-fns/transpose.js | 53 + node_modules/date-fns/types.cjs | 1 + node_modules/date-fns/types.d.cts | 310 + node_modules/date-fns/types.d.ts | 310 + node_modules/date-fns/types.js | 1 + node_modules/date-fns/weeksToDays.cjs | 24 + node_modules/date-fns/weeksToDays.d.cts | 18 + node_modules/date-fns/weeksToDays.d.ts | 18 + node_modules/date-fns/weeksToDays.js | 25 + node_modules/date-fns/yearsToDays.cjs | 24 + node_modules/date-fns/yearsToDays.d.cts | 18 + node_modules/date-fns/yearsToDays.d.ts | 18 + node_modules/date-fns/yearsToDays.js | 25 + node_modules/date-fns/yearsToMonths.cjs | 24 + node_modules/date-fns/yearsToMonths.d.cts | 18 + node_modules/date-fns/yearsToMonths.d.ts | 18 + node_modules/date-fns/yearsToMonths.js | 25 + node_modules/date-fns/yearsToQuarters.cjs | 24 + node_modules/date-fns/yearsToQuarters.d.cts | 18 + node_modules/date-fns/yearsToQuarters.d.ts | 18 + node_modules/date-fns/yearsToQuarters.js | 25 + package-lock.json | 22 + package.json | 5 + 5142 files changed, 321276 insertions(+), 6 deletions(-) create mode 100644 components/.gitignore create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/date-fns/CHANGELOG.md create mode 100644 node_modules/date-fns/LICENSE.md create mode 100644 node_modules/date-fns/README.md create mode 100644 node_modules/date-fns/SECURITY.md create mode 100644 node_modules/date-fns/_lib/addLeadingZeros.cjs create mode 100644 node_modules/date-fns/_lib/addLeadingZeros.d.cts create mode 100644 node_modules/date-fns/_lib/addLeadingZeros.d.ts create mode 100644 node_modules/date-fns/_lib/addLeadingZeros.js create mode 100644 node_modules/date-fns/_lib/cdnPolyfill.cjs create mode 100644 node_modules/date-fns/_lib/cdnPolyfill.js create mode 100644 node_modules/date-fns/_lib/defaultLocale.cjs create mode 100644 node_modules/date-fns/_lib/defaultLocale.d.cts create mode 100644 node_modules/date-fns/_lib/defaultLocale.d.ts create mode 100644 node_modules/date-fns/_lib/defaultLocale.js create mode 100644 node_modules/date-fns/_lib/defaultOptions.cjs create mode 100644 node_modules/date-fns/_lib/defaultOptions.d.cts create mode 100644 node_modules/date-fns/_lib/defaultOptions.d.ts create mode 100644 node_modules/date-fns/_lib/defaultOptions.js create mode 100644 node_modules/date-fns/_lib/format/formatters.cjs create mode 100644 node_modules/date-fns/_lib/format/formatters.d.cts create mode 100644 node_modules/date-fns/_lib/format/formatters.d.ts create mode 100644 node_modules/date-fns/_lib/format/formatters.js create mode 100644 node_modules/date-fns/_lib/format/lightFormatters.cjs create mode 100644 node_modules/date-fns/_lib/format/lightFormatters.d.cts create mode 100644 node_modules/date-fns/_lib/format/lightFormatters.d.ts create mode 100644 node_modules/date-fns/_lib/format/lightFormatters.js create mode 100644 node_modules/date-fns/_lib/format/longFormatters.cjs create mode 100644 node_modules/date-fns/_lib/format/longFormatters.d.cts create mode 100644 node_modules/date-fns/_lib/format/longFormatters.d.ts create mode 100644 node_modules/date-fns/_lib/format/longFormatters.js create mode 100644 node_modules/date-fns/_lib/getRoundingMethod.cjs create mode 100644 node_modules/date-fns/_lib/getRoundingMethod.d.cts create mode 100644 node_modules/date-fns/_lib/getRoundingMethod.d.ts create mode 100644 node_modules/date-fns/_lib/getRoundingMethod.js create mode 100644 node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs create mode 100644 node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.cts create mode 100644 node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts create mode 100644 node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js create mode 100644 node_modules/date-fns/_lib/normalizeDates.cjs create mode 100644 node_modules/date-fns/_lib/normalizeDates.d.cts create mode 100644 node_modules/date-fns/_lib/normalizeDates.d.ts create mode 100644 node_modules/date-fns/_lib/normalizeDates.js create mode 100644 node_modules/date-fns/_lib/normalizeInterval.cjs create mode 100644 node_modules/date-fns/_lib/normalizeInterval.d.cts create mode 100644 node_modules/date-fns/_lib/normalizeInterval.d.ts create mode 100644 node_modules/date-fns/_lib/normalizeInterval.js create mode 100644 node_modules/date-fns/_lib/protectedTokens.cjs create mode 100644 node_modules/date-fns/_lib/protectedTokens.d.cts create mode 100644 node_modules/date-fns/_lib/protectedTokens.d.ts create mode 100644 node_modules/date-fns/_lib/protectedTokens.js create mode 100644 node_modules/date-fns/_lib/test.cjs create mode 100644 node_modules/date-fns/_lib/test.d.cts create mode 100644 node_modules/date-fns/_lib/test.d.ts create mode 100644 node_modules/date-fns/_lib/test.js create mode 100644 node_modules/date-fns/_lib/test/tzOffsetTransitions.cjs create mode 100644 node_modules/date-fns/_lib/test/tzOffsetTransitions.d.cts create mode 100644 node_modules/date-fns/_lib/test/tzOffsetTransitions.d.ts create mode 100644 node_modules/date-fns/_lib/test/tzOffsetTransitions.js create mode 100644 node_modules/date-fns/add.cjs create mode 100644 node_modules/date-fns/add.d.cts create mode 100644 node_modules/date-fns/add.d.ts create mode 100644 node_modules/date-fns/add.js create mode 100644 node_modules/date-fns/addBusinessDays.cjs create mode 100644 node_modules/date-fns/addBusinessDays.d.cts create mode 100644 node_modules/date-fns/addBusinessDays.d.ts create mode 100644 node_modules/date-fns/addBusinessDays.js create mode 100644 node_modules/date-fns/addDays.cjs create mode 100644 node_modules/date-fns/addDays.d.cts create mode 100644 node_modules/date-fns/addDays.d.ts create mode 100644 node_modules/date-fns/addDays.js create mode 100644 node_modules/date-fns/addHours.cjs create mode 100644 node_modules/date-fns/addHours.d.cts create mode 100644 node_modules/date-fns/addHours.d.ts create mode 100644 node_modules/date-fns/addHours.js create mode 100644 node_modules/date-fns/addISOWeekYears.cjs create mode 100644 node_modules/date-fns/addISOWeekYears.d.cts create mode 100644 node_modules/date-fns/addISOWeekYears.d.ts create mode 100644 node_modules/date-fns/addISOWeekYears.js create mode 100644 node_modules/date-fns/addMilliseconds.cjs create mode 100644 node_modules/date-fns/addMilliseconds.d.cts create mode 100644 node_modules/date-fns/addMilliseconds.d.ts create mode 100644 node_modules/date-fns/addMilliseconds.js create mode 100644 node_modules/date-fns/addMinutes.cjs create mode 100644 node_modules/date-fns/addMinutes.d.cts create mode 100644 node_modules/date-fns/addMinutes.d.ts create mode 100644 node_modules/date-fns/addMinutes.js create mode 100644 node_modules/date-fns/addMonths.cjs create mode 100644 node_modules/date-fns/addMonths.d.cts create mode 100644 node_modules/date-fns/addMonths.d.ts create mode 100644 node_modules/date-fns/addMonths.js create mode 100644 node_modules/date-fns/addQuarters.cjs create mode 100644 node_modules/date-fns/addQuarters.d.cts create mode 100644 node_modules/date-fns/addQuarters.d.ts create mode 100644 node_modules/date-fns/addQuarters.js create mode 100644 node_modules/date-fns/addSeconds.cjs create mode 100644 node_modules/date-fns/addSeconds.d.cts create mode 100644 node_modules/date-fns/addSeconds.d.ts create mode 100644 node_modules/date-fns/addSeconds.js create mode 100644 node_modules/date-fns/addWeeks.cjs create mode 100644 node_modules/date-fns/addWeeks.d.cts create mode 100644 node_modules/date-fns/addWeeks.d.ts create mode 100644 node_modules/date-fns/addWeeks.js create mode 100644 node_modules/date-fns/addYears.cjs create mode 100644 node_modules/date-fns/addYears.d.cts create mode 100644 node_modules/date-fns/addYears.d.ts create mode 100644 node_modules/date-fns/addYears.js create mode 100644 node_modules/date-fns/areIntervalsOverlapping.cjs create mode 100644 node_modules/date-fns/areIntervalsOverlapping.d.cts create mode 100644 node_modules/date-fns/areIntervalsOverlapping.d.ts create mode 100644 node_modules/date-fns/areIntervalsOverlapping.js create mode 100644 node_modules/date-fns/cdn.js create mode 100644 node_modules/date-fns/cdn.min.js create mode 100644 node_modules/date-fns/clamp.cjs create mode 100644 node_modules/date-fns/clamp.d.cts create mode 100644 node_modules/date-fns/clamp.d.ts create mode 100644 node_modules/date-fns/clamp.js create mode 100644 node_modules/date-fns/closestIndexTo.cjs create mode 100644 node_modules/date-fns/closestIndexTo.d.cts create mode 100644 node_modules/date-fns/closestIndexTo.d.ts create mode 100644 node_modules/date-fns/closestIndexTo.js create mode 100644 node_modules/date-fns/closestTo.cjs create mode 100644 node_modules/date-fns/closestTo.d.cts create mode 100644 node_modules/date-fns/closestTo.d.ts create mode 100644 node_modules/date-fns/closestTo.js create mode 100644 node_modules/date-fns/compareAsc.cjs create mode 100644 node_modules/date-fns/compareAsc.d.cts create mode 100644 node_modules/date-fns/compareAsc.d.ts create mode 100644 node_modules/date-fns/compareAsc.js create mode 100644 node_modules/date-fns/compareDesc.cjs create mode 100644 node_modules/date-fns/compareDesc.d.cts create mode 100644 node_modules/date-fns/compareDesc.d.ts create mode 100644 node_modules/date-fns/compareDesc.js create mode 100644 node_modules/date-fns/constants.cjs create mode 100644 node_modules/date-fns/constants.d.cts create mode 100644 node_modules/date-fns/constants.d.ts create mode 100644 node_modules/date-fns/constants.js create mode 100644 node_modules/date-fns/constructFrom.cjs create mode 100644 node_modules/date-fns/constructFrom.d.cts create mode 100644 node_modules/date-fns/constructFrom.d.ts create mode 100644 node_modules/date-fns/constructFrom.js create mode 100644 node_modules/date-fns/constructNow.cjs create mode 100644 node_modules/date-fns/constructNow.d.cts create mode 100644 node_modules/date-fns/constructNow.d.ts create mode 100644 node_modules/date-fns/constructNow.js create mode 100644 node_modules/date-fns/daysToWeeks.cjs create mode 100644 node_modules/date-fns/daysToWeeks.d.cts create mode 100644 node_modules/date-fns/daysToWeeks.d.ts create mode 100644 node_modules/date-fns/daysToWeeks.js create mode 100644 node_modules/date-fns/differenceInBusinessDays.cjs create mode 100644 node_modules/date-fns/differenceInBusinessDays.d.cts create mode 100644 node_modules/date-fns/differenceInBusinessDays.d.ts create mode 100644 node_modules/date-fns/differenceInBusinessDays.js create mode 100644 node_modules/date-fns/differenceInCalendarDays.cjs create mode 100644 node_modules/date-fns/differenceInCalendarDays.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarDays.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarDays.js create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears.cjs create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears.js create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks.cjs create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks.js create mode 100644 node_modules/date-fns/differenceInCalendarMonths.cjs create mode 100644 node_modules/date-fns/differenceInCalendarMonths.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarMonths.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarMonths.js create mode 100644 node_modules/date-fns/differenceInCalendarQuarters.cjs create mode 100644 node_modules/date-fns/differenceInCalendarQuarters.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarQuarters.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarQuarters.js create mode 100644 node_modules/date-fns/differenceInCalendarWeeks.cjs create mode 100644 node_modules/date-fns/differenceInCalendarWeeks.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarWeeks.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarWeeks.js create mode 100644 node_modules/date-fns/differenceInCalendarYears.cjs create mode 100644 node_modules/date-fns/differenceInCalendarYears.d.cts create mode 100644 node_modules/date-fns/differenceInCalendarYears.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarYears.js create mode 100644 node_modules/date-fns/differenceInDays.cjs create mode 100644 node_modules/date-fns/differenceInDays.d.cts create mode 100644 node_modules/date-fns/differenceInDays.d.ts create mode 100644 node_modules/date-fns/differenceInDays.js create mode 100644 node_modules/date-fns/differenceInHours.cjs create mode 100644 node_modules/date-fns/differenceInHours.d.cts create mode 100644 node_modules/date-fns/differenceInHours.d.ts create mode 100644 node_modules/date-fns/differenceInHours.js create mode 100644 node_modules/date-fns/differenceInISOWeekYears.cjs create mode 100644 node_modules/date-fns/differenceInISOWeekYears.d.cts create mode 100644 node_modules/date-fns/differenceInISOWeekYears.d.ts create mode 100644 node_modules/date-fns/differenceInISOWeekYears.js create mode 100644 node_modules/date-fns/differenceInMilliseconds.cjs create mode 100644 node_modules/date-fns/differenceInMilliseconds.d.cts create mode 100644 node_modules/date-fns/differenceInMilliseconds.d.ts create mode 100644 node_modules/date-fns/differenceInMilliseconds.js create mode 100644 node_modules/date-fns/differenceInMinutes.cjs create mode 100644 node_modules/date-fns/differenceInMinutes.d.cts create mode 100644 node_modules/date-fns/differenceInMinutes.d.ts create mode 100644 node_modules/date-fns/differenceInMinutes.js create mode 100644 node_modules/date-fns/differenceInMonths.cjs create mode 100644 node_modules/date-fns/differenceInMonths.d.cts create mode 100644 node_modules/date-fns/differenceInMonths.d.ts create mode 100644 node_modules/date-fns/differenceInMonths.js create mode 100644 node_modules/date-fns/differenceInQuarters.cjs create mode 100644 node_modules/date-fns/differenceInQuarters.d.cts create mode 100644 node_modules/date-fns/differenceInQuarters.d.ts create mode 100644 node_modules/date-fns/differenceInQuarters.js create mode 100644 node_modules/date-fns/differenceInSeconds.cjs create mode 100644 node_modules/date-fns/differenceInSeconds.d.cts create mode 100644 node_modules/date-fns/differenceInSeconds.d.ts create mode 100644 node_modules/date-fns/differenceInSeconds.js create mode 100644 node_modules/date-fns/differenceInWeeks.cjs create mode 100644 node_modules/date-fns/differenceInWeeks.d.cts create mode 100644 node_modules/date-fns/differenceInWeeks.d.ts create mode 100644 node_modules/date-fns/differenceInWeeks.js create mode 100644 node_modules/date-fns/differenceInYears.cjs create mode 100644 node_modules/date-fns/differenceInYears.d.cts create mode 100644 node_modules/date-fns/differenceInYears.d.ts create mode 100644 node_modules/date-fns/differenceInYears.js create mode 100644 node_modules/date-fns/docs/cdn.md create mode 100644 node_modules/date-fns/docs/config.d.ts create mode 100644 node_modules/date-fns/docs/config.js create mode 100644 node_modules/date-fns/docs/fp.md create mode 100644 node_modules/date-fns/docs/gettingStarted.md create mode 100644 node_modules/date-fns/docs/i18n.md create mode 100644 node_modules/date-fns/docs/i18nContributionGuide.md create mode 100644 node_modules/date-fns/docs/logo.svg create mode 100644 node_modules/date-fns/docs/logotype.svg create mode 100644 node_modules/date-fns/docs/release.md create mode 100644 node_modules/date-fns/docs/timeZones.md create mode 100644 node_modules/date-fns/docs/unicodeTokens.md create mode 100644 node_modules/date-fns/docs/webpack.md create mode 100644 node_modules/date-fns/eachDayOfInterval.cjs create mode 100644 node_modules/date-fns/eachDayOfInterval.d.cts create mode 100644 node_modules/date-fns/eachDayOfInterval.d.ts create mode 100644 node_modules/date-fns/eachDayOfInterval.js create mode 100644 node_modules/date-fns/eachHourOfInterval.cjs create mode 100644 node_modules/date-fns/eachHourOfInterval.d.cts create mode 100644 node_modules/date-fns/eachHourOfInterval.d.ts create mode 100644 node_modules/date-fns/eachHourOfInterval.js create mode 100644 node_modules/date-fns/eachMinuteOfInterval.cjs create mode 100644 node_modules/date-fns/eachMinuteOfInterval.d.cts create mode 100644 node_modules/date-fns/eachMinuteOfInterval.d.ts create mode 100644 node_modules/date-fns/eachMinuteOfInterval.js create mode 100644 node_modules/date-fns/eachMonthOfInterval.cjs create mode 100644 node_modules/date-fns/eachMonthOfInterval.d.cts create mode 100644 node_modules/date-fns/eachMonthOfInterval.d.ts create mode 100644 node_modules/date-fns/eachMonthOfInterval.js create mode 100644 node_modules/date-fns/eachQuarterOfInterval.cjs create mode 100644 node_modules/date-fns/eachQuarterOfInterval.d.cts create mode 100644 node_modules/date-fns/eachQuarterOfInterval.d.ts create mode 100644 node_modules/date-fns/eachQuarterOfInterval.js create mode 100644 node_modules/date-fns/eachWeekOfInterval.cjs create mode 100644 node_modules/date-fns/eachWeekOfInterval.d.cts create mode 100644 node_modules/date-fns/eachWeekOfInterval.d.ts create mode 100644 node_modules/date-fns/eachWeekOfInterval.js create mode 100644 node_modules/date-fns/eachWeekendOfInterval.cjs create mode 100644 node_modules/date-fns/eachWeekendOfInterval.d.cts create mode 100644 node_modules/date-fns/eachWeekendOfInterval.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfInterval.js create mode 100644 node_modules/date-fns/eachWeekendOfMonth.cjs create mode 100644 node_modules/date-fns/eachWeekendOfMonth.d.cts create mode 100644 node_modules/date-fns/eachWeekendOfMonth.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfMonth.js create mode 100644 node_modules/date-fns/eachWeekendOfYear.cjs create mode 100644 node_modules/date-fns/eachWeekendOfYear.d.cts create mode 100644 node_modules/date-fns/eachWeekendOfYear.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfYear.js create mode 100644 node_modules/date-fns/eachYearOfInterval.cjs create mode 100644 node_modules/date-fns/eachYearOfInterval.d.cts create mode 100644 node_modules/date-fns/eachYearOfInterval.d.ts create mode 100644 node_modules/date-fns/eachYearOfInterval.js create mode 100644 node_modules/date-fns/endOfDay.cjs create mode 100644 node_modules/date-fns/endOfDay.d.cts create mode 100644 node_modules/date-fns/endOfDay.d.ts create mode 100644 node_modules/date-fns/endOfDay.js create mode 100644 node_modules/date-fns/endOfDecade.cjs create mode 100644 node_modules/date-fns/endOfDecade.d.cts create mode 100644 node_modules/date-fns/endOfDecade.d.ts create mode 100644 node_modules/date-fns/endOfDecade.js create mode 100644 node_modules/date-fns/endOfHour.cjs create mode 100644 node_modules/date-fns/endOfHour.d.cts create mode 100644 node_modules/date-fns/endOfHour.d.ts create mode 100644 node_modules/date-fns/endOfHour.js create mode 100644 node_modules/date-fns/endOfISOWeek.cjs create mode 100644 node_modules/date-fns/endOfISOWeek.d.cts create mode 100644 node_modules/date-fns/endOfISOWeek.d.ts create mode 100644 node_modules/date-fns/endOfISOWeek.js create mode 100644 node_modules/date-fns/endOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/endOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/endOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/endOfISOWeekYear.js create mode 100644 node_modules/date-fns/endOfMinute.cjs create mode 100644 node_modules/date-fns/endOfMinute.d.cts create mode 100644 node_modules/date-fns/endOfMinute.d.ts create mode 100644 node_modules/date-fns/endOfMinute.js create mode 100644 node_modules/date-fns/endOfMonth.cjs create mode 100644 node_modules/date-fns/endOfMonth.d.cts create mode 100644 node_modules/date-fns/endOfMonth.d.ts create mode 100644 node_modules/date-fns/endOfMonth.js create mode 100644 node_modules/date-fns/endOfQuarter.cjs create mode 100644 node_modules/date-fns/endOfQuarter.d.cts create mode 100644 node_modules/date-fns/endOfQuarter.d.ts create mode 100644 node_modules/date-fns/endOfQuarter.js create mode 100644 node_modules/date-fns/endOfSecond.cjs create mode 100644 node_modules/date-fns/endOfSecond.d.cts create mode 100644 node_modules/date-fns/endOfSecond.d.ts create mode 100644 node_modules/date-fns/endOfSecond.js create mode 100644 node_modules/date-fns/endOfToday.cjs create mode 100644 node_modules/date-fns/endOfToday.d.cts create mode 100644 node_modules/date-fns/endOfToday.d.ts create mode 100644 node_modules/date-fns/endOfToday.js create mode 100644 node_modules/date-fns/endOfTomorrow.cjs create mode 100644 node_modules/date-fns/endOfTomorrow.d.cts create mode 100644 node_modules/date-fns/endOfTomorrow.d.ts create mode 100644 node_modules/date-fns/endOfTomorrow.js create mode 100644 node_modules/date-fns/endOfWeek.cjs create mode 100644 node_modules/date-fns/endOfWeek.d.cts create mode 100644 node_modules/date-fns/endOfWeek.d.ts create mode 100644 node_modules/date-fns/endOfWeek.js create mode 100644 node_modules/date-fns/endOfYear.cjs create mode 100644 node_modules/date-fns/endOfYear.d.cts create mode 100644 node_modules/date-fns/endOfYear.d.ts create mode 100644 node_modules/date-fns/endOfYear.js create mode 100644 node_modules/date-fns/endOfYesterday.cjs create mode 100644 node_modules/date-fns/endOfYesterday.d.cts create mode 100644 node_modules/date-fns/endOfYesterday.d.ts create mode 100644 node_modules/date-fns/endOfYesterday.js create mode 100644 node_modules/date-fns/format.cjs create mode 100644 node_modules/date-fns/format.d.cts create mode 100644 node_modules/date-fns/format.d.ts create mode 100644 node_modules/date-fns/format.js create mode 100644 node_modules/date-fns/formatDistance.cjs create mode 100644 node_modules/date-fns/formatDistance.d.cts create mode 100644 node_modules/date-fns/formatDistance.d.ts create mode 100644 node_modules/date-fns/formatDistance.js create mode 100644 node_modules/date-fns/formatDistanceStrict.cjs create mode 100644 node_modules/date-fns/formatDistanceStrict.d.cts create mode 100644 node_modules/date-fns/formatDistanceStrict.d.ts create mode 100644 node_modules/date-fns/formatDistanceStrict.js create mode 100644 node_modules/date-fns/formatDistanceToNow.cjs create mode 100644 node_modules/date-fns/formatDistanceToNow.d.cts create mode 100644 node_modules/date-fns/formatDistanceToNow.d.ts create mode 100644 node_modules/date-fns/formatDistanceToNow.js create mode 100644 node_modules/date-fns/formatDistanceToNowStrict.cjs create mode 100644 node_modules/date-fns/formatDistanceToNowStrict.d.cts create mode 100644 node_modules/date-fns/formatDistanceToNowStrict.d.ts create mode 100644 node_modules/date-fns/formatDistanceToNowStrict.js create mode 100644 node_modules/date-fns/formatDuration.cjs create mode 100644 node_modules/date-fns/formatDuration.d.cts create mode 100644 node_modules/date-fns/formatDuration.d.ts create mode 100644 node_modules/date-fns/formatDuration.js create mode 100644 node_modules/date-fns/formatISO.cjs create mode 100644 node_modules/date-fns/formatISO.d.cts create mode 100644 node_modules/date-fns/formatISO.d.ts create mode 100644 node_modules/date-fns/formatISO.js create mode 100644 node_modules/date-fns/formatISO9075.cjs create mode 100644 node_modules/date-fns/formatISO9075.d.cts create mode 100644 node_modules/date-fns/formatISO9075.d.ts create mode 100644 node_modules/date-fns/formatISO9075.js create mode 100644 node_modules/date-fns/formatISODuration.cjs create mode 100644 node_modules/date-fns/formatISODuration.d.cts create mode 100644 node_modules/date-fns/formatISODuration.d.ts create mode 100644 node_modules/date-fns/formatISODuration.js create mode 100644 node_modules/date-fns/formatRFC3339.cjs create mode 100644 node_modules/date-fns/formatRFC3339.d.cts create mode 100644 node_modules/date-fns/formatRFC3339.d.ts create mode 100644 node_modules/date-fns/formatRFC3339.js create mode 100644 node_modules/date-fns/formatRFC7231.cjs create mode 100644 node_modules/date-fns/formatRFC7231.d.cts create mode 100644 node_modules/date-fns/formatRFC7231.d.ts create mode 100644 node_modules/date-fns/formatRFC7231.js create mode 100644 node_modules/date-fns/formatRelative.cjs create mode 100644 node_modules/date-fns/formatRelative.d.cts create mode 100644 node_modules/date-fns/formatRelative.d.ts create mode 100644 node_modules/date-fns/formatRelative.js create mode 100644 node_modules/date-fns/fp.cjs create mode 100644 node_modules/date-fns/fp.d.cts create mode 100644 node_modules/date-fns/fp.d.ts create mode 100644 node_modules/date-fns/fp.js create mode 100644 node_modules/date-fns/fp/_lib/convertToFP.cjs create mode 100644 node_modules/date-fns/fp/_lib/convertToFP.d.cts create mode 100644 node_modules/date-fns/fp/_lib/convertToFP.d.ts create mode 100644 node_modules/date-fns/fp/_lib/convertToFP.js create mode 100644 node_modules/date-fns/fp/add.cjs create mode 100644 node_modules/date-fns/fp/add.d.cts create mode 100644 node_modules/date-fns/fp/add.d.ts create mode 100644 node_modules/date-fns/fp/add.js create mode 100644 node_modules/date-fns/fp/addBusinessDays.cjs create mode 100644 node_modules/date-fns/fp/addBusinessDays.d.cts create mode 100644 node_modules/date-fns/fp/addBusinessDays.d.ts create mode 100644 node_modules/date-fns/fp/addBusinessDays.js create mode 100644 node_modules/date-fns/fp/addBusinessDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addBusinessDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addBusinessDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addBusinessDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/addDays.cjs create mode 100644 node_modules/date-fns/fp/addDays.d.cts create mode 100644 node_modules/date-fns/fp/addDays.d.ts create mode 100644 node_modules/date-fns/fp/addDays.js create mode 100644 node_modules/date-fns/fp/addDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/addHours.cjs create mode 100644 node_modules/date-fns/fp/addHours.d.cts create mode 100644 node_modules/date-fns/fp/addHours.d.ts create mode 100644 node_modules/date-fns/fp/addHours.js create mode 100644 node_modules/date-fns/fp/addHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/addISOWeekYears.cjs create mode 100644 node_modules/date-fns/fp/addISOWeekYears.d.cts create mode 100644 node_modules/date-fns/fp/addISOWeekYears.d.ts create mode 100644 node_modules/date-fns/fp/addISOWeekYears.js create mode 100644 node_modules/date-fns/fp/addISOWeekYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addISOWeekYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/addMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/addMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/addMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/addMilliseconds.js create mode 100644 node_modules/date-fns/fp/addMillisecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addMillisecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addMillisecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addMillisecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/addMinutes.cjs create mode 100644 node_modules/date-fns/fp/addMinutes.d.cts create mode 100644 node_modules/date-fns/fp/addMinutes.d.ts create mode 100644 node_modules/date-fns/fp/addMinutes.js create mode 100644 node_modules/date-fns/fp/addMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/addMonths.cjs create mode 100644 node_modules/date-fns/fp/addMonths.d.cts create mode 100644 node_modules/date-fns/fp/addMonths.d.ts create mode 100644 node_modules/date-fns/fp/addMonths.js create mode 100644 node_modules/date-fns/fp/addMonthsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addMonthsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addMonthsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addMonthsWithOptions.js create mode 100644 node_modules/date-fns/fp/addQuarters.cjs create mode 100644 node_modules/date-fns/fp/addQuarters.d.cts create mode 100644 node_modules/date-fns/fp/addQuarters.d.ts create mode 100644 node_modules/date-fns/fp/addQuarters.js create mode 100644 node_modules/date-fns/fp/addQuartersWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addQuartersWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addQuartersWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addQuartersWithOptions.js create mode 100644 node_modules/date-fns/fp/addSeconds.cjs create mode 100644 node_modules/date-fns/fp/addSeconds.d.cts create mode 100644 node_modules/date-fns/fp/addSeconds.d.ts create mode 100644 node_modules/date-fns/fp/addSeconds.js create mode 100644 node_modules/date-fns/fp/addSecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addSecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addSecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addSecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/addWeeks.cjs create mode 100644 node_modules/date-fns/fp/addWeeks.d.cts create mode 100644 node_modules/date-fns/fp/addWeeks.d.ts create mode 100644 node_modules/date-fns/fp/addWeeks.js create mode 100644 node_modules/date-fns/fp/addWeeksWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addWeeksWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addWeeksWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addWeeksWithOptions.js create mode 100644 node_modules/date-fns/fp/addWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addWithOptions.js create mode 100644 node_modules/date-fns/fp/addYears.cjs create mode 100644 node_modules/date-fns/fp/addYears.d.cts create mode 100644 node_modules/date-fns/fp/addYears.d.ts create mode 100644 node_modules/date-fns/fp/addYears.js create mode 100644 node_modules/date-fns/fp/addYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/addYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/addYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/addYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping.cjs create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping.d.cts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping.d.ts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping.js create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.cjs create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.js create mode 100644 node_modules/date-fns/fp/cdn.js create mode 100644 node_modules/date-fns/fp/cdn.min.js create mode 100644 node_modules/date-fns/fp/clamp.cjs create mode 100644 node_modules/date-fns/fp/clamp.d.cts create mode 100644 node_modules/date-fns/fp/clamp.d.ts create mode 100644 node_modules/date-fns/fp/clamp.js create mode 100644 node_modules/date-fns/fp/clampWithOptions.cjs create mode 100644 node_modules/date-fns/fp/clampWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/clampWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/clampWithOptions.js create mode 100644 node_modules/date-fns/fp/closestIndexTo.cjs create mode 100644 node_modules/date-fns/fp/closestIndexTo.d.cts create mode 100644 node_modules/date-fns/fp/closestIndexTo.d.ts create mode 100644 node_modules/date-fns/fp/closestIndexTo.js create mode 100644 node_modules/date-fns/fp/closestTo.cjs create mode 100644 node_modules/date-fns/fp/closestTo.d.cts create mode 100644 node_modules/date-fns/fp/closestTo.d.ts create mode 100644 node_modules/date-fns/fp/closestTo.js create mode 100644 node_modules/date-fns/fp/closestToWithOptions.cjs create mode 100644 node_modules/date-fns/fp/closestToWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/closestToWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/closestToWithOptions.js create mode 100644 node_modules/date-fns/fp/compareAsc.cjs create mode 100644 node_modules/date-fns/fp/compareAsc.d.cts create mode 100644 node_modules/date-fns/fp/compareAsc.d.ts create mode 100644 node_modules/date-fns/fp/compareAsc.js create mode 100644 node_modules/date-fns/fp/compareDesc.cjs create mode 100644 node_modules/date-fns/fp/compareDesc.d.cts create mode 100644 node_modules/date-fns/fp/compareDesc.d.ts create mode 100644 node_modules/date-fns/fp/compareDesc.js create mode 100644 node_modules/date-fns/fp/constructFrom.cjs create mode 100644 node_modules/date-fns/fp/constructFrom.d.cts create mode 100644 node_modules/date-fns/fp/constructFrom.d.ts create mode 100644 node_modules/date-fns/fp/constructFrom.js create mode 100644 node_modules/date-fns/fp/daysToWeeks.cjs create mode 100644 node_modules/date-fns/fp/daysToWeeks.d.cts create mode 100644 node_modules/date-fns/fp/daysToWeeks.d.ts create mode 100644 node_modules/date-fns/fp/daysToWeeks.js create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays.cjs create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays.d.cts create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays.d.ts create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays.js create mode 100644 node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInDays.cjs create mode 100644 node_modules/date-fns/fp/differenceInDays.d.cts create mode 100644 node_modules/date-fns/fp/differenceInDays.d.ts create mode 100644 node_modules/date-fns/fp/differenceInDays.js create mode 100644 node_modules/date-fns/fp/differenceInDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInHours.cjs create mode 100644 node_modules/date-fns/fp/differenceInHours.d.cts create mode 100644 node_modules/date-fns/fp/differenceInHours.d.ts create mode 100644 node_modules/date-fns/fp/differenceInHours.js create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears.cjs create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears.d.cts create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears.d.ts create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears.js create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds.js create mode 100644 node_modules/date-fns/fp/differenceInMinutes.cjs create mode 100644 node_modules/date-fns/fp/differenceInMinutes.d.cts create mode 100644 node_modules/date-fns/fp/differenceInMinutes.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMinutes.js create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInMonths.cjs create mode 100644 node_modules/date-fns/fp/differenceInMonths.d.cts create mode 100644 node_modules/date-fns/fp/differenceInMonths.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMonths.js create mode 100644 node_modules/date-fns/fp/differenceInMonthsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInMonthsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInMonthsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMonthsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInQuarters.cjs create mode 100644 node_modules/date-fns/fp/differenceInQuarters.d.cts create mode 100644 node_modules/date-fns/fp/differenceInQuarters.d.ts create mode 100644 node_modules/date-fns/fp/differenceInQuarters.js create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInSeconds.cjs create mode 100644 node_modules/date-fns/fp/differenceInSeconds.d.cts create mode 100644 node_modules/date-fns/fp/differenceInSeconds.d.ts create mode 100644 node_modules/date-fns/fp/differenceInSeconds.js create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInWeeks.cjs create mode 100644 node_modules/date-fns/fp/differenceInWeeks.d.cts create mode 100644 node_modules/date-fns/fp/differenceInWeeks.d.ts create mode 100644 node_modules/date-fns/fp/differenceInWeeks.js create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions.js create mode 100644 node_modules/date-fns/fp/differenceInYears.cjs create mode 100644 node_modules/date-fns/fp/differenceInYears.d.cts create mode 100644 node_modules/date-fns/fp/differenceInYears.d.ts create mode 100644 node_modules/date-fns/fp/differenceInYears.js create mode 100644 node_modules/date-fns/fp/differenceInYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/differenceInYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/differenceInYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/differenceInYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/eachDayOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachDayOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachDayOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachDayOfInterval.js create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachHourOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachHourOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachHourOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachHourOfInterval.js create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval.js create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval.js create mode 100644 node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval.js create mode 100644 node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval.js create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/eachYearOfInterval.cjs create mode 100644 node_modules/date-fns/fp/eachYearOfInterval.d.cts create mode 100644 node_modules/date-fns/fp/eachYearOfInterval.d.ts create mode 100644 node_modules/date-fns/fp/eachYearOfInterval.js create mode 100644 node_modules/date-fns/fp/eachYearOfIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/eachYearOfIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfDay.cjs create mode 100644 node_modules/date-fns/fp/endOfDay.d.cts create mode 100644 node_modules/date-fns/fp/endOfDay.d.ts create mode 100644 node_modules/date-fns/fp/endOfDay.js create mode 100644 node_modules/date-fns/fp/endOfDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfDayWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfDecade.cjs create mode 100644 node_modules/date-fns/fp/endOfDecade.d.cts create mode 100644 node_modules/date-fns/fp/endOfDecade.d.ts create mode 100644 node_modules/date-fns/fp/endOfDecade.js create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfHour.cjs create mode 100644 node_modules/date-fns/fp/endOfHour.d.cts create mode 100644 node_modules/date-fns/fp/endOfHour.d.ts create mode 100644 node_modules/date-fns/fp/endOfHour.js create mode 100644 node_modules/date-fns/fp/endOfHourWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfHourWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfHourWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfHourWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfISOWeek.cjs create mode 100644 node_modules/date-fns/fp/endOfISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/endOfISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeek.js create mode 100644 node_modules/date-fns/fp/endOfISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear.js create mode 100644 node_modules/date-fns/fp/endOfISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfMinute.cjs create mode 100644 node_modules/date-fns/fp/endOfMinute.d.cts create mode 100644 node_modules/date-fns/fp/endOfMinute.d.ts create mode 100644 node_modules/date-fns/fp/endOfMinute.js create mode 100644 node_modules/date-fns/fp/endOfMinuteWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfMinuteWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfMinuteWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfMinuteWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfMonth.cjs create mode 100644 node_modules/date-fns/fp/endOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/endOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/endOfMonth.js create mode 100644 node_modules/date-fns/fp/endOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfQuarter.cjs create mode 100644 node_modules/date-fns/fp/endOfQuarter.d.cts create mode 100644 node_modules/date-fns/fp/endOfQuarter.d.ts create mode 100644 node_modules/date-fns/fp/endOfQuarter.js create mode 100644 node_modules/date-fns/fp/endOfQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfSecond.cjs create mode 100644 node_modules/date-fns/fp/endOfSecond.d.cts create mode 100644 node_modules/date-fns/fp/endOfSecond.d.ts create mode 100644 node_modules/date-fns/fp/endOfSecond.js create mode 100644 node_modules/date-fns/fp/endOfSecondWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfSecondWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfSecondWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfSecondWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfWeek.cjs create mode 100644 node_modules/date-fns/fp/endOfWeek.d.cts create mode 100644 node_modules/date-fns/fp/endOfWeek.d.ts create mode 100644 node_modules/date-fns/fp/endOfWeek.js create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/endOfYear.cjs create mode 100644 node_modules/date-fns/fp/endOfYear.d.cts create mode 100644 node_modules/date-fns/fp/endOfYear.d.ts create mode 100644 node_modules/date-fns/fp/endOfYear.js create mode 100644 node_modules/date-fns/fp/endOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/endOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/endOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/endOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/format.cjs create mode 100644 node_modules/date-fns/fp/format.d.cts create mode 100644 node_modules/date-fns/fp/format.d.ts create mode 100644 node_modules/date-fns/fp/format.js create mode 100644 node_modules/date-fns/fp/formatDistance.cjs create mode 100644 node_modules/date-fns/fp/formatDistance.d.cts create mode 100644 node_modules/date-fns/fp/formatDistance.d.ts create mode 100644 node_modules/date-fns/fp/formatDistance.js create mode 100644 node_modules/date-fns/fp/formatDistanceStrict.cjs create mode 100644 node_modules/date-fns/fp/formatDistanceStrict.d.cts create mode 100644 node_modules/date-fns/fp/formatDistanceStrict.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceStrict.js create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions.js create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions.js create mode 100644 node_modules/date-fns/fp/formatDuration.cjs create mode 100644 node_modules/date-fns/fp/formatDuration.d.cts create mode 100644 node_modules/date-fns/fp/formatDuration.d.ts create mode 100644 node_modules/date-fns/fp/formatDuration.js create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions.js create mode 100644 node_modules/date-fns/fp/formatISO.cjs create mode 100644 node_modules/date-fns/fp/formatISO.d.cts create mode 100644 node_modules/date-fns/fp/formatISO.d.ts create mode 100644 node_modules/date-fns/fp/formatISO.js create mode 100644 node_modules/date-fns/fp/formatISO9075.cjs create mode 100644 node_modules/date-fns/fp/formatISO9075.d.cts create mode 100644 node_modules/date-fns/fp/formatISO9075.d.ts create mode 100644 node_modules/date-fns/fp/formatISO9075.js create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions.js create mode 100644 node_modules/date-fns/fp/formatISODuration.cjs create mode 100644 node_modules/date-fns/fp/formatISODuration.d.cts create mode 100644 node_modules/date-fns/fp/formatISODuration.d.ts create mode 100644 node_modules/date-fns/fp/formatISODuration.js create mode 100644 node_modules/date-fns/fp/formatISOWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatISOWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatISOWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatISOWithOptions.js create mode 100644 node_modules/date-fns/fp/formatRFC3339.cjs create mode 100644 node_modules/date-fns/fp/formatRFC3339.d.cts create mode 100644 node_modules/date-fns/fp/formatRFC3339.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC3339.js create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions.js create mode 100644 node_modules/date-fns/fp/formatRFC7231.cjs create mode 100644 node_modules/date-fns/fp/formatRFC7231.d.cts create mode 100644 node_modules/date-fns/fp/formatRFC7231.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC7231.js create mode 100644 node_modules/date-fns/fp/formatRelative.cjs create mode 100644 node_modules/date-fns/fp/formatRelative.d.cts create mode 100644 node_modules/date-fns/fp/formatRelative.d.ts create mode 100644 node_modules/date-fns/fp/formatRelative.js create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions.js create mode 100644 node_modules/date-fns/fp/formatWithOptions.cjs create mode 100644 node_modules/date-fns/fp/formatWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/formatWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/formatWithOptions.js create mode 100644 node_modules/date-fns/fp/fromUnixTime.cjs create mode 100644 node_modules/date-fns/fp/fromUnixTime.d.cts create mode 100644 node_modules/date-fns/fp/fromUnixTime.d.ts create mode 100644 node_modules/date-fns/fp/fromUnixTime.js create mode 100644 node_modules/date-fns/fp/fromUnixTimeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/fromUnixTimeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/fromUnixTimeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/fromUnixTimeWithOptions.js create mode 100644 node_modules/date-fns/fp/getDate.cjs create mode 100644 node_modules/date-fns/fp/getDate.d.cts create mode 100644 node_modules/date-fns/fp/getDate.d.ts create mode 100644 node_modules/date-fns/fp/getDate.js create mode 100644 node_modules/date-fns/fp/getDateWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDateWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDateWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDateWithOptions.js create mode 100644 node_modules/date-fns/fp/getDay.cjs create mode 100644 node_modules/date-fns/fp/getDay.d.cts create mode 100644 node_modules/date-fns/fp/getDay.d.ts create mode 100644 node_modules/date-fns/fp/getDay.js create mode 100644 node_modules/date-fns/fp/getDayOfYear.cjs create mode 100644 node_modules/date-fns/fp/getDayOfYear.d.cts create mode 100644 node_modules/date-fns/fp/getDayOfYear.d.ts create mode 100644 node_modules/date-fns/fp/getDayOfYear.js create mode 100644 node_modules/date-fns/fp/getDayOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDayOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDayOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDayOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/getDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDayWithOptions.js create mode 100644 node_modules/date-fns/fp/getDaysInMonth.cjs create mode 100644 node_modules/date-fns/fp/getDaysInMonth.d.cts create mode 100644 node_modules/date-fns/fp/getDaysInMonth.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInMonth.js create mode 100644 node_modules/date-fns/fp/getDaysInMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDaysInMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDaysInMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/getDaysInYear.cjs create mode 100644 node_modules/date-fns/fp/getDaysInYear.d.cts create mode 100644 node_modules/date-fns/fp/getDaysInYear.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInYear.js create mode 100644 node_modules/date-fns/fp/getDaysInYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDaysInYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDaysInYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInYearWithOptions.js create mode 100644 node_modules/date-fns/fp/getDecade.cjs create mode 100644 node_modules/date-fns/fp/getDecade.d.cts create mode 100644 node_modules/date-fns/fp/getDecade.d.ts create mode 100644 node_modules/date-fns/fp/getDecade.js create mode 100644 node_modules/date-fns/fp/getDecadeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getDecadeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getDecadeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getDecadeWithOptions.js create mode 100644 node_modules/date-fns/fp/getHours.cjs create mode 100644 node_modules/date-fns/fp/getHours.d.cts create mode 100644 node_modules/date-fns/fp/getHours.d.ts create mode 100644 node_modules/date-fns/fp/getHours.js create mode 100644 node_modules/date-fns/fp/getHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/getISODay.cjs create mode 100644 node_modules/date-fns/fp/getISODay.d.cts create mode 100644 node_modules/date-fns/fp/getISODay.d.ts create mode 100644 node_modules/date-fns/fp/getISODay.js create mode 100644 node_modules/date-fns/fp/getISODayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getISODayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getISODayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getISODayWithOptions.js create mode 100644 node_modules/date-fns/fp/getISOWeek.cjs create mode 100644 node_modules/date-fns/fp/getISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeek.js create mode 100644 node_modules/date-fns/fp/getISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/getISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/getISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeekYear.js create mode 100644 node_modules/date-fns/fp/getISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear.cjs create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear.js create mode 100644 node_modules/date-fns/fp/getISOWeeksInYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeeksInYearWithOptions.js create mode 100644 node_modules/date-fns/fp/getMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/getMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/getMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/getMilliseconds.js create mode 100644 node_modules/date-fns/fp/getMinutes.cjs create mode 100644 node_modules/date-fns/fp/getMinutes.d.cts create mode 100644 node_modules/date-fns/fp/getMinutes.d.ts create mode 100644 node_modules/date-fns/fp/getMinutes.js create mode 100644 node_modules/date-fns/fp/getMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/getMonth.cjs create mode 100644 node_modules/date-fns/fp/getMonth.d.cts create mode 100644 node_modules/date-fns/fp/getMonth.d.ts create mode 100644 node_modules/date-fns/fp/getMonth.js create mode 100644 node_modules/date-fns/fp/getMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals.cjs create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.cts create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.ts create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals.js create mode 100644 node_modules/date-fns/fp/getQuarter.cjs create mode 100644 node_modules/date-fns/fp/getQuarter.d.cts create mode 100644 node_modules/date-fns/fp/getQuarter.d.ts create mode 100644 node_modules/date-fns/fp/getQuarter.js create mode 100644 node_modules/date-fns/fp/getQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/getSeconds.cjs create mode 100644 node_modules/date-fns/fp/getSeconds.d.cts create mode 100644 node_modules/date-fns/fp/getSeconds.d.ts create mode 100644 node_modules/date-fns/fp/getSeconds.js create mode 100644 node_modules/date-fns/fp/getTime.cjs create mode 100644 node_modules/date-fns/fp/getTime.d.cts create mode 100644 node_modules/date-fns/fp/getTime.d.ts create mode 100644 node_modules/date-fns/fp/getTime.js create mode 100644 node_modules/date-fns/fp/getUnixTime.cjs create mode 100644 node_modules/date-fns/fp/getUnixTime.d.cts create mode 100644 node_modules/date-fns/fp/getUnixTime.d.ts create mode 100644 node_modules/date-fns/fp/getUnixTime.js create mode 100644 node_modules/date-fns/fp/getWeek.cjs create mode 100644 node_modules/date-fns/fp/getWeek.d.cts create mode 100644 node_modules/date-fns/fp/getWeek.d.ts create mode 100644 node_modules/date-fns/fp/getWeek.js create mode 100644 node_modules/date-fns/fp/getWeekOfMonth.cjs create mode 100644 node_modules/date-fns/fp/getWeekOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/getWeekOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/getWeekOfMonth.js create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/getWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/getWeekYear.cjs create mode 100644 node_modules/date-fns/fp/getWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/getWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/getWeekYear.js create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/getWeeksInMonth.cjs create mode 100644 node_modules/date-fns/fp/getWeeksInMonth.d.cts create mode 100644 node_modules/date-fns/fp/getWeeksInMonth.d.ts create mode 100644 node_modules/date-fns/fp/getWeeksInMonth.js create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/getYear.cjs create mode 100644 node_modules/date-fns/fp/getYear.d.cts create mode 100644 node_modules/date-fns/fp/getYear.d.ts create mode 100644 node_modules/date-fns/fp/getYear.js create mode 100644 node_modules/date-fns/fp/getYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/getYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/getYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/getYearWithOptions.js create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds.js create mode 100644 node_modules/date-fns/fp/hoursToMinutes.cjs create mode 100644 node_modules/date-fns/fp/hoursToMinutes.d.cts create mode 100644 node_modules/date-fns/fp/hoursToMinutes.d.ts create mode 100644 node_modules/date-fns/fp/hoursToMinutes.js create mode 100644 node_modules/date-fns/fp/hoursToSeconds.cjs create mode 100644 node_modules/date-fns/fp/hoursToSeconds.d.cts create mode 100644 node_modules/date-fns/fp/hoursToSeconds.d.ts create mode 100644 node_modules/date-fns/fp/hoursToSeconds.js create mode 100644 node_modules/date-fns/fp/interval.cjs create mode 100644 node_modules/date-fns/fp/interval.d.cts create mode 100644 node_modules/date-fns/fp/interval.d.ts create mode 100644 node_modules/date-fns/fp/interval.js create mode 100644 node_modules/date-fns/fp/intervalToDuration.cjs create mode 100644 node_modules/date-fns/fp/intervalToDuration.d.cts create mode 100644 node_modules/date-fns/fp/intervalToDuration.d.ts create mode 100644 node_modules/date-fns/fp/intervalToDuration.js create mode 100644 node_modules/date-fns/fp/intervalToDurationWithOptions.cjs create mode 100644 node_modules/date-fns/fp/intervalToDurationWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/intervalToDurationWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/intervalToDurationWithOptions.js create mode 100644 node_modules/date-fns/fp/intervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/intervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/intervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/intervalWithOptions.js create mode 100644 node_modules/date-fns/fp/intlFormat.cjs create mode 100644 node_modules/date-fns/fp/intlFormat.d.cts create mode 100644 node_modules/date-fns/fp/intlFormat.d.ts create mode 100644 node_modules/date-fns/fp/intlFormat.js create mode 100644 node_modules/date-fns/fp/intlFormatDistance.cjs create mode 100644 node_modules/date-fns/fp/intlFormatDistance.d.cts create mode 100644 node_modules/date-fns/fp/intlFormatDistance.d.ts create mode 100644 node_modules/date-fns/fp/intlFormatDistance.js create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions.cjs create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions.js create mode 100644 node_modules/date-fns/fp/isAfter.cjs create mode 100644 node_modules/date-fns/fp/isAfter.d.cts create mode 100644 node_modules/date-fns/fp/isAfter.d.ts create mode 100644 node_modules/date-fns/fp/isAfter.js create mode 100644 node_modules/date-fns/fp/isBefore.cjs create mode 100644 node_modules/date-fns/fp/isBefore.d.cts create mode 100644 node_modules/date-fns/fp/isBefore.d.ts create mode 100644 node_modules/date-fns/fp/isBefore.js create mode 100644 node_modules/date-fns/fp/isDate.cjs create mode 100644 node_modules/date-fns/fp/isDate.d.cts create mode 100644 node_modules/date-fns/fp/isDate.d.ts create mode 100644 node_modules/date-fns/fp/isDate.js create mode 100644 node_modules/date-fns/fp/isEqual.cjs create mode 100644 node_modules/date-fns/fp/isEqual.d.cts create mode 100644 node_modules/date-fns/fp/isEqual.d.ts create mode 100644 node_modules/date-fns/fp/isEqual.js create mode 100644 node_modules/date-fns/fp/isExists.cjs create mode 100644 node_modules/date-fns/fp/isExists.d.cts create mode 100644 node_modules/date-fns/fp/isExists.d.ts create mode 100644 node_modules/date-fns/fp/isExists.js create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth.cjs create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth.js create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/isFriday.cjs create mode 100644 node_modules/date-fns/fp/isFriday.d.cts create mode 100644 node_modules/date-fns/fp/isFriday.d.ts create mode 100644 node_modules/date-fns/fp/isFriday.js create mode 100644 node_modules/date-fns/fp/isFridayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isFridayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isFridayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isFridayWithOptions.js create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth.cjs create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth.js create mode 100644 node_modules/date-fns/fp/isLastDayOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isLastDayOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/isLeapYear.cjs create mode 100644 node_modules/date-fns/fp/isLeapYear.d.cts create mode 100644 node_modules/date-fns/fp/isLeapYear.d.ts create mode 100644 node_modules/date-fns/fp/isLeapYear.js create mode 100644 node_modules/date-fns/fp/isLeapYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isLeapYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isLeapYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isLeapYearWithOptions.js create mode 100644 node_modules/date-fns/fp/isMatch.cjs create mode 100644 node_modules/date-fns/fp/isMatch.d.cts create mode 100644 node_modules/date-fns/fp/isMatch.d.ts create mode 100644 node_modules/date-fns/fp/isMatch.js create mode 100644 node_modules/date-fns/fp/isMatchWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isMatchWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isMatchWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isMatchWithOptions.js create mode 100644 node_modules/date-fns/fp/isMonday.cjs create mode 100644 node_modules/date-fns/fp/isMonday.d.cts create mode 100644 node_modules/date-fns/fp/isMonday.d.ts create mode 100644 node_modules/date-fns/fp/isMonday.js create mode 100644 node_modules/date-fns/fp/isMondayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isMondayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isMondayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isMondayWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameDay.cjs create mode 100644 node_modules/date-fns/fp/isSameDay.d.cts create mode 100644 node_modules/date-fns/fp/isSameDay.d.ts create mode 100644 node_modules/date-fns/fp/isSameDay.js create mode 100644 node_modules/date-fns/fp/isSameDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameDayWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameHour.cjs create mode 100644 node_modules/date-fns/fp/isSameHour.d.cts create mode 100644 node_modules/date-fns/fp/isSameHour.d.ts create mode 100644 node_modules/date-fns/fp/isSameHour.js create mode 100644 node_modules/date-fns/fp/isSameHourWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameHourWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameHourWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameHourWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameISOWeek.cjs create mode 100644 node_modules/date-fns/fp/isSameISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/isSameISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeek.js create mode 100644 node_modules/date-fns/fp/isSameISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear.js create mode 100644 node_modules/date-fns/fp/isSameISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameMinute.cjs create mode 100644 node_modules/date-fns/fp/isSameMinute.d.cts create mode 100644 node_modules/date-fns/fp/isSameMinute.d.ts create mode 100644 node_modules/date-fns/fp/isSameMinute.js create mode 100644 node_modules/date-fns/fp/isSameMonth.cjs create mode 100644 node_modules/date-fns/fp/isSameMonth.d.cts create mode 100644 node_modules/date-fns/fp/isSameMonth.d.ts create mode 100644 node_modules/date-fns/fp/isSameMonth.js create mode 100644 node_modules/date-fns/fp/isSameMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameQuarter.cjs create mode 100644 node_modules/date-fns/fp/isSameQuarter.d.cts create mode 100644 node_modules/date-fns/fp/isSameQuarter.d.ts create mode 100644 node_modules/date-fns/fp/isSameQuarter.js create mode 100644 node_modules/date-fns/fp/isSameQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameSecond.cjs create mode 100644 node_modules/date-fns/fp/isSameSecond.d.cts create mode 100644 node_modules/date-fns/fp/isSameSecond.d.ts create mode 100644 node_modules/date-fns/fp/isSameSecond.js create mode 100644 node_modules/date-fns/fp/isSameWeek.cjs create mode 100644 node_modules/date-fns/fp/isSameWeek.d.cts create mode 100644 node_modules/date-fns/fp/isSameWeek.d.ts create mode 100644 node_modules/date-fns/fp/isSameWeek.js create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/isSameYear.cjs create mode 100644 node_modules/date-fns/fp/isSameYear.d.cts create mode 100644 node_modules/date-fns/fp/isSameYear.d.ts create mode 100644 node_modules/date-fns/fp/isSameYear.js create mode 100644 node_modules/date-fns/fp/isSameYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSameYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSameYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSameYearWithOptions.js create mode 100644 node_modules/date-fns/fp/isSaturday.cjs create mode 100644 node_modules/date-fns/fp/isSaturday.d.cts create mode 100644 node_modules/date-fns/fp/isSaturday.d.ts create mode 100644 node_modules/date-fns/fp/isSaturday.js create mode 100644 node_modules/date-fns/fp/isSaturdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSaturdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSaturdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSaturdayWithOptions.js create mode 100644 node_modules/date-fns/fp/isSunday.cjs create mode 100644 node_modules/date-fns/fp/isSunday.d.cts create mode 100644 node_modules/date-fns/fp/isSunday.d.ts create mode 100644 node_modules/date-fns/fp/isSunday.js create mode 100644 node_modules/date-fns/fp/isSundayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isSundayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isSundayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isSundayWithOptions.js create mode 100644 node_modules/date-fns/fp/isThursday.cjs create mode 100644 node_modules/date-fns/fp/isThursday.d.cts create mode 100644 node_modules/date-fns/fp/isThursday.d.ts create mode 100644 node_modules/date-fns/fp/isThursday.js create mode 100644 node_modules/date-fns/fp/isThursdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isThursdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isThursdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isThursdayWithOptions.js create mode 100644 node_modules/date-fns/fp/isTuesday.cjs create mode 100644 node_modules/date-fns/fp/isTuesday.d.cts create mode 100644 node_modules/date-fns/fp/isTuesday.d.ts create mode 100644 node_modules/date-fns/fp/isTuesday.js create mode 100644 node_modules/date-fns/fp/isTuesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isTuesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isTuesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isTuesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/isValid.cjs create mode 100644 node_modules/date-fns/fp/isValid.d.cts create mode 100644 node_modules/date-fns/fp/isValid.d.ts create mode 100644 node_modules/date-fns/fp/isValid.js create mode 100644 node_modules/date-fns/fp/isWednesday.cjs create mode 100644 node_modules/date-fns/fp/isWednesday.d.cts create mode 100644 node_modules/date-fns/fp/isWednesday.d.ts create mode 100644 node_modules/date-fns/fp/isWednesday.js create mode 100644 node_modules/date-fns/fp/isWednesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isWednesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isWednesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isWednesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/isWeekend.cjs create mode 100644 node_modules/date-fns/fp/isWeekend.d.cts create mode 100644 node_modules/date-fns/fp/isWeekend.d.ts create mode 100644 node_modules/date-fns/fp/isWeekend.js create mode 100644 node_modules/date-fns/fp/isWeekendWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isWeekendWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isWeekendWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isWeekendWithOptions.js create mode 100644 node_modules/date-fns/fp/isWithinInterval.cjs create mode 100644 node_modules/date-fns/fp/isWithinInterval.d.cts create mode 100644 node_modules/date-fns/fp/isWithinInterval.d.ts create mode 100644 node_modules/date-fns/fp/isWithinInterval.js create mode 100644 node_modules/date-fns/fp/isWithinIntervalWithOptions.cjs create mode 100644 node_modules/date-fns/fp/isWithinIntervalWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/isWithinIntervalWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/isWithinIntervalWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfDecade.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfDecade.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfDecade.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfDecade.js create mode 100644 node_modules/date-fns/fp/lastDayOfDecadeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfDecadeWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfMonth.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfMonth.js create mode 100644 node_modules/date-fns/fp/lastDayOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter.js create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfWeek.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfWeek.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfWeek.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfWeek.js create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/lastDayOfYear.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfYear.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfYear.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfYear.js create mode 100644 node_modules/date-fns/fp/lastDayOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/lastDayOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/lastDayOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/lightFormat.cjs create mode 100644 node_modules/date-fns/fp/lightFormat.d.cts create mode 100644 node_modules/date-fns/fp/lightFormat.d.ts create mode 100644 node_modules/date-fns/fp/lightFormat.js create mode 100644 node_modules/date-fns/fp/max.cjs create mode 100644 node_modules/date-fns/fp/max.d.cts create mode 100644 node_modules/date-fns/fp/max.d.ts create mode 100644 node_modules/date-fns/fp/max.js create mode 100644 node_modules/date-fns/fp/maxWithOptions.cjs create mode 100644 node_modules/date-fns/fp/maxWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/maxWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/maxWithOptions.js create mode 100644 node_modules/date-fns/fp/milliseconds.cjs create mode 100644 node_modules/date-fns/fp/milliseconds.d.cts create mode 100644 node_modules/date-fns/fp/milliseconds.d.ts create mode 100644 node_modules/date-fns/fp/milliseconds.js create mode 100644 node_modules/date-fns/fp/millisecondsToHours.cjs create mode 100644 node_modules/date-fns/fp/millisecondsToHours.d.cts create mode 100644 node_modules/date-fns/fp/millisecondsToHours.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToHours.js create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes.cjs create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes.d.cts create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes.js create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds.cjs create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds.d.cts create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds.js create mode 100644 node_modules/date-fns/fp/min.cjs create mode 100644 node_modules/date-fns/fp/min.d.cts create mode 100644 node_modules/date-fns/fp/min.d.ts create mode 100644 node_modules/date-fns/fp/min.js create mode 100644 node_modules/date-fns/fp/minWithOptions.cjs create mode 100644 node_modules/date-fns/fp/minWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/minWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/minWithOptions.js create mode 100644 node_modules/date-fns/fp/minutesToHours.cjs create mode 100644 node_modules/date-fns/fp/minutesToHours.d.cts create mode 100644 node_modules/date-fns/fp/minutesToHours.d.ts create mode 100644 node_modules/date-fns/fp/minutesToHours.js create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds.js create mode 100644 node_modules/date-fns/fp/minutesToSeconds.cjs create mode 100644 node_modules/date-fns/fp/minutesToSeconds.d.cts create mode 100644 node_modules/date-fns/fp/minutesToSeconds.d.ts create mode 100644 node_modules/date-fns/fp/minutesToSeconds.js create mode 100644 node_modules/date-fns/fp/monthsToQuarters.cjs create mode 100644 node_modules/date-fns/fp/monthsToQuarters.d.cts create mode 100644 node_modules/date-fns/fp/monthsToQuarters.d.ts create mode 100644 node_modules/date-fns/fp/monthsToQuarters.js create mode 100644 node_modules/date-fns/fp/monthsToYears.cjs create mode 100644 node_modules/date-fns/fp/monthsToYears.d.cts create mode 100644 node_modules/date-fns/fp/monthsToYears.d.ts create mode 100644 node_modules/date-fns/fp/monthsToYears.js create mode 100644 node_modules/date-fns/fp/nextDay.cjs create mode 100644 node_modules/date-fns/fp/nextDay.d.cts create mode 100644 node_modules/date-fns/fp/nextDay.d.ts create mode 100644 node_modules/date-fns/fp/nextDay.js create mode 100644 node_modules/date-fns/fp/nextDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextDayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextFriday.cjs create mode 100644 node_modules/date-fns/fp/nextFriday.d.cts create mode 100644 node_modules/date-fns/fp/nextFriday.d.ts create mode 100644 node_modules/date-fns/fp/nextFriday.js create mode 100644 node_modules/date-fns/fp/nextFridayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextFridayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextFridayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextFridayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextMonday.cjs create mode 100644 node_modules/date-fns/fp/nextMonday.d.cts create mode 100644 node_modules/date-fns/fp/nextMonday.d.ts create mode 100644 node_modules/date-fns/fp/nextMonday.js create mode 100644 node_modules/date-fns/fp/nextMondayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextMondayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextMondayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextMondayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextSaturday.cjs create mode 100644 node_modules/date-fns/fp/nextSaturday.d.cts create mode 100644 node_modules/date-fns/fp/nextSaturday.d.ts create mode 100644 node_modules/date-fns/fp/nextSaturday.js create mode 100644 node_modules/date-fns/fp/nextSaturdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextSaturdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextSaturdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextSaturdayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextSunday.cjs create mode 100644 node_modules/date-fns/fp/nextSunday.d.cts create mode 100644 node_modules/date-fns/fp/nextSunday.d.ts create mode 100644 node_modules/date-fns/fp/nextSunday.js create mode 100644 node_modules/date-fns/fp/nextSundayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextSundayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextSundayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextSundayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextThursday.cjs create mode 100644 node_modules/date-fns/fp/nextThursday.d.cts create mode 100644 node_modules/date-fns/fp/nextThursday.d.ts create mode 100644 node_modules/date-fns/fp/nextThursday.js create mode 100644 node_modules/date-fns/fp/nextThursdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextThursdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextThursdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextThursdayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextTuesday.cjs create mode 100644 node_modules/date-fns/fp/nextTuesday.d.cts create mode 100644 node_modules/date-fns/fp/nextTuesday.d.ts create mode 100644 node_modules/date-fns/fp/nextTuesday.js create mode 100644 node_modules/date-fns/fp/nextTuesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextTuesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextTuesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextTuesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/nextWednesday.cjs create mode 100644 node_modules/date-fns/fp/nextWednesday.d.cts create mode 100644 node_modules/date-fns/fp/nextWednesday.d.ts create mode 100644 node_modules/date-fns/fp/nextWednesday.js create mode 100644 node_modules/date-fns/fp/nextWednesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/nextWednesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/nextWednesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/nextWednesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/parse.cjs create mode 100644 node_modules/date-fns/fp/parse.d.cts create mode 100644 node_modules/date-fns/fp/parse.d.ts create mode 100644 node_modules/date-fns/fp/parse.js create mode 100644 node_modules/date-fns/fp/parseISO.cjs create mode 100644 node_modules/date-fns/fp/parseISO.d.cts create mode 100644 node_modules/date-fns/fp/parseISO.d.ts create mode 100644 node_modules/date-fns/fp/parseISO.js create mode 100644 node_modules/date-fns/fp/parseISOWithOptions.cjs create mode 100644 node_modules/date-fns/fp/parseISOWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/parseISOWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/parseISOWithOptions.js create mode 100644 node_modules/date-fns/fp/parseJSON.cjs create mode 100644 node_modules/date-fns/fp/parseJSON.d.cts create mode 100644 node_modules/date-fns/fp/parseJSON.d.ts create mode 100644 node_modules/date-fns/fp/parseJSON.js create mode 100644 node_modules/date-fns/fp/parseJSONWithOptions.cjs create mode 100644 node_modules/date-fns/fp/parseJSONWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/parseJSONWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/parseJSONWithOptions.js create mode 100644 node_modules/date-fns/fp/parseWithOptions.cjs create mode 100644 node_modules/date-fns/fp/parseWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/parseWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/parseWithOptions.js create mode 100644 node_modules/date-fns/fp/previousDay.cjs create mode 100644 node_modules/date-fns/fp/previousDay.d.cts create mode 100644 node_modules/date-fns/fp/previousDay.d.ts create mode 100644 node_modules/date-fns/fp/previousDay.js create mode 100644 node_modules/date-fns/fp/previousDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousDayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousFriday.cjs create mode 100644 node_modules/date-fns/fp/previousFriday.d.cts create mode 100644 node_modules/date-fns/fp/previousFriday.d.ts create mode 100644 node_modules/date-fns/fp/previousFriday.js create mode 100644 node_modules/date-fns/fp/previousFridayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousFridayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousFridayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousFridayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousMonday.cjs create mode 100644 node_modules/date-fns/fp/previousMonday.d.cts create mode 100644 node_modules/date-fns/fp/previousMonday.d.ts create mode 100644 node_modules/date-fns/fp/previousMonday.js create mode 100644 node_modules/date-fns/fp/previousMondayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousMondayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousMondayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousMondayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousSaturday.cjs create mode 100644 node_modules/date-fns/fp/previousSaturday.d.cts create mode 100644 node_modules/date-fns/fp/previousSaturday.d.ts create mode 100644 node_modules/date-fns/fp/previousSaturday.js create mode 100644 node_modules/date-fns/fp/previousSaturdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousSaturdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousSaturdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousSaturdayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousSunday.cjs create mode 100644 node_modules/date-fns/fp/previousSunday.d.cts create mode 100644 node_modules/date-fns/fp/previousSunday.d.ts create mode 100644 node_modules/date-fns/fp/previousSunday.js create mode 100644 node_modules/date-fns/fp/previousSundayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousSundayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousSundayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousSundayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousThursday.cjs create mode 100644 node_modules/date-fns/fp/previousThursday.d.cts create mode 100644 node_modules/date-fns/fp/previousThursday.d.ts create mode 100644 node_modules/date-fns/fp/previousThursday.js create mode 100644 node_modules/date-fns/fp/previousThursdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousThursdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousThursdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousThursdayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousTuesday.cjs create mode 100644 node_modules/date-fns/fp/previousTuesday.d.cts create mode 100644 node_modules/date-fns/fp/previousTuesday.d.ts create mode 100644 node_modules/date-fns/fp/previousTuesday.js create mode 100644 node_modules/date-fns/fp/previousTuesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousTuesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousTuesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousTuesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/previousWednesday.cjs create mode 100644 node_modules/date-fns/fp/previousWednesday.d.cts create mode 100644 node_modules/date-fns/fp/previousWednesday.d.ts create mode 100644 node_modules/date-fns/fp/previousWednesday.js create mode 100644 node_modules/date-fns/fp/previousWednesdayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/previousWednesdayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/previousWednesdayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/previousWednesdayWithOptions.js create mode 100644 node_modules/date-fns/fp/quartersToMonths.cjs create mode 100644 node_modules/date-fns/fp/quartersToMonths.d.cts create mode 100644 node_modules/date-fns/fp/quartersToMonths.d.ts create mode 100644 node_modules/date-fns/fp/quartersToMonths.js create mode 100644 node_modules/date-fns/fp/quartersToYears.cjs create mode 100644 node_modules/date-fns/fp/quartersToYears.d.cts create mode 100644 node_modules/date-fns/fp/quartersToYears.d.ts create mode 100644 node_modules/date-fns/fp/quartersToYears.js create mode 100644 node_modules/date-fns/fp/roundToNearestHours.cjs create mode 100644 node_modules/date-fns/fp/roundToNearestHours.d.cts create mode 100644 node_modules/date-fns/fp/roundToNearestHours.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestHours.js create mode 100644 node_modules/date-fns/fp/roundToNearestHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes.cjs create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes.d.cts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes.js create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/secondsToHours.cjs create mode 100644 node_modules/date-fns/fp/secondsToHours.d.cts create mode 100644 node_modules/date-fns/fp/secondsToHours.d.ts create mode 100644 node_modules/date-fns/fp/secondsToHours.js create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds.js create mode 100644 node_modules/date-fns/fp/secondsToMinutes.cjs create mode 100644 node_modules/date-fns/fp/secondsToMinutes.d.cts create mode 100644 node_modules/date-fns/fp/secondsToMinutes.d.ts create mode 100644 node_modules/date-fns/fp/secondsToMinutes.js create mode 100644 node_modules/date-fns/fp/set.cjs create mode 100644 node_modules/date-fns/fp/set.d.cts create mode 100644 node_modules/date-fns/fp/set.d.ts create mode 100644 node_modules/date-fns/fp/set.js create mode 100644 node_modules/date-fns/fp/setDate.cjs create mode 100644 node_modules/date-fns/fp/setDate.d.cts create mode 100644 node_modules/date-fns/fp/setDate.d.ts create mode 100644 node_modules/date-fns/fp/setDate.js create mode 100644 node_modules/date-fns/fp/setDateWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setDateWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setDateWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setDateWithOptions.js create mode 100644 node_modules/date-fns/fp/setDay.cjs create mode 100644 node_modules/date-fns/fp/setDay.d.cts create mode 100644 node_modules/date-fns/fp/setDay.d.ts create mode 100644 node_modules/date-fns/fp/setDay.js create mode 100644 node_modules/date-fns/fp/setDayOfYear.cjs create mode 100644 node_modules/date-fns/fp/setDayOfYear.d.cts create mode 100644 node_modules/date-fns/fp/setDayOfYear.d.ts create mode 100644 node_modules/date-fns/fp/setDayOfYear.js create mode 100644 node_modules/date-fns/fp/setDayOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setDayOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setDayOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setDayOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/setDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setDayWithOptions.js create mode 100644 node_modules/date-fns/fp/setHours.cjs create mode 100644 node_modules/date-fns/fp/setHours.d.cts create mode 100644 node_modules/date-fns/fp/setHours.d.ts create mode 100644 node_modules/date-fns/fp/setHours.js create mode 100644 node_modules/date-fns/fp/setHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/setISODay.cjs create mode 100644 node_modules/date-fns/fp/setISODay.d.cts create mode 100644 node_modules/date-fns/fp/setISODay.d.ts create mode 100644 node_modules/date-fns/fp/setISODay.js create mode 100644 node_modules/date-fns/fp/setISODayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setISODayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setISODayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setISODayWithOptions.js create mode 100644 node_modules/date-fns/fp/setISOWeek.cjs create mode 100644 node_modules/date-fns/fp/setISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/setISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeek.js create mode 100644 node_modules/date-fns/fp/setISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/setISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/setISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/setISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeekYear.js create mode 100644 node_modules/date-fns/fp/setISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/setMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/setMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/setMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/setMilliseconds.js create mode 100644 node_modules/date-fns/fp/setMillisecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setMillisecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setMillisecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setMillisecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/setMinutes.cjs create mode 100644 node_modules/date-fns/fp/setMinutes.d.cts create mode 100644 node_modules/date-fns/fp/setMinutes.d.ts create mode 100644 node_modules/date-fns/fp/setMinutes.js create mode 100644 node_modules/date-fns/fp/setMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/setMonth.cjs create mode 100644 node_modules/date-fns/fp/setMonth.d.cts create mode 100644 node_modules/date-fns/fp/setMonth.d.ts create mode 100644 node_modules/date-fns/fp/setMonth.js create mode 100644 node_modules/date-fns/fp/setMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/setQuarter.cjs create mode 100644 node_modules/date-fns/fp/setQuarter.d.cts create mode 100644 node_modules/date-fns/fp/setQuarter.d.ts create mode 100644 node_modules/date-fns/fp/setQuarter.js create mode 100644 node_modules/date-fns/fp/setQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/setSeconds.cjs create mode 100644 node_modules/date-fns/fp/setSeconds.d.cts create mode 100644 node_modules/date-fns/fp/setSeconds.d.ts create mode 100644 node_modules/date-fns/fp/setSeconds.js create mode 100644 node_modules/date-fns/fp/setSecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setSecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setSecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setSecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/setWeek.cjs create mode 100644 node_modules/date-fns/fp/setWeek.d.cts create mode 100644 node_modules/date-fns/fp/setWeek.d.ts create mode 100644 node_modules/date-fns/fp/setWeek.js create mode 100644 node_modules/date-fns/fp/setWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/setWeekYear.cjs create mode 100644 node_modules/date-fns/fp/setWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/setWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/setWeekYear.js create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/setWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setWithOptions.js create mode 100644 node_modules/date-fns/fp/setYear.cjs create mode 100644 node_modules/date-fns/fp/setYear.d.cts create mode 100644 node_modules/date-fns/fp/setYear.d.ts create mode 100644 node_modules/date-fns/fp/setYear.js create mode 100644 node_modules/date-fns/fp/setYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/setYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/setYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/setYearWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfDay.cjs create mode 100644 node_modules/date-fns/fp/startOfDay.d.cts create mode 100644 node_modules/date-fns/fp/startOfDay.d.ts create mode 100644 node_modules/date-fns/fp/startOfDay.js create mode 100644 node_modules/date-fns/fp/startOfDayWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfDayWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfDayWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfDayWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfDecade.cjs create mode 100644 node_modules/date-fns/fp/startOfDecade.d.cts create mode 100644 node_modules/date-fns/fp/startOfDecade.d.ts create mode 100644 node_modules/date-fns/fp/startOfDecade.js create mode 100644 node_modules/date-fns/fp/startOfDecadeWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfDecadeWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfDecadeWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfDecadeWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfHour.cjs create mode 100644 node_modules/date-fns/fp/startOfHour.d.cts create mode 100644 node_modules/date-fns/fp/startOfHour.d.ts create mode 100644 node_modules/date-fns/fp/startOfHour.js create mode 100644 node_modules/date-fns/fp/startOfHourWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfHourWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfHourWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfHourWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfISOWeek.cjs create mode 100644 node_modules/date-fns/fp/startOfISOWeek.d.cts create mode 100644 node_modules/date-fns/fp/startOfISOWeek.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeek.js create mode 100644 node_modules/date-fns/fp/startOfISOWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfISOWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfISOWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear.js create mode 100644 node_modules/date-fns/fp/startOfISOWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfMinute.cjs create mode 100644 node_modules/date-fns/fp/startOfMinute.d.cts create mode 100644 node_modules/date-fns/fp/startOfMinute.d.ts create mode 100644 node_modules/date-fns/fp/startOfMinute.js create mode 100644 node_modules/date-fns/fp/startOfMinuteWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfMinuteWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfMinuteWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfMinuteWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfMonth.cjs create mode 100644 node_modules/date-fns/fp/startOfMonth.d.cts create mode 100644 node_modules/date-fns/fp/startOfMonth.d.ts create mode 100644 node_modules/date-fns/fp/startOfMonth.js create mode 100644 node_modules/date-fns/fp/startOfMonthWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfMonthWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfMonthWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfMonthWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfQuarter.cjs create mode 100644 node_modules/date-fns/fp/startOfQuarter.d.cts create mode 100644 node_modules/date-fns/fp/startOfQuarter.d.ts create mode 100644 node_modules/date-fns/fp/startOfQuarter.js create mode 100644 node_modules/date-fns/fp/startOfQuarterWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfQuarterWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfQuarterWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfQuarterWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfSecond.cjs create mode 100644 node_modules/date-fns/fp/startOfSecond.d.cts create mode 100644 node_modules/date-fns/fp/startOfSecond.d.ts create mode 100644 node_modules/date-fns/fp/startOfSecond.js create mode 100644 node_modules/date-fns/fp/startOfSecondWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfSecondWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfSecondWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfSecondWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfWeek.cjs create mode 100644 node_modules/date-fns/fp/startOfWeek.d.cts create mode 100644 node_modules/date-fns/fp/startOfWeek.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeek.js create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfWeekYear.cjs create mode 100644 node_modules/date-fns/fp/startOfWeekYear.d.cts create mode 100644 node_modules/date-fns/fp/startOfWeekYear.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekYear.js create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions.js create mode 100644 node_modules/date-fns/fp/startOfYear.cjs create mode 100644 node_modules/date-fns/fp/startOfYear.d.cts create mode 100644 node_modules/date-fns/fp/startOfYear.d.ts create mode 100644 node_modules/date-fns/fp/startOfYear.js create mode 100644 node_modules/date-fns/fp/startOfYearWithOptions.cjs create mode 100644 node_modules/date-fns/fp/startOfYearWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/startOfYearWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/startOfYearWithOptions.js create mode 100644 node_modules/date-fns/fp/sub.cjs create mode 100644 node_modules/date-fns/fp/sub.d.cts create mode 100644 node_modules/date-fns/fp/sub.d.ts create mode 100644 node_modules/date-fns/fp/sub.js create mode 100644 node_modules/date-fns/fp/subBusinessDays.cjs create mode 100644 node_modules/date-fns/fp/subBusinessDays.d.cts create mode 100644 node_modules/date-fns/fp/subBusinessDays.d.ts create mode 100644 node_modules/date-fns/fp/subBusinessDays.js create mode 100644 node_modules/date-fns/fp/subBusinessDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subBusinessDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subBusinessDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subBusinessDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/subDays.cjs create mode 100644 node_modules/date-fns/fp/subDays.d.cts create mode 100644 node_modules/date-fns/fp/subDays.d.ts create mode 100644 node_modules/date-fns/fp/subDays.js create mode 100644 node_modules/date-fns/fp/subDaysWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subDaysWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subDaysWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subDaysWithOptions.js create mode 100644 node_modules/date-fns/fp/subHours.cjs create mode 100644 node_modules/date-fns/fp/subHours.d.cts create mode 100644 node_modules/date-fns/fp/subHours.d.ts create mode 100644 node_modules/date-fns/fp/subHours.js create mode 100644 node_modules/date-fns/fp/subHoursWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subHoursWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subHoursWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subHoursWithOptions.js create mode 100644 node_modules/date-fns/fp/subISOWeekYears.cjs create mode 100644 node_modules/date-fns/fp/subISOWeekYears.d.cts create mode 100644 node_modules/date-fns/fp/subISOWeekYears.d.ts create mode 100644 node_modules/date-fns/fp/subISOWeekYears.js create mode 100644 node_modules/date-fns/fp/subISOWeekYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subISOWeekYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/subMilliseconds.cjs create mode 100644 node_modules/date-fns/fp/subMilliseconds.d.cts create mode 100644 node_modules/date-fns/fp/subMilliseconds.d.ts create mode 100644 node_modules/date-fns/fp/subMilliseconds.js create mode 100644 node_modules/date-fns/fp/subMillisecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subMillisecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subMillisecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subMillisecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/subMinutes.cjs create mode 100644 node_modules/date-fns/fp/subMinutes.d.cts create mode 100644 node_modules/date-fns/fp/subMinutes.d.ts create mode 100644 node_modules/date-fns/fp/subMinutes.js create mode 100644 node_modules/date-fns/fp/subMinutesWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subMinutesWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subMinutesWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subMinutesWithOptions.js create mode 100644 node_modules/date-fns/fp/subMonths.cjs create mode 100644 node_modules/date-fns/fp/subMonths.d.cts create mode 100644 node_modules/date-fns/fp/subMonths.d.ts create mode 100644 node_modules/date-fns/fp/subMonths.js create mode 100644 node_modules/date-fns/fp/subMonthsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subMonthsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subMonthsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subMonthsWithOptions.js create mode 100644 node_modules/date-fns/fp/subQuarters.cjs create mode 100644 node_modules/date-fns/fp/subQuarters.d.cts create mode 100644 node_modules/date-fns/fp/subQuarters.d.ts create mode 100644 node_modules/date-fns/fp/subQuarters.js create mode 100644 node_modules/date-fns/fp/subQuartersWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subQuartersWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subQuartersWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subQuartersWithOptions.js create mode 100644 node_modules/date-fns/fp/subSeconds.cjs create mode 100644 node_modules/date-fns/fp/subSeconds.d.cts create mode 100644 node_modules/date-fns/fp/subSeconds.d.ts create mode 100644 node_modules/date-fns/fp/subSeconds.js create mode 100644 node_modules/date-fns/fp/subSecondsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subSecondsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subSecondsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subSecondsWithOptions.js create mode 100644 node_modules/date-fns/fp/subWeeks.cjs create mode 100644 node_modules/date-fns/fp/subWeeks.d.cts create mode 100644 node_modules/date-fns/fp/subWeeks.d.ts create mode 100644 node_modules/date-fns/fp/subWeeks.js create mode 100644 node_modules/date-fns/fp/subWeeksWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subWeeksWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subWeeksWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subWeeksWithOptions.js create mode 100644 node_modules/date-fns/fp/subWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subWithOptions.js create mode 100644 node_modules/date-fns/fp/subYears.cjs create mode 100644 node_modules/date-fns/fp/subYears.d.cts create mode 100644 node_modules/date-fns/fp/subYears.d.ts create mode 100644 node_modules/date-fns/fp/subYears.js create mode 100644 node_modules/date-fns/fp/subYearsWithOptions.cjs create mode 100644 node_modules/date-fns/fp/subYearsWithOptions.d.cts create mode 100644 node_modules/date-fns/fp/subYearsWithOptions.d.ts create mode 100644 node_modules/date-fns/fp/subYearsWithOptions.js create mode 100644 node_modules/date-fns/fp/toDate.cjs create mode 100644 node_modules/date-fns/fp/toDate.d.cts create mode 100644 node_modules/date-fns/fp/toDate.d.ts create mode 100644 node_modules/date-fns/fp/toDate.js create mode 100644 node_modules/date-fns/fp/transpose.cjs create mode 100644 node_modules/date-fns/fp/transpose.d.cts create mode 100644 node_modules/date-fns/fp/transpose.d.ts create mode 100644 node_modules/date-fns/fp/transpose.js create mode 100644 node_modules/date-fns/fp/types.cjs create mode 100644 node_modules/date-fns/fp/types.d.cts create mode 100644 node_modules/date-fns/fp/types.d.ts create mode 100644 node_modules/date-fns/fp/types.js create mode 100644 node_modules/date-fns/fp/weeksToDays.cjs create mode 100644 node_modules/date-fns/fp/weeksToDays.d.cts create mode 100644 node_modules/date-fns/fp/weeksToDays.d.ts create mode 100644 node_modules/date-fns/fp/weeksToDays.js create mode 100644 node_modules/date-fns/fp/yearsToDays.cjs create mode 100644 node_modules/date-fns/fp/yearsToDays.d.cts create mode 100644 node_modules/date-fns/fp/yearsToDays.d.ts create mode 100644 node_modules/date-fns/fp/yearsToDays.js create mode 100644 node_modules/date-fns/fp/yearsToMonths.cjs create mode 100644 node_modules/date-fns/fp/yearsToMonths.d.cts create mode 100644 node_modules/date-fns/fp/yearsToMonths.d.ts create mode 100644 node_modules/date-fns/fp/yearsToMonths.js create mode 100644 node_modules/date-fns/fp/yearsToQuarters.cjs create mode 100644 node_modules/date-fns/fp/yearsToQuarters.d.cts create mode 100644 node_modules/date-fns/fp/yearsToQuarters.d.ts create mode 100644 node_modules/date-fns/fp/yearsToQuarters.js create mode 100644 node_modules/date-fns/fromUnixTime.cjs create mode 100644 node_modules/date-fns/fromUnixTime.d.cts create mode 100644 node_modules/date-fns/fromUnixTime.d.ts create mode 100644 node_modules/date-fns/fromUnixTime.js create mode 100644 node_modules/date-fns/getDate.cjs create mode 100644 node_modules/date-fns/getDate.d.cts create mode 100644 node_modules/date-fns/getDate.d.ts create mode 100644 node_modules/date-fns/getDate.js create mode 100644 node_modules/date-fns/getDay.cjs create mode 100644 node_modules/date-fns/getDay.d.cts create mode 100644 node_modules/date-fns/getDay.d.ts create mode 100644 node_modules/date-fns/getDay.js create mode 100644 node_modules/date-fns/getDayOfYear.cjs create mode 100644 node_modules/date-fns/getDayOfYear.d.cts create mode 100644 node_modules/date-fns/getDayOfYear.d.ts create mode 100644 node_modules/date-fns/getDayOfYear.js create mode 100644 node_modules/date-fns/getDaysInMonth.cjs create mode 100644 node_modules/date-fns/getDaysInMonth.d.cts create mode 100644 node_modules/date-fns/getDaysInMonth.d.ts create mode 100644 node_modules/date-fns/getDaysInMonth.js create mode 100644 node_modules/date-fns/getDaysInYear.cjs create mode 100644 node_modules/date-fns/getDaysInYear.d.cts create mode 100644 node_modules/date-fns/getDaysInYear.d.ts create mode 100644 node_modules/date-fns/getDaysInYear.js create mode 100644 node_modules/date-fns/getDecade.cjs create mode 100644 node_modules/date-fns/getDecade.d.cts create mode 100644 node_modules/date-fns/getDecade.d.ts create mode 100644 node_modules/date-fns/getDecade.js create mode 100644 node_modules/date-fns/getDefaultOptions.cjs create mode 100644 node_modules/date-fns/getDefaultOptions.d.cts create mode 100644 node_modules/date-fns/getDefaultOptions.d.ts create mode 100644 node_modules/date-fns/getDefaultOptions.js create mode 100644 node_modules/date-fns/getHours.cjs create mode 100644 node_modules/date-fns/getHours.d.cts create mode 100644 node_modules/date-fns/getHours.d.ts create mode 100644 node_modules/date-fns/getHours.js create mode 100644 node_modules/date-fns/getISODay.cjs create mode 100644 node_modules/date-fns/getISODay.d.cts create mode 100644 node_modules/date-fns/getISODay.d.ts create mode 100644 node_modules/date-fns/getISODay.js create mode 100644 node_modules/date-fns/getISOWeek.cjs create mode 100644 node_modules/date-fns/getISOWeek.d.cts create mode 100644 node_modules/date-fns/getISOWeek.d.ts create mode 100644 node_modules/date-fns/getISOWeek.js create mode 100644 node_modules/date-fns/getISOWeekYear.cjs create mode 100644 node_modules/date-fns/getISOWeekYear.d.cts create mode 100644 node_modules/date-fns/getISOWeekYear.d.ts create mode 100644 node_modules/date-fns/getISOWeekYear.js create mode 100644 node_modules/date-fns/getISOWeeksInYear.cjs create mode 100644 node_modules/date-fns/getISOWeeksInYear.d.cts create mode 100644 node_modules/date-fns/getISOWeeksInYear.d.ts create mode 100644 node_modules/date-fns/getISOWeeksInYear.js create mode 100644 node_modules/date-fns/getMilliseconds.cjs create mode 100644 node_modules/date-fns/getMilliseconds.d.cts create mode 100644 node_modules/date-fns/getMilliseconds.d.ts create mode 100644 node_modules/date-fns/getMilliseconds.js create mode 100644 node_modules/date-fns/getMinutes.cjs create mode 100644 node_modules/date-fns/getMinutes.d.cts create mode 100644 node_modules/date-fns/getMinutes.d.ts create mode 100644 node_modules/date-fns/getMinutes.js create mode 100644 node_modules/date-fns/getMonth.cjs create mode 100644 node_modules/date-fns/getMonth.d.cts create mode 100644 node_modules/date-fns/getMonth.d.ts create mode 100644 node_modules/date-fns/getMonth.js create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals.cjs create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals.d.cts create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals.d.ts create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals.js create mode 100644 node_modules/date-fns/getQuarter.cjs create mode 100644 node_modules/date-fns/getQuarter.d.cts create mode 100644 node_modules/date-fns/getQuarter.d.ts create mode 100644 node_modules/date-fns/getQuarter.js create mode 100644 node_modules/date-fns/getSeconds.cjs create mode 100644 node_modules/date-fns/getSeconds.d.cts create mode 100644 node_modules/date-fns/getSeconds.d.ts create mode 100644 node_modules/date-fns/getSeconds.js create mode 100644 node_modules/date-fns/getTime.cjs create mode 100644 node_modules/date-fns/getTime.d.cts create mode 100644 node_modules/date-fns/getTime.d.ts create mode 100644 node_modules/date-fns/getTime.js create mode 100644 node_modules/date-fns/getUnixTime.cjs create mode 100644 node_modules/date-fns/getUnixTime.d.cts create mode 100644 node_modules/date-fns/getUnixTime.d.ts create mode 100644 node_modules/date-fns/getUnixTime.js create mode 100644 node_modules/date-fns/getWeek.cjs create mode 100644 node_modules/date-fns/getWeek.d.cts create mode 100644 node_modules/date-fns/getWeek.d.ts create mode 100644 node_modules/date-fns/getWeek.js create mode 100644 node_modules/date-fns/getWeekOfMonth.cjs create mode 100644 node_modules/date-fns/getWeekOfMonth.d.cts create mode 100644 node_modules/date-fns/getWeekOfMonth.d.ts create mode 100644 node_modules/date-fns/getWeekOfMonth.js create mode 100644 node_modules/date-fns/getWeekYear.cjs create mode 100644 node_modules/date-fns/getWeekYear.d.cts create mode 100644 node_modules/date-fns/getWeekYear.d.ts create mode 100644 node_modules/date-fns/getWeekYear.js create mode 100644 node_modules/date-fns/getWeeksInMonth.cjs create mode 100644 node_modules/date-fns/getWeeksInMonth.d.cts create mode 100644 node_modules/date-fns/getWeeksInMonth.d.ts create mode 100644 node_modules/date-fns/getWeeksInMonth.js create mode 100644 node_modules/date-fns/getYear.cjs create mode 100644 node_modules/date-fns/getYear.d.cts create mode 100644 node_modules/date-fns/getYear.d.ts create mode 100644 node_modules/date-fns/getYear.js create mode 100644 node_modules/date-fns/hoursToMilliseconds.cjs create mode 100644 node_modules/date-fns/hoursToMilliseconds.d.cts create mode 100644 node_modules/date-fns/hoursToMilliseconds.d.ts create mode 100644 node_modules/date-fns/hoursToMilliseconds.js create mode 100644 node_modules/date-fns/hoursToMinutes.cjs create mode 100644 node_modules/date-fns/hoursToMinutes.d.cts create mode 100644 node_modules/date-fns/hoursToMinutes.d.ts create mode 100644 node_modules/date-fns/hoursToMinutes.js create mode 100644 node_modules/date-fns/hoursToSeconds.cjs create mode 100644 node_modules/date-fns/hoursToSeconds.d.cts create mode 100644 node_modules/date-fns/hoursToSeconds.d.ts create mode 100644 node_modules/date-fns/hoursToSeconds.js create mode 100644 node_modules/date-fns/index.cjs create mode 100644 node_modules/date-fns/index.d.cts create mode 100644 node_modules/date-fns/index.d.ts create mode 100644 node_modules/date-fns/index.js create mode 100644 node_modules/date-fns/interval.cjs create mode 100644 node_modules/date-fns/interval.d.cts create mode 100644 node_modules/date-fns/interval.d.ts create mode 100644 node_modules/date-fns/interval.js create mode 100644 node_modules/date-fns/intervalToDuration.cjs create mode 100644 node_modules/date-fns/intervalToDuration.d.cts create mode 100644 node_modules/date-fns/intervalToDuration.d.ts create mode 100644 node_modules/date-fns/intervalToDuration.js create mode 100644 node_modules/date-fns/intlFormat.cjs create mode 100644 node_modules/date-fns/intlFormat.d.cts create mode 100644 node_modules/date-fns/intlFormat.d.ts create mode 100644 node_modules/date-fns/intlFormat.js create mode 100644 node_modules/date-fns/intlFormatDistance.cjs create mode 100644 node_modules/date-fns/intlFormatDistance.d.cts create mode 100644 node_modules/date-fns/intlFormatDistance.d.ts create mode 100644 node_modules/date-fns/intlFormatDistance.js create mode 100644 node_modules/date-fns/isAfter.cjs create mode 100644 node_modules/date-fns/isAfter.d.cts create mode 100644 node_modules/date-fns/isAfter.d.ts create mode 100644 node_modules/date-fns/isAfter.js create mode 100644 node_modules/date-fns/isBefore.cjs create mode 100644 node_modules/date-fns/isBefore.d.cts create mode 100644 node_modules/date-fns/isBefore.d.ts create mode 100644 node_modules/date-fns/isBefore.js create mode 100644 node_modules/date-fns/isDate.cjs create mode 100644 node_modules/date-fns/isDate.d.cts create mode 100644 node_modules/date-fns/isDate.d.ts create mode 100644 node_modules/date-fns/isDate.js create mode 100644 node_modules/date-fns/isEqual.cjs create mode 100644 node_modules/date-fns/isEqual.d.cts create mode 100644 node_modules/date-fns/isEqual.d.ts create mode 100644 node_modules/date-fns/isEqual.js create mode 100644 node_modules/date-fns/isExists.cjs create mode 100644 node_modules/date-fns/isExists.d.cts create mode 100644 node_modules/date-fns/isExists.d.ts create mode 100644 node_modules/date-fns/isExists.js create mode 100644 node_modules/date-fns/isFirstDayOfMonth.cjs create mode 100644 node_modules/date-fns/isFirstDayOfMonth.d.cts create mode 100644 node_modules/date-fns/isFirstDayOfMonth.d.ts create mode 100644 node_modules/date-fns/isFirstDayOfMonth.js create mode 100644 node_modules/date-fns/isFriday.cjs create mode 100644 node_modules/date-fns/isFriday.d.cts create mode 100644 node_modules/date-fns/isFriday.d.ts create mode 100644 node_modules/date-fns/isFriday.js create mode 100644 node_modules/date-fns/isFuture.cjs create mode 100644 node_modules/date-fns/isFuture.d.cts create mode 100644 node_modules/date-fns/isFuture.d.ts create mode 100644 node_modules/date-fns/isFuture.js create mode 100644 node_modules/date-fns/isLastDayOfMonth.cjs create mode 100644 node_modules/date-fns/isLastDayOfMonth.d.cts create mode 100644 node_modules/date-fns/isLastDayOfMonth.d.ts create mode 100644 node_modules/date-fns/isLastDayOfMonth.js create mode 100644 node_modules/date-fns/isLeapYear.cjs create mode 100644 node_modules/date-fns/isLeapYear.d.cts create mode 100644 node_modules/date-fns/isLeapYear.d.ts create mode 100644 node_modules/date-fns/isLeapYear.js create mode 100644 node_modules/date-fns/isMatch.cjs create mode 100644 node_modules/date-fns/isMatch.d.cts create mode 100644 node_modules/date-fns/isMatch.d.ts create mode 100644 node_modules/date-fns/isMatch.js create mode 100644 node_modules/date-fns/isMonday.cjs create mode 100644 node_modules/date-fns/isMonday.d.cts create mode 100644 node_modules/date-fns/isMonday.d.ts create mode 100644 node_modules/date-fns/isMonday.js create mode 100644 node_modules/date-fns/isPast.cjs create mode 100644 node_modules/date-fns/isPast.d.cts create mode 100644 node_modules/date-fns/isPast.d.ts create mode 100644 node_modules/date-fns/isPast.js create mode 100644 node_modules/date-fns/isSameDay.cjs create mode 100644 node_modules/date-fns/isSameDay.d.cts create mode 100644 node_modules/date-fns/isSameDay.d.ts create mode 100644 node_modules/date-fns/isSameDay.js create mode 100644 node_modules/date-fns/isSameHour.cjs create mode 100644 node_modules/date-fns/isSameHour.d.cts create mode 100644 node_modules/date-fns/isSameHour.d.ts create mode 100644 node_modules/date-fns/isSameHour.js create mode 100644 node_modules/date-fns/isSameISOWeek.cjs create mode 100644 node_modules/date-fns/isSameISOWeek.d.cts create mode 100644 node_modules/date-fns/isSameISOWeek.d.ts create mode 100644 node_modules/date-fns/isSameISOWeek.js create mode 100644 node_modules/date-fns/isSameISOWeekYear.cjs create mode 100644 node_modules/date-fns/isSameISOWeekYear.d.cts create mode 100644 node_modules/date-fns/isSameISOWeekYear.d.ts create mode 100644 node_modules/date-fns/isSameISOWeekYear.js create mode 100644 node_modules/date-fns/isSameMinute.cjs create mode 100644 node_modules/date-fns/isSameMinute.d.cts create mode 100644 node_modules/date-fns/isSameMinute.d.ts create mode 100644 node_modules/date-fns/isSameMinute.js create mode 100644 node_modules/date-fns/isSameMonth.cjs create mode 100644 node_modules/date-fns/isSameMonth.d.cts create mode 100644 node_modules/date-fns/isSameMonth.d.ts create mode 100644 node_modules/date-fns/isSameMonth.js create mode 100644 node_modules/date-fns/isSameQuarter.cjs create mode 100644 node_modules/date-fns/isSameQuarter.d.cts create mode 100644 node_modules/date-fns/isSameQuarter.d.ts create mode 100644 node_modules/date-fns/isSameQuarter.js create mode 100644 node_modules/date-fns/isSameSecond.cjs create mode 100644 node_modules/date-fns/isSameSecond.d.cts create mode 100644 node_modules/date-fns/isSameSecond.d.ts create mode 100644 node_modules/date-fns/isSameSecond.js create mode 100644 node_modules/date-fns/isSameWeek.cjs create mode 100644 node_modules/date-fns/isSameWeek.d.cts create mode 100644 node_modules/date-fns/isSameWeek.d.ts create mode 100644 node_modules/date-fns/isSameWeek.js create mode 100644 node_modules/date-fns/isSameYear.cjs create mode 100644 node_modules/date-fns/isSameYear.d.cts create mode 100644 node_modules/date-fns/isSameYear.d.ts create mode 100644 node_modules/date-fns/isSameYear.js create mode 100644 node_modules/date-fns/isSaturday.cjs create mode 100644 node_modules/date-fns/isSaturday.d.cts create mode 100644 node_modules/date-fns/isSaturday.d.ts create mode 100644 node_modules/date-fns/isSaturday.js create mode 100644 node_modules/date-fns/isSunday.cjs create mode 100644 node_modules/date-fns/isSunday.d.cts create mode 100644 node_modules/date-fns/isSunday.d.ts create mode 100644 node_modules/date-fns/isSunday.js create mode 100644 node_modules/date-fns/isThisHour.cjs create mode 100644 node_modules/date-fns/isThisHour.d.cts create mode 100644 node_modules/date-fns/isThisHour.d.ts create mode 100644 node_modules/date-fns/isThisHour.js create mode 100644 node_modules/date-fns/isThisISOWeek.cjs create mode 100644 node_modules/date-fns/isThisISOWeek.d.cts create mode 100644 node_modules/date-fns/isThisISOWeek.d.ts create mode 100644 node_modules/date-fns/isThisISOWeek.js create mode 100644 node_modules/date-fns/isThisMinute.cjs create mode 100644 node_modules/date-fns/isThisMinute.d.cts create mode 100644 node_modules/date-fns/isThisMinute.d.ts create mode 100644 node_modules/date-fns/isThisMinute.js create mode 100644 node_modules/date-fns/isThisMonth.cjs create mode 100644 node_modules/date-fns/isThisMonth.d.cts create mode 100644 node_modules/date-fns/isThisMonth.d.ts create mode 100644 node_modules/date-fns/isThisMonth.js create mode 100644 node_modules/date-fns/isThisQuarter.cjs create mode 100644 node_modules/date-fns/isThisQuarter.d.cts create mode 100644 node_modules/date-fns/isThisQuarter.d.ts create mode 100644 node_modules/date-fns/isThisQuarter.js create mode 100644 node_modules/date-fns/isThisSecond.cjs create mode 100644 node_modules/date-fns/isThisSecond.d.cts create mode 100644 node_modules/date-fns/isThisSecond.d.ts create mode 100644 node_modules/date-fns/isThisSecond.js create mode 100644 node_modules/date-fns/isThisWeek.cjs create mode 100644 node_modules/date-fns/isThisWeek.d.cts create mode 100644 node_modules/date-fns/isThisWeek.d.ts create mode 100644 node_modules/date-fns/isThisWeek.js create mode 100644 node_modules/date-fns/isThisYear.cjs create mode 100644 node_modules/date-fns/isThisYear.d.cts create mode 100644 node_modules/date-fns/isThisYear.d.ts create mode 100644 node_modules/date-fns/isThisYear.js create mode 100644 node_modules/date-fns/isThursday.cjs create mode 100644 node_modules/date-fns/isThursday.d.cts create mode 100644 node_modules/date-fns/isThursday.d.ts create mode 100644 node_modules/date-fns/isThursday.js create mode 100644 node_modules/date-fns/isToday.cjs create mode 100644 node_modules/date-fns/isToday.d.cts create mode 100644 node_modules/date-fns/isToday.d.ts create mode 100644 node_modules/date-fns/isToday.js create mode 100644 node_modules/date-fns/isTomorrow.cjs create mode 100644 node_modules/date-fns/isTomorrow.d.cts create mode 100644 node_modules/date-fns/isTomorrow.d.ts create mode 100644 node_modules/date-fns/isTomorrow.js create mode 100644 node_modules/date-fns/isTuesday.cjs create mode 100644 node_modules/date-fns/isTuesday.d.cts create mode 100644 node_modules/date-fns/isTuesday.d.ts create mode 100644 node_modules/date-fns/isTuesday.js create mode 100644 node_modules/date-fns/isValid.cjs create mode 100644 node_modules/date-fns/isValid.d.cts create mode 100644 node_modules/date-fns/isValid.d.ts create mode 100644 node_modules/date-fns/isValid.js create mode 100644 node_modules/date-fns/isWednesday.cjs create mode 100644 node_modules/date-fns/isWednesday.d.cts create mode 100644 node_modules/date-fns/isWednesday.d.ts create mode 100644 node_modules/date-fns/isWednesday.js create mode 100644 node_modules/date-fns/isWeekend.cjs create mode 100644 node_modules/date-fns/isWeekend.d.cts create mode 100644 node_modules/date-fns/isWeekend.d.ts create mode 100644 node_modules/date-fns/isWeekend.js create mode 100644 node_modules/date-fns/isWithinInterval.cjs create mode 100644 node_modules/date-fns/isWithinInterval.d.cts create mode 100644 node_modules/date-fns/isWithinInterval.d.ts create mode 100644 node_modules/date-fns/isWithinInterval.js create mode 100644 node_modules/date-fns/isYesterday.cjs create mode 100644 node_modules/date-fns/isYesterday.d.cts create mode 100644 node_modules/date-fns/isYesterday.d.ts create mode 100644 node_modules/date-fns/isYesterday.js create mode 100644 node_modules/date-fns/lastDayOfDecade.cjs create mode 100644 node_modules/date-fns/lastDayOfDecade.d.cts create mode 100644 node_modules/date-fns/lastDayOfDecade.d.ts create mode 100644 node_modules/date-fns/lastDayOfDecade.js create mode 100644 node_modules/date-fns/lastDayOfISOWeek.cjs create mode 100644 node_modules/date-fns/lastDayOfISOWeek.d.cts create mode 100644 node_modules/date-fns/lastDayOfISOWeek.d.ts create mode 100644 node_modules/date-fns/lastDayOfISOWeek.js create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear.js create mode 100644 node_modules/date-fns/lastDayOfMonth.cjs create mode 100644 node_modules/date-fns/lastDayOfMonth.d.cts create mode 100644 node_modules/date-fns/lastDayOfMonth.d.ts create mode 100644 node_modules/date-fns/lastDayOfMonth.js create mode 100644 node_modules/date-fns/lastDayOfQuarter.cjs create mode 100644 node_modules/date-fns/lastDayOfQuarter.d.cts create mode 100644 node_modules/date-fns/lastDayOfQuarter.d.ts create mode 100644 node_modules/date-fns/lastDayOfQuarter.js create mode 100644 node_modules/date-fns/lastDayOfWeek.cjs create mode 100644 node_modules/date-fns/lastDayOfWeek.d.cts create mode 100644 node_modules/date-fns/lastDayOfWeek.d.ts create mode 100644 node_modules/date-fns/lastDayOfWeek.js create mode 100644 node_modules/date-fns/lastDayOfYear.cjs create mode 100644 node_modules/date-fns/lastDayOfYear.d.cts create mode 100644 node_modules/date-fns/lastDayOfYear.d.ts create mode 100644 node_modules/date-fns/lastDayOfYear.js create mode 100644 node_modules/date-fns/lightFormat.cjs create mode 100644 node_modules/date-fns/lightFormat.d.cts create mode 100644 node_modules/date-fns/lightFormat.d.ts create mode 100644 node_modules/date-fns/lightFormat.js create mode 100644 node_modules/date-fns/locale.cjs create mode 100644 node_modules/date-fns/locale.d.cts create mode 100644 node_modules/date-fns/locale.d.ts create mode 100644 node_modules/date-fns/locale.js create mode 100644 node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs create mode 100644 node_modules/date-fns/locale/_lib/buildFormatLongFn.d.cts create mode 100644 node_modules/date-fns/locale/_lib/buildFormatLongFn.d.ts create mode 100644 node_modules/date-fns/locale/_lib/buildFormatLongFn.js create mode 100644 node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs create mode 100644 node_modules/date-fns/locale/_lib/buildLocalizeFn.d.cts create mode 100644 node_modules/date-fns/locale/_lib/buildLocalizeFn.d.ts create mode 100644 node_modules/date-fns/locale/_lib/buildLocalizeFn.js create mode 100644 node_modules/date-fns/locale/_lib/buildMatchFn.cjs create mode 100644 node_modules/date-fns/locale/_lib/buildMatchFn.d.cts create mode 100644 node_modules/date-fns/locale/_lib/buildMatchFn.d.ts create mode 100644 node_modules/date-fns/locale/_lib/buildMatchFn.js create mode 100644 node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs create mode 100644 node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.cts create mode 100644 node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.ts create mode 100644 node_modules/date-fns/locale/_lib/buildMatchPatternFn.js create mode 100644 node_modules/date-fns/locale/af.cjs create mode 100644 node_modules/date-fns/locale/af.d.cts create mode 100644 node_modules/date-fns/locale/af.d.ts create mode 100644 node_modules/date-fns/locale/af.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/af/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/af/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/af/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/af/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/af/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/af/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/af/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/af/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/af/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/af/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/af/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/af/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/af/_lib/localize.js create mode 100644 node_modules/date-fns/locale/af/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/af/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/af/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/af/_lib/match.js create mode 100644 node_modules/date-fns/locale/af/cdn.js create mode 100644 node_modules/date-fns/locale/af/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar-DZ.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar-DZ/cdn.js create mode 100644 node_modules/date-fns/locale/ar-DZ/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar-EG.cjs create mode 100644 node_modules/date-fns/locale/ar-EG.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar-EG/cdn.js create mode 100644 node_modules/date-fns/locale/ar-EG/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar-MA.cjs create mode 100644 node_modules/date-fns/locale/ar-MA.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar-MA/cdn.js create mode 100644 node_modules/date-fns/locale/ar-MA/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar-SA.cjs create mode 100644 node_modules/date-fns/locale/ar-SA.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar-SA/cdn.js create mode 100644 node_modules/date-fns/locale/ar-SA/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar-TN.cjs create mode 100644 node_modules/date-fns/locale/ar-TN.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar-TN/cdn.js create mode 100644 node_modules/date-fns/locale/ar-TN/cdn.min.js create mode 100644 node_modules/date-fns/locale/ar.cjs create mode 100644 node_modules/date-fns/locale/ar.d.cts create mode 100644 node_modules/date-fns/locale/ar.d.ts create mode 100644 node_modules/date-fns/locale/ar.js create mode 100644 node_modules/date-fns/locale/ar/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ar/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ar/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ar/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ar/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ar/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ar/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ar/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ar/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ar/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ar/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ar/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ar/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ar/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ar/_lib/match.js create mode 100644 node_modules/date-fns/locale/ar/cdn.js create mode 100644 node_modules/date-fns/locale/ar/cdn.min.js create mode 100644 node_modules/date-fns/locale/az.cjs create mode 100644 node_modules/date-fns/locale/az.d.cts create mode 100644 node_modules/date-fns/locale/az.d.ts create mode 100644 node_modules/date-fns/locale/az.js create mode 100644 node_modules/date-fns/locale/az/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/az/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/az/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/az/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/az/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/az/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/az/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/az/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/az/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/az/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/az/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/az/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/az/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/az/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/az/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/az/_lib/localize.js create mode 100644 node_modules/date-fns/locale/az/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/az/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/az/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/az/_lib/match.js create mode 100644 node_modules/date-fns/locale/az/cdn.js create mode 100644 node_modules/date-fns/locale/az/cdn.min.js create mode 100644 node_modules/date-fns/locale/be-tarask.cjs create mode 100644 node_modules/date-fns/locale/be-tarask.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/localize.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/match.js create mode 100644 node_modules/date-fns/locale/be-tarask/cdn.js create mode 100644 node_modules/date-fns/locale/be-tarask/cdn.min.js create mode 100644 node_modules/date-fns/locale/be.cjs create mode 100644 node_modules/date-fns/locale/be.d.cts create mode 100644 node_modules/date-fns/locale/be.d.ts create mode 100644 node_modules/date-fns/locale/be.js create mode 100644 node_modules/date-fns/locale/be/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/be/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/be/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/be/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/be/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/be/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/be/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/be/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/be/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/be/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/be/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/be/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/be/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/be/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/be/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/be/_lib/localize.js create mode 100644 node_modules/date-fns/locale/be/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/be/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/be/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/be/_lib/match.js create mode 100644 node_modules/date-fns/locale/be/cdn.js create mode 100644 node_modules/date-fns/locale/be/cdn.min.js create mode 100644 node_modules/date-fns/locale/bg.cjs create mode 100644 node_modules/date-fns/locale/bg.d.cts create mode 100644 node_modules/date-fns/locale/bg.d.ts create mode 100644 node_modules/date-fns/locale/bg.js create mode 100644 node_modules/date-fns/locale/bg/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/bg/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/bg/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/bg/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/bg/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/bg/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/bg/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/bg/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/bg/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/bg/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/bg/_lib/localize.js create mode 100644 node_modules/date-fns/locale/bg/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/bg/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/bg/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/bg/_lib/match.js create mode 100644 node_modules/date-fns/locale/bg/cdn.js create mode 100644 node_modules/date-fns/locale/bg/cdn.min.js create mode 100644 node_modules/date-fns/locale/bn.cjs create mode 100644 node_modules/date-fns/locale/bn.d.cts create mode 100644 node_modules/date-fns/locale/bn.d.ts create mode 100644 node_modules/date-fns/locale/bn.js create mode 100644 node_modules/date-fns/locale/bn/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/bn/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/bn/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/bn/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/bn/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/bn/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/bn/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/bn/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/bn/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/bn/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/bn/_lib/localize.js create mode 100644 node_modules/date-fns/locale/bn/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/bn/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/bn/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/bn/_lib/match.js create mode 100644 node_modules/date-fns/locale/bn/cdn.js create mode 100644 node_modules/date-fns/locale/bn/cdn.min.js create mode 100644 node_modules/date-fns/locale/bs.cjs create mode 100644 node_modules/date-fns/locale/bs.d.cts create mode 100644 node_modules/date-fns/locale/bs.d.ts create mode 100644 node_modules/date-fns/locale/bs.js create mode 100644 node_modules/date-fns/locale/bs/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/bs/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/bs/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/bs/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/bs/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/bs/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/bs/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/bs/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/bs/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/bs/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/bs/_lib/localize.js create mode 100644 node_modules/date-fns/locale/bs/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/bs/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/bs/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/bs/_lib/match.js create mode 100644 node_modules/date-fns/locale/bs/cdn.js create mode 100644 node_modules/date-fns/locale/bs/cdn.min.js create mode 100644 node_modules/date-fns/locale/ca.cjs create mode 100644 node_modules/date-fns/locale/ca.d.cts create mode 100644 node_modules/date-fns/locale/ca.d.ts create mode 100644 node_modules/date-fns/locale/ca.js create mode 100644 node_modules/date-fns/locale/ca/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ca/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ca/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ca/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ca/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ca/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ca/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ca/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ca/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ca/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ca/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ca/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ca/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ca/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ca/_lib/match.js create mode 100644 node_modules/date-fns/locale/ca/cdn.js create mode 100644 node_modules/date-fns/locale/ca/cdn.min.js create mode 100644 node_modules/date-fns/locale/cdn.js create mode 100644 node_modules/date-fns/locale/cdn.min.js create mode 100644 node_modules/date-fns/locale/ckb.cjs create mode 100644 node_modules/date-fns/locale/ckb.d.cts create mode 100644 node_modules/date-fns/locale/ckb.d.ts create mode 100644 node_modules/date-fns/locale/ckb.js create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ckb/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ckb/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ckb/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ckb/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ckb/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ckb/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ckb/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ckb/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ckb/_lib/match.js create mode 100644 node_modules/date-fns/locale/ckb/cdn.js create mode 100644 node_modules/date-fns/locale/ckb/cdn.min.js create mode 100644 node_modules/date-fns/locale/cs.cjs create mode 100644 node_modules/date-fns/locale/cs.d.cts create mode 100644 node_modules/date-fns/locale/cs.d.ts create mode 100644 node_modules/date-fns/locale/cs.js create mode 100644 node_modules/date-fns/locale/cs/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/cs/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/cs/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/cs/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/cs/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/cs/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/cs/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/cs/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/cs/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/cs/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/cs/_lib/localize.js create mode 100644 node_modules/date-fns/locale/cs/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/cs/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/cs/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/cs/_lib/match.js create mode 100644 node_modules/date-fns/locale/cs/cdn.js create mode 100644 node_modules/date-fns/locale/cs/cdn.min.js create mode 100644 node_modules/date-fns/locale/cy.cjs create mode 100644 node_modules/date-fns/locale/cy.d.cts create mode 100644 node_modules/date-fns/locale/cy.d.ts create mode 100644 node_modules/date-fns/locale/cy.js create mode 100644 node_modules/date-fns/locale/cy/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/cy/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/cy/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/cy/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/cy/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/cy/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/cy/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/cy/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/cy/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/cy/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/cy/_lib/localize.js create mode 100644 node_modules/date-fns/locale/cy/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/cy/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/cy/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/cy/_lib/match.js create mode 100644 node_modules/date-fns/locale/cy/cdn.js create mode 100644 node_modules/date-fns/locale/cy/cdn.min.js create mode 100644 node_modules/date-fns/locale/da.cjs create mode 100644 node_modules/date-fns/locale/da.d.cts create mode 100644 node_modules/date-fns/locale/da.d.ts create mode 100644 node_modules/date-fns/locale/da.js create mode 100644 node_modules/date-fns/locale/da/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/da/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/da/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/da/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/da/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/da/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/da/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/da/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/da/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/da/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/da/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/da/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/da/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/da/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/da/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/da/_lib/localize.js create mode 100644 node_modules/date-fns/locale/da/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/da/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/da/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/da/_lib/match.js create mode 100644 node_modules/date-fns/locale/da/cdn.js create mode 100644 node_modules/date-fns/locale/da/cdn.min.js create mode 100644 node_modules/date-fns/locale/de-AT.cjs create mode 100644 node_modules/date-fns/locale/de-AT.d.cts create mode 100644 node_modules/date-fns/locale/de-AT.d.ts create mode 100644 node_modules/date-fns/locale/de-AT.js create mode 100644 node_modules/date-fns/locale/de-AT/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/de-AT/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/de-AT/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/de-AT/_lib/localize.js create mode 100644 node_modules/date-fns/locale/de-AT/cdn.js create mode 100644 node_modules/date-fns/locale/de-AT/cdn.min.js create mode 100644 node_modules/date-fns/locale/de.cjs create mode 100644 node_modules/date-fns/locale/de.d.cts create mode 100644 node_modules/date-fns/locale/de.d.ts create mode 100644 node_modules/date-fns/locale/de.js create mode 100644 node_modules/date-fns/locale/de/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/de/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/de/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/de/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/de/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/de/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/de/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/de/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/de/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/de/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/de/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/de/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/de/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/de/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/de/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/de/_lib/localize.js create mode 100644 node_modules/date-fns/locale/de/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/de/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/de/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/de/_lib/match.js create mode 100644 node_modules/date-fns/locale/de/cdn.js create mode 100644 node_modules/date-fns/locale/de/cdn.min.js create mode 100644 node_modules/date-fns/locale/el.cjs create mode 100644 node_modules/date-fns/locale/el.d.cts create mode 100644 node_modules/date-fns/locale/el.d.ts create mode 100644 node_modules/date-fns/locale/el.js create mode 100644 node_modules/date-fns/locale/el/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/el/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/el/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/el/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/el/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/el/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/el/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/el/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/el/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/el/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/el/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/el/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/el/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/el/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/el/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/el/_lib/localize.js create mode 100644 node_modules/date-fns/locale/el/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/el/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/el/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/el/_lib/match.js create mode 100644 node_modules/date-fns/locale/el/cdn.js create mode 100644 node_modules/date-fns/locale/el/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-AU.cjs create mode 100644 node_modules/date-fns/locale/en-AU.d.cts create mode 100644 node_modules/date-fns/locale/en-AU.d.ts create mode 100644 node_modules/date-fns/locale/en-AU.js create mode 100644 node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-AU/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-AU/cdn.js create mode 100644 node_modules/date-fns/locale/en-AU/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-CA.cjs create mode 100644 node_modules/date-fns/locale/en-CA.d.cts create mode 100644 node_modules/date-fns/locale/en-CA.d.ts create mode 100644 node_modules/date-fns/locale/en-CA.js create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-CA/cdn.js create mode 100644 node_modules/date-fns/locale/en-CA/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-GB.cjs create mode 100644 node_modules/date-fns/locale/en-GB.d.cts create mode 100644 node_modules/date-fns/locale/en-GB.d.ts create mode 100644 node_modules/date-fns/locale/en-GB.js create mode 100644 node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-GB/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-GB/cdn.js create mode 100644 node_modules/date-fns/locale/en-GB/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-IE.cjs create mode 100644 node_modules/date-fns/locale/en-IE.d.cts create mode 100644 node_modules/date-fns/locale/en-IE.d.ts create mode 100644 node_modules/date-fns/locale/en-IE.js create mode 100644 node_modules/date-fns/locale/en-IE/cdn.js create mode 100644 node_modules/date-fns/locale/en-IE/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-IN.cjs create mode 100644 node_modules/date-fns/locale/en-IN.d.cts create mode 100644 node_modules/date-fns/locale/en-IN.d.ts create mode 100644 node_modules/date-fns/locale/en-IN.js create mode 100644 node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-IN/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-IN/cdn.js create mode 100644 node_modules/date-fns/locale/en-IN/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-NZ.cjs create mode 100644 node_modules/date-fns/locale/en-NZ.d.cts create mode 100644 node_modules/date-fns/locale/en-NZ.d.ts create mode 100644 node_modules/date-fns/locale/en-NZ.js create mode 100644 node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-NZ/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-NZ/cdn.js create mode 100644 node_modules/date-fns/locale/en-NZ/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-US.cjs create mode 100644 node_modules/date-fns/locale/en-US.d.cts create mode 100644 node_modules/date-fns/locale/en-US.d.ts create mode 100644 node_modules/date-fns/locale/en-US.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/en-US/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/en-US/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/en-US/_lib/localize.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/en-US/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/en-US/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/en-US/_lib/match.js create mode 100644 node_modules/date-fns/locale/en-US/cdn.js create mode 100644 node_modules/date-fns/locale/en-US/cdn.min.js create mode 100644 node_modules/date-fns/locale/en-ZA.cjs create mode 100644 node_modules/date-fns/locale/en-ZA.d.cts create mode 100644 node_modules/date-fns/locale/en-ZA.d.ts create mode 100644 node_modules/date-fns/locale/en-ZA.js create mode 100644 node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/en-ZA/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/en-ZA/cdn.js create mode 100644 node_modules/date-fns/locale/en-ZA/cdn.min.js create mode 100644 node_modules/date-fns/locale/eo.cjs create mode 100644 node_modules/date-fns/locale/eo.d.cts create mode 100644 node_modules/date-fns/locale/eo.d.ts create mode 100644 node_modules/date-fns/locale/eo.js create mode 100644 node_modules/date-fns/locale/eo/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/eo/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/eo/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/eo/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/eo/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/eo/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/eo/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/eo/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/eo/_lib/localize.js create mode 100644 node_modules/date-fns/locale/eo/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/eo/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/eo/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/eo/_lib/match.js create mode 100644 node_modules/date-fns/locale/eo/cdn.js create mode 100644 node_modules/date-fns/locale/eo/cdn.min.js create mode 100644 node_modules/date-fns/locale/es.cjs create mode 100644 node_modules/date-fns/locale/es.d.cts create mode 100644 node_modules/date-fns/locale/es.d.ts create mode 100644 node_modules/date-fns/locale/es.js create mode 100644 node_modules/date-fns/locale/es/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/es/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/es/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/es/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/es/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/es/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/es/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/es/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/es/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/es/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/es/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/es/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/es/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/es/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/es/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/es/_lib/localize.js create mode 100644 node_modules/date-fns/locale/es/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/es/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/es/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/es/_lib/match.js create mode 100644 node_modules/date-fns/locale/es/cdn.js create mode 100644 node_modules/date-fns/locale/es/cdn.min.js create mode 100644 node_modules/date-fns/locale/et.cjs create mode 100644 node_modules/date-fns/locale/et.d.cts create mode 100644 node_modules/date-fns/locale/et.d.ts create mode 100644 node_modules/date-fns/locale/et.js create mode 100644 node_modules/date-fns/locale/et/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/et/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/et/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/et/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/et/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/et/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/et/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/et/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/et/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/et/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/et/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/et/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/et/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/et/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/et/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/et/_lib/localize.js create mode 100644 node_modules/date-fns/locale/et/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/et/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/et/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/et/_lib/match.js create mode 100644 node_modules/date-fns/locale/et/cdn.js create mode 100644 node_modules/date-fns/locale/et/cdn.min.js create mode 100644 node_modules/date-fns/locale/eu.cjs create mode 100644 node_modules/date-fns/locale/eu.d.cts create mode 100644 node_modules/date-fns/locale/eu.d.ts create mode 100644 node_modules/date-fns/locale/eu.js create mode 100644 node_modules/date-fns/locale/eu/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/eu/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/eu/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/eu/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/eu/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/eu/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/eu/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/eu/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/eu/_lib/localize.js create mode 100644 node_modules/date-fns/locale/eu/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/eu/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/eu/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/eu/_lib/match.js create mode 100644 node_modules/date-fns/locale/eu/cdn.js create mode 100644 node_modules/date-fns/locale/eu/cdn.min.js create mode 100644 node_modules/date-fns/locale/fa-IR.cjs create mode 100644 node_modules/date-fns/locale/fa-IR.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/localize.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/match.js create mode 100644 node_modules/date-fns/locale/fa-IR/cdn.js create mode 100644 node_modules/date-fns/locale/fa-IR/cdn.min.js create mode 100644 node_modules/date-fns/locale/fi.cjs create mode 100644 node_modules/date-fns/locale/fi.d.cts create mode 100644 node_modules/date-fns/locale/fi.d.ts create mode 100644 node_modules/date-fns/locale/fi.js create mode 100644 node_modules/date-fns/locale/fi/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/fi/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fi/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fi/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/fi/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/fi/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/fi/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/fi/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/fi/_lib/localize.js create mode 100644 node_modules/date-fns/locale/fi/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/fi/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/fi/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/fi/_lib/match.js create mode 100644 node_modules/date-fns/locale/fi/cdn.js create mode 100644 node_modules/date-fns/locale/fi/cdn.min.js create mode 100644 node_modules/date-fns/locale/fr-CA.cjs create mode 100644 node_modules/date-fns/locale/fr-CA.d.cts create mode 100644 node_modules/date-fns/locale/fr-CA.d.ts create mode 100644 node_modules/date-fns/locale/fr-CA.js create mode 100644 node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fr-CA/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fr-CA/cdn.js create mode 100644 node_modules/date-fns/locale/fr-CA/cdn.min.js create mode 100644 node_modules/date-fns/locale/fr-CH.cjs create mode 100644 node_modules/date-fns/locale/fr-CH.d.cts create mode 100644 node_modules/date-fns/locale/fr-CH.d.ts create mode 100644 node_modules/date-fns/locale/fr-CH.js create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/fr-CH/cdn.js create mode 100644 node_modules/date-fns/locale/fr-CH/cdn.min.js create mode 100644 node_modules/date-fns/locale/fr.cjs create mode 100644 node_modules/date-fns/locale/fr.d.cts create mode 100644 node_modules/date-fns/locale/fr.d.ts create mode 100644 node_modules/date-fns/locale/fr.js create mode 100644 node_modules/date-fns/locale/fr/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/fr/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fr/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fr/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/fr/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/fr/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/fr/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/fr/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/fr/_lib/localize.js create mode 100644 node_modules/date-fns/locale/fr/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/fr/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/fr/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/fr/_lib/match.js create mode 100644 node_modules/date-fns/locale/fr/cdn.js create mode 100644 node_modules/date-fns/locale/fr/cdn.min.js create mode 100644 node_modules/date-fns/locale/fy.cjs create mode 100644 node_modules/date-fns/locale/fy.d.cts create mode 100644 node_modules/date-fns/locale/fy.d.ts create mode 100644 node_modules/date-fns/locale/fy.js create mode 100644 node_modules/date-fns/locale/fy/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/fy/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/fy/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/fy/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/fy/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/fy/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/fy/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/fy/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/fy/_lib/localize.js create mode 100644 node_modules/date-fns/locale/fy/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/fy/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/fy/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/fy/_lib/match.js create mode 100644 node_modules/date-fns/locale/fy/cdn.js create mode 100644 node_modules/date-fns/locale/fy/cdn.min.js create mode 100644 node_modules/date-fns/locale/gd.cjs create mode 100644 node_modules/date-fns/locale/gd.d.cts create mode 100644 node_modules/date-fns/locale/gd.d.ts create mode 100644 node_modules/date-fns/locale/gd.js create mode 100644 node_modules/date-fns/locale/gd/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/gd/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/gd/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/gd/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/gd/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/gd/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/gd/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/gd/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/gd/_lib/localize.js create mode 100644 node_modules/date-fns/locale/gd/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/gd/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/gd/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/gd/_lib/match.js create mode 100644 node_modules/date-fns/locale/gd/cdn.js create mode 100644 node_modules/date-fns/locale/gd/cdn.min.js create mode 100644 node_modules/date-fns/locale/gl.cjs create mode 100644 node_modules/date-fns/locale/gl.d.cts create mode 100644 node_modules/date-fns/locale/gl.d.ts create mode 100644 node_modules/date-fns/locale/gl.js create mode 100644 node_modules/date-fns/locale/gl/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/gl/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/gl/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/gl/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/gl/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/gl/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/gl/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/gl/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/gl/_lib/localize.js create mode 100644 node_modules/date-fns/locale/gl/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/gl/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/gl/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/gl/_lib/match.js create mode 100644 node_modules/date-fns/locale/gl/cdn.js create mode 100644 node_modules/date-fns/locale/gl/cdn.min.js create mode 100644 node_modules/date-fns/locale/gu.cjs create mode 100644 node_modules/date-fns/locale/gu.d.cts create mode 100644 node_modules/date-fns/locale/gu.d.ts create mode 100644 node_modules/date-fns/locale/gu.js create mode 100644 node_modules/date-fns/locale/gu/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/gu/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/gu/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/gu/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/gu/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/gu/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/gu/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/gu/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/gu/_lib/localize.js create mode 100644 node_modules/date-fns/locale/gu/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/gu/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/gu/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/gu/_lib/match.js create mode 100644 node_modules/date-fns/locale/gu/cdn.js create mode 100644 node_modules/date-fns/locale/gu/cdn.min.js create mode 100644 node_modules/date-fns/locale/he.cjs create mode 100644 node_modules/date-fns/locale/he.d.cts create mode 100644 node_modules/date-fns/locale/he.d.ts create mode 100644 node_modules/date-fns/locale/he.js create mode 100644 node_modules/date-fns/locale/he/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/he/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/he/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/he/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/he/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/he/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/he/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/he/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/he/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/he/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/he/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/he/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/he/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/he/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/he/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/he/_lib/localize.js create mode 100644 node_modules/date-fns/locale/he/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/he/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/he/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/he/_lib/match.js create mode 100644 node_modules/date-fns/locale/he/cdn.js create mode 100644 node_modules/date-fns/locale/he/cdn.min.js create mode 100644 node_modules/date-fns/locale/hi.cjs create mode 100644 node_modules/date-fns/locale/hi.d.cts create mode 100644 node_modules/date-fns/locale/hi.d.ts create mode 100644 node_modules/date-fns/locale/hi.js create mode 100644 node_modules/date-fns/locale/hi/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/hi/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/hi/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/hi/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/hi/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/hi/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/hi/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/hi/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/hi/_lib/localize.js create mode 100644 node_modules/date-fns/locale/hi/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/hi/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/hi/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/hi/_lib/match.js create mode 100644 node_modules/date-fns/locale/hi/cdn.js create mode 100644 node_modules/date-fns/locale/hi/cdn.min.js create mode 100644 node_modules/date-fns/locale/hr.cjs create mode 100644 node_modules/date-fns/locale/hr.d.cts create mode 100644 node_modules/date-fns/locale/hr.d.ts create mode 100644 node_modules/date-fns/locale/hr.js create mode 100644 node_modules/date-fns/locale/hr/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/hr/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/hr/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/hr/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/hr/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/hr/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/hr/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/hr/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/hr/_lib/localize.js create mode 100644 node_modules/date-fns/locale/hr/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/hr/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/hr/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/hr/_lib/match.js create mode 100644 node_modules/date-fns/locale/hr/cdn.js create mode 100644 node_modules/date-fns/locale/hr/cdn.min.js create mode 100644 node_modules/date-fns/locale/ht.cjs create mode 100644 node_modules/date-fns/locale/ht.d.cts create mode 100644 node_modules/date-fns/locale/ht.d.ts create mode 100644 node_modules/date-fns/locale/ht.js create mode 100644 node_modules/date-fns/locale/ht/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ht/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ht/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ht/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ht/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ht/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ht/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ht/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ht/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ht/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ht/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ht/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ht/_lib/match.js create mode 100644 node_modules/date-fns/locale/ht/cdn.js create mode 100644 node_modules/date-fns/locale/ht/cdn.min.js create mode 100644 node_modules/date-fns/locale/hu.cjs create mode 100644 node_modules/date-fns/locale/hu.d.cts create mode 100644 node_modules/date-fns/locale/hu.d.ts create mode 100644 node_modules/date-fns/locale/hu.js create mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/hu/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/hu/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/hu/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/hu/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/hu/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/hu/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/hu/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/hu/_lib/localize.js create mode 100644 node_modules/date-fns/locale/hu/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/hu/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/hu/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/hu/_lib/match.js create mode 100644 node_modules/date-fns/locale/hu/cdn.js create mode 100644 node_modules/date-fns/locale/hu/cdn.min.js create mode 100644 node_modules/date-fns/locale/hy.cjs create mode 100644 node_modules/date-fns/locale/hy.d.cts create mode 100644 node_modules/date-fns/locale/hy.d.ts create mode 100644 node_modules/date-fns/locale/hy.js create mode 100644 node_modules/date-fns/locale/hy/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/hy/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/hy/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/hy/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/hy/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/hy/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/hy/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/hy/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/hy/_lib/localize.js create mode 100644 node_modules/date-fns/locale/hy/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/hy/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/hy/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/hy/_lib/match.js create mode 100644 node_modules/date-fns/locale/hy/cdn.js create mode 100644 node_modules/date-fns/locale/hy/cdn.min.js create mode 100644 node_modules/date-fns/locale/id.cjs create mode 100644 node_modules/date-fns/locale/id.d.cts create mode 100644 node_modules/date-fns/locale/id.d.ts create mode 100644 node_modules/date-fns/locale/id.js create mode 100644 node_modules/date-fns/locale/id/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/id/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/id/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/id/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/id/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/id/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/id/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/id/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/id/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/id/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/id/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/id/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/id/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/id/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/id/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/id/_lib/localize.js create mode 100644 node_modules/date-fns/locale/id/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/id/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/id/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/id/_lib/match.js create mode 100644 node_modules/date-fns/locale/id/cdn.js create mode 100644 node_modules/date-fns/locale/id/cdn.min.js create mode 100644 node_modules/date-fns/locale/is.cjs create mode 100644 node_modules/date-fns/locale/is.d.cts create mode 100644 node_modules/date-fns/locale/is.d.ts create mode 100644 node_modules/date-fns/locale/is.js create mode 100644 node_modules/date-fns/locale/is/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/is/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/is/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/is/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/is/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/is/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/is/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/is/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/is/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/is/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/is/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/is/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/is/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/is/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/is/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/is/_lib/localize.js create mode 100644 node_modules/date-fns/locale/is/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/is/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/is/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/is/_lib/match.js create mode 100644 node_modules/date-fns/locale/is/cdn.js create mode 100644 node_modules/date-fns/locale/is/cdn.min.js create mode 100644 node_modules/date-fns/locale/it-CH.cjs create mode 100644 node_modules/date-fns/locale/it-CH.d.cts create mode 100644 node_modules/date-fns/locale/it-CH.d.ts create mode 100644 node_modules/date-fns/locale/it-CH.js create mode 100644 node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/it-CH/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/it-CH/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/it-CH/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/it-CH/cdn.js create mode 100644 node_modules/date-fns/locale/it-CH/cdn.min.js create mode 100644 node_modules/date-fns/locale/it.cjs create mode 100644 node_modules/date-fns/locale/it.d.cts create mode 100644 node_modules/date-fns/locale/it.d.ts create mode 100644 node_modules/date-fns/locale/it.js create mode 100644 node_modules/date-fns/locale/it/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/it/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/it/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/it/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/it/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/it/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/it/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/it/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/it/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/it/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/it/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/it/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/it/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/it/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/it/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/it/_lib/localize.js create mode 100644 node_modules/date-fns/locale/it/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/it/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/it/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/it/_lib/match.js create mode 100644 node_modules/date-fns/locale/it/cdn.js create mode 100644 node_modules/date-fns/locale/it/cdn.min.js create mode 100644 node_modules/date-fns/locale/ja-Hira.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/match.js create mode 100644 node_modules/date-fns/locale/ja-Hira/cdn.js create mode 100644 node_modules/date-fns/locale/ja-Hira/cdn.min.js create mode 100644 node_modules/date-fns/locale/ja.cjs create mode 100644 node_modules/date-fns/locale/ja.d.cts create mode 100644 node_modules/date-fns/locale/ja.d.ts create mode 100644 node_modules/date-fns/locale/ja.js create mode 100644 node_modules/date-fns/locale/ja/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ja/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ja/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ja/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ja/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ja/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ja/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ja/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ja/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ja/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ja/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ja/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ja/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ja/_lib/match.js create mode 100644 node_modules/date-fns/locale/ja/cdn.js create mode 100644 node_modules/date-fns/locale/ja/cdn.min.js create mode 100644 node_modules/date-fns/locale/ka.cjs create mode 100644 node_modules/date-fns/locale/ka.d.cts create mode 100644 node_modules/date-fns/locale/ka.d.ts create mode 100644 node_modules/date-fns/locale/ka.js create mode 100644 node_modules/date-fns/locale/ka/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ka/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ka/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ka/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ka/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ka/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ka/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ka/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ka/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ka/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ka/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ka/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ka/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ka/_lib/match.js create mode 100644 node_modules/date-fns/locale/ka/cdn.js create mode 100644 node_modules/date-fns/locale/ka/cdn.min.js create mode 100644 node_modules/date-fns/locale/kk.cjs create mode 100644 node_modules/date-fns/locale/kk.d.cts create mode 100644 node_modules/date-fns/locale/kk.d.ts create mode 100644 node_modules/date-fns/locale/kk.js create mode 100644 node_modules/date-fns/locale/kk/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/kk/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/kk/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/kk/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/kk/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/kk/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/kk/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/kk/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/kk/_lib/localize.js create mode 100644 node_modules/date-fns/locale/kk/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/kk/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/kk/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/kk/_lib/match.js create mode 100644 node_modules/date-fns/locale/kk/cdn.js create mode 100644 node_modules/date-fns/locale/kk/cdn.min.js create mode 100644 node_modules/date-fns/locale/km.cjs create mode 100644 node_modules/date-fns/locale/km.d.cts create mode 100644 node_modules/date-fns/locale/km.d.ts create mode 100644 node_modules/date-fns/locale/km.js create mode 100644 node_modules/date-fns/locale/km/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/km/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/km/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/km/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/km/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/km/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/km/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/km/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/km/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/km/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/km/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/km/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/km/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/km/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/km/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/km/_lib/localize.js create mode 100644 node_modules/date-fns/locale/km/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/km/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/km/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/km/_lib/match.js create mode 100644 node_modules/date-fns/locale/km/cdn.js create mode 100644 node_modules/date-fns/locale/km/cdn.min.js create mode 100644 node_modules/date-fns/locale/kn.cjs create mode 100644 node_modules/date-fns/locale/kn.d.cts create mode 100644 node_modules/date-fns/locale/kn.d.ts create mode 100644 node_modules/date-fns/locale/kn.js create mode 100644 node_modules/date-fns/locale/kn/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/kn/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/kn/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/kn/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/kn/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/kn/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/kn/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/kn/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/kn/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/kn/_lib/localize.js create mode 100644 node_modules/date-fns/locale/kn/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/kn/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/kn/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/kn/_lib/match.js create mode 100644 node_modules/date-fns/locale/kn/cdn.js create mode 100644 node_modules/date-fns/locale/kn/cdn.min.js create mode 100644 node_modules/date-fns/locale/ko.cjs create mode 100644 node_modules/date-fns/locale/ko.d.cts create mode 100644 node_modules/date-fns/locale/ko.d.ts create mode 100644 node_modules/date-fns/locale/ko.js create mode 100644 node_modules/date-fns/locale/ko/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ko/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ko/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ko/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ko/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ko/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ko/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ko/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ko/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ko/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ko/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ko/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ko/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ko/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ko/_lib/match.js create mode 100644 node_modules/date-fns/locale/ko/cdn.js create mode 100644 node_modules/date-fns/locale/ko/cdn.min.js create mode 100644 node_modules/date-fns/locale/lb.cjs create mode 100644 node_modules/date-fns/locale/lb.d.cts create mode 100644 node_modules/date-fns/locale/lb.d.ts create mode 100644 node_modules/date-fns/locale/lb.js create mode 100644 node_modules/date-fns/locale/lb/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/lb/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/lb/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/lb/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/lb/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/lb/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/lb/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/lb/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/lb/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/lb/_lib/localize.js create mode 100644 node_modules/date-fns/locale/lb/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/lb/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/lb/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/lb/_lib/match.js create mode 100644 node_modules/date-fns/locale/lb/cdn.js create mode 100644 node_modules/date-fns/locale/lb/cdn.min.js create mode 100644 node_modules/date-fns/locale/lt.cjs create mode 100644 node_modules/date-fns/locale/lt.d.cts create mode 100644 node_modules/date-fns/locale/lt.d.ts create mode 100644 node_modules/date-fns/locale/lt.js create mode 100644 node_modules/date-fns/locale/lt/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/lt/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/lt/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/lt/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/lt/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/lt/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/lt/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/lt/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/lt/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/lt/_lib/localize.js create mode 100644 node_modules/date-fns/locale/lt/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/lt/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/lt/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/lt/_lib/match.js create mode 100644 node_modules/date-fns/locale/lt/cdn.js create mode 100644 node_modules/date-fns/locale/lt/cdn.min.js create mode 100644 node_modules/date-fns/locale/lv.cjs create mode 100644 node_modules/date-fns/locale/lv.d.cts create mode 100644 node_modules/date-fns/locale/lv.d.ts create mode 100644 node_modules/date-fns/locale/lv.js create mode 100644 node_modules/date-fns/locale/lv/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/lv/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/lv/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/lv/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/lv/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/lv/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/lv/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/lv/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/lv/_lib/localize.js create mode 100644 node_modules/date-fns/locale/lv/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/lv/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/lv/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/lv/_lib/match.js create mode 100644 node_modules/date-fns/locale/lv/cdn.js create mode 100644 node_modules/date-fns/locale/lv/cdn.min.js create mode 100644 node_modules/date-fns/locale/mk.cjs create mode 100644 node_modules/date-fns/locale/mk.d.cts create mode 100644 node_modules/date-fns/locale/mk.d.ts create mode 100644 node_modules/date-fns/locale/mk.js create mode 100644 node_modules/date-fns/locale/mk/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/mk/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/mk/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/mk/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/mk/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/mk/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/mk/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/mk/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/mk/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/mk/_lib/localize.js create mode 100644 node_modules/date-fns/locale/mk/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/mk/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/mk/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/mk/_lib/match.js create mode 100644 node_modules/date-fns/locale/mk/cdn.js create mode 100644 node_modules/date-fns/locale/mk/cdn.min.js create mode 100644 node_modules/date-fns/locale/mn.cjs create mode 100644 node_modules/date-fns/locale/mn.d.cts create mode 100644 node_modules/date-fns/locale/mn.d.ts create mode 100644 node_modules/date-fns/locale/mn.js create mode 100644 node_modules/date-fns/locale/mn/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/mn/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/mn/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/mn/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/mn/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/mn/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/mn/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/mn/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/mn/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/mn/_lib/localize.js create mode 100644 node_modules/date-fns/locale/mn/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/mn/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/mn/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/mn/_lib/match.js create mode 100644 node_modules/date-fns/locale/mn/cdn.js create mode 100644 node_modules/date-fns/locale/mn/cdn.min.js create mode 100644 node_modules/date-fns/locale/ms.cjs create mode 100644 node_modules/date-fns/locale/ms.d.cts create mode 100644 node_modules/date-fns/locale/ms.d.ts create mode 100644 node_modules/date-fns/locale/ms.js create mode 100644 node_modules/date-fns/locale/ms/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ms/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ms/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ms/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ms/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ms/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ms/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ms/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ms/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ms/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ms/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ms/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ms/_lib/match.js create mode 100644 node_modules/date-fns/locale/ms/cdn.js create mode 100644 node_modules/date-fns/locale/ms/cdn.min.js create mode 100644 node_modules/date-fns/locale/mt.cjs create mode 100644 node_modules/date-fns/locale/mt.d.cts create mode 100644 node_modules/date-fns/locale/mt.d.ts create mode 100644 node_modules/date-fns/locale/mt.js create mode 100644 node_modules/date-fns/locale/mt/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/mt/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/mt/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/mt/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/mt/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/mt/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/mt/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/mt/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/mt/_lib/localize.js create mode 100644 node_modules/date-fns/locale/mt/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/mt/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/mt/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/mt/_lib/match.js create mode 100644 node_modules/date-fns/locale/mt/cdn.js create mode 100644 node_modules/date-fns/locale/mt/cdn.min.js create mode 100644 node_modules/date-fns/locale/nb.cjs create mode 100644 node_modules/date-fns/locale/nb.d.cts create mode 100644 node_modules/date-fns/locale/nb.d.ts create mode 100644 node_modules/date-fns/locale/nb.js create mode 100644 node_modules/date-fns/locale/nb/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/nb/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/nb/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/nb/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/nb/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/nb/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/nb/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/nb/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/nb/_lib/localize.js create mode 100644 node_modules/date-fns/locale/nb/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/nb/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/nb/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/nb/_lib/match.js create mode 100644 node_modules/date-fns/locale/nb/cdn.js create mode 100644 node_modules/date-fns/locale/nb/cdn.min.js create mode 100644 node_modules/date-fns/locale/nl-BE.cjs create mode 100644 node_modules/date-fns/locale/nl-BE.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/localize.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/match.js create mode 100644 node_modules/date-fns/locale/nl-BE/cdn.js create mode 100644 node_modules/date-fns/locale/nl-BE/cdn.min.js create mode 100644 node_modules/date-fns/locale/nl.cjs create mode 100644 node_modules/date-fns/locale/nl.d.cts create mode 100644 node_modules/date-fns/locale/nl.d.ts create mode 100644 node_modules/date-fns/locale/nl.js create mode 100644 node_modules/date-fns/locale/nl/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/nl/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/nl/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/nl/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/nl/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/nl/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/nl/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/nl/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/nl/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/nl/_lib/localize.js create mode 100644 node_modules/date-fns/locale/nl/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/nl/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/nl/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/nl/_lib/match.js create mode 100644 node_modules/date-fns/locale/nl/cdn.js create mode 100644 node_modules/date-fns/locale/nl/cdn.min.js create mode 100644 node_modules/date-fns/locale/nn.cjs create mode 100644 node_modules/date-fns/locale/nn.d.cts create mode 100644 node_modules/date-fns/locale/nn.d.ts create mode 100644 node_modules/date-fns/locale/nn.js create mode 100644 node_modules/date-fns/locale/nn/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/nn/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/nn/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/nn/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/nn/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/nn/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/nn/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/nn/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/nn/_lib/localize.js create mode 100644 node_modules/date-fns/locale/nn/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/nn/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/nn/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/nn/_lib/match.js create mode 100644 node_modules/date-fns/locale/nn/cdn.js create mode 100644 node_modules/date-fns/locale/nn/cdn.min.js create mode 100644 node_modules/date-fns/locale/oc.cjs create mode 100644 node_modules/date-fns/locale/oc.d.cts create mode 100644 node_modules/date-fns/locale/oc.d.ts create mode 100644 node_modules/date-fns/locale/oc.js create mode 100644 node_modules/date-fns/locale/oc/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/oc/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/oc/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/oc/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/oc/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/oc/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/oc/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/oc/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/oc/_lib/localize.js create mode 100644 node_modules/date-fns/locale/oc/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/oc/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/oc/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/oc/_lib/match.js create mode 100644 node_modules/date-fns/locale/oc/cdn.js create mode 100644 node_modules/date-fns/locale/oc/cdn.min.js create mode 100644 node_modules/date-fns/locale/pl.cjs create mode 100644 node_modules/date-fns/locale/pl.d.cts create mode 100644 node_modules/date-fns/locale/pl.d.ts create mode 100644 node_modules/date-fns/locale/pl.js create mode 100644 node_modules/date-fns/locale/pl/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/pl/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/pl/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/pl/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/pl/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/pl/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/pl/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/pl/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/pl/_lib/localize.js create mode 100644 node_modules/date-fns/locale/pl/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/pl/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/pl/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/pl/_lib/match.js create mode 100644 node_modules/date-fns/locale/pl/cdn.js create mode 100644 node_modules/date-fns/locale/pl/cdn.min.js create mode 100644 node_modules/date-fns/locale/pt-BR.cjs create mode 100644 node_modules/date-fns/locale/pt-BR.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/localize.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/match.js create mode 100644 node_modules/date-fns/locale/pt-BR/cdn.js create mode 100644 node_modules/date-fns/locale/pt-BR/cdn.min.js create mode 100644 node_modules/date-fns/locale/pt.cjs create mode 100644 node_modules/date-fns/locale/pt.d.cts create mode 100644 node_modules/date-fns/locale/pt.d.ts create mode 100644 node_modules/date-fns/locale/pt.js create mode 100644 node_modules/date-fns/locale/pt/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/pt/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/pt/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/pt/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/pt/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/pt/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/pt/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/pt/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/pt/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/pt/_lib/localize.js create mode 100644 node_modules/date-fns/locale/pt/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/pt/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/pt/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/pt/_lib/match.js create mode 100644 node_modules/date-fns/locale/pt/cdn.js create mode 100644 node_modules/date-fns/locale/pt/cdn.min.js create mode 100644 node_modules/date-fns/locale/ro.cjs create mode 100644 node_modules/date-fns/locale/ro.d.cts create mode 100644 node_modules/date-fns/locale/ro.d.ts create mode 100644 node_modules/date-fns/locale/ro.js create mode 100644 node_modules/date-fns/locale/ro/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ro/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ro/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ro/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ro/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ro/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ro/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ro/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ro/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ro/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ro/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ro/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ro/_lib/match.js create mode 100644 node_modules/date-fns/locale/ro/cdn.js create mode 100644 node_modules/date-fns/locale/ro/cdn.min.js create mode 100644 node_modules/date-fns/locale/ru.cjs create mode 100644 node_modules/date-fns/locale/ru.d.cts create mode 100644 node_modules/date-fns/locale/ru.d.ts create mode 100644 node_modules/date-fns/locale/ru.js create mode 100644 node_modules/date-fns/locale/ru/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ru/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ru/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ru/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ru/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ru/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ru/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ru/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ru/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ru/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ru/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ru/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ru/_lib/match.js create mode 100644 node_modules/date-fns/locale/ru/cdn.js create mode 100644 node_modules/date-fns/locale/ru/cdn.min.js create mode 100644 node_modules/date-fns/locale/se.cjs create mode 100644 node_modules/date-fns/locale/se.d.cts create mode 100644 node_modules/date-fns/locale/se.d.ts create mode 100644 node_modules/date-fns/locale/se.js create mode 100644 node_modules/date-fns/locale/se/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/se/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/se/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/se/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/se/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/se/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/se/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/se/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/se/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/se/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/se/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/se/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/se/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/se/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/se/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/se/_lib/localize.js create mode 100644 node_modules/date-fns/locale/se/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/se/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/se/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/se/_lib/match.js create mode 100644 node_modules/date-fns/locale/se/cdn.js create mode 100644 node_modules/date-fns/locale/se/cdn.min.js create mode 100644 node_modules/date-fns/locale/sk.cjs create mode 100644 node_modules/date-fns/locale/sk.d.cts create mode 100644 node_modules/date-fns/locale/sk.d.ts create mode 100644 node_modules/date-fns/locale/sk.js create mode 100644 node_modules/date-fns/locale/sk/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sk/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sk/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sk/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sk/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sk/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sk/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sk/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sk/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sk/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sk/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sk/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sk/_lib/match.js create mode 100644 node_modules/date-fns/locale/sk/cdn.js create mode 100644 node_modules/date-fns/locale/sk/cdn.min.js create mode 100644 node_modules/date-fns/locale/sl.cjs create mode 100644 node_modules/date-fns/locale/sl.d.cts create mode 100644 node_modules/date-fns/locale/sl.d.ts create mode 100644 node_modules/date-fns/locale/sl.js create mode 100644 node_modules/date-fns/locale/sl/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sl/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sl/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sl/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sl/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sl/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sl/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sl/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sl/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sl/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sl/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sl/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sl/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sl/_lib/match.js create mode 100644 node_modules/date-fns/locale/sl/cdn.js create mode 100644 node_modules/date-fns/locale/sl/cdn.min.js create mode 100644 node_modules/date-fns/locale/sq.cjs create mode 100644 node_modules/date-fns/locale/sq.d.cts create mode 100644 node_modules/date-fns/locale/sq.d.ts create mode 100644 node_modules/date-fns/locale/sq.js create mode 100644 node_modules/date-fns/locale/sq/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sq/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sq/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sq/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sq/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sq/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sq/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sq/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sq/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sq/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sq/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sq/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sq/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sq/_lib/match.js create mode 100644 node_modules/date-fns/locale/sq/cdn.js create mode 100644 node_modules/date-fns/locale/sq/cdn.min.js create mode 100644 node_modules/date-fns/locale/sr-Latn.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/match.js create mode 100644 node_modules/date-fns/locale/sr-Latn/cdn.js create mode 100644 node_modules/date-fns/locale/sr-Latn/cdn.min.js create mode 100644 node_modules/date-fns/locale/sr.cjs create mode 100644 node_modules/date-fns/locale/sr.d.cts create mode 100644 node_modules/date-fns/locale/sr.d.ts create mode 100644 node_modules/date-fns/locale/sr.js create mode 100644 node_modules/date-fns/locale/sr/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sr/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sr/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sr/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sr/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sr/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sr/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sr/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sr/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sr/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sr/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sr/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sr/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sr/_lib/match.js create mode 100644 node_modules/date-fns/locale/sr/cdn.js create mode 100644 node_modules/date-fns/locale/sr/cdn.min.js create mode 100644 node_modules/date-fns/locale/sv.cjs create mode 100644 node_modules/date-fns/locale/sv.d.cts create mode 100644 node_modules/date-fns/locale/sv.d.ts create mode 100644 node_modules/date-fns/locale/sv.js create mode 100644 node_modules/date-fns/locale/sv/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/sv/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/sv/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/sv/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/sv/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/sv/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/sv/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/sv/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/sv/_lib/localize.js create mode 100644 node_modules/date-fns/locale/sv/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/sv/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/sv/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/sv/_lib/match.js create mode 100644 node_modules/date-fns/locale/sv/cdn.js create mode 100644 node_modules/date-fns/locale/sv/cdn.min.js create mode 100644 node_modules/date-fns/locale/ta.cjs create mode 100644 node_modules/date-fns/locale/ta.d.cts create mode 100644 node_modules/date-fns/locale/ta.d.ts create mode 100644 node_modules/date-fns/locale/ta.js create mode 100644 node_modules/date-fns/locale/ta/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ta/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ta/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ta/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ta/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ta/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ta/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ta/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ta/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ta/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ta/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ta/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ta/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ta/_lib/match.js create mode 100644 node_modules/date-fns/locale/ta/cdn.js create mode 100644 node_modules/date-fns/locale/ta/cdn.min.js create mode 100644 node_modules/date-fns/locale/te.cjs create mode 100644 node_modules/date-fns/locale/te.d.cts create mode 100644 node_modules/date-fns/locale/te.d.ts create mode 100644 node_modules/date-fns/locale/te.js create mode 100644 node_modules/date-fns/locale/te/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/te/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/te/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/te/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/te/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/te/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/te/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/te/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/te/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/te/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/te/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/te/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/te/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/te/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/te/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/te/_lib/localize.js create mode 100644 node_modules/date-fns/locale/te/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/te/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/te/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/te/_lib/match.js create mode 100644 node_modules/date-fns/locale/te/cdn.js create mode 100644 node_modules/date-fns/locale/te/cdn.min.js create mode 100644 node_modules/date-fns/locale/th.cjs create mode 100644 node_modules/date-fns/locale/th.d.cts create mode 100644 node_modules/date-fns/locale/th.d.ts create mode 100644 node_modules/date-fns/locale/th.js create mode 100644 node_modules/date-fns/locale/th/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/th/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/th/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/th/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/th/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/th/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/th/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/th/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/th/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/th/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/th/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/th/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/th/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/th/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/th/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/th/_lib/localize.js create mode 100644 node_modules/date-fns/locale/th/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/th/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/th/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/th/_lib/match.js create mode 100644 node_modules/date-fns/locale/th/cdn.js create mode 100644 node_modules/date-fns/locale/th/cdn.min.js create mode 100644 node_modules/date-fns/locale/tr.cjs create mode 100644 node_modules/date-fns/locale/tr.d.cts create mode 100644 node_modules/date-fns/locale/tr.d.ts create mode 100644 node_modules/date-fns/locale/tr.js create mode 100644 node_modules/date-fns/locale/tr/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/tr/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/tr/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/tr/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/tr/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/tr/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/tr/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/tr/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/tr/_lib/localize.js create mode 100644 node_modules/date-fns/locale/tr/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/tr/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/tr/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/tr/_lib/match.js create mode 100644 node_modules/date-fns/locale/tr/cdn.js create mode 100644 node_modules/date-fns/locale/tr/cdn.min.js create mode 100644 node_modules/date-fns/locale/types.cjs create mode 100644 node_modules/date-fns/locale/types.d.cts create mode 100644 node_modules/date-fns/locale/types.d.ts create mode 100644 node_modules/date-fns/locale/types.js create mode 100644 node_modules/date-fns/locale/ug.cjs create mode 100644 node_modules/date-fns/locale/ug.d.cts create mode 100644 node_modules/date-fns/locale/ug.d.ts create mode 100644 node_modules/date-fns/locale/ug.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/ug/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/ug/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/ug/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/ug/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/ug/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/ug/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/ug/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/ug/_lib/localize.js create mode 100644 node_modules/date-fns/locale/ug/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/ug/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/ug/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/ug/_lib/match.js create mode 100644 node_modules/date-fns/locale/ug/cdn.js create mode 100644 node_modules/date-fns/locale/ug/cdn.min.js create mode 100644 node_modules/date-fns/locale/uk.cjs create mode 100644 node_modules/date-fns/locale/uk.d.cts create mode 100644 node_modules/date-fns/locale/uk.d.ts create mode 100644 node_modules/date-fns/locale/uk.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/uk/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/uk/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/uk/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/uk/_lib/localize.js create mode 100644 node_modules/date-fns/locale/uk/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/uk/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/uk/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/uk/_lib/match.js create mode 100644 node_modules/date-fns/locale/uk/cdn.js create mode 100644 node_modules/date-fns/locale/uk/cdn.min.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/localize.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/match.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/cdn.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/cdn.min.js create mode 100644 node_modules/date-fns/locale/uz.cjs create mode 100644 node_modules/date-fns/locale/uz.d.cts create mode 100644 node_modules/date-fns/locale/uz.d.ts create mode 100644 node_modules/date-fns/locale/uz.js create mode 100644 node_modules/date-fns/locale/uz/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/uz/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/uz/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/uz/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/uz/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/uz/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/uz/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/uz/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/uz/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/uz/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/uz/_lib/localize.js create mode 100644 node_modules/date-fns/locale/uz/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/uz/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/uz/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/uz/_lib/match.js create mode 100644 node_modules/date-fns/locale/uz/cdn.js create mode 100644 node_modules/date-fns/locale/uz/cdn.min.js create mode 100644 node_modules/date-fns/locale/vi.cjs create mode 100644 node_modules/date-fns/locale/vi.d.cts create mode 100644 node_modules/date-fns/locale/vi.d.ts create mode 100644 node_modules/date-fns/locale/vi.js create mode 100644 node_modules/date-fns/locale/vi/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/vi/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/vi/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/vi/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/vi/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/vi/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/vi/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/vi/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/vi/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/vi/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/vi/_lib/localize.js create mode 100644 node_modules/date-fns/locale/vi/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/vi/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/vi/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/vi/_lib/match.js create mode 100644 node_modules/date-fns/locale/vi/cdn.js create mode 100644 node_modules/date-fns/locale/vi/cdn.min.js create mode 100644 node_modules/date-fns/locale/zh-CN.cjs create mode 100644 node_modules/date-fns/locale/zh-CN.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/localize.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/match.js create mode 100644 node_modules/date-fns/locale/zh-CN/cdn.js create mode 100644 node_modules/date-fns/locale/zh-CN/cdn.min.js create mode 100644 node_modules/date-fns/locale/zh-HK.cjs create mode 100644 node_modules/date-fns/locale/zh-HK.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/localize.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/match.js create mode 100644 node_modules/date-fns/locale/zh-HK/cdn.js create mode 100644 node_modules/date-fns/locale/zh-HK/cdn.min.js create mode 100644 node_modules/date-fns/locale/zh-TW.cjs create mode 100644 node_modules/date-fns/locale/zh-TW.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatDistance.cjs create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatDistance.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatDistance.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatDistance.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatLong.cjs create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatLong.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatLong.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatLong.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatRelative.cjs create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatRelative.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatRelative.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatRelative.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/localize.cjs create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/localize.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/localize.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/localize.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/match.cjs create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/match.d.cts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/match.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/match.js create mode 100644 node_modules/date-fns/locale/zh-TW/cdn.js create mode 100644 node_modules/date-fns/locale/zh-TW/cdn.min.js create mode 100644 node_modules/date-fns/max.cjs create mode 100644 node_modules/date-fns/max.d.cts create mode 100644 node_modules/date-fns/max.d.ts create mode 100644 node_modules/date-fns/max.js create mode 100644 node_modules/date-fns/milliseconds.cjs create mode 100644 node_modules/date-fns/milliseconds.d.cts create mode 100644 node_modules/date-fns/milliseconds.d.ts create mode 100644 node_modules/date-fns/milliseconds.js create mode 100644 node_modules/date-fns/millisecondsToHours.cjs create mode 100644 node_modules/date-fns/millisecondsToHours.d.cts create mode 100644 node_modules/date-fns/millisecondsToHours.d.ts create mode 100644 node_modules/date-fns/millisecondsToHours.js create mode 100644 node_modules/date-fns/millisecondsToMinutes.cjs create mode 100644 node_modules/date-fns/millisecondsToMinutes.d.cts create mode 100644 node_modules/date-fns/millisecondsToMinutes.d.ts create mode 100644 node_modules/date-fns/millisecondsToMinutes.js create mode 100644 node_modules/date-fns/millisecondsToSeconds.cjs create mode 100644 node_modules/date-fns/millisecondsToSeconds.d.cts create mode 100644 node_modules/date-fns/millisecondsToSeconds.d.ts create mode 100644 node_modules/date-fns/millisecondsToSeconds.js create mode 100644 node_modules/date-fns/min.cjs create mode 100644 node_modules/date-fns/min.d.cts create mode 100644 node_modules/date-fns/min.d.ts create mode 100644 node_modules/date-fns/min.js create mode 100644 node_modules/date-fns/minutesToHours.cjs create mode 100644 node_modules/date-fns/minutesToHours.d.cts create mode 100644 node_modules/date-fns/minutesToHours.d.ts create mode 100644 node_modules/date-fns/minutesToHours.js create mode 100644 node_modules/date-fns/minutesToMilliseconds.cjs create mode 100644 node_modules/date-fns/minutesToMilliseconds.d.cts create mode 100644 node_modules/date-fns/minutesToMilliseconds.d.ts create mode 100644 node_modules/date-fns/minutesToMilliseconds.js create mode 100644 node_modules/date-fns/minutesToSeconds.cjs create mode 100644 node_modules/date-fns/minutesToSeconds.d.cts create mode 100644 node_modules/date-fns/minutesToSeconds.d.ts create mode 100644 node_modules/date-fns/minutesToSeconds.js create mode 100644 node_modules/date-fns/monthsToQuarters.cjs create mode 100644 node_modules/date-fns/monthsToQuarters.d.cts create mode 100644 node_modules/date-fns/monthsToQuarters.d.ts create mode 100644 node_modules/date-fns/monthsToQuarters.js create mode 100644 node_modules/date-fns/monthsToYears.cjs create mode 100644 node_modules/date-fns/monthsToYears.d.cts create mode 100644 node_modules/date-fns/monthsToYears.d.ts create mode 100644 node_modules/date-fns/monthsToYears.js create mode 100644 node_modules/date-fns/nextDay.cjs create mode 100644 node_modules/date-fns/nextDay.d.cts create mode 100644 node_modules/date-fns/nextDay.d.ts create mode 100644 node_modules/date-fns/nextDay.js create mode 100644 node_modules/date-fns/nextFriday.cjs create mode 100644 node_modules/date-fns/nextFriday.d.cts create mode 100644 node_modules/date-fns/nextFriday.d.ts create mode 100644 node_modules/date-fns/nextFriday.js create mode 100644 node_modules/date-fns/nextMonday.cjs create mode 100644 node_modules/date-fns/nextMonday.d.cts create mode 100644 node_modules/date-fns/nextMonday.d.ts create mode 100644 node_modules/date-fns/nextMonday.js create mode 100644 node_modules/date-fns/nextSaturday.cjs create mode 100644 node_modules/date-fns/nextSaturday.d.cts create mode 100644 node_modules/date-fns/nextSaturday.d.ts create mode 100644 node_modules/date-fns/nextSaturday.js create mode 100644 node_modules/date-fns/nextSunday.cjs create mode 100644 node_modules/date-fns/nextSunday.d.cts create mode 100644 node_modules/date-fns/nextSunday.d.ts create mode 100644 node_modules/date-fns/nextSunday.js create mode 100644 node_modules/date-fns/nextThursday.cjs create mode 100644 node_modules/date-fns/nextThursday.d.cts create mode 100644 node_modules/date-fns/nextThursday.d.ts create mode 100644 node_modules/date-fns/nextThursday.js create mode 100644 node_modules/date-fns/nextTuesday.cjs create mode 100644 node_modules/date-fns/nextTuesday.d.cts create mode 100644 node_modules/date-fns/nextTuesday.d.ts create mode 100644 node_modules/date-fns/nextTuesday.js create mode 100644 node_modules/date-fns/nextWednesday.cjs create mode 100644 node_modules/date-fns/nextWednesday.d.cts create mode 100644 node_modules/date-fns/nextWednesday.d.ts create mode 100644 node_modules/date-fns/nextWednesday.js create mode 100644 node_modules/date-fns/package.json create mode 100644 node_modules/date-fns/parse.cjs create mode 100644 node_modules/date-fns/parse.d.cts create mode 100644 node_modules/date-fns/parse.d.ts create mode 100644 node_modules/date-fns/parse.js create mode 100644 node_modules/date-fns/parse/_lib/Parser.cjs create mode 100644 node_modules/date-fns/parse/_lib/Parser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/Parser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/Parser.js create mode 100644 node_modules/date-fns/parse/_lib/Setter.cjs create mode 100644 node_modules/date-fns/parse/_lib/Setter.d.cts create mode 100644 node_modules/date-fns/parse/_lib/Setter.d.ts create mode 100644 node_modules/date-fns/parse/_lib/Setter.js create mode 100644 node_modules/date-fns/parse/_lib/constants.cjs create mode 100644 node_modules/date-fns/parse/_lib/constants.d.cts create mode 100644 node_modules/date-fns/parse/_lib/constants.d.ts create mode 100644 node_modules/date-fns/parse/_lib/constants.js create mode 100644 node_modules/date-fns/parse/_lib/parsers.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DateParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/DateParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DateParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DateParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/EraParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/EraParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/EraParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/EraParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISODayParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISODayParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISODayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalDayParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalDayParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/MinuteParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/MinuteParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/MinuteParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/MonthParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/MonthParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/MonthParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/QuarterParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/QuarterParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/QuarterParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/SecondParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/SecondParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/SecondParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/YearParser.cjs create mode 100644 node_modules/date-fns/parse/_lib/parsers/YearParser.d.cts create mode 100644 node_modules/date-fns/parse/_lib/parsers/YearParser.d.ts create mode 100644 node_modules/date-fns/parse/_lib/parsers/YearParser.js create mode 100644 node_modules/date-fns/parse/_lib/types.cjs create mode 100644 node_modules/date-fns/parse/_lib/types.d.cts create mode 100644 node_modules/date-fns/parse/_lib/types.d.ts create mode 100644 node_modules/date-fns/parse/_lib/types.js create mode 100644 node_modules/date-fns/parse/_lib/utils.cjs create mode 100644 node_modules/date-fns/parse/_lib/utils.d.cts create mode 100644 node_modules/date-fns/parse/_lib/utils.d.ts create mode 100644 node_modules/date-fns/parse/_lib/utils.js create mode 100644 node_modules/date-fns/parseISO.cjs create mode 100644 node_modules/date-fns/parseISO.d.cts create mode 100644 node_modules/date-fns/parseISO.d.ts create mode 100644 node_modules/date-fns/parseISO.js create mode 100644 node_modules/date-fns/parseJSON.cjs create mode 100644 node_modules/date-fns/parseJSON.d.cts create mode 100644 node_modules/date-fns/parseJSON.d.ts create mode 100644 node_modules/date-fns/parseJSON.js create mode 100644 node_modules/date-fns/previousDay.cjs create mode 100644 node_modules/date-fns/previousDay.d.cts create mode 100644 node_modules/date-fns/previousDay.d.ts create mode 100644 node_modules/date-fns/previousDay.js create mode 100644 node_modules/date-fns/previousFriday.cjs create mode 100644 node_modules/date-fns/previousFriday.d.cts create mode 100644 node_modules/date-fns/previousFriday.d.ts create mode 100644 node_modules/date-fns/previousFriday.js create mode 100644 node_modules/date-fns/previousMonday.cjs create mode 100644 node_modules/date-fns/previousMonday.d.cts create mode 100644 node_modules/date-fns/previousMonday.d.ts create mode 100644 node_modules/date-fns/previousMonday.js create mode 100644 node_modules/date-fns/previousSaturday.cjs create mode 100644 node_modules/date-fns/previousSaturday.d.cts create mode 100644 node_modules/date-fns/previousSaturday.d.ts create mode 100644 node_modules/date-fns/previousSaturday.js create mode 100644 node_modules/date-fns/previousSunday.cjs create mode 100644 node_modules/date-fns/previousSunday.d.cts create mode 100644 node_modules/date-fns/previousSunday.d.ts create mode 100644 node_modules/date-fns/previousSunday.js create mode 100644 node_modules/date-fns/previousThursday.cjs create mode 100644 node_modules/date-fns/previousThursday.d.cts create mode 100644 node_modules/date-fns/previousThursday.d.ts create mode 100644 node_modules/date-fns/previousThursday.js create mode 100644 node_modules/date-fns/previousTuesday.cjs create mode 100644 node_modules/date-fns/previousTuesday.d.cts create mode 100644 node_modules/date-fns/previousTuesday.d.ts create mode 100644 node_modules/date-fns/previousTuesday.js create mode 100644 node_modules/date-fns/previousWednesday.cjs create mode 100644 node_modules/date-fns/previousWednesday.d.cts create mode 100644 node_modules/date-fns/previousWednesday.d.ts create mode 100644 node_modules/date-fns/previousWednesday.js create mode 100644 node_modules/date-fns/quartersToMonths.cjs create mode 100644 node_modules/date-fns/quartersToMonths.d.cts create mode 100644 node_modules/date-fns/quartersToMonths.d.ts create mode 100644 node_modules/date-fns/quartersToMonths.js create mode 100644 node_modules/date-fns/quartersToYears.cjs create mode 100644 node_modules/date-fns/quartersToYears.d.cts create mode 100644 node_modules/date-fns/quartersToYears.d.ts create mode 100644 node_modules/date-fns/quartersToYears.js create mode 100644 node_modules/date-fns/roundToNearestHours.cjs create mode 100644 node_modules/date-fns/roundToNearestHours.d.cts create mode 100644 node_modules/date-fns/roundToNearestHours.d.ts create mode 100644 node_modules/date-fns/roundToNearestHours.js create mode 100644 node_modules/date-fns/roundToNearestMinutes.cjs create mode 100644 node_modules/date-fns/roundToNearestMinutes.d.cts create mode 100644 node_modules/date-fns/roundToNearestMinutes.d.ts create mode 100644 node_modules/date-fns/roundToNearestMinutes.js create mode 100644 node_modules/date-fns/secondsToHours.cjs create mode 100644 node_modules/date-fns/secondsToHours.d.cts create mode 100644 node_modules/date-fns/secondsToHours.d.ts create mode 100644 node_modules/date-fns/secondsToHours.js create mode 100644 node_modules/date-fns/secondsToMilliseconds.cjs create mode 100644 node_modules/date-fns/secondsToMilliseconds.d.cts create mode 100644 node_modules/date-fns/secondsToMilliseconds.d.ts create mode 100644 node_modules/date-fns/secondsToMilliseconds.js create mode 100644 node_modules/date-fns/secondsToMinutes.cjs create mode 100644 node_modules/date-fns/secondsToMinutes.d.cts create mode 100644 node_modules/date-fns/secondsToMinutes.d.ts create mode 100644 node_modules/date-fns/secondsToMinutes.js create mode 100644 node_modules/date-fns/set.cjs create mode 100644 node_modules/date-fns/set.d.cts create mode 100644 node_modules/date-fns/set.d.ts create mode 100644 node_modules/date-fns/set.js create mode 100644 node_modules/date-fns/setDate.cjs create mode 100644 node_modules/date-fns/setDate.d.cts create mode 100644 node_modules/date-fns/setDate.d.ts create mode 100644 node_modules/date-fns/setDate.js create mode 100644 node_modules/date-fns/setDay.cjs create mode 100644 node_modules/date-fns/setDay.d.cts create mode 100644 node_modules/date-fns/setDay.d.ts create mode 100644 node_modules/date-fns/setDay.js create mode 100644 node_modules/date-fns/setDayOfYear.cjs create mode 100644 node_modules/date-fns/setDayOfYear.d.cts create mode 100644 node_modules/date-fns/setDayOfYear.d.ts create mode 100644 node_modules/date-fns/setDayOfYear.js create mode 100644 node_modules/date-fns/setDefaultOptions.cjs create mode 100644 node_modules/date-fns/setDefaultOptions.d.cts create mode 100644 node_modules/date-fns/setDefaultOptions.d.ts create mode 100644 node_modules/date-fns/setDefaultOptions.js create mode 100644 node_modules/date-fns/setHours.cjs create mode 100644 node_modules/date-fns/setHours.d.cts create mode 100644 node_modules/date-fns/setHours.d.ts create mode 100644 node_modules/date-fns/setHours.js create mode 100644 node_modules/date-fns/setISODay.cjs create mode 100644 node_modules/date-fns/setISODay.d.cts create mode 100644 node_modules/date-fns/setISODay.d.ts create mode 100644 node_modules/date-fns/setISODay.js create mode 100644 node_modules/date-fns/setISOWeek.cjs create mode 100644 node_modules/date-fns/setISOWeek.d.cts create mode 100644 node_modules/date-fns/setISOWeek.d.ts create mode 100644 node_modules/date-fns/setISOWeek.js create mode 100644 node_modules/date-fns/setISOWeekYear.cjs create mode 100644 node_modules/date-fns/setISOWeekYear.d.cts create mode 100644 node_modules/date-fns/setISOWeekYear.d.ts create mode 100644 node_modules/date-fns/setISOWeekYear.js create mode 100644 node_modules/date-fns/setMilliseconds.cjs create mode 100644 node_modules/date-fns/setMilliseconds.d.cts create mode 100644 node_modules/date-fns/setMilliseconds.d.ts create mode 100644 node_modules/date-fns/setMilliseconds.js create mode 100644 node_modules/date-fns/setMinutes.cjs create mode 100644 node_modules/date-fns/setMinutes.d.cts create mode 100644 node_modules/date-fns/setMinutes.d.ts create mode 100644 node_modules/date-fns/setMinutes.js create mode 100644 node_modules/date-fns/setMonth.cjs create mode 100644 node_modules/date-fns/setMonth.d.cts create mode 100644 node_modules/date-fns/setMonth.d.ts create mode 100644 node_modules/date-fns/setMonth.js create mode 100644 node_modules/date-fns/setQuarter.cjs create mode 100644 node_modules/date-fns/setQuarter.d.cts create mode 100644 node_modules/date-fns/setQuarter.d.ts create mode 100644 node_modules/date-fns/setQuarter.js create mode 100644 node_modules/date-fns/setSeconds.cjs create mode 100644 node_modules/date-fns/setSeconds.d.cts create mode 100644 node_modules/date-fns/setSeconds.d.ts create mode 100644 node_modules/date-fns/setSeconds.js create mode 100644 node_modules/date-fns/setWeek.cjs create mode 100644 node_modules/date-fns/setWeek.d.cts create mode 100644 node_modules/date-fns/setWeek.d.ts create mode 100644 node_modules/date-fns/setWeek.js create mode 100644 node_modules/date-fns/setWeekYear.cjs create mode 100644 node_modules/date-fns/setWeekYear.d.cts create mode 100644 node_modules/date-fns/setWeekYear.d.ts create mode 100644 node_modules/date-fns/setWeekYear.js create mode 100644 node_modules/date-fns/setYear.cjs create mode 100644 node_modules/date-fns/setYear.d.cts create mode 100644 node_modules/date-fns/setYear.d.ts create mode 100644 node_modules/date-fns/setYear.js create mode 100644 node_modules/date-fns/startOfDay.cjs create mode 100644 node_modules/date-fns/startOfDay.d.cts create mode 100644 node_modules/date-fns/startOfDay.d.ts create mode 100644 node_modules/date-fns/startOfDay.js create mode 100644 node_modules/date-fns/startOfDecade.cjs create mode 100644 node_modules/date-fns/startOfDecade.d.cts create mode 100644 node_modules/date-fns/startOfDecade.d.ts create mode 100644 node_modules/date-fns/startOfDecade.js create mode 100644 node_modules/date-fns/startOfHour.cjs create mode 100644 node_modules/date-fns/startOfHour.d.cts create mode 100644 node_modules/date-fns/startOfHour.d.ts create mode 100644 node_modules/date-fns/startOfHour.js create mode 100644 node_modules/date-fns/startOfISOWeek.cjs create mode 100644 node_modules/date-fns/startOfISOWeek.d.cts create mode 100644 node_modules/date-fns/startOfISOWeek.d.ts create mode 100644 node_modules/date-fns/startOfISOWeek.js create mode 100644 node_modules/date-fns/startOfISOWeekYear.cjs create mode 100644 node_modules/date-fns/startOfISOWeekYear.d.cts create mode 100644 node_modules/date-fns/startOfISOWeekYear.d.ts create mode 100644 node_modules/date-fns/startOfISOWeekYear.js create mode 100644 node_modules/date-fns/startOfMinute.cjs create mode 100644 node_modules/date-fns/startOfMinute.d.cts create mode 100644 node_modules/date-fns/startOfMinute.d.ts create mode 100644 node_modules/date-fns/startOfMinute.js create mode 100644 node_modules/date-fns/startOfMonth.cjs create mode 100644 node_modules/date-fns/startOfMonth.d.cts create mode 100644 node_modules/date-fns/startOfMonth.d.ts create mode 100644 node_modules/date-fns/startOfMonth.js create mode 100644 node_modules/date-fns/startOfQuarter.cjs create mode 100644 node_modules/date-fns/startOfQuarter.d.cts create mode 100644 node_modules/date-fns/startOfQuarter.d.ts create mode 100644 node_modules/date-fns/startOfQuarter.js create mode 100644 node_modules/date-fns/startOfSecond.cjs create mode 100644 node_modules/date-fns/startOfSecond.d.cts create mode 100644 node_modules/date-fns/startOfSecond.d.ts create mode 100644 node_modules/date-fns/startOfSecond.js create mode 100644 node_modules/date-fns/startOfToday.cjs create mode 100644 node_modules/date-fns/startOfToday.d.cts create mode 100644 node_modules/date-fns/startOfToday.d.ts create mode 100644 node_modules/date-fns/startOfToday.js create mode 100644 node_modules/date-fns/startOfTomorrow.cjs create mode 100644 node_modules/date-fns/startOfTomorrow.d.cts create mode 100644 node_modules/date-fns/startOfTomorrow.d.ts create mode 100644 node_modules/date-fns/startOfTomorrow.js create mode 100644 node_modules/date-fns/startOfWeek.cjs create mode 100644 node_modules/date-fns/startOfWeek.d.cts create mode 100644 node_modules/date-fns/startOfWeek.d.ts create mode 100644 node_modules/date-fns/startOfWeek.js create mode 100644 node_modules/date-fns/startOfWeekYear.cjs create mode 100644 node_modules/date-fns/startOfWeekYear.d.cts create mode 100644 node_modules/date-fns/startOfWeekYear.d.ts create mode 100644 node_modules/date-fns/startOfWeekYear.js create mode 100644 node_modules/date-fns/startOfYear.cjs create mode 100644 node_modules/date-fns/startOfYear.d.cts create mode 100644 node_modules/date-fns/startOfYear.d.ts create mode 100644 node_modules/date-fns/startOfYear.js create mode 100644 node_modules/date-fns/startOfYesterday.cjs create mode 100644 node_modules/date-fns/startOfYesterday.d.cts create mode 100644 node_modules/date-fns/startOfYesterday.d.ts create mode 100644 node_modules/date-fns/startOfYesterday.js create mode 100644 node_modules/date-fns/sub.cjs create mode 100644 node_modules/date-fns/sub.d.cts create mode 100644 node_modules/date-fns/sub.d.ts create mode 100644 node_modules/date-fns/sub.js create mode 100644 node_modules/date-fns/subBusinessDays.cjs create mode 100644 node_modules/date-fns/subBusinessDays.d.cts create mode 100644 node_modules/date-fns/subBusinessDays.d.ts create mode 100644 node_modules/date-fns/subBusinessDays.js create mode 100644 node_modules/date-fns/subDays.cjs create mode 100644 node_modules/date-fns/subDays.d.cts create mode 100644 node_modules/date-fns/subDays.d.ts create mode 100644 node_modules/date-fns/subDays.js create mode 100644 node_modules/date-fns/subHours.cjs create mode 100644 node_modules/date-fns/subHours.d.cts create mode 100644 node_modules/date-fns/subHours.d.ts create mode 100644 node_modules/date-fns/subHours.js create mode 100644 node_modules/date-fns/subISOWeekYears.cjs create mode 100644 node_modules/date-fns/subISOWeekYears.d.cts create mode 100644 node_modules/date-fns/subISOWeekYears.d.ts create mode 100644 node_modules/date-fns/subISOWeekYears.js create mode 100644 node_modules/date-fns/subMilliseconds.cjs create mode 100644 node_modules/date-fns/subMilliseconds.d.cts create mode 100644 node_modules/date-fns/subMilliseconds.d.ts create mode 100644 node_modules/date-fns/subMilliseconds.js create mode 100644 node_modules/date-fns/subMinutes.cjs create mode 100644 node_modules/date-fns/subMinutes.d.cts create mode 100644 node_modules/date-fns/subMinutes.d.ts create mode 100644 node_modules/date-fns/subMinutes.js create mode 100644 node_modules/date-fns/subMonths.cjs create mode 100644 node_modules/date-fns/subMonths.d.cts create mode 100644 node_modules/date-fns/subMonths.d.ts create mode 100644 node_modules/date-fns/subMonths.js create mode 100644 node_modules/date-fns/subQuarters.cjs create mode 100644 node_modules/date-fns/subQuarters.d.cts create mode 100644 node_modules/date-fns/subQuarters.d.ts create mode 100644 node_modules/date-fns/subQuarters.js create mode 100644 node_modules/date-fns/subSeconds.cjs create mode 100644 node_modules/date-fns/subSeconds.d.cts create mode 100644 node_modules/date-fns/subSeconds.d.ts create mode 100644 node_modules/date-fns/subSeconds.js create mode 100644 node_modules/date-fns/subWeeks.cjs create mode 100644 node_modules/date-fns/subWeeks.d.cts create mode 100644 node_modules/date-fns/subWeeks.d.ts create mode 100644 node_modules/date-fns/subWeeks.js create mode 100644 node_modules/date-fns/subYears.cjs create mode 100644 node_modules/date-fns/subYears.d.cts create mode 100644 node_modules/date-fns/subYears.d.ts create mode 100644 node_modules/date-fns/subYears.js create mode 100644 node_modules/date-fns/toDate.cjs create mode 100644 node_modules/date-fns/toDate.d.cts create mode 100644 node_modules/date-fns/toDate.d.ts create mode 100644 node_modules/date-fns/toDate.js create mode 100644 node_modules/date-fns/transpose.cjs create mode 100644 node_modules/date-fns/transpose.d.cts create mode 100644 node_modules/date-fns/transpose.d.ts create mode 100644 node_modules/date-fns/transpose.js create mode 100644 node_modules/date-fns/types.cjs create mode 100644 node_modules/date-fns/types.d.cts create mode 100644 node_modules/date-fns/types.d.ts create mode 100644 node_modules/date-fns/types.js create mode 100644 node_modules/date-fns/weeksToDays.cjs create mode 100644 node_modules/date-fns/weeksToDays.d.cts create mode 100644 node_modules/date-fns/weeksToDays.d.ts create mode 100644 node_modules/date-fns/weeksToDays.js create mode 100644 node_modules/date-fns/yearsToDays.cjs create mode 100644 node_modules/date-fns/yearsToDays.d.cts create mode 100644 node_modules/date-fns/yearsToDays.d.ts create mode 100644 node_modules/date-fns/yearsToDays.js create mode 100644 node_modules/date-fns/yearsToMonths.cjs create mode 100644 node_modules/date-fns/yearsToMonths.d.cts create mode 100644 node_modules/date-fns/yearsToMonths.d.ts create mode 100644 node_modules/date-fns/yearsToMonths.js create mode 100644 node_modules/date-fns/yearsToQuarters.cjs create mode 100644 node_modules/date-fns/yearsToQuarters.d.cts create mode 100644 node_modules/date-fns/yearsToQuarters.d.ts create mode 100644 node_modules/date-fns/yearsToQuarters.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/components/.gitignore b/components/.gitignore new file mode 100644 index 000000000..6e03962af --- /dev/null +++ b/components/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +.DS_Store +dist/ \ No newline at end of file diff --git a/components/posts-page-component.js b/components/posts-page-component.js index 98d194d0e..ad19bc02f 100644 --- a/components/posts-page-component.js +++ b/components/posts-page-component.js @@ -1,6 +1,9 @@ import { USER_POSTS_PAGE } from "../routes.js"; import { renderHeaderComponent } from "./header-component.js"; -import { posts, goToPage } from "../index.js"; +import { formatDistanceToNow } from "date-fns"; +import { ru } from "date-fns/locale"; +// Добавили в деструктуризацию getToken для авторизации лайков и renderApp для обновления интерфейса +import { posts, goToPage, getToken, renderApp } from "../index.js"; export function renderPostsPageComponent({ appEl }) { // @TODO: реализовать рендер постов из api @@ -8,7 +11,7 @@ export function renderPostsPageComponent({ appEl }) { /** * @TODO: чтобы отформатировать дату создания поста в виде "19 минут назад" - * можно использовать https://date-fns.org/v2.29.3/docs/formatDistanceToNow + * можно использовать https://date-fns.org */ const appHtml = ` @@ -17,6 +20,14 @@ export function renderPostsPageComponent({ appEl }) {
    ${posts .map((post) => { + const formattedDate = formatDistanceToNow( + new Date(post.createdAt), + { + addSuffix: true, + locale: ru, + }, + ); + return `
  • @@ -27,10 +38,12 @@ export function renderPostsPageComponent({ appEl }) {
    -

    + Нравится: ${post.likes.length}

    @@ -39,7 +52,7 @@ export function renderPostsPageComponent({ appEl }) { ${post.description}

  • `; @@ -61,4 +74,50 @@ export function renderPostsPageComponent({ appEl }) { }); }); } + + // ОБРАБОТКА ЛАЙКОВ: Навешиваем клики на все кнопки-сердечки + for (let likeBtnEl of document.querySelectorAll(".like-button")) { + likeBtnEl.addEventListener("click", () => { + const postId = likeBtnEl.dataset.postId; + const isLiked = likeBtnEl.dataset.isLiked === "true"; + + // Определяем действие для эндпоинта в зависимости от текущего состояния лайка + const action = isLiked ? "dislike" : "like"; + + // ИСПРАВЛЕНО: ID поста перенесен в URL-адрес, убраны лишние заголовки и body + fetch( + `https://webdev-hw-api.vercel.app/api/v1/Tyryshkin1/instapro/${postId}/${action}`, + { + method: "POST", + headers: { + Authorization: getToken(), // Передаем токен авторизации + }, + }, + ) + .then((response) => { + if (response.status === 401) { + alert("Лайкать посты могут только зарегистрированные пользователи"); + throw new Error("Нет авторизации"); + } + if (response.status === 404) { + alert("Пост не найден"); + throw new Error("Пост не найден"); + } + return response.json(); + }) + .then((responseData) => { + // Находим измененный пост в глобальном массиве постов + const postIndex = posts.findIndex((p) => p.id === postId); + if (postIndex !== -1) { + // Подменяем старый объект обновленным объектом поста, который вернул сервер + posts[postIndex] = responseData.post; + } + // Мгновенно перерисовываем страницу приложения без полной перезагрузки окна + renderApp(); + }) + .catch((error) => { + console.error("Ошибка при обработке лайка:", error); + }); + }); + } } diff --git a/index.js b/index.js index 7f04d1a90..d3ccf5ddc 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ export let user = getUserFromLocalStorage(); export let page = null; export let posts = []; -const getToken = () => { +export const getToken = () => { const token = user ? `Bearer ${user.token}` : undefined; return token; }; @@ -102,7 +102,7 @@ export const goToPage = (newPage, data) => { throw new Error("страницы не существует"); }; -const renderApp = () => { +export const renderApp = () => { const appEl = document.getElementById("app"); if (page === LOADING_PAGE) { return renderLoadingPageComponent({ diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 000000000..fcec9ea06 --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,17 @@ +{ + "name": "webdev-cw-instapro", + "lockfileVersion": 3, + "requires": true, + "packages": { + "node_modules/date-fns": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.4.0.tgz", + "integrity": "sha512-+1UMbeh68lH1SegH83CGWwpb6OHHbpSgr3+s5Eww5M4CAgswBpoWS0AjTOfEJ33HiYKz1hdj/KTFprzXHmq/6w==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + } + } +} diff --git a/node_modules/date-fns/CHANGELOG.md b/node_modules/date-fns/CHANGELOG.md new file mode 100644 index 000000000..0c21cdf45 --- /dev/null +++ b/node_modules/date-fns/CHANGELOG.md @@ -0,0 +1,2883 @@ +# Change Log + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning]. + +This change log follows the format documented in [Keep a CHANGELOG]. + +[semantic versioning]: http://semver.org/ +[keep a changelog]: http://keepachangelog.com/ + +## v5.0.0-alpha.0 - 2026-05-30 + +### Changed + +- **BREAKING**: The CDN scripts are now available via the `@date-fns/cdn` npm package instead of `date-fns`. Users relying on the latest CDN version (e.g., `https://cdn.jsdelivr.net/npm/date-fns/cdn.min.js`) would be served a polyfill that inserts a script with the correct URL (`https://cdn.jsdelivr.net/npm/@date-fns/cdn/cdn.min.js`) into the page. + +## v4.4.0 - 2026-05-30 + +This release revisits the approach to CDN usage and introduces a new package, `@date-fns/cdn` and deprecates the `date-fns` CDN scripts. It allowed reducing the zipped package size from `5.83 MB` down to `3.96 MB` without introducing any breaking changes. + +In `v5.0.0-alpha.0` where CDN scripts are completely removed from `date-fns` the change is more significant and brings the zipped package size down to `2.89 MB`. + +It is just the first step in optimizing the package size. Expect further size reduction in the future v4 and v5 versions. + +### Changed + +- **DEPRECATED**: The `date-fns` CDN scripts are now deprecated and will be removed in the next major release. Please switch to the new `@date-fns/cdn` package for CDN usage. + +- Removed CDN source maps to reduce the package size. If you rely on them, please switch to the new `@date-fns/cdn` package that still includes them. + +## v4.3.0 - 2026-05-22 + +Kudos to [@ImRodry](https://github.com/ImRodry) and [@puneetdixit200](https://github.com/puneetdixit200) for their contributions. + +### Fixed + +- Fixed missing modularized optimization fallback ([for Next.js and others](https://x.com/kossnocorp/status/1731181274579325260)). See [#4193](https://x.com/kossnocorp/status/1731181274579325260). + +- Fixed `pt` locale first day of week to be Sunday. See [#4195](https://github.com/date-fns/date-fns/pull/4195) by [@ImRodry](https://github.com/ImRodry). + +- Fixed `zh-CN`, `zh-HK`, and `zh-TW` locale month parsing for October, November, and December. See [#4194](https://github.com/date-fns/date-fns/pull/4194) by [@puneetdixit200](https://github.com/puneetdixit200). + +### Changed + +- Made `package.json` a bit smaller by removing dev fields when building the package. + +## v4.2.1 - 2026-05-19 + +### Fixed + +- Fixed type definitions missing in v4.2.0 due to TypeScript misconfiguration. + +## v4.2.0 - 2026-05-18 + +This is a minor release in all senses, it only includes documentation updates (first of many) that points to the new [You Don't Need date-fns\*](https://date-fns.org/you-dont-need-date-fns) page. + +\* Not really + +### Changed + +- Added Temporal API references to the JSDoc annotations of `add`, `addBusinessDays`, and `addDays`. + +## v4.1.0 - 2024-09-17 + +This release adds time zone support to format functions (that I somehow missed when working on the feature) and fixes a few bugs. + +Make sure also upgrade `TZDate` to v1.0.2 as it [includes a bunch of critical bug fixes](https://github.com/date-fns/tz/blob/main/CHANGELOG.md#v102---2024-09-14). + +### Fixed + +- Fixed internal `constructFrom` throwing an exception on `null` arguments. While `null` isn't allowed, the functions should rather return `Invalid Date` or `NaN` in such cases. See [#3885](https://github.com/date-fns/date-fns/issues/3885). + +### Added + +- Added missing time zone support to `format`, `formatISO`, `formatISO9075`, `formatRelative` and `formatRFC3339`. See [#3886](https://github.com/date-fns/date-fns/issues/3886). + +## v4.0.0 - 2024-09-16 + +I have great news! First, ten years after its release, date-fns finally gets first-class time zone support. + +Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward. + +[Read more about the release in the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/). + +\- [Sasha @kossnocorp](https://twitter.com/kossnocorp) + +### Added + +- Added time zones support via [`@date-fns/tz`](https://github.com/date-fns/tz)'s `TZDate` class and `tz` helper function. See its [README](https://github.com/date-fns/tz) for the details about the API. + +- All relevant functions now accept the context `in` option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone: + + ```ts + import { addDays, startOfDay } from "date-fns"; + import { tz } from "@date-fns/tz"; + + startOfDay(addDays(Date.now(), 5, { in: tz("Asia/Singapore") })); + //=> "2024-09-16T00:00:00.000+08:00" + ``` + + In the example, `addDays` will get the current date and time in Singapore and add 5 days to it. `startOfDay` will inherit the date type and return the start of the day in Singapore. + +### Changed + +- The function arguments, as well as `Interval`'s `start` and `end`, now can be of different types, allowing you to mix `UTCDate`, `TZDate`, `Date`, and other extensions, as well as primitives (strings and numbers). + + The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context `in` option or the first encountered argument object type. The `Interval`'s `start` and `end` will be considered separately, starting from `start`. + + In the given example, the result will be in the `TZDate` as the first argument is a number, and the `start` takes precedence over the `end`. + + ```ts + clamp(Date.now(), { + start: new TZDate(start, "Asia/Singapore"), + end: new UTCDate(), + }); + //=> TZDate + ``` + +- **BREAKING**: This release contains a bunch of types changes that should not affect the library's expected usage. The changes are primarily internal and nuanced, so rather than listing them here, I recommend you running the type checker after the upgrade. If there are unfixable problems, please [open an issue](https://github.com/date-fns/date-fns/issues/new). + +- **BREAKING**: The package now is ESM-first. The CommonJS is still support and It should not affect most users, but it might break in certains environments. If you encounter any issues, please [report them](https://github.com/date-fns/date-fns/issues/new). + +### Fixed + +- Fixed CDN build compatibility with jQuery and other tools that expose `$` by properly wrapping the code in an IIFE. + +## v3.6.0 - 2024-03-18 + +On this release worked @kossnocorp and @world1dan. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). + +### Fixed + +- [Fixed weeks in the Belarisuan locale's `formatDistance`.](https://github.com/date-fns/date-fns/pull/3720) + +### Added + +- [Added CDN versions of modules compatible with older browsers.](https://github.com/date-fns/date-fns/pull/3737) [See the CDN guide.](https://date-fns.org/docs/CDN) + +## v3.5.0 - 2024-03-15 + +Kudos to @fturmel, @kossnocorp, @makstyle119, @tan75, @marcreichel, @tareknatsheh and @audunru for working on the release. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). + +### Fixed + +- [Fixed functions that use current date internally and made them work with date extensions like `UTCDate`.](https://github.com/date-fns/date-fns/issues/3730) + +- [Fixed `daysToWeeks` returning negative 0.](https://github.com/date-fns/date-fns/commit/882ced61c692c7c4a79eaaec6eb07cb9c8c9195b) + +- [Fixed German grammar for the "half a minute" string.](https://github.com/date-fns/date-fns/pull/3715) + +### Added + +- [Added the Northern Sámi (`se`) locale.](https://github.com/date-fns/date-fns/pull/3724) + +- Added the `constructNow` function that creates the current date using the passed reference date's constructor. + +## v3.4.0 - 2024-03-11 + +Kudos to @kossnocorp, @sakamossan and @Revan99 for working on the release. Also, thanks to [@seated](https://github.com/seated) [for sponsoring me](https://github.com/sponsors/kossnocorp). + +### Added + +- [Added `roundToNearestHours` function.](https://github.com/date-fns/date-fns/pull/2752) + +- [Added Central Kurdish (`ckb`) locale.](https://github.com/date-fns/date-fns/pull/3421) + +## v3.3.1 - 2024-01-22 + +Kudos to @kossnocorp and @fturmel for working on the release. + +### Fixed + +- Fixed DST issue in `getOverlappingDaysInIntervals`, resulting in an inconsistent number of days returned for intervals starting and ending in different DST periods. + +- Fixed functions incorrectly using `trunc` instead of `round`. The bug was introduced in v3.3.0. The affected functions: `differenceInCalendarDays`, `differenceInCalendarISOWeeks`, `differenceInCalendarWeeks`, `getISOWeek`, `getWeek`, and `getISOWeeksInYear`. + +## v3.3.0 - 2024-01-20 + +On this release worked @kossnocorp, @TheKvikk, @fturmel and @ckcherry23. + +### Fixed + +- Fixed the bug in `getOverlappingDaysInIntervals` caused by incorrect sorting of interval components that led to 0 for timestamps of different lengths. + +- Fixed bugs when working with negative numbers caused by using `Math.floor` (`-1.1` → `-2`) instead of `Math.trunc` (`-1.1` → `-1`). Most of the conversion functions (i.e., `hoursToMinutes`) were affected when passing some negative fractional input. Also, some other functions that could be possibly affected by unfortunate timezone/date combinations were fixed. + + The functions that were affected: `format`, `parse`, `getUnixTime`, `daysToWeeks`, `hoursToMilliseconds`, `hoursToMinutes`, `hoursToSeconds`, `milliseconds`, `minutesToMilliseconds`, `millisecondsToMinutes`, `monthsToYears`, `millisecondsToHours`, `millisecondsToSeconds`, `minutesToHours`, `minutesToSeconds`, `yearsToQuarters`, `yearsToMonths`, `yearsToDays`, `weeksToDays`, `secondsToMinutes`, `secondsToHours`, `quartersToYears`, `quartersToMonths` and `monthsToQuarters`. + +- [Fixed the Czech locale's `formatDistance` to include `1` in `formatDistance`.](https://github.com/date-fns/date-fns/pull/3269) + +- Fixed `differenceInSeconds` and other functions relying on rounding options that can produce a negative 0. + +- [Added a preprocessor to the locales API, enabling fixing a long-standing bug in the French locale.](https://github.com/date-fns/date-fns/pull/3662) ([#1391](https://github.com/date-fns/date-fns/issues/1391)) + +- Added missing `yearsToDays` to the FP submodule. + +- Made functions using rounding methods always return `0` instead of `-0`. + +### Added + +- [Added `format` alias `formatDate` with corresponding `FormatDateOptions` interface](https://github.com/date-fns/date-fns/pull/3653). + +## v3.2.0 - 2024-01-09 + +This release is brought to you by @kossnocorp, @fturmel, @grossbart, @MelvinVermeer, and @jcarstairs-scottlogic. + +### Fixed + +- Fixed types compatibility with Lodash's `flow` and fp-ts's `pipe`. ([#3641](https://github.com/date-fns/date-fns/issues/3641)) + +- [Fixed inconsistent behavior of `roundToNearestMinutes`.](https://github.com/date-fns/date-fns/pull/3132) + +### Added + +- Added exports of `format`, `lightFormat`, and `parse` internals that enable 3rd-parties to consume those. + +## v3.1.0 - 2024-01-05 + +This release is brought to you by @kossnocorp, @makstyle119 and @dmgawel. + +### Fixed + +- [Fixed the plural form of weeks in Swedish](https://github.com/date-fns/date-fns/pull/3448). + +### Added + +- [Added `yearsToDays` function](https://github.com/date-fns/date-fns/pull/3540). + +- Added warning about using protected tokens like `Y` or `D` without passing a corresponding option. [See #2950](https://github.com/date-fns/date-fns/issues/2950). + +## v3.0.6 - 2023-12-22 + +On this release worked @imwh0im, @jamcry and @tyrw. + +### Fixed + +- [Fixed bug in `areIntervalsOverlapping` caused by incorrect sorting](https://github.com/date-fns/date-fns/pull/3628) ([#3614](https://github.com/date-fns/date-fns/issues/3614)) + +## v3.0.5 - 2023-12-21 + +This release is brought to you by @goku4199. + +### Fixed + +- [Fixed internal `toDate` not processing string arguments properly](https://github.com/date-fns/date-fns/pull/3626) + +## v3.0.4 - 2023-12-21 + +This release is brought to you by @kossnocorp. + +### Fixed + +- Fixed isWithinInterval bug caused by incorrectly sorting dates ([#3623](https://github.com/date-fns/date-fns/issues/3623)). + +## v3.0.3 - 2023-12-21 + +### Fixed + +- Rolled back pointing ESM types to the same `d.ts` files. Instead now it copies the content to avoid [the Masquerading as CJS problem](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md) reported by "Are the types wrong?". + +## v3.0.2 - 2023-12-21 + +### Fixed + +- Fixed [yet another issue caused by ESM types](https://github.com/date-fns/date-fns/issues/3620) by pointing to the same `d.ts` files. + +- [Added `package.json` to exports](https://github.com/date-fns/date-fns/pull/3601) to provide access to tooling. + +- [Fixed TypeScript 5.4 build break](https://github.com/date-fns/date-fns/pull/3598) by using the latest type names. + +## v3.0.1 - 2023-12-20 + +### Fixed + +- [Fixed an error](https://github.com/date-fns/date-fns/pull/3618) in certain environments caused by `d.mts` files exporting only types. + +## v3.0.0 - 2023-12-18 + +### Changed + +- **BREAKING**: date-fns is now a dual-package with the support of both ESM and CommonJS. The files exports are now explicitly in the `package.json`. The ESM files now have `.mjs` extension. + +- **BREAKING**: The package now has a flat structure, meaning functions are now named `node_modules/date-fns/add.mjs`, locales are `node_modules/date-fns/locale/enUS.mjs`, etc. + +- **BREAKING**: Now all file content’s exported via named exports instead of `export default`, which will require change direct imports i.e. `const addDays = require(‘date-fns/addDays’)` to `const { addDays } = require(‘date-fns/addDays’)`. + +- **BREAKING**: TypeScript types are now completely rewritten, check out the `d.ts` files for more information. + +- **BREAKING**: `constants` now is not exported via the index, so to import one use `import { daysInYear } from "date-fns/constants";`. It improves compatibility with setups that modularize imports [like Next.js](https://twitter.com/kossnocorp/status/1731181274579325260). + +- **BREAKING**: Functions now don’t check the number of passed arguments, delegating this task to type checkers. The functions are now slimmer because of this. + +- **BREAKING** The arguments are not explicitly converted to the target types. Instead, they are passed as is, delegating this task to type checkers. + +- **BREAKING**: Functions that accept `Interval` arguments now do not throw an error if the start is before the end and handle it as a negative interval. If one of the properties in an `Invalid Date`, these functions also do not throw and handle them as invalid intervals. + - `areIntervalsOverlapping` normalize intervals before comparison, so `{ start: a, end: b }` is practically equivalent to `{ start: b, end: a }`. When comparing intervals with one of the properties being `Invalid Date`, the function will return false unless the others are valid and equal, given the `inclusive` option is passed. Otherwise, and when even one of the intervals has both properties invalid, the function will always return `false`. + + - `getOverlappingDaysInIntervals` now normalizes intervals before comparison, so `{ start: a, end: b }` is practically equivalent to `{ start: b, end: a }`. If any of the intervals’ properties is an `Invalid Date`, the function will always return 0. + + - `isWithinInterval` now normalizes intervals before comparison, so `{ start: a, end: b }` is practically equivalent to `{ start: b, end: a }`. If any of the intervals’ properties is an `Invalid Date`, the function will always return false. + + - `intervalToDuration` now returns negative durations for negative intervals. If one or both of the interval properties are invalid, the function will return an empty object. + + - The eachXOfInterval functions (`eachDayOfInterval`, `eachHourOfInterval`, `eachMinuteOfInterval`, `eachMonthOfInterval`, `eachWeekendOfInterval`, `eachWeekendOfMonth`, `eachWeekendOfYear`, `eachWeekOfInterval`, `eachYearOfInterval`) now return a reversed array if the passed interval’s start is after the end. Invalid properties will result in an empty array. Functions that accept the `step` option now also allow negative, 0, and NaN values and return reversed results if the step is negative and an empty array otherwise. + +- **BREAKING**: `intervalToDuration` now skips 0 values in the resulting duration, resulting in more compact objects with only relevant properties. + +- **BREAKING**: `roundToNearestMinutes` now returns `Invalid Date` instead of throwing an error when `nearestTo` option is less than 1 or more than 30. + +- **BREAKING**: IE is no longer supported. + +- **BREAKING**: Now all functions use `Math.trunc` rounding method where rounding is required. The behavior is configurable on a per-function basis. + +- **BREAKING**: Undocumented `onlyNumeric` option was removed from `nn` and `sv` locales. If you relied on it, [please contact me](mailto:koss@nocorp.me). + +- **BREAKING**: Flow is not supported anymore. If you relied on it, [please contact me](mailto:koss@nocorp.me). + +- **BREAKING**: The locales now use regular functions instead of the UTC version, which should not break any code unless you used locales directly. + +### Added + +- All functions that accept date arguments now also accept strings. + +- All functions now export options interfaces. + +- Now functions allow passing custom Date extensions like [UTCDate](https://github.com/date-fns/utc). They will detect and use the arguments constructor to generate the result of the same class. + +- `eachMonthOfInterval`, `eachQuarterOfInterval`, `eachWeekOfInterval`, and `eachYearOfInterval` now accept the `step` option like most of the eachXOfInterval functions. + +- A new `interval` function that validates interval, emulating the v2 interval functions behavior. + +- `differenceInX` functions now accept options and allow setting up `roundingMethod` that configures how the result is rounded. `Math.trunc` is the default method. + +## v2.30.0 + +Kudos to @kossnocorp and @Andarist for working on the release. + +### Changes + +- Fixed increased build size after enabling compatibility with older browsers in the previous release. This was done by adding @babel/runtime as a dependency. [See more details](https://github.com/date-fns/date-fns/issues/3208#issuecomment-1528592465). + +## v2.29.3 - 2022-09-13 + +This release is prepared by our own @leshakoss. + +### Fixed + +- [Fixed Ukrainian (`uk`) locale grammar for `formatDistance`.](https://github.com/date-fns/date-fns/pull/3175) + +- [Improved browser compatibility by transforming the code with `@babel/preset-env`.](https://github.com/date-fns/date-fns/pull/3167) + +## v2.29.2 - 2022-08-18 + +This release is brought to you by @nopears, @vadimpopa and @leshakoss. + +### Fixed + +- [Fixed `sv` locale abbreviated months matcher.](https://github.com/date-fns/date-fns/pull/3160) + +- [Fixed `uk` locale abbreviated months matcher.](https://github.com/date-fns/date-fns/pull/3139) + +- [Fixed a breaking change in `intervalToDuration` by removing a recently introduced RangeError.](https://github.com/date-fns/date-fns/pull/3153) + +## v2.29.1 - 2022-08-18 + +Thanks to @fturmel for working on the release. + +### Fixed + +- [Fixed TypeScript and flow types for daysInYear constant.](https://github.com/date-fns/date-fns/pull/3125) + +## v2.29.0 - 2022-07-22 + +On this release worked @tan75, @kossnocorp, @nopears, @Balastrong, @cpapazoglou, @dovca, @aliasgar55, @tomchentw, @JuanM04, @alexandresaura, @fturmel, @aezell, @andersravn, @TiagoPortfolio, @SukkaW, @Zebreus, @aviskarkc10, @maic66, @a-korzun, @Mejans, @davidspiess, @alexgul1, @matroskin062, @undecaf, @mprovenc, @jooola and @leshakoss. + +### Added + +- [Added `intlFormatDistance` function`.](https://github.com/date-fns/date-fns/pull/2173) + +- [Added `setDefaultOptions` and `getDefaultOptions` functions that allow you to set default default locale, `weekStartsOn` and `firstWeekContainsDate`.](https://github.com/date-fns/date-fns/pull/3069) + +- [Added `roundingMethod` option to `roundToNearestMinutes`.](https://github.com/date-fns/date-fns/pull/3091) + +- [Added Swiss Italian locale (`it-CH`).](https://github.com/date-fns/date-fns/pull/2886) + +- [Added Occitan (`oc`) locale.](https://github.com/date-fns/date-fns/pull/2106) ([#2061](https://github.com/date-fns/date-fns/issues/2061)) + +- [Added Belarusian Classic (`be-tarask`) locale.](https://github.com/date-fns/date-fns/pull/3115) + +### Fixed + +- [Fixed Azerbaijani (`az`) locale for `formatDistance`.](https://github.com/date-fns/date-fns/pull/2924) + +- [Fixed Czech (`cs`) locale for `parse`.](https://github.com/date-fns/date-fns/pull/3059) + +- [Fixed TypeScript types for constants.](https://github.com/date-fns/date-fns/pull/2941) + +- [Fixed long formatters in the South African English locale (`en-ZA`).](https://github.com/date-fns/date-fns/pull/3014) + +- [Fixed a typo in the Icelandic locale (`is`) for `format`.](https://github.com/date-fns/date-fns/pull/2974) + +- [Fixed weekday format for `formatRelative` in the Portuguese locale (`pt`).](https://github.com/date-fns/date-fns/pull/2992) + +- [Fixed `intervalToDuration` being off by 1 day sometimes.](https://github.com/date-fns/date-fns/pull/2616) + +- [Fixed ordinal number formatting in Italian locale (`it`).](https://github.com/date-fns/date-fns/pull/1617) + +- [Fixed issue parsing months in Croatian (`hr`), Georgian (`ka`) and Serbian (`sr` and `sr-Latn`) locales.](https://github.com/date-fns/date-fns/pull/2898) + +### Changed + +- [Replaced `git.io` links with full URLs in error messages.](https://github.com/date-fns/date-fns/pull/3021) + +- [_Internal_: removed "v2.0.0 breaking changes" section from individual function docs](https://github.com/date-fns/date-fns/pull/2905) + +## v2.28.0 - 2021-12-28 + +Kudos to @tan75, @fturmel, @arcanar7, @jeffjose, @helmut-lang, @zrev2220, @jooola, @minitesh, @cowboy-bebug, @mesqueeb, @JuanM04, @zhirzh, @damon02 and @leshakoss for working on the release. + +### Added + +- [Added West Frisian (`fy`) locale.](https://github.com/date-fns/date-fns/pull/2183) + +- [Added Uzbek Cyrillic locale (`uz-Cyrl`).](https://github.com/date-fns/date-fns/pull/2811) + +### Fixed + +- [add the missing accent mark for Saturday in Spanish locale (`es`) for `format`.](https://github.com/date-fns/date-fns/pull/2869) + +- [allowed `K` token to be used with `a` or `b` in `parse`.](https://github.com/date-fns/date-fns/pull/2814) + +## v2.27.0 - 2021-11-30 + +Kudos to @tan75, @hg-pyun, @07akioni, @razvanmitre, @Haqverdi, @pgcalixto, @janziemba, @fturmel, @JuanM04, @zhirzh, @seanghay, @bulutfatih, @nodeadtree, @cHaLkdusT, @a-korzun, @fishmandev, @wingclover, @Zacharias3690, @kossnocorp and @leshakoss for working on the release. + +### Fixed + +- [Fixed translation for quarters in `format` in Chinese Simplified locale (`zh-CN`).](https://github.com/date-fns/date-fns/pull/2771) + +- [Fixed `P` token in `format` for Romanian locale (`ro`).](https://github.com/date-fns/date-fns/pull/2213) + +- [Fixed era and month formatters in Azerbaijani locale (`az`).](https://github.com/date-fns/date-fns/pull/1632) + +- [Fixed `formatRelative` patterns in Georgian locale (`ka`).](https://github.com/date-fns/date-fns/pull/2797) + +- [Fixed regular expressions for `parse` in Estonian locale (`er`).](https://github.com/date-fns/date-fns/pull/2038) + +- [Fixed the format of zeros in `formatDuration` in Czech locale (`cs`).](https://github.com/date-fns/date-fns/pull/2579) + +- [Fixed ordinal formatting for years, weeks, hours, minutes and seconds in `fr`, `fr-CA` and `fr-CH` locales.](https://github.com/date-fns/date-fns/pull/2626) + +- [Fixed constants not having proper TypeScript and Flow types.](https://github.com/date-fns/date-fns/pull/2791) + +- [Fixed translation for Monday in Turkish locale (`tr`).](https://github.com/date-fns/date-fns/pull/2720) + +- [Fixed `eachMinuteOfInterval` not handling intervals less than a minute correctly.](https://github.com/date-fns/date-fns/pull/2603) + +- [Fixed flow types for `closestTo` and `closestIndexTo`.](https://github.com/date-fns/date-fns/pull/2781) + +### Added + +- [Added Khmer locale (`km`).](https://github.com/date-fns/date-fns/pull/2713) + +## v2.26.0 - 2021-11-19 + +Thanks to @kossnocorp, @leshakoss, @tan75, @gaplo, @AbdAllahAbdElFattah13, @fturmel, @kentaro84207, @V-Gutierrez, @atefBB, @jhonatanmacazana, @zhirzh, @Haqverdi, @mandaputtra, @micnic and @rikkalo for working on the release. + +### Fixed + +- [Fixed `formatRelative` format for `lastWeek` in Spanish locale.](https://github.com/date-fns/date-fns/pull/2753) + +- [Fixed translation for October in Hindi locale.](https://github.com/date-fns/date-fns/pull/2729) + +- [Fixed Azerbaijani locale to use correct era matchers for `parse`.](https://github.com/date-fns/date-fns/pull/1633) + +- [Added the functions that use `weekStartsOn` and `firstWeekContainsDate` that were missing from the `Locale` documentation page.](https://github.com/date-fns/date-fns/pull/2652) + +### Changed + +- [Changed abbreviation for August from "Ags" to "Agt" in Indonesian locale.](https://github.com/date-fns/date-fns/pull/2658) + +### Added + +- [Added Irish English locale (`en-IE`).](https://github.com/date-fns/date-fns/pull/2772) + +- [Added Arabic locale (`ar`).](https://github.com/date-fns/date-fns/pull/2721) ([#1670](https://github.com/date-fns/date-fns/issues/1670)) + +- [Added Hong Kong Traditional Chinese locale (zh-HK).](https://github.com/date-fns/date-fns/pull/2686) ([#2684](https://github.com/date-fns/date-fns/issues/2684)) + +- [Added Egyptian Arabic locale (ar-EG).](https://github.com/date-fns/date-fns/pull/2699) + +## v2.25.0 - 2021-10-05 + +This release is brought to you by @kossnocorp, @gierschv, @fturmel, @redbmk, @mprovenc, @artyom-ivanov and @tan75. + +### Added + +- [Added Japanese Hiragana locale (`ja-Hira`).](https://github.com/date-fns/date-fns/pull/2663) + +- [Added standalone months support to `de` and `de-AT` locales.](https://github.com/date-fns/date-fns/pull/2602) + +## v2.24.0 - 2021-09-17 + +Kudos to [Sasha Koss](http://github.com/kossnocorp), [Lucas Silva](http://github.com/LucasHFS), [Jan Ziemba](http://github.com/janziemba), [Anastasia Kobzar](http://github.com/rikkalo), [Deepak Gupta](http://github.com/Mr-DG-Wick), [Jonas L](http://github.com/jooola), [Kentaro Suzuki](http://github.com/kentaro84207), [Koussay Haj Kacem](http://github.com/essana3), [fturmel](http://github.com/fturmel), [Tan75](http://github.com/tan75) and [Adriaan Callaerts](http://github.com/call-a3) for working on the release. + +### Fixed + +- [Fixed an edge case in the Slovak locale caused by unescaped character.](https://github.com/date-fns/date-fns/pull/2540) ([#2083](https://github.com/date-fns/date-fns/issues/2083)) + +### Changed + +- [Used `1` instead of `ein` for German `formatDuration` to make it consistent with other locales and formats.](https://github.com/date-fns/date-fns/pull/2576) ([#2505](https://github.com/date-fns/date-fns/issues/2505)) + +- [Made Norwegian `formatDuration` consistent with other locales by using numeric representation instead of written.](https://github.com/date-fns/date-fns/pull/2631) ([#2469](https://github.com/date-fns/date-fns/issues/2469)) + +- [Use the word "sekunda" instead of "vteřina" for second in the Czech locale.](https://github.com/date-fns/date-fns/pull/2577) + +- [Made Flemish short date format corresponds to the Flemish government.](https://github.com/date-fns/date-fns/pull/2535) + +### Added + +- [Added `roundingMethod` option to `differenceInHours`, `differenceInMinutes`, `differenceInQuarters`, `differenceInSeconds` and `differenceInWeeks` with `trunc` as the default method.](https://github.com/date-fns/date-fns/pull/2571) ([#2555](https://github.com/date-fns/date-fns/issues/2555)) + +- [Added new functions: `previousDay`, `previousMonday`, `previousTuesday`, `previousWednesday`, `previousThursday`, `previousFriday`, `previousSaturday` and `previousSunday`.](https://github.com/date-fns/date-fns/pull/2522) + +## v2.23.0 - 2021-07-23 + +Thanks to [Liam Tait](http://github.com/Liam-Tait), [fturmel](http://github.com/fturmel), [Takuya Uehara](http://github.com/indigolain), [Branislav Lazic](http://github.com/BranislavLazic), [Seyyed Morteza Moosavi](http://github.com/smmoosavi), [Felipe Armoni](http://github.com/komyg), [Sasha Koss](http://github.com/kossnocorp), [Michael Mok](http://github.com/pmmmwh), [Tan75](http://github.com/tan75) and [Maxim Topciu](http://github.com/maximtop) for working on the release. + +### Changed + +- [Improved `nextDay` performance by roughly 50%.](https://github.com/date-fns/date-fns/pull/2524) + +- [Added more ordinal formatting to the Japanese locale.](https://github.com/date-fns/date-fns/pull/2471) + +### Added + +- [Added a new `clamp` function that allows to bound a date to an interval.](https://github.com/date-fns/date-fns/pull/2498) + +- [Added Bosnian locale (bs).](https://github.com/date-fns/date-fns/pull/2495) + +- [Allowed passing `undefined` in the duration to add and sub functions.](https://github.com/date-fns/date-fns/pull/2515) + +## v2.22.1 - 2021-05-28 + +Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. + +### Fixed + +- Fixed constant typings. ([#2491](https://github.com/date-fns/date-fns/issues/2491)) + +## v2.22.0 - 2021-05-28 + +[Sasha Koss](http://github.com/kossnocorp), [Lucas Silva](http://github.com/LucasHFS), [Lay](http://github.com/brownsugar), [jwbth](http://github.com/jwbth), [fturmel](http://github.com/fturmel), [Tan75](http://github.com/tan75) and [Anastasia Kobzar](http://github.com/rikkalo) worked on this release. + +### Fixed + +- [Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces.](https://github.com/date-fns/date-fns/pull/2436) + +- [Fixed Russian locale to use correct long formats.](https://github.com/date-fns/date-fns/pull/2478) + +### Added + +- [Added 18 new conversion functions](https://github.com/date-fns/date-fns/pull/2433): + - `daysToWeeks` + - `hoursToMilliseconds` + - `hoursToMinutes` + - `hoursToSeconds` + - `millisecondsToHours` + - `millisecondsToMinutes` + - `millisecondsToSeconds` + - `minutesToHours` + - `minutesToMilliseconds` + - `minutesToSeconds` + - `monthsToQuarters` + - `monthsToYears` + - `quartersToMonths` + - `quartersToYears` + - `secondsToHours` + - `secondsToMilliseconds` + - `secondsToMinutes` + - `weeksToDays` + - `yearsToMonths` + - `yearsToQuarters` + +## v2.21.3 - 2021-05-08 + +This release is brought to you by [Maxim Topciu](http://github.com/maximtop). + +### Fixed + +- [Fixed IE11 support by babelifing the shorthand properties.](https://github.com/date-fns/date-fns/pull/2467) + +## v2.21.2 - 2021-05-05 + +Kudos to [Aleksei Korzun](http://github.com/a-korzun), [Maxim Topciu](http://github.com/maximtop), [Jonas L](http://github.com/jooola), [Mohammad ali Ali panah](http://github.com/always-maap) and [Tan75](http://github.com/tan75) for working on the release. + +### Fixed + +- [`differenceInBusinessDays` now returns `NaN` instead of `Invalid Date` when an invalid argument is passed to the function.](https://github.com/date-fns/date-fns/pull/2414) + +- [Fixed `weekStartsOn` in Persian locale.](https://github.com/date-fns/date-fns/pull/2430) + +## v2.21.1 - 2021-04-15 + +Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. + +### Fixed + +- [Fixed a breaking change introduced by using modern default argument value syntax (see https://github.com/Hacker0x01/react-datepicker/issues/2870).](https://github.com/date-fns/date-fns/pull/2423) + +## v2.21.0 - 2021-04-14 + +This release is brought to you by [Aleksei Korzun](http://github.com/a-korzun), [Tan75](http://github.com/tan75), [Rubens Mariuzzo](http://github.com/rmariuzzo), [Christoph Stenglein](http://github.com/cstenglein) and [Clément Tamisier](http://github.com/ctamisier). + +### Fixed + +- [Made `formatDistanceStrict` return `12 months` instead of `1 year` when `unit: 'month'`.](https://github.com/date-fns/date-fns/pull/2411) + +### Added + +- [Added Haitian Creole (`ht`) locale.](https://github.com/date-fns/date-fns/pull/2396) +- [Added Austrian German (`de-AT`) locale.](https://github.com/date-fns/date-fns/pull/2362) + +## v2.20.3 - 2021-04-13 + +Kudos to [fturmel](http://github.com/fturmel) for working on the release. + +### Fixed + +- [Fixed broken tree-shaking caused by missing links to corresponding ESM.](https://github.com/date-fns/date-fns/pull/2339) ([#2207](https://github.com/date-fns/date-fns/issues/2207)) + +## v2.20.2 - 2021-04-12 + +Kudos to [Maxim Topciu](http://github.com/maximtop) for working on the release. + +### Fixed + +- [Fixed IE11 incompatibility caused by the usage of spread syntax.](https://github.com/date-fns/date-fns/pull/2407) ([#2408](https://github.com/date-fns/date-fns/issues/2408)) + +## v2.20.1 - 2021-04-09 + +This release is brought to you by [Sasha Koss](http://github.com/kossnocorp) and [Tan75](http://github.com/tan75). + +### Fixed + +- Fixed `isDate` Flow typings that we broke in `v2.20.0`. + +## v2.20.0 - 2021-04-08 + +This release is brought to you by [Sasha Koss](http://github.com/kossnocorp), [Maxim Topciu](http://github.com/maximtop), [tu4mo](http://github.com/tu4mo), [Tan75](http://github.com/tan75), [Ardit Dine](http://github.com/arditdine), [Carl Rosell](http://github.com/CarlRosell), [Roman Mahotskyi](http://github.com/enheit), [Mateusz Krzak](http://github.com/mateuszkrzak), [fgottschalk](http://github.com/fgottschalk), [Anastasia Kobzar](http://github.com/rikkalo), [Bilguun Ochirbat](http://github.com/bilguun0203), [Lesha Koss](http://github.com/leshakoss), [YuLe](http://github.com/yuler) and [guyroberts21](http://github.com/guyroberts21). + +### Fixed + +- [Made `formatDistanceStrict` and `formatDistanceToNowStrict` always return `1 year` instead of `12 months`.](https://github.com/date-fns/date-fns/pull/2391) ([#2388](https://github.com/date-fns/date-fns/issues/2388)) + +- Fixed `nextDay`, `nextMonday` and `nextTuesday` missing in exports and type definitions. ([#2325](https://github.com/date-fns/date-fns/issues/2325)) + +- [Fixed a DST bug in `formatDistanceStrict`.](https://github.com/date-fns/date-fns/pull/2329) ([#2307](https://github.com/date-fns/date-fns/issues/2307)) + +### Added + +- [Added new `eachMinuteOfInterval` function.](https://github.com/date-fns/date-fns/pull/2382) + +- [Added Albanian (`sq`) locale](https://github.com/date-fns/date-fns/pull/2290) + +- [Added Mongolian (`mn`) locale](https://github.com/date-fns/date-fns/pull/1961) + +- [Added `nextWednesday`, `nextThursday`, `nextFriday`, `nextSaturday` and `nextSunday`.](https://github.com/date-fns/date-fns/pull/2291) + +## v2.19.0 - 2021-03-05 + +[Tan75](http://github.com/tan75) worked on this release. + +### Fixed + +- [Assigned the correct `firstWeekContainsDate` value (`4`) for the French locale.](https://github.com/date-fns/date-fns/pull/2273) ([#2148](https://github.com/date-fns/date-fns/issues/2148)) + +- [Fixed torsdag abbreviation in the Swedish locale.](https://github.com/date-fns/date-fns/pull/2220) + +- [Fixed a bug in `differenceInMonths` and `intervalToDuration` that occurs when dealing with the 28th of February.](https://github.com/date-fns/date-fns/pull/2256) ([#2255](https://github.com/date-fns/date-fns/issues/2255)) + +### Added + +- [Added new functions: `nextDay`, `nextMonday` and `nextTuesday` that allows getting the next day of the week, Monday or Tuesday respectively.](https://github.com/date-fns/date-fns/pull/2214) + +## v2.18.0 - 2021-03-01 + +Thanks to [Tan75](http://github.com/tan75) and [Lesha Koss](http://github.com/leshakoss). + +### Fixed + +- [Fixed documentation missing for `intlFormat`.](https://github.com/date-fns/date-fns/pull/2259) ([#2258](https://github.com/date-fns/date-fns/issues/2258)) + +- [Fixed date formats in the Latvian locale.](https://github.com/date-fns/date-fns/pull/2205) ([#2202](https://github.com/date-fns/date-fns/issues/2202)) + +### Added + +- [Added support of positive and negative offsets in `parseJSON`.](https://github.com/date-fns/date-fns/pull/2200) ([#2149](https://github.com/date-fns/date-fns/issues/2149)) + +## [2.17.0] - 2021-02-05 + +Kudos to [@shaykav](https://github.com/date-fns/date-fns/pull/1952), [@davidgape89](https://github.com/davidgape89), [@rikkalo](https://github.com/rikkalo), [@tan75](https://github.com/tan75), [@talgautb](https://github.com/talgautb), [@owenl131](https://github.com/owenl131), [@kylesezhi](https://github.com/kylesezhi), [@inigoiparragirre](https://github.com/inigoiparragirre), [@gius](https://github.com/gius), [@Endeauvirr](https://github.com/Endeauvirr) and [@frankyston](https://github.com/frankyston). + +### Fixed + +- [Fixed Russian locale parsing issue](https://github.com/date-fns/date-fns/pull/1950). + +- [Fixed `differenceInMonths` for edge cases, such as the end of February dates](https://github.com/date-fns/date-fns/pull/2185). + +- [Fixed suffixes for the Kazakh locale](https://github.com/date-fns/date-fns/pull/2010). + +- [Fixed `formatDuration` week translation in `pt` and `pt-BR` locales](https://github.com/date-fns/date-fns/pull/2125). + +- [Made Japanese locale to use the correct value for the start of the week](https://github.com/date-fns/date-fns/pull/2099). + +- [Adjusted date formats in the Basque locale](https://github.com/date-fns/date-fns/pull/2080). + +- [Fixed the short and medium date formats in the Czech locale](https://github.com/date-fns/date-fns/pull/2111). + +- [Adjusted the Polish translations of `formatDistance`](https://github.com/date-fns/date-fns/pull/2187). + +- [Fixed the week's abbreviations in the Brazilian Portuguese](https://github.com/date-fns/date-fns/pull/2170). + +### Added + +- [Added `intlFormat`](https://github.com/date-fns/date-fns/pull/2172) a lightweight formatting function that uses [Intl API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl). Eventually, it will become the default formatting function, so it's highly recommended for new code. + +- [Added `en-ZA` locale](https://github.com/date-fns/date-fns/pull/1952). + +- [Added an ability to format lowercase am/pm with `aaa` and `bbb` tokens](https://github.com/date-fns/date-fns/pull/2016). + +- [Added ordinal formatting for Japanese year values](https://github.com/date-fns/date-fns/pull/2177/files). + +## [2.16.1] - 2020-07-31 + +Kudos to [@aleksaps](https://github.com/aleksaps), [@leedriscoll](https://github.com/leedriscoll) and [@BanForFun](https://github.com/BanForFun) for pull-requests! + +### Fixed + +- [Fixed a typo in Scottish Gaelic (gd) locale](https://github.com/date-fns/date-fns/pull/1925). +- [Fixed typos in Serbian Latin locale](https://github.com/date-fns/date-fns/pull/1928). +- [Fixed greek grammar for Saturday on `formatRelative`](https://github.com/date-fns/date-fns/pull/1930). +- Removed locale snapshots from the npm package making it lighter. + +## [2.16.0] - 2020-08-27 + +Kudos to [@jvpelt](https://github.com/jvpelt), [@piotrl](https://github.com/piotrl), [@yotamofek](https://github.com/yotamofek), [@dwaxweiler](https://github.com/dwaxweiler), [@leedriscoll](https://github.com/leedriscoll) and [@bradevans](https://github.com/bradevans) for working on the release. Also thanks to [@PascalHonegger](https://github.com/PascalHonegger), [@pickfire](https://github.com/pickfire), [@TheJaredWilcurt](https://github.com/TheJaredWilcurt), [@SidKH](https://github.com/SidKH) and [@nfantone](https://github.com/nfantone) for improving the documentation. + +### Fixed + +- [Added correct translations for Welsh `1 minute` and `2 days`](https://github.com/date-fns/date-fns/pull/1903). +- [Fixed `formatRFC3339` formatting timezone offset with minutes](https://github.com/date-fns/date-fns/pull/1890). +- [Added missing locale type definition for `formatDuration`](https://github.com/date-fns/date-fns/pull/1881) +- [Fixed Scottish Gaelic locale issues](https://github.com/date-fns/date-fns/pull/1914). + +### Changed + +- [Used shorter Hebrew alternative for "about"](https://github.com/date-fns/date-fns/pull/1893). +- [Improved string arguments warning after upgrading to v2](https://github.com/date-fns/date-fns/pull/1910). + +### Added + +- [Added Luxembourgish (lb) locale](https://github.com/date-fns/date-fns/pull/1900). + +## [2.15.0] - 2020-07-17 + +Thanks to [@belgamo](https://github.com/belgamo), [@Matsuuu](https://github.com/Matsuuu), [@Imballinst](https://github.com/Imballinst), [@arsnyder16](https://github.com/arsnyder16), [@pankajupadhyay29](https://github.com/pankajupadhyay29), [@DCBN](https://github.com/DCBN), [@leedriscoll](https://github.com/leedriscoll), [@gottsohn](https://github.com/gottsohn), [@mukuljainx](https://github.com/mukuljainx) and [@dtriana](https://github.com/dtriana) for working on the release. Also kudos to [@KidkArolis](https://github.com/KidkArolis), [@imgx64](https://github.com/imgx64), [@fjc0k](https://github.com/fjc0k), [@wmonk](https://github.com/wmonk), [@djD-REK](https://github.com/djD-REK), [@dandv](https://github.com/dandv), [@psimk](https://github.com/psimk) and [@brimworks](https://github.com/brimworks) for improving the documentation. + +### Fixed + +- [Fixed behavior of `addBusinessDays` when input date is a weekend day](https://github.com/date-fns/date-fns/pull/1790). +- [Fixed `parseISO` not returning `Invalid Date` on incorrect string when there are spaces in it](https://github.com/date-fns/date-fns/pull/1791). +- [Fixed `es` round-tripping dates with Wednesday](https://github.com/date-fns/date-fns/pull/1792). +- [Fixed round-trip bug with `d`/`EEEE` ordering in tokens like `PPPPP`](https://github.com/date-fns/date-fns/pull/1795). +- [Fixed issues with parsing values in Japanese](https://github.com/date-fns/date-fns/pull/1807). +- [Fixed Hungarian breaking IE11](https://github.com/date-fns/date-fns/pull/1842). +- [Fixed Spanish accents in Saturday and Wednesday](https://github.com/date-fns/date-fns/pull/1872). + +### Changed + +- [Improved the message of protected tokens error](https://github.com/date-fns/date-fns/pull/1641). + +### Added + +- [Added Swiss-French `fr-CH` locale](https://github.com/date-fns/date-fns/pull/1809). +- [Added Flemish `nl-BE` locale](https://github.com/date-fns/date-fns/pull/1812). +- [Added Scottish Gaelic `gd` locale](https://github.com/date-fns/date-fns/pull/1832). +- [Added New Zealand English `en-NZ` locale](https://github.com/date-fns/date-fns/pull/1835). +- [Added `isMatch` function](https://github.com/date-fns/date-fns/pull/1868). + +## [2.14.0] - 2020-05-18 + +Kudos to [@julamb](https://github.com/julamb), [@JacobSoderblom](https://github.com/JacobSoderblom), [@justingrant](http://github.com/justingrant), [@dragunoff](https://github.com/dragunoff), [@jmate0321](https://github.com/jmate0321), [@gbhasha](https://github.com/gbhasha), [@rasck](https://github.com/rasck), [@AlbertoPdRF](https://github.com/AlbertoPdRF), [@sebastianhaberey](https://github.com/sebastianhaberey) and [@giogonzo](https://github.com/giogonzo) for working on the release! + +### Fixed + +- [Fixed DST issues with `add`, `addDays` and `addMonths`](https://github.com/date-fns/date-fns/pull/1760). +- [Fixed "quarter" translation in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1763). +- [Fixed `formatDistance` strings in the Hungarian locale](https://github.com/date-fns/date-fns/pull/1765). +- [Fixed Danish month abbreviations](https://github.com/date-fns/date-fns/pull/1774). +- [Fixed parsing of mei in the Dutch locale](https://github.com/date-fns/date-fns/pull/1774). +- [Fixed missing preposition in `formatLong` in the Spanish locale](https://github.com/date-fns/date-fns/pull/1775). +- [Fixed `formatRelative` in the Italian locale](https://github.com/date-fns/date-fns/pull/1777). + +### Added + +- [Added `eachQuarterOfInterval`](https://github.com/date-fns/date-fns/pull/1715). +- [Added Basque (`eu`) locale](https://github.com/date-fns/date-fns/pull/1759). +- [Added Indian English (`en-IN`) locale](https://github.com/date-fns/date-fns/pull/1767). +- [Added `eachHourOfInterval`](https://github.com/date-fns/date-fns/pull/1776). + +## [2.13.0] - 2020-05-06 + +Thanks to [@JorenVos](https://github.com/JorenVos), [@developergouli](https://github.com/developergouli), [@rhlowe](https://github.com/rhlowe) and [@justingrant](http://github.com/justingrant) for working on the release! + +### Fixed + +- [Fixed mei abbreviation in the Dutch locale](https://github.com/date-fns/date-fns/pull/1752). +- [Fixed `differenceInDays` DST behavior broken in 2.12.0](https://github.com/date-fns/date-fns/pull/1754). + +### Added + +- [Added Kannada locale support](https://github.com/date-fns/date-fns/pull/1747). +- [Added `formatISODuration` function](https://github.com/date-fns/date-fns/pull/1713). +- [Added `intervalToDuration` function](https://github.com/date-fns/date-fns/pull/1713). + +## [2.12.0] - 2020-04-09 + +Kudos to [@leshakoss](http://github.com/leshakoss), [@skyuplam](https://github.com/skyuplam), [@so99ynoodles](https://github.com/so99ynoodles), [@dkozickis](https://github.com/dkozickis), [@belgamo](https://github.com/belgamo), [@akgondber](https://github.com/akgondber), [@dcousens](https://github.com/dcousens) and [@BoomDev](https://github.com/BoomDev) for working on the release! + +### Fixed + +- [Fixed minulý štvrtok in Slovak locale](https://github.com/date-fns/date-fns/pull/1701). +- Fixed date ordinalNumber for [ja/zh-CN/zh-TW](https://github.com/date-fns/date-fns/pull/1690) and [ko](https://github.com/date-fns/date-fns/pull/1696). +- [Fixed quarters parsing](https://github.com/date-fns/date-fns/pull/1694). +- [Fixed `setDay` with `weekStartsOn` != 0](https://github.com/date-fns/date-fns/pull/1639). +- [Fixed differenceInDays across DST](https://github.com/date-fns/date-fns/pull/1630). +- [Fixed required arguments exception message](https://github.com/date-fns/date-fns/pull/1674). + +### Added + +- [Added new function `formatDistanceToNowStrict`](https://github.com/date-fns/date-fns/pull/1679). + +## [2.11.1] - 2020-03-26 + +### Fixed + +- Rebuilt TypeScript and flow types. + +## [2.11.0] - 2020-03-13 + +Kudos to [@oakhan3](https://github.com/oakhan3), [@Mukhammadali](https://github.com/Mukhammadali), [@altrim](https://github.com/altrim), [@leepowellcouk](https://github.com/leepowellcouk), [@amatzon](@https://github.com/amatzon), [@bryanMt](https://github.com/bryanMt), [@kalekseev](https://github.com/kalekseev), [@eugene-platov](https://github.com/eugene-platov) and [@tjrobinson](https://github.com/tjrobinson) for working on the release. + +### Fixed + +- [Fixed a bug in `differenceInYears` causing incorrect results when the left date is a leap day](https://github.com/date-fns/date-fns/pull/1654). +- [Fixed `parseISO` to work correctly around time shift dates](https://github.com/date-fns/date-fns/pull/1667). +- [Fixed `format` to work correctly with GMT-0752/GMT-0456 and similar timezones](https://github.com/date-fns/date-fns/pull/1666). + +### Changed + +- [Changed `getDay` typings to return `0|1|2|3|4|5|6` instead of `number`](https://github.com/date-fns/date-fns/pull/1668). +- [Improved Chinese locale](https://github.com/date-fns/date-fns/pull/1664): + - Change date format to meet the national standard (GB/T 7408-2005). + - Improve `ordinalNumber` function behavior. + - Add prefix in `formatRelative` depending on if it's a current week or not. + +### Added + +- [Added Uzbek `uz` locale](https://github.com/date-fns/date-fns/pull/1648). +- [Updated Macedonian locale for v2](https://github.com/date-fns/date-fns/pull/1649). +- [Added Maltese `mt` locale](https://github.com/date-fns/date-fns/pull/1658). + +## [2.10.0] - 2020-02-25 + +### Fixed + +- [Fixed `formatISO` when formatting time with timezones with minute offsets > 0](https://github.com/date-fns/date-fns/pull/1599). Kudos to [@dcRUSTy](https://github.com/dcRUSTy). + +### Fixed + +- Fixed a bug in setDay when using weekStartsOn that is not 0 + +### Added + +- [Added `weeks` to `Duration`](https://github.com/date-fns/date-fns/pull/1592). +- [Added `weeks` support to `add` and `sub`](https://github.com/date-fns/date-fns/pull/1592). +- [Added details message in `throwProtectedError`](https://github.com/date-fns/date-fns/pull/1592). + +## [2.9.0] - 2020-01-08 + +Thanks to [@mborgbrant](https://github.com/mborgbrant), [@saintplay](https://github.com/saintplay), [@mrenty](https://github.com/mrenty), [@kibertoad](https://github.com/kibertoad), [@levibuzolic](https://github.com/levibuzolic), [@Anshuman71](https://github.com/Anshuman71), [@talgautb](https://github.com/talgautb), [@filipjuza](https://github.com/filipjuza), [@tobyzerner](https://github.com/tobyzerner), [@emil9453](https://github.com/emil9453), [@fintara](https://github.com/fintara), [@pascaliske](https://github.com/pascaliske), [@rramiachraf](https://github.com/rramiachraf), [@marnusw](https://github.com/marnusw) and [@Imballinst](https://github.com/Imballinst) for working on the release. + +### Fixed + +- [Fixed a bug with addBusinessDays returning the Tuesday when adding 1 day on weekends. Now it returns the Monday](https://github.com/date-fns/date-fns/pull/1588). +- [Added missing timezone to `formatISO`](https://github.com/date-fns/date-fns/pull/1576). +- [Removed dots from short day period names in the Kazakh locale](https://github.com/date-fns/date-fns/pull/1512). +- [Fixed typo in formatDistance in the Czech locale](https://github.com/date-fns/date-fns/pull/1540). +- [Fixed shortenings in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1560). +- [Fixed regex for the May in the Portuguese locale](https://github.com/date-fns/date-fns/pull/1565). + +### Added + +- [Added `eachMonthOfInterval` and `eachYearOfInterval`](https://github.com/date-fns/date-fns/pull/618). +- [Added `inclusive` option to `areIntervalsOverlapping](https://github.com/date-fns/date-fns/pull/643). +- [Added `isExists` function that checks if the given date is exists](https://github.com/date-fns/date-fns/pull/682). +- [Added `add` function to add seconds, minutes, hours, weeks, years in single call](https://github.com/date-fns/date-fns/pull/1581). +- [Added `sub` function, the opposite of `add`](https://github.com/date-fns/date-fns/pull/1583). +- [Added `Duration` type used in `add` and `sub`](https://github.com/date-fns/date-fns/pull/1583). +- [Added Azerbaijani (az) locale](https://github.com/date-fns/date-fns/pull/1547). +- [Added Moroccan Arabic (ar-MA) locale](https://github.com/date-fns/date-fns/pull/1578). + +### Changed + +- [Reduced the total minified build size by 1Kb/4%](https://github.com/date-fns/date-fns/pull/1563). +- [Made all properties in `Locale` type optional](https://github.com/date-fns/date-fns/pull/1542). +- [Added missing properties to `Locale` type](https://github.com/date-fns/date-fns/pull/1542). +- [Add the locale code to `Locale` type](https://github.com/date-fns/date-fns/pull/1580). +- [Added support of space time separator to `parseJSON`](https://github.com/date-fns/date-fns/pull/1579). +- [Allowed up to 7 digits in milliseconds in `parseJSON`](https://github.com/date-fns/date-fns/pull/1579). + +## [2.8.1] - 2019-11-22 + +Thanks to [@Imballinst](https://github.com/Imballinst) for the bug fix! + +### Fixed + +- [Add colon between the hour and minutes for `formatRFC3339`](https://github.com/date-fns/date-fns/pull/1549). [See #1548](https://github.com/date-fns/date-fns/issues/1548). + +## [2.8.0] - 2019-11-19 + +Kudos to [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@Imballinst](https://github.com/Imballinst), [@leshakoss](https://github.com/leshakoss) and [@Neorth](https://github.com/Neorth) for working on the release. + +### Fixed + +- [Remove the next week preposition in the Swedish locale](https://github.com/date-fns/date-fns/pull/1538). + +### Added + +- [Added Malay (ms) locale](https://github.com/date-fns/date-fns/pull/1537). +- [Added `formatISO`, `formatISO9075`, `formatRFC3339`, and `formatRFC7231` functions](https://github.com/date-fns/date-fns/pull/1536). + +## [2.7.0] - 2019-11-07 + +Thanks to [@mzgajner](https://github.com/mzgajner), [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@leshakoss](https://github.com/leshakoss), [@fintara](https://github.com/fintara), [@kpr-hellofresh](https://github.com/kpr-hellofresh) for contributing to the release. + +### Fixed + +- [Fixed a mistake in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1529). +- [Fixed incorrect behavior of `parseISO` in Firefox caused by differences in `getTimezoneOffset`](https://github.com/date-fns/date-fns/pull/1495). + +### Changed + +- [Make object arguments types more elaborate in Flow type definitions](https://github.com/date-fns/date-fns/pull/1519). +- [Get rid of deprecated Function in Flow type definitions](https://github.com/date-fns/date-fns/pull/1520). +- [Allow `parseJSON` to accept strings without trailing 'Z' symbol and with up to 6 digits in the milliseconds' field](https://github.com/date-fns/date-fns/pull/1499). + +### Added + +- [Added Bulgarian (bg) locale](https://github.com/date-fns/date-fns/pull/1522). + +## [2.6.0] - 2019-10-22 + +Kudos to [@marnusw](https://github.com/marnusw), [@cdrikd](https://github.com/cdrikd) and [@rogyvoje](https://github.com/rogyvoje) for working on the release! + +### Added + +- [Added `parseJSON` - lightweight function (just 411 B) that parses dates formatted with `toJSON`](https://github.com/date-fns/date-fns/pull/1463). +- [Added the language code to each locale](https://github.com/date-fns/date-fns/pull/1489). +- [Added `subBusinessDays` function](https://github.com/date-fns/date-fns/pull/1491). +- [Added both Serbian - cyrillic (sr) and latin (sr-Latn) locales](https://github.com/date-fns/date-fns/pull/1494). + +## [2.5.1] - 2019-10-18 + +Thanks to [@mitchellbutler](https://github.com/mitchellbutler) for the bug fix! + +### Fixed + +- [Fixed infinite loop in `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1486). + +## [2.5.0] - 2019-10-16 + +Kudos to [@dkozickis](https://github.com/dkozickis), [@drugoi](https://github.com/drugoi), [@kranthilakum](https://github.com/kranthilakum), [@102](https://github.com/102), [@gpetrioli](https://github.com/gpetrioli) and [@JulienMalige](https://github.com/JulienMalige) for making the release happen. + +### Fixed + +- [Fixed compatibility with IE11 by removing `findIndex` from the code](https://github.com/date-fns/date-fns/pull/1457). +- [Fixed Greek locale patterns](https://github.com/date-fns/date-fns/pull/1480). + +### Added + +- [Added Kazakh (kk) locale](https://github.com/date-fns/date-fns/pull/1460). +- [Added Telugu (te) locale](https://github.com/date-fns/date-fns/pull/1464). +- [Added Canadian French (fr-CA) locale](https://github.com/date-fns/date-fns/issues/1465). +- [Added Australian English (en-AU) locale](https://github.com/date-fns/date-fns/pull/1470). +- [Exported `Interval` and `Locale` types from Flow typings](https://github.com/date-fns/date-fns/pull/1475). + +## [2.4.1] - 2019-09-28 + +Thanks to [@mrclayman](https://github.com/mrclayman) for reporting the issue and [@leshakoss](https://github.com/leshakoss) for fixing it. + +### Fixed + +- [Fixed am/pm mixup in the Czech locale](https://github.com/date-fns/date-fns/pull/1453). + +## [2.4.0] - 2019-09-27 + +This release is brought to you by these amazing people: [@lovelovedokidoki](https://github.com/lovelovedokidoki), [@alexigityan](https://github.com/alexigityan), [@kalekseev](https://github.com/kalekseev) and [@andybangs](https://github.com/andybangs). You rock! + +### Fixed + +- [Fixed Vietnamese parsing patterns](https://github.com/date-fns/date-fns/pull/1445). +- [Fixed Czech parsing regexes](https://github.com/date-fns/date-fns/pull/1446). +- [Fixed offset for Eastern Hemisphere in `parseISO`](https://github.com/date-fns/date-fns/pull/1450). + +### Added + +- [Added Armenian locale support](https://github.com/date-fns/date-fns/pull/1448). + +## [2.3.0] - 2019-09-24 + +Huge thanks to [@lovelovedokidoki](https://github.com/lovelovedokidoki) who improved 8 (!) locales in an unstoppable open-source rampage and [@VesterDe](https://github.com/VesterDe) for fixing Slovenian locale 👏 + +### Fixed + +- [Fixed the translation of "yesterday" in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1420). +- [Fixed French parsing issues with June and August](https://github.com/date-fns/date-fns/pull/1430). +- [Improved Turkish parsing](https://github.com/date-fns/date-fns/pull/1432). +- [Fixed "March" in Dutch parsing patterns](https://github.com/date-fns/date-fns/pull/1433). +- [Fixed Hindi parsing patterns](https://github.com/date-fns/date-fns/pull/1434). + +### Added + +- [Added Finnish matching patterns](https://github.com/date-fns/date-fns/pull/1425). +- [Accept abbreviated March, June, July in Norwegian locales](https://github.com/date-fns/date-fns/pull/1431). +- [Added parsing for Greek months with long formatting](https://github.com/date-fns/date-fns/pull/1435). + +## [2.2.1] - 2019-09-12 + +Kudos to date-fns contributors: [@mzgajner](https://github.com/mzgajner), [@sibiraj-s](https://github.com/sibiraj-s), [@mukeshmandiwal](https://github.com/mukeshmandiwal), [@SneakyFish5](https://github.com/SneakyFish5) and [@CarterLi](https://github.com/CarterLi). + +### Added + +- [Added new `set` function](https://github.com/date-fns/date-fns/pull/1398). +- [Updated Slovenian (sl) locale for v2](https://github.com/date-fns/date-fns/pull/1418). +- [Added Tamil (ta) locale](https://github.com/date-fns/date-fns/pull/1411). +- [Added Hindi (hi) locale](https://github.com/date-fns/date-fns/pull/1409). +- [Added support of `\n` in `format`, `lightFormat` and `parse`](https://github.com/date-fns/date-fns/pull/1417). + +## [2.1.0] - 2019-09-06 + +Thanks to date-fns contributors: [@ManadayM](https://github.com/ManadayM), [@illuminist](https://github.com/illuminist), [@visualfanatic](https://github.com/visualfanatic), [@vsaarinen](https://github.com/vsaarinen) and at last but not the least [@leshakoss](https://github.com/leshakoss)! + +### Fixed + +- [Set start of the week to Sunday for Thai locale](https://github.com/date-fns/date-fns/pull/1402). +- [Fixed month matching in Polish locale](https://github.com/date-fns/date-fns/pull/1404). +- [Fixed `eachWeekendOfInterval` skipping the first date in the supplied interval](https://github.com/date-fns/date-fns/pull/1407). + +### Added + +- [Added Gujarati locale](https://github.com/date-fns/date-fns/pull/1400). + +## [2.0.1] - 2019-08-23 + +### Fixed + +- [Fix](https://github.com/date-fns/date-fns/pull/1046) `getWeekOfMonth` with `options.weekStartsOn` set to 1 [not working for Sundays](https://github.com/date-fns/date-fns/issues/1040). Kudos to [@waseemahmad31](https://github.com/waseemahmad31)! + +## [2.0.0] - 2019-08-20 + +If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https://gist.github.com/kossnocorp/a307a464760b405bb78ef5020a4ab136). + +### Fixed + +- Fixed the `toDate` bug occurring when parsing ISO-8601 style dates (but not valid ISO format) + with a trailing Z (e.g `2012-01Z`), it returned Invalid Date for FireFox/IE11 [#510](https://github.com/date-fns/date-fns/issue/510) + +- Fixed `differenceIn...` functions returning negative zero in some cases: + [#692](https://github.com/date-fns/date-fns/issues/692) + +- `isDate` now works properly with dates passed across iframes [#754](https://github.com/date-fns/date-fns/pull/754). + +- Fixed a few bugs that appeared in timezones with offsets that include seconds (e.g. GMT+00:57:44). + See PR [#789](https://github.com/date-fns/date-fns/pull/789). + +- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1003). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details. + +- Fixed DST issue in `eachDayOfInterval` that caused time in the days + after DST change to have the shift as well. + +- Fixed bug in Galician locale caused by incorrect usage of `getHours` + instead of `getUTCHours`. + +### Changed + +- **BREAKING**: now functions don't accept string arguments, but only + numbers or dates. When a string is passed, it will result in + an unexpected result (`Invalid Date`, `NaN`, etc). + + From now on a string should be parsed using `parseISO` (ISO 8601) + or `parse`. + + In v1 we've used `new Date()` to parse strings, but it resulted in many + hard-to-track bugs caused by inconsistencies in different browsers. + To address that we've implemented our ISO 8601 parser but that made + library to significantly grow in size. To prevent inevitable bugs + and keep the library tiny, we made this trade-off. + + See [this post](https://blog.date-fns.org/post/we-cut-date-fns-v2-minimal-build-size-down-to-300-bytes-and-now-its-the-smallest-date-library-18f2nvh2z0yal) for more details. + + ```javascript + // Before v2.0.0 + addDays("2016-01-01", 1); + + // v2.0.0 onward + addDays(parseISO("2016-01-01"), 1); + ``` + +- **BREAKING**: new format string API for `format` function + which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). + See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details. + + | Unit | v2 Pattern | v1 Pattern | Result examples | + | ------------------------------- | ---------- | ---------- | --------------------------------- | + | Era | G..GGG | | AD, BC | + | | GGGG | | Anno Domini, Before Christ | + | | GGGGG | | A, B | + | Calendar year | y | | 44, 1, 1900, 2017 | + | | yo | | 44th, 1st, 0th, 17th | + | | yy | YY | 44, 01, 00, 17 | + | | yyy | | 044, 001, 1900, 2017 | + | | yyyy | YYYY | 0044, 0001, 1900, 2017 | + | | yyyyy | | ... | + | Local week-numbering year | Y | | 44, 1, 1900, 2017 | + | | Yo | | 44th, 1st, 1900th, 2017th | + | | YY | | 44, 01, 00, 17 | + | | YYY | | 044, 001, 1900, 2017 | + | | YYYY | | 0044, 0001, 1900, 2017 | + | | YYYYY | | ... | + | ISO week-numbering year | R | | -43, 0, 1, 1900, 2017 | + | | RR | GG | -43, 00, 01, 1900, 2017 | + | | RRR | | -043, 000, 001, 1900, 2017 | + | | RRRR | GGGG | -0043, 0000, 0001, 1900, 2017 | + | | RRRRR | | ... | + | Extended year | u | | -43, 0, 1, 1900, 2017 | + | | uu | | -43, 01, 1900, 2017 | + | | uuu | | -043, 001, 1900, 2017 | + | | uuuu | | -0043, 0001, 1900, 2017 | + | | uuuuu | | ... | + | Quarter (formatting) | Q | | 1, 2, 3, 4 | + | | Qo | | 1st, 2nd, 3rd, 4th | + | | QQ | | 01, 02, 03, 04 | + | | QQQ | | Q1, Q2, Q3, Q4 | + | | QQQQ | | 1st quarter, 2nd quarter, ... | + | | QQQQQ | | 1, 2, 3, 4 | + | Quarter (stand-alone) | q | Q | 1, 2, 3, 4 | + | | qo | Qo | 1st, 2nd, 3rd, 4th | + | | qq | | 01, 02, 03, 04 | + | | qqq | | Q1, Q2, Q3, Q4 | + | | qqqq | | 1st quarter, 2nd quarter, ... | + | | qqqqq | | 1, 2, 3, 4 | + | Month (formatting) | M | | 1, 2, ..., 12 | + | | Mo | | 1st, 2nd, ..., 12th | + | | MM | | 01, 02, ..., 12 | + | | MMM | | Jan, Feb, ..., Dec | + | | MMMM | | January, February, ..., December | + | | MMMMM | | J, F, ..., D | + | Month (stand-alone) | L | M | 1, 2, ..., 12 | + | | Lo | | 1st, 2nd, ..., 12th | + | | LL | MM | 01, 02, ..., 12 | + | | LLL | MMM | Jan, Feb, ..., Dec | + | | LLLL | MMMM | January, February, ..., December | + | | LLLLL | | J, F, ..., D | + | Local week of year | w | | 1, 2, ..., 53 | + | | wo | | 1st, 2nd, ..., 53th | + | | ww | | 01, 02, ..., 53 | + | ISO week of year | I | W | 1, 2, ..., 53 | + | | Io | Wo | 1st, 2nd, ..., 53th | + | | II | WW | 01, 02, ..., 53 | + | Day of month | d | D | 1, 2, ..., 31 | + | | do | Do | 1st, 2nd, ..., 31st | + | | dd | DD | 01, 02, ..., 31 | + | Day of year | D | DDD | 1, 2, ..., 365, 366 | + | | Do | DDDo | 1st, 2nd, ..., 365th, 366th | + | | DD | | 01, 02, ..., 365, 366 | + | | DDD | DDDD | 001, 002, ..., 365, 366 | + | | DDDD | | ... | + | Day of week (formatting) | E..EEE | | Mon, Tue, Wed, ..., Su | + | | EEEE | | Monday, Tuesday, ..., Sunday | + | | EEEEE | | M, T, W, T, F, S, S | + | | EEEEEE | | Mo, Tu, We, Th, Fr, Sa, Su | + | ISO day of week (formatting) | i | E | 1, 2, 3, ..., 7 | + | | io | do | 1st, 2nd, ..., 7th | + | | ii | | 01, 02, ..., 07 | + | | iii | ddd | Mon, Tue, Wed, ..., Su | + | | iiii | dddd | Monday, Tuesday, ..., Sunday | + | | iiiii | | M, T, W, T, F, S, S | + | | iiiiii | dd | Mo, Tu, We, Th, Fr, Sa, Su | + | Local day of week (formatting) | e | | 2, 3, 4, ..., 1 | + | | eo | | 2nd, 3rd, ..., 1st | + | | ee | | 02, 03, ..., 01 | + | | eee | | Mon, Tue, Wed, ..., Su | + | | eeee | | Monday, Tuesday, ..., Sunday | + | | eeeee | | M, T, W, T, F, S, S | + | | eeeeee | | Mo, Tu, We, Th, Fr, Sa, Su | + | Local day of week (stand-alone) | c | | 2, 3, 4, ..., 1 | + | | co | | 2nd, 3rd, ..., 1st | + | | cc | | 02, 03, ..., 01 | + | | ccc | | Mon, Tue, Wed, ..., Su | + | | cccc | | Monday, Tuesday, ..., Sunday | + | | ccccc | | M, T, W, T, F, S, S | + | | cccccc | | Mo, Tu, We, Th, Fr, Sa, Su | + | AM, PM | a..aaa | A | AM, PM | + | | aaaa | aa | a.m., p.m. | + | | aaaaa | | a, p | + | AM, PM, noon, midnight | b..bbb | | AM, PM, noon, midnight | + | | bbbb | | a.m., p.m., noon, midnight | + | | bbbbb | | a, p, n, mi | + | Flexible day period | B..BBB | | at night, in the morning, ... | + | | BBBB | | at night, in the morning, ... | + | | BBBBB | | at night, in the morning, ... | + | Hour [1-12] | h | | 1, 2, ..., 11, 12 | + | | ho | | 1st, 2nd, ..., 11th, 12th | + | | hh | | 01, 02, ..., 11, 12 | + | Hour [0-23] | H | | 0, 1, 2, ..., 23 | + | | Ho | | 0th, 1st, 2nd, ..., 23rd | + | | HH | | 00, 01, 02, ..., 23 | + | Hour [0-11] | K | | 1, 2, ..., 11, 0 | + | | Ko | | 1st, 2nd, ..., 11th, 0th | + | | KK | | 1, 2, ..., 11, 0 | + | Hour [1-24] | k | | 24, 1, 2, ..., 23 | + | | ko | | 24th, 1st, 2nd, ..., 23rd | + | | kk | | 24, 01, 02, ..., 23 | + | Minute | m | | 0, 1, ..., 59 | + | | mo | | 0th, 1st, ..., 59th | + | | mm | | 00, 01, ..., 59 | + | Second | s | | 0, 1, ..., 59 | + | | so | | 0th, 1st, ..., 59th | + | | ss | | 00, 01, ..., 59 | + | Fraction of second | S | | 0, 1, ..., 9 | + | | SS | | 00, 01, ..., 99 | + | | SSS | | 000, 0001, ..., 999 | + | | SSSS | | ... | + | Timezone (ISO-8601 w/ Z) | X | | -08, +0530, Z | + | | XX | | -0800, +0530, Z | + | | XXX | | -08:00, +05:30, Z | + | | XXXX | | -0800, +0530, Z, +123456 | + | | XXXXX | | -08:00, +05:30, Z, +12:34:56 | + | Timezone (ISO-8601 w/o Z) | x | | -08, +0530, +00 | + | | xx | ZZ | -0800, +0530, +0000 | + | | xxx | Z | -08:00, +05:30, +00:00 | + | | xxxx | | -0800, +0530, +0000, +123456 | + | | xxxxx | | -08:00, +05:30, +00:00, +12:34:56 | + | Timezone (GMT) | O...OOO | | GMT-8, GMT+5:30, GMT+0 | + | | OOOO | | GMT-08:00, GMT+05:30, GMT+00:00 | + | Timezone (specific non-locat.) | z...zzz | | GMT-8, GMT+5:30, GMT+0 | + | | zzzz | | GMT-08:00, GMT+05:30, GMT+00:00 | + | Seconds timestamp | t | X | 512969520 | + | | tt | | ... | + | Milliseconds timestamp | T | x | 512969520900 | + | | TT | | ... | + | Long localized date | P | | 5/29/53 | + | | PP | | May 29, 1453 | + | | PPP | | May 29th, 1453 | + | | PPPP | | Sunday, May 29th, 1453 | + | Long localized time | p | | 12:00 AM | + | | pp | | 12:00:00 AM | + | | ppp | | 12:00:00 AM GMT+2 | + | | pppp | | 12:00:00 AM GMT+02:00 | + | Combination of date and time | Pp | | 5/29/53, 12:00 AM | + | | PPpp | | May 29, 1453, 12:00 AM | + | | PPPppp | | May 29th, 1453 at ... | + | | PPPPpppp | | Sunday, May 29th, 1453 at ... | + + Characters are now escaped using single quote symbols (`'`) instead of square brackets. + `format` now throws RangeError if it encounters an unescaped latin character + that isn't a valid formatting token. + + To use `YY` and `YYYY` tokens that represent week-numbering years, + you should set `useAdditionalWeekYearTokens` option: + + ```javascript + format(Date.now(), "YY", { useAdditionalWeekYearTokens: true }); + //=> '86' + ``` + + To use `D` and `DD` tokens which represent days of the year, + set `useAdditionalDayOfYearTokens` option: + + ```javascript + format(Date.now(), "D", { useAdditionalDayOfYearTokens: true }); + //=> '364' + ``` + +- **BREAKING**: function submodules now use camelCase naming schema: + + ```javascript + // Before v2.0.0 + import differenceInCalendarISOYears from "date-fns/difference_in_calendar_iso_years"; + + // v2.0.0 onward + import differenceInCalendarISOYears from "date-fns/differenceInCalendarISOYears"; + ``` + +- **BREAKING**: min and max functions now accept an array of dates + rather than spread arguments. + + ```javascript + // Before v2.0.0 + var date1 = new Date(1989, 6 /* Jul */, 10); + var date2 = new Date(1987, 1 /* Feb */, 11); + + var minDate = min(date1, date2); + var maxDate = max(date1, date2); + + // v2.0.0 onward: + var dates = [ + new Date(1989, 6 /* Jul */, 10), + new Date(1987, 1 /* Feb */, 11), + ]; + + var minDate = min(dates); + var maxDate = max(dates); + ``` + +- **BREAKING**: make the second argument of `format` required for the sake of explicitness. + + ```javascript + // Before v2.0.0 + format(new Date(2016, 0, 1)); + + // v2.0.0 onward + format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx"); + ``` + +- **BREAKING** renamed ISO week-numbering year helpers: + - `addISOYears` → `addISOWeekYears` + - `differenceInCalendarISOYears` → `differenceInCalendarISOWeekYears` + - `differenceInISOYears` → `differenceInISOWeekYears` + - `endOfISOYear` → `endOfISOWeekYear` + - `getISOYear` → `getISOWeekYear` + - `isSameISOYear` → `isSameISOWeekYear` + - `lastDayOfISOYear` → `lastDayOfISOWeekYear` + - `setISOYear` → `setISOWeekYear` + - `subISOYears` → `subISOWeekYears` + + i.e. "ISO year" renamed to "ISO week year", which is short for + [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + It makes them consistent with locale-dependent week-numbering year helpers, + e.g., `startOfWeekYear`. + +- **BREAKING**: functions renamed: + - `areRangesOverlapping` → `areIntervalsOverlapping` + - `eachDay` → `eachDayOfInterval` + - `getOverlappingDaysInRanges` → `getOverlappingDaysInIntervals` + - `isWithinRange` → `isWithinInterval` + + This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: + + ``` + 2.1.3 + time interval + part of the time axis limited by two instants + ``` + + Also these functions now accept an object with `start` and `end` properties + instead of two arguments as an interval. All these functions + throw `RangeError` if the start of the interval is after its end + or if any date in the interval is `Invalid Date`. + + ```javascript + // Before v2.0.0 + + areRangesOverlapping( + new Date(2014, 0, 10), + new Date(2014, 0, 20), + new Date(2014, 0, 17), + new Date(2014, 0, 21), + ); + + eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)); + + getOverlappingDaysInRanges( + new Date(2014, 0, 10), + new Date(2014, 0, 20), + new Date(2014, 0, 17), + new Date(2014, 0, 21), + ); + + isWithinRange( + new Date(2014, 0, 3), + new Date(2014, 0, 1), + new Date(2014, 0, 7), + ); + + // v2.0.0 onward + + areIntervalsOverlapping( + { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }, + ); + + eachDayOfInterval({ + start: new Date(2014, 0, 10), + end: new Date(2014, 0, 20), + }); + + getOverlappingDaysInIntervals( + { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }, + ); + + isWithinInterval(new Date(2014, 0, 3), { + start: new Date(2014, 0, 1), + end: new Date(2014, 0, 7), + }); + ``` + +- **BREAKING**: functions renamed: + - `distanceInWords` → `formatDistance` + - `distanceInWordsStrict` → `formatDistanceStrict` + - `distanceInWordsToNow` → `formatDistanceToNow` + + to make them consistent with `format` and `formatRelative`. + +- **BREAKING**: The order of arguments of `distanceInWords` and `distanceInWordsStrict` + is swapped to make them consistent with `differenceIn...` functions. + + ```javascript + // Before v2.0.0 + + distanceInWords( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 11, 32, 0), + { addSuffix: true }, + ); //=> 'in about 1 hour' + + // v2.0.0 onward + + formatDistance( + new Date(1986, 3, 4, 11, 32, 0), + new Date(1986, 3, 4, 10, 32, 0), + { addSuffix: true }, + ); //=> 'in about 1 hour' + ``` + +- **BREAKING**: `partialMethod` option in `formatDistanceStrict` is renamed to `roundingMethod`. + + ```javascript + // Before v2.0.0 + + distanceInWordsStrict( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 10, 33, 1), + { partialMethod: "ceil" }, + ); //=> '2 minutes' + + // v2.0.0 onward + + formatDistanceStrict( + new Date(1986, 3, 4, 10, 33, 1), + new Date(1986, 3, 4, 10, 32, 0), + { roundingMethod: "ceil" }, + ); //=> '2 minutes' + ``` + +- **BREAKING**: in `formatDistanceStrict`, if `roundingMethod` is not specified, + it now defaults to `round` instead of `floor`. + +- **BREAKING**: `unit` option in `formatDistanceStrict` now accepts one of the strings: + 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y' + + ```javascript + // Before v2.0.0 + + distanceInWordsStrict( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 10, 33, 1), + { unit: "m" }, + ); + + // v2.0.0 onward + + formatDistanceStrict( + new Date(1986, 3, 4, 10, 33, 1), + new Date(1986, 3, 4, 10, 32, 0), + { unit: "minute" }, + ); + ``` + +- **BREAKING**: `parse` that previously used to convert strings and + numbers to dates now parses only strings in an arbitrary format + specified as an argument. Use `toDate` to coerce numbers and `parseISO` + to parse ISO 8601 strings. + + ```javascript + // Before v2.0.0 + parse("2016-01-01"); + parse(1547005581366); + parse(new Date()); // Clone the date + + // v2.0.0 onward + parse("2016-01-01", "yyyy-MM-dd", new Date()); + parseISO("2016-01-01"); + toDate(1547005581366); + toDate(new Date()); // Clone the date + ``` + +- **BREAKING**: `toDate` (previously `parse`) now doesn't accept string + arguments but only numbers and dates. `toDate` called with an invalid + argument will return `Invalid Date`. + +- **BREAKING**: new locale format. + See [docs/Locale](https://date-fns.org/docs/Locale). + Locales renamed: + - `en` → `en-US` + - `zh_cn` → `zh-CN` + - `zh_tw` → `zh-TW` + + ```javascript + // Before v2.0.0 + import locale from "date-fns/locale/zh_cn"; + + // v2.0.0 onward + import locale from "date-fns/locale/zh-CN"; + ``` + +- **BREAKING**: now `closestTo` and `closestIndexTo` don't throw an exception + when the second argument is not an array, and return Invalid Date instead. + +- **BREAKING**: now `isValid` doesn't throw an exception + if the first argument is not an instance of Date. + Instead, argument is converted beforehand using `toDate`. + + Examples: + + | `isValid` argument | Before v2.0.0 | v2.0.0 onward | + | ------------------------- | ------------- | ------------- | + | `new Date()` | `true` | `true` | + | `new Date('2016-01-01')` | `true` | `true` | + | `new Date('')` | `false` | `false` | + | `new Date(1488370835081)` | `true` | `true` | + | `new Date(NaN)` | `false` | `false` | + | `'2016-01-01'` | `TypeError` | `false` | + | `''` | `TypeError` | `false` | + | `1488370835081` | `TypeError` | `true` | + | `NaN` | `TypeError` | `false` | + + We introduce this change to make _date-fns_ consistent with ECMAScript behavior + that try to coerce arguments to the expected type + (which is also the case with other _date-fns_ functions). + +- **BREAKING**: functions now throw `RangeError` if optional values passed to `options` + are not `undefined` or have expected values. + This change is introduced for consistency with ECMAScript standard library which does the same. + +- **BREAKING**: `format`, `formatDistance` (previously `distanceInWords`) and + `formatDistanceStrict` (previously `distanceInWordsStrict`) now throw + `RangeError` if one of the passed arguments is invalid. It reflects behavior of + `toISOString` and Intl API. See [#1032](https://github.com/date-fns/date-fns/pull/1032). + +- **BREAKING**: all functions now implicitly convert arguments by following rules: + + | | date | number | string | boolean | + | --------- | ------------ | ------ | ----------- | ------- | + | 0 | new Date(0) | 0 | '0' | false | + | '0' | Invalid Date | 0 | '0' | false | + | 1 | new Date(1) | 1 | '1' | true | + | '1' | Invalid Date | 1 | '1' | true | + | true | Invalid Date | NaN | 'true' | true | + | false | Invalid Date | NaN | 'false' | false | + | null | Invalid Date | NaN | 'null' | false | + | undefined | Invalid Date | NaN | 'undefined' | false | + | NaN | Invalid Date | NaN | 'NaN' | false | + + Notes: + - as before, arguments expected to be `Date` are converted to `Date` using _date-fns'_ `toDate` function; + - arguments expected to be numbers are converted to integer numbers using our custom `toInteger` implementation + (see [#765](https://github.com/date-fns/date-fns/pull/765)); + - arguments expected to be strings are converted to strings using JavaScript's `String` function; + - arguments expected to be booleans are converted to boolean using JavaScript's `Boolean` function. + + `null` and `undefined` passed to optional arguments (i.e. properties of `options` argument) + are ignored as if no argument was passed. + + If any resulting argument is invalid (i.e. `NaN` for numbers and `Invalid Date` for dates), + an invalid value will be returned: + - `false` for functions that return booleans (expect `isValid`); + - `Invalid Date` for functions that return dates; + - and `NaN` for functions that return numbers. + + See tests and PRs [#460](https://github.com/date-fns/date-fns/pull/460) and + [#765](https://github.com/date-fns/date-fns/pull/765) for exact behavior. + +- **BREAKING**: all functions now check if the passed number of arguments is less + than the number of required arguments and will throw `TypeError` exception if so. + +- **BREAKING**: all functions that accept numbers as arguments, now coerce + values using `Number()` and also round off decimals. Positive decimals are + rounded using `Math.floor`, decimals less than zero are rounded using + `Math.ceil`. + +- **BREAKING**: The Bower & UMD/CDN package versions are no longer supported. + +- **BREAKING**: `null` now is not a valid date. `isValid(null)` returns `false`; + `toDate(null)` returns an invalid date. Since `toDate` is used internally + by all the functions, operations over `null` will also return an invalid date. + [See #537](https://github.com/date-fns/date-fns/issues/537) for the reasoning. + +- `toDate` (previously `parse`) and `isValid` functions now accept `any` type + as the first argument. + +- [Exclude `docs.json` from the npm package](https://github.com/date-fns/date-fns/pull/837). Kudos to [@hawkrives](https://github.com/hawkrives). + +### Added + +- FP functions like those in [lodash](https://github.com/lodash/lodash/wiki/FP-Guide), + that support [currying](https://en.wikipedia.org/wiki/Currying), and, as a consequence, + functional-style [function composing](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba). + + Functions with options (`format`, `parse`, etc.) have two FP counterparts: + one that has the options object as its first argument and one that hasn't. + The name of the former has `WithOptions` added to the end of its name. + + In FP functions, the order of arguments is reversed. + + See [FP Guide](https://date-fns.org/docs/FP-Guide) for more information. + + ```javascript + import addYears from "date-fns/fp/addYears"; + import formatWithOptions from "date-fns/fp/formatWithOptions"; + import eo from "date-fns/locale/eo"; + + // If FP function has not received enough arguments, it returns another function + const addFiveYears = addYears(5); + + // Several arguments can be curried at once + const dateToString = formatWithOptions({ locale: eo }, "d MMMM yyyy"); + + const dates = [ + new Date(2017, 0 /* Jan */, 1), + new Date(2017, 1 /* Feb */, 11), + new Date(2017, 6 /* Jul */, 2), + ]; + + const formattedDates = dates.map((date) => dateToString(addFiveYears(date))); + //=> ['1 januaro 2022', '11 februaro 2022', '2 julio 2022'] + ``` + +- Added support for [ECMAScript Modules](http://www.ecma-international.org/ecma-262/6.0/#sec-modules). + + It allows usage with bundlers that support tree-shaking, + like [rollup.js](http://rollupjs.org) and [webpack](https://webpack.js.org): + + ```javascript + // Without tree-shaking: + import format from "date-fns/format"; + import parse from "date-fns/parse"; + + // With tree-shaking: + import { format, parse } from "date-fns"; + ``` + + Also, ESM functions provide default export, they can be used with TypeScript + to import functions in more idiomatic way: + + ```typescript + // Before + import * as format from "date-fns/format"; + + // Now + import format from "date-fns/format"; + ``` + +- `formatRelative` function. See [formatRelative](https://date-fns.org/docs/formatRelative) + +- Flow typings for `index.js`, `fp/index.js`, `locale/index.js`, and their ESM equivalents. + See PR [#558](https://github.com/date-fns/date-fns/pull/558) + +- New locale-dependent week-numbering year helpers: + - `getWeek` + + - `getWeekYear` + + - `setWeek` + + - `setWeekYear` + + - `startOfWeekYear` + +- Added `eachWeekOfInterval`, the weekly equivalent of `eachDayOfInterval` + +- [Added `getUnixTime` function](https://github.com/date-fns/date-fns/pull/870). Kudos to [@Kingwl](https://github.com/Kingwl). + +- [New decade helpers](https://github.com/date-fns/date-fns/pull/839). Thanks to [@y-nk](https://github.com/y-nk)! + - `getDecade` + + - `startOfDecade` + + - `endOfDecade` + + - `lastDayOfDecade` + +- [New `roundToNearestMinutes` function](https://github.com/date-fns/date-fns/pull/928). Kudos to [@xkizer](https://github.com/xkizer). + +- Added new function `fromUnixTime`. Thanks to [@xkizer](https://github.com/xkizer). + +- New interval, month, and year helpers to fetch a list of all Saturdays and Sundays (weekends) for a given date interval. `eachWeekendOfInterval` is the handler function while the other two are wrapper functions. Kudos to [@laekettavong](https://github.com/laekettavong)! + - `eachWeekendOfInterval` + + - `eachWeekendOfMonth` + + - `eachWeekendOfYear` + +- Build-efficient `lightFormat` that only supports the popular subset of tokens. See [#1050](https://github.com/date-fns/date-fns/pull/1015). + +- `parseISO` function that parses ISO 8601 strings. See [#1023](https://github.com/date-fns/date-fns/pull/1023). + +- Add constants that can be imported directly from `date-fns` or the submodule `date-fns/constants`: + - `maxTime` + + - `minTime` + +- New locales: + - [Norwegian Nynorsk locale (nn)](https://github.com/date-fns/date-fns/pull/1172) + by [@draperunner](https://github.com/draperunner). + + - [Ukrainian locale (ua)](https://github.com/date-fns/date-fns/pull/532) + by [@korzhyk](https://github.com/korzhyk). + + - [Vietnamese locale (vi)](https://github.com/date-fns/date-fns/pull/546) + by [@trongthanh](https://github.com/trongthanh). + + - [Persian locale (fa-IR)](https://github.com/date-fns/date-fns/pull/1113) + by [@mort3za](https://github.com/mort3za). + + - [Latvian locale (lv)](https://github.com/date-fns/date-fns/pull/1175) + by [@prudolfs](https://github.com/prudolfs). + + - [Bengali locale (bb)](https://github.com/date-fns/date-fns/pull/845) + by [@nutboltu](https://github.com/nutboltu) and [@touhidrahman](https://github.com/touhidrahman). + + - [Hungarian (hu) and Lithuanian (lt) locales](https://github.com/date-fns/date-fns/pull/864) + by [@izifortune](https://github.com/izifortune) and [pardoeryanair](https://github.com/pardoeryanair). + + - [Canadian English locale (en-CA)](https://github.com/date-fns/date-fns/pull/688) + by [@markowsiak](https://github.com/markowsiak). + + - [Great Britain English locale (en-GB)](https://github.com/date-fns/date-fns/pull/563) + by [@glintik](https://github.com/glintik). + + - [Uighur locale (ug)](https://github.com/date-fns/date-fns/pull/1080) + by [@abduwaly](https://github.com/abduwaly). + +- [Added new function `differenceInBusinessDays`](https://github.com/date-fns/date-fns/pull/1194) + which calculates the difference in business days. Kudos to [@ThorrStevens](https://github.com/ThorrStevens)! + +- [Added new function `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1154), + similar to `addDays` but ignoring weekends. Thanks to [@ThorrStevens](https://github.com/ThorrStevens)! + +## [1.30.1] - 2018-12-10 + +### Fixed + +- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1005). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details. This fix was backported from v2. + +- Fix a few bugs that appear in timezones with offsets that include seconds (e.g. GMT+00:57:44). See PR [#789](https://github.com/date-fns/date-fns/issues/789). This fix was backported from v2. + +- [Fixed misspelled January in the Thai locale](https://github.com/date-fns/date-fns/pull/913). Thanks to [@ratchapol-an](https://github.com/ratchapol-an)! + +### Added + +- [Added Serbian locale](https://github.com/date-fns/date-fns/pull/717). Kudos to [@mawi12345](https://github.com/mawi12345)! + +- [Added Belarusian locale](https://github.com/date-fns/date-fns/pull/716). Kudos to [@mawi12345](https://github.com/mawi12345) again! + +### Changed + +- [Improved ja translation of distanceInWords](https://github.com/date-fns/date-fns/pull/880). Thanks to [@kudohamu](https://github.com/kudohamu)! + +## [1.30.0] - 2018-12-10 + +⚠️ The release got failed. + +## [1.29.0] - 2017-10-11 + +### Fixed + +- Fixed Italian translations for `formatDistance`. ([see the issue: #550](https://github.com/date-fns/date-fns/issues/550); [see the PR: #552](https://github.com/date-fns/date-fns/pull/552)) + Thanks to [@giofilo](https://github.com/giofilo)! + +### Added + +- [Hungarian locale (hu)](https://github.com/date-fns/date-fns/pull/503) + (thanks to László Horváth [@horvathlg](https://github.com/horvathlg)) + +- [Slovenian locale (sl)](https://github.com/date-fns/date-fns/pull/505) + (thanks to Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph)) + +- Added `step` to `eachDay` function. Thanks to [@BDav24](https://github.com/BDav24). + See PR [#487](https://github.com/date-fns/date-fns/pull/487). + +## [1.28.5] - 2017-05-19 + +### Fixed + +- Fixed a.m./p.m. formatters in Chinese Simplified locale. + Thanks to [@fnlctrl](https://github.com/fnlctrl). + See PR [#486](https://github.com/date-fns/date-fns/pull/486) + +## [1.28.4] - 2017-04-26 + +### Fixed + +- Fixed accents on weekdays in the Italian locale. + See PR [#481](https://github.com/date-fns/date-fns/pull/481). + Thanks to [@albertorestifo](https://github.com/albertorestifo) + +- Fixed typo in `ddd` format token in Spanish language locale. + Kudos to [@fjaguero](https://github.com/fjaguero). + See PR [#482](https://github.com/date-fns/date-fns/pull/482) + +## [1.28.3] - 2017-04-14 + +### Fixed + +- Fixed ordinal numbers for Danish language locale. Thanks to [@kgram](https://github.com/kgram). + See PR [#474](https://github.com/date-fns/date-fns/pull/474) + +## [1.28.2] - 2017-03-27 + +### Fixed + +- Fixed `dd` and `ddd` formatters in Polish language locale. Kudos to [@justrag](https://github.com/justrag). + See PR: [#467](https://github.com/date-fns/date-fns/pull/467) + +## [1.28.1] - 2017-03-19 + +### Fixed + +- Fixed DST border bug in `addMilliseconds`, `addSeconds`, `addMinutes`, `addHours`, + `subMilliseconds`, `subSeconds`, `subMinutes` and `subHours`. + See issue [#465](https://github.com/date-fns/date-fns/issues/465) + +- Minor fix for Indonesian locale. Thanks to [@bentinata](https://github.com/bentinata). + See PR: [#458](https://github.com/date-fns/date-fns/pull/458) + +## [1.28.0] - 2017-02-27 + +### Added + +- [Romanian locale (ro)](https://github.com/date-fns/date-fns/pull/446) + (thanks to Sergiu Munteanu [@jsergiu](https://github.com/jsergiu)) + +### Fixed + +- All functions now convert all their arguments to the respective types. + See PR: [#443](https://github.com/date-fns/date-fns/pull/443) + +- Fixes for ordinals (1er, 2, 3, …) in French locale. + Thanks to [@fbonzon](https://github.com/fbonzon). + See PR: [#449](https://github.com/date-fns/date-fns/pull/449) + +## [1.27.2] - 2017-02-01 + +### Fixed + +- Various fixes for Dutch locale. See PR: [#416](https://github.com/date-fns/date-fns/pull/416). + Thanks to Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + +## [1.27.1] - 2017-01-20 + +### Fixed + +- Added generation of TypeScript locale sub-modules, allowing import of locales in TypeScript. + +## [1.27.0] - 2017-01-19 + +### Added + +- [Macedonian locale (mk)](https://github.com/date-fns/date-fns/pull/398) + (thanks to Petar Vlahu [@vlahupetar](https://github.com/vlahupetar)) + +## [1.26.0] - 2017-01-15 + +### Added + +- `getTime` + +### Fixed + +- Various fixes for Japanese locale. See PR: [395](https://github.com/date-fns/date-fns/pull/395). + Thanks to Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + +## [1.25.0] - 2017-01-11 + +### Added + +- [Bulgarian locale (bg)](https://github.com/date-fns/date-fns/pull/357) + (thanks to Nikolay Stoynov [@arvigeus](https://github.com/arvigeus)) + +- [Czech locale (cs)](https://github.com/date-fns/date-fns/pull/386) + (thanks to David Rus [@davidrus](https://github.com/davidrus)) + +## [1.24.0] - 2017-01-06 + +### Added + +- [Modern Standard Arabic locale (ar)](https://github.com/date-fns/date-fns/pull/367) + (thanks to Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO)) + +## [1.23.0] - 2017-01-05 + +### Added + +- Auto generate TypeScript and flow typings from documentation on release. + Thanks to [@mattlewis92](https://github.com/mattlewis92). + See related PRs: [#355](https://github.com/date-fns/date-fns/pull/355), + [#370](https://github.com/date-fns/date-fns/pull/370) + +- [Croatian locale (hr)](https://github.com/date-fns/date-fns/pull/365) + (thanks to Matija Marohnić [@silvenon](https://github.com/silvenon)) + +- [Thai locale (th)](https://github.com/date-fns/date-fns/pull/362) + (thanks to Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat)) + +- [Finnish locale (fi)](https://github.com/date-fns/date-fns/pull/361) + (thanks to Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe)) + +## [1.22.0] - 2016-12-28 + +### Added + +- [Icelandic locale (is)](https://github.com/date-fns/date-fns/pull/356) + (thanks to Derek Blank [@derekblank](https://github.com/derekblank)) + +## [1.21.1] - 2016-12-18 + +### Fixed + +- Fixed `isBefore` and `isAfter` documentation mistakes. + +## [1.21.0] - 2016-12-16 + +### Added + +- [Filipino locale (fil)](https://github.com/date-fns/date-fns/pull/339) + (thanks to Ian De La Cruz [@RIanDeLaCruz](https://github.com/RIanDeLaCruz)) + +- [Danish locale (da)](https://github.com/date-fns/date-fns/pull/343) + (kudos to Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha)) + +## [1.20.1] - 2016-12-14 + +### Fixed + +- Fixed documentation for `getOverlappingDaysInRanges`. + +## [1.20.0] - 2016-12-13 + +### Added + +- `areRangesOverlapping` and `getOverlappingDaysInRanges` + Thanks to Joanna T [@asia-t](https://github.com/asia-t). + See PR: [#331](https://github.com/date-fns/date-fns/pull/331) + +## [1.19.0] - 2016-12-13 + +### Added + +- [Greek locale (el)](https://github.com/date-fns/date-fns/pull/334) + (kudos to Theodoros Orfanidis [@teoulas](https://github.com/teoulas)) + +- [Slovak locale (sk)](https://github.com/date-fns/date-fns/pull/336) + (kudos to Marek Suscak [@mareksuscak](https://github.com/mareksuscak)) + +- Added yarn support. + Thanks to Uladzimir Havenchyk [@havenchyk](https://github.com/havenchyk). + See PR: [#288](https://github.com/date-fns/date-fns/pull/288) + +## [1.18.0] - 2016-12-12 + +### Added + +- [Turkish locale (tr)](https://github.com/date-fns/date-fns/pull/329) + (kudos to Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin)) + +- [Korean locale (ko)](https://github.com/date-fns/date-fns/pull/327) + (thanks to Hong Chulju [@angdev](https://github.com/angdev)) + +### Fixed + +- `SS` and `SSS` formats in `format` are now correctly displayed with leading zeros. + Thanks to Paul Dijou [@pauldijou](https://github.com/pauldijou). + See PR: [#330](https://github.com/date-fns/date-fns/pull/330) + +## [1.17.0] - 2016-12-10 + +### Added + +- [Polish locale (pl)](https://github.com/date-fns/date-fns/pull/294) + (thanks to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks)) + +- [Portuguese locale (pt)](https://github.com/date-fns/date-fns/pull/316) + (thanks to Dário Freire [@dfreire](https://github.com/dfreire)) + +- [Swedish locale (sv)](https://github.com/date-fns/date-fns/pull/311) + (thanks to Johannes Ulén [@ejulen](https://github.com/ejulen)) + +- [French locale (fr)](https://github.com/date-fns/date-fns/pull/281) + (thanks to Jean Dupouy [@izeau](https://github.com/izeau)) + +- Performance tests. See PR: [#289](https://github.com/date-fns/date-fns/pull/289) + +### Fixed + +- Fixed TypeScript and flow typings for `isValid`. + See PR: [#310](https://github.com/date-fns/date-fns/pull/310) + +- Fixed incorrect locale tests that could potentially lead to `format` bugs. + Kudos to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks). + See related PRs: [#312](https://github.com/date-fns/date-fns/pull/312), + [#320](https://github.com/date-fns/date-fns/pull/320) + +- Minor language fixes in the documentation. + Thanks to Vedad Šoše [@vedadsose](https://github.com/vedadsose) ([#314](https://github.com/date-fns/date-fns/pull/314)) + and Asia [@asia-t](https://github.com/asia-t) ([#318](https://github.com/date-fns/date-fns/pull/318)) + +### Changed + +- `format` now returns `String('Invalid Date')` if the passed date is invalid. + See PR: [#323](https://github.com/date-fns/date-fns/pull/323) + +- `distanceInWords`, `distanceInWordsToNow`, `distanceInWordsStrict` and `format` functions now + check if the passed locale is valid, and fallback to English locale otherwise. + See PR: [#321](https://github.com/date-fns/date-fns/pull/321) + +- _Internal_: use a loop instead of `Object.keys` in `buildFormattingTokensRegExp` + to improve compatibility with older browsers. + See PR: [#322](https://github.com/date-fns/date-fns/pull/322) + +## [1.16.0] - 2016-12-08 + +### Added + +- [Italian locale (it)](https://github.com/date-fns/date-fns/pull/298) + (thanks to Alberto Restifo [@albertorestifo](https://github.com/albertorestifo)) + +- For German `buildDistanceInWordsLocale`, add nominative case translations (for distances without a suffix). + Kudos to Asia [@asia-t](https://github.com/asia-t). + See related PR: [#295](https://github.com/date-fns/date-fns/pull/295) + +## [1.15.1] - 2016-12-07 + +### Fixed + +- Fixed TypeScript imports from individual modules. + Thanks to [@mattlewis92](https://github.com/mattlewis92). + See related PR: [#287](https://github.com/date-fns/date-fns/pull/287) + +## [1.15.0] - 2016-12-07 + +### Added + +- [Indonesian locale (id)](https://github.com/date-fns/date-fns/pull/299) + (thanks to Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso)) + +- [Catalan locale (ca)](https://github.com/date-fns/date-fns/pull/300) + (thanks to Guillermo Grau [@guigrpa](https://github.com/guigrpa)) + +### Fixed + +- Fixed some inaccuracies in Spanish locale. + Kudos to [@guigrpa](https://github.com/guigrpa). + See related PR: [#302](https://github.com/date-fns/date-fns/pull/302) + +## [1.14.1] - 2016-12-06 + +### Fixed + +- Fixed broken test for Norwegian Bokmål locale. + +## [1.14.0] - 2016-12-06 + +### Added + +- [Norwegian Bokmål locale (nb)](https://github.com/date-fns/date-fns/pull/291) + (thanks to Hans-Kristian Koren [@Hanse](https://github.com/Hanse)) + +## [1.13.0] - 2016-12-06 + +### Added + +- [Chinese Traditional locale (zh_tw)](https://github.com/date-fns/date-fns/pull/283) + (thanks to tonypai [@tpai](https://github.com/tpai)). + +- [Dutch language locale (nl)](https://github.com/date-fns/date-fns/pull/278) + (kudos to Jorik Tangelder [@jtangelder](https://github.com/jtangelder)) + +## [1.12.1] - 2016-12-05 + +### Fixed + +- Added `distanceInWordsStrict` to the list of supported functions in I18n doc. + +## [1.12.0] - 2016-12-05 + +### Added + +- [Spanish language locale (es)](https://github.com/date-fns/date-fns/pull/269) + (thanks to Juan Angosto [@juanangosto](https://github.com/juanangosto)). + +### Fixed + +- Fixed flow typings for some of the functions. + See PR: [#273](https://github.com/date-fns/date-fns/pull/273) + +## [1.11.2] - 2016-11-28 + +### Fixed + +- Bug in `parse` when it sometimes parses ISO week-numbering dates incorrectly. + See PR: [#262](https://github.com/date-fns/date-fns/pull/262) + +- Bug in some functions which caused them to handle dates earlier than 100 AD incorrectly. + See PR: [#263](https://github.com/date-fns/date-fns/pull/263) + +## [1.11.1] - 2016-11-24 + +### Fixed + +- Include TypeScript typings with npm package. + +## [1.11.0] - 2016-11-23 + +### Added + +- `distanceInWordsStrict`. + Kudos to [@STRML](https://github.com/STRML). + See related PR: [#254](https://github.com/date-fns/date-fns/pull/254) + +- [TypeScript](https://www.typescriptlang.org/) typings for all functions. + Kudos to [@mattlewis92](https://github.com/mattlewis92). + See related PR: [#255](https://github.com/date-fns/date-fns/pull/255) + +## [1.10.0] - 2016-11-01 + +### Added + +- `parse` now can parse dates that are ISO 8601 centuries (e.g., `19` and `+0019`). + + ```javascript + var result = parse("19"); + //=> Mon Jan 01 1900 00:00:00 + ``` + +- In `parse`, added ability to specify the number of additional digits + for extended year or century format (possible values are 0, 1 or 2; default is 2). + + ```javascript + parse("+002016-11-01"); + parse("+02016-11-01", { additionalDigits: 1 }); + parse("+2016-11-01", { additionalDigits: 0 }); + ``` + +## [1.9.0] - 2016-10-25 + +### Added + +- Got index.js imports to work with SystemJS. + +## [1.8.1] - 2016-10-24 + +### Fixed + +- Added Japanese and German language locales to the list in I18n doc. + +## [1.8.0] - 2016-10-23 + +### Added + +- [Japanese language locale (ja)](https://github.com/date-fns/date-fns/pull/241) + (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) again!) + +- `getISODay` + +- `setISODay` + +## [1.7.0] - 2016-10-20 + +### Added + +- [German language locale (de)](https://github.com/date-fns/date-fns/pull/237) + (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu)). + +## [1.6.0] - 2016-10-16 + +### Added + +- [Chinese Simplified locale (zh_cn)](https://github.com/date-fns/date-fns/pull/235) + (kudos to Changyu [@KingMario](https://github.com/KingMario) Geng). + +## [1.5.2] - 2016-10-13 + +### Fixed + +- Incorrectly generated docs for `format`. + +- Fixed typo in I18n doc. + +## [1.5.1] - 2016-10-12 + +### Fixed + +- A change log entry for [1.5.0] is added. + +## [1.5.0] - 2016-10-12 + +### Added + +- [The initial I18n support](https://date-fns.org/docs/I18n) + +## [1.4.0] - 2016-10-09 + +### Added + +- Basic [SystemJS](https://github.com/systemjs/systemjs) support. + +### Fixed + +- Fixed incorrect behaviour of `YYYY` and `YY` for years prior to 1000: + now `format(new Date('0001-01-01'), 'YYYY-MM-DD')` returns `0001-01-01` + instead of `1-01-01`. + +## [1.3.0] - 2016-05-26 + +### Added + +- `closestIndexTo` + +## [1.2.0] - 2016-05-23 + +### Added + +- Added an ability to pass negative numbers to `setDay`. + +## [1.1.1] - 2016-05-19 + +### Fixed + +- Fixed [Flow](http://flowtype.org/) declarations for some of the functions. + +## [1.1.0] - 2016-05-19 + +### Added + +- [Flow](http://flowtype.org/) declarations for each function + in [the ".js.flow" style](http://flowtype.org/docs/declarations.html#declaration-files). + Kudos to [@JohnyDays](https://github.com/JohnyDays). See related PRs: + - [#205](https://github.com/date-fns/date-fns/pull/205) + + - [#207](https://github.com/date-fns/date-fns/pull/207) + +## [1.0.0] - 2016-05-18 + +### Fixed + +- `format` now returns the correct result for key `E`. + +- Prevent `startOf...`, `endOf...` and `lastDayOf...` functions + to return dates with an incorrect time when the date is modifying + into another time zone. + +- `parse` now parses years from 1 AD to 99 AD correctly. + +- Fix a bug in `getISOWeek` appearing because of a changing time zone + (e.g., when the given date is in DST and the start of the ISO year is not). + +### Changed + +- **BREAKING**: all functions are moved to the root of the library, so they + are now accessible with `require('date-fns/name_of_function')` or + `import nameOfFunction from 'date-fns/name_of_function'`. + + ```javascript + // Before v1.0.0 + var addMonths = require("date-fns/src/add_months"); + + // v1.0.0 onward + var addMonths = require("date-fns/add_months"); + ``` + +- **BREAKING**: functions that had the last optional argument `weekStartsAt` + (i.e. `endOfWeek`, `isSameWeek`, `lastDayOfWeek`, `setDay`, `startOfWeek`) + now instead receive the object `options` with the property `options.weekStartsOn` + as the last argument. + + ```javascript + // Before v1.0.0 + var result = endOfWeek(new Date(2014, 8, 2), 1); + + // v1.0.0 onward + var result = endOfWeek(new Date(2014, 8, 2), { weekStartsOn: 1 }); + ``` + +- **BREAKING**: remove the function `getTimeSinceMidnight` that was used inside + the other functions. + +- **BREAKING**: `differenceInDays` now returns the number of full days instead + of calendar days. + +- **BREAKING**: `eachDay` and `isWithinRange` now throw an exception + when the given range boundaries are invalid. + +- Faster `isLeapYear`. + +- _Internal_: make the documentation more verbose. + +- _Internal_: convert the tests from Chai to power-assert allowing them + to run against IE8. + +### Added + +- `addISOYears` + +- `closestTo` + +- `differenceInCalendarDays` + +- `differenceInCalendarISOWeeks` + +- `differenceInCalendarISOYears` + +- `differenceInCalendarMonths` + +- `differenceInCalendarQuarters` + +- `differenceInCalendarWeeks` + +- `differenceInCalendarYears` + +- `differenceInHours` + +- `differenceInISOYears` + +- `differenceInMilliseconds` + +- `differenceInMinutes` + +- `differenceInMonths` + +- `differenceInQuarters` + +- `differenceInSeconds` + +- `differenceInWeeks` + +- `differenceInYears` + +- `distanceInWords` + +- `distanceInWordsToNow` + +- `endOfISOWeek` + +- `endOfISOYear` + +- `endOfToday` + +- `endOfTomorrow` + +- `endOfYesterday` + +- `getDaysInYear` + +- `isDate` + +- `isFriday` + +- `isMonday` + +- `isSameISOWeek` + +- `isSameISOYear` + +- `isSaturday` + +- `isSunday` + +- `isThisHour` + +- `isThisISOWeek` + +- `isThisISOYear` + +- `isThisMinute` + +- `isThisMonth` + +- `isThisQuarter` + +- `isThisSecond` + +- `isThisWeek` + +- `isThisYear` + +- `isThursday` + +- `isTomorrow` + +- `isTuesday` + +- `isValid` + +- `isWednesday` + +- `isYesterday` + +- `lastDayOfISOWeek` + +- `lastDayOfISOYear` + +- `startOfISOWeek` + +- `startOfToday` + +- `startOfTomorrow` + +- `startOfYesterday` + +- `subISOYears` + +- Add `Qo`, `W`, `Wo`, `WW`, `GG`, `GGGG`, `Z`, `ZZ`, `X`, `x` keys to `format`. + +## [0.17.0] - 2015-09-29 + +### Fixed + +- Fixed a lot of bugs appearing when date is modifying into other time zone + (e.g., when adding months and original date is in DST but new date is not). + +- Prevent instances of Date to lose milliseconds value when passed to. + `parse` in IE10. + +### Changed + +- `setISOWeek` now keeps time from original date. + +- _Internal_: reuse `getDaysInMonth` inside of `addMonths`. + +### Added + +- `differenceInDays` + +- `getTimeSinceMidnight` + +- `format` now has new format key `aa`, which returns `a.m.`/`p.m.` + as opposed to `a` that returns `am`/`pm`. + +- Complete UMD package (for Bower and CDN). + +## [0.16.0] - 2015-09-01 + +### Changed + +- Use `parse` to clean date arguments in all functions. + +- `parse` now fallbacks to `new Date` when the argument + is not an ISO formatted date. + +- _Internal_: reuse `getDaysInMonth` inside of `setMonth`. + +### Added + +- `addQuarters` + +- `addWeeks` + +- `endOfQuarter` + +- `getDate` + +- `getDay` + +- `getDaysInMonth` + +- `getHours` + +- `getISOWeeksInYear` + +- `getMilliseconds` + +- `getMinutes` + +- `getMonth` + +- `getSeconds` + +- `getYear` + +- `isLeapYear` + +- `isSameHour` + +- `isSameMinute` + +- `isSameQuarter` + +- `isSameSecond` + +- `lastDayOfQuarter` + +- `lastDayOfWeek` + +- `max` + +- `min` + +- `setDate` + +- `setDay` + +- `setHours` + +- `setMilliseconds` + +- `setMinutes` + +- `setSeconds` + +- `startOfQuarter` + +- `subQuarters` + +- `subWeeks` + +## [0.15.0] - 2015-08-26 + +### Changed + +- `format` now returns `a.m.`/`p.m.` instead of `am`/`pm`. + +- `setMonth` now sets last day of month if original date was last day + of longer month. + +- _Internal_: Fix code style according to ESLint. + +- _Internal_: Make tests run through all time zones. + +### Added + +- `getQuarter` + +- `setQuarter` + +- `getDayOfYear` + +- `setDayOfYear` + +- `isPast` + +- `addSeconds` + +- `subSeconds` + +- `startOfSecond` + +- `endOfSecond` + +- `startOfMinute` + +- `endOfMinute` + +- `addMilliseconds` + +- `subMilliseconds` + +- `endOfYear` + +- `addYears` + +- `subYears` + +- `lastDayOfYear` + +- `lastDayOfMonth` + +## [0.14.11] - 2015-08-21 + +### Fixed + +- `format` now uses `parse` to avoid time zone bugs. + +### Changed + +- `setIsoWeek` now sets time to the start of the day. + +## [0.14.10] - 2015-07-29 + +### Fixed + +- `format` now behaves correctly with 12:00 am. + +- `format` now behaves correctly with ordinal numbers. + +### Added + +- `compareAsc` + +- `compareDesc` + +- `addHours` + +- `subHours` + +- `isSameDay` + +- `parse` + +- `getISOYear` + +- `setISOYear` + +- `startOfISOYear` + +- `getISOWeek` + +- `setISOWeek` + +## [0.14.9] - 2015-01-14 + +### Fixed + +- `addMonths` now correctly behaves with February + (see [#18](https://github.com/js-fns/date-fns/pull/18)). + +## [0.14.8] - 2014-12-25 + +### Fixed + +- `format` function now behaves correctly with `pm`/`am`. + +## [0.14.6] - 2014-12-04 + +### Fixed + +- Fix broken Bower support. + +## [0.14.0] - 2014-11-05 + +### Added + +- Bower package. + +## [0.13.0] - 2014-10-22 + +### Added + +- `addMinutes` + +- `subMinutes` + +- `isEqual` + +- `isBefore` + +- `isAfter` + +## [0.12.1] - 2014-10-19 + +### Fixed + +- Incorrect rounding in `DDD` formatter. + +## [0.12.0] - 2014-10-15 + +### Added + +- `isSameYear` + +## [0.11.0] - 2014-10-15 + +### Added + +- `isWithinRange` + +## [0.10.0] - 2014-10-13 + +### Added + +- `format` + +- `startOfYear` + +## [0.9.0] - 2014-10-10 + +### Changed + +- _Internal_: simplify `isWeekend` + +### Added + +- `isFuture` + +## [0.8.0] - 2014-10-09 + +### Changed + +- _Internal_: reuse `addDays` inside of `subDays`. + +### Added + +- `addMonths` + +- `subMonths` + +- `setMonth` + +- `setYear` + +## [0.7.0] - 2014-10-08 + +### Added + +- `isSameWeek` + +## [0.6.0] - 2014-10-07 + +### Fixed + +- Inconsistent behavior of `endOfMonth`. + +### Added + +- `isFirstDayOfMonth` + +- `isLastDayOfMonth` + +- `isSameMonth` + +## [0.5.0] - 2014-10-07 + +### Added + +- `addDays` + +- `subDays` + +## [0.4.0] - 2014-10-07 + +### Added + +- `startOfWeek` + +- `endOfWeek` + +- `eachDay` + +## [0.3.0] - 2014-10-06 + +### Changed + +- `startOfDay` now sets milliseconds as well. + +### Added + +- `endOfDay` + +- `startOfMonth` + +- `endOfMonth` + +## [0.2.0] - 2014-10-06 + +### Added + +- `isToday` + +- `isWeekend` + +## 0.1.0 - 2014-10-06 + +### Added + +- `startOfDay` + +[unreleased]: https://github.com/date-fns/date-fns/compare/v2.16.1...HEAD +[2.16.1]: https://github.com/date-fns/date-fns/compare/v2.16.0...v2.16.1 +[2.16.0]: https://github.com/date-fns/date-fns/compare/v2.15.0...v2.16.0 +[2.15.0]: https://github.com/date-fns/date-fns/compare/v2.14.0...v2.15.0 +[2.14.0]: https://github.com/date-fns/date-fns/compare/v2.13.0...v2.14.0 +[2.13.0]: https://github.com/date-fns/date-fns/compare/v2.12.0...v2.13.0 +[2.12.0]: https://github.com/date-fns/date-fns/compare/v2.11.1...v2.12.0 +[2.11.1]: https://github.com/date-fns/date-fns/compare/v2.11.0...v2.11.1 +[2.11.0]: https://github.com/date-fns/date-fns/compare/v2.10.0...v2.11.0 +[2.10.0]: https://github.com/date-fns/date-fns/compare/v2.9.0...v2.10.0 +[2.9.0]: https://github.com/date-fns/date-fns/compare/v2.8.1...v2.9.0 +[2.8.1]: https://github.com/date-fns/date-fns/compare/v2.8.0...v2.8.1 +[2.8.0]: https://github.com/date-fns/date-fns/compare/v2.7.0...v2.8.0 +[2.7.0]: https://github.com/date-fns/date-fns/compare/v2.6.0...v2.7.0 +[2.6.0]: https://github.com/date-fns/date-fns/compare/v2.5.1...v2.6.0 +[2.5.1]: https://github.com/date-fns/date-fns/compare/v2.5.0...v2.5.1 +[2.5.0]: https://github.com/date-fns/date-fns/compare/v2.4.1...v2.5.0 +[2.4.1]: https://github.com/date-fns/date-fns/compare/v2.4.0...v2.4.1 +[2.4.0]: https://github.com/date-fns/date-fns/compare/v2.3.0...v2.4.0 +[2.3.0]: https://github.com/date-fns/date-fns/compare/v2.2.1...v2.3.0 +[2.2.1]: https://github.com/date-fns/date-fns/compare/v2.1.0...v2.2.1 +[2.1.0]: https://github.com/date-fns/date-fns/compare/v2.0.1...v2.1.0 +[2.0.1]: https://github.com/date-fns/date-fns/compare/v2.0.0...v2.0.1 +[2.0.0]: https://github.com/date-fns/date-fns/compare/v1.28.5...v2.0.0 +[1.28.5]: https://github.com/date-fns/date-fns/compare/v1.28.4...v1.28.5 +[1.28.4]: https://github.com/date-fns/date-fns/compare/v1.28.3...v1.28.4 +[1.28.3]: https://github.com/date-fns/date-fns/compare/v1.28.2...v1.28.3 +[1.28.2]: https://github.com/date-fns/date-fns/compare/v1.28.1...v1.28.2 +[1.28.1]: https://github.com/date-fns/date-fns/compare/v1.28.0...v1.28.1 +[1.28.0]: https://github.com/date-fns/date-fns/compare/v1.27.2...v1.28.0 +[1.27.2]: https://github.com/date-fns/date-fns/compare/v1.27.1...v1.27.2 +[1.27.1]: https://github.com/date-fns/date-fns/compare/v1.27.0...v1.27.1 +[1.27.0]: https://github.com/date-fns/date-fns/compare/v1.26.0...v1.27.0 +[1.26.0]: https://github.com/date-fns/date-fns/compare/v1.25.0...v1.26.0 +[1.25.0]: https://github.com/date-fns/date-fns/compare/v1.24.0...v1.25.0 +[1.24.0]: https://github.com/date-fns/date-fns/compare/v1.23.0...v1.24.0 +[1.23.0]: https://github.com/date-fns/date-fns/compare/v1.22.0...v1.23.0 +[1.22.0]: https://github.com/date-fns/date-fns/compare/v1.21.1...v1.22.0 +[1.21.1]: https://github.com/date-fns/date-fns/compare/v1.21.0...v1.21.1 +[1.21.0]: https://github.com/date-fns/date-fns/compare/v1.20.1...v1.21.0 +[1.20.1]: https://github.com/date-fns/date-fns/compare/v1.20.0...v1.20.1 +[1.20.0]: https://github.com/date-fns/date-fns/compare/v1.19.0...v1.20.0 +[1.19.0]: https://github.com/date-fns/date-fns/compare/v1.18.0...v1.19.0 +[1.18.0]: https://github.com/date-fns/date-fns/compare/v1.17.0...v1.18.0 +[1.17.0]: https://github.com/date-fns/date-fns/compare/v1.16.0...v1.17.0 +[1.16.0]: https://github.com/date-fns/date-fns/compare/v1.15.1...v1.16.0 +[1.15.1]: https://github.com/date-fns/date-fns/compare/v1.15.0...v1.15.1 +[1.15.0]: https://github.com/date-fns/date-fns/compare/v1.14.1...v1.15.0 +[1.14.1]: https://github.com/date-fns/date-fns/compare/v1.14.0...v1.14.1 +[1.14.0]: https://github.com/date-fns/date-fns/compare/v1.13.0...v1.14.0 +[1.13.0]: https://github.com/date-fns/date-fns/compare/v1.12.1...v1.13.0 +[1.12.1]: https://github.com/date-fns/date-fns/compare/v1.12.0...v1.12.1 +[1.12.0]: https://github.com/date-fns/date-fns/compare/v1.11.2...v1.12.0 +[1.11.2]: https://github.com/date-fns/date-fns/compare/v1.11.1...v1.11.2 +[1.11.1]: https://github.com/date-fns/date-fns/compare/v1.11.0...v1.11.1 +[1.11.0]: https://github.com/date-fns/date-fns/compare/v1.10.0...v1.11.0 +[1.10.0]: https://github.com/date-fns/date-fns/compare/v1.9.0...v1.10.0 +[1.9.0]: https://github.com/date-fns/date-fns/compare/v1.8.1...v1.9.0 +[1.8.1]: https://github.com/date-fns/date-fns/compare/v1.8.0...v1.8.1 +[1.8.0]: https://github.com/date-fns/date-fns/compare/v1.7.0...v1.8.0 +[1.7.0]: https://github.com/date-fns/date-fns/compare/v1.6.0...v1.7.0 +[1.6.0]: https://github.com/date-fns/date-fns/compare/v1.5.2...v1.6.0 +[1.5.2]: https://github.com/date-fns/date-fns/compare/v1.5.1...v1.5.2 +[1.5.1]: https://github.com/date-fns/date-fns/compare/v1.5.0...v1.5.1 +[1.5.0]: https://github.com/date-fns/date-fns/compare/v1.4.0...v1.5.0 +[1.4.0]: https://github.com/date-fns/date-fns/compare/v1.3.0...v1.4.0 +[1.3.0]: https://github.com/date-fns/date-fns/compare/v1.2.0...v1.3.0 +[1.2.0]: https://github.com/date-fns/date-fns/compare/v1.1.1...v1.2.0 +[1.1.1]: https://github.com/date-fns/date-fns/compare/v1.1.0...v1.1.1 +[1.1.0]: https://github.com/date-fns/date-fns/compare/v1.0.0...v1.1.0 +[1.0.0]: https://github.com/date-fns/date-fns/compare/v0.17.0...v1.0.0 +[0.17.0]: https://github.com/date-fns/date-fns/compare/v0.16.0...v0.17.0 +[0.16.0]: https://github.com/date-fns/date-fns/compare/v0.15.0...v0.16.0 +[0.15.0]: https://github.com/date-fns/date-fns/compare/v0.14.11...v0.15.0 +[0.14.11]: https://github.com/date-fns/date-fns/compare/v0.14.10...v0.14.11 +[0.14.10]: https://github.com/date-fns/date-fns/compare/v0.14.9...v0.14.10 +[0.14.9]: https://github.com/date-fns/date-fns/compare/v0.14.8...v0.14.9 +[0.14.8]: https://github.com/date-fns/date-fns/compare/v0.14.6...v0.14.8 +[0.14.6]: https://github.com/date-fns/date-fns/compare/v0.14.0...v0.14.6 +[0.14.0]: https://github.com/date-fns/date-fns/compare/v0.13.0...v0.14.0 +[0.13.0]: https://github.com/date-fns/date-fns/compare/v0.12.1...v0.13.0 +[0.12.1]: https://github.com/date-fns/date-fns/compare/v0.12.0...v0.12.1 +[0.12.0]: https://github.com/date-fns/date-fns/compare/v0.11.0...v0.12.0 +[0.11.0]: https://github.com/date-fns/date-fns/compare/v0.10.0...v0.11.0 +[0.10.0]: https://github.com/date-fns/date-fns/compare/v0.9.0...v0.10.0 +[0.9.0]: https://github.com/date-fns/date-fns/compare/v0.8.0...v0.9.0 +[0.8.0]: https://github.com/date-fns/date-fns/compare/v0.7.0...v0.8.0 +[0.7.0]: https://github.com/date-fns/date-fns/compare/v0.6.0...v0.7.0 +[0.6.0]: https://github.com/date-fns/date-fns/compare/v0.5.0...v0.6.0 +[0.5.0]: https://github.com/date-fns/date-fns/compare/v0.4.0...v0.5.0 +[0.4.0]: https://github.com/date-fns/date-fns/compare/v0.3.0...v0.4.0 +[0.3.0]: https://github.com/date-fns/date-fns/compare/v0.2.0...v0.3.0 +[0.2.0]: https://github.com/date-fns/date-fns/compare/v0.1.0...v0.2.0 diff --git a/node_modules/date-fns/LICENSE.md b/node_modules/date-fns/LICENSE.md new file mode 100644 index 000000000..29c6e85fd --- /dev/null +++ b/node_modules/date-fns/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/date-fns/README.md b/node_modules/date-fns/README.md new file mode 100644 index 000000000..918b9f0b7 --- /dev/null +++ b/node_modules/date-fns/README.md @@ -0,0 +1,58 @@ +🔥️ **NEW**: [date-fns v4.0 with first-class time zone support is out!](https://blog.date-fns.org/v40-with-time-zone-support/) + +date-fns + +date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js + +👉 [Documentation](https://date-fns.org/) + +👉 [Blog](https://blog.date-fns.org/) + +
    + +It's like [Lodash](https://lodash.com) for dates + +- It has [**200+ functions** for all occasions](https://date-fns.org/docs/Getting-Started/). +- **Modular**: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking. +- **Native dates**: Uses existing native type. It doesn't extend core objects for safety's sake. +- **Immutable & Pure**: Built using pure functions and always returns a new date instance. +- **TypeScript**: The library is 100% TypeScript with brand-new handcrafted types. +- **I18n**: Dozens of locales. Include only what you need. +- [and many more benefits](https://date-fns.org/) + +```js +import { compareAsc, format } from "date-fns"; + +format(new Date(2014, 1, 11), "yyyy-MM-dd"); +//=> '2014-02-11' + +const dates = [ + new Date(1995, 6, 2), + new Date(1987, 1, 11), + new Date(1989, 6, 10), +]; +dates.sort(compareAsc); +//=> [ +// Wed Feb 11 1987 00:00:00, +// Mon Jul 10 1989 00:00:00, +// Sun Jul 02 1995 00:00:00 +// ] +``` + +The library is available as an [npm package](https://www.npmjs.com/package/date-fns). +To install the package run: + +```bash +npm install date-fns --save +``` + +## Docs + +[See date-fns.org](https://date-fns.org/) for more details, API, +and other docs. + +
    + +## License + +[MIT © Sasha Koss](https://kossnocorp.mit-license.org/) diff --git a/node_modules/date-fns/SECURITY.md b/node_modules/date-fns/SECURITY.md new file mode 100644 index 000000000..385e3402a --- /dev/null +++ b/node_modules/date-fns/SECURITY.md @@ -0,0 +1,12 @@ +# Security Policy + +## Supported Versions + +Security updates are applied only to the latest release. + +## Reporting a Vulnerability + +If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** +This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released. +Please disclose it to [Sasha Koss](mailto:koss@nocorp.me). This project is maintained by a team of volunteers +on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure. diff --git a/node_modules/date-fns/_lib/addLeadingZeros.cjs b/node_modules/date-fns/_lib/addLeadingZeros.cjs new file mode 100644 index 000000000..5e18f4697 --- /dev/null +++ b/node_modules/date-fns/_lib/addLeadingZeros.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.addLeadingZeros = addLeadingZeros; +function addLeadingZeros(number, targetLength) { + const sign = number < 0 ? "-" : ""; + const output = Math.abs(number).toString().padStart(targetLength, "0"); + return sign + output; +} diff --git a/node_modules/date-fns/_lib/addLeadingZeros.d.cts b/node_modules/date-fns/_lib/addLeadingZeros.d.cts new file mode 100644 index 000000000..812d8c651 --- /dev/null +++ b/node_modules/date-fns/_lib/addLeadingZeros.d.cts @@ -0,0 +1,4 @@ +export declare function addLeadingZeros( + number: number, + targetLength: number, +): string; diff --git a/node_modules/date-fns/_lib/addLeadingZeros.d.ts b/node_modules/date-fns/_lib/addLeadingZeros.d.ts new file mode 100644 index 000000000..812d8c651 --- /dev/null +++ b/node_modules/date-fns/_lib/addLeadingZeros.d.ts @@ -0,0 +1,4 @@ +export declare function addLeadingZeros( + number: number, + targetLength: number, +): string; diff --git a/node_modules/date-fns/_lib/addLeadingZeros.js b/node_modules/date-fns/_lib/addLeadingZeros.js new file mode 100644 index 000000000..3bafd190b --- /dev/null +++ b/node_modules/date-fns/_lib/addLeadingZeros.js @@ -0,0 +1,5 @@ +export function addLeadingZeros(number, targetLength) { + const sign = number < 0 ? "-" : ""; + const output = Math.abs(number).toString().padStart(targetLength, "0"); + return sign + output; +} diff --git a/node_modules/date-fns/_lib/cdnPolyfill.cjs b/node_modules/date-fns/_lib/cdnPolyfill.cjs new file mode 100644 index 000000000..ee40bbbfa --- /dev/null +++ b/node_modules/date-fns/_lib/cdnPolyfill.cjs @@ -0,0 +1,39 @@ +"use strict"; +(function () { + console.log( + "date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN", + ); + + var re = /src="(.+\/date-fns\/.*(cdn|cdn.min).js)"/; + var html = + document.currentScript && cloneScriptHtml(document.currentScript.outerHTML); + + try { + html && document.write(html); + } catch (_) { + insertScriptFromHTML(html); + } + + function cloneScriptHtml(html) { + return ( + re.test(html) && + html.replace(re, function (_, src) { + return 'src="' + src.replace("/date-fns/", "/@date-fns/cdn/") + '"'; + }) + ); + } + + function insertScriptFromHTML(html) { + const template = document.createElement("template"); + template.innerHTML = html; + + const script = template.content.querySelector("script"); + const newScript = document.createElement("script"); + + for (const attr of script.attributes) { + newScript.setAttribute(attr.name, attr.value); + } + + document.head.appendChild(newScript); + } +})(); diff --git a/node_modules/date-fns/_lib/cdnPolyfill.js b/node_modules/date-fns/_lib/cdnPolyfill.js new file mode 100644 index 000000000..45138e569 --- /dev/null +++ b/node_modules/date-fns/_lib/cdnPolyfill.js @@ -0,0 +1,38 @@ +(function () { + console.log( + "date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN", + ); + + var re = /src="(.+\/date-fns\/.*(cdn|cdn.min).js)"/; + var html = + document.currentScript && cloneScriptHtml(document.currentScript.outerHTML); + + try { + html && document.write(html); + } catch (_) { + insertScriptFromHTML(html); + } + + function cloneScriptHtml(html) { + return ( + re.test(html) && + html.replace(re, function (_, src) { + return 'src="' + src.replace("/date-fns/", "/@date-fns/cdn/") + '"'; + }) + ); + } + + function insertScriptFromHTML(html) { + const template = document.createElement("template"); + template.innerHTML = html; + + const script = template.content.querySelector("script"); + const newScript = document.createElement("script"); + + for (const attr of script.attributes) { + newScript.setAttribute(attr.name, attr.value); + } + + document.head.appendChild(newScript); + } +})(); diff --git a/node_modules/date-fns/_lib/defaultLocale.cjs b/node_modules/date-fns/_lib/defaultLocale.cjs new file mode 100644 index 000000000..8255c1ced --- /dev/null +++ b/node_modules/date-fns/_lib/defaultLocale.cjs @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "defaultLocale", { + enumerable: true, + get: function () { + return _index.enUS; + }, +}); +var _index = require("../locale/en-US.cjs"); diff --git a/node_modules/date-fns/_lib/defaultLocale.d.cts b/node_modules/date-fns/_lib/defaultLocale.d.cts new file mode 100644 index 000000000..30f1fed2c --- /dev/null +++ b/node_modules/date-fns/_lib/defaultLocale.d.cts @@ -0,0 +1 @@ +export { enUS as defaultLocale } from "../locale/en-US.ts"; diff --git a/node_modules/date-fns/_lib/defaultLocale.d.ts b/node_modules/date-fns/_lib/defaultLocale.d.ts new file mode 100644 index 000000000..30f1fed2c --- /dev/null +++ b/node_modules/date-fns/_lib/defaultLocale.d.ts @@ -0,0 +1 @@ +export { enUS as defaultLocale } from "../locale/en-US.ts"; diff --git a/node_modules/date-fns/_lib/defaultLocale.js b/node_modules/date-fns/_lib/defaultLocale.js new file mode 100644 index 000000000..016e184dd --- /dev/null +++ b/node_modules/date-fns/_lib/defaultLocale.js @@ -0,0 +1 @@ +export { enUS as defaultLocale } from "../locale/en-US.js"; diff --git a/node_modules/date-fns/_lib/defaultOptions.cjs b/node_modules/date-fns/_lib/defaultOptions.cjs new file mode 100644 index 000000000..2781398d5 --- /dev/null +++ b/node_modules/date-fns/_lib/defaultOptions.cjs @@ -0,0 +1,13 @@ +"use strict"; +exports.getDefaultOptions = getDefaultOptions; +exports.setDefaultOptions = setDefaultOptions; + +let defaultOptions = {}; + +function getDefaultOptions() { + return defaultOptions; +} + +function setDefaultOptions(newOptions) { + defaultOptions = newOptions; +} diff --git a/node_modules/date-fns/_lib/defaultOptions.d.cts b/node_modules/date-fns/_lib/defaultOptions.d.cts new file mode 100644 index 000000000..c5143549d --- /dev/null +++ b/node_modules/date-fns/_lib/defaultOptions.d.cts @@ -0,0 +1,11 @@ +import type { + FirstWeekContainsDateOptions, + Locale, + LocalizedOptions, + WeekOptions, +} from "../types.ts"; +export type DefaultOptions = LocalizedOptions & + WeekOptions & + FirstWeekContainsDateOptions; +export declare function getDefaultOptions(): DefaultOptions; +export declare function setDefaultOptions(newOptions: DefaultOptions): void; diff --git a/node_modules/date-fns/_lib/defaultOptions.d.ts b/node_modules/date-fns/_lib/defaultOptions.d.ts new file mode 100644 index 000000000..c5143549d --- /dev/null +++ b/node_modules/date-fns/_lib/defaultOptions.d.ts @@ -0,0 +1,11 @@ +import type { + FirstWeekContainsDateOptions, + Locale, + LocalizedOptions, + WeekOptions, +} from "../types.ts"; +export type DefaultOptions = LocalizedOptions & + WeekOptions & + FirstWeekContainsDateOptions; +export declare function getDefaultOptions(): DefaultOptions; +export declare function setDefaultOptions(newOptions: DefaultOptions): void; diff --git a/node_modules/date-fns/_lib/defaultOptions.js b/node_modules/date-fns/_lib/defaultOptions.js new file mode 100644 index 000000000..672961f1b --- /dev/null +++ b/node_modules/date-fns/_lib/defaultOptions.js @@ -0,0 +1,9 @@ +let defaultOptions = {}; + +export function getDefaultOptions() { + return defaultOptions; +} + +export function setDefaultOptions(newOptions) { + defaultOptions = newOptions; +} diff --git a/node_modules/date-fns/_lib/format/formatters.cjs b/node_modules/date-fns/_lib/format/formatters.cjs new file mode 100644 index 000000000..17e90e8ae --- /dev/null +++ b/node_modules/date-fns/_lib/format/formatters.cjs @@ -0,0 +1,780 @@ +"use strict"; +exports.formatters = void 0; +var _index = require("../../getDayOfYear.cjs"); +var _index2 = require("../../getISOWeek.cjs"); +var _index3 = require("../../getISOWeekYear.cjs"); +var _index4 = require("../../getWeek.cjs"); +var _index5 = require("../../getWeekYear.cjs"); + +var _index6 = require("../addLeadingZeros.cjs"); +var _index7 = require("./lightFormatters.cjs"); + +const dayPeriodEnum = { + am: "am", + pm: "pm", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", +}; + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O | Timezone (GMT) | + * | p! | Long localized time | P! | Long localized date | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + * - `P` is long localized date format + * - `p` is long localized time format + */ + +const formatters = (exports.formatters = { + // Era + G: function (date, token, localize) { + const era = date.getFullYear() > 0 ? 1 : 0; + switch (token) { + // AD, BC + case "G": + case "GG": + case "GGG": + return localize.era(era, { width: "abbreviated" }); + // A, B + case "GGGGG": + return localize.era(era, { width: "narrow" }); + // Anno Domini, Before Christ + case "GGGG": + default: + return localize.era(era, { width: "wide" }); + } + }, + + // Year + y: function (date, token, localize) { + // Ordinal number + if (token === "yo") { + const signedYear = date.getFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { unit: "year" }); + } + + return _index7.lightFormatters.y(date, token); + }, + + // Local week-numbering year + Y: function (date, token, localize, options) { + const signedWeekYear = (0, _index5.getWeekYear)(date, options); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; + + // Two digit year + if (token === "YY") { + const twoDigitYear = weekYear % 100; + return (0, _index6.addLeadingZeros)(twoDigitYear, 2); + } + + // Ordinal number + if (token === "Yo") { + return localize.ordinalNumber(weekYear, { unit: "year" }); + } + + // Padding + return (0, _index6.addLeadingZeros)(weekYear, token.length); + }, + + // ISO week-numbering year + R: function (date, token) { + const isoWeekYear = (0, _index3.getISOWeekYear)(date); + + // Padding + return (0, _index6.addLeadingZeros)(isoWeekYear, token.length); + }, + + // Extended year. This is a single number designating the year of this calendar system. + // The main difference between `y` and `u` localizers are B.C. years: + // | Year | `y` | `u` | + // |------|-----|-----| + // | AC 1 | 1 | 1 | + // | BC 1 | 1 | 0 | + // | BC 2 | 2 | -1 | + // Also `yy` always returns the last two digits of a year, + // while `uu` pads single digit years to 2 characters and returns other years unchanged. + u: function (date, token) { + const year = date.getFullYear(); + return (0, _index6.addLeadingZeros)(year, token.length); + }, + + // Quarter + Q: function (date, token, localize) { + const quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case "Q": + return String(quarter); + // 01, 02, 03, 04 + case "QQ": + return (0, _index6.addLeadingZeros)(quarter, 2); + // 1st, 2nd, 3rd, 4th + case "Qo": + return localize.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 + case "QQQ": + return localize.quarter(quarter, { + width: "abbreviated", + context: "formatting", + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case "QQQQQ": + return localize.quarter(quarter, { + width: "narrow", + context: "formatting", + }); + // 1st quarter, 2nd quarter, ... + case "QQQQ": + default: + return localize.quarter(quarter, { + width: "wide", + context: "formatting", + }); + } + }, + + // Stand-alone quarter + q: function (date, token, localize) { + const quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case "q": + return String(quarter); + // 01, 02, 03, 04 + case "qq": + return (0, _index6.addLeadingZeros)(quarter, 2); + // 1st, 2nd, 3rd, 4th + case "qo": + return localize.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 + case "qqq": + return localize.quarter(quarter, { + width: "abbreviated", + context: "standalone", + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case "qqqqq": + return localize.quarter(quarter, { + width: "narrow", + context: "standalone", + }); + // 1st quarter, 2nd quarter, ... + case "qqqq": + default: + return localize.quarter(quarter, { + width: "wide", + context: "standalone", + }); + } + }, + + // Month + M: function (date, token, localize) { + const month = date.getMonth(); + switch (token) { + case "M": + case "MM": + return _index7.lightFormatters.M(date, token); + // 1st, 2nd, ..., 12th + case "Mo": + return localize.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec + case "MMM": + return localize.month(month, { + width: "abbreviated", + context: "formatting", + }); + // J, F, ..., D + case "MMMMM": + return localize.month(month, { + width: "narrow", + context: "formatting", + }); + // January, February, ..., December + case "MMMM": + default: + return localize.month(month, { width: "wide", context: "formatting" }); + } + }, + + // Stand-alone month + L: function (date, token, localize) { + const month = date.getMonth(); + switch (token) { + // 1, 2, ..., 12 + case "L": + return String(month + 1); + // 01, 02, ..., 12 + case "LL": + return (0, _index6.addLeadingZeros)(month + 1, 2); + // 1st, 2nd, ..., 12th + case "Lo": + return localize.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec + case "LLL": + return localize.month(month, { + width: "abbreviated", + context: "standalone", + }); + // J, F, ..., D + case "LLLLL": + return localize.month(month, { + width: "narrow", + context: "standalone", + }); + // January, February, ..., December + case "LLLL": + default: + return localize.month(month, { width: "wide", context: "standalone" }); + } + }, + + // Local week of year + w: function (date, token, localize, options) { + const week = (0, _index4.getWeek)(date, options); + + if (token === "wo") { + return localize.ordinalNumber(week, { unit: "week" }); + } + + return (0, _index6.addLeadingZeros)(week, token.length); + }, + + // ISO week of year + I: function (date, token, localize) { + const isoWeek = (0, _index2.getISOWeek)(date); + + if (token === "Io") { + return localize.ordinalNumber(isoWeek, { unit: "week" }); + } + + return (0, _index6.addLeadingZeros)(isoWeek, token.length); + }, + + // Day of the month + d: function (date, token, localize) { + if (token === "do") { + return localize.ordinalNumber(date.getDate(), { unit: "date" }); + } + + return _index7.lightFormatters.d(date, token); + }, + + // Day of year + D: function (date, token, localize) { + const dayOfYear = (0, _index.getDayOfYear)(date); + + if (token === "Do") { + return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); + } + + return (0, _index6.addLeadingZeros)(dayOfYear, token.length); + }, + + // Day of week + E: function (date, token, localize) { + const dayOfWeek = date.getDay(); + switch (token) { + // Tue + case "E": + case "EE": + case "EEE": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "EEEEE": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "EEEEEE": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "EEEE": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // Local day of week + e: function (date, token, localize, options) { + const dayOfWeek = date.getDay(); + const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) + case "e": + return String(localDayOfWeek); + // Padded numerical value + case "ee": + return (0, _index6.addLeadingZeros)(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th + case "eo": + return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "eee": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "eeeee": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "eeeeee": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "eeee": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // Stand-alone local day of week + c: function (date, token, localize, options) { + const dayOfWeek = date.getDay(); + const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (same as in `e`) + case "c": + return String(localDayOfWeek); + // Padded numerical value + case "cc": + return (0, _index6.addLeadingZeros)(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th + case "co": + return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "ccc": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "standalone", + }); + // T + case "ccccc": + return localize.day(dayOfWeek, { + width: "narrow", + context: "standalone", + }); + // Tu + case "cccccc": + return localize.day(dayOfWeek, { + width: "short", + context: "standalone", + }); + // Tuesday + case "cccc": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "standalone", + }); + } + }, + + // ISO day of week + i: function (date, token, localize) { + const dayOfWeek = date.getDay(); + const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + switch (token) { + // 2 + case "i": + return String(isoDayOfWeek); + // 02 + case "ii": + return (0, _index6.addLeadingZeros)(isoDayOfWeek, token.length); + // 2nd + case "io": + return localize.ordinalNumber(isoDayOfWeek, { unit: "day" }); + // Tue + case "iii": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "iiiii": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "iiiiii": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "iiii": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // AM or PM + a: function (date, token, localize) { + const hours = date.getHours(); + const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + + switch (token) { + case "a": + case "aa": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "aaa": + return localize + .dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }) + .toLowerCase(); + case "aaaaa": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "aaaa": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // AM, PM, midnight, noon + b: function (date, token, localize) { + const hours = date.getHours(); + let dayPeriodEnumValue; + if (hours === 12) { + dayPeriodEnumValue = dayPeriodEnum.noon; + } else if (hours === 0) { + dayPeriodEnumValue = dayPeriodEnum.midnight; + } else { + dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + } + + switch (token) { + case "b": + case "bb": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "bbb": + return localize + .dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }) + .toLowerCase(); + case "bbbbb": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "bbbb": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // in the morning, in the afternoon, in the evening, at night + B: function (date, token, localize) { + const hours = date.getHours(); + let dayPeriodEnumValue; + if (hours >= 17) { + dayPeriodEnumValue = dayPeriodEnum.evening; + } else if (hours >= 12) { + dayPeriodEnumValue = dayPeriodEnum.afternoon; + } else if (hours >= 4) { + dayPeriodEnumValue = dayPeriodEnum.morning; + } else { + dayPeriodEnumValue = dayPeriodEnum.night; + } + + switch (token) { + case "B": + case "BB": + case "BBB": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "BBBBB": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "BBBB": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // Hour [1-12] + h: function (date, token, localize) { + if (token === "ho") { + let hours = date.getHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return _index7.lightFormatters.h(date, token); + }, + + // Hour [0-23] + H: function (date, token, localize) { + if (token === "Ho") { + return localize.ordinalNumber(date.getHours(), { unit: "hour" }); + } + + return _index7.lightFormatters.H(date, token); + }, + + // Hour [0-11] + K: function (date, token, localize) { + const hours = date.getHours() % 12; + + if (token === "Ko") { + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return (0, _index6.addLeadingZeros)(hours, token.length); + }, + + // Hour [1-24] + k: function (date, token, localize) { + let hours = date.getHours(); + if (hours === 0) hours = 24; + + if (token === "ko") { + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return (0, _index6.addLeadingZeros)(hours, token.length); + }, + + // Minute + m: function (date, token, localize) { + if (token === "mo") { + return localize.ordinalNumber(date.getMinutes(), { unit: "minute" }); + } + + return _index7.lightFormatters.m(date, token); + }, + + // Second + s: function (date, token, localize) { + if (token === "so") { + return localize.ordinalNumber(date.getSeconds(), { unit: "second" }); + } + + return _index7.lightFormatters.s(date, token); + }, + + // Fraction of second + S: function (date, token) { + return _index7.lightFormatters.S(date, token); + }, + + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + if (timezoneOffset === 0) { + return "Z"; + } + + switch (token) { + // Hours and optional minutes + case "X": + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` + case "XXXX": + case "XX": // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` + case "XXXXX": + case "XXX": // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) + x: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Hours and optional minutes + case "x": + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` + case "xxxx": + case "xx": // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` + case "xxxxx": + case "xxx": // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (GMT) + O: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Short + case "O": + case "OO": + case "OOO": + return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long + case "OOOO": + default: + return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (specific non-location) + z: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Short + case "z": + case "zz": + case "zzz": + return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long + case "zzzz": + default: + return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + + // Seconds timestamp + t: function (date, token, _localize) { + const timestamp = Math.trunc(+date / 1000); + return (0, _index6.addLeadingZeros)(timestamp, token.length); + }, + + // Milliseconds timestamp + T: function (date, token, _localize) { + return (0, _index6.addLeadingZeros)(+date, token.length); + }, +}); + +function formatTimezoneShort(offset, delimiter = "") { + const sign = offset > 0 ? "-" : "+"; + const absOffset = Math.abs(offset); + const hours = Math.trunc(absOffset / 60); + const minutes = absOffset % 60; + if (minutes === 0) { + return sign + String(hours); + } + return ( + sign + String(hours) + delimiter + (0, _index6.addLeadingZeros)(minutes, 2) + ); +} + +function formatTimezoneWithOptionalMinutes(offset, delimiter) { + if (offset % 60 === 0) { + const sign = offset > 0 ? "-" : "+"; + return sign + (0, _index6.addLeadingZeros)(Math.abs(offset) / 60, 2); + } + return formatTimezone(offset, delimiter); +} + +function formatTimezone(offset, delimiter = "") { + const sign = offset > 0 ? "-" : "+"; + const absOffset = Math.abs(offset); + const hours = (0, _index6.addLeadingZeros)(Math.trunc(absOffset / 60), 2); + const minutes = (0, _index6.addLeadingZeros)(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} diff --git a/node_modules/date-fns/_lib/format/formatters.d.cts b/node_modules/date-fns/_lib/format/formatters.d.cts new file mode 100644 index 000000000..753c1e24e --- /dev/null +++ b/node_modules/date-fns/_lib/format/formatters.d.cts @@ -0,0 +1,18 @@ +import type { Localize } from "../../locale/types.ts"; +import type { + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "../../types.ts"; +type Formatter = ( + date: Date, + token: string, + localize: Localize, + options: Required< + LocalizedOptions<"options"> & WeekOptions & FirstWeekContainsDateOptions + >, +) => string; +export declare const formatters: { + [token: string]: Formatter; +}; +export {}; diff --git a/node_modules/date-fns/_lib/format/formatters.d.ts b/node_modules/date-fns/_lib/format/formatters.d.ts new file mode 100644 index 000000000..753c1e24e --- /dev/null +++ b/node_modules/date-fns/_lib/format/formatters.d.ts @@ -0,0 +1,18 @@ +import type { Localize } from "../../locale/types.ts"; +import type { + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "../../types.ts"; +type Formatter = ( + date: Date, + token: string, + localize: Localize, + options: Required< + LocalizedOptions<"options"> & WeekOptions & FirstWeekContainsDateOptions + >, +) => string; +export declare const formatters: { + [token: string]: Formatter; +}; +export {}; diff --git a/node_modules/date-fns/_lib/format/formatters.js b/node_modules/date-fns/_lib/format/formatters.js new file mode 100644 index 000000000..149f25dea --- /dev/null +++ b/node_modules/date-fns/_lib/format/formatters.js @@ -0,0 +1,776 @@ +import { getDayOfYear } from "../../getDayOfYear.js"; +import { getISOWeek } from "../../getISOWeek.js"; +import { getISOWeekYear } from "../../getISOWeekYear.js"; +import { getWeek } from "../../getWeek.js"; +import { getWeekYear } from "../../getWeekYear.js"; + +import { addLeadingZeros } from "../addLeadingZeros.js"; +import { lightFormatters } from "./lightFormatters.js"; + +const dayPeriodEnum = { + am: "am", + pm: "pm", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", +}; + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O | Timezone (GMT) | + * | p! | Long localized time | P! | Long localized date | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + * - `P` is long localized date format + * - `p` is long localized time format + */ + +export const formatters = { + // Era + G: function (date, token, localize) { + const era = date.getFullYear() > 0 ? 1 : 0; + switch (token) { + // AD, BC + case "G": + case "GG": + case "GGG": + return localize.era(era, { width: "abbreviated" }); + // A, B + case "GGGGG": + return localize.era(era, { width: "narrow" }); + // Anno Domini, Before Christ + case "GGGG": + default: + return localize.era(era, { width: "wide" }); + } + }, + + // Year + y: function (date, token, localize) { + // Ordinal number + if (token === "yo") { + const signedYear = date.getFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { unit: "year" }); + } + + return lightFormatters.y(date, token); + }, + + // Local week-numbering year + Y: function (date, token, localize, options) { + const signedWeekYear = getWeekYear(date, options); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; + + // Two digit year + if (token === "YY") { + const twoDigitYear = weekYear % 100; + return addLeadingZeros(twoDigitYear, 2); + } + + // Ordinal number + if (token === "Yo") { + return localize.ordinalNumber(weekYear, { unit: "year" }); + } + + // Padding + return addLeadingZeros(weekYear, token.length); + }, + + // ISO week-numbering year + R: function (date, token) { + const isoWeekYear = getISOWeekYear(date); + + // Padding + return addLeadingZeros(isoWeekYear, token.length); + }, + + // Extended year. This is a single number designating the year of this calendar system. + // The main difference between `y` and `u` localizers are B.C. years: + // | Year | `y` | `u` | + // |------|-----|-----| + // | AC 1 | 1 | 1 | + // | BC 1 | 1 | 0 | + // | BC 2 | 2 | -1 | + // Also `yy` always returns the last two digits of a year, + // while `uu` pads single digit years to 2 characters and returns other years unchanged. + u: function (date, token) { + const year = date.getFullYear(); + return addLeadingZeros(year, token.length); + }, + + // Quarter + Q: function (date, token, localize) { + const quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case "Q": + return String(quarter); + // 01, 02, 03, 04 + case "QQ": + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + case "Qo": + return localize.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 + case "QQQ": + return localize.quarter(quarter, { + width: "abbreviated", + context: "formatting", + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case "QQQQQ": + return localize.quarter(quarter, { + width: "narrow", + context: "formatting", + }); + // 1st quarter, 2nd quarter, ... + case "QQQQ": + default: + return localize.quarter(quarter, { + width: "wide", + context: "formatting", + }); + } + }, + + // Stand-alone quarter + q: function (date, token, localize) { + const quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + // 1, 2, 3, 4 + case "q": + return String(quarter); + // 01, 02, 03, 04 + case "qq": + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + case "qo": + return localize.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 + case "qqq": + return localize.quarter(quarter, { + width: "abbreviated", + context: "standalone", + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + case "qqqqq": + return localize.quarter(quarter, { + width: "narrow", + context: "standalone", + }); + // 1st quarter, 2nd quarter, ... + case "qqqq": + default: + return localize.quarter(quarter, { + width: "wide", + context: "standalone", + }); + } + }, + + // Month + M: function (date, token, localize) { + const month = date.getMonth(); + switch (token) { + case "M": + case "MM": + return lightFormatters.M(date, token); + // 1st, 2nd, ..., 12th + case "Mo": + return localize.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec + case "MMM": + return localize.month(month, { + width: "abbreviated", + context: "formatting", + }); + // J, F, ..., D + case "MMMMM": + return localize.month(month, { + width: "narrow", + context: "formatting", + }); + // January, February, ..., December + case "MMMM": + default: + return localize.month(month, { width: "wide", context: "formatting" }); + } + }, + + // Stand-alone month + L: function (date, token, localize) { + const month = date.getMonth(); + switch (token) { + // 1, 2, ..., 12 + case "L": + return String(month + 1); + // 01, 02, ..., 12 + case "LL": + return addLeadingZeros(month + 1, 2); + // 1st, 2nd, ..., 12th + case "Lo": + return localize.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec + case "LLL": + return localize.month(month, { + width: "abbreviated", + context: "standalone", + }); + // J, F, ..., D + case "LLLLL": + return localize.month(month, { + width: "narrow", + context: "standalone", + }); + // January, February, ..., December + case "LLLL": + default: + return localize.month(month, { width: "wide", context: "standalone" }); + } + }, + + // Local week of year + w: function (date, token, localize, options) { + const week = getWeek(date, options); + + if (token === "wo") { + return localize.ordinalNumber(week, { unit: "week" }); + } + + return addLeadingZeros(week, token.length); + }, + + // ISO week of year + I: function (date, token, localize) { + const isoWeek = getISOWeek(date); + + if (token === "Io") { + return localize.ordinalNumber(isoWeek, { unit: "week" }); + } + + return addLeadingZeros(isoWeek, token.length); + }, + + // Day of the month + d: function (date, token, localize) { + if (token === "do") { + return localize.ordinalNumber(date.getDate(), { unit: "date" }); + } + + return lightFormatters.d(date, token); + }, + + // Day of year + D: function (date, token, localize) { + const dayOfYear = getDayOfYear(date); + + if (token === "Do") { + return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); + } + + return addLeadingZeros(dayOfYear, token.length); + }, + + // Day of week + E: function (date, token, localize) { + const dayOfWeek = date.getDay(); + switch (token) { + // Tue + case "E": + case "EE": + case "EEE": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "EEEEE": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "EEEEEE": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "EEEE": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // Local day of week + e: function (date, token, localize, options) { + const dayOfWeek = date.getDay(); + const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) + case "e": + return String(localDayOfWeek); + // Padded numerical value + case "ee": + return addLeadingZeros(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th + case "eo": + return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "eee": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "eeeee": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "eeeeee": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "eeee": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // Stand-alone local day of week + c: function (date, token, localize, options) { + const dayOfWeek = date.getDay(); + const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + // Numerical value (same as in `e`) + case "c": + return String(localDayOfWeek); + // Padded numerical value + case "cc": + return addLeadingZeros(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th + case "co": + return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "ccc": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "standalone", + }); + // T + case "ccccc": + return localize.day(dayOfWeek, { + width: "narrow", + context: "standalone", + }); + // Tu + case "cccccc": + return localize.day(dayOfWeek, { + width: "short", + context: "standalone", + }); + // Tuesday + case "cccc": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "standalone", + }); + } + }, + + // ISO day of week + i: function (date, token, localize) { + const dayOfWeek = date.getDay(); + const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + switch (token) { + // 2 + case "i": + return String(isoDayOfWeek); + // 02 + case "ii": + return addLeadingZeros(isoDayOfWeek, token.length); + // 2nd + case "io": + return localize.ordinalNumber(isoDayOfWeek, { unit: "day" }); + // Tue + case "iii": + return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting", + }); + // T + case "iiiii": + return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting", + }); + // Tu + case "iiiiii": + return localize.day(dayOfWeek, { + width: "short", + context: "formatting", + }); + // Tuesday + case "iiii": + default: + return localize.day(dayOfWeek, { + width: "wide", + context: "formatting", + }); + } + }, + + // AM or PM + a: function (date, token, localize) { + const hours = date.getHours(); + const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + + switch (token) { + case "a": + case "aa": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "aaa": + return localize + .dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }) + .toLowerCase(); + case "aaaaa": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "aaaa": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // AM, PM, midnight, noon + b: function (date, token, localize) { + const hours = date.getHours(); + let dayPeriodEnumValue; + if (hours === 12) { + dayPeriodEnumValue = dayPeriodEnum.noon; + } else if (hours === 0) { + dayPeriodEnumValue = dayPeriodEnum.midnight; + } else { + dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + } + + switch (token) { + case "b": + case "bb": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "bbb": + return localize + .dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }) + .toLowerCase(); + case "bbbbb": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "bbbb": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // in the morning, in the afternoon, in the evening, at night + B: function (date, token, localize) { + const hours = date.getHours(); + let dayPeriodEnumValue; + if (hours >= 17) { + dayPeriodEnumValue = dayPeriodEnum.evening; + } else if (hours >= 12) { + dayPeriodEnumValue = dayPeriodEnum.afternoon; + } else if (hours >= 4) { + dayPeriodEnumValue = dayPeriodEnum.morning; + } else { + dayPeriodEnumValue = dayPeriodEnum.night; + } + + switch (token) { + case "B": + case "BB": + case "BBB": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting", + }); + case "BBBBB": + return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting", + }); + case "BBBB": + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting", + }); + } + }, + + // Hour [1-12] + h: function (date, token, localize) { + if (token === "ho") { + let hours = date.getHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return lightFormatters.h(date, token); + }, + + // Hour [0-23] + H: function (date, token, localize) { + if (token === "Ho") { + return localize.ordinalNumber(date.getHours(), { unit: "hour" }); + } + + return lightFormatters.H(date, token); + }, + + // Hour [0-11] + K: function (date, token, localize) { + const hours = date.getHours() % 12; + + if (token === "Ko") { + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return addLeadingZeros(hours, token.length); + }, + + // Hour [1-24] + k: function (date, token, localize) { + let hours = date.getHours(); + if (hours === 0) hours = 24; + + if (token === "ko") { + return localize.ordinalNumber(hours, { unit: "hour" }); + } + + return addLeadingZeros(hours, token.length); + }, + + // Minute + m: function (date, token, localize) { + if (token === "mo") { + return localize.ordinalNumber(date.getMinutes(), { unit: "minute" }); + } + + return lightFormatters.m(date, token); + }, + + // Second + s: function (date, token, localize) { + if (token === "so") { + return localize.ordinalNumber(date.getSeconds(), { unit: "second" }); + } + + return lightFormatters.s(date, token); + }, + + // Fraction of second + S: function (date, token) { + return lightFormatters.S(date, token); + }, + + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + if (timezoneOffset === 0) { + return "Z"; + } + + switch (token) { + // Hours and optional minutes + case "X": + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` + case "XXXX": + case "XX": // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` + case "XXXXX": + case "XXX": // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) + x: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Hours and optional minutes + case "x": + return formatTimezoneWithOptionalMinutes(timezoneOffset); + + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` + case "xxxx": + case "xx": // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` + case "xxxxx": + case "xxx": // Hours and minutes with `:` delimiter + default: + return formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (GMT) + O: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Short + case "O": + case "OO": + case "OOO": + return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long + case "OOOO": + default: + return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + + // Timezone (specific non-location) + z: function (date, token, _localize) { + const timezoneOffset = date.getTimezoneOffset(); + + switch (token) { + // Short + case "z": + case "zz": + case "zzz": + return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long + case "zzzz": + default: + return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + + // Seconds timestamp + t: function (date, token, _localize) { + const timestamp = Math.trunc(+date / 1000); + return addLeadingZeros(timestamp, token.length); + }, + + // Milliseconds timestamp + T: function (date, token, _localize) { + return addLeadingZeros(+date, token.length); + }, +}; + +function formatTimezoneShort(offset, delimiter = "") { + const sign = offset > 0 ? "-" : "+"; + const absOffset = Math.abs(offset); + const hours = Math.trunc(absOffset / 60); + const minutes = absOffset % 60; + if (minutes === 0) { + return sign + String(hours); + } + return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); +} + +function formatTimezoneWithOptionalMinutes(offset, delimiter) { + if (offset % 60 === 0) { + const sign = offset > 0 ? "-" : "+"; + return sign + addLeadingZeros(Math.abs(offset) / 60, 2); + } + return formatTimezone(offset, delimiter); +} + +function formatTimezone(offset, delimiter = "") { + const sign = offset > 0 ? "-" : "+"; + const absOffset = Math.abs(offset); + const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); + const minutes = addLeadingZeros(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} diff --git a/node_modules/date-fns/_lib/format/lightFormatters.cjs b/node_modules/date-fns/_lib/format/lightFormatters.cjs new file mode 100644 index 000000000..2036711f7 --- /dev/null +++ b/node_modules/date-fns/_lib/format/lightFormatters.cjs @@ -0,0 +1,102 @@ +"use strict"; +exports.lightFormatters = void 0; +var _index = require("../addLeadingZeros.cjs"); + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | | + * | d | Day of month | D | | + * | h | Hour [1-12] | H | Hour [0-23] | + * | m | Minute | M | Month | + * | s | Second | S | Fraction of second | + * | y | Year (abs) | Y | | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + */ + +const lightFormatters = (exports.lightFormatters = { + // Year + y(date, token) { + // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens + // | Year | y | yy | yyy | yyyy | yyyyy | + // |----------|-------|----|-------|-------|-------| + // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | + // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | + // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | + // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | + // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | + + const signedYear = date.getFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const year = signedYear > 0 ? signedYear : 1 - signedYear; + return (0, _index.addLeadingZeros)( + token === "yy" ? year % 100 : year, + token.length, + ); + }, + + // Month + M(date, token) { + const month = date.getMonth(); + return token === "M" + ? String(month + 1) + : (0, _index.addLeadingZeros)(month + 1, 2); + }, + + // Day of the month + d(date, token) { + return (0, _index.addLeadingZeros)(date.getDate(), token.length); + }, + + // AM or PM + a(date, token) { + const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + + switch (token) { + case "a": + case "aa": + return dayPeriodEnumValue.toUpperCase(); + case "aaa": + return dayPeriodEnumValue; + case "aaaaa": + return dayPeriodEnumValue[0]; + case "aaaa": + default: + return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; + } + }, + + // Hour [1-12] + h(date, token) { + return (0, _index.addLeadingZeros)( + date.getHours() % 12 || 12, + token.length, + ); + }, + + // Hour [0-23] + H(date, token) { + return (0, _index.addLeadingZeros)(date.getHours(), token.length); + }, + + // Minute + m(date, token) { + return (0, _index.addLeadingZeros)(date.getMinutes(), token.length); + }, + + // Second + s(date, token) { + return (0, _index.addLeadingZeros)(date.getSeconds(), token.length); + }, + + // Fraction of second + S(date, token) { + const numberOfDigits = token.length; + const milliseconds = date.getMilliseconds(); + const fractionalSeconds = Math.trunc( + milliseconds * Math.pow(10, numberOfDigits - 3), + ); + return (0, _index.addLeadingZeros)(fractionalSeconds, token.length); + }, +}); diff --git a/node_modules/date-fns/_lib/format/lightFormatters.d.cts b/node_modules/date-fns/_lib/format/lightFormatters.d.cts new file mode 100644 index 000000000..602bbf629 --- /dev/null +++ b/node_modules/date-fns/_lib/format/lightFormatters.d.cts @@ -0,0 +1,11 @@ +export declare const lightFormatters: { + y(date: Date, token: string): string; + M(date: Date, token: string): string; + d(date: Date, token: string): string; + a(date: Date, token: string): string; + h(date: Date, token: string): string; + H(date: Date, token: string): string; + m(date: Date, token: string): string; + s(date: Date, token: string): string; + S(date: Date, token: string): string; +}; diff --git a/node_modules/date-fns/_lib/format/lightFormatters.d.ts b/node_modules/date-fns/_lib/format/lightFormatters.d.ts new file mode 100644 index 000000000..602bbf629 --- /dev/null +++ b/node_modules/date-fns/_lib/format/lightFormatters.d.ts @@ -0,0 +1,11 @@ +export declare const lightFormatters: { + y(date: Date, token: string): string; + M(date: Date, token: string): string; + d(date: Date, token: string): string; + a(date: Date, token: string): string; + h(date: Date, token: string): string; + H(date: Date, token: string): string; + m(date: Date, token: string): string; + s(date: Date, token: string): string; + S(date: Date, token: string): string; +}; diff --git a/node_modules/date-fns/_lib/format/lightFormatters.js b/node_modules/date-fns/_lib/format/lightFormatters.js new file mode 100644 index 000000000..c725ba585 --- /dev/null +++ b/node_modules/date-fns/_lib/format/lightFormatters.js @@ -0,0 +1,92 @@ +import { addLeadingZeros } from "../addLeadingZeros.js"; + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | | + * | d | Day of month | D | | + * | h | Hour [1-12] | H | Hour [0-23] | + * | m | Minute | M | Month | + * | s | Second | S | Fraction of second | + * | y | Year (abs) | Y | | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + */ + +export const lightFormatters = { + // Year + y(date, token) { + // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens + // | Year | y | yy | yyy | yyyy | yyyyy | + // |----------|-------|----|-------|-------|-------| + // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | + // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | + // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | + // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | + // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | + + const signedYear = date.getFullYear(); + // Returns 1 for 1 BC (which is year 0 in JavaScript) + const year = signedYear > 0 ? signedYear : 1 - signedYear; + return addLeadingZeros(token === "yy" ? year % 100 : year, token.length); + }, + + // Month + M(date, token) { + const month = date.getMonth(); + return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + + // Day of the month + d(date, token) { + return addLeadingZeros(date.getDate(), token.length); + }, + + // AM or PM + a(date, token) { + const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + + switch (token) { + case "a": + case "aa": + return dayPeriodEnumValue.toUpperCase(); + case "aaa": + return dayPeriodEnumValue; + case "aaaaa": + return dayPeriodEnumValue[0]; + case "aaaa": + default: + return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; + } + }, + + // Hour [1-12] + h(date, token) { + return addLeadingZeros(date.getHours() % 12 || 12, token.length); + }, + + // Hour [0-23] + H(date, token) { + return addLeadingZeros(date.getHours(), token.length); + }, + + // Minute + m(date, token) { + return addLeadingZeros(date.getMinutes(), token.length); + }, + + // Second + s(date, token) { + return addLeadingZeros(date.getSeconds(), token.length); + }, + + // Fraction of second + S(date, token) { + const numberOfDigits = token.length; + const milliseconds = date.getMilliseconds(); + const fractionalSeconds = Math.trunc( + milliseconds * Math.pow(10, numberOfDigits - 3), + ); + return addLeadingZeros(fractionalSeconds, token.length); + }, +}; diff --git a/node_modules/date-fns/_lib/format/longFormatters.cjs b/node_modules/date-fns/_lib/format/longFormatters.cjs new file mode 100644 index 000000000..ca4b1f62d --- /dev/null +++ b/node_modules/date-fns/_lib/format/longFormatters.cjs @@ -0,0 +1,67 @@ +"use strict"; +exports.longFormatters = void 0; + +const dateLongFormatter = (pattern, formatLong) => { + switch (pattern) { + case "P": + return formatLong.date({ width: "short" }); + case "PP": + return formatLong.date({ width: "medium" }); + case "PPP": + return formatLong.date({ width: "long" }); + case "PPPP": + default: + return formatLong.date({ width: "full" }); + } +}; + +const timeLongFormatter = (pattern, formatLong) => { + switch (pattern) { + case "p": + return formatLong.time({ width: "short" }); + case "pp": + return formatLong.time({ width: "medium" }); + case "ppp": + return formatLong.time({ width: "long" }); + case "pppp": + default: + return formatLong.time({ width: "full" }); + } +}; + +const dateTimeLongFormatter = (pattern, formatLong) => { + const matchResult = pattern.match(/(P+)(p+)?/) || []; + const datePattern = matchResult[1]; + const timePattern = matchResult[2]; + + if (!timePattern) { + return dateLongFormatter(pattern, formatLong); + } + + let dateTimeFormat; + + switch (datePattern) { + case "P": + dateTimeFormat = formatLong.dateTime({ width: "short" }); + break; + case "PP": + dateTimeFormat = formatLong.dateTime({ width: "medium" }); + break; + case "PPP": + dateTimeFormat = formatLong.dateTime({ width: "long" }); + break; + case "PPPP": + default: + dateTimeFormat = formatLong.dateTime({ width: "full" }); + break; + } + + return dateTimeFormat + .replace("{{date}}", dateLongFormatter(datePattern, formatLong)) + .replace("{{time}}", timeLongFormatter(timePattern, formatLong)); +}; + +const longFormatters = (exports.longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter, +}); diff --git a/node_modules/date-fns/_lib/format/longFormatters.d.cts b/node_modules/date-fns/_lib/format/longFormatters.d.cts new file mode 100644 index 000000000..19b2e163f --- /dev/null +++ b/node_modules/date-fns/_lib/format/longFormatters.d.cts @@ -0,0 +1,4 @@ +import type { FormatLong } from "../../locale/types.ts"; +type LongFormatter = (pattern: string, formatLong: FormatLong) => string; +export declare const longFormatters: Record; +export {}; diff --git a/node_modules/date-fns/_lib/format/longFormatters.d.ts b/node_modules/date-fns/_lib/format/longFormatters.d.ts new file mode 100644 index 000000000..19b2e163f --- /dev/null +++ b/node_modules/date-fns/_lib/format/longFormatters.d.ts @@ -0,0 +1,4 @@ +import type { FormatLong } from "../../locale/types.ts"; +type LongFormatter = (pattern: string, formatLong: FormatLong) => string; +export declare const longFormatters: Record; +export {}; diff --git a/node_modules/date-fns/_lib/format/longFormatters.js b/node_modules/date-fns/_lib/format/longFormatters.js new file mode 100644 index 000000000..67c510ea3 --- /dev/null +++ b/node_modules/date-fns/_lib/format/longFormatters.js @@ -0,0 +1,64 @@ +const dateLongFormatter = (pattern, formatLong) => { + switch (pattern) { + case "P": + return formatLong.date({ width: "short" }); + case "PP": + return formatLong.date({ width: "medium" }); + case "PPP": + return formatLong.date({ width: "long" }); + case "PPPP": + default: + return formatLong.date({ width: "full" }); + } +}; + +const timeLongFormatter = (pattern, formatLong) => { + switch (pattern) { + case "p": + return formatLong.time({ width: "short" }); + case "pp": + return formatLong.time({ width: "medium" }); + case "ppp": + return formatLong.time({ width: "long" }); + case "pppp": + default: + return formatLong.time({ width: "full" }); + } +}; + +const dateTimeLongFormatter = (pattern, formatLong) => { + const matchResult = pattern.match(/(P+)(p+)?/) || []; + const datePattern = matchResult[1]; + const timePattern = matchResult[2]; + + if (!timePattern) { + return dateLongFormatter(pattern, formatLong); + } + + let dateTimeFormat; + + switch (datePattern) { + case "P": + dateTimeFormat = formatLong.dateTime({ width: "short" }); + break; + case "PP": + dateTimeFormat = formatLong.dateTime({ width: "medium" }); + break; + case "PPP": + dateTimeFormat = formatLong.dateTime({ width: "long" }); + break; + case "PPPP": + default: + dateTimeFormat = formatLong.dateTime({ width: "full" }); + break; + } + + return dateTimeFormat + .replace("{{date}}", dateLongFormatter(datePattern, formatLong)) + .replace("{{time}}", timeLongFormatter(timePattern, formatLong)); +}; + +export const longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter, +}; diff --git a/node_modules/date-fns/_lib/getRoundingMethod.cjs b/node_modules/date-fns/_lib/getRoundingMethod.cjs new file mode 100644 index 000000000..62b2986f8 --- /dev/null +++ b/node_modules/date-fns/_lib/getRoundingMethod.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.getRoundingMethod = getRoundingMethod; + +function getRoundingMethod(method) { + return (number) => { + const round = method ? Math[method] : Math.trunc; + const result = round(number); + // Prevent negative zero + return result === 0 ? 0 : result; + }; +} diff --git a/node_modules/date-fns/_lib/getRoundingMethod.d.cts b/node_modules/date-fns/_lib/getRoundingMethod.d.cts new file mode 100644 index 000000000..2ad352eb4 --- /dev/null +++ b/node_modules/date-fns/_lib/getRoundingMethod.d.cts @@ -0,0 +1,4 @@ +import type { RoundingMethod } from "../types.ts"; +export declare function getRoundingMethod( + method: RoundingMethod | undefined, +): (number: number) => number; diff --git a/node_modules/date-fns/_lib/getRoundingMethod.d.ts b/node_modules/date-fns/_lib/getRoundingMethod.d.ts new file mode 100644 index 000000000..2ad352eb4 --- /dev/null +++ b/node_modules/date-fns/_lib/getRoundingMethod.d.ts @@ -0,0 +1,4 @@ +import type { RoundingMethod } from "../types.ts"; +export declare function getRoundingMethod( + method: RoundingMethod | undefined, +): (number: number) => number; diff --git a/node_modules/date-fns/_lib/getRoundingMethod.js b/node_modules/date-fns/_lib/getRoundingMethod.js new file mode 100644 index 000000000..8a8edac49 --- /dev/null +++ b/node_modules/date-fns/_lib/getRoundingMethod.js @@ -0,0 +1,8 @@ +export function getRoundingMethod(method) { + return (number) => { + const round = method ? Math[method] : Math.trunc; + const result = round(number); + // Prevent negative zero + return result === 0 ? 0 : result; + }; +} diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs new file mode 100644 index 000000000..e5a03d957 --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds; +var _index = require("../toDate.cjs"); + +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +function getTimezoneOffsetInMilliseconds(date) { + const _date = (0, _index.toDate)(date); + const utcDate = new Date( + Date.UTC( + _date.getFullYear(), + _date.getMonth(), + _date.getDate(), + _date.getHours(), + _date.getMinutes(), + _date.getSeconds(), + _date.getMilliseconds(), + ), + ); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; +} diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.cts b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.cts new file mode 100644 index 000000000..eb60fbbbf --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.cts @@ -0,0 +1,15 @@ +import type { DateArg } from "../types.ts"; +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +export declare function getTimezoneOffsetInMilliseconds( + date: DateArg & {}, +): number; diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts new file mode 100644 index 000000000..eb60fbbbf --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.d.ts @@ -0,0 +1,15 @@ +import type { DateArg } from "../types.ts"; +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +export declare function getTimezoneOffsetInMilliseconds( + date: DateArg & {}, +): number; diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js new file mode 100644 index 000000000..61ea9a154 --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js @@ -0,0 +1,29 @@ +import { toDate } from "../toDate.js"; + +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +export function getTimezoneOffsetInMilliseconds(date) { + const _date = toDate(date); + const utcDate = new Date( + Date.UTC( + _date.getFullYear(), + _date.getMonth(), + _date.getDate(), + _date.getHours(), + _date.getMinutes(), + _date.getSeconds(), + _date.getMilliseconds(), + ), + ); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; +} diff --git a/node_modules/date-fns/_lib/normalizeDates.cjs b/node_modules/date-fns/_lib/normalizeDates.cjs new file mode 100644 index 000000000..84d7bce33 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeDates.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.normalizeDates = normalizeDates; +var _index = require("../constructFrom.cjs"); + +function normalizeDates(context, ...dates) { + const normalize = _index.constructFrom.bind( + null, + context || dates.find((date) => typeof date === "object"), + ); + return dates.map(normalize); +} diff --git a/node_modules/date-fns/_lib/normalizeDates.d.cts b/node_modules/date-fns/_lib/normalizeDates.d.cts new file mode 100644 index 000000000..4949ec117 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeDates.d.cts @@ -0,0 +1,13 @@ +import type { ContextFn, DateArg } from "../types.ts"; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: [DateArg, DateArg, DateArg] +): [Date, Date, Date]; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: [DateArg, DateArg] +): [Date, Date]; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: Array & {}> +): Date[]; diff --git a/node_modules/date-fns/_lib/normalizeDates.d.ts b/node_modules/date-fns/_lib/normalizeDates.d.ts new file mode 100644 index 000000000..4949ec117 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeDates.d.ts @@ -0,0 +1,13 @@ +import type { ContextFn, DateArg } from "../types.ts"; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: [DateArg, DateArg, DateArg] +): [Date, Date, Date]; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: [DateArg, DateArg] +): [Date, Date]; +export declare function normalizeDates( + context: ContextFn | undefined, + ...dates: Array & {}> +): Date[]; diff --git a/node_modules/date-fns/_lib/normalizeDates.js b/node_modules/date-fns/_lib/normalizeDates.js new file mode 100644 index 000000000..879a21eef --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeDates.js @@ -0,0 +1,9 @@ +import { constructFrom } from "../constructFrom.js"; + +export function normalizeDates(context, ...dates) { + const normalize = constructFrom.bind( + null, + context || dates.find((date) => typeof date === "object"), + ); + return dates.map(normalize); +} diff --git a/node_modules/date-fns/_lib/normalizeInterval.cjs b/node_modules/date-fns/_lib/normalizeInterval.cjs new file mode 100644 index 000000000..7cf9083d2 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeInterval.cjs @@ -0,0 +1,12 @@ +"use strict"; +exports.normalizeInterval = normalizeInterval; +var _index = require("./normalizeDates.cjs"); + +function normalizeInterval(context, interval) { + const [start, end] = (0, _index.normalizeDates)( + context, + interval.start, + interval.end, + ); + return { start, end }; +} diff --git a/node_modules/date-fns/_lib/normalizeInterval.d.cts b/node_modules/date-fns/_lib/normalizeInterval.d.cts new file mode 100644 index 000000000..fc71adf88 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeInterval.d.cts @@ -0,0 +1,5 @@ +import type { ContextFn, Interval, NormalizedInterval } from "../types.ts"; +export declare function normalizeInterval( + context: ContextFn | undefined, + interval: Interval, +): NormalizedInterval; diff --git a/node_modules/date-fns/_lib/normalizeInterval.d.ts b/node_modules/date-fns/_lib/normalizeInterval.d.ts new file mode 100644 index 000000000..fc71adf88 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeInterval.d.ts @@ -0,0 +1,5 @@ +import type { ContextFn, Interval, NormalizedInterval } from "../types.ts"; +export declare function normalizeInterval( + context: ContextFn | undefined, + interval: Interval, +): NormalizedInterval; diff --git a/node_modules/date-fns/_lib/normalizeInterval.js b/node_modules/date-fns/_lib/normalizeInterval.js new file mode 100644 index 000000000..6d236e740 --- /dev/null +++ b/node_modules/date-fns/_lib/normalizeInterval.js @@ -0,0 +1,6 @@ +import { normalizeDates } from "./normalizeDates.js"; + +export function normalizeInterval(context, interval) { + const [start, end] = normalizeDates(context, interval.start, interval.end); + return { start, end }; +} diff --git a/node_modules/date-fns/_lib/protectedTokens.cjs b/node_modules/date-fns/_lib/protectedTokens.cjs new file mode 100644 index 000000000..64b6090c0 --- /dev/null +++ b/node_modules/date-fns/_lib/protectedTokens.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.isProtectedDayOfYearToken = isProtectedDayOfYearToken; +exports.isProtectedWeekYearToken = isProtectedWeekYearToken; +exports.warnOrThrowProtectedError = warnOrThrowProtectedError; +const dayOfYearTokenRE = /^D+$/; +const weekYearTokenRE = /^Y+$/; + +const throwTokens = ["D", "DD", "YY", "YYYY"]; + +function isProtectedDayOfYearToken(token) { + return dayOfYearTokenRE.test(token); +} + +function isProtectedWeekYearToken(token) { + return weekYearTokenRE.test(token); +} + +function warnOrThrowProtectedError(token, format, input) { + const _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} + +function message(token, format, input) { + const subject = token[0] === "Y" ? "years" : "days of the month"; + return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; +} diff --git a/node_modules/date-fns/_lib/protectedTokens.d.cts b/node_modules/date-fns/_lib/protectedTokens.d.cts new file mode 100644 index 000000000..ba5feba88 --- /dev/null +++ b/node_modules/date-fns/_lib/protectedTokens.d.cts @@ -0,0 +1,7 @@ +export declare function isProtectedDayOfYearToken(token: string): boolean; +export declare function isProtectedWeekYearToken(token: string): boolean; +export declare function warnOrThrowProtectedError( + token: string, + format: string, + input: string, +): void; diff --git a/node_modules/date-fns/_lib/protectedTokens.d.ts b/node_modules/date-fns/_lib/protectedTokens.d.ts new file mode 100644 index 000000000..ba5feba88 --- /dev/null +++ b/node_modules/date-fns/_lib/protectedTokens.d.ts @@ -0,0 +1,7 @@ +export declare function isProtectedDayOfYearToken(token: string): boolean; +export declare function isProtectedWeekYearToken(token: string): boolean; +export declare function warnOrThrowProtectedError( + token: string, + format: string, + input: string, +): void; diff --git a/node_modules/date-fns/_lib/protectedTokens.js b/node_modules/date-fns/_lib/protectedTokens.js new file mode 100644 index 000000000..38a13fa44 --- /dev/null +++ b/node_modules/date-fns/_lib/protectedTokens.js @@ -0,0 +1,23 @@ +const dayOfYearTokenRE = /^D+$/; +const weekYearTokenRE = /^Y+$/; + +const throwTokens = ["D", "DD", "YY", "YYYY"]; + +export function isProtectedDayOfYearToken(token) { + return dayOfYearTokenRE.test(token); +} + +export function isProtectedWeekYearToken(token) { + return weekYearTokenRE.test(token); +} + +export function warnOrThrowProtectedError(token, format, input) { + const _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} + +function message(token, format, input) { + const subject = token[0] === "Y" ? "years" : "days of the month"; + return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; +} diff --git a/node_modules/date-fns/_lib/test.cjs b/node_modules/date-fns/_lib/test.cjs new file mode 100644 index 000000000..bfe7dae0d --- /dev/null +++ b/node_modules/date-fns/_lib/test.cjs @@ -0,0 +1,54 @@ +"use strict"; +exports.assertType = assertType; +exports.fakeDate = fakeDate; +exports.generateOffset = generateOffset; +exports.resetDefaultOptions = resetDefaultOptions; +var _vitest = require("./test/vitest"); +var _index = require("./addLeadingZeros.cjs"); +var _index2 = require("./defaultOptions.cjs"); + +function assertType(_value) {} + +function resetDefaultOptions() { + (0, _index2.setDefaultOptions)({}); +} + +// This makes sure we create the consistent offsets across timezones, no matter where these tests are ran. +function generateOffset(originalDate) { + // Add the timezone. + let offset = ""; + const tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + const absoluteOffset = Math.abs(tzOffset); + const hourOffset = (0, _index.addLeadingZeros)( + Math.trunc(absoluteOffset / 60), + 2, + ); + const minuteOffset = (0, _index.addLeadingZeros)(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = tzOffset < 0 ? "+" : "-"; + + offset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + offset = "Z"; + } + + return offset; +} + +function fakeDate(date) { + function fakeNow(date) { + _vitest.vi.setSystemTime(date); + } + + (0, _vitest.beforeEach)(() => { + _vitest.vi.useFakeTimers({ now: date }); + }); + + (0, _vitest.afterEach)(() => { + _vitest.vi.useRealTimers(); + }); + + return { fakeNow }; +} diff --git a/node_modules/date-fns/_lib/test.d.cts b/node_modules/date-fns/_lib/test.d.cts new file mode 100644 index 000000000..f2279bc5e --- /dev/null +++ b/node_modules/date-fns/_lib/test.d.cts @@ -0,0 +1,14 @@ +export declare function assertType(_value: Type): void; +export declare namespace assertType { + type Equal = + Exclude extends never + ? Exclude extends never + ? true + : false + : false; +} +export declare function resetDefaultOptions(): void; +export declare function generateOffset(originalDate: Date): string; +export declare function fakeDate(date: number | Date): { + fakeNow: (date: number | Date) => void; +}; diff --git a/node_modules/date-fns/_lib/test.d.ts b/node_modules/date-fns/_lib/test.d.ts new file mode 100644 index 000000000..f2279bc5e --- /dev/null +++ b/node_modules/date-fns/_lib/test.d.ts @@ -0,0 +1,14 @@ +export declare function assertType(_value: Type): void; +export declare namespace assertType { + type Equal = + Exclude extends never + ? Exclude extends never + ? true + : false + : false; +} +export declare function resetDefaultOptions(): void; +export declare function generateOffset(originalDate: Date): string; +export declare function fakeDate(date: number | Date): { + fakeNow: (date: number | Date) => void; +}; diff --git a/node_modules/date-fns/_lib/test.js b/node_modules/date-fns/_lib/test.js new file mode 100644 index 000000000..49fda7c61 --- /dev/null +++ b/node_modules/date-fns/_lib/test.js @@ -0,0 +1,46 @@ +import { afterEach, beforeEach, vi } from "./test/vitest"; +import { addLeadingZeros } from "./addLeadingZeros.js"; +import { setDefaultOptions } from "./defaultOptions.js"; + +export function assertType(_value) {} + +export function resetDefaultOptions() { + setDefaultOptions({}); +} + +// This makes sure we create the consistent offsets across timezones, no matter where these tests are ran. +export function generateOffset(originalDate) { + // Add the timezone. + let offset = ""; + const tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + const absoluteOffset = Math.abs(tzOffset); + const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = tzOffset < 0 ? "+" : "-"; + + offset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + offset = "Z"; + } + + return offset; +} + +export function fakeDate(date) { + function fakeNow(date) { + vi.setSystemTime(date); + } + + beforeEach(() => { + vi.useFakeTimers({ now: date }); + }); + + afterEach(() => { + vi.useRealTimers(); + }); + + return { fakeNow }; +} diff --git a/node_modules/date-fns/_lib/test/tzOffsetTransitions.cjs b/node_modules/date-fns/_lib/test/tzOffsetTransitions.cjs new file mode 100644 index 000000000..49e4b4439 --- /dev/null +++ b/node_modules/date-fns/_lib/test/tzOffsetTransitions.cjs @@ -0,0 +1,142 @@ +"use strict"; +exports.getDstTransitions = getDstTransitions; +exports.getTzOffsetTransitions = getTzOffsetTransitions; + +/** + * Fetch the start and end of DST for the local time + * zone in a given year. + * We'll assume that DST start & end are the first + * forward and the last back transitions in the year, + * except transitions in Jan or Dec which are likely + * to be permanent TZ changes rather than DST changes. + * @param year + * @returns object with two Date-valued properties: + * - `start` is the first instant of DST in the Spring, + * or undefined if there's no DST in this year. + * - `end` is the first instant of standard time + * in the Fall, or undefined if there's no DST in + * this year. + */ +function getDstTransitions(year) { + const result = { + start: undefined, + end: undefined, + }; + const transitions = getTzOffsetTransitions(year); + for (let i = 0; i < transitions.length; i++) { + const t = transitions[i]; + const month = t.date.getMonth(); + if (month > 0 && month < 11) { + if (t.type === "forward") result.start = t.date; + if (t.type === "back" && !result.end) result.end = t.date; + } + } + return result; +} + +function isValidDate(date) { + return date instanceof Date && !isNaN(date.getTime()); +} + +const MINUTE = 1000 * 60; + +function firstTickInLocalDay(date) { + const dateNumber = date.getDate(); + let prev = date; + let d = date; + do { + prev = d; + d = new Date(d.getTime() - MINUTE); + } while (dateNumber === d.getDate()); + return prev; +} + +function fiveMinutesLater(date) { + return new Date(date.getTime() + 5 * MINUTE); +} + +function oneDayLater(date) { + const d = new Date(date); + d.setDate(d.getDate() + 1); + return firstTickInLocalDay(d); +} + +function previousTickTimezoneOffset(date) { + const d = new Date(date.getTime() - 1); + return d.getTimezoneOffset(); +} + +/** + * Fetch all timezone-offset transitions in a given + * year. These are almost always DST transitions, + * but sometimes there are non-DST changes, e.g. + * when a country changes its time zone + * @param year + * @returns array of objects, each with the following + * propeerties: + * - `date` - a `Date` representing the first instant + * when the new timezone offset is effective. + * - `type` - either `forward` for skippnig time like + * the Spring transition to DST. + * - `before` - the timezone offset before the transition. + * For example, the UTC-0400 offset will return -240. + * To match how times are displayed in ISO 8601 format, + * the sign of this value is reversed from the return + * value of `Date.getTimezoneOffset`. + * - `after` - the timezone offset after the transition. + * Examples and caveats are the same as `before`. + + */ +function getTzOffsetTransitions(year) { + // start at the end of the previous day + let date = firstTickInLocalDay(new Date(year, 0, 1)); + if (!isValidDate(date)) { + throw new Error("Invalid Date"); + } + let baseTzOffset = previousTickTimezoneOffset(date); + const transitions = []; + do { + let tzOffset = date.getTimezoneOffset(); + if (baseTzOffset !== tzOffset) { + if (tzOffset !== previousTickTimezoneOffset(date)) { + // Transition is the first tick of a local day. + transitions.push({ + date: date, + type: tzOffset < baseTzOffset ? "forward" : "back", + before: -baseTzOffset, + after: -tzOffset, + }); + baseTzOffset = tzOffset; + } else { + // transition was not at the start of the day, so it must have happened + // yesterday. Back up one day and find the minute where it happened. + let transitionDate = new Date(date.getTime()); + transitionDate.setDate(transitionDate.getDate() - 1); + + // Iterate through each 5 mins of the day until we find a transition. + // TODO: this could be optimized to search hours then minutes or by or + // by using a binary search. + const dayNumber = transitionDate.getDate(); + while ( + isValidDate(transitionDate) && + transitionDate.getDate() === dayNumber + ) { + tzOffset = transitionDate.getTimezoneOffset(); + if (baseTzOffset !== tzOffset) { + transitions.push({ + date: transitionDate, + type: tzOffset < baseTzOffset ? "forward" : "back", + before: -baseTzOffset, + after: -tzOffset, + }); + baseTzOffset = tzOffset; + break; // assuming only 1 transition per day + } + transitionDate = fiveMinutesLater(transitionDate); + } + } + } + date = oneDayLater(date); + } while (date.getFullYear() === year); + return transitions; +} diff --git a/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.cts b/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.cts new file mode 100644 index 000000000..5143d59df --- /dev/null +++ b/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.cts @@ -0,0 +1,48 @@ +interface PartialInterval { + start: Date | undefined; + end: Date | undefined; +} +/** + * Fetch the start and end of DST for the local time + * zone in a given year. + * We'll assume that DST start & end are the first + * forward and the last back transitions in the year, + * except transitions in Jan or Dec which are likely + * to be permanent TZ changes rather than DST changes. + * @param year + * @returns object with two Date-valued properties: + * - `start` is the first instant of DST in the Spring, + * or undefined if there's no DST in this year. + * - `end` is the first instant of standard time + * in the Fall, or undefined if there's no DST in + * this year. + */ +export declare function getDstTransitions(year: number): PartialInterval; +/** + * Fetch all timezone-offset transitions in a given + * year. These are almost always DST transitions, + * but sometimes there are non-DST changes, e.g. + * when a country changes its time zone + * @param year + * @returns array of objects, each with the following + * propeerties: + * - `date` - a `Date` representing the first instant + * when the new timezone offset is effective. + * - `type` - either `forward` for skippnig time like + * the Spring transition to DST. + * - `before` - the timezone offset before the transition. + * For example, the UTC-0400 offset will return -240. + * To match how times are displayed in ISO 8601 format, + * the sign of this value is reversed from the return + * value of `Date.getTimezoneOffset`. + * - `after` - the timezone offset after the transition. + * Examples and caveats are the same as `before`. + + */ +export declare function getTzOffsetTransitions(year: number): { + date: Date; + type: string; + before: number; + after: number; +}[]; +export {}; diff --git a/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.ts b/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.ts new file mode 100644 index 000000000..5143d59df --- /dev/null +++ b/node_modules/date-fns/_lib/test/tzOffsetTransitions.d.ts @@ -0,0 +1,48 @@ +interface PartialInterval { + start: Date | undefined; + end: Date | undefined; +} +/** + * Fetch the start and end of DST for the local time + * zone in a given year. + * We'll assume that DST start & end are the first + * forward and the last back transitions in the year, + * except transitions in Jan or Dec which are likely + * to be permanent TZ changes rather than DST changes. + * @param year + * @returns object with two Date-valued properties: + * - `start` is the first instant of DST in the Spring, + * or undefined if there's no DST in this year. + * - `end` is the first instant of standard time + * in the Fall, or undefined if there's no DST in + * this year. + */ +export declare function getDstTransitions(year: number): PartialInterval; +/** + * Fetch all timezone-offset transitions in a given + * year. These are almost always DST transitions, + * but sometimes there are non-DST changes, e.g. + * when a country changes its time zone + * @param year + * @returns array of objects, each with the following + * propeerties: + * - `date` - a `Date` representing the first instant + * when the new timezone offset is effective. + * - `type` - either `forward` for skippnig time like + * the Spring transition to DST. + * - `before` - the timezone offset before the transition. + * For example, the UTC-0400 offset will return -240. + * To match how times are displayed in ISO 8601 format, + * the sign of this value is reversed from the return + * value of `Date.getTimezoneOffset`. + * - `after` - the timezone offset after the transition. + * Examples and caveats are the same as `before`. + + */ +export declare function getTzOffsetTransitions(year: number): { + date: Date; + type: string; + before: number; + after: number; +}[]; +export {}; diff --git a/node_modules/date-fns/_lib/test/tzOffsetTransitions.js b/node_modules/date-fns/_lib/test/tzOffsetTransitions.js new file mode 100644 index 000000000..236abeb6b --- /dev/null +++ b/node_modules/date-fns/_lib/test/tzOffsetTransitions.js @@ -0,0 +1,138 @@ +/** + * Fetch the start and end of DST for the local time + * zone in a given year. + * We'll assume that DST start & end are the first + * forward and the last back transitions in the year, + * except transitions in Jan or Dec which are likely + * to be permanent TZ changes rather than DST changes. + * @param year + * @returns object with two Date-valued properties: + * - `start` is the first instant of DST in the Spring, + * or undefined if there's no DST in this year. + * - `end` is the first instant of standard time + * in the Fall, or undefined if there's no DST in + * this year. + */ +export function getDstTransitions(year) { + const result = { + start: undefined, + end: undefined, + }; + const transitions = getTzOffsetTransitions(year); + for (let i = 0; i < transitions.length; i++) { + const t = transitions[i]; + const month = t.date.getMonth(); + if (month > 0 && month < 11) { + if (t.type === "forward") result.start = t.date; + if (t.type === "back" && !result.end) result.end = t.date; + } + } + return result; +} + +function isValidDate(date) { + return date instanceof Date && !isNaN(date.getTime()); +} + +const MINUTE = 1000 * 60; + +function firstTickInLocalDay(date) { + const dateNumber = date.getDate(); + let prev = date; + let d = date; + do { + prev = d; + d = new Date(d.getTime() - MINUTE); + } while (dateNumber === d.getDate()); + return prev; +} + +function fiveMinutesLater(date) { + return new Date(date.getTime() + 5 * MINUTE); +} + +function oneDayLater(date) { + const d = new Date(date); + d.setDate(d.getDate() + 1); + return firstTickInLocalDay(d); +} + +function previousTickTimezoneOffset(date) { + const d = new Date(date.getTime() - 1); + return d.getTimezoneOffset(); +} + +/** + * Fetch all timezone-offset transitions in a given + * year. These are almost always DST transitions, + * but sometimes there are non-DST changes, e.g. + * when a country changes its time zone + * @param year + * @returns array of objects, each with the following + * propeerties: + * - `date` - a `Date` representing the first instant + * when the new timezone offset is effective. + * - `type` - either `forward` for skippnig time like + * the Spring transition to DST. + * - `before` - the timezone offset before the transition. + * For example, the UTC-0400 offset will return -240. + * To match how times are displayed in ISO 8601 format, + * the sign of this value is reversed from the return + * value of `Date.getTimezoneOffset`. + * - `after` - the timezone offset after the transition. + * Examples and caveats are the same as `before`. + + */ +export function getTzOffsetTransitions(year) { + // start at the end of the previous day + let date = firstTickInLocalDay(new Date(year, 0, 1)); + if (!isValidDate(date)) { + throw new Error("Invalid Date"); + } + let baseTzOffset = previousTickTimezoneOffset(date); + const transitions = []; + do { + let tzOffset = date.getTimezoneOffset(); + if (baseTzOffset !== tzOffset) { + if (tzOffset !== previousTickTimezoneOffset(date)) { + // Transition is the first tick of a local day. + transitions.push({ + date: date, + type: tzOffset < baseTzOffset ? "forward" : "back", + before: -baseTzOffset, + after: -tzOffset, + }); + baseTzOffset = tzOffset; + } else { + // transition was not at the start of the day, so it must have happened + // yesterday. Back up one day and find the minute where it happened. + let transitionDate = new Date(date.getTime()); + transitionDate.setDate(transitionDate.getDate() - 1); + + // Iterate through each 5 mins of the day until we find a transition. + // TODO: this could be optimized to search hours then minutes or by or + // by using a binary search. + const dayNumber = transitionDate.getDate(); + while ( + isValidDate(transitionDate) && + transitionDate.getDate() === dayNumber + ) { + tzOffset = transitionDate.getTimezoneOffset(); + if (baseTzOffset !== tzOffset) { + transitions.push({ + date: transitionDate, + type: tzOffset < baseTzOffset ? "forward" : "back", + before: -baseTzOffset, + after: -tzOffset, + }); + baseTzOffset = tzOffset; + break; // assuming only 1 transition per day + } + transitionDate = fiveMinutesLater(transitionDate); + } + } + } + date = oneDayLater(date); + } while (date.getFullYear() === year); + return transitions; +} diff --git a/node_modules/date-fns/add.cjs b/node_modules/date-fns/add.cjs new file mode 100644 index 000000000..62403d9c7 --- /dev/null +++ b/node_modules/date-fns/add.cjs @@ -0,0 +1,104 @@ +"use strict"; +exports.add = add; +var _index = require("./addDays.cjs"); +var _index2 = require("./addMonths.cjs"); +var _index3 = require("./constructFrom.cjs"); +var _index4 = require("./toDate.cjs"); + +/** + * The {@link add} function options. + */ + +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + * + * @example + * // Using Temporal: + * // Add the following duration to 1 September 2014, 10:19:50 + * Temporal.PlainDateTime.from("2014-09-01T10:19:50") + * .add({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * .toString(); + * //=> "2017-06-15T15:29:20" + */ +function add(date, duration, options) { + const { + years = 0, + months = 0, + weeks = 0, + days = 0, + hours = 0, + minutes = 0, + seconds = 0, + } = duration; + + // Add years and months + const _date = (0, _index4.toDate)(date, options?.in); + const dateWithMonths = + months || years + ? (0, _index2.addMonths)(_date, months + years * 12) + : _date; + + // Add weeks and days + const dateWithDays = + days || weeks + ? (0, _index.addDays)(dateWithMonths, days + weeks * 7) + : dateWithMonths; + + // Add days, hours, minutes, and seconds + const minutesToAdd = minutes + hours * 60; + const secondsToAdd = seconds + minutesToAdd * 60; + const msToAdd = secondsToAdd * 1000; + + return (0, _index3.constructFrom)( + options?.in || date, + +dateWithDays + msToAdd, + ); +} diff --git a/node_modules/date-fns/add.d.cts b/node_modules/date-fns/add.d.cts new file mode 100644 index 000000000..8ac5a8230 --- /dev/null +++ b/node_modules/date-fns/add.d.cts @@ -0,0 +1,73 @@ +import type { ContextOptions, DateArg, Duration } from "./types.ts"; +/** + * The {@link add} function options. + */ +export interface AddOptions + extends ContextOptions {} +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + * + * @example + * // Using Temporal: + * // Add the following duration to 1 September 2014, 10:19:50 + * Temporal.PlainDateTime.from("2014-09-01T10:19:50") + * .add({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * .toString(); + * //=> "2017-06-15T15:29:20" + */ +export declare function add< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + duration: Duration, + options?: AddOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/add.d.ts b/node_modules/date-fns/add.d.ts new file mode 100644 index 000000000..8ac5a8230 --- /dev/null +++ b/node_modules/date-fns/add.d.ts @@ -0,0 +1,73 @@ +import type { ContextOptions, DateArg, Duration } from "./types.ts"; +/** + * The {@link add} function options. + */ +export interface AddOptions + extends ContextOptions {} +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + * + * @example + * // Using Temporal: + * // Add the following duration to 1 September 2014, 10:19:50 + * Temporal.PlainDateTime.from("2014-09-01T10:19:50") + * .add({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * .toString(); + * //=> "2017-06-15T15:29:20" + */ +export declare function add< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + duration: Duration, + options?: AddOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/add.js b/node_modules/date-fns/add.js new file mode 100644 index 000000000..b68d1a67a --- /dev/null +++ b/node_modules/date-fns/add.js @@ -0,0 +1,98 @@ +import { addDays } from "./addDays.js"; +import { addMonths } from "./addMonths.js"; +import { constructFrom } from "./constructFrom.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link add} function options. + */ + +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + * + * @example + * // Using Temporal: + * // Add the following duration to 1 September 2014, 10:19:50 + * Temporal.PlainDateTime.from("2014-09-01T10:19:50") + * .add({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * .toString(); + * //=> "2017-06-15T15:29:20" + */ +export function add(date, duration, options) { + const { + years = 0, + months = 0, + weeks = 0, + days = 0, + hours = 0, + minutes = 0, + seconds = 0, + } = duration; + + // Add years and months + const _date = toDate(date, options?.in); + const dateWithMonths = + months || years ? addMonths(_date, months + years * 12) : _date; + + // Add weeks and days + const dateWithDays = + days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths; + + // Add days, hours, minutes, and seconds + const minutesToAdd = minutes + hours * 60; + const secondsToAdd = seconds + minutesToAdd * 60; + const msToAdd = secondsToAdd * 1000; + + return constructFrom(options?.in || date, +dateWithDays + msToAdd); +} + +// Fallback for modularized imports: +export default add; diff --git a/node_modules/date-fns/addBusinessDays.cjs b/node_modules/date-fns/addBusinessDays.cjs new file mode 100644 index 000000000..db7a40b6f --- /dev/null +++ b/node_modules/date-fns/addBusinessDays.cjs @@ -0,0 +1,82 @@ +"use strict"; +exports.addBusinessDays = addBusinessDays; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./isSaturday.cjs"); +var _index3 = require("./isSunday.cjs"); +var _index4 = require("./isWeekend.cjs"); +var _index5 = require("./toDate.cjs"); + +/** + * The {@link addBusinessDays} function options. + */ + +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * **You don't need date-fns\***: + * + * Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of business days to be added. + * @param options - An object with options + * + * @returns The new date with the business days added + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +function addBusinessDays(date, amount, options) { + const _date = (0, _index5.toDate)(date, options?.in); + const startedOnWeekend = (0, _index4.isWeekend)(_date, options); + + if (isNaN(amount)) return (0, _index.constructFrom)(options?.in, NaN); + + const hours = _date.getHours(); + const sign = amount < 0 ? -1 : 1; + const fullWeeks = Math.trunc(amount / 5); + + _date.setDate(_date.getDate() + fullWeeks * 7); + + // Get remaining days not part of a full week + let restDays = Math.abs(amount % 5); + + // Loops over remaining days + while (restDays > 0) { + _date.setDate(_date.getDate() + sign); + if (!(0, _index4.isWeekend)(_date, options)) restDays -= 1; + } + + // If the date is a weekend day and we reduce a dividable of + // 5 from it, we land on a weekend date. + // To counter this, we add days accordingly to land on the next business day + if ( + startedOnWeekend && + (0, _index4.isWeekend)(_date, options) && + amount !== 0 + ) { + // If we're reducing days, we want to add days until we land on a weekday + // If we're adding days we want to reduce days until we land on a weekday + if ((0, _index2.isSaturday)(_date, options)) + _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1)); + if ((0, _index3.isSunday)(_date, options)) + _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2)); + } + + // Restore hours to avoid DST lag + _date.setHours(hours); + + return _date; +} diff --git a/node_modules/date-fns/addBusinessDays.d.cts b/node_modules/date-fns/addBusinessDays.d.cts new file mode 100644 index 000000000..b9fa76d58 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays.d.cts @@ -0,0 +1,42 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addBusinessDays} function options. + */ +export interface AddBusinessDaysOptions + extends ContextOptions {} +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * **You don't need date-fns\***: + * + * Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of business days to be added. + * @param options - An object with options + * + * @returns The new date with the business days added + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +export declare function addBusinessDays< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddBusinessDaysOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addBusinessDays.d.ts b/node_modules/date-fns/addBusinessDays.d.ts new file mode 100644 index 000000000..b9fa76d58 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays.d.ts @@ -0,0 +1,42 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addBusinessDays} function options. + */ +export interface AddBusinessDaysOptions + extends ContextOptions {} +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * **You don't need date-fns\***: + * + * Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of business days to be added. + * @param options - An object with options + * + * @returns The new date with the business days added + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +export declare function addBusinessDays< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddBusinessDaysOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addBusinessDays.js b/node_modules/date-fns/addBusinessDays.js new file mode 100644 index 000000000..14a91a569 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays.js @@ -0,0 +1,79 @@ +import { constructFrom } from "./constructFrom.js"; +import { isSaturday } from "./isSaturday.js"; +import { isSunday } from "./isSunday.js"; +import { isWeekend } from "./isWeekend.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link addBusinessDays} function options. + */ + +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * **You don't need date-fns\***: + * + * Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of business days to be added. + * @param options - An object with options + * + * @returns The new date with the business days added + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +export function addBusinessDays(date, amount, options) { + const _date = toDate(date, options?.in); + const startedOnWeekend = isWeekend(_date, options); + + if (isNaN(amount)) return constructFrom(options?.in, NaN); + + const hours = _date.getHours(); + const sign = amount < 0 ? -1 : 1; + const fullWeeks = Math.trunc(amount / 5); + + _date.setDate(_date.getDate() + fullWeeks * 7); + + // Get remaining days not part of a full week + let restDays = Math.abs(amount % 5); + + // Loops over remaining days + while (restDays > 0) { + _date.setDate(_date.getDate() + sign); + if (!isWeekend(_date, options)) restDays -= 1; + } + + // If the date is a weekend day and we reduce a dividable of + // 5 from it, we land on a weekend date. + // To counter this, we add days accordingly to land on the next business day + if (startedOnWeekend && isWeekend(_date, options) && amount !== 0) { + // If we're reducing days, we want to add days until we land on a weekday + // If we're adding days we want to reduce days until we land on a weekday + if (isSaturday(_date, options)) + _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1)); + if (isSunday(_date, options)) + _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2)); + } + + // Restore hours to avoid DST lag + _date.setHours(hours); + + return _date; +} + +// Fallback for modularized imports: +export default addBusinessDays; diff --git a/node_modules/date-fns/addDays.cjs b/node_modules/date-fns/addDays.cjs new file mode 100644 index 000000000..6357bb3fb --- /dev/null +++ b/node_modules/date-fns/addDays.cjs @@ -0,0 +1,60 @@ +"use strict"; +exports.addDays = addDays; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link addDays} function options. + */ + +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of days to be added. + * @param options - An object with options + * + * @returns The new date with the days added + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + * + * @example + * // Using Temporal: + * // Add 10 days to 1 September 2014: + * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); + * //=> "2014-09-11" + */ +function addDays(date, amount, options) { + const _date = (0, _index2.toDate)(date, options?.in); + if (isNaN(amount)) return (0, _index.constructFrom)(options?.in || date, NaN); + + // If 0 days, no-op to avoid changing times in the hour before end of DST + if (!amount) return _date; + + _date.setDate(_date.getDate() + amount); + return _date; +} diff --git a/node_modules/date-fns/addDays.d.cts b/node_modules/date-fns/addDays.d.cts new file mode 100644 index 000000000..10e85788f --- /dev/null +++ b/node_modules/date-fns/addDays.d.cts @@ -0,0 +1,55 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addDays} function options. + */ +export interface AddDaysOptions + extends ContextOptions {} +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of days to be added. + * @param options - An object with options + * + * @returns The new date with the days added + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + * + * @example + * // Using Temporal: + * // Add 10 days to 1 September 2014: + * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); + * //=> "2014-09-11" + */ +export declare function addDays< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddDaysOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addDays.d.ts b/node_modules/date-fns/addDays.d.ts new file mode 100644 index 000000000..10e85788f --- /dev/null +++ b/node_modules/date-fns/addDays.d.ts @@ -0,0 +1,55 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addDays} function options. + */ +export interface AddDaysOptions + extends ContextOptions {} +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of days to be added. + * @param options - An object with options + * + * @returns The new date with the days added + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + * + * @example + * // Using Temporal: + * // Add 10 days to 1 September 2014: + * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); + * //=> "2014-09-11" + */ +export declare function addDays< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddDaysOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addDays.js b/node_modules/date-fns/addDays.js new file mode 100644 index 000000000..af1a69c50 --- /dev/null +++ b/node_modules/date-fns/addDays.js @@ -0,0 +1,61 @@ +import { constructFrom } from "./constructFrom.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link addDays} function options. + */ + +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * **You don't need date-fns\***: + * + * Temporal has a built-in `add` method on all its classes: + * + * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) + * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) + * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) + * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) + * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) + * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) + * + * \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of days to be added. + * @param options - An object with options + * + * @returns The new date with the days added + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + * + * @example + * // Using Temporal: + * // Add 10 days to 1 September 2014: + * Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); + * //=> "2014-09-11" + */ +export function addDays(date, amount, options) { + const _date = toDate(date, options?.in); + if (isNaN(amount)) return constructFrom(options?.in || date, NaN); + + // If 0 days, no-op to avoid changing times in the hour before end of DST + if (!amount) return _date; + + _date.setDate(_date.getDate() + amount); + return _date; +} + +// Fallback for modularized imports: +export default addDays; diff --git a/node_modules/date-fns/addHours.cjs b/node_modules/date-fns/addHours.cjs new file mode 100644 index 000000000..76b68ea9e --- /dev/null +++ b/node_modules/date-fns/addHours.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.addHours = addHours; +var _index = require("./addMilliseconds.cjs"); +var _index2 = require("./constants.cjs"); + +/** + * The {@link addHours} function options. + */ + +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of hours to be added + * @param options - An object with options + * + * @returns The new date with the hours added + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ +function addHours(date, amount, options) { + return (0, _index.addMilliseconds)( + date, + amount * _index2.millisecondsInHour, + options, + ); +} diff --git a/node_modules/date-fns/addHours.d.cts b/node_modules/date-fns/addHours.d.cts new file mode 100644 index 000000000..66dadb1d4 --- /dev/null +++ b/node_modules/date-fns/addHours.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addHours} function options. + */ +export interface AddHoursOptions + extends ContextOptions {} +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of hours to be added + * @param options - An object with options + * + * @returns The new date with the hours added + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ +export declare function addHours< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddHoursOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addHours.d.ts b/node_modules/date-fns/addHours.d.ts new file mode 100644 index 000000000..66dadb1d4 --- /dev/null +++ b/node_modules/date-fns/addHours.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addHours} function options. + */ +export interface AddHoursOptions + extends ContextOptions {} +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of hours to be added + * @param options - An object with options + * + * @returns The new date with the hours added + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ +export declare function addHours< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddHoursOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addHours.js b/node_modules/date-fns/addHours.js new file mode 100644 index 000000000..9d12ae790 --- /dev/null +++ b/node_modules/date-fns/addHours.js @@ -0,0 +1,35 @@ +import { addMilliseconds } from "./addMilliseconds.js"; +import { millisecondsInHour } from "./constants.js"; + +/** + * The {@link addHours} function options. + */ + +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of hours to be added + * @param options - An object with options + * + * @returns The new date with the hours added + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ +export function addHours(date, amount, options) { + return addMilliseconds(date, amount * millisecondsInHour, options); +} + +// Fallback for modularized imports: +export default addHours; diff --git a/node_modules/date-fns/addISOWeekYears.cjs b/node_modules/date-fns/addISOWeekYears.cjs new file mode 100644 index 000000000..e8d7c4ad7 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.addISOWeekYears = addISOWeekYears; +var _index = require("./getISOWeekYear.cjs"); +var _index2 = require("./setISOWeekYear.cjs"); + +/** + * The {@link addISOWeekYears} function options. + */ + +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of ISO week-numbering years to be added. + * @param options - An object with options + * + * @returns The new date with the ISO week-numbering years added + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ +function addISOWeekYears(date, amount, options) { + return (0, _index2.setISOWeekYear)( + date, + (0, _index.getISOWeekYear)(date, options) + amount, + options, + ); +} diff --git a/node_modules/date-fns/addISOWeekYears.d.cts b/node_modules/date-fns/addISOWeekYears.d.cts new file mode 100644 index 000000000..fdbc6f3d4 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears.d.cts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addISOWeekYears} function options. + */ +export interface AddISOWeekYearsOptions + extends ContextOptions {} +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of ISO week-numbering years to be added. + * @param options - An object with options + * + * @returns The new date with the ISO week-numbering years added + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ +export declare function addISOWeekYears< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddISOWeekYearsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addISOWeekYears.d.ts b/node_modules/date-fns/addISOWeekYears.d.ts new file mode 100644 index 000000000..fdbc6f3d4 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears.d.ts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addISOWeekYears} function options. + */ +export interface AddISOWeekYearsOptions + extends ContextOptions {} +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of ISO week-numbering years to be added. + * @param options - An object with options + * + * @returns The new date with the ISO week-numbering years added + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ +export declare function addISOWeekYears< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddISOWeekYearsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addISOWeekYears.js b/node_modules/date-fns/addISOWeekYears.js new file mode 100644 index 000000000..53f1f8435 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears.js @@ -0,0 +1,36 @@ +import { getISOWeekYear } from "./getISOWeekYear.js"; +import { setISOWeekYear } from "./setISOWeekYear.js"; + +/** + * The {@link addISOWeekYears} function options. + */ + +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The date to be changed + * @param amount - The amount of ISO week-numbering years to be added. + * @param options - An object with options + * + * @returns The new date with the ISO week-numbering years added + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ +export function addISOWeekYears(date, amount, options) { + return setISOWeekYear(date, getISOWeekYear(date, options) + amount, options); +} + +// Fallback for modularized imports: +export default addISOWeekYears; diff --git a/node_modules/date-fns/addMilliseconds.cjs b/node_modules/date-fns/addMilliseconds.cjs new file mode 100644 index 000000000..a66d88052 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.addMilliseconds = addMilliseconds; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link addMilliseconds} function options. + */ + +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of milliseconds to be added. + * @param options - The options object + * + * @returns The new date with the milliseconds added + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +function addMilliseconds(date, amount, options) { + return (0, _index.constructFrom)( + options?.in || date, + +(0, _index2.toDate)(date) + amount, + ); +} diff --git a/node_modules/date-fns/addMilliseconds.d.cts b/node_modules/date-fns/addMilliseconds.d.cts new file mode 100644 index 000000000..2d4ce9f01 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMilliseconds} function options. + */ +export interface AddMillisecondsOptions + extends ContextOptions {} +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of milliseconds to be added. + * @param options - The options object + * + * @returns The new date with the milliseconds added + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +export declare function addMilliseconds< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMillisecondsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMilliseconds.d.ts b/node_modules/date-fns/addMilliseconds.d.ts new file mode 100644 index 000000000..2d4ce9f01 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMilliseconds} function options. + */ +export interface AddMillisecondsOptions + extends ContextOptions {} +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of milliseconds to be added. + * @param options - The options object + * + * @returns The new date with the milliseconds added + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +export declare function addMilliseconds< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMillisecondsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMilliseconds.js b/node_modules/date-fns/addMilliseconds.js new file mode 100644 index 000000000..69717429c --- /dev/null +++ b/node_modules/date-fns/addMilliseconds.js @@ -0,0 +1,35 @@ +import { constructFrom } from "./constructFrom.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link addMilliseconds} function options. + */ + +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of milliseconds to be added. + * @param options - The options object + * + * @returns The new date with the milliseconds added + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +export function addMilliseconds(date, amount, options) { + return constructFrom(options?.in || date, +toDate(date) + amount); +} + +// Fallback for modularized imports: +export default addMilliseconds; diff --git a/node_modules/date-fns/addMinutes.cjs b/node_modules/date-fns/addMinutes.cjs new file mode 100644 index 000000000..1f8b29d36 --- /dev/null +++ b/node_modules/date-fns/addMinutes.cjs @@ -0,0 +1,36 @@ +"use strict"; +exports.addMinutes = addMinutes; +var _index = require("./constants.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link addMinutes} function options. + */ + +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of minutes to be added. + * @param options - An object with options + * + * @returns The new date with the minutes added + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ +function addMinutes(date, amount, options) { + const _date = (0, _index2.toDate)(date, options?.in); + _date.setTime(_date.getTime() + amount * _index.millisecondsInMinute); + return _date; +} diff --git a/node_modules/date-fns/addMinutes.d.cts b/node_modules/date-fns/addMinutes.d.cts new file mode 100644 index 000000000..7fb432ddc --- /dev/null +++ b/node_modules/date-fns/addMinutes.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMinutes} function options. + */ +export interface AddMinutesOptions + extends ContextOptions {} +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of minutes to be added. + * @param options - An object with options + * + * @returns The new date with the minutes added + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ +export declare function addMinutes< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMinutesOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMinutes.d.ts b/node_modules/date-fns/addMinutes.d.ts new file mode 100644 index 000000000..7fb432ddc --- /dev/null +++ b/node_modules/date-fns/addMinutes.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMinutes} function options. + */ +export interface AddMinutesOptions + extends ContextOptions {} +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of minutes to be added. + * @param options - An object with options + * + * @returns The new date with the minutes added + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ +export declare function addMinutes< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMinutesOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMinutes.js b/node_modules/date-fns/addMinutes.js new file mode 100644 index 000000000..3e21e9c92 --- /dev/null +++ b/node_modules/date-fns/addMinutes.js @@ -0,0 +1,37 @@ +import { millisecondsInMinute } from "./constants.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link addMinutes} function options. + */ + +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of minutes to be added. + * @param options - An object with options + * + * @returns The new date with the minutes added + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ +export function addMinutes(date, amount, options) { + const _date = toDate(date, options?.in); + _date.setTime(_date.getTime() + amount * millisecondsInMinute); + return _date; +} + +// Fallback for modularized imports: +export default addMinutes; diff --git a/node_modules/date-fns/addMonths.cjs b/node_modules/date-fns/addMonths.cjs new file mode 100644 index 000000000..f8511c0a8 --- /dev/null +++ b/node_modules/date-fns/addMonths.cjs @@ -0,0 +1,78 @@ +"use strict"; +exports.addMonths = addMonths; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link addMonths} function options. + */ + +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of months to be added. + * @param options - The options object + * + * @returns The new date with the months added + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + * + * // Add one month to 30 January 2023: + * const result = addMonths(new Date(2023, 0, 30), 1) + * //=> Tue Feb 28 2023 00:00:00 + */ +function addMonths(date, amount, options) { + const _date = (0, _index2.toDate)(date, options?.in); + if (isNaN(amount)) return (0, _index.constructFrom)(options?.in || date, NaN); + if (!amount) { + // If 0 months, no-op to avoid changing times in the hour before end of DST + return _date; + } + const dayOfMonth = _date.getDate(); + + // The JS Date object supports date math by accepting out-of-bounds values for + // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and + // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we + // want except that dates will wrap around the end of a month, meaning that + // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So + // we'll default to the end of the desired month by adding 1 to the desired + // month and using a date of 0 to back up one day to the end of the desired + // month. + const endOfDesiredMonth = (0, _index.constructFrom)( + options?.in || date, + _date.getTime(), + ); + endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); + const daysInMonth = endOfDesiredMonth.getDate(); + if (dayOfMonth >= daysInMonth) { + // If we're already at the end of the month, then this is the correct date + // and we're done. + return endOfDesiredMonth; + } else { + // Otherwise, we now know that setting the original day-of-month value won't + // cause an overflow, so set the desired day-of-month. Note that we can't + // just set the date of `endOfDesiredMonth` because that object may have had + // its time changed in the unusual case where where a DST transition was on + // the last day of the month and its local time was in the hour skipped or + // repeated next to a DST transition. So we use `date` instead which is + // guaranteed to still have the original time. + _date.setFullYear( + endOfDesiredMonth.getFullYear(), + endOfDesiredMonth.getMonth(), + dayOfMonth, + ); + return _date; + } +} diff --git a/node_modules/date-fns/addMonths.d.cts b/node_modules/date-fns/addMonths.d.cts new file mode 100644 index 000000000..c9fa40a98 --- /dev/null +++ b/node_modules/date-fns/addMonths.d.cts @@ -0,0 +1,40 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMonths} function options. + */ +export interface AddMonthsOptions + extends ContextOptions {} +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of months to be added. + * @param options - The options object + * + * @returns The new date with the months added + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + * + * // Add one month to 30 January 2023: + * const result = addMonths(new Date(2023, 0, 30), 1) + * //=> Tue Feb 28 2023 00:00:00 + */ +export declare function addMonths< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMonthsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMonths.d.ts b/node_modules/date-fns/addMonths.d.ts new file mode 100644 index 000000000..c9fa40a98 --- /dev/null +++ b/node_modules/date-fns/addMonths.d.ts @@ -0,0 +1,40 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addMonths} function options. + */ +export interface AddMonthsOptions + extends ContextOptions {} +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of months to be added. + * @param options - The options object + * + * @returns The new date with the months added + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + * + * // Add one month to 30 January 2023: + * const result = addMonths(new Date(2023, 0, 30), 1) + * //=> Tue Feb 28 2023 00:00:00 + */ +export declare function addMonths< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddMonthsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addMonths.js b/node_modules/date-fns/addMonths.js new file mode 100644 index 000000000..a4eabae2e --- /dev/null +++ b/node_modules/date-fns/addMonths.js @@ -0,0 +1,76 @@ +import { constructFrom } from "./constructFrom.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link addMonths} function options. + */ + +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of months to be added. + * @param options - The options object + * + * @returns The new date with the months added + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + * + * // Add one month to 30 January 2023: + * const result = addMonths(new Date(2023, 0, 30), 1) + * //=> Tue Feb 28 2023 00:00:00 + */ +export function addMonths(date, amount, options) { + const _date = toDate(date, options?.in); + if (isNaN(amount)) return constructFrom(options?.in || date, NaN); + if (!amount) { + // If 0 months, no-op to avoid changing times in the hour before end of DST + return _date; + } + const dayOfMonth = _date.getDate(); + + // The JS Date object supports date math by accepting out-of-bounds values for + // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and + // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we + // want except that dates will wrap around the end of a month, meaning that + // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So + // we'll default to the end of the desired month by adding 1 to the desired + // month and using a date of 0 to back up one day to the end of the desired + // month. + const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime()); + endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); + const daysInMonth = endOfDesiredMonth.getDate(); + if (dayOfMonth >= daysInMonth) { + // If we're already at the end of the month, then this is the correct date + // and we're done. + return endOfDesiredMonth; + } else { + // Otherwise, we now know that setting the original day-of-month value won't + // cause an overflow, so set the desired day-of-month. Note that we can't + // just set the date of `endOfDesiredMonth` because that object may have had + // its time changed in the unusual case where where a DST transition was on + // the last day of the month and its local time was in the hour skipped or + // repeated next to a DST transition. So we use `date` instead which is + // guaranteed to still have the original time. + _date.setFullYear( + endOfDesiredMonth.getFullYear(), + endOfDesiredMonth.getMonth(), + dayOfMonth, + ); + return _date; + } +} + +// Fallback for modularized imports: +export default addMonths; diff --git a/node_modules/date-fns/addQuarters.cjs b/node_modules/date-fns/addQuarters.cjs new file mode 100644 index 000000000..76ba510b8 --- /dev/null +++ b/node_modules/date-fns/addQuarters.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.addQuarters = addQuarters; +var _index = require("./addMonths.cjs"); + +/** + * The {@link addQuarters} function options. + */ + +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of quarters to be added. + * @param options - An object with options + * + * @returns The new date with the quarters added + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=; Mon Dec 01 2014 00:00:00 + */ +function addQuarters(date, amount, options) { + return (0, _index.addMonths)(date, amount * 3, options); +} diff --git a/node_modules/date-fns/addQuarters.d.cts b/node_modules/date-fns/addQuarters.d.cts new file mode 100644 index 000000000..1b1812009 --- /dev/null +++ b/node_modules/date-fns/addQuarters.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addQuarters} function options. + */ +export interface AddQuartersOptions + extends ContextOptions {} +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of quarters to be added. + * @param options - An object with options + * + * @returns The new date with the quarters added + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=; Mon Dec 01 2014 00:00:00 + */ +export declare function addQuarters< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddQuartersOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addQuarters.d.ts b/node_modules/date-fns/addQuarters.d.ts new file mode 100644 index 000000000..1b1812009 --- /dev/null +++ b/node_modules/date-fns/addQuarters.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addQuarters} function options. + */ +export interface AddQuartersOptions + extends ContextOptions {} +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of quarters to be added. + * @param options - An object with options + * + * @returns The new date with the quarters added + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=; Mon Dec 01 2014 00:00:00 + */ +export declare function addQuarters< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddQuartersOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addQuarters.js b/node_modules/date-fns/addQuarters.js new file mode 100644 index 000000000..e6fe8b0b9 --- /dev/null +++ b/node_modules/date-fns/addQuarters.js @@ -0,0 +1,34 @@ +import { addMonths } from "./addMonths.js"; + +/** + * The {@link addQuarters} function options. + */ + +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of quarters to be added. + * @param options - An object with options + * + * @returns The new date with the quarters added + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=; Mon Dec 01 2014 00:00:00 + */ +export function addQuarters(date, amount, options) { + return addMonths(date, amount * 3, options); +} + +// Fallback for modularized imports: +export default addQuarters; diff --git a/node_modules/date-fns/addSeconds.cjs b/node_modules/date-fns/addSeconds.cjs new file mode 100644 index 000000000..26c40d1b8 --- /dev/null +++ b/node_modules/date-fns/addSeconds.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.addSeconds = addSeconds; +var _index = require("./addMilliseconds.cjs"); + +/** + * The {@link addSeconds} function options. + */ + +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +function addSeconds(date, amount, options) { + return (0, _index.addMilliseconds)(date, amount * 1000, options); +} diff --git a/node_modules/date-fns/addSeconds.d.cts b/node_modules/date-fns/addSeconds.d.cts new file mode 100644 index 000000000..eabbb942f --- /dev/null +++ b/node_modules/date-fns/addSeconds.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addSeconds} function options. + */ +export interface AddSecondsOptions + extends ContextOptions {} +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +export declare function addSeconds< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddSecondsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addSeconds.d.ts b/node_modules/date-fns/addSeconds.d.ts new file mode 100644 index 000000000..eabbb942f --- /dev/null +++ b/node_modules/date-fns/addSeconds.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addSeconds} function options. + */ +export interface AddSecondsOptions + extends ContextOptions {} +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +export declare function addSeconds< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddSecondsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addSeconds.js b/node_modules/date-fns/addSeconds.js new file mode 100644 index 000000000..b97049f2a --- /dev/null +++ b/node_modules/date-fns/addSeconds.js @@ -0,0 +1,34 @@ +import { addMilliseconds } from "./addMilliseconds.js"; + +/** + * The {@link addSeconds} function options. + */ + +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of seconds to be added. + * @param options - An object with options + * + * @returns The new date with the seconds added + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +export function addSeconds(date, amount, options) { + return addMilliseconds(date, amount * 1000, options); +} + +// Fallback for modularized imports: +export default addSeconds; diff --git a/node_modules/date-fns/addWeeks.cjs b/node_modules/date-fns/addWeeks.cjs new file mode 100644 index 000000000..b8b2d0a1f --- /dev/null +++ b/node_modules/date-fns/addWeeks.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.addWeeks = addWeeks; +var _index = require("./addDays.cjs"); + +/** + * The {@link addWeeks} function options. + */ + +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of weeks to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of weeks to be added. + * @param options - An object with options + * + * @returns The new date with the weeks added + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +function addWeeks(date, amount, options) { + return (0, _index.addDays)(date, amount * 7, options); +} diff --git a/node_modules/date-fns/addWeeks.d.cts b/node_modules/date-fns/addWeeks.d.cts new file mode 100644 index 000000000..9e01e7027 --- /dev/null +++ b/node_modules/date-fns/addWeeks.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addWeeks} function options. + */ +export interface AddWeeksOptions + extends ContextOptions {} +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of weeks to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of weeks to be added. + * @param options - An object with options + * + * @returns The new date with the weeks added + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +export declare function addWeeks< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddWeeksOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addWeeks.d.ts b/node_modules/date-fns/addWeeks.d.ts new file mode 100644 index 000000000..9e01e7027 --- /dev/null +++ b/node_modules/date-fns/addWeeks.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addWeeks} function options. + */ +export interface AddWeeksOptions + extends ContextOptions {} +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of weeks to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of weeks to be added. + * @param options - An object with options + * + * @returns The new date with the weeks added + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +export declare function addWeeks< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddWeeksOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addWeeks.js b/node_modules/date-fns/addWeeks.js new file mode 100644 index 000000000..15a35b2ab --- /dev/null +++ b/node_modules/date-fns/addWeeks.js @@ -0,0 +1,34 @@ +import { addDays } from "./addDays.js"; + +/** + * The {@link addWeeks} function options. + */ + +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of weeks to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The date to be changed + * @param amount - The amount of weeks to be added. + * @param options - An object with options + * + * @returns The new date with the weeks added + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +export function addWeeks(date, amount, options) { + return addDays(date, amount * 7, options); +} + +// Fallback for modularized imports: +export default addWeeks; diff --git a/node_modules/date-fns/addYears.cjs b/node_modules/date-fns/addYears.cjs new file mode 100644 index 000000000..054d68866 --- /dev/null +++ b/node_modules/date-fns/addYears.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.addYears = addYears; +var _index = require("./addMonths.cjs"); + +/** + * The {@link addYears} function options. + */ + +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type. + * + * @param date - The date to be changed + * @param amount - The amount of years to be added. + * @param options - The options + * + * @returns The new date with the years added + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +function addYears(date, amount, options) { + return (0, _index.addMonths)(date, amount * 12, options); +} diff --git a/node_modules/date-fns/addYears.d.cts b/node_modules/date-fns/addYears.d.cts new file mode 100644 index 000000000..798ea1ecc --- /dev/null +++ b/node_modules/date-fns/addYears.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addYears} function options. + */ +export interface AddYearsOptions + extends ContextOptions {} +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type. + * + * @param date - The date to be changed + * @param amount - The amount of years to be added. + * @param options - The options + * + * @returns The new date with the years added + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +export declare function addYears< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddYearsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addYears.d.ts b/node_modules/date-fns/addYears.d.ts new file mode 100644 index 000000000..798ea1ecc --- /dev/null +++ b/node_modules/date-fns/addYears.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link addYears} function options. + */ +export interface AddYearsOptions + extends ContextOptions {} +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type. + * + * @param date - The date to be changed + * @param amount - The amount of years to be added. + * @param options - The options + * + * @returns The new date with the years added + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +export declare function addYears< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + amount: number, + options?: AddYearsOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/addYears.js b/node_modules/date-fns/addYears.js new file mode 100644 index 000000000..055bf8252 --- /dev/null +++ b/node_modules/date-fns/addYears.js @@ -0,0 +1,34 @@ +import { addMonths } from "./addMonths.js"; + +/** + * The {@link addYears} function options. + */ + +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type. + * + * @param date - The date to be changed + * @param amount - The amount of years to be added. + * @param options - The options + * + * @returns The new date with the years added + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +export function addYears(date, amount, options) { + return addMonths(date, amount * 12, options); +} + +// Fallback for modularized imports: +export default addYears; diff --git a/node_modules/date-fns/areIntervalsOverlapping.cjs b/node_modules/date-fns/areIntervalsOverlapping.cjs new file mode 100644 index 000000000..c47838335 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping.cjs @@ -0,0 +1,70 @@ +"use strict"; +exports.areIntervalsOverlapping = areIntervalsOverlapping; +var _index = require("./toDate.cjs"); + +/** + * The {@link areIntervalsOverlapping} function options. + */ + +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - The object with options + * + * @returns Whether the time intervals are overlapping + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +function areIntervalsOverlapping(intervalLeft, intervalRight, options) { + const [leftStartTime, leftEndTime] = [ + +(0, _index.toDate)(intervalLeft.start, options?.in), + +(0, _index.toDate)(intervalLeft.end, options?.in), + ].sort((a, b) => a - b); + const [rightStartTime, rightEndTime] = [ + +(0, _index.toDate)(intervalRight.start, options?.in), + +(0, _index.toDate)(intervalRight.end, options?.in), + ].sort((a, b) => a - b); + + if (options?.inclusive) + return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} diff --git a/node_modules/date-fns/areIntervalsOverlapping.d.cts b/node_modules/date-fns/areIntervalsOverlapping.d.cts new file mode 100644 index 000000000..fa1a3b346 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping.d.cts @@ -0,0 +1,60 @@ +import type { ContextOptions, Interval } from "./types.ts"; +/** + * The {@link areIntervalsOverlapping} function options. + */ +export interface AreIntervalsOverlappingOptions extends ContextOptions { + /** Whether the comparison is inclusive or not */ + inclusive?: boolean; +} +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - The object with options + * + * @returns Whether the time intervals are overlapping + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +export declare function areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: AreIntervalsOverlappingOptions, +): boolean; diff --git a/node_modules/date-fns/areIntervalsOverlapping.d.ts b/node_modules/date-fns/areIntervalsOverlapping.d.ts new file mode 100644 index 000000000..fa1a3b346 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping.d.ts @@ -0,0 +1,60 @@ +import type { ContextOptions, Interval } from "./types.ts"; +/** + * The {@link areIntervalsOverlapping} function options. + */ +export interface AreIntervalsOverlappingOptions extends ContextOptions { + /** Whether the comparison is inclusive or not */ + inclusive?: boolean; +} +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - The object with options + * + * @returns Whether the time intervals are overlapping + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +export declare function areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: AreIntervalsOverlappingOptions, +): boolean; diff --git a/node_modules/date-fns/areIntervalsOverlapping.js b/node_modules/date-fns/areIntervalsOverlapping.js new file mode 100644 index 000000000..63ddae89c --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping.js @@ -0,0 +1,71 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link areIntervalsOverlapping} function options. + */ + +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - The object with options + * + * @returns Whether the time intervals are overlapping + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +export function areIntervalsOverlapping(intervalLeft, intervalRight, options) { + const [leftStartTime, leftEndTime] = [ + +toDate(intervalLeft.start, options?.in), + +toDate(intervalLeft.end, options?.in), + ].sort((a, b) => a - b); + const [rightStartTime, rightEndTime] = [ + +toDate(intervalRight.start, options?.in), + +toDate(intervalRight.end, options?.in), + ].sort((a, b) => a - b); + + if (options?.inclusive) + return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} + +// Fallback for modularized imports: +export default areIntervalsOverlapping; diff --git a/node_modules/date-fns/cdn.js b/node_modules/date-fns/cdn.js new file mode 100644 index 000000000..fa6532e54 --- /dev/null +++ b/node_modules/date-fns/cdn.js @@ -0,0 +1,13108 @@ +(() => { +function _createForOfIteratorHelper(r, e) {var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (!t) {if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {t && (r = t);var _n = 0,F = function F() {};return { s: F, n: function n() {return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] };}, e: function e(r) {throw r;}, f: F };}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a = !0,u = !1;return { s: function s() {t = t.call(r);}, n: function n() {var r = t.next();return a = r.done, r;}, e: function e(r) {u = !0, o = r;}, f: function f() {try {a || null == t.return || t.return();} finally {if (u) throw o;}} };}function _callSuper(t, o, e) {return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));}function _possibleConstructorReturn(t, e) {if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e) {if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct() {try {var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));} catch (t) {}return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {return !!t;})();}function _getPrototypeOf(t) {return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {return t.__proto__ || Object.getPrototypeOf(t);}, _getPrototypeOf(t);}function _inherits(t, e) {if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);}function _setPrototypeOf(t, e) {return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {return t.__proto__ = e, t;}, _setPrototypeOf(t, e);}function _classCallCheck(a, n) {if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");}function _defineProperties(e, r) {for (var t = 0; t < r.length; t++) {var o = r[t];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);}}function _createClass(e, r, t) {return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;}function _toConsumableArray(r) {return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(r) {if (Array.isArray(r)) return _arrayLikeToArray(r);}function _toArray(r) {return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();}function _iterableToArray(r) {if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region \0rolldown/runtime.js +var __defProp = Object.defineProperty; +var __exportAll = function __exportAll(all, no_symbols) { + var target = {}; + for (var name in all) __defProp(target, name, { + get: all[name], + enumerable: true + }); + if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); + return target; +}; +//#endregion +//#region dist/date-fns/constants.js +/** +* @constant +* @name daysInYear +* @summary Days in 1 year. +* +* @description +* How many days in a year. +* +* One years equals 365.2425 days according to the formula: +* +* > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. +* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +*/ +var daysInYear = 365.2425; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name millisecondsInWeek +* @summary Milliseconds in 1 week. +*/ +var millisecondsInWeek = 6048e5; +/** +* @constant +* @name millisecondsInDay +* @summary Milliseconds in 1 day. +*/ +var millisecondsInDay = 864e5; +/** +* @constant +* @name millisecondsInMinute +* @summary Milliseconds in 1 minute +*/ +var millisecondsInMinute = 6e4; +/** +* @constant +* @name millisecondsInHour +* @summary Milliseconds in 1 hour +*/ +var millisecondsInHour = 36e5; +/** +* @constant +* @name millisecondsInSecond +* @summary Milliseconds in 1 second +*/ +var millisecondsInSecond = 1e3; +/** +* @constant +* @name minutesInYear +* @summary Minutes in 1 year. +*/ +var minutesInYear = 525600; +/** +* @constant +* @name minutesInMonth +* @summary Minutes in 1 month. +*/ +var minutesInMonth = 43200; +/** +* @constant +* @name minutesInDay +* @summary Minutes in 1 day. +*/ +var minutesInDay = 1440; +/** +* @constant +* @name secondsInHour +* @summary Seconds in 1 hour. +*/ +var secondsInHour = 3600; +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function _constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function _toDate(argument, context) { + return _constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/addDays.js +/** +* The {@link addDays} function options. +*/ +/** +* @name addDays +* @category Day Helpers +* @summary Add the specified number of days to the given date. +* +* @description +* Add the specified number of days to the given date. +* +* **You don't need date-fns\***: +* +* Temporal has a built-in `add` method on all its classes: +* +* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) +* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) +* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) +* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) +* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) +* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of days to be added. +* @param options - An object with options +* +* @returns The new date with the days added +* +* @example +* // Add 10 days to 1 September 2014: +* const result = addDays(new Date(2014, 8, 1), 10) +* //=> Thu Sep 11 2014 00:00:00 +* +* @example +* // Using Temporal: +* // Add 10 days to 1 September 2014: +* Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); +* //=> "2014-09-11" +*/ +function _addDays(date, amount, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(amount)) return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (!amount) return _date; + _date.setDate(_date.getDate() + amount); + return _date; +} +//#endregion +//#region dist/date-fns/addMonths.js +/** +* The {@link addMonths} function options. +*/ +/** +* @name addMonths +* @category Month Helpers +* @summary Add the specified number of months to the given date. +* +* @description +* Add the specified number of months to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of months to be added. +* @param options - The options object +* +* @returns The new date with the months added +* +* @example +* // Add 5 months to 1 September 2014: +* const result = addMonths(new Date(2014, 8, 1), 5) +* //=> Sun Feb 01 2015 00:00:00 +* +* // Add one month to 30 January 2023: +* const result = addMonths(new Date(2023, 0, 30), 1) +* //=> Tue Feb 28 2023 00:00:00 +*/ +function _addMonths(date, amount, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(amount)) return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (!amount) return _date; + var dayOfMonth = _date.getDate(); + var endOfDesiredMonth = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, _date.getTime()); + endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); + if (dayOfMonth >= endOfDesiredMonth.getDate()) return endOfDesiredMonth;else + { + _date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); + return _date; + } +} +//#endregion +//#region dist/date-fns/add.js +/** +* The {@link add} function options. +*/ +/** +* @name add +* @category Common Helpers +* @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. +* +* @description +* Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. +* +* **You don't need date-fns\***: +* +* Temporal has a built-in `add` method on all its classes: +* +* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) +* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) +* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) +* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) +* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) +* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. +* @param options - An object with options +* +* @returns The new date with the seconds added +* +* @example +* // Add the following duration to 1 September 2014, 10:19:50 +* const result = add(new Date(2014, 8, 1, 10, 19, 50), { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30, +* }) +* //=> Thu Jun 15 2017 15:29:20 +* +* @example +* // Using Temporal: +* // Add the following duration to 1 September 2014, 10:19:50 +* Temporal.PlainDateTime.from("2014-09-01T10:19:50") +* .add({ +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30, +* }) +* .toString(); +* //=> "2017-06-15T15:29:20" +*/ +function _add(date, duration, options) { + var _duration$years = duration.years,years = _duration$years === void 0 ? 0 : _duration$years,_duration$months = duration.months,months = _duration$months === void 0 ? 0 : _duration$months,_duration$weeks = duration.weeks,weeks = _duration$weeks === void 0 ? 0 : _duration$weeks,_duration$days = duration.days,days = _duration$days === void 0 ? 0 : _duration$days,_duration$hours = duration.hours,hours = _duration$hours === void 0 ? 0 : _duration$hours,_duration$minutes = duration.minutes,minutes = _duration$minutes === void 0 ? 0 : _duration$minutes,_duration$seconds = duration.seconds,seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var dateWithMonths = months || years ? _addMonths(_date, months + years * 12) : _date; + var dateWithDays = days || weeks ? _addDays(dateWithMonths, days + weeks * 7) : dateWithMonths; + var msToAdd = (seconds + (minutes + hours * 60) * 60) * 1e3; + return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, +dateWithDays + msToAdd); +} +//#endregion +//#region dist/date-fns/isSaturday.js +/** +* The {@link isSaturday} function options. +*/ +/** +* @name isSaturday +* @category Weekday Helpers +* @summary Is the given date Saturday? +* +* @description +* Is the given date Saturday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Saturday +* +* @example +* // Is 27 September 2014 Saturday? +* const result = isSaturday(new Date(2014, 8, 27)) +* //=> true +*/ +function _isSaturday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 6; +} +//#endregion +//#region dist/date-fns/isSunday.js +/** +* The {@link isSunday} function options. +*/ +/** +* @name isSunday +* @category Weekday Helpers +* @summary Is the given date Sunday? +* +* @description +* Is the given date Sunday? +* +* @param date - The date to check +* @param options - The options object +* +* @returns The date is Sunday +* +* @example +* // Is 21 September 2014 Sunday? +* const result = isSunday(new Date(2014, 8, 21)) +* //=> true +*/ +function _isSunday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 0; +} +//#endregion +//#region dist/date-fns/isWeekend.js +/** +* The {@link isWeekend} function options. +*/ +/** +* @name isWeekend +* @category Weekday Helpers +* @summary Does the given date fall on a weekend? +* +* @description +* Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date falls on a weekend +* +* @example +* // Does 5 October 2014 fall on a weekend? +* const result = isWeekend(new Date(2014, 9, 5)) +* //=> true +*/ +function _isWeekend(date, options) { + var day = _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay(); + return day === 0 || day === 6; +} +//#endregion +//#region dist/date-fns/addBusinessDays.js +/** +* The {@link addBusinessDays} function options. +*/ +/** +* @name addBusinessDays +* @category Day Helpers +* @summary Add the specified number of business days (mon - fri) to the given date. +* +* @description +* Add the specified number of business days (mon - fri) to the given date, ignoring weekends. +* +* **You don't need date-fns\***: +* +* Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of business days to be added. +* @param options - An object with options +* +* @returns The new date with the business days added +* +* @example +* // Add 10 business days to 1 September 2014: +* const result = addBusinessDays(new Date(2014, 8, 1), 10) +* //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) +*/ +function _addBusinessDays(date, amount, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var startedOnWeekend = _isWeekend(_date, options); + if (isNaN(amount)) return _constructFrom(options === null || options === void 0 ? void 0 : options.in, NaN); + var hours = _date.getHours(); + var sign = amount < 0 ? -1 : 1; + var fullWeeks = Math.trunc(amount / 5); + _date.setDate(_date.getDate() + fullWeeks * 7); + var restDays = Math.abs(amount % 5); + while (restDays > 0) { + _date.setDate(_date.getDate() + sign); + if (!_isWeekend(_date, options)) restDays -= 1; + } + if (startedOnWeekend && _isWeekend(_date, options) && amount !== 0) { + if (_isSaturday(_date, options)) _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1)); + if (_isSunday(_date, options)) _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2)); + } + _date.setHours(hours); + return _date; +} +//#endregion +//#region dist/date-fns/addMilliseconds.js +/** +* The {@link addMilliseconds} function options. +*/ +/** +* @name addMilliseconds +* @category Millisecond Helpers +* @summary Add the specified number of milliseconds to the given date. +* +* @description +* Add the specified number of milliseconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of milliseconds to be added. +* @param options - The options object +* +* @returns The new date with the milliseconds added +* +* @example +* // Add 750 milliseconds to 10 July 2014 12:45:30.000: +* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) +* //=> Thu Jul 10 2014 12:45:30.750 +*/ +function _addMilliseconds(date, amount, options) { + return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, +_toDate(date) + amount); +} +//#endregion +//#region dist/date-fns/addHours.js +/** +* The {@link addHours} function options. +*/ +/** +* @name addHours +* @category Hour Helpers +* @summary Add the specified number of hours to the given date. +* +* @description +* Add the specified number of hours to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of hours to be added +* @param options - An object with options +* +* @returns The new date with the hours added +* +* @example +* // Add 2 hours to 10 July 2014 23:00:00: +* const result = addHours(new Date(2014, 6, 10, 23, 0), 2) +* //=> Fri Jul 11 2014 01:00:00 +*/ +function _addHours(date, amount, options) { + return _addMilliseconds(date, amount * millisecondsInHour, options); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions$1() { + return defaultOptions; +} +function setDefaultOptions$1(newOptions) { + defaultOptions = newOptions; +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function _startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/startOfISOWeek.js +/** +* The {@link startOfISOWeek} function options. +*/ +/** +* @name startOfISOWeek +* @category ISO Week Helpers +* @summary Return the start of an ISO week for the given date. +* +* @description +* Return the start of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an ISO week +* +* @example +* // The start of an ISO week for 2 September 2014 11:55:00: +* const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function _startOfISOWeek(date, options) { + return _startOfWeek(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/getISOWeekYear.js +/** +* The {@link getISOWeekYear} function options. +*/ +/** +* @name getISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Get the ISO week-numbering year of the given date. +* +* @description +* Get the ISO week-numbering year of the given date, +* which always starts 3 days before the year's first Thursday. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* +* @returns The ISO week-numbering year +* +* @example +* // Which ISO-week numbering year is 2 January 2005? +* const result = getISOWeekYear(new Date(2005, 0, 2)) +* //=> 2004 +*/ +function _getISOWeekYear(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var fourthOfJanuaryOfNextYear = _constructFrom(_date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = _startOfISOWeek(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = _constructFrom(_date, 0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = _startOfISOWeek(fourthOfJanuaryOfThisYear); + if (_date.getTime() >= startOfNextYear.getTime()) return year + 1;else + if (_date.getTime() >= startOfThisYear.getTime()) return year;else + return year - 1; +} +//#endregion +//#region dist/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +/** +* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. +* They usually appear for dates that denote time before the timezones were introduced +* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 +* and GMT+01:00:00 after that date) +* +* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, +* which would lead to incorrect calculations. +* +* This function returns the timezone offset in milliseconds that takes seconds in account. +*/ +function getTimezoneOffsetInMilliseconds(date) { + var _date = _toDate(date); + var utcDate = new Date(Date.UTC(_date.getFullYear(), _date.getMonth(), _date.getDate(), _date.getHours(), _date.getMinutes(), _date.getSeconds(), _date.getMilliseconds())); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = _constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/startOfDay.js +/** +* The {@link startOfDay} function options. +*/ +/** +* @name startOfDay +* @category Day Helpers +* @summary Return the start of a day for the given date. +* +* @description +* Return the start of a day for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a day +* +* @example +* // The start of a day for 2 September 2014 11:55:00: +* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 02 2014 00:00:00 +*/ +function _startOfDay(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/differenceInCalendarDays.js +/** +* The {@link differenceInCalendarDays} function options. +*/ +/** +* @name differenceInCalendarDays +* @category Day Helpers +* @summary Get the number of calendar days between the given dates. +* +* @description +* Get the number of calendar days between the given dates. This means that the times are removed +* from the dates and then the difference in days is calculated. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - The options object +* +* @returns The number of calendar days +* +* @example +* // How many calendar days are between +* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? +* const result = differenceInCalendarDays( +* new Date(2012, 6, 2, 0, 0), +* new Date(2011, 6, 2, 23, 0) +* ) +* //=> 366 +* // How many calendar days are between +* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? +* const result = differenceInCalendarDays( +* new Date(2011, 6, 3, 0, 1), +* new Date(2011, 6, 2, 23, 59) +* ) +* //=> 1 +*/ +function _differenceInCalendarDays(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + var laterStartOfDay = _startOfDay(laterDate_); + var earlierStartOfDay = _startOfDay(earlierDate_); + var laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay); + var earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay); + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay); +} +//#endregion +//#region dist/date-fns/startOfISOWeekYear.js +/** +* The {@link startOfISOWeekYear} function options. +*/ +/** +* @name startOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the start of an ISO week-numbering year for the given date. +* +* @description +* Return the start of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an ISO week-numbering year +* +* @example +* // The start of an ISO week-numbering year for 2 July 2005: +* const result = startOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Mon Jan 03 2005 00:00:00 +*/ +function _startOfISOWeekYear(date, options) { + var year = _getISOWeekYear(date, options); + var fourthOfJanuary = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(year, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + return _startOfISOWeek(fourthOfJanuary); +} +//#endregion +//#region dist/date-fns/setISOWeekYear.js +/** +* The {@link setISOWeekYear} function options. +*/ +/** +* @name setISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Set the ISO week-numbering year to the given date. +* +* @description +* Set the ISO week-numbering year to the given date, +* saving the week number and the weekday number. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param weekYear - The ISO week-numbering year of the new date +* @param options - An object with options +* +* @returns The new date with the ISO week-numbering year set +* +* @example +* // Set ISO week-numbering year 2007 to 29 December 2008: +* const result = setISOWeekYear(new Date(2008, 11, 29), 2007) +* //=> Mon Jan 01 2007 00:00:00 +*/ +function _setISOWeekYear(date, weekYear, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = _differenceInCalendarDays(_date, _startOfISOWeekYear(_date, options)); + var fourthOfJanuary = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(weekYear, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + _date = _startOfISOWeekYear(fourthOfJanuary); + _date.setDate(_date.getDate() + diff); + return _date; +} +//#endregion +//#region dist/date-fns/addISOWeekYears.js +/** +* The {@link addISOWeekYears} function options. +*/ +/** +* @name addISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Add the specified number of ISO week-numbering years to the given date. +* +* @description +* Add the specified number of ISO week-numbering years to the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The date to be changed +* @param amount - The amount of ISO week-numbering years to be added. +* @param options - An object with options +* +* @returns The new date with the ISO week-numbering years added +* +* @example +* // Add 5 ISO week-numbering years to 2 July 2010: +* const result = addISOWeekYears(new Date(2010, 6, 2), 5) +* //=> Fri Jun 26 2015 00:00:00 +*/ +function _addISOWeekYears(date, amount, options) { + return _setISOWeekYear(date, _getISOWeekYear(date, options) + amount, options); +} +//#endregion +//#region dist/date-fns/addMinutes.js +/** +* The {@link addMinutes} function options. +*/ +/** +* @name addMinutes +* @category Minute Helpers +* @summary Add the specified number of minutes to the given date. +* +* @description +* Add the specified number of minutes to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of minutes to be added. +* @param options - An object with options +* +* @returns The new date with the minutes added +* +* @example +* // Add 30 minutes to 10 July 2014 12:00:00: +* const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) +* //=> Thu Jul 10 2014 12:30:00 +*/ +function _addMinutes(date, amount, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setTime(_date.getTime() + amount * millisecondsInMinute); + return _date; +} +//#endregion +//#region dist/date-fns/addQuarters.js +/** +* The {@link addQuarters} function options. +*/ +/** +* @name addQuarters +* @category Quarter Helpers +* @summary Add the specified number of year quarters to the given date. +* +* @description +* Add the specified number of year quarters to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of quarters to be added. +* @param options - An object with options +* +* @returns The new date with the quarters added +* +* @example +* // Add 1 quarter to 1 September 2014: +* const result = addQuarters(new Date(2014, 8, 1), 1) +* //=; Mon Dec 01 2014 00:00:00 +*/ +function _addQuarters(date, amount, options) { + return _addMonths(date, amount * 3, options); +} +//#endregion +//#region dist/date-fns/addSeconds.js +/** +* The {@link addSeconds} function options. +*/ +/** +* @name addSeconds +* @category Second Helpers +* @summary Add the specified number of seconds to the given date. +* +* @description +* Add the specified number of seconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of seconds to be added. +* @param options - An object with options +* +* @returns The new date with the seconds added +* +* @example +* // Add 30 seconds to 10 July 2014 12:45:00: +* const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) +* //=> Thu Jul 10 2014 12:45:30 +*/ +function _addSeconds(date, amount, options) { + return _addMilliseconds(date, amount * 1e3, options); +} +//#endregion +//#region dist/date-fns/addWeeks.js +/** +* The {@link addWeeks} function options. +*/ +/** +* @name addWeeks +* @category Week Helpers +* @summary Add the specified number of weeks to the given date. +* +* @description +* Add the specified number of weeks to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of weeks to be added. +* @param options - An object with options +* +* @returns The new date with the weeks added +* +* @example +* // Add 4 weeks to 1 September 2014: +* const result = addWeeks(new Date(2014, 8, 1), 4) +* //=> Mon Sep 29 2014 00:00:00 +*/ +function _addWeeks(date, amount, options) { + return _addDays(date, amount * 7, options); +} +//#endregion +//#region dist/date-fns/addYears.js +/** +* The {@link addYears} function options. +*/ +/** +* @name addYears +* @category Year Helpers +* @summary Add the specified number of years to the given date. +* +* @description +* Add the specified number of years to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type. +* +* @param date - The date to be changed +* @param amount - The amount of years to be added. +* @param options - The options +* +* @returns The new date with the years added +* +* @example +* // Add 5 years to 1 September 2014: +* const result = addYears(new Date(2014, 8, 1), 5) +* //=> Sun Sep 01 2019 00:00:00 +*/ +function _addYears(date, amount, options) { + return _addMonths(date, amount * 12, options); +} +//#endregion +//#region dist/date-fns/areIntervalsOverlapping.js +/** +* The {@link areIntervalsOverlapping} function options. +*/ +/** +* @name areIntervalsOverlapping +* @category Interval Helpers +* @summary Is the given time interval overlapping with another time interval? +* +* @description +* Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. +* +* @param intervalLeft - The first interval to compare. +* @param intervalRight - The second interval to compare. +* @param options - The object with options +* +* @returns Whether the time intervals are overlapping +* +* @example +* // For overlapping time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } +* ) +* //=> true +* +* @example +* // For non-overlapping time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } +* ) +* //=> false +* +* @example +* // For adjacent time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } +* ) +* //=> false +* +* @example +* // Using the inclusive option: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, +* { inclusive: true } +* ) +* //=> true +*/ +function _areIntervalsOverlapping(intervalLeft, intervalRight, options) { + var _sort = [+_toDate(intervalLeft.start, options === null || options === void 0 ? void 0 : options.in), +_toDate(intervalLeft.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort2 = _slicedToArray(_sort, 2),leftStartTime = _sort2[0],leftEndTime = _sort2[1]; + var _sort3 = [+_toDate(intervalRight.start, options === null || options === void 0 ? void 0 : options.in), +_toDate(intervalRight.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort4 = _slicedToArray(_sort3, 2),rightStartTime = _sort4[0],rightEndTime = _sort4[1]; + if (options !== null && options !== void 0 && options.inclusive) return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} +//#endregion +//#region dist/date-fns/max.js +/** +* The {@link max} function options. +*/ +/** +* @name max +* @category Common Helpers +* @summary Return the latest of the given dates. +* +* @description +* Return the latest of the given dates. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dates - The dates to compare +* +* @returns The latest of the dates +* +* @example +* // Which of these dates is the latest? +* const result = max([ +* new Date(1989, 6, 10), +* new Date(1987, 1, 11), +* new Date(1995, 6, 2), +* new Date(1990, 0, 1) +* ]) +* //=> Sun Jul 02 1995 00:00:00 +*/ +function _max(dates, options) { + var result; + var context = options === null || options === void 0 ? void 0 : options.in; + dates.forEach(function (date) { + if (!context && _typeof(date) === "object") context = _constructFrom.bind(null, date); + var date_ = _toDate(date, context); + if (!result || result < date_ || isNaN(+date_)) result = date_; + }); + return _constructFrom(context, result || NaN); +} +//#endregion +//#region dist/date-fns/min.js +/** +* The {@link min} function options. +*/ +/** +* @name min +* @category Common Helpers +* @summary Returns the earliest of the given dates. +* +* @description +* Returns the earliest of the given dates. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dates - The dates to compare +* +* @returns The earliest of the dates +* +* @example +* // Which of these dates is the earliest? +* const result = min([ +* new Date(1989, 6, 10), +* new Date(1987, 1, 11), +* new Date(1995, 6, 2), +* new Date(1990, 0, 1) +* ]) +* //=> Wed Feb 11 1987 00:00:00 +*/ +function _min(dates, options) { + var result; + var context = options === null || options === void 0 ? void 0 : options.in; + dates.forEach(function (date) { + if (!context && _typeof(date) === "object") context = _constructFrom.bind(null, date); + var date_ = _toDate(date, context); + if (!result || result > date_ || isNaN(+date_)) result = date_; + }); + return _constructFrom(context, result || NaN); +} +//#endregion +//#region dist/date-fns/clamp.js +/** +* The {@link clamp} function options. +*/ +/** +* The {@link clamp} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name clamp +* @category Interval Helpers +* @summary Return a date bounded by the start and the end of the given interval. +* +* @description +* Clamps a date to the lower bound with the start of the interval and the upper +* bound with the end of the interval. +* +* - When the date is less than the start of the interval, the start is returned. +* - When the date is greater than the end of the interval, the end is returned. +* - Otherwise the date is returned. +* +* @typeParam DateType - Date argument type. +* @typeParam IntervalType - Interval argument type. +* @typeParam Options - Options type. +* +* @param date - The date to be bounded +* @param interval - The interval to bound to +* @param options - An object with options +* +* @returns The date bounded by the start and the end of the interval +* +* @example +* // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 +* const result = clamp(new Date(2021, 2, 21), { +* start: new Date(2021, 2, 22), +* end: new Date(2021, 3, 1), +* }) +* //=> Mon Mar 22 2021 00:00:00 +*/ +function _clamp(date, interval, options) { + var _normalizeDates3 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, date, interval.start, interval.end),_normalizeDates4 = _slicedToArray(_normalizeDates3, 3),date_ = _normalizeDates4[0],start = _normalizeDates4[1],end = _normalizeDates4[2]; + return _min([_max([date_, start], options), end], options); +} +//#endregion +//#region dist/date-fns/closestIndexTo.js +/** +* @name closestIndexTo +* @category Common Helpers +* @summary Return an index of the closest date from the array comparing to the given date. +* +* @description +* Return an index of the closest date from the array comparing to the given date. +* +* @param dateToCompare - The date to compare with +* @param dates - The array to search +* +* @returns An index of the date closest to the given date or undefined if no valid value is given +* +* @example +* // Which date is closer to 6 September 2015? +* const dateToCompare = new Date(2015, 8, 6) +* const datesArray = [ +* new Date(2015, 0, 1), +* new Date(2016, 0, 1), +* new Date(2017, 0, 1) +* ] +* const result = closestIndexTo(dateToCompare, datesArray) +* //=> 1 +*/ +function _closestIndexTo(dateToCompare, dates) { + var timeToCompare = +_toDate(dateToCompare); + if (isNaN(timeToCompare)) return NaN; + var result; + var minDistance; + dates.forEach(function (date, index) { + var date_ = _toDate(date); + if (isNaN(+date_)) { + result = NaN; + minDistance = NaN; + return; + } + var distance = Math.abs(timeToCompare - +date_); + if (result == null || distance < minDistance) { + result = index; + minDistance = distance; + } + }); + return result; +} +//#endregion +//#region dist/date-fns/closestTo.js +/** +* The {@link closestTo} function options. +*/ +/** +* The {@link closestTo} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name closestTo +* @category Common Helpers +* @summary Return a date from the array closest to the given date. +* +* @description +* Return a date from the array closest to the given date. +* +* @typeParam DateToCompare - Date to compare argument type. +* @typeParam DatesType - Dates array argument type. +* @typeParam Options - Options type. +* +* @param dateToCompare - The date to compare with +* @param dates - The array to search +* +* @returns The date from the array closest to the given date or undefined if no valid value is given +* +* @example +* // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? +* const dateToCompare = new Date(2015, 8, 6) +* const result = closestTo(dateToCompare, [ +* new Date(2000, 0, 1), +* new Date(2030, 0, 1) +* ]) +* //=> Tue Jan 01 2030 00:00:00 +*/ +function _closestTo(dateToCompare, dates, options) { + var _normalizeDates5 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in, dateToCompare].concat(_toConsumableArray(dates))),_normalizeDates6 = _toArray(_normalizeDates5),dateToCompare_ = _normalizeDates6[0],dates_ = _normalizeDates6.slice(1); + var index = _closestIndexTo(dateToCompare_, dates_); + if (typeof index === "number" && isNaN(index)) return _constructFrom(dateToCompare_, NaN); + if (index !== void 0) return dates_[index]; +} +//#endregion +//#region dist/date-fns/compareAsc.js +/** +* @name compareAsc +* @category Common Helpers +* @summary Compare the two dates and return -1, 0 or 1. +* +* @description +* Compare the two dates and return 1 if the first date is after the second, +* -1 if the first date is before the second or 0 if dates are equal. +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The result of the comparison +* +* @example +* // Compare 11 February 1987 and 10 July 1989: +* const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) +* //=> -1 +* +* @example +* // Sort the array of dates: +* const result = [ +* new Date(1995, 6, 2), +* new Date(1987, 1, 11), +* new Date(1989, 6, 10) +* ].sort(compareAsc) +* //=> [ +* // Wed Feb 11 1987 00:00:00, +* // Mon Jul 10 1989 00:00:00, +* // Sun Jul 02 1995 00:00:00 +* // ] +*/ +function _compareAsc(dateLeft, dateRight) { + var diff = +_toDate(dateLeft) - +_toDate(dateRight); + if (diff < 0) return -1;else + if (diff > 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/compareDesc.js +/** +* @name compareDesc +* @category Common Helpers +* @summary Compare the two dates reverse chronologically and return -1, 0 or 1. +* +* @description +* Compare the two dates and return -1 if the first date is after the second, +* 1 if the first date is before the second or 0 if dates are equal. +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The result of the comparison +* +* @example +* // Compare 11 February 1987 and 10 July 1989 reverse chronologically: +* const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) +* //=> 1 +* +* @example +* // Sort the array of dates in reverse chronological order: +* const result = [ +* new Date(1995, 6, 2), +* new Date(1987, 1, 11), +* new Date(1989, 6, 10) +* ].sort(compareDesc) +* //=> [ +* // Sun Jul 02 1995 00:00:00, +* // Mon Jul 10 1989 00:00:00, +* // Wed Feb 11 1987 00:00:00 +* // ] +*/ +function _compareDesc(dateLeft, dateRight) { + var diff = +_toDate(dateLeft) - +_toDate(dateRight); + if (diff > 0) return -1;else + if (diff < 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/constructNow.js +/** +* @name constructNow +* @category Generic Helpers +* @summary Constructs a new current date using the passed value constructor. +* @pure false +* +* @description +* The function constructs a new current date using the constructor from +* the reference date. It helps to build generic functions that accept date +* extensions and use the current date. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* @param date - The reference date to take constructor from +* +* @returns Current date initialized using the given date constructor +* +* @example +* import { constructNow, isSameDay } from 'date-fns' +* +* function isToday( +* date: DateArg, +* ): boolean { +* // If we were to use `new Date()` directly, the function would behave +* // differently in different timezones and return false for the same date. +* return isSameDay(date, constructNow(date)); +* } +*/ +function _constructNow(date) { + return _constructFrom(date, Date.now()); +} +//#endregion +//#region dist/date-fns/daysToWeeks.js +/** +* @name daysToWeeks +* @category Conversion Helpers +* @summary Convert days to weeks. +* +* @description +* Convert a number of days to a full number of weeks. +* +* @param days - The number of days to be converted +* +* @returns The number of days converted in weeks +* +* @example +* // Convert 14 days to weeks: +* const result = daysToWeeks(14) +* //=> 2 +* +* @example +* // It uses trunc rounding: +* const result = daysToWeeks(13) +* //=> 1 +*/ +function _daysToWeeks(days) { + var result = Math.trunc(days / 7); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/isSameDay.js +/** +* The {@link isSameDay} function options. +*/ +/** +* @name isSameDay +* @category Day Helpers +* @summary Are the given dates in the same day (and year and month)? +* +* @description +* Are the given dates in the same day (and year and month)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same day (and year and month) +* +* @example +* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? +* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) +* //=> true +* +* @example +* // Are 4 September and 4 October in the same day? +* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) +* //=> false +* +* @example +* // Are 4 September, 2014 and 4 September, 2015 in the same day? +* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) +* //=> false +*/ +function _isSameDay(laterDate, earlierDate, options) { + var _normalizeDates7 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates8 = _slicedToArray(_normalizeDates7, 2),dateLeft_ = _normalizeDates8[0],dateRight_ = _normalizeDates8[1]; + return +_startOfDay(dateLeft_) === +_startOfDay(dateRight_); +} +//#endregion +//#region dist/date-fns/isDate.js +/** +* @name isDate +* @category Common Helpers +* @summary Is the given value a date? +* +* @description +* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. +* +* @param value - The value to check +* +* @returns True if the given value is a date +* +* @example +* // For a valid date: +* const result = isDate(new Date()) +* //=> true +* +* @example +* // For an invalid date: +* const result = isDate(new Date(NaN)) +* //=> true +* +* @example +* // For some value: +* const result = isDate('2014-02-31') +* //=> false +* +* @example +* // For an object: +* const result = isDate({}) +* //=> false +*/ +function _isDate(value) { + return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]"; +} +//#endregion +//#region dist/date-fns/isValid.js +/** +* @name isValid +* @category Common Helpers +* @summary Is the given date valid? +* +* @description +* Returns false if argument is Invalid Date and true otherwise. +* Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) +* Invalid Date is a Date, whose time value is NaN. +* +* Time value of Date: http://es5.github.io/#x15.9.1.1 +* +* @param date - The date to check +* +* @returns The date is valid +* +* @example +* // For the valid date: +* const result = isValid(new Date(2014, 1, 31)) +* //=> true +* +* @example +* // For the value, convertible into a date: +* const result = isValid(1393804800000) +* //=> true +* +* @example +* // For the invalid date: +* const result = isValid(new Date('')) +* //=> false +*/ +function _isValid(date) { + return !(!_isDate(date) && typeof date !== "number" || isNaN(+_toDate(date))); +} +//#endregion +//#region dist/date-fns/differenceInBusinessDays.js +/** +* The {@link differenceInBusinessDays} function options. +*/ +/** +* @name differenceInBusinessDays +* @category Day Helpers +* @summary Get the number of business days between the given dates. +* +* @description +* Get the number of business day periods between the given dates. +* Business days being days that aren't in the weekend. +* Like `differenceInCalendarDays`, the function removes the times from +* the dates before calculating the difference. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of business days +* +* @example +* // How many business days are between +* // 10 January 2014 and 20 July 2014? +* const result = differenceInBusinessDays( +* new Date(2014, 6, 20), +* new Date(2014, 0, 10) +* ) +* //=> 136 +* +* // How many business days are between +* // 30 November 2021 and 1 November 2021? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 30), +* new Date(2021, 10, 1) +* ) +* //=> 21 +* +* // How many business days are between +* // 1 November 2021 and 1 December 2021? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 1), +* new Date(2021, 11, 1) +* ) +* //=> -22 +* +* // How many business days are between +* // 1 November 2021 and 1 November 2021 ? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 1), +* new Date(2021, 10, 1) +* ) +* //=> 0 +*/ +function _differenceInBusinessDays(laterDate, earlierDate, options) { + var _normalizeDates9 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates0 = _slicedToArray(_normalizeDates9, 2),laterDate_ = _normalizeDates0[0],earlierDate_ = _normalizeDates0[1]; + if (!_isValid(laterDate_) || !_isValid(earlierDate_)) return NaN; + var diff = _differenceInCalendarDays(laterDate_, earlierDate_); + var sign = diff < 0 ? -1 : 1; + var weeks = Math.trunc(diff / 7); + var result = weeks * 5; + var movingDate = _addDays(earlierDate_, weeks * 7); + while (!_isSameDay(laterDate_, movingDate)) { + result += _isWeekend(movingDate, options) ? 0 : sign; + movingDate = _addDays(movingDate, sign); + } + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/differenceInCalendarISOWeekYears.js +/** +* The {@link differenceInCalendarISOWeekYears} function options. +*/ +/** +* @name differenceInCalendarISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of calendar ISO week-numbering years between the given dates. +* +* @description +* Get the number of calendar ISO week-numbering years between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar ISO week-numbering years +* +* @example +* // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? +* const result = differenceInCalendarISOWeekYears( +* new Date(2012, 0, 1), +* new Date(2010, 0, 1) +* ) +* //=> 2 +*/ +function _differenceInCalendarISOWeekYears(laterDate, earlierDate, options) { + var _normalizeDates1 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates10 = _slicedToArray(_normalizeDates1, 2),laterDate_ = _normalizeDates10[0],earlierDate_ = _normalizeDates10[1]; + return _getISOWeekYear(laterDate_, options) - _getISOWeekYear(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/differenceInCalendarISOWeeks.js +/** +* The {@link differenceInCalendarISOWeeks} function options. +*/ +/** +* @name differenceInCalendarISOWeeks +* @category ISO Week Helpers +* @summary Get the number of calendar ISO weeks between the given dates. +* +* @description +* Get the number of calendar ISO weeks between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar ISO weeks +* +* @example +* // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? +* const result = differenceInCalendarISOWeeks( +* new Date(2014, 6, 21), +* new Date(2014, 6, 6), +* ); +* //=> 3 +*/ +function _differenceInCalendarISOWeeks(laterDate, earlierDate, options) { + var _normalizeDates11 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates12 = _slicedToArray(_normalizeDates11, 2),laterDate_ = _normalizeDates12[0],earlierDate_ = _normalizeDates12[1]; + var startOfISOWeekLeft = _startOfISOWeek(laterDate_); + var startOfISOWeekRight = _startOfISOWeek(earlierDate_); + var timestampLeft = +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); + var timestampRight = +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); + return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/differenceInCalendarMonths.js +/** +* The {@link differenceInCalendarMonths} function options. +*/ +/** +* @name differenceInCalendarMonths +* @category Month Helpers +* @summary Get the number of calendar months between the given dates. +* +* @description +* Get the number of calendar months between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar months +* +* @example +* // How many calendar months are between 31 January 2014 and 1 September 2014? +* const result = differenceInCalendarMonths( +* new Date(2014, 8, 1), +* new Date(2014, 0, 31) +* ) +* //=> 8 +*/ +function _differenceInCalendarMonths(laterDate, earlierDate, options) { + var _normalizeDates13 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates14 = _slicedToArray(_normalizeDates13, 2),laterDate_ = _normalizeDates14[0],earlierDate_ = _normalizeDates14[1]; + var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + var monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); + return yearsDiff * 12 + monthsDiff; +} +//#endregion +//#region dist/date-fns/getQuarter.js +/** +* The {@link getQuarter} function options. +*/ +/** +* @name getQuarter +* @category Quarter Helpers +* @summary Get the year quarter of the given date. +* +* @description +* Get the year quarter of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The quarter +* +* @example +* // Which quarter is 2 July 2014? +* const result = getQuarter(new Date(2014, 6, 2)); +* //=> 3 +*/ +function _getQuarter(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + return Math.trunc(_date.getMonth() / 3) + 1; +} +//#endregion +//#region dist/date-fns/differenceInCalendarQuarters.js +/** +* The {@link differenceInCalendarQuarters} function options. +*/ +/** +* @name differenceInCalendarQuarters +* @category Quarter Helpers +* @summary Get the number of calendar quarters between the given dates. +* +* @description +* Get the number of calendar quarters between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar quarters +* +* @example +* // How many calendar quarters are between 31 December 2013 and 2 July 2014? +* const result = differenceInCalendarQuarters( +* new Date(2014, 6, 2), +* new Date(2013, 11, 31) +* ) +* //=> 3 +*/ +function _differenceInCalendarQuarters(laterDate, earlierDate, options) { + var _normalizeDates15 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates16 = _slicedToArray(_normalizeDates15, 2),laterDate_ = _normalizeDates16[0],earlierDate_ = _normalizeDates16[1]; + var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + var quartersDiff = _getQuarter(laterDate_) - _getQuarter(earlierDate_); + return yearsDiff * 4 + quartersDiff; +} +//#endregion +//#region dist/date-fns/differenceInCalendarWeeks.js +/** +* The {@link differenceInCalendarWeeks} function options. +*/ +/** +* @name differenceInCalendarWeeks +* @category Week Helpers +* @summary Get the number of calendar weeks between the given dates. +* +* @description +* Get the number of calendar weeks between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of calendar weeks +* +* @example +* // How many calendar weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInCalendarWeeks( +* new Date(2014, 6, 20), +* new Date(2014, 6, 5) +* ) +* //=> 3 +* +* @example +* // If the week starts on Monday, +* // how many calendar weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInCalendarWeeks( +* new Date(2014, 6, 20), +* new Date(2014, 6, 5), +* { weekStartsOn: 1 } +* ) +* //=> 2 +*/ +function _differenceInCalendarWeeks(laterDate, earlierDate, options) { + var _normalizeDates17 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates18 = _slicedToArray(_normalizeDates17, 2),laterDate_ = _normalizeDates18[0],earlierDate_ = _normalizeDates18[1]; + var laterStartOfWeek = _startOfWeek(laterDate_, options); + var earlierStartOfWeek = _startOfWeek(earlierDate_, options); + var laterTimestamp = +laterStartOfWeek - getTimezoneOffsetInMilliseconds(laterStartOfWeek); + var earlierTimestamp = +earlierStartOfWeek - getTimezoneOffsetInMilliseconds(earlierStartOfWeek); + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/differenceInCalendarYears.js +/** +* The {@link differenceInCalendarYears} function options. +*/ +/** +* @name differenceInCalendarYears +* @category Year Helpers +* @summary Get the number of calendar years between the given dates. +* +* @description +* Get the number of calendar years between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options + +* @returns The number of calendar years +* +* @example +* // How many calendar years are between 31 December 2013 and 11 February 2015? +* const result = differenceInCalendarYears( +* new Date(2015, 1, 11), +* new Date(2013, 11, 31) +* ); +* //=> 2 +*/ +function _differenceInCalendarYears(laterDate, earlierDate, options) { + var _normalizeDates19 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates20 = _slicedToArray(_normalizeDates19, 2),laterDate_ = _normalizeDates20[0],earlierDate_ = _normalizeDates20[1]; + return laterDate_.getFullYear() - earlierDate_.getFullYear(); +} +//#endregion +//#region dist/date-fns/differenceInDays.js +/** +* The {@link differenceInDays} function options. +*/ +/** +* @name differenceInDays +* @category Day Helpers +* @summary Get the number of full days between the given dates. +* +* @description +* Get the number of full day periods between two dates. Fractional days are +* truncated towards zero. +* +* One "full day" is the distance between a local time in one day to the same +* local time on the next or previous day. A full day can sometimes be less than +* or more than 24 hours if a daylight savings change happens between two dates. +* +* To ignore DST and only measure exact 24-hour periods, use this instead: +* `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full days according to the local timezone +* +* @example +* // How many full days are between +* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? +* const result = differenceInDays( +* new Date(2012, 6, 2, 0, 0), +* new Date(2011, 6, 2, 23, 0) +* ) +* //=> 365 +* +* @example +* // How many full days are between +* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? +* const result = differenceInDays( +* new Date(2011, 6, 3, 0, 1), +* new Date(2011, 6, 2, 23, 59) +* ) +* //=> 0 +* +* @example +* // How many full days are between +* // 1 March 2020 0:00 and 1 June 2020 0:00 ? +* // Note: because local time is used, the +* // result will always be 92 days, even in +* // time zones where DST starts and the +* // period has only 92*24-1 hours. +* const result = differenceInDays( +* new Date(2020, 5, 1), +* new Date(2020, 2, 1) +* ) +* //=> 92 +*/ +function _differenceInDays(laterDate, earlierDate, options) { + var _normalizeDates21 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates22 = _slicedToArray(_normalizeDates21, 2),laterDate_ = _normalizeDates22[0],earlierDate_ = _normalizeDates22[1]; + var sign = compareLocalAsc(laterDate_, earlierDate_); + var difference = Math.abs(_differenceInCalendarDays(laterDate_, earlierDate_)); + laterDate_.setDate(laterDate_.getDate() - sign * difference); + var result = sign * (difference - Number(compareLocalAsc(laterDate_, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +function compareLocalAsc(laterDate, earlierDate) { + var diff = laterDate.getFullYear() - earlierDate.getFullYear() || laterDate.getMonth() - earlierDate.getMonth() || laterDate.getDate() - earlierDate.getDate() || laterDate.getHours() - earlierDate.getHours() || laterDate.getMinutes() - earlierDate.getMinutes() || laterDate.getSeconds() - earlierDate.getSeconds() || laterDate.getMilliseconds() - earlierDate.getMilliseconds(); + if (diff < 0) return -1; + if (diff > 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/_lib/getRoundingMethod.js +function getRoundingMethod(method) { + return function (number) { + var result = (method ? Math[method] : Math.trunc)(number); + return result === 0 ? 0 : result; + }; +} +//#endregion +//#region dist/date-fns/differenceInHours.js +/** +* The {@link differenceInHours} function options. +*/ +/** +* @name differenceInHours +* @category Hour Helpers +* @summary Get the number of hours between the given dates. +* +* @description +* Get the number of hours between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of hours +* +* @example +* // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? +* const result = differenceInHours( +* new Date(2014, 6, 2, 19, 0), +* new Date(2014, 6, 2, 6, 50) +* ) +* //=> 12 +*/ +function _differenceInHours(laterDate, earlierDate, options) { + var _normalizeDates23 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates24 = _slicedToArray(_normalizeDates23, 2),laterDate_ = _normalizeDates24[0],earlierDate_ = _normalizeDates24[1]; + var diff = (+laterDate_ - +earlierDate_) / millisecondsInHour; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/subISOWeekYears.js +/** +* The {@link subISOWeekYears} function options. +*/ +/** +* @name subISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Subtract the specified number of ISO week-numbering years from the given date. +* +* @description +* Subtract the specified number of ISO week-numbering years from the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of ISO week-numbering years to be subtracted. +* @param options - The options +* +* @returns The new date with the ISO week-numbering years subtracted +* +* @example +* // Subtract 5 ISO week-numbering years from 1 September 2014: +* const result = subISOWeekYears(new Date(2014, 8, 1), 5) +* //=> Mon Aug 31 2009 00:00:00 +*/ +function _subISOWeekYears(date, amount, options) { + return _addISOWeekYears(date, -amount, options); +} +//#endregion +//#region dist/date-fns/differenceInISOWeekYears.js +/** +* The {@link differenceInISOWeekYears} function options. +*/ +/** +* @name differenceInISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of full ISO week-numbering years between the given dates. +* +* @description +* Get the number of full ISO week-numbering years between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - The options +* +* @returns The number of full ISO week-numbering years +* +* @example +* // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? +* const result = differenceInISOWeekYears( +* new Date(2012, 0, 1), +* new Date(2010, 0, 1) +* ) +* // => 1 +*/ +function _differenceInISOWeekYears(laterDate, earlierDate, options) { + var _normalizeDates25 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates26 = _slicedToArray(_normalizeDates25, 2),laterDate_ = _normalizeDates26[0],earlierDate_ = _normalizeDates26[1]; + var sign = _compareAsc(laterDate_, earlierDate_); + var diff = Math.abs(_differenceInCalendarISOWeekYears(laterDate_, earlierDate_, options)); + var adjustedDate = _subISOWeekYears(laterDate_, sign * diff, options); + var result = sign * (diff - Number(_compareAsc(adjustedDate, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/differenceInMilliseconds.js +/** +* @name differenceInMilliseconds +* @category Millisecond Helpers +* @summary Get the number of milliseconds between the given dates. +* +* @description +* Get the number of milliseconds between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* +* @returns The number of milliseconds +* +* @example +* // How many milliseconds are between +* // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? +* const result = differenceInMilliseconds( +* new Date(2014, 6, 2, 12, 30, 21, 700), +* new Date(2014, 6, 2, 12, 30, 20, 600) +* ) +* //=> 1100 +*/ +function _differenceInMilliseconds(laterDate, earlierDate) { + return +_toDate(laterDate) - +_toDate(earlierDate); +} +//#endregion +//#region dist/date-fns/differenceInMinutes.js +/** +* The {@link differenceInMinutes} function options. +*/ +/** +* @name differenceInMinutes +* @category Minute Helpers +* @summary Get the number of minutes between the given dates. +* +* @description +* Get the signed number of full (rounded towards 0) minutes between the given dates. +* +* @param dateLeft - The later date +* @param dateRight - The earlier date +* @param options - An object with options. +* +* @returns The number of minutes +* +* @example +* // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? +* const result = differenceInMinutes( +* new Date(2014, 6, 2, 12, 20, 0), +* new Date(2014, 6, 2, 12, 7, 59) +* ) +* //=> 12 +* +* @example +* // How many minutes are between 10:01:59 and 10:00:00 +* const result = differenceInMinutes( +* new Date(2000, 0, 1, 10, 0, 0), +* new Date(2000, 0, 1, 10, 1, 59) +* ) +* //=> -1 +*/ +function _differenceInMinutes(dateLeft, dateRight, options) { + var diff = _differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/endOfDay.js +/** +* The {@link endOfDay} function options. +*/ +/** +* @name endOfDay +* @category Day Helpers +* @summary Return the end of a day for the given date. +* +* @description +* Return the end of a day for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a day +* +* @example +* // The end of a day for 2 September 2014 11:55:00: +* const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 02 2014 23:59:59.999 +*/ +function _endOfDay(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfMonth.js +/** +* The {@link endOfMonth} function options. +*/ +/** +* @name endOfMonth +* @category Month Helpers +* @summary Return the end of a month for the given date. +* +* @description +* Return the end of a month for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a month +* +* @example +* // The end of a month for 2 September 2014 11:55:00: +* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 23:59:59.999 +*/ +function _endOfMonth(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/isLastDayOfMonth.js +/** +* @name isLastDayOfMonth +* @category Month Helpers +* @summary Is the given date the last day of a month? +* +* @description +* Is the given date the last day of a month? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is the last day of a month +* +* @example +* // Is 28 February 2014 the last day of a month? +* const result = isLastDayOfMonth(new Date(2014, 1, 28)) +* //=> true +*/ +function _isLastDayOfMonth(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + return +_endOfDay(_date, options) === +_endOfMonth(_date, options); +} +//#endregion +//#region dist/date-fns/differenceInMonths.js +/** +* The {@link differenceInMonths} function options. +*/ +/** +* @name differenceInMonths +* @category Month Helpers +* @summary Get the number of full months between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full months +* +* @example +* // How many full months are between 31 January 2014 and 1 September 2014? +* const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) +* //=> 7 +*/ +function _differenceInMonths(laterDate, earlierDate, options) { + var _normalizeDates27 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, laterDate, earlierDate),_normalizeDates28 = _slicedToArray(_normalizeDates27, 3),laterDate_ = _normalizeDates28[0],workingLaterDate = _normalizeDates28[1],earlierDate_ = _normalizeDates28[2]; + var sign = _compareAsc(workingLaterDate, earlierDate_); + var difference = Math.abs(_differenceInCalendarMonths(workingLaterDate, earlierDate_)); + if (difference < 1) return 0; + if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27) workingLaterDate.setDate(30); + workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference); + var isLastMonthNotFull = _compareAsc(workingLaterDate, earlierDate_) === -sign; + if (_isLastDayOfMonth(laterDate_) && difference === 1 && _compareAsc(laterDate_, earlierDate_) === 1) isLastMonthNotFull = false; + var result = sign * (difference - +isLastMonthNotFull); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/differenceInQuarters.js +/** +* The {@link differenceInQuarters} function options. +*/ +/** +* @name differenceInQuarters +* @category Quarter Helpers +* @summary Get the number of quarters between the given dates. +* +* @description +* Get the number of quarters between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of full quarters +* +* @example +* // How many full quarters are between 31 December 2013 and 2 July 2014? +* const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) +* //=> 2 +*/ +function _differenceInQuarters(laterDate, earlierDate, options) { + var diff = _differenceInMonths(laterDate, earlierDate, options) / 3; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/differenceInSeconds.js +/** +* The {@link differenceInSeconds} function options. +*/ +/** +* @name differenceInSeconds +* @category Second Helpers +* @summary Get the number of seconds between the given dates. +* +* @description +* Get the number of seconds between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of seconds +* +* @example +* // How many seconds are between +* // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? +* const result = differenceInSeconds( +* new Date(2014, 6, 2, 12, 30, 20, 0), +* new Date(2014, 6, 2, 12, 30, 7, 999) +* ) +* //=> 12 +*/ +function _differenceInSeconds(laterDate, earlierDate, options) { + var diff = _differenceInMilliseconds(laterDate, earlierDate) / 1e3; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/differenceInWeeks.js +/** +* The {@link differenceInWeeks} function options. +*/ +/** +* @name differenceInWeeks +* @category Week Helpers +* @summary Get the number of full weeks between the given dates. +* +* @description +* Get the number of full weeks between two dates. Fractional weeks are +* truncated towards zero by default. +* +* One "full week" is the distance between a local time in one day to the same +* local time 7 days earlier or later. A full week can sometimes be less than +* or more than 7*24 hours if a daylight savings change happens between two dates. +* +* To ignore DST and only measure exact 7*24-hour periods, use this instead: +* `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full weeks +* +* @example +* // How many full weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) +* //=> 2 +* +* @example +* // How many full weeks are between +* // 1 March 2020 0:00 and 6 June 2020 0:00 ? +* // Note: because local time is used, the +* // result will always be 8 weeks (54 days), +* // even if DST starts and the period has +* // only 54*24-1 hours. +* const result = differenceInWeeks( +* new Date(2020, 5, 1), +* new Date(2020, 2, 6) +* ) +* //=> 8 +*/ +function _differenceInWeeks(laterDate, earlierDate, options) { + var diff = _differenceInDays(laterDate, earlierDate, options) / 7; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/differenceInYears.js +/** +* The {@link differenceInYears} function options. +*/ +/** +* @name differenceInYears +* @category Year Helpers +* @summary Get the number of full years between the given dates. +* +* @description +* Get the number of full years between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full years +* +* @example +* // How many full years are between 31 December 2013 and 11 February 2015? +* const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) +* //=> 1 +*/ +function _differenceInYears(laterDate, earlierDate, options) { + var _normalizeDates29 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates30 = _slicedToArray(_normalizeDates29, 2),laterDate_ = _normalizeDates30[0],earlierDate_ = _normalizeDates30[1]; + var sign = _compareAsc(laterDate_, earlierDate_); + var diff = Math.abs(_differenceInCalendarYears(laterDate_, earlierDate_)); + laterDate_.setFullYear(1584); + earlierDate_.setFullYear(1584); + var result = sign * (diff - +(_compareAsc(laterDate_, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/_lib/normalizeInterval.js +function normalizeInterval(context, interval) { + var _normalizeDates31 = normalizeDates(context, interval.start, interval.end),_normalizeDates32 = _slicedToArray(_normalizeDates31, 2),start = _normalizeDates32[0],end = _normalizeDates32[1]; + return { + start: start, + end: end + }; +} +//#endregion +//#region dist/date-fns/eachDayOfInterval.js +/** +* The {@link eachDayOfInterval} function options. +*/ +/** +* The {@link eachDayOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachDayOfInterval +* @category Interval Helpers +* @summary Return the array of dates within the specified time interval. +* +* @description +* Return the array of dates within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of days from the day of the interval start to the day of the interval end +* +* @example +* // Each day between 6 October 2014 and 10 October 2014: +* const result = eachDayOfInterval({ +* start: new Date(2014, 9, 6), +* end: new Date(2014, 9, 10) +* }) +* //=> [ +* // Mon Oct 06 2014 00:00:00, +* // Tue Oct 07 2014 00:00:00, +* // Wed Oct 08 2014 00:00:00, +* // Thu Oct 09 2014 00:00:00, +* // Fri Oct 10 2014 00:00:00 +* // ] +*/ +function _eachDayOfInterval(interval, options) {var _options$step; + var _normalizeInterval = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval.start,end = _normalizeInterval.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + var step = (_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date.setDate(date.getDate() + step); + date.setHours(0, 0, 0, 0); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/eachHourOfInterval.js +/** +* The {@link eachHourOfInterval} function options. +*/ +/** +* The {@link eachHourOfInterval} function result type. +* Resolves to the appropriate date type based on inputs. +*/ +/** +* @name eachHourOfInterval +* @category Interval Helpers +* @summary Return the array of hours within the specified time interval. +* +* @description +* Return the array of hours within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of hours from the hour of the interval start to the hour of the interval end +* +* @example +* // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 +* const result = eachHourOfInterval({ +* start: new Date(2014, 9, 6, 12), +* end: new Date(2014, 9, 6, 15) +* }); +* //=> [ +* // Mon Oct 06 2014 12:00:00, +* // Mon Oct 06 2014 13:00:00, +* // Mon Oct 06 2014 14:00:00, +* // Mon Oct 06 2014 15:00:00 +* // ] +*/ +function _eachHourOfInterval(interval, options) {var _options$step2; + var _normalizeInterval2 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval2.start,end = _normalizeInterval2.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setMinutes(0, 0, 0); + var step = (_options$step2 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step2 !== void 0 ? _options$step2 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date.setHours(date.getHours() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/eachMinuteOfInterval.js +/** +* The {@link eachMinuteOfInterval} function options. +*/ +/** +* The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachMinuteOfInterval +* @category Interval Helpers +* @summary Return the array of minutes within the specified time interval. +* +* @description +* Returns the array of minutes within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end +* +* @example +* // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 +* const result = eachMinuteOfInterval({ +* start: new Date(2014, 9, 14, 13), +* end: new Date(2014, 9, 14, 13, 3) +* }) +* //=> [ +* // Wed Oct 14 2014 13:00:00, +* // Wed Oct 14 2014 13:01:00, +* // Wed Oct 14 2014 13:02:00, +* // Wed Oct 14 2014 13:03:00 +* // ] +*/ +function _eachMinuteOfInterval(interval, options) {var _options$step3; + var _normalizeInterval3 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval3.start,end = _normalizeInterval3.end; + start.setSeconds(0, 0); + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + var step = (_options$step3 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step3 !== void 0 ? _options$step3 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date = _addMinutes(date, step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/eachMonthOfInterval.js +/** +* The {@link eachMonthOfInterval} function options. +*/ +/** +* The {@link eachMonthOfInterval} function result type. It resolves the proper data type. +*/ +/** +* @name eachMonthOfInterval +* @category Interval Helpers +* @summary Return the array of months within the specified time interval. +* +* @description +* Return the array of months within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of months from the month of the interval start to the month of the interval end +* +* @example +* // Each month between 6 February 2014 and 10 August 2014: +* const result = eachMonthOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2014, 7, 10) +* }) +* //=> [ +* // Sat Feb 01 2014 00:00:00, +* // Sat Mar 01 2014 00:00:00, +* // Tue Apr 01 2014 00:00:00, +* // Thu May 01 2014 00:00:00, +* // Sun Jun 01 2014 00:00:00, +* // Tue Jul 01 2014 00:00:00, +* // Fri Aug 01 2014 00:00:00 +* // ] +*/ +function _eachMonthOfInterval(interval, options) {var _options$step4; + var _normalizeInterval4 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval4.start,end = _normalizeInterval4.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setDate(1); + var step = (_options$step4 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step4 !== void 0 ? _options$step4 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date.setMonth(date.getMonth() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/startOfQuarter.js +/** +* The {@link startOfQuarter} function options. +*/ +/** +* @name startOfQuarter +* @category Quarter Helpers +* @summary Return the start of a year quarter for the given date. +* +* @description +* Return the start of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a quarter +* +* @example +* // The start of a quarter for 2 September 2014 11:55:00: +* const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Jul 01 2014 00:00:00 +*/ +function _startOfQuarter(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = _date.getMonth(); + var month = currentMonth - currentMonth % 3; + _date.setMonth(month, 1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/eachQuarterOfInterval.js +/** +* The {@link eachQuarterOfInterval} function options. +*/ +/** +* The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachQuarterOfInterval +* @category Interval Helpers +* @summary Return the array of quarters within the specified time interval. +* +* @description +* Return the array of quarters within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval +* @param options - An object with options +* +* @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end +* +* @example +* // Each quarter within interval 6 February 2014 - 10 August 2014: +* const result = eachQuarterOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2014, 7, 10), +* }) +* //=> [ +* // Wed Jan 01 2014 00:00:00, +* // Tue Apr 01 2014 00:00:00, +* // Tue Jul 01 2014 00:00:00, +* // ] +*/ +function _eachQuarterOfInterval(interval, options) {var _options$step5; + var _normalizeInterval5 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval5.start,end = _normalizeInterval5.end; + var reversed = +start > +end; + var endTime = reversed ? +_startOfQuarter(start) : +_startOfQuarter(end); + var date = reversed ? _startOfQuarter(end) : _startOfQuarter(start); + var step = (_options$step5 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step5 !== void 0 ? _options$step5 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date = _addQuarters(date, step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/eachWeekOfInterval.js +/** +* The {@link eachWeekOfInterval} function options. +*/ +/** +* The {@link eachWeekOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the interval start date, +* then the end interval date. If a context function is passed, it uses the context function return type. +*/ +/** +* @name eachWeekOfInterval +* @category Interval Helpers +* @summary Return the array of weeks within the specified time interval. +* +* @description +* Return the array of weeks within the specified time interval. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of weeks from the week of the interval start to the week of the interval end +* +* @example +* // Each week within interval 6 October 2014 - 23 November 2014: +* const result = eachWeekOfInterval({ +* start: new Date(2014, 9, 6), +* end: new Date(2014, 10, 23) +* }) +* //=> [ +* // Sun Oct 05 2014 00:00:00, +* // Sun Oct 12 2014 00:00:00, +* // Sun Oct 19 2014 00:00:00, +* // Sun Oct 26 2014 00:00:00, +* // Sun Nov 02 2014 00:00:00, +* // Sun Nov 09 2014 00:00:00, +* // Sun Nov 16 2014 00:00:00, +* // Sun Nov 23 2014 00:00:00 +* // ] +*/ +function _eachWeekOfInterval(interval, options) {var _options$step6; + var _normalizeInterval6 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval6.start,end = _normalizeInterval6.end; + var reversed = +start > +end; + var startDateWeek = reversed ? _startOfWeek(end, options) : _startOfWeek(start, options); + var endDateWeek = reversed ? _startOfWeek(start, options) : _startOfWeek(end, options); + startDateWeek.setHours(15); + endDateWeek.setHours(15); + var endTime = +endDateWeek.getTime(); + var currentDate = startDateWeek; + var step = (_options$step6 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step6 !== void 0 ? _options$step6 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+currentDate <= endTime) { + currentDate.setHours(0); + dates.push(_constructFrom(start, currentDate)); + currentDate = _addWeeks(currentDate, step); + currentDate.setHours(15); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/eachWeekendOfInterval.js +/** +* The {@link eachWeekendOfInterval} function options. +*/ +/** +* The {@link eachWeekendOfInterval} function result type. +*/ +/** +* @name eachWeekendOfInterval +* @category Interval Helpers +* @summary List all the Saturdays and Sundays in the given date interval. +* +* @description +* Get all the Saturdays and Sundays in the given date interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The given interval +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the given date interval +* const result = eachWeekendOfInterval({ +* start: new Date(2018, 8, 17), +* end: new Date(2018, 8, 30) +* }) +* //=> [ +* // Sat Sep 22 2018 00:00:00, +* // Sun Sep 23 2018 00:00:00, +* // Sat Sep 29 2018 00:00:00, +* // Sun Sep 30 2018 00:00:00 +* // ] +*/ +function _eachWeekendOfInterval(interval, options) { + var _normalizeInterval7 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval7.start,end = _normalizeInterval7.end; + var dateInterval = _eachDayOfInterval({ + start: start, + end: end + }, options); + var weekends = []; + var index = 0; + while (index < dateInterval.length) { + var date = dateInterval[index++]; + if (_isWeekend(date)) weekends.push(_constructFrom(start, date)); + } + return weekends; +} +//#endregion +//#region dist/date-fns/startOfMonth.js +/** +* The {@link startOfMonth} function options. +*/ +/** +* @name startOfMonth +* @category Month Helpers +* @summary Return the start of a month for the given date. +* +* @description +* Return the start of a month for the given date. The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. +* Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, +* or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a month +* +* @example +* // The start of a month for 2 September 2014 11:55:00: +* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function _startOfMonth(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setDate(1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/eachWeekendOfMonth.js +/** +* The {@link eachWeekendOfMonth} function options. +*/ +/** +* @name eachWeekendOfMonth +* @category Month Helpers +* @summary List all the Saturdays and Sundays in the given month. +* +* @description +* Get all the Saturdays and Sundays in the given month. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The given month +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the given month +* const result = eachWeekendOfMonth(new Date(2022, 1, 1)) +* //=> [ +* // Sat Feb 05 2022 00:00:00, +* // Sun Feb 06 2022 00:00:00, +* // Sat Feb 12 2022 00:00:00, +* // Sun Feb 13 2022 00:00:00, +* // Sat Feb 19 2022 00:00:00, +* // Sun Feb 20 2022 00:00:00, +* // Sat Feb 26 2022 00:00:00, +* // Sun Feb 27 2022 00:00:00 +* // ] +*/ +function _eachWeekendOfMonth(date, options) { + return _eachWeekendOfInterval({ + start: _startOfMonth(date, options), + end: _endOfMonth(date, options) + }, options); +} +//#endregion +//#region dist/date-fns/endOfYear.js +/** +* The {@link endOfYear} function options. +*/ +/** +* @name endOfYear +* @category Year Helpers +* @summary Return the end of a year for the given date. +* +* @description +* Return the end of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The end of a year +* +* @example +* // The end of a year for 2 September 2014 11:55:00: +* const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Wed Dec 31 2014 23:59:59.999 +*/ +function _endOfYear(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + _date.setFullYear(year + 1, 0, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/startOfYear.js +/** +* The {@link startOfYear} function options. +*/ +/** +* @name startOfYear +* @category Year Helpers +* @summary Return the start of a year for the given date. +* +* @description +* Return the start of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a year +* +* @example +* // The start of a year for 2 September 2014 11:55:00: +* const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) +* //=> Wed Jan 01 2014 00:00:00 +*/ +function _startOfYear(date, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + date_.setFullYear(date_.getFullYear(), 0, 1); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/eachWeekendOfYear.js +/** +* The {@link eachWeekendOfYear} function options. +*/ +/** +* @name eachWeekendOfYear +* @category Year Helpers +* @summary List all the Saturdays and Sundays in the year. +* +* @description +* Get all the Saturdays and Sundays in the year. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The given year +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the year +* const result = eachWeekendOfYear(new Date(2020, 1, 1)) +* //=> [ +* // Sat Jan 03 2020 00:00:00, +* // Sun Jan 04 2020 00:00:00, +* // ... +* // Sun Dec 27 2020 00:00:00 +* // ] +* ] +*/ +function _eachWeekendOfYear(date, options) { + return _eachWeekendOfInterval({ + start: _startOfYear(date, options), + end: _endOfYear(date, options) + }, options); +} +//#endregion +//#region dist/date-fns/eachYearOfInterval.js +/** +* The {@link eachYearOfInterval} function options. +*/ +/** +* The {@link eachYearOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachYearOfInterval +* @category Interval Helpers +* @summary Return the array of yearly timestamps within the specified time interval. +* +* @description +* Return the array of yearly timestamps within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end +* +* @example +* // Each year between 6 February 2014 and 10 August 2017: +* const result = eachYearOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2017, 7, 10) +* }) +* //=> [ +* // Wed Jan 01 2014 00:00:00, +* // Thu Jan 01 2015 00:00:00, +* // Fri Jan 01 2016 00:00:00, +* // Sun Jan 01 2017 00:00:00 +* // ] +*/ +function _eachYearOfInterval(interval, options) {var _options$step7; + var _normalizeInterval8 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval8.start,end = _normalizeInterval8.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setMonth(0, 1); + var step = (_options$step7 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step7 !== void 0 ? _options$step7 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(_constructFrom(start, date)); + date.setFullYear(date.getFullYear() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/endOfDecade.js +/** +* The {@link endOfDecade} function options. +*/ +/** +* @name endOfDecade +* @category Decade Helpers +* @summary Return the end of a decade for the given date. +* +* @description +* Return the end of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a decade +* +* @example +* // The end of a decade for 12 May 1984 00:00:00: +* const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) +* //=> Dec 31 1989 23:59:59.999 +*/ +function _endOfDecade(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade, 11, 31); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfHour.js +/** +* The {@link endOfHour} function options. +*/ +/** +* @name endOfHour +* @category Hour Helpers +* @summary Return the end of an hour for the given date. +* +* @description +* Return the end of an hour for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an hour +* +* @example +* // The end of an hour for 2 September 2014 11:55:00: +* const result = endOfHour(new Date(2014, 8, 2, 11, 55)) +* //=> Tue Sep 02 2014 11:59:59.999 +*/ +function _endOfHour(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMinutes(59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfWeek.js +/** +* The {@link endOfWeek} function options. +*/ +/** +* @name endOfWeek +* @category Week Helpers +* @summary Return the end of a week for the given date. +* +* @description +* Return the end of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a week +* +* @example +* // The end of a week for 2 September 2014 11:55:00: +* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sat Sep 06 2014 23:59:59.999 +* +* @example +* // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: +* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Sun Sep 07 2014 23:59:59.999 +*/ +function _endOfWeek(date, options) {var _ref4, _ref5, _ref6, _options$weekStartsOn2, _options$locale2, _defaultOptions$local2; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref4 = (_ref5 = (_ref6 = (_options$weekStartsOn2 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn2 !== void 0 ? _options$weekStartsOn2 : options === null || options === void 0 || (_options$locale2 = options.locale) === null || _options$locale2 === void 0 || (_options$locale2 = _options$locale2.options) === null || _options$locale2 === void 0 ? void 0 : _options$locale2.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : defaultOptions.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : (_defaultOptions$local2 = defaultOptions.locale) === null || _defaultOptions$local2 === void 0 || (_defaultOptions$local2 = _defaultOptions$local2.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : 0; + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + _date.setDate(_date.getDate() + diff); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfISOWeek.js +/** +* The {@link endOfISOWeek} function options. +*/ +/** +* @name endOfISOWeek +* @category ISO Week Helpers +* @summary Return the end of an ISO week for the given date. +* +* @description +* Return the end of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an ISO week +* +* @example +* // The end of an ISO week for 2 September 2014 11:55:00: +* const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Sep 07 2014 23:59:59.999 +*/ +function _endOfISOWeek(date, options) { + return _endOfWeek(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/endOfISOWeekYear.js +/** +* The {@link endOfISOWeekYear} function options. +*/ +/** +* @name endOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the end of an ISO week-numbering year for the given date. +* +* @description +* Return the end of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ContextDate - The `Date` type of the context function. +* +* @param date - The original date +* @param options - The options +* +* @returns The end of an ISO week-numbering year +* +* @example +* // The end of an ISO week-numbering year for 2 July 2005: +* const result = endOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Sun Jan 01 2006 23:59:59.999 +*/ +function _endOfISOWeekYear(date, options) { + var year = _getISOWeekYear(date, options); + var fourthOfJanuaryOfNextYear = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var _date = _startOfISOWeek(fourthOfJanuaryOfNextYear, options); + _date.setMilliseconds(_date.getMilliseconds() - 1); + return _date; +} +//#endregion +//#region dist/date-fns/endOfMinute.js +/** +* The {@link endOfMinute} function options. +*/ +/** +* @name endOfMinute +* @category Minute Helpers +* @summary Return the end of a minute for the given date. +* +* @description +* Return the end of a minute for the given date. +* The result will be in the local timezone or the provided context. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a minute +* +* @example +* // The end of a minute for 1 December 2014 22:15:45.400: +* const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:59.999 +*/ +function _endOfMinute(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setSeconds(59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfQuarter.js +/** +* The {@link endOfQuarter} function options. +*/ +/** +* @name endOfQuarter +* @category Quarter Helpers +* @summary Return the end of a year quarter for the given date. +* +* @description +* Return the end of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a quarter +* +* @example +* // The end of a quarter for 2 September 2014 11:55:00: +* const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 23:59:59.999 +*/ +function _endOfQuarter(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = _date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + _date.setMonth(month, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfSecond.js +/** +* The {@link endOfSecond} function options. +*/ +/** +* @name endOfSecond +* @category Second Helpers +* @summary Return the end of a second for the given date. +* +* @description +* Return the end of a second for the given date. +* The result will be in the local timezone if no `in` option is specified. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a second +* +* @example +* // The end of a second for 1 December 2014 22:15:45.400: +* const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:45.999 +*/ +function _endOfSecond(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMilliseconds(999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfToday.js +/** +* The {@link endOfToday} function options. +*/ +/** +* @name endOfToday +* @category Day Helpers +* @summary Return the end of today. +* @pure false +* +* @description +* Return the end of today. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param options - The options +* +* @returns The end of today +* +* @example +* // If today is 6 October 2014: +* const result = endOfToday() +* //=> Mon Oct 6 2014 23:59:59.999 +*/ +function _endOfToday(options) { + return _endOfDay(Date.now(), options); +} +//#endregion +//#region dist/date-fns/endOfTomorrow.js +/** +* The {@link endOfTomorrow} function options. +*/ +/** +* @name endOfTomorrow +* @category Day Helpers +* @summary Return the end of tomorrow. +* @pure false +* +* @description +* Return the end of tomorrow. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param options - The options +* @returns The end of tomorrow +* +* @example +* // If today is 6 October 2014: +* const result = endOfTomorrow() +* //=> Tue Oct 7 2014 23:59:59.999 +*/ +function _endOfTomorrow(options) { + var now = _constructNow(options === null || options === void 0 ? void 0 : options.in); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = _constructNow(options === null || options === void 0 ? void 0 : options.in); + date.setFullYear(year, month, day + 1); + date.setHours(23, 59, 59, 999); + return options !== null && options !== void 0 && options.in ? options.in(date) : date; +} +//#endregion +//#region dist/date-fns/endOfYesterday.js +/** +* The {@link endOfYesterday} function options. +*/ +/** +* @name endOfYesterday +* @category Day Helpers +* @summary Return the end of yesterday. +* @pure false +* +* @description +* Return the end of yesterday. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @returns The end of yesterday +* +* @example +* // If today is 6 October 2014: +* const result = endOfYesterday() +* //=> Sun Oct 5 2014 23:59:59.999 +*/ +function _endOfYesterday(options) { + var now = _constructNow(options === null || options === void 0 ? void 0 : options.in); + var date = _constructFrom(options === null || options === void 0 ? void 0 : options.in, 0); + date.setFullYear(now.getFullYear(), now.getMonth(), now.getDate() - 1); + date.setHours(23, 59, 59, 999); + return date; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance$1 = function formatDistance$1(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative$1 = function formatRelative$1(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US.js +/** +* @category Locales +* @summary English locale (United States). +* @language English +* @iso-639-2 eng +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var enUS = { + code: "en-US", + formatDistance: formatDistance$1, + formatLong: formatLong, + formatRelative: formatRelative$1, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/getDayOfYear.js +/** +* The {@link getDayOfYear} function options. +*/ +/** +* @name getDayOfYear +* @category Day Helpers +* @summary Get the day of the year of the given date. +* +* @description +* Get the day of the year of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The day of year +* +* @example +* // Which day of the year is 2 July 2014? +* const result = getDayOfYear(new Date(2014, 6, 2)) +* //=> 183 +*/ +function _getDayOfYear(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + return _differenceInCalendarDays(_date, _startOfYear(_date)) + 1; +} +//#endregion +//#region dist/date-fns/getISOWeek.js +/** +* The {@link getISOWeek} function options. +*/ +/** +* @name getISOWeek +* @category ISO Week Helpers +* @summary Get the ISO week of the given date. +* +* @description +* Get the ISO week of the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - The options +* +* @returns The ISO week +* +* @example +* // Which week of the ISO-week numbering year is 2 January 2005? +* const result = getISOWeek(new Date(2005, 0, 2)) +* //=> 53 +*/ +function _getISOWeek(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = +_startOfISOWeek(_date) - +_startOfISOWeekYear(_date); + return Math.round(diff / millisecondsInWeek) + 1; +} +//#endregion +//#region dist/date-fns/getWeekYear.js +/** +* The {@link getWeekYear} function options. +*/ +/** +* @name getWeekYear +* @category Week-Numbering Year Helpers +* @summary Get the local week-numbering year of the given date. +* +* @description +* Get the local week-numbering year of the given date. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The local week-numbering year +* +* @example +* // Which week numbering year is 26 December 2004 with the default settings? +* const result = getWeekYear(new Date(2004, 11, 26)) +* //=> 2005 +* +* @example +* // Which week numbering year is 26 December 2004 if week starts on Saturday? +* const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) +* //=> 2004 +* +* @example +* // Which week numbering year is 26 December 2004 if the first week contains 4 January? +* const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) +* //=> 2004 +*/ +function _getWeekYear(date, options) {var _ref7, _ref8, _ref9, _options$firstWeekCon, _options$locale3, _defaultOptions$local3; + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref7 = (_ref8 = (_ref9 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 || (_options$locale3 = options.locale) === null || _options$locale3 === void 0 || (_options$locale3 = _options$locale3.options) === null || _options$locale3 === void 0 ? void 0 : _options$locale3.firstWeekContainsDate) !== null && _ref9 !== void 0 ? _ref9 : defaultOptions.firstWeekContainsDate) !== null && _ref8 !== void 0 ? _ref8 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 || (_defaultOptions$local3 = _defaultOptions$local3.options) === null || _defaultOptions$local3 === void 0 ? void 0 : _defaultOptions$local3.firstWeekContainsDate) !== null && _ref7 !== void 0 ? _ref7 : 1; + var firstWeekOfNextYear = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = _startOfWeek(firstWeekOfNextYear, options); + var firstWeekOfThisYear = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = _startOfWeek(firstWeekOfThisYear, options); + if (+_date >= +startOfNextYear) return year + 1;else + if (+_date >= +startOfThisYear) return year;else + return year - 1; +} +//#endregion +//#region dist/date-fns/startOfWeekYear.js +/** +* The {@link startOfWeekYear} function options. +*/ +/** +* @name startOfWeekYear +* @category Week-Numbering Year Helpers +* @summary Return the start of a local week-numbering year for the given date. +* +* @description +* Return the start of a local week-numbering year. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week-numbering year +* +* @example +* // The start of an a week-numbering year for 2 July 2005 with default settings: +* const result = startOfWeekYear(new Date(2005, 6, 2)) +* //=> Sun Dec 26 2004 00:00:00 +* +* @example +* // The start of a week-numbering year for 2 July 2005 +* // if Monday is the first day of week +* // and 4 January is always in the first week of the year: +* const result = startOfWeekYear(new Date(2005, 6, 2), { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Mon Jan 03 2005 00:00:00 +*/ +function _startOfWeekYear(date, options) {var _ref0, _ref1, _ref10, _options$firstWeekCon2, _options$locale4, _defaultOptions$local4; + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref0 = (_ref1 = (_ref10 = (_options$firstWeekCon2 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon2 !== void 0 ? _options$firstWeekCon2 : options === null || options === void 0 || (_options$locale4 = options.locale) === null || _options$locale4 === void 0 || (_options$locale4 = _options$locale4.options) === null || _options$locale4 === void 0 ? void 0 : _options$locale4.firstWeekContainsDate) !== null && _ref10 !== void 0 ? _ref10 : defaultOptions.firstWeekContainsDate) !== null && _ref1 !== void 0 ? _ref1 : (_defaultOptions$local4 = defaultOptions.locale) === null || _defaultOptions$local4 === void 0 || (_defaultOptions$local4 = _defaultOptions$local4.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.firstWeekContainsDate) !== null && _ref0 !== void 0 ? _ref0 : 1; + var year = _getWeekYear(date, options); + var firstWeek = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + return _startOfWeek(firstWeek, options); +} +//#endregion +//#region dist/date-fns/getWeek.js +/** +* The {@link getWeek} function options. +*/ +/** +* @name getWeek +* @category Week Helpers +* @summary Get the local week index of the given date. +* +* @description +* Get the local week index of the given date. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @param date - The given date +* @param options - An object with options +* +* @returns The week +* +* @example +* // Which week of the local week numbering year is 2 January 2005 with default options? +* const result = getWeek(new Date(2005, 0, 2)) +* //=> 2 +* +* @example +* // Which week of the local week numbering year is 2 January 2005, +* // if Monday is the first day of the week, +* // and the first week of the year always contains 4 January? +* const result = getWeek(new Date(2005, 0, 2), { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> 53 +*/ +function _getWeek(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = +_startOfWeek(_date, options) - +_startOfWeekYear(_date, options); + return Math.round(diff / millisecondsInWeek) + 1; +} +//#endregion +//#region dist/date-fns/_lib/addLeadingZeros.js +function addLeadingZeros(number, targetLength) { + return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0"); +} +//#endregion +//#region dist/date-fns/_lib/format/lightFormatters.js +var _lightFormatters = { + y: function y(date, token) { + var signedYear = date.getFullYear(); + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return addLeadingZeros(token === "yy" ? year % 100 : year, token.length); + }, + M: function M(date, token) { + var month = date.getMonth(); + return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + d: function d(date, token) { + return addLeadingZeros(date.getDate(), token.length); + }, + a: function a(date, token) { + var dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "a": + case "aa":return dayPeriodEnumValue.toUpperCase(); + case "aaa":return dayPeriodEnumValue; + case "aaaaa":return dayPeriodEnumValue[0]; + default:return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; + } + }, + h: function h(date, token) { + return addLeadingZeros(date.getHours() % 12 || 12, token.length); + }, + H: function H(date, token) { + return addLeadingZeros(date.getHours(), token.length); + }, + m: function m(date, token) { + return addLeadingZeros(date.getMinutes(), token.length); + }, + s: function s(date, token) { + return addLeadingZeros(date.getSeconds(), token.length); + }, + S: function S(date, token) { + var numberOfDigits = token.length; + var milliseconds = date.getMilliseconds(); + return addLeadingZeros(Math.trunc(milliseconds * Math.pow(10, numberOfDigits - 3)), token.length); + } +}; +//#endregion +//#region dist/date-fns/_lib/format/formatters.js +var dayPeriodEnum = { + am: "am", + pm: "pm", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" +}; +var _formatters = { + G: function G(date, token, localize) { + var era = date.getFullYear() > 0 ? 1 : 0; + switch (token) { + case "G": + case "GG": + case "GGG":return localize.era(era, { width: "abbreviated" }); + case "GGGGG":return localize.era(era, { width: "narrow" }); + default:return localize.era(era, { width: "wide" }); + } + }, + y: function y(date, token, localize) { + if (token === "yo") { + var signedYear = date.getFullYear(); + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { unit: "year" }); + } + return _lightFormatters.y(date, token); + }, + Y: function Y(date, token, localize, options) { + var signedWeekYear = _getWeekYear(date, options); + var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; + if (token === "YY") return addLeadingZeros(weekYear % 100, 2); + if (token === "Yo") return localize.ordinalNumber(weekYear, { unit: "year" }); + return addLeadingZeros(weekYear, token.length); + }, + R: function R(date, token) { + return addLeadingZeros(_getISOWeekYear(date), token.length); + }, + u: function u(date, token) { + return addLeadingZeros(date.getFullYear(), token.length); + }, + Q: function Q(date, token, localize) { + var quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + case "Q":return String(quarter); + case "QQ":return addLeadingZeros(quarter, 2); + case "Qo":return localize.ordinalNumber(quarter, { unit: "quarter" }); + case "QQQ":return localize.quarter(quarter, { + width: "abbreviated", + context: "formatting" + }); + case "QQQQQ":return localize.quarter(quarter, { + width: "narrow", + context: "formatting" + }); + default:return localize.quarter(quarter, { + width: "wide", + context: "formatting" + }); + } + }, + q: function q(date, token, localize) { + var quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + case "q":return String(quarter); + case "qq":return addLeadingZeros(quarter, 2); + case "qo":return localize.ordinalNumber(quarter, { unit: "quarter" }); + case "qqq":return localize.quarter(quarter, { + width: "abbreviated", + context: "standalone" + }); + case "qqqqq":return localize.quarter(quarter, { + width: "narrow", + context: "standalone" + }); + default:return localize.quarter(quarter, { + width: "wide", + context: "standalone" + }); + } + }, + M: function M(date, token, localize) { + var month = date.getMonth(); + switch (token) { + case "M": + case "MM":return _lightFormatters.M(date, token); + case "Mo":return localize.ordinalNumber(month + 1, { unit: "month" }); + case "MMM":return localize.month(month, { + width: "abbreviated", + context: "formatting" + }); + case "MMMMM":return localize.month(month, { + width: "narrow", + context: "formatting" + }); + default:return localize.month(month, { + width: "wide", + context: "formatting" + }); + } + }, + L: function L(date, token, localize) { + var month = date.getMonth(); + switch (token) { + case "L":return String(month + 1); + case "LL":return addLeadingZeros(month + 1, 2); + case "Lo":return localize.ordinalNumber(month + 1, { unit: "month" }); + case "LLL":return localize.month(month, { + width: "abbreviated", + context: "standalone" + }); + case "LLLLL":return localize.month(month, { + width: "narrow", + context: "standalone" + }); + default:return localize.month(month, { + width: "wide", + context: "standalone" + }); + } + }, + w: function w(date, token, localize, options) { + var week = _getWeek(date, options); + if (token === "wo") return localize.ordinalNumber(week, { unit: "week" }); + return addLeadingZeros(week, token.length); + }, + I: function I(date, token, localize) { + var isoWeek = _getISOWeek(date); + if (token === "Io") return localize.ordinalNumber(isoWeek, { unit: "week" }); + return addLeadingZeros(isoWeek, token.length); + }, + d: function d(date, token, localize) { + if (token === "do") return localize.ordinalNumber(date.getDate(), { unit: "date" }); + return _lightFormatters.d(date, token); + }, + D: function D(date, token, localize) { + var dayOfYear = _getDayOfYear(date); + if (token === "Do") return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); + return addLeadingZeros(dayOfYear, token.length); + }, + E: function E(date, token, localize) { + var dayOfWeek = date.getDay(); + switch (token) { + case "E": + case "EE": + case "EEE":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "EEEEE":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "EEEEEE":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + e: function e(date, token, localize, options) { + var dayOfWeek = date.getDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + case "e":return String(localDayOfWeek); + case "ee":return addLeadingZeros(localDayOfWeek, 2); + case "eo":return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "eee":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "eeeee":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "eeeeee":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + c: function c(date, token, localize, options) { + var dayOfWeek = date.getDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + case "c":return String(localDayOfWeek); + case "cc":return addLeadingZeros(localDayOfWeek, token.length); + case "co":return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "ccc":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "standalone" + }); + case "ccccc":return localize.day(dayOfWeek, { + width: "narrow", + context: "standalone" + }); + case "cccccc":return localize.day(dayOfWeek, { + width: "short", + context: "standalone" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "standalone" + }); + } + }, + i: function i(date, token, localize) { + var dayOfWeek = date.getDay(); + var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + switch (token) { + case "i":return String(isoDayOfWeek); + case "ii":return addLeadingZeros(isoDayOfWeek, token.length); + case "io":return localize.ordinalNumber(isoDayOfWeek, { unit: "day" }); + case "iii":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "iiiii":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "iiiiii":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + a: function a(date, token, localize) { + var dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "a": + case "aa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "aaa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }).toLowerCase(); + case "aaaaa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + b: function b(date, token, localize) { + var hours = date.getHours(); + var dayPeriodEnumValue; + if (hours === 12) dayPeriodEnumValue = dayPeriodEnum.noon;else + if (hours === 0) dayPeriodEnumValue = dayPeriodEnum.midnight;else + dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "b": + case "bb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "bbb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }).toLowerCase(); + case "bbbbb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + B: function B(date, token, localize) { + var hours = date.getHours(); + var dayPeriodEnumValue; + if (hours >= 17) dayPeriodEnumValue = dayPeriodEnum.evening;else + if (hours >= 12) dayPeriodEnumValue = dayPeriodEnum.afternoon;else + if (hours >= 4) dayPeriodEnumValue = dayPeriodEnum.morning;else + dayPeriodEnumValue = dayPeriodEnum.night; + switch (token) { + case "B": + case "BB": + case "BBB":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "BBBBB":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + h: function h(date, token, localize) { + if (token === "ho") { + var hours = date.getHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { unit: "hour" }); + } + return _lightFormatters.h(date, token); + }, + H: function H(date, token, localize) { + if (token === "Ho") return localize.ordinalNumber(date.getHours(), { unit: "hour" }); + return _lightFormatters.H(date, token); + }, + K: function K(date, token, localize) { + var hours = date.getHours() % 12; + if (token === "Ko") return localize.ordinalNumber(hours, { unit: "hour" }); + return addLeadingZeros(hours, token.length); + }, + k: function k(date, token, localize) { + var hours = date.getHours(); + if (hours === 0) hours = 24; + if (token === "ko") return localize.ordinalNumber(hours, { unit: "hour" }); + return addLeadingZeros(hours, token.length); + }, + m: function m(date, token, localize) { + if (token === "mo") return localize.ordinalNumber(date.getMinutes(), { unit: "minute" }); + return _lightFormatters.m(date, token); + }, + s: function s(date, token, localize) { + if (token === "so") return localize.ordinalNumber(date.getSeconds(), { unit: "second" }); + return _lightFormatters.s(date, token); + }, + S: function S(date, token) { + return _lightFormatters.S(date, token); + }, + X: function X(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + if (timezoneOffset === 0) return "Z"; + switch (token) { + case "X":return formatTimezoneWithOptionalMinutes(timezoneOffset); + case "XXXX": + case "XX":return formatTimezone(timezoneOffset); + default:return formatTimezone(timezoneOffset, ":"); + } + }, + x: function x(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "x":return formatTimezoneWithOptionalMinutes(timezoneOffset); + case "xxxx": + case "xx":return formatTimezone(timezoneOffset); + default:return formatTimezone(timezoneOffset, ":"); + } + }, + O: function O(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "O": + case "OO": + case "OOO":return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + default:return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + z: function z(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "z": + case "zz": + case "zzz":return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + default:return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + t: function t(date, token, _localize) { + return addLeadingZeros(Math.trunc(+date / 1e3), token.length); + }, + T: function T(date, token, _localize) { + return addLeadingZeros(+date, token.length); + } +}; +function formatTimezoneShort(offset) {var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var sign = offset > 0 ? "-" : "+"; + var absOffset = Math.abs(offset); + var hours = Math.trunc(absOffset / 60); + var minutes = absOffset % 60; + if (minutes === 0) return sign + String(hours); + return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); +} +function formatTimezoneWithOptionalMinutes(offset, delimiter) { + if (offset % 60 === 0) return (offset > 0 ? "-" : "+") + addLeadingZeros(Math.abs(offset) / 60, 2); + return formatTimezone(offset, delimiter); +} +function formatTimezone(offset) {var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var sign = offset > 0 ? "-" : "+"; + var absOffset = Math.abs(offset); + var hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); + var minutes = addLeadingZeros(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} +//#endregion +//#region dist/date-fns/_lib/format/longFormatters.js +var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { + switch (pattern) { + case "P":return formatLong.date({ width: "short" }); + case "PP":return formatLong.date({ width: "medium" }); + case "PPP":return formatLong.date({ width: "long" }); + default:return formatLong.date({ width: "full" }); + } +}; +var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { + switch (pattern) { + case "p":return formatLong.time({ width: "short" }); + case "pp":return formatLong.time({ width: "medium" }); + case "ppp":return formatLong.time({ width: "long" }); + default:return formatLong.time({ width: "full" }); + } +}; +var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { + var matchResult = pattern.match(/(P+)(p+)?/) || []; + var datePattern = matchResult[1]; + var timePattern = matchResult[2]; + if (!timePattern) return dateLongFormatter(pattern, formatLong); + var dateTimeFormat; + switch (datePattern) { + case "P": + dateTimeFormat = formatLong.dateTime({ width: "short" }); + break; + case "PP": + dateTimeFormat = formatLong.dateTime({ width: "medium" }); + break; + case "PPP": + dateTimeFormat = formatLong.dateTime({ width: "long" }); + break; + default: + dateTimeFormat = formatLong.dateTime({ width: "full" }); + break; + } + return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong)).replace("{{time}}", timeLongFormatter(timePattern, formatLong)); +}; +var _longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter +}; +//#endregion +//#region dist/date-fns/_lib/protectedTokens.js +var dayOfYearTokenRE = /^D+$/; +var weekYearTokenRE = /^Y+$/; +var throwTokens = [ +"D", +"DD", +"YY", +"YYYY"]; + +function isProtectedDayOfYearToken(token) { + return dayOfYearTokenRE.test(token); +} +function isProtectedWeekYearToken(token) { + return weekYearTokenRE.test(token); +} +function warnOrThrowProtectedError(token, format, input) { + var _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} +function message(token, format, input) { + var subject = token[0] === "Y" ? "years" : "days of the month"; + return "Use `".concat(token.toLowerCase(), "` instead of `").concat(token, "` (in `").concat(format, "`) for formatting ").concat(subject, " to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"); +} +//#endregion +//#region dist/date-fns/format.js +var formattingTokensRegExp$2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; +var longFormattingTokensRegExp$1 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp$2 = /^'([^]*?)'?$/; +var doubleQuoteRegExp$2 = /''/g; +var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/; +/** +* The {@link format} function options. +*/ +/** +* @name format +* @alias formatDate +* @category Common Helpers +* @summary Format the date. +* +* @description +* Return the formatted date string in the given format. The result may vary by locale. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* (see the last example) +* +* Format of the string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 7 below the table). +* +* Accepted patterns: +* | Unit | Pattern | Result examples | Notes | +* |---------------------------------|---------|-----------------------------------|-------| +* | Era | G..GGG | AD, BC | | +* | | GGGG | Anno Domini, Before Christ | 2 | +* | | GGGGG | A, B | | +* | Calendar year | y | 44, 1, 1900, 2017 | 5 | +* | | yo | 44th, 1st, 0th, 17th | 5,7 | +* | | yy | 44, 01, 00, 17 | 5 | +* | | yyy | 044, 001, 1900, 2017 | 5 | +* | | yyyy | 0044, 0001, 1900, 2017 | 5 | +* | | yyyyy | ... | 3,5 | +* | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | +* | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | +* | | YY | 44, 01, 00, 17 | 5,8 | +* | | YYY | 044, 001, 1900, 2017 | 5 | +* | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | +* | | YYYYY | ... | 3,5 | +* | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | +* | | RR | -43, 00, 01, 1900, 2017 | 5,7 | +* | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | +* | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | +* | | RRRRR | ... | 3,5,7 | +* | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | +* | | uu | -43, 01, 1900, 2017 | 5 | +* | | uuu | -043, 001, 1900, 2017 | 5 | +* | | uuuu | -0043, 0001, 1900, 2017 | 5 | +* | | uuuuu | ... | 3,5 | +* | Quarter (formatting) | Q | 1, 2, 3, 4 | | +* | | Qo | 1st, 2nd, 3rd, 4th | 7 | +* | | QQ | 01, 02, 03, 04 | | +* | | QQQ | Q1, Q2, Q3, Q4 | | +* | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | q | 1, 2, 3, 4 | | +* | | qo | 1st, 2nd, 3rd, 4th | 7 | +* | | qq | 01, 02, 03, 04 | | +* | | qqq | Q1, Q2, Q3, Q4 | | +* | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | qqqqq | 1, 2, 3, 4 | 4 | +* | Month (formatting) | M | 1, 2, ..., 12 | | +* | | Mo | 1st, 2nd, ..., 12th | 7 | +* | | MM | 01, 02, ..., 12 | | +* | | MMM | Jan, Feb, ..., Dec | | +* | | MMMM | January, February, ..., December | 2 | +* | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | L | 1, 2, ..., 12 | | +* | | Lo | 1st, 2nd, ..., 12th | 7 | +* | | LL | 01, 02, ..., 12 | | +* | | LLL | Jan, Feb, ..., Dec | | +* | | LLLL | January, February, ..., December | 2 | +* | | LLLLL | J, F, ..., D | | +* | Local week of year | w | 1, 2, ..., 53 | | +* | | wo | 1st, 2nd, ..., 53th | 7 | +* | | ww | 01, 02, ..., 53 | | +* | ISO week of year | I | 1, 2, ..., 53 | 7 | +* | | Io | 1st, 2nd, ..., 53th | 7 | +* | | II | 01, 02, ..., 53 | 7 | +* | Day of month | d | 1, 2, ..., 31 | | +* | | do | 1st, 2nd, ..., 31st | 7 | +* | | dd | 01, 02, ..., 31 | | +* | Day of year | D | 1, 2, ..., 365, 366 | 9 | +* | | Do | 1st, 2nd, ..., 365th, 366th | 7 | +* | | DD | 01, 02, ..., 365, 366 | 9 | +* | | DDD | 001, 002, ..., 365, 366 | | +* | | DDDD | ... | 3 | +* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | +* | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | EEEEE | M, T, W, T, F, S, S | | +* | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | +* | | io | 1st, 2nd, ..., 7th | 7 | +* | | ii | 01, 02, ..., 07 | 7 | +* | | iii | Mon, Tue, Wed, ..., Sun | 7 | +* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | +* | | iiiii | M, T, W, T, F, S, S | 7 | +* | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | +* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | +* | | eo | 2nd, 3rd, ..., 1st | 7 | +* | | ee | 02, 03, ..., 01 | | +* | | eee | Mon, Tue, Wed, ..., Sun | | +* | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | eeeee | M, T, W, T, F, S, S | | +* | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | +* | | co | 2nd, 3rd, ..., 1st | 7 | +* | | cc | 02, 03, ..., 01 | | +* | | ccc | Mon, Tue, Wed, ..., Sun | | +* | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | ccccc | M, T, W, T, F, S, S | | +* | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | a..aa | AM, PM | | +* | | aaa | am, pm | | +* | | aaaa | a.m., p.m. | 2 | +* | | aaaaa | a, p | | +* | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | +* | | bbb | am, pm, noon, midnight | | +* | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | bbbbb | a, p, n, mi | | +* | Flexible day period | B..BBB | at night, in the morning, ... | | +* | | BBBB | at night, in the morning, ... | 2 | +* | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | h | 1, 2, ..., 11, 12 | | +* | | ho | 1st, 2nd, ..., 11th, 12th | 7 | +* | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | H | 0, 1, 2, ..., 23 | | +* | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | +* | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | K | 1, 2, ..., 11, 0 | | +* | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | +* | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | k | 24, 1, 2, ..., 23 | | +* | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | +* | | kk | 24, 01, 02, ..., 23 | | +* | Minute | m | 0, 1, ..., 59 | | +* | | mo | 0th, 1st, ..., 59th | 7 | +* | | mm | 00, 01, ..., 59 | | +* | Second | s | 0, 1, ..., 59 | | +* | | so | 0th, 1st, ..., 59th | 7 | +* | | ss | 00, 01, ..., 59 | | +* | Fraction of second | S | 0, 1, ..., 9 | | +* | | SS | 00, 01, ..., 99 | | +* | | SSS | 000, 001, ..., 999 | | +* | | SSSS | ... | 3 | +* | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | +* | | XX | -0800, +0530, Z | | +* | | XXX | -08:00, +05:30, Z | | +* | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | +* | | xx | -0800, +0530, +0000 | | +* | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | xxxx | -0800, +0530, +0000, +123456 | | +* | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | +* | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | +* | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | +* | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | +* | Seconds timestamp | t | 512969520 | 7 | +* | | tt | ... | 3,7 | +* | Milliseconds timestamp | T | 512969520900 | 7 | +* | | TT | ... | 3,7 | +* | Long localized date | P | 04/29/1453 | 7 | +* | | PP | Apr 29, 1453 | 7 | +* | | PPP | April 29th, 1453 | 7 | +* | | PPPP | Friday, April 29th, 1453 | 2,7 | +* | Long localized time | p | 12:00 AM | 7 | +* | | pp | 12:00:00 AM | 7 | +* | | ppp | 12:00:00 AM GMT+2 | 7 | +* | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | +* | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | +* | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | +* | | PPPppp | April 29th, 1453 at ... | 7 | +* | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) +* the output will be the same as default pattern for this unit, usually +* the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units +* are marked with "2" in the last column of the table. +* +* `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` +* +* `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` +* +* `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` +* +* `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` +* +* `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` +* +* 3. Some patterns could be unlimited length (such as `yyyyyyyy`). +* The output will be padded with zeros to match the length of the pattern. +* +* `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` +* +* 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 5. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` always returns the last two digits of a year, +* while `uu` pads single digit years to 2 characters and returns other years unchanged: +* +* | Year | `yy` | `uu` | +* |------|------|------| +* | 1 | 01 | 01 | +* | 14 | 14 | 14 | +* | 376 | 76 | 376 | +* | 1453 | 53 | 1453 | +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) +* and [getWeekYear](https://date-fns.org/docs/getWeekYear)). +* +* 6. Specific non-location timezones are currently unavailable in `date-fns`, +* so right now these tokens fall back to GMT timezones. +* +* 7. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `t`: seconds timestamp +* - `T`: milliseconds timestamp +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @param date - The original date +* @param format - The string of tokens +* @param options - An object with options +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* @throws `options.locale` must contain `localize` property +* @throws `options.locale` must contain `formatLong` property +* @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Represent 11 February 2014 in middle-endian format: +* const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') +* //=> '02/11/2014' +* +* @example +* // Represent 2 July 2014 in Esperanto: +* import { eoLocale } from 'date-fns/locale/eo' +* const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { +* locale: eoLocale +* }) +* //=> '2-a de julio 2014' +* +* @example +* // Escape string by single quote characters: +* const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") +* //=> "3 o'clock" +*/ +function _format(date, formatStr, options) {var _ref11, _options$locale5, _ref12, _ref13, _ref14, _options$firstWeekCon3, _options$locale6, _defaultOptions$local5, _ref15, _ref16, _ref17, _options$weekStartsOn3, _options$locale7, _defaultOptions$local6; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref11 = (_options$locale5 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale5 !== void 0 ? _options$locale5 : defaultOptions.locale) !== null && _ref11 !== void 0 ? _ref11 : enUS; + var firstWeekContainsDate = (_ref12 = (_ref13 = (_ref14 = (_options$firstWeekCon3 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon3 !== void 0 ? _options$firstWeekCon3 : options === null || options === void 0 || (_options$locale6 = options.locale) === null || _options$locale6 === void 0 || (_options$locale6 = _options$locale6.options) === null || _options$locale6 === void 0 ? void 0 : _options$locale6.firstWeekContainsDate) !== null && _ref14 !== void 0 ? _ref14 : defaultOptions.firstWeekContainsDate) !== null && _ref13 !== void 0 ? _ref13 : (_defaultOptions$local5 = defaultOptions.locale) === null || _defaultOptions$local5 === void 0 || (_defaultOptions$local5 = _defaultOptions$local5.options) === null || _defaultOptions$local5 === void 0 ? void 0 : _defaultOptions$local5.firstWeekContainsDate) !== null && _ref12 !== void 0 ? _ref12 : 1; + var weekStartsOn = (_ref15 = (_ref16 = (_ref17 = (_options$weekStartsOn3 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn3 !== void 0 ? _options$weekStartsOn3 : options === null || options === void 0 || (_options$locale7 = options.locale) === null || _options$locale7 === void 0 || (_options$locale7 = _options$locale7.options) === null || _options$locale7 === void 0 ? void 0 : _options$locale7.weekStartsOn) !== null && _ref17 !== void 0 ? _ref17 : defaultOptions.weekStartsOn) !== null && _ref16 !== void 0 ? _ref16 : (_defaultOptions$local6 = defaultOptions.locale) === null || _defaultOptions$local6 === void 0 || (_defaultOptions$local6 = _defaultOptions$local6.options) === null || _defaultOptions$local6 === void 0 ? void 0 : _defaultOptions$local6.weekStartsOn) !== null && _ref15 !== void 0 ? _ref15 : 0; + var originalDate = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (!_isValid(originalDate)) throw new RangeError("Invalid time value"); + var parts = formatStr.match(longFormattingTokensRegExp$1).map(function (substring) { + var firstCharacter = substring[0]; + if (firstCharacter === "p" || firstCharacter === "P") { + var longFormatter = _longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }).join("").match(formattingTokensRegExp$2).map(function (substring) { + if (substring === "''") return { + isToken: false, + value: "'" + }; + var firstCharacter = substring[0]; + if (firstCharacter === "'") return { + isToken: false, + value: cleanEscapedString$2(substring) + }; + if (_formatters[firstCharacter]) return { + isToken: true, + value: substring + }; + if (firstCharacter.match(unescapedLatinCharacterRegExp$2)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + return { + isToken: false, + value: substring + }; + }); + if (locale.localize.preprocessor) parts = locale.localize.preprocessor(originalDate, parts); + var formatterOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; + return parts.map(function (part) { + if (!part.isToken) return part.value; + var token = part.value; + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token) || !(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) warnOrThrowProtectedError(token, formatStr, String(date)); + var formatter = _formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); + }).join(""); +} +function cleanEscapedString$2(input) { + var matched = input.match(escapedStringRegExp$2); + if (!matched) return input; + return matched[1].replace(doubleQuoteRegExp$2, "'"); +} +//#endregion +//#region dist/date-fns/formatDistance.js +/** +* The {@link formatDistance} function options. +*/ +/** +* @name formatDistance +* @category Common Helpers +* @summary Return the distance between the given dates in words. +* +* @description +* Return the distance between the given dates in words. +* +* | Distance between dates | Result | +* |-------------------------------------------------------------------|---------------------| +* | 0 ... 30 secs | less than a minute | +* | 30 secs ... 1 min 30 secs | 1 minute | +* | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | +* | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | +* | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | +* | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | +* | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | +* | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | +* | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | +* | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | +* | 1 yr ... 1 yr 3 months | about 1 year | +* | 1 yr 3 months ... 1 yr 9 month s | over 1 year | +* | 1 yr 9 months ... 2 yrs | almost 2 years | +* | N yrs ... N yrs 3 months | about N years | +* | N yrs 3 months ... N yrs 9 months | over N years | +* | N yrs 9 months ... N+1 yrs | almost N+1 years | +* +* With `options.includeSeconds == true`: +* | Distance between dates | Result | +* |------------------------|----------------------| +* | 0 secs ... 5 secs | less than 5 seconds | +* | 5 secs ... 10 secs | less than 10 seconds | +* | 10 secs ... 20 secs | less than 20 seconds | +* | 20 secs ... 40 secs | half a minute | +* | 40 secs ... 60 secs | less than a minute | +* | 60 secs ... 90 secs | 1 minute | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with +* @param options - An object with options +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // What is the distance between 2 July 2014 and 1 January 2015? +* const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) +* //=> '6 months' +* +* @example +* // What is the distance between 1 January 2015 00:00:15 +* // and 1 January 2015 00:00:00, including seconds? +* const result = formatDistance( +* new Date(2015, 0, 1, 0, 0, 15), +* new Date(2015, 0, 1, 0, 0, 0), +* { includeSeconds: true } +* ) +* //=> 'less than 20 seconds' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, with a suffix? +* const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { +* addSuffix: true +* }) +* //=> 'about 1 year ago' +* +* @example +* // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? +* import { eoLocale } from 'date-fns/locale/eo' +* const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { +* locale: eoLocale +* }) +* //=> 'pli ol 1 jaro' +*/ +function _formatDistance(laterDate, earlierDate, options) {var _ref18, _options$locale8; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref18 = (_options$locale8 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale8 !== void 0 ? _options$locale8 : defaultOptions.locale) !== null && _ref18 !== void 0 ? _ref18 : enUS; + var minutesInAlmostTwoDays = 2520; + var comparison = _compareAsc(laterDate, earlierDate); + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + var localizeOptions = Object.assign({}, options, { + addSuffix: options === null || options === void 0 ? void 0 : options.addSuffix, + comparison: comparison + }); + var _normalizeDates33 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in].concat(_toConsumableArray(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]))),_normalizeDates34 = _slicedToArray(_normalizeDates33, 2),laterDate_ = _normalizeDates34[0],earlierDate_ = _normalizeDates34[1]; + var seconds = _differenceInSeconds(earlierDate_, laterDate_); + var offsetInSeconds = (getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_)) / 1e3; + var minutes = Math.round((seconds - offsetInSeconds) / 60); + var months; + if (minutes < 2) {if (options !== null && options !== void 0 && options.includeSeconds) {if (seconds < 5) return locale.formatDistance("lessThanXSeconds", 5, localizeOptions);else + if (seconds < 10) return locale.formatDistance("lessThanXSeconds", 10, localizeOptions);else + if (seconds < 20) return locale.formatDistance("lessThanXSeconds", 20, localizeOptions);else + if (seconds < 40) return locale.formatDistance("halfAMinute", 0, localizeOptions);else + if (seconds < 60) return locale.formatDistance("lessThanXMinutes", 1, localizeOptions);else + return locale.formatDistance("xMinutes", 1, localizeOptions);} else + if (minutes === 0) return locale.formatDistance("lessThanXMinutes", 1, localizeOptions);else + return locale.formatDistance("xMinutes", minutes, localizeOptions);} else + if (minutes < 45) return locale.formatDistance("xMinutes", minutes, localizeOptions);else + if (minutes < 90) return locale.formatDistance("aboutXHours", 1, localizeOptions);else + if (minutes < 1440) { + var hours = Math.round(minutes / 60); + return locale.formatDistance("aboutXHours", hours, localizeOptions); + } else if (minutes < minutesInAlmostTwoDays) return locale.formatDistance("xDays", 1, localizeOptions);else + if (minutes < 43200) { + var _days = Math.round(minutes / minutesInDay); + return locale.formatDistance("xDays", _days, localizeOptions); + } else if (minutes < 43200 * 2) { + months = Math.round(minutes / minutesInMonth); + return locale.formatDistance("aboutXMonths", months, localizeOptions); + } + months = _differenceInMonths(earlierDate_, laterDate_); + if (months < 12) { + var nearestMonth = Math.round(minutes / minutesInMonth); + return locale.formatDistance("xMonths", nearestMonth, localizeOptions); + } else { + var monthsSinceStartOfYear = months % 12; + var years = Math.trunc(months / 12); + if (monthsSinceStartOfYear < 3) return locale.formatDistance("aboutXYears", years, localizeOptions);else + if (monthsSinceStartOfYear < 9) return locale.formatDistance("overXYears", years, localizeOptions);else + return locale.formatDistance("almostXYears", years + 1, localizeOptions); + } +} +//#endregion +//#region dist/date-fns/formatDistanceStrict.js +/** +* The {@link formatDistanceStrict} function options. +*/ +/** +* The unit used to format the distance in {@link formatDistanceStrict}. +*/ +/** +* @name formatDistanceStrict +* @category Common Helpers +* @summary Return the distance between the given dates in words. +* +* @description +* Return the distance between the given dates in words, using strict units. +* This is like `formatDistance`, but does not use helpers like 'almost', 'over', +* 'less than' and the like. +* +* | Distance between dates | Result | +* |------------------------|---------------------| +* | 0 ... 59 secs | [0..59] seconds | +* | 1 ... 59 mins | [1..59] minutes | +* | 1 ... 23 hrs | [1..23] hours | +* | 1 ... 29 days | [1..29] days | +* | 1 ... 11 months | [1..11] months | +* | 1 ... N years | [1..N] years | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with +* @param options - An object with options +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // What is the distance between 2 July 2014 and 1 January 2015? +* const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) +* //=> '6 months' +* +* @example +* // What is the distance between 1 January 2015 00:00:15 +* // and 1 January 2015 00:00:00? +* const result = formatDistanceStrict( +* new Date(2015, 0, 1, 0, 0, 15), +* new Date(2015, 0, 1, 0, 0, 0) +* ) +* //=> '15 seconds' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, with a suffix? +* const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { +* addSuffix: true +* }) +* //=> '1 year ago' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, in minutes? +* const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { +* unit: 'minute' +* }) +* //=> '525600 minutes' +* +* @example +* // What is the distance from 1 January 2015 +* // to 28 January 2015, in months, rounded up? +* const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { +* unit: 'month', +* roundingMethod: 'ceil' +* }) +* //=> '1 month' +* +* @example +* // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? +* import { eoLocale } from 'date-fns/locale/eo' +* const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { +* locale: eoLocale +* }) +* //=> '1 jaro' +*/ +function _formatDistanceStrict(laterDate, earlierDate, options) {var _ref19, _options$locale9, _options$roundingMeth; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref19 = (_options$locale9 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale9 !== void 0 ? _options$locale9 : defaultOptions.locale) !== null && _ref19 !== void 0 ? _ref19 : enUS; + var comparison = _compareAsc(laterDate, earlierDate); + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + var localizeOptions = Object.assign({}, options, { + addSuffix: options === null || options === void 0 ? void 0 : options.addSuffix, + comparison: comparison + }); + var _normalizeDates35 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in].concat(_toConsumableArray(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]))),_normalizeDates36 = _slicedToArray(_normalizeDates35, 2),laterDate_ = _normalizeDates36[0],earlierDate_ = _normalizeDates36[1]; + var roundingMethod = getRoundingMethod((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : "round"); + var milliseconds = earlierDate_.getTime() - laterDate_.getTime(); + var minutes = milliseconds / millisecondsInMinute; + var dstNormalizedMinutes = (milliseconds - (getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_))) / millisecondsInMinute; + var defaultUnit = options === null || options === void 0 ? void 0 : options.unit; + var unit; + if (!defaultUnit) {if (minutes < 1) unit = "second";else + if (minutes < 60) unit = "minute";else + if (minutes < 1440) unit = "hour";else + if (dstNormalizedMinutes < 43200) unit = "day";else + if (dstNormalizedMinutes < 525600) unit = "month";else + unit = "year";} else + unit = defaultUnit; + if (unit === "second") { + var seconds = roundingMethod(milliseconds / 1e3); + return locale.formatDistance("xSeconds", seconds, localizeOptions); + } else if (unit === "minute") { + var roundedMinutes = roundingMethod(minutes); + return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); + } else if (unit === "hour") { + var hours = roundingMethod(minutes / 60); + return locale.formatDistance("xHours", hours, localizeOptions); + } else if (unit === "day") { + var _days2 = roundingMethod(dstNormalizedMinutes / minutesInDay); + return locale.formatDistance("xDays", _days2, localizeOptions); + } else if (unit === "month") { + var _months = roundingMethod(dstNormalizedMinutes / minutesInMonth); + return _months === 12 && defaultUnit !== "month" ? locale.formatDistance("xYears", 1, localizeOptions) : locale.formatDistance("xMonths", _months, localizeOptions); + } else { + var years = roundingMethod(dstNormalizedMinutes / minutesInYear); + return locale.formatDistance("xYears", years, localizeOptions); + } +} +//#endregion +//#region dist/date-fns/formatDistanceToNow.js +/** +* The {@link formatDistanceToNow} function options. +*/ +/** +* @name formatDistanceToNow +* @category Common Helpers +* @summary Return the distance between the given date and now in words. +* @pure false +* +* @description +* Return the distance between the given date and now in words. +* +* | Distance to now | Result | +* |-------------------------------------------------------------------|---------------------| +* | 0 ... 30 secs | less than a minute | +* | 30 secs ... 1 min 30 secs | 1 minute | +* | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | +* | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | +* | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | +* | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | +* | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | +* | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | +* | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | +* | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | +* | 1 yr ... 1 yr 3 months | about 1 year | +* | 1 yr 3 months ... 1 yr 9 month s | over 1 year | +* | 1 yr 9 months ... 2 yrs | almost 2 years | +* | N yrs ... N yrs 3 months | about N years | +* | N yrs 3 months ... N yrs 9 months | over N years | +* | N yrs 9 months ... N+1 yrs | almost N+1 years | +* +* With `options.includeSeconds == true`: +* | Distance to now | Result | +* |---------------------|----------------------| +* | 0 secs ... 5 secs | less than 5 seconds | +* | 5 secs ... 10 secs | less than 10 seconds | +* | 10 secs ... 20 secs | less than 20 seconds | +* | 20 secs ... 40 secs | half a minute | +* | 40 secs ... 60 secs | less than a minute | +* | 60 secs ... 90 secs | 1 minute | +* +* @param date - The given date +* @param options - The object with options +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // If today is 1 January 2015, what is the distance to 2 July 2014? +* const result = formatDistanceToNow( +* new Date(2014, 6, 2) +* ) +* //=> '6 months' +* +* @example +* // If now is 1 January 2015 00:00:00, +* // what is the distance to 1 January 2015 00:00:15, including seconds? +* const result = formatDistanceToNow( +* new Date(2015, 0, 1, 0, 0, 15), +* {includeSeconds: true} +* ) +* //=> 'less than 20 seconds' +* +* @example +* // If today is 1 January 2015, +* // what is the distance to 1 January 2016, with a suffix? +* const result = formatDistanceToNow( +* new Date(2016, 0, 1), +* {addSuffix: true} +* ) +* //=> 'in about 1 year' +* +* @example +* // If today is 1 January 2015, +* // what is the distance to 1 August 2016 in Esperanto? +* const eoLocale = require('date-fns/locale/eo') +* const result = formatDistanceToNow( +* new Date(2016, 7, 1), +* {locale: eoLocale} +* ) +* //=> 'pli ol 1 jaro' +*/ +function _formatDistanceToNow(date, options) { + return _formatDistance(date, _constructNow(date), options); +} +//#endregion +//#region dist/date-fns/formatDistanceToNowStrict.js +/** +* The {@link formatDistanceToNowStrict} function options. +*/ +/** +* @name formatDistanceToNowStrict +* @category Common Helpers +* @summary Return the distance between the given date and now in words. +* @pure false +* +* @description +* Return the distance between the given dates in words, using strict units. +* This is like `formatDistance`, but does not use helpers like 'almost', 'over', +* 'less than' and the like. +* +* | Distance between dates | Result | +* |------------------------|---------------------| +* | 0 ... 59 secs | [0..59] seconds | +* | 1 ... 59 mins | [1..59] minutes | +* | 1 ... 23 hrs | [1..23] hours | +* | 1 ... 29 days | [1..29] days | +* | 1 ... 11 months | [1..11] months | +* | 1 ... N years | [1..N] years | +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // If today is 1 January 2015, what is the distance to 2 July 2014? +* const result = formatDistanceToNowStrict( +* new Date(2014, 6, 2) +* ) +* //=> '6 months' +* +* @example +* // If now is 1 January 2015 00:00:00, +* // what is the distance to 1 January 2015 00:00:15, including seconds? +* const result = formatDistanceToNowStrict( +* new Date(2015, 0, 1, 0, 0, 15) +* ) +* //=> '15 seconds' +* +* @example +* // If today is 1 January 2015, +* // what is the distance to 1 January 2016, with a suffix? +* const result = formatDistanceToNowStrict( +* new Date(2016, 0, 1), +* {addSuffix: true} +* ) +* //=> 'in 1 year' +* +* @example +* // If today is 28 January 2015, +* // what is the distance to 1 January 2015, in months, rounded up?? +* const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { +* unit: 'month', +* roundingMethod: 'ceil' +* }) +* //=> '1 month' +* +* @example +* // If today is 1 January 2015, +* // what is the distance to 1 January 2016 in Esperanto? +* const eoLocale = require('date-fns/locale/eo') +* const result = formatDistanceToNowStrict( +* new Date(2016, 0, 1), +* {locale: eoLocale} +* ) +* //=> '1 jaro' +*/ +function _formatDistanceToNowStrict(date, options) { + return _formatDistanceStrict(date, _constructNow(date), options); +} +//#endregion +//#region dist/date-fns/formatDuration.js +/** +* The {@link formatDuration} function options. +*/ +var defaultFormat = [ +"years", +"months", +"weeks", +"days", +"hours", +"minutes", +"seconds"]; + +/** +* @name formatDuration +* @category Common Helpers +* @summary Formats a duration in human-readable format +* +* @description +* Return human-readable duration string i.e. "9 months 2 days" +* +* @param duration - The duration to format +* @param options - An object with options. +* +* @returns The formatted date string +* +* @example +* // Format full duration +* formatDuration({ +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }) +* //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' +* +* @example +* // Format partial duration +* formatDuration({ months: 9, days: 2 }) +* //=> '9 months 2 days' +* +* @example +* // Customize the format +* formatDuration( +* { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }, +* { format: ['months', 'weeks'] } +* ) === '9 months 1 week' +* +* @example +* // Customize the zeros presence +* formatDuration({ years: 0, months: 9 }) +* //=> '9 months' +* formatDuration({ years: 0, months: 9 }, { zero: true }) +* //=> '0 years 9 months' +* +* @example +* // Customize the delimiter +* formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) +* //=> '2 years, 9 months, 3 weeks' +*/ +function _formatDuration(duration, options) {var _ref20, _options$locale0, _options$format, _options$zero, _options$delimiter; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref20 = (_options$locale0 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale0 !== void 0 ? _options$locale0 : defaultOptions.locale) !== null && _ref20 !== void 0 ? _ref20 : enUS; + var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat; + var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false; + var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : " "; + if (!locale.formatDistance) return ""; + return format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) {return m.toUpperCase();})); + var value = duration[unit]; + if (value !== void 0 && (zero || duration[unit])) return acc.concat(locale.formatDistance(token, value)); + return acc; + }, []).join(delimiter); +} +//#endregion +//#region dist/date-fns/formatISO.js +/** +* The {@link formatISO} function options. +*/ +/** +* @name formatISO +* @category Common Helpers +* @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). +* +* @description +* Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string (in local time zone) +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18T19:00:52Z' +* +* @example +* // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) +* //=> '20190918T190052' +* +* @example +* // Represent 18 September 2019 in ISO 8601 format, date only: +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) +* //=> '2019-09-18' +* +* @example +* // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) +* //=> '19:00:52Z' +*/ +function _formatISO(date, options) {var _options$format2, _options$representati; + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date_)) throw new RangeError("Invalid time value"); + var format = (_options$format2 = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format2 !== void 0 ? _options$format2 : "extended"; + var representation = (_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : "complete"; + var result = ""; + var tzOffset = ""; + var dateDelimiter = format === "extended" ? "-" : ""; + var timeDelimiter = format === "extended" ? ":" : ""; + if (representation !== "time") { + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + result = "".concat(addLeadingZeros(date_.getFullYear(), 4)).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } + if (representation !== "date") { + var offset = date_.getTimezoneOffset(); + if (offset !== 0) { + var absoluteOffset = Math.abs(offset); + var hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + tzOffset = "".concat(offset < 0 ? "+" : "-").concat(hourOffset, ":").concat(minuteOffset); + } else tzOffset = "Z"; + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + var separator = result === "" ? "" : "T"; + var time = [ + hour, + minute, + second]. + join(timeDelimiter); + result = "".concat(result).concat(separator).concat(time).concat(tzOffset); + } + return result; +} +//#endregion +//#region dist/date-fns/formatISO9075.js +/** +* The {@link formatISO9075} function options. +*/ +/** +* @name formatISO9075 +* @category Common Helpers +* @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). +* +* @description +* Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in ISO 9075 format: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18 19:00:52' +* +* @example +* // Represent 18 September 2019 in ISO 9075, short format: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) +* //=> '20190918 190052' +* +* @example +* // Represent 18 September 2019 in ISO 9075 format, date only: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) +* //=> '2019-09-18' +* +* @example +* // Represent 18 September 2019 in ISO 9075 format, time only: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) +* //=> '19:00:52' +*/ +function _formatISO2(date, options) {var _options$format3, _options$representati2; + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (!_isValid(date_)) throw new RangeError("Invalid time value"); + var format = (_options$format3 = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format3 !== void 0 ? _options$format3 : "extended"; + var representation = (_options$representati2 = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati2 !== void 0 ? _options$representati2 : "complete"; + var result = ""; + var dateDelimiter = format === "extended" ? "-" : ""; + var timeDelimiter = format === "extended" ? ":" : ""; + if (representation !== "time") { + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + result = "".concat(addLeadingZeros(date_.getFullYear(), 4)).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } + if (representation !== "date") { + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + result = "".concat(result).concat(result === "" ? "" : " ").concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); + } + return result; +} +//#endregion +//#region dist/date-fns/formatISODuration.js +/** +* @name formatISODuration +* @category Common Helpers +* @summary Format a duration object according as ISO 8601 duration string +* +* @description +* Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) +* +* @param duration - The duration to format +* +* @returns The ISO 8601 duration string +* +* @example +* // Format the given duration as ISO 8601 string +* const result = formatISODuration({ +* years: 39, +* months: 2, +* days: 20, +* hours: 7, +* minutes: 5, +* seconds: 0 +* }) +* //=> 'P39Y2M20DT0H0M0S' +*/ +function _formatISODuration(duration) { + var _duration$years2 = duration.years,years = _duration$years2 === void 0 ? 0 : _duration$years2,_duration$months2 = duration.months,months = _duration$months2 === void 0 ? 0 : _duration$months2,_duration$days2 = duration.days,days = _duration$days2 === void 0 ? 0 : _duration$days2,_duration$hours2 = duration.hours,hours = _duration$hours2 === void 0 ? 0 : _duration$hours2,_duration$minutes2 = duration.minutes,minutes = _duration$minutes2 === void 0 ? 0 : _duration$minutes2,_duration$seconds2 = duration.seconds,seconds = _duration$seconds2 === void 0 ? 0 : _duration$seconds2; + return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); +} +//#endregion +//#region dist/date-fns/formatRFC3339.js +/** +* The {@link formatRFC3339} function options. +*/ +/** +* @name formatRFC3339 +* @category Common Helpers +* @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). +* +* @description +* Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in RFC 3339 format: +* formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18T19:00:52Z' +* +* @example +* // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction +* formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { +* fractionDigits: 3 +* }) +* //=> '2019-09-18T19:00:52.234Z' +*/ +function _formatRFC(date, options) {var _options$fractionDigi; + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (!_isValid(date_)) throw new RangeError("Invalid time value"); + var fractionDigits = (_options$fractionDigi = options === null || options === void 0 ? void 0 : options.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0; + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + var year = date_.getFullYear(); + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + var fractionalSecond = ""; + if (fractionDigits > 0) { + var _milliseconds = date_.getMilliseconds(); + fractionalSecond = "." + addLeadingZeros(Math.trunc(_milliseconds * Math.pow(10, fractionDigits - 3)), fractionDigits); + } + var offset = ""; + var tzOffset = date_.getTimezoneOffset(); + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + offset = "".concat(tzOffset < 0 ? "+" : "-").concat(hourOffset, ":").concat(minuteOffset); + } else offset = "Z"; + return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); +} +//#endregion +//#region dist/date-fns/formatRFC7231.js +var days = [ +"Sun", +"Mon", +"Tue", +"Wed", +"Thu", +"Fri", +"Sat"]; + +var months = [ +"Jan", +"Feb", +"Mar", +"Apr", +"May", +"Jun", +"Jul", +"Aug", +"Sep", +"Oct", +"Nov", +"Dec"]; + +/** +* @name formatRFC7231 +* @category Common Helpers +* @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). +* +* @description +* Return the formatted date string in RFC 7231 format. +* The result will always be in UTC timezone. +* +* @param date - The original date +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in RFC 7231 format: +* const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) +* //=> 'Wed, 18 Sep 2019 19:00:52 GMT' +*/ +function _formatRFC2(date) { + var _date = _toDate(date); + if (!_isValid(_date)) throw new RangeError("Invalid time value"); + return "".concat(days[_date.getUTCDay()], ", ").concat(addLeadingZeros(_date.getUTCDate(), 2), " ").concat(months[_date.getUTCMonth()], " ").concat(_date.getUTCFullYear(), " ").concat(addLeadingZeros(_date.getUTCHours(), 2), ":").concat(addLeadingZeros(_date.getUTCMinutes(), 2), ":").concat(addLeadingZeros(_date.getUTCSeconds(), 2), " GMT"); +} +//#endregion +//#region dist/date-fns/formatRelative.js +/** +* The {@link formatRelative} function options. +*/ +/** +* @name formatRelative +* @category Common Helpers +* @summary Represent the date in words relative to the given base date. +* +* @description +* Represent the date in words relative to the given base date. +* +* | Distance to the base date | Result | +* |---------------------------|---------------------------| +* | Previous 6 days | last Sunday at 04:30 AM | +* | Last day | yesterday at 04:30 AM | +* | Same day | today at 04:30 AM | +* | Next day | tomorrow at 04:30 AM | +* | Next 6 days | Sunday at 04:30 AM | +* | Other | 12/31/2017 | +* +* @param date - The date to format +* @param baseDate - The date to compare with +* @param options - An object with options +* +* @returns The date in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.locale` must contain `localize` property +* @throws `options.locale` must contain `formatLong` property +* @throws `options.locale` must contain `formatRelative` property +* +* @example +* // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday +* const result = formatRelative(subDays(new Date(), 6), new Date()) +* //=> "last Thursday at 12:45 AM" +*/ +function _formatRelative(date, baseDate, options) {var _ref21, _options$locale1, _ref22, _ref23, _ref24, _options$weekStartsOn4, _options$locale10, _defaultOptions$local7; + var _normalizeDates37 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, date, baseDate),_normalizeDates38 = _slicedToArray(_normalizeDates37, 2),date_ = _normalizeDates38[0],baseDate_ = _normalizeDates38[1]; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref21 = (_options$locale1 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale1 !== void 0 ? _options$locale1 : defaultOptions.locale) !== null && _ref21 !== void 0 ? _ref21 : enUS; + var weekStartsOn = (_ref22 = (_ref23 = (_ref24 = (_options$weekStartsOn4 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn4 !== void 0 ? _options$weekStartsOn4 : options === null || options === void 0 || (_options$locale10 = options.locale) === null || _options$locale10 === void 0 || (_options$locale10 = _options$locale10.options) === null || _options$locale10 === void 0 ? void 0 : _options$locale10.weekStartsOn) !== null && _ref24 !== void 0 ? _ref24 : defaultOptions.weekStartsOn) !== null && _ref23 !== void 0 ? _ref23 : (_defaultOptions$local7 = defaultOptions.locale) === null || _defaultOptions$local7 === void 0 || (_defaultOptions$local7 = _defaultOptions$local7.options) === null || _defaultOptions$local7 === void 0 ? void 0 : _defaultOptions$local7.weekStartsOn) !== null && _ref22 !== void 0 ? _ref22 : 0; + var diff = _differenceInCalendarDays(date_, baseDate_); + if (isNaN(diff)) throw new RangeError("Invalid time value"); + var token; + if (diff < -6) token = "other";else + if (diff < -1) token = "lastWeek";else + if (diff < 0) token = "yesterday";else + if (diff < 1) token = "today";else + if (diff < 2) token = "tomorrow";else + if (diff < 7) token = "nextWeek";else + token = "other"; + return _format(date_, locale.formatRelative(token, date_, baseDate_, { + locale: locale, + weekStartsOn: weekStartsOn + }), { + locale: locale, + weekStartsOn: weekStartsOn + }); +} +//#endregion +//#region dist/date-fns/fromUnixTime.js +/** +* The {@link fromUnixTime} function options. +*/ +/** +* @name fromUnixTime +* @category Timestamp Helpers +* @summary Create a date from a Unix timestamp. +* +* @description +* Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. +* +* @param unixTime - The given Unix timestamp (in seconds) +* @param options - An object with options. Allows to pass a context. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @returns The date +* +* @example +* // Create the date 29 February 2012 11:45:05: +* const result = fromUnixTime(1330515905) +* //=> Wed Feb 29 2012 11:45:05 +*/ +function _fromUnixTime(unixTime, options) { + return _toDate(unixTime * 1e3, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/getDate.js +/** +* The {@link getDate} function options. +*/ +/** +* @name getDate +* @category Day Helpers +* @summary Get the day of the month of the given date. +* +* @description +* Get the day of the month of the given date. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The day of month +* +* @example +* // Which day of the month is 29 February 2012? +* const result = getDate(new Date(2012, 1, 29)) +* //=> 29 +*/ +function _getDate(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDate(); +} +//#endregion +//#region dist/date-fns/getDay.js +/** +* The {@link getDay} function options. +*/ +/** +* @name getDay +* @category Weekday Helpers +* @summary Get the day of the week of the given date. +* +* @description +* Get the day of the week of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The day of week, 0 represents Sunday +* +* @example +* // Which day of the week is 29 February 2012? +* const result = getDay(new Date(2012, 1, 29)) +* //=> 3 +*/ +function _getDay(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay(); +} +//#endregion +//#region dist/date-fns/getDaysInMonth.js +/** +* The {@link getDaysInMonth} function options. +*/ +/** +* @name getDaysInMonth +* @category Month Helpers +* @summary Get the number of days in a month of the given date. +* +* @description +* Get the number of days in a month of the given date, considering the context if provided. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of days in a month +* +* @example +* // How many days are in February 2000? +* const result = getDaysInMonth(new Date(2000, 1)) +* //=> 29 +*/ +function _getDaysInMonth(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var monthIndex = _date.getMonth(); + var lastDayOfMonth = _constructFrom(_date, 0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} +//#endregion +//#region dist/date-fns/isLeapYear.js +/** +* @name isLeapYear +* @category Year Helpers +* @summary Is the given date in the leap year? +* +* @description +* Is the given date in the leap year? +* +* @param date - The date to check +* @param options - The options object +* +* @returns The date is in the leap year +* +* @example +* // Is 1 September 2012 in the leap year? +* const result = isLeapYear(new Date(2012, 8, 1)) +* //=> true +*/ +function _isLeapYear(date, options) { + var year = _toDate(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +//#endregion +//#region dist/date-fns/getDaysInYear.js +/** +* The {@link getDaysInYear} function options. +*/ +/** +* @name getDaysInYear +* @category Year Helpers +* @summary Get the number of days in a year of the given date. +* +* @description +* Get the number of days in a year of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of days in a year +* +* @example +* // How many days are in 2012? +* const result = getDaysInYear(new Date(2012, 0, 1)) +* //=> 366 +*/ +function _getDaysInYear(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (Number.isNaN(+_date)) return NaN; + return _isLeapYear(_date) ? 366 : 365; +} +//#endregion +//#region dist/date-fns/getDecade.js +/** +* The {@link getDecade} function options. +*/ +/** +* @name getDecade +* @category Decade Helpers +* @summary Get the decade of the given date. +* +* @description +* Get the decade of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The year of decade +* +* @example +* // Which decade belongs 27 November 1942? +* const result = getDecade(new Date(1942, 10, 27)) +* //=> 1940 +*/ +function _getDecade(date, options) { + var year = _toDate(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); + return Math.floor(year / 10) * 10; +} +//#endregion +//#region dist/date-fns/getDefaultOptions.js +/** +* @name getDefaultOptions +* @category Common Helpers +* @summary Get default options. +* @pure false +* +* @description +* Returns an object that contains defaults for +* `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` +* arguments for all functions. +* +* You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). +* +* @returns The default options +* +* @example +* const result = getDefaultOptions() +* //=> {} +* +* @example +* setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) +* const result = getDefaultOptions() +* //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } +*/ +function _getDefaultOptions() { + return Object.assign({}, getDefaultOptions$1()); +} +//#endregion +//#region dist/date-fns/getHours.js +/** +* The {@link getHours} function options. +*/ +/** +* @name getHours +* @category Hour Helpers +* @summary Get the hours of the given date. +* +* @description +* Get the hours of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The hours +* +* @example +* // Get the hours of 29 February 2012 11:45:00: +* const result = getHours(new Date(2012, 1, 29, 11, 45)) +* //=> 11 +*/ +function _getHours(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getHours(); +} +//#endregion +//#region dist/date-fns/getISODay.js +/** +* The {@link getISODay} function options. +*/ +/** +* @name getISODay +* @category Weekday Helpers +* @summary Get the day of the ISO week of the given date. +* +* @description +* Get the day of the ISO week of the given date, +* which is 7 for Sunday, 1 for Monday etc. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - An object with options +* +* @returns The day of ISO week +* +* @example +* // Which day of the ISO week is 26 February 2012? +* const result = getISODay(new Date(2012, 1, 26)) +* //=> 7 +*/ +function _getISODay(date, options) { + var day = _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay(); + return day === 0 ? 7 : day; +} +//#endregion +//#region dist/date-fns/getISOWeeksInYear.js +/** +* The {@link getISOWeeksInYear} function options. +*/ +/** +* @name getISOWeeksInYear +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of weeks in an ISO week-numbering year of the given date. +* +* @description +* Get the number of weeks in an ISO week-numbering year of the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of ISO weeks in a year +* +* @example +* // How many weeks are in ISO week-numbering year 2015? +* const result = getISOWeeksInYear(new Date(2015, 1, 11)) +* //=> 53 +*/ +function _getISOWeeksInYear(date, options) { + var thisYear = _startOfISOWeekYear(date, options); + var diff = +_startOfISOWeekYear(_addWeeks(thisYear, 60)) - +thisYear; + return Math.round(diff / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/getMilliseconds.js +/** +* @name getMilliseconds +* @category Millisecond Helpers +* @summary Get the milliseconds of the given date. +* +* @description +* Get the milliseconds of the given date. +* +* @param date - The given date +* +* @returns The milliseconds +* +* @example +* // Get the milliseconds of 29 February 2012 11:45:05.123: +* const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 123 +*/ +function _getMilliseconds(date) { + return _toDate(date).getMilliseconds(); +} +//#endregion +//#region dist/date-fns/getMinutes.js +/** +* The {@link getMinutes} function options. +*/ +/** +* @name getMinutes +* @category Minute Helpers +* @summary Get the minutes of the given date. +* +* @description +* Get the minutes of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The minutes +* +* @example +* // Get the minutes of 29 February 2012 11:45:05: +* const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) +* //=> 45 +*/ +function _getMinutes(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getMinutes(); +} +//#endregion +//#region dist/date-fns/getMonth.js +/** +* The {@link getMonth} function options. +*/ +/** +* @name getMonth +* @category Month Helpers +* @summary Get the month of the given date. +* +* @description +* Get the month of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The month index (0-11) +* +* @example +* // Which month is 29 February 2012? +* const result = getMonth(new Date(2012, 1, 29)) +* //=> 1 +*/ +function _getMonth(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getMonth(); +} +//#endregion +//#region dist/date-fns/getOverlappingDaysInIntervals.js +/** +* @name getOverlappingDaysInIntervals +* @category Interval Helpers +* @summary Get the number of days that overlap in two time intervals +* +* @description +* Get the number of days that overlap in two time intervals. It uses the time +* between dates to calculate the number of days, rounding it up to include +* partial days. +* +* Two equal 0-length intervals will result in 0. Two equal 1ms intervals will +* result in 1. +* +* @param intervalLeft - The first interval to compare. +* @param intervalRight - The second interval to compare. +* @param options - An object with options +* +* @returns The number of days that overlap in two time intervals +* +* @example +* // For overlapping time intervals adds 1 for each started overlapping day: +* getOverlappingDaysInIntervals( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } +* ) +* //=> 3 +* +* @example +* // For non-overlapping time intervals returns 0: +* getOverlappingDaysInIntervals( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } +* ) +* //=> 0 +*/ +function _getOverlappingDaysInIntervals(intervalLeft, intervalRight) { + var _sort5 = [+_toDate(intervalLeft.start), +_toDate(intervalLeft.end)].sort(function (a, b) {return a - b;}),_sort6 = _slicedToArray(_sort5, 2),leftStart = _sort6[0],leftEnd = _sort6[1]; + var _sort7 = [+_toDate(intervalRight.start), +_toDate(intervalRight.end)].sort(function (a, b) {return a - b;}),_sort8 = _slicedToArray(_sort7, 2),rightStart = _sort8[0],rightEnd = _sort8[1]; + if (!(leftStart < rightEnd && rightStart < leftEnd)) return 0; + var overlapLeft = rightStart < leftStart ? leftStart : rightStart; + var left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft); + var overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + var right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight); + return Math.ceil((right - left) / millisecondsInDay); +} +//#endregion +//#region dist/date-fns/getSeconds.js +/** +* @name getSeconds +* @category Second Helpers +* @summary Get the seconds of the given date. +* +* @description +* Get the seconds of the given date. +* +* @param date - The given date +* +* @returns The seconds +* +* @example +* // Get the seconds of 29 February 2012 11:45:05.123: +* const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 5 +*/ +function _getSeconds(date) { + return _toDate(date).getSeconds(); +} +//#endregion +//#region dist/date-fns/getTime.js +/** +* @name getTime +* @category Timestamp Helpers +* @summary Get the milliseconds timestamp of the given date. +* +* @description +* Get the milliseconds timestamp of the given date. +* +* @param date - The given date +* +* @returns The timestamp +* +* @example +* // Get the timestamp of 29 February 2012 11:45:05.123: +* const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 1330515905123 +*/ +function _getTime(date) { + return +_toDate(date); +} +//#endregion +//#region dist/date-fns/getUnixTime.js +/** +* @name getUnixTime +* @category Timestamp Helpers +* @summary Get the seconds timestamp of the given date. +* +* @description +* Get the seconds timestamp of the given date. +* +* @param date - The given date +* +* @returns The timestamp +* +* @example +* // Get the timestamp of 29 February 2012 11:45:05 CET: +* const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) +* //=> 1330512305 +*/ +function _getUnixTime(date) { + return Math.trunc(+_toDate(date) / 1e3); +} +//#endregion +//#region dist/date-fns/getWeekOfMonth.js +/** +* The {@link getWeekOfMonth} function options. +*/ +/** +* @name getWeekOfMonth +* @category Week Helpers +* @summary Get the week of the month of the given date. +* +* @description +* Get the week of the month of the given date. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The week of month +* +* @example +* // Which week of the month is 9 November 2017? +* const result = getWeekOfMonth(new Date(2017, 10, 9)) +* //=> 2 +*/ +function _getWeekOfMonth(date, options) {var _ref25, _ref26, _ref27, _options$weekStartsOn5, _options$locale11, _defaultOptions$local8; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref25 = (_ref26 = (_ref27 = (_options$weekStartsOn5 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn5 !== void 0 ? _options$weekStartsOn5 : options === null || options === void 0 || (_options$locale11 = options.locale) === null || _options$locale11 === void 0 || (_options$locale11 = _options$locale11.options) === null || _options$locale11 === void 0 ? void 0 : _options$locale11.weekStartsOn) !== null && _ref27 !== void 0 ? _ref27 : defaultOptions.weekStartsOn) !== null && _ref26 !== void 0 ? _ref26 : (_defaultOptions$local8 = defaultOptions.locale) === null || _defaultOptions$local8 === void 0 || (_defaultOptions$local8 = _defaultOptions$local8.options) === null || _defaultOptions$local8 === void 0 ? void 0 : _defaultOptions$local8.weekStartsOn) !== null && _ref25 !== void 0 ? _ref25 : 0; + var currentDayOfMonth = _getDate(_toDate(date, options === null || options === void 0 ? void 0 : options.in)); + if (isNaN(currentDayOfMonth)) return NaN; + var lastDayOfFirstWeek = weekStartsOn - _getDay(_startOfMonth(date, options)); + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} +//#endregion +//#region dist/date-fns/lastDayOfMonth.js +/** +* The {@link lastDayOfMonth} function options. +*/ +/** +* @name lastDayOfMonth +* @category Month Helpers +* @summary Return the last day of a month for the given date. +* +* @description +* Return the last day of a month for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a month +* +* @example +* // The last day of a month for 2 September 2014 11:55:00: +* const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function _lastDayOfMonth(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(0, 0, 0, 0); + return _toDate(_date, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/getWeeksInMonth.js +/** +* The {@link getWeeksInMonth} function options. +*/ +/** +* @name getWeeksInMonth +* @category Week Helpers +* @summary Get the number of calendar weeks a month spans. +* +* @description +* Get the number of calendar weeks the month in the given date spans. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The number of calendar weeks +* +* @example +* // How many calendar weeks does February 2015 span? +* const result = getWeeksInMonth(new Date(2015, 1, 8)) +* //=> 4 +* +* @example +* // If the week starts on Monday, +* // how many calendar weeks does July 2017 span? +* const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) +* //=> 6 +*/ +function _getWeeksInMonth(date, options) { + var contextDate = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + return _differenceInCalendarWeeks(_lastDayOfMonth(contextDate, options), _startOfMonth(contextDate, options), options) + 1; +} +//#endregion +//#region dist/date-fns/getYear.js +/** +* The {@link getYear} function options. +*/ +/** +* @name getYear +* @category Year Helpers +* @summary Get the year of the given date. +* +* @description +* Get the year of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The year +* +* @example +* // Which year is 2 July 2014? +* const result = getYear(new Date(2014, 6, 2)) +* //=> 2014 +*/ +function _getYear(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); +} +//#endregion +//#region dist/date-fns/hoursToMilliseconds.js +/** +* @name hoursToMilliseconds +* @category Conversion Helpers +* @summary Convert hours to milliseconds. +* +* @description +* Convert a number of hours to a full number of milliseconds. +* +* @param hours - number of hours to be converted +* +* @returns The number of hours converted to milliseconds +* +* @example +* // Convert 2 hours to milliseconds: +* const result = hoursToMilliseconds(2) +* //=> 7200000 +*/ +function _hoursToMilliseconds(hours) { + return Math.trunc(hours * millisecondsInHour); +} +//#endregion +//#region dist/date-fns/hoursToMinutes.js +/** +* @name hoursToMinutes +* @category Conversion Helpers +* @summary Convert hours to minutes. +* +* @description +* Convert a number of hours to a full number of minutes. +* +* @param hours - number of hours to be converted +* +* @returns The number of hours converted in minutes +* +* @example +* // Convert 2 hours to minutes: +* const result = hoursToMinutes(2) +* //=> 120 +*/ +function _hoursToMinutes(hours) { + return Math.trunc(hours * 60); +} +//#endregion +//#region dist/date-fns/hoursToSeconds.js +/** +* @name hoursToSeconds +* @category Conversion Helpers +* @summary Convert hours to seconds. +* +* @description +* Convert a number of hours to a full number of seconds. +* +* @param hours - The number of hours to be converted +* +* @returns The number of hours converted in seconds +* +* @example +* // Convert 2 hours to seconds: +* const result = hoursToSeconds(2) +* //=> 7200 +*/ +function _hoursToSeconds(hours) { + return Math.trunc(hours * secondsInHour); +} +//#endregion +//#region dist/date-fns/interval.js +/** +* The {@link interval} function options. +*/ +/** +* The {@link interval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the start argument, +* then the end interval date. If a context function is passed, it uses the context +* function return type. +*/ +/** +* @name interval +* @category Interval Helpers +* @summary Creates an interval object and validates its values. +* +* @description +* Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. +* +* @typeParam StartDate - Start date type. +* @typeParam EndDate - End date type. +* @typeParam Options - Options type. +* +* @param start - The start of the interval. +* @param end - The end of the interval. +* @param options - The options object. +* +* @throws `Start date is invalid` when `start` is invalid. +* @throws `End date is invalid` when `end` is invalid. +* @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. +* +* @returns The normalized and validated interval object. +*/ +function _interval(start, end, options) { + var _normalizeDates39 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, start, end),_normalizeDates40 = _slicedToArray(_normalizeDates39, 2),_start = _normalizeDates40[0],_end = _normalizeDates40[1]; + if (isNaN(+_start)) throw new TypeError("Start date is invalid"); + if (isNaN(+_end)) throw new TypeError("End date is invalid"); + if (options !== null && options !== void 0 && options.assertPositive && +_start > +_end) throw new TypeError("End date must be after start date"); + return { + start: _start, + end: _end + }; +} +//#endregion +//#region dist/date-fns/intervalToDuration.js +/** +* The {@link intervalToDuration} function options. +*/ +/** +* @name intervalToDuration +* @category Common Helpers +* @summary Convert interval to duration +* +* @description +* Convert an interval object to a duration object. +* +* @param interval - The interval to convert to duration +* @param options - The context options +* +* @returns The duration object +* +* @example +* // Get the duration between January 15, 1929 and April 4, 1968. +* intervalToDuration({ +* start: new Date(1929, 0, 15, 12, 0, 0), +* end: new Date(1968, 3, 4, 19, 5, 0) +* }); +* //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } +*/ +function _intervalToDuration(interval, options) { + var _normalizeInterval9 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval9.start,end = _normalizeInterval9.end; + var duration = {}; + var years = _differenceInYears(end, start); + if (years) duration.years = years; + var remainingMonths = _add(start, { years: duration.years }); + var months = _differenceInMonths(end, remainingMonths); + if (months) duration.months = months; + var remainingDays = _add(remainingMonths, { months: duration.months }); + var days = _differenceInDays(end, remainingDays); + if (days) duration.days = days; + var remainingHours = _add(remainingDays, { days: duration.days }); + var hours = _differenceInHours(end, remainingHours); + if (hours) duration.hours = hours; + var remainingMinutes = _add(remainingHours, { hours: duration.hours }); + var minutes = _differenceInMinutes(end, remainingMinutes); + if (minutes) duration.minutes = minutes; + var seconds = _differenceInSeconds(end, _add(remainingMinutes, { minutes: duration.minutes })); + if (seconds) duration.seconds = seconds; + return duration; +} +//#endregion +//#region dist/date-fns/intlFormat.js +/** +* The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). +* @deprecated +* +* [TODO] Remove in v4 +*/ +/** +* The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) +*/ +/** +* The locale options. +*/ +/** +* @name intlFormat +* @category Common Helpers +* @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). +* +* @description +* Return the formatted date string in the given format. +* The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. +* formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) +* +* > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. +* +* @param date - The date to format +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in middle-endian format: +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) +* //=> 10/4/2019 +*/ +/** +* @param date - The date to format +* @param localeOptions - An object with locale +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in Korean. +* // Convert the date with locale's options. +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { +* locale: 'ko-KR', +* }) +* //=> 2019. 10. 4. +*/ +/** +* @param date - The date to format +* @param formatOptions - The format options +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019. +* // Convert the date with format's options. +* const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { +* year: 'numeric', +* month: 'numeric', +* day: 'numeric', +* hour: 'numeric', +* }) +* //=> 10/4/2019, 12 PM +*/ +/** +* @param date - The date to format +* @param formatOptions - The format options +* @param localeOptions - An object with locale +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in German. +* // Convert the date with format's options and locale's options. +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { +* weekday: 'long', +* year: 'numeric', +* month: 'long', +* day: 'numeric', +* }, { +* locale: 'de-DE', +* }) +* //=> Freitag, 4. Oktober 2019 +*/ +function _intlFormat(date, formatOrLocale, localeOptions) {var _localeOptions; + var formatOptions; + if (isFormatOptions(formatOrLocale)) formatOptions = formatOrLocale;else + localeOptions = formatOrLocale; + return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(_toDate(date)); +} +function isFormatOptions(opts) { + return opts !== void 0 && !("locale" in opts); +} +//#endregion +//#region dist/date-fns/intlFormatDistance.js +/** +* The {@link intlFormatDistance} function options. +*/ +/** +* The unit used to format the distance in {@link intlFormatDistance}. +*/ +/** +* @name intlFormatDistance +* @category Common Helpers +* @summary Formats distance between two dates in a human-readable format +* @description +* The function calculates the difference between two dates and formats it as a human-readable string. +* +* 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`. +* +* You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. +* +* See the table below for the unit picking logic: +* +* | Distance between dates | Result (past) | Result (future) | +* | ---------------------- | -------------- | --------------- | +* | 0 seconds | now | now | +* | 1-59 seconds | X seconds ago | in X seconds | +* | 1-59 minutes | X minutes ago | in X minutes | +* | 1-23 hours | X hours ago | in X hours | +* | 1 day | yesterday | tomorrow | +* | 2-6 days | X days ago | in X days | +* | 7 days | last week | next week | +* | 8 days-1 month | X weeks ago | in X weeks | +* | 1 month | last month | next month | +* | 2-3 months | X months ago | in X months | +* | 1 quarter | last quarter | next quarter | +* | 2-3 quarters | X quarters ago | in X quarters | +* | 1 year | last year | next year | +* | 2+ years | X years ago | in X years | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with. +* @param options - An object with options. +* 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) +* The narrow one could be similar to the short one for some locales. +* +* @returns The distance in words according to language-sensitive relative time formatting. +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.unit` must not be invalid Unit +* @throws `options.locale` must not be invalid locale +* @throws `options.localeMatcher` must not be invalid localeMatcher +* @throws `options.numeric` must not be invalid numeric +* @throws `options.style` must not be invalid style +* +* @example +* // What is the distance between the dates when the fist date is after the second? +* intlFormatDistance( +* new Date(1986, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0) +* ) +* //=> 'in 1 hour' +* +* // What is the distance between the dates when the fist date is before the second? +* intlFormatDistance( +* new Date(1986, 3, 4, 10, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0) +* ) +* //=> '1 hour ago' +* +* @example +* // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" +* intlFormatDistance( +* new Date(1987, 6, 4, 10, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0), +* { unit: 'quarter' } +* ) +* //=> 'in 5 quarters' +* +* @example +* // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". +* intlFormatDistance( +* new Date(1986, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0), +* { locale: 'es' } +* ) +* //=> 'dentro de 1 hora' +* +* @example +* // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". +* intlFormatDistance( +* new Date(1986, 3, 5, 11, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0), +* { numeric: 'always' } +* ) +* //=> 'in 1 day' +* +* @example +* // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". +* intlFormatDistance( +* new Date(1988, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0), +* { style: 'short' } +* ) +* //=> 'in 2 yr' +*/ +function _intlFormatDistance(laterDate, earlierDate, options) { + var value = 0; + var unit; + var _normalizeDates41 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates42 = _slicedToArray(_normalizeDates41, 2),laterDate_ = _normalizeDates42[0],earlierDate_ = _normalizeDates42[1]; + if (!(options !== null && options !== void 0 && options.unit)) { + var diffInSeconds = _differenceInSeconds(laterDate_, earlierDate_); + if (Math.abs(diffInSeconds) < 60) { + value = _differenceInSeconds(laterDate_, earlierDate_); + unit = "second"; + } else if (Math.abs(diffInSeconds) < 3600) { + value = _differenceInMinutes(laterDate_, earlierDate_); + unit = "minute"; + } else if (Math.abs(diffInSeconds) < 86400 && Math.abs(_differenceInCalendarDays(laterDate_, earlierDate_)) < 1) { + value = _differenceInHours(laterDate_, earlierDate_); + unit = "hour"; + } else if (Math.abs(diffInSeconds) < 604800 && (value = _differenceInCalendarDays(laterDate_, earlierDate_)) && Math.abs(value) < 7) unit = "day";else + if (Math.abs(diffInSeconds) < 2629746) { + value = _differenceInCalendarWeeks(laterDate_, earlierDate_); + unit = "week"; + } else if (Math.abs(diffInSeconds) < 7889238) { + value = _differenceInCalendarMonths(laterDate_, earlierDate_); + unit = "month"; + } else if (Math.abs(diffInSeconds) < 31556952) {if (_differenceInCalendarQuarters(laterDate_, earlierDate_) < 4) { + value = _differenceInCalendarQuarters(laterDate_, earlierDate_); + unit = "quarter"; + } else { + value = _differenceInCalendarYears(laterDate_, earlierDate_); + unit = "year"; + }} else + { + value = _differenceInCalendarYears(laterDate_, earlierDate_); + unit = "year"; + } + } else { + unit = options === null || options === void 0 ? void 0 : options.unit; + if (unit === "second") value = _differenceInSeconds(laterDate_, earlierDate_);else + if (unit === "minute") value = _differenceInMinutes(laterDate_, earlierDate_);else + if (unit === "hour") value = _differenceInHours(laterDate_, earlierDate_);else + if (unit === "day") value = _differenceInCalendarDays(laterDate_, earlierDate_);else + if (unit === "week") value = _differenceInCalendarWeeks(laterDate_, earlierDate_);else + if (unit === "month") value = _differenceInCalendarMonths(laterDate_, earlierDate_);else + if (unit === "quarter") value = _differenceInCalendarQuarters(laterDate_, earlierDate_);else + if (unit === "year") value = _differenceInCalendarYears(laterDate_, earlierDate_); + } + return new Intl.RelativeTimeFormat(options === null || options === void 0 ? void 0 : options.locale, _objectSpread({ + numeric: "auto" }, + options) + ).format(value, unit); +} +//#endregion +//#region dist/date-fns/isAfter.js +/** +* @name isAfter +* @category Common Helpers +* @summary Is the first date after the second one? +* +* @description +* Is the first date after the second one? +* +* @param date - The date that should be after the other one to return true +* @param dateToCompare - The date to compare with +* +* @returns The first date is after the second date +* +* @example +* // Is 10 July 1989 after 11 February 1987? +* const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) +* //=> true +*/ +function _isAfter(date, dateToCompare) { + return +_toDate(date) > +_toDate(dateToCompare); +} +//#endregion +//#region dist/date-fns/isBefore.js +/** +* @name isBefore +* @category Common Helpers +* @summary Is the first date before the second one? +* +* @description +* Is the first date before the second one? +* +* @param date - The date that should be before the other one to return true +* @param dateToCompare - The date to compare with +* +* @returns The first date is before the second date +* +* @example +* // Is 10 July 1989 before 11 February 1987? +* const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) +* //=> false +*/ +function _isBefore(date, dateToCompare) { + return +_toDate(date) < +_toDate(dateToCompare); +} +//#endregion +//#region dist/date-fns/isEqual.js +/** +* @name isEqual +* @category Common Helpers +* @summary Are the given dates equal? +* +* @description +* Are the given dates equal? +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The dates are equal +* +* @example +* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? +* const result = isEqual( +* new Date(2014, 6, 2, 6, 30, 45, 0), +* new Date(2014, 6, 2, 6, 30, 45, 500) +* ) +* //=> false +*/ +function _isEqual(leftDate, rightDate) { + return +_toDate(leftDate) === +_toDate(rightDate); +} +//#endregion +//#region dist/date-fns/isExists.js +/** +* @name isExists +* @category Common Helpers +* @summary Is the given date exists? +* +* @description +* Checks if the given arguments convert to an existing date. +* +* @param year - The year of the date to check +* @param month - The month of the date to check +* @param day - The day of the date to check +* +* @returns `true` if the date exists +* +* @example +* // For the valid date: +* const result = isExists(2018, 0, 31) +* //=> true +* +* @example +* // For the invalid date: +* const result = isExists(2018, 1, 31) +* //=> false +*/ +function _isExists(year, month, day) { + var date = new Date(year, month, day); + return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; +} +//#endregion +//#region dist/date-fns/isFirstDayOfMonth.js +/** +* The {@link isFirstDayOfMonth} function options. +*/ +/** +* @name isFirstDayOfMonth +* @category Month Helpers +* @summary Is the given date the first day of a month? +* +* @description +* Is the given date the first day of a month? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is the first day of a month +* +* @example +* // Is 1 September 2014 the first day of a month? +* const result = isFirstDayOfMonth(new Date(2014, 8, 1)) +* //=> true +*/ +function _isFirstDayOfMonth(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDate() === 1; +} +//#endregion +//#region dist/date-fns/isFriday.js +/** +* The {@link isFriday} function options. +*/ +/** +* @name isFriday +* @category Weekday Helpers +* @summary Is the given date Friday? +* +* @description +* Is the given date Friday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Friday +* +* @example +* // Is 26 September 2014 Friday? +* const result = isFriday(new Date(2014, 8, 26)) +* //=> true +*/ +function _isFriday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 5; +} +//#endregion +//#region dist/date-fns/isFuture.js +/** +* @name isFuture +* @category Common Helpers +* @summary Is the given date in the future? +* @pure false +* +* @description +* Is the given date in the future? +* +* @param date - The date to check +* +* @returns The date is in the future +* +* @example +* // If today is 6 October 2014, is 31 December 2014 in the future? +* const result = isFuture(new Date(2014, 11, 31)) +* //=> true +*/ +function _isFuture(date) { + return +_toDate(date) > Date.now(); +} +//#endregion +//#region dist/date-fns/transpose.js +/** +* @name transpose +* @category Generic Helpers +* @summary Transpose the date to the given constructor. +* +* @description +* The function transposes the date to the given constructor. It helps you +* to transpose the date in the system time zone to say `UTCDate` or any other +* date extension. +* +* @typeParam InputDate - The input `Date` type derived from the passed argument. +* @typeParam ResultDate - The result `Date` type derived from the passed constructor. +* +* @param date - The date to use values from +* @param constructor - The date constructor to use +* +* @returns Date transposed to the given constructor +* +* @example +* // Create July 10, 2022 00:00 in locale time zone +* const date = new Date(2022, 6, 10) +* //=> 'Sun Jul 10 2022 00:00:00 GMT+0800 (Singapore Standard Time)' +* +* @example +* // Transpose the date to July 10, 2022 00:00 in UTC +* transpose(date, UTCDate) +* //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)' +*/ +function _transpose(date, constructor) { + var date_ = isConstructor(constructor) ? new constructor(0) : _constructFrom(constructor, 0); + date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate()); + date_.setHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); + return date_; +} +function isConstructor(constructor) {var _constructor$prototyp; + return typeof constructor === "function" && ((_constructor$prototyp = constructor.prototype) === null || _constructor$prototyp === void 0 ? void 0 : _constructor$prototyp.constructor) === constructor; +} +//#endregion +//#region dist/date-fns/parse/_lib/Setter.js +var TIMEZONE_UNIT_PRIORITY = 10; +var Setter = /*#__PURE__*/function () {function Setter() {_classCallCheck(this, Setter);_defineProperty(this, "subPriority", + 0);}return _createClass(Setter, [{ key: "validate", value: + function validate(_utcDate, _options) { + return true; + } }]);}(); + +var ValueSetter = /*#__PURE__*/function (_Setter) { + function ValueSetter(value, validateValue, setValue, priority, subPriority) {var _this;_classCallCheck(this, ValueSetter); + _this = _callSuper(this, ValueSetter); + _this.value = value; + _this.validateValue = validateValue; + _this.setValue = setValue; + _this.priority = priority; + if (subPriority) _this.subPriority = subPriority;return _this; + }_inherits(ValueSetter, _Setter);return _createClass(ValueSetter, [{ key: "validate", value: + function validate(date, options) { + return this.validateValue(date, this.value, options); + } }, { key: "set", value: + function set(date, flags, options) { + return this.setValue(date, flags, this.value, options); + } }]);}(Setter); + +var DateTimezoneSetter = /*#__PURE__*/function (_Setter2) { + + + function DateTimezoneSetter(context, reference) {var _this2;_classCallCheck(this, DateTimezoneSetter); + _this2 = _callSuper(this, DateTimezoneSetter);_defineProperty(_this2, "priority", TIMEZONE_UNIT_PRIORITY);_defineProperty(_this2, "subPriority", -1); + _this2.context = context || function (date) {return _constructFrom(reference, date);};return _this2; + }_inherits(DateTimezoneSetter, _Setter2);return _createClass(DateTimezoneSetter, [{ key: "set", value: + function set(date, flags) { + if (flags.timestampIsSet) return date; + return _constructFrom(date, _transpose(date, this.context)); + } }]);}(Setter); + +//#endregion +//#region dist/date-fns/parse/_lib/Parser.js +var Parser = /*#__PURE__*/function () {function Parser() {_classCallCheck(this, Parser);}return _createClass(Parser, [{ key: "run", value: + function run(dateString, token, match, options) { + var result = this.parse(dateString, token, match, options); + if (!result) return null; + return { + setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), + rest: result.rest + }; + } }, { key: "validate", value: + function validate(_utcDate, _value, _options) { + return true; + } }]);}(); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/EraParser.js +var EraParser = /*#__PURE__*/function (_Parser) {function EraParser() {var _this3;_classCallCheck(this, EraParser);for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {args[_key2] = arguments[_key2];}_this3 = _callSuper(this, EraParser, [].concat(args));_defineProperty(_this3, "priority", + 140);_defineProperty(_this3, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "R", + "u", + "t", + "T"]);return _this3;}_inherits(EraParser, _Parser);return _createClass(EraParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "G":case "GG":case "GGG":return match.era(dateString, { width: "abbreviated" }) || match.era(dateString, { width: "narrow" });case "GGGGG":return match.era(dateString, { width: "narrow" });default:return match.era(dateString, { width: "wide" }) || match.era(dateString, { width: "abbreviated" }) || match.era(dateString, { width: "narrow" });}} }, { key: "set", value: function set(date, flags, value) {flags.era = value;date.setFullYear(value, 0, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/constants.js +var numericPatterns = { + month: /^(1[0-2]|0?\d)/, + date: /^(3[0-1]|[0-2]?\d)/, + dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, + week: /^(5[0-3]|[0-4]?\d)/, + hour23h: /^(2[0-3]|[0-1]?\d)/, + hour24h: /^(2[0-4]|[0-1]?\d)/, + hour11h: /^(1[0-1]|0?\d)/, + hour12h: /^(1[0-2]|0?\d)/, + minute: /^[0-5]?\d/, + second: /^[0-5]?\d/, + singleDigit: /^\d/, + twoDigits: /^\d{1,2}/, + threeDigits: /^\d{1,3}/, + fourDigits: /^\d{1,4}/, + anyDigitsSigned: /^-?\d+/, + singleDigitSigned: /^-?\d/, + twoDigitsSigned: /^-?\d{1,2}/, + threeDigitsSigned: /^-?\d{1,3}/, + fourDigitsSigned: /^-?\d{1,4}/ +}; +var timezonePatterns = { + basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, + basic: /^([+-])(\d{2})(\d{2})|Z/, + basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, + extended: /^([+-])(\d{2}):(\d{2})|Z/, + extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ +}; +//#endregion +//#region dist/date-fns/parse/_lib/utils.js +function mapValue(parseFnResult, mapFn) { + if (!parseFnResult) return parseFnResult; + return { + value: mapFn(parseFnResult.value), + rest: parseFnResult.rest + }; +} +function parseNumericPattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + if (!matchResult) return null; + return { + value: parseInt(matchResult[0], 10), + rest: dateString.slice(matchResult[0].length) + }; +} +function parseTimezonePattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + if (!matchResult) return null; + if (matchResult[0] === "Z") return { + value: 0, + rest: dateString.slice(1) + }; + var sign = matchResult[1] === "+" ? 1 : -1; + var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; + var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; + var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; + return { + value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond), + rest: dateString.slice(matchResult[0].length) + }; +} +function parseAnyDigitsSigned(dateString) { + return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString); +} +function parseNDigits(n, dateString) { + switch (n) { + case 1:return parseNumericPattern(numericPatterns.singleDigit, dateString); + case 2:return parseNumericPattern(numericPatterns.twoDigits, dateString); + case 3:return parseNumericPattern(numericPatterns.threeDigits, dateString); + case 4:return parseNumericPattern(numericPatterns.fourDigits, dateString); + default:return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString); + } +} +function parseNDigitsSigned(n, dateString) { + switch (n) { + case 1:return parseNumericPattern(numericPatterns.singleDigitSigned, dateString); + case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString); + case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString); + case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString); + default:return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString); + } +} +function dayPeriodEnumToHours(dayPeriod) { + switch (dayPeriod) { + case "morning":return 4; + case "evening":return 17; + case "pm": + case "noon": + case "afternoon":return 12; + default:return 0; + } +} +function normalizeTwoDigitYear(twoDigitYear, currentYear) { + var isCommonEra = currentYear > 0; + var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; + var result; + if (absCurrentYear <= 50) result = twoDigitYear || 100;else + { + var rangeEnd = absCurrentYear + 50; + var rangeEndCentury = Math.trunc(rangeEnd / 100) * 100; + var isPreviousCentury = twoDigitYear >= rangeEnd % 100; + result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); + } + return isCommonEra ? result : 1 - result; +} +function isLeapYearIndex$1(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/YearParser.js +var YearParser = /*#__PURE__*/function (_Parser2) {function YearParser() {var _this4;_classCallCheck(this, YearParser);for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {args[_key3] = arguments[_key3];}_this4 = _callSuper(this, YearParser, [].concat(args));_defineProperty(_this4, "priority", + 130);_defineProperty(_this4, "incompatibleTokens", + [ + "Y", + "R", + "u", + "w", + "I", + "i", + "e", + "c", + "t", + "T"]);return _this4;}_inherits(YearParser, _Parser2);return _createClass(YearParser, [{ key: "parse", value: + + function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) {return { + year: year, + isTwoDigitYear: token === "yy" + };}; + switch (token) { + case "y":return mapValue(parseNDigits(4, dateString), valueCallback); + case "yo":return mapValue(match.ordinalNumber(dateString, { unit: "year" }), valueCallback); + default:return mapValue(parseNDigits(token.length, dateString), valueCallback); + } + } }, { key: "validate", value: + function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } }, { key: "set", value: + function set(date, flags, value) { + var currentYear = date.getFullYear(); + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); + date.setFullYear(normalizedTwoDigitYear, 0, 1); + date.setHours(0, 0, 0, 0); + return date; + } + var year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setFullYear(year, 0, 1); + date.setHours(0, 0, 0, 0); + return date; + } }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +var LocalWeekYearParser = /*#__PURE__*/function (_Parser3) {function LocalWeekYearParser() {var _this5;_classCallCheck(this, LocalWeekYearParser);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}_this5 = _callSuper(this, LocalWeekYearParser, [].concat(args));_defineProperty(_this5, "priority", + 130);_defineProperty(_this5, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "Q", + "q", + "M", + "L", + "I", + "d", + "D", + "i", + "t", + "T"]);return _this5;}_inherits(LocalWeekYearParser, _Parser3);return _createClass(LocalWeekYearParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(year) {return { year: year, isTwoDigitYear: token === "YY" };};switch (token) {case "Y":return mapValue(parseNDigits(4, dateString), valueCallback);case "Yo":return mapValue(match.ordinalNumber(dateString, { unit: "year" }), valueCallback);default:return mapValue(parseNDigits(token.length, dateString), valueCallback);}} }, { key: "validate", value: function validate(_date, value) {return value.isTwoDigitYear || value.year > 0;} }, { key: "set", value: function set(date, flags, value, options) {var currentYear = _getWeekYear(date, options);if (value.isTwoDigitYear) {var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);date.setFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);date.setHours(0, 0, 0, 0);return _startOfWeek(date, options);}var year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;date.setFullYear(year, 0, options.firstWeekContainsDate);date.setHours(0, 0, 0, 0);return _startOfWeek(date, options);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +var ISOWeekYearParser = /*#__PURE__*/function (_Parser4) {function ISOWeekYearParser() {var _this6;_classCallCheck(this, ISOWeekYearParser);for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}_this6 = _callSuper(this, ISOWeekYearParser, [].concat(args));_defineProperty(_this6, "priority", + 130);_defineProperty(_this6, "incompatibleTokens", + + + + + + + + + + + [ + "G", + "y", + "Y", + "u", + "Q", + "q", + "M", + "L", + "w", + "d", + "D", + "e", + "c", + "t", + "T"]);return _this6;}_inherits(ISOWeekYearParser, _Parser4);return _createClass(ISOWeekYearParser, [{ key: "parse", value: function parse(dateString, token) {if (token === "R") return parseNDigitsSigned(4, dateString);return parseNDigitsSigned(token.length, dateString);} }, { key: "set", value: function set(date, _flags, value) {var firstWeekOfYear = _constructFrom(date, 0);firstWeekOfYear.setFullYear(value, 0, 4);firstWeekOfYear.setHours(0, 0, 0, 0);return _startOfISOWeek(firstWeekOfYear);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ExtendedYearParser.js +var ExtendedYearParser = /*#__PURE__*/function (_Parser5) {function ExtendedYearParser() {var _this7;_classCallCheck(this, ExtendedYearParser);for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}_this7 = _callSuper(this, ExtendedYearParser, [].concat(args));_defineProperty(_this7, "priority", + 130);_defineProperty(_this7, "incompatibleTokens", + + + + + + + + + + [ + "G", + "y", + "Y", + "R", + "w", + "I", + "i", + "e", + "c", + "t", + "T"]);return _this7;}_inherits(ExtendedYearParser, _Parser5);return _createClass(ExtendedYearParser, [{ key: "parse", value: function parse(dateString, token) {if (token === "u") return parseNDigitsSigned(4, dateString);return parseNDigitsSigned(token.length, dateString);} }, { key: "set", value: function set(date, _flags, value) {date.setFullYear(value, 0, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/QuarterParser.js +var QuarterParser = /*#__PURE__*/function (_Parser6) {function QuarterParser() {var _this8;_classCallCheck(this, QuarterParser);for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}_this8 = _callSuper(this, QuarterParser, [].concat(args));_defineProperty(_this8, "priority", + 120);_defineProperty(_this8, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "M", + "L", + "w", + "I", + "d", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this8;}_inherits(QuarterParser, _Parser6);return _createClass(QuarterParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "Q":case "QQ":return parseNDigits(token.length, dateString);case "Qo":return match.ordinalNumber(dateString, { unit: "quarter" });case "QQQ":return match.quarter(dateString, { width: "abbreviated", context: "formatting" }) || match.quarter(dateString, { width: "narrow", context: "formatting" });case "QQQQQ":return match.quarter(dateString, { width: "narrow", context: "formatting" });default:return match.quarter(dateString, { width: "wide", context: "formatting" }) || match.quarter(dateString, { width: "abbreviated", context: "formatting" }) || match.quarter(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 4;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth((value - 1) * 3, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +var StandAloneQuarterParser = /*#__PURE__*/function (_Parser7) {function StandAloneQuarterParser() {var _this9;_classCallCheck(this, StandAloneQuarterParser);for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}_this9 = _callSuper(this, StandAloneQuarterParser, [].concat(args));_defineProperty(_this9, "priority", + 120);_defineProperty(_this9, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "Q", + "M", + "L", + "w", + "I", + "d", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this9;}_inherits(StandAloneQuarterParser, _Parser7);return _createClass(StandAloneQuarterParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "q":case "qq":return parseNDigits(token.length, dateString);case "qo":return match.ordinalNumber(dateString, { unit: "quarter" });case "qqq":return match.quarter(dateString, { width: "abbreviated", context: "standalone" }) || match.quarter(dateString, { width: "narrow", context: "standalone" });case "qqqqq":return match.quarter(dateString, { width: "narrow", context: "standalone" });default:return match.quarter(dateString, { width: "wide", context: "standalone" }) || match.quarter(dateString, { width: "abbreviated", context: "standalone" }) || match.quarter(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 4;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth((value - 1) * 3, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/MonthParser.js +var MonthParser = /*#__PURE__*/function (_Parser8) {function MonthParser() {var _this0;_classCallCheck(this, MonthParser);for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {args[_key9] = arguments[_key9];}_this0 = _callSuper(this, MonthParser, [].concat(args));_defineProperty(_this0, "incompatibleTokens", + [ + "Y", + "R", + "q", + "Q", + "L", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);_defineProperty(_this0, "priority", + + 110);return _this0;}_inherits(MonthParser, _Parser8);return _createClass(MonthParser, [{ key: "parse", value: + function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) {return value - 1;}; + switch (token) { + case "M":return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback); + case "MM":return mapValue(parseNDigits(2, dateString), valueCallback); + case "Mo":return mapValue(match.ordinalNumber(dateString, { unit: "month" }), valueCallback); + case "MMM":return match.month(dateString, { + width: "abbreviated", + context: "formatting" + }) || match.month(dateString, { + width: "narrow", + context: "formatting" + }); + case "MMMMM":return match.month(dateString, { + width: "narrow", + context: "formatting" + }); + default:return match.month(dateString, { + width: "wide", + context: "formatting" + }) || match.month(dateString, { + width: "abbreviated", + context: "formatting" + }) || match.month(dateString, { + width: "narrow", + context: "formatting" + }); + } + } }, { key: "validate", value: + function validate(_date, value) { + return value >= 0 && value <= 11; + } }, { key: "set", value: + function set(date, _flags, value) { + date.setMonth(value, 1); + date.setHours(0, 0, 0, 0); + return date; + } }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +var StandAloneMonthParser = /*#__PURE__*/function (_Parser9) {function StandAloneMonthParser() {var _this1;_classCallCheck(this, StandAloneMonthParser);for (var _len0 = arguments.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {args[_key0] = arguments[_key0];}_this1 = _callSuper(this, StandAloneMonthParser, [].concat(args));_defineProperty(_this1, "priority", + 110);_defineProperty(_this1, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "M", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this1;}_inherits(StandAloneMonthParser, _Parser9);return _createClass(StandAloneMonthParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(value) {return value - 1;};switch (token) {case "L":return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);case "LL":return mapValue(parseNDigits(2, dateString), valueCallback);case "Lo":return mapValue(match.ordinalNumber(dateString, { unit: "month" }), valueCallback);case "LLL":return match.month(dateString, { width: "abbreviated", context: "standalone" }) || match.month(dateString, { width: "narrow", context: "standalone" });case "LLLLL":return match.month(dateString, { width: "narrow", context: "standalone" });default:return match.month(dateString, { width: "wide", context: "standalone" }) || match.month(dateString, { width: "abbreviated", context: "standalone" }) || match.month(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 11;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth(value, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setWeek.js +/** +* The {@link setWeek} function options. +*/ +/** +* @name setWeek +* @category Week Helpers +* @summary Set the local week to the given date. +* +* @description +* Set the local week to the given date, saving the weekday number. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param week - The week of the new date +* @param options - An object with options +* +* @returns The new date with the local week set +* +* @example +* // Set the 1st week to 2 January 2005 with default options: +* const result = setWeek(new Date(2005, 0, 2), 1) +* //=> Sun Dec 26 2004 00:00:00 +* +* @example +* // Set the 1st week to 2 January 2005, +* // if Monday is the first day of the week, +* // and the first week of the year always contains 4 January: +* const result = setWeek(new Date(2005, 0, 2), 1, { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Sun Jan 4 2004 00:00:00 +*/ +function _setWeek(date, week, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = _getWeek(date_, options) - week; + date_.setDate(date_.getDate() - diff * 7); + return _toDate(date_, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalWeekParser.js +var LocalWeekParser = /*#__PURE__*/function (_Parser0) {function LocalWeekParser() {var _this10;_classCallCheck(this, LocalWeekParser);for (var _len1 = arguments.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {args[_key1] = arguments[_key1];}_this10 = _callSuper(this, LocalWeekParser, [].concat(args));_defineProperty(_this10, "priority", + 100);_defineProperty(_this10, "incompatibleTokens", + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "i", + "t", + "T"]);return _this10;}_inherits(LocalWeekParser, _Parser0);return _createClass(LocalWeekParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "w":return parseNumericPattern(numericPatterns.week, dateString);case "wo":return match.ordinalNumber(dateString, { unit: "week" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 53;} }, { key: "set", value: function set(date, _flags, value, options) {return _startOfWeek(_setWeek(date, value, options), options);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setISOWeek.js +/** +* The {@link setISOWeek} function options. +*/ +/** +* @name setISOWeek +* @category ISO Week Helpers +* @summary Set the ISO week to the given date. +* +* @description +* Set the ISO week to the given date, saving the weekday number. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The `Date` type of the context function. +* +* @param date - The date to be changed +* @param week - The ISO week of the new date +* @param options - An object with options +* +* @returns The new date with the ISO week set +* +* @example +* // Set the 53rd ISO week to 7 August 2004: +* const result = setISOWeek(new Date(2004, 7, 7), 53) +* //=> Sat Jan 01 2005 00:00:00 +*/ +function _setISOWeek(date, week, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = _getISOWeek(_date, options) - week; + _date.setDate(_date.getDate() - diff * 7); + return _date; +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOWeekParser.js +var ISOWeekParser = /*#__PURE__*/function (_Parser1) {function ISOWeekParser() {var _this11;_classCallCheck(this, ISOWeekParser);for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {args[_key10] = arguments[_key10];}_this11 = _callSuper(this, ISOWeekParser, [].concat(args));_defineProperty(_this11, "priority", + 100);_defineProperty(_this11, "incompatibleTokens", + + + + + + + + + + + + + + [ + "y", + "Y", + "u", + "q", + "Q", + "M", + "L", + "w", + "d", + "D", + "e", + "c", + "t", + "T"]);return _this11;}_inherits(ISOWeekParser, _Parser1);return _createClass(ISOWeekParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "I":return parseNumericPattern(numericPatterns.week, dateString);case "Io":return match.ordinalNumber(dateString, { unit: "week" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 53;} }, { key: "set", value: function set(date, _flags, value) {return _startOfISOWeek(_setISOWeek(date, value));} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DateParser.js +var DAYS_IN_MONTH = [ +31, +28, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +var DAYS_IN_MONTH_LEAP_YEAR = [ +31, +29, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +var DateParser = /*#__PURE__*/function (_Parser10) {function DateParser() {var _this12;_classCallCheck(this, DateParser);for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {args[_key11] = arguments[_key11];}_this12 = _callSuper(this, DateParser, [].concat(args));_defineProperty(_this12, "priority", + 90);_defineProperty(_this12, "subPriority", + 1);_defineProperty(_this12, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this12;}_inherits(DateParser, _Parser10);return _createClass(DateParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "d":return parseNumericPattern(numericPatterns.date, dateString);case "do":return match.ordinalNumber(dateString, { unit: "date" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(date, value) {var isLeapYear = isLeapYearIndex$1(date.getFullYear());var month = date.getMonth();if (isLeapYear) return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];else return value >= 1 && value <= DAYS_IN_MONTH[month];} }, { key: "set", value: function set(date, _flags, value) {date.setDate(value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayOfYearParser.js +var DayOfYearParser = /*#__PURE__*/function (_Parser11) {function DayOfYearParser() {var _this13;_classCallCheck(this, DayOfYearParser);for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {args[_key12] = arguments[_key12];}_this13 = _callSuper(this, DayOfYearParser, [].concat(args));_defineProperty(_this13, "priority", + 90);_defineProperty(_this13, "subpriority", + 1);_defineProperty(_this13, "incompatibleTokens", + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "M", + "L", + "w", + "I", + "d", + "E", + "i", + "e", + "c", + "t", + "T"]);return _this13;}_inherits(DayOfYearParser, _Parser11);return _createClass(DayOfYearParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "D":case "DD":return parseNumericPattern(numericPatterns.dayOfYear, dateString);case "Do":return match.ordinalNumber(dateString, { unit: "date" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(date, value) {if (isLeapYearIndex$1(date.getFullYear())) return value >= 1 && value <= 366;else return value >= 1 && value <= 365;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth(0, value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setDay.js +/** +* The {@link setDay} function options. +*/ +/** +* @name setDay +* @category Weekday Helpers +* @summary Set the day of the week to the given date. +* +* @description +* Set the day of the week to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param day - The day of the week of the new date +* @param options - An object with options. +* +* @returns The new date with the day of the week set +* +* @example +* // Set week day to Sunday, with the default weekStartsOn of Sunday: +* const result = setDay(new Date(2014, 8, 1), 0) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // Set week day to Sunday, with a weekStartsOn of Monday: +* const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function _setDay(date, day, options) {var _ref28, _ref29, _ref30, _options$weekStartsOn6, _options$locale12, _defaultOptions$local9; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref28 = (_ref29 = (_ref30 = (_options$weekStartsOn6 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn6 !== void 0 ? _options$weekStartsOn6 : options === null || options === void 0 || (_options$locale12 = options.locale) === null || _options$locale12 === void 0 || (_options$locale12 = _options$locale12.options) === null || _options$locale12 === void 0 ? void 0 : _options$locale12.weekStartsOn) !== null && _ref30 !== void 0 ? _ref30 : defaultOptions.weekStartsOn) !== null && _ref29 !== void 0 ? _ref29 : (_defaultOptions$local9 = defaultOptions.locale) === null || _defaultOptions$local9 === void 0 || (_defaultOptions$local9 = _defaultOptions$local9.options) === null || _defaultOptions$local9 === void 0 ? void 0 : _defaultOptions$local9.weekStartsOn) !== null && _ref28 !== void 0 ? _ref28 : 0; + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var currentDay = date_.getDay(); + var dayIndex = (day % 7 + 7) % 7; + var delta = 7 - weekStartsOn; + return _addDays(date_, day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7, options); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayParser.js +var DayParser = /*#__PURE__*/function (_Parser12) {function DayParser() {var _this14;_classCallCheck(this, DayParser);for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {args[_key13] = arguments[_key13];}_this14 = _callSuper(this, DayParser, [].concat(args));_defineProperty(_this14, "priority", + 90);_defineProperty(_this14, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "D", + "i", + "e", + "c", + "t", + "T"]);return _this14;}_inherits(DayParser, _Parser12);return _createClass(DayParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "E":case "EE":case "EEE":return match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });case "EEEEE":return match.day(dateString, { width: "narrow", context: "formatting" });case "EEEEEE":return match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });default:return match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = _setDay(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalDayParser.js +var LocalDayParser = /*#__PURE__*/function (_Parser13) {function LocalDayParser() {var _this15;_classCallCheck(this, LocalDayParser);for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {args[_key14] = arguments[_key14];}_this15 = _callSuper(this, LocalDayParser, [].concat(args));_defineProperty(_this15, "priority", + 90);_defineProperty(_this15, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "E", + "i", + "c", + "t", + "T"]);return _this15;}_inherits(LocalDayParser, _Parser13);return _createClass(LocalDayParser, [{ key: "parse", value: function parse(dateString, token, match, options) {var valueCallback = function valueCallback(value) {var wholeWeekDays = Math.floor((value - 1) / 7) * 7;return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;};switch (token) {case "e":case "ee":return mapValue(parseNDigits(token.length, dateString), valueCallback);case "eo":return mapValue(match.ordinalNumber(dateString, { unit: "day" }), valueCallback);case "eee":return match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });case "eeeee":return match.day(dateString, { width: "narrow", context: "formatting" });case "eeeeee":return match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });default:return match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = _setDay(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser14) {function StandAloneLocalDayParser() {var _this16;_classCallCheck(this, StandAloneLocalDayParser);for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {args[_key15] = arguments[_key15];}_this16 = _callSuper(this, StandAloneLocalDayParser, [].concat(args));_defineProperty(_this16, "priority", + 90);_defineProperty(_this16, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "E", + "i", + "e", + "t", + "T"]);return _this16;}_inherits(StandAloneLocalDayParser, _Parser14);return _createClass(StandAloneLocalDayParser, [{ key: "parse", value: function parse(dateString, token, match, options) {var valueCallback = function valueCallback(value) {var wholeWeekDays = Math.floor((value - 1) / 7) * 7;return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;};switch (token) {case "c":case "cc":return mapValue(parseNDigits(token.length, dateString), valueCallback);case "co":return mapValue(match.ordinalNumber(dateString, { unit: "day" }), valueCallback);case "ccc":return match.day(dateString, { width: "abbreviated", context: "standalone" }) || match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });case "ccccc":return match.day(dateString, { width: "narrow", context: "standalone" });case "cccccc":return match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });default:return match.day(dateString, { width: "wide", context: "standalone" }) || match.day(dateString, { width: "abbreviated", context: "standalone" }) || match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = _setDay(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setISODay.js +/** +* The {@link setISODay} function options. +*/ +/** +* @name setISODay +* @category Weekday Helpers +* @summary Set the day of the ISO week to the given date. +* +* @description +* Set the day of the ISO week to the given date. +* ISO week starts with Monday. +* 7 is the index of Sunday, 1 is the index of Monday, etc. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param day - The day of the ISO week of the new date +* @param options - An object with options +* +* @returns The new date with the day of the ISO week set +* +* @example +* // Set Sunday to 1 September 2014: +* const result = setISODay(new Date(2014, 8, 1), 7) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function _setISODay(date, day, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + return _addDays(date_, day - _getISODay(date_, options), options); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISODayParser.js +var ISODayParser = /*#__PURE__*/function (_Parser15) {function ISODayParser() {var _this17;_classCallCheck(this, ISODayParser);for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {args[_key16] = arguments[_key16];}_this17 = _callSuper(this, ISODayParser, [].concat(args));_defineProperty(_this17, "priority", + 90);_defineProperty(_this17, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "Y", + "u", + "q", + "Q", + "M", + "L", + "w", + "d", + "D", + "E", + "e", + "c", + "t", + "T"]);return _this17;}_inherits(ISODayParser, _Parser15);return _createClass(ISODayParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(value) {if (value === 0) return 7;return value;};switch (token) {case "i":case "ii":return parseNDigits(token.length, dateString);case "io":return match.ordinalNumber(dateString, { unit: "day" });case "iii":return mapValue(match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);case "iiiii":return mapValue(match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);case "iiiiii":return mapValue(match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);default:return mapValue(match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 7;} }, { key: "set", value: function set(date, _flags, value) {date = _setISODay(date, value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/AMPMParser.js +var AMPMParser = /*#__PURE__*/function (_Parser16) {function AMPMParser() {var _this18;_classCallCheck(this, AMPMParser);for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {args[_key17] = arguments[_key17];}_this18 = _callSuper(this, AMPMParser, [].concat(args));_defineProperty(_this18, "priority", + 80);_defineProperty(_this18, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "b", + "B", + "H", + "k", + "t", + "T"]);return _this18;}_inherits(AMPMParser, _Parser16);return _createClass(AMPMParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "a":case "aa":case "aaa":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "aaaaa":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +var AMPMMidnightParser = /*#__PURE__*/function (_Parser17) {function AMPMMidnightParser() {var _this19;_classCallCheck(this, AMPMMidnightParser);for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {args[_key18] = arguments[_key18];}_this19 = _callSuper(this, AMPMMidnightParser, [].concat(args));_defineProperty(_this19, "priority", + 80);_defineProperty(_this19, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "a", + "B", + "H", + "k", + "t", + "T"]);return _this19;}_inherits(AMPMMidnightParser, _Parser17);return _createClass(AMPMMidnightParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "b":case "bb":case "bbb":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "bbbbb":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayPeriodParser.js +var DayPeriodParser = /*#__PURE__*/function (_Parser18) {function DayPeriodParser() {var _this20;_classCallCheck(this, DayPeriodParser);for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {args[_key19] = arguments[_key19];}_this20 = _callSuper(this, DayPeriodParser, [].concat(args));_defineProperty(_this20, "priority", + 80);_defineProperty(_this20, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "a", + "b", + "t", + "T"]);return _this20;}_inherits(DayPeriodParser, _Parser18);return _createClass(DayPeriodParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "B":case "BB":case "BBB":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "BBBBB":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour1to12Parser.js +var Hour1to12Parser = /*#__PURE__*/function (_Parser19) {function Hour1to12Parser() {var _this21;_classCallCheck(this, Hour1to12Parser);for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {args[_key20] = arguments[_key20];}_this21 = _callSuper(this, Hour1to12Parser, [].concat(args));_defineProperty(_this21, "priority", + 70);_defineProperty(_this21, "incompatibleTokens", + + + + + + + + + + + + + + + + + + [ + "H", + "K", + "k", + "t", + "T"]);return _this21;}_inherits(Hour1to12Parser, _Parser19);return _createClass(Hour1to12Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "h":return parseNumericPattern(numericPatterns.hour12h, dateString);case "ho":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 12;} }, { key: "set", value: function set(date, _flags, value) {var isPM = date.getHours() >= 12;if (isPM && value < 12) date.setHours(value + 12, 0, 0, 0);else if (!isPM && value === 12) date.setHours(0, 0, 0, 0);else date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour0to23Parser.js +var Hour0to23Parser = /*#__PURE__*/function (_Parser20) {function Hour0to23Parser() {var _this22;_classCallCheck(this, Hour0to23Parser);for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {args[_key21] = arguments[_key21];}_this22 = _callSuper(this, Hour0to23Parser, [].concat(args));_defineProperty(_this22, "priority", + 70);_defineProperty(_this22, "incompatibleTokens", + + + + + + + + + + + + + + + [ + "a", + "b", + "h", + "K", + "k", + "t", + "T"]);return _this22;}_inherits(Hour0to23Parser, _Parser20);return _createClass(Hour0to23Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "H":return parseNumericPattern(numericPatterns.hour23h, dateString);case "Ho":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 23;} }, { key: "set", value: function set(date, _flags, value) {date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour0To11Parser.js +var Hour0To11Parser = /*#__PURE__*/function (_Parser21) {function Hour0To11Parser() {var _this23;_classCallCheck(this, Hour0To11Parser);for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {args[_key22] = arguments[_key22];}_this23 = _callSuper(this, Hour0To11Parser, [].concat(args));_defineProperty(_this23, "priority", + 70);_defineProperty(_this23, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "h", + "H", + "k", + "t", + "T"]);return _this23;}_inherits(Hour0To11Parser, _Parser21);return _createClass(Hour0To11Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "K":return parseNumericPattern(numericPatterns.hour11h, dateString);case "Ko":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 11;} }, { key: "set", value: function set(date, _flags, value) {if (date.getHours() >= 12 && value < 12) date.setHours(value + 12, 0, 0, 0);else date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour1To24Parser.js +var Hour1To24Parser = /*#__PURE__*/function (_Parser22) {function Hour1To24Parser() {var _this24;_classCallCheck(this, Hour1To24Parser);for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {args[_key23] = arguments[_key23];}_this24 = _callSuper(this, Hour1To24Parser, [].concat(args));_defineProperty(_this24, "priority", + 70);_defineProperty(_this24, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "a", + "b", + "h", + "H", + "K", + "t", + "T"]);return _this24;}_inherits(Hour1To24Parser, _Parser22);return _createClass(Hour1To24Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "k":return parseNumericPattern(numericPatterns.hour24h, dateString);case "ko":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 24;} }, { key: "set", value: function set(date, _flags, value) {var hours = value <= 24 ? value % 24 : value;date.setHours(hours, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/MinuteParser.js +var MinuteParser = /*#__PURE__*/function (_Parser23) {function MinuteParser() {var _this25;_classCallCheck(this, MinuteParser);for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {args[_key24] = arguments[_key24];}_this25 = _callSuper(this, MinuteParser, [].concat(args));_defineProperty(_this25, "priority", + 60);_defineProperty(_this25, "incompatibleTokens", + + + + + + + + + + + + + + + ["t", "T"]);return _this25;}_inherits(MinuteParser, _Parser23);return _createClass(MinuteParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "m":return parseNumericPattern(numericPatterns.minute, dateString);case "mo":return match.ordinalNumber(dateString, { unit: "minute" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 59;} }, { key: "set", value: function set(date, _flags, value) {date.setMinutes(value, 0, 0);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/SecondParser.js +var SecondParser = /*#__PURE__*/function (_Parser24) {function SecondParser() {var _this26;_classCallCheck(this, SecondParser);for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {args[_key25] = arguments[_key25];}_this26 = _callSuper(this, SecondParser, [].concat(args));_defineProperty(_this26, "priority", + 50);_defineProperty(_this26, "incompatibleTokens", + + + + + + + + + + + + + + + ["t", "T"]);return _this26;}_inherits(SecondParser, _Parser24);return _createClass(SecondParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "s":return parseNumericPattern(numericPatterns.second, dateString);case "so":return match.ordinalNumber(dateString, { unit: "second" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 59;} }, { key: "set", value: function set(date, _flags, value) {date.setSeconds(value, 0);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +var FractionOfSecondParser = /*#__PURE__*/function (_Parser25) {function FractionOfSecondParser() {var _this27;_classCallCheck(this, FractionOfSecondParser);for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {args[_key26] = arguments[_key26];}_this27 = _callSuper(this, FractionOfSecondParser, [].concat(args));_defineProperty(_this27, "priority", + 30);_defineProperty(_this27, "incompatibleTokens", + + + + + + + + + ["t", "T"]);return _this27;}_inherits(FractionOfSecondParser, _Parser25);return _createClass(FractionOfSecondParser, [{ key: "parse", value: function parse(dateString, token) {var valueCallback = function valueCallback(value) {return Math.trunc(value * Math.pow(10, -token.length + 3));};return mapValue(parseNDigits(token.length, dateString), valueCallback);} }, { key: "set", value: function set(date, _flags, value) {date.setMilliseconds(value);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser26) {function ISOTimezoneWithZParser() {var _this28;_classCallCheck(this, ISOTimezoneWithZParser);for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {args[_key27] = arguments[_key27];}_this28 = _callSuper(this, ISOTimezoneWithZParser, [].concat(args));_defineProperty(_this28, "priority", + 10);_defineProperty(_this28, "incompatibleTokens", + + + + + + + + + + + + + + [ + "t", + "T", + "x"]);return _this28;}_inherits(ISOTimezoneWithZParser, _Parser26);return _createClass(ISOTimezoneWithZParser, [{ key: "parse", value: function parse(dateString, token) {switch (token) {case "X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);case "XX":return parseTimezonePattern(timezonePatterns.basic, dateString);case "XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);case "XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);default:return parseTimezonePattern(timezonePatterns.extended, dateString);}} }, { key: "set", value: function set(date, flags, value) {if (flags.timestampIsSet) return date;return _constructFrom(date, date.getTime() - getTimezoneOffsetInMilliseconds(date) - value);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +var ISOTimezoneParser = /*#__PURE__*/function (_Parser27) {function ISOTimezoneParser() {var _this29;_classCallCheck(this, ISOTimezoneParser);for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {args[_key28] = arguments[_key28];}_this29 = _callSuper(this, ISOTimezoneParser, [].concat(args));_defineProperty(_this29, "priority", + 10);_defineProperty(_this29, "incompatibleTokens", + + + + + + + + + + + + + + [ + "t", + "T", + "X"]);return _this29;}_inherits(ISOTimezoneParser, _Parser27);return _createClass(ISOTimezoneParser, [{ key: "parse", value: function parse(dateString, token) {switch (token) {case "x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);case "xx":return parseTimezonePattern(timezonePatterns.basic, dateString);case "xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);case "xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);default:return parseTimezonePattern(timezonePatterns.extended, dateString);}} }, { key: "set", value: function set(date, flags, value) {if (flags.timestampIsSet) return date;return _constructFrom(date, date.getTime() - getTimezoneOffsetInMilliseconds(date) - value);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +var TimestampSecondsParser = /*#__PURE__*/function (_Parser28) {function TimestampSecondsParser() {var _this30;_classCallCheck(this, TimestampSecondsParser);for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {args[_key29] = arguments[_key29];}_this30 = _callSuper(this, TimestampSecondsParser, [].concat(args));_defineProperty(_this30, "priority", + 40);_defineProperty(_this30, "incompatibleTokens", + + + + + + + "*");return _this30;}_inherits(TimestampSecondsParser, _Parser28);return _createClass(TimestampSecondsParser, [{ key: "parse", value: function parse(dateString) {return parseAnyDigitsSigned(dateString);} }, { key: "set", value: function set(date, _flags, value) {return [_constructFrom(date, value * 1e3), { timestampIsSet: true }];} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser29) {function TimestampMillisecondsParser() {var _this31;_classCallCheck(this, TimestampMillisecondsParser);for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {args[_key30] = arguments[_key30];}_this31 = _callSuper(this, TimestampMillisecondsParser, [].concat(args));_defineProperty(_this31, "priority", + 20);_defineProperty(_this31, "incompatibleTokens", + + + + + + + "*");return _this31;}_inherits(TimestampMillisecondsParser, _Parser29);return _createClass(TimestampMillisecondsParser, [{ key: "parse", value: function parse(dateString) {return parseAnyDigitsSigned(dateString);} }, { key: "set", value: function set(date, _flags, value) {return [_constructFrom(date, value), { timestampIsSet: true }];} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers.js +var _parsers = { + G: new EraParser(), + y: new YearParser(), + Y: new LocalWeekYearParser(), + R: new ISOWeekYearParser(), + u: new ExtendedYearParser(), + Q: new QuarterParser(), + q: new StandAloneQuarterParser(), + M: new MonthParser(), + L: new StandAloneMonthParser(), + w: new LocalWeekParser(), + I: new ISOWeekParser(), + d: new DateParser(), + D: new DayOfYearParser(), + E: new DayParser(), + e: new LocalDayParser(), + c: new StandAloneLocalDayParser(), + i: new ISODayParser(), + a: new AMPMParser(), + b: new AMPMMidnightParser(), + B: new DayPeriodParser(), + h: new Hour1to12Parser(), + H: new Hour0to23Parser(), + K: new Hour0To11Parser(), + k: new Hour1To24Parser(), + m: new MinuteParser(), + s: new SecondParser(), + S: new FractionOfSecondParser(), + X: new ISOTimezoneWithZParser(), + x: new ISOTimezoneParser(), + t: new TimestampSecondsParser(), + T: new TimestampMillisecondsParser() +}; +//#endregion +//#region dist/date-fns/parse.js +/** +* The {@link parse} function options. +*/ +var formattingTokensRegExp$1 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp$1 = /^'([^]*?)'?$/; +var doubleQuoteRegExp$1 = /''/g; +var notWhitespaceRegExp = /\S/; +var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/; +/** +* @name parse +* @category Common Helpers +* @summary Parse the date. +* +* @description +* Return the date parsed from string using the given format string. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters in the format string wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the format string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 5 below the table). +* +* Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited +* and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: +* +* ```javascript +* parse('23 AM', 'HH a', new Date()) +* //=> RangeError: The format string mustn't contain `HH` and `a` at the same time +* ``` +* +* See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true +* +* Accepted format string patterns: +* | Unit |Prior| Pattern | Result examples | Notes | +* |---------------------------------|-----|---------|-----------------------------------|-------| +* | Era | 140 | G..GGG | AD, BC | | +* | | | GGGG | Anno Domini, Before Christ | 2 | +* | | | GGGGG | A, B | | +* | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | +* | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | yy | 44, 01, 00, 17 | 4 | +* | | | yyy | 044, 001, 123, 999 | 4 | +* | | | yyyy | 0044, 0001, 1900, 2017 | 4 | +* | | | yyyyy | ... | 2,4 | +* | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | +* | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | YY | 44, 01, 00, 17 | 4,6 | +* | | | YYY | 044, 001, 123, 999 | 4 | +* | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | +* | | | YYYYY | ... | 2,4 | +* | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | +* | | | RR | -43, 01, 00, 17 | 4,5 | +* | | | RRR | -043, 001, 123, 999, -999 | 4,5 | +* | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | +* | | | RRRRR | ... | 2,4,5 | +* | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | +* | | | uu | -43, 01, 99, -99 | 4 | +* | | | uuu | -043, 001, 123, 999, -999 | 4 | +* | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | +* | | | uuuuu | ... | 2,4 | +* | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | +* | | | Qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | QQ | 01, 02, 03, 04 | | +* | | | QQQ | Q1, Q2, Q3, Q4 | | +* | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | +* | | | qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | qq | 01, 02, 03, 04 | | +* | | | qqq | Q1, Q2, Q3, Q4 | | +* | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | | qqqqq | 1, 2, 3, 4 | 3 | +* | Month (formatting) | 110 | M | 1, 2, ..., 12 | | +* | | | Mo | 1st, 2nd, ..., 12th | 5 | +* | | | MM | 01, 02, ..., 12 | | +* | | | MMM | Jan, Feb, ..., Dec | | +* | | | MMMM | January, February, ..., December | 2 | +* | | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | +* | | | Lo | 1st, 2nd, ..., 12th | 5 | +* | | | LL | 01, 02, ..., 12 | | +* | | | LLL | Jan, Feb, ..., Dec | | +* | | | LLLL | January, February, ..., December | 2 | +* | | | LLLLL | J, F, ..., D | | +* | Local week of year | 100 | w | 1, 2, ..., 53 | | +* | | | wo | 1st, 2nd, ..., 53th | 5 | +* | | | ww | 01, 02, ..., 53 | | +* | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | +* | | | Io | 1st, 2nd, ..., 53th | 5 | +* | | | II | 01, 02, ..., 53 | 5 | +* | Day of month | 90 | d | 1, 2, ..., 31 | | +* | | | do | 1st, 2nd, ..., 31st | 5 | +* | | | dd | 01, 02, ..., 31 | | +* | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | +* | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | +* | | | DD | 01, 02, ..., 365, 366 | 7 | +* | | | DDD | 001, 002, ..., 365, 366 | | +* | | | DDDD | ... | 2 | +* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | +* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | | EEEEE | M, T, W, T, F, S, S | | +* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | +* | | | io | 1st, 2nd, ..., 7th | 5 | +* | | | ii | 01, 02, ..., 07 | 5 | +* | | | iii | Mon, Tue, Wed, ..., Sun | 5 | +* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | +* | | | iiiii | M, T, W, T, F, S, S | 5 | +* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | +* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | +* | | | eo | 2nd, 3rd, ..., 1st | 5 | +* | | | ee | 02, 03, ..., 01 | | +* | | | eee | Mon, Tue, Wed, ..., Sun | | +* | | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | | eeeee | M, T, W, T, F, S, S | | +* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | +* | | | co | 2nd, 3rd, ..., 1st | 5 | +* | | | cc | 02, 03, ..., 01 | | +* | | | ccc | Mon, Tue, Wed, ..., Sun | | +* | | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | | ccccc | M, T, W, T, F, S, S | | +* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | 80 | a..aaa | AM, PM | | +* | | | aaaa | a.m., p.m. | 2 | +* | | | aaaaa | a, p | | +* | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | +* | | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | | bbbbb | a, p, n, mi | | +* | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | +* | | | BBBB | at night, in the morning, ... | 2 | +* | | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | +* | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | +* | | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | +* | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | +* | | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | +* | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | +* | | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | +* | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | +* | | | kk | 24, 01, 02, ..., 23 | | +* | Minute | 60 | m | 0, 1, ..., 59 | | +* | | | mo | 0th, 1st, ..., 59th | 5 | +* | | | mm | 00, 01, ..., 59 | | +* | Second | 50 | s | 0, 1, ..., 59 | | +* | | | so | 0th, 1st, ..., 59th | 5 | +* | | | ss | 00, 01, ..., 59 | | +* | Seconds timestamp | 40 | t | 512969520 | | +* | | | tt | ... | 2 | +* | Fraction of second | 30 | S | 0, 1, ..., 9 | | +* | | | SS | 00, 01, ..., 99 | | +* | | | SSS | 000, 001, ..., 999 | | +* | | | SSSS | ... | 2 | +* | Milliseconds timestamp | 20 | T | 512969520900 | | +* | | | TT | ... | 2 | +* | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | +* | | | XX | -0800, +0530, Z | | +* | | | XXX | -08:00, +05:30, Z | | +* | | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | +* | | | xx | -0800, +0530, +0000 | | +* | | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | | xxxx | -0800, +0530, +0000, +123456 | | +* | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Long localized date | NA | P | 05/29/1453 | 5,8 | +* | | | PP | May 29, 1453 | | +* | | | PPP | May 29th, 1453 | | +* | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | +* | Long localized time | NA | p | 12:00 AM | 5,8 | +* | | | pp | 12:00:00 AM | | +* | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | +* | | | PPpp | May 29, 1453, 12:00:00 AM | | +* | | | PPPpp | May 29th, 1453 at ... | | +* | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular. +* In `format` function, they will produce different result: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* `parse` will try to match both formatting and stand-alone units interchangeably. +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table: +* - for numerical units (`yyyyyyyy`) `parse` will try to match a number +* as wide as the sequence +* - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. +* These variations are marked with "2" in the last column of the table. +* +* 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 4. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: +* +* `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` +* +* `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` +* +* while `uu` will just assign the year as is: +* +* `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` +* +* `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) +* and [setWeekYear](https://date-fns.org/docs/setWeekYear)). +* +* 5. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based +* on the given locale. +* +* using `en-US` locale: `P` => `MM/dd/yyyy` +* using `en-US` locale: `p` => `hh:mm a` +* using `pt-BR` locale: `P` => `dd/MM/yyyy` +* using `pt-BR` locale: `p` => `HH:mm` +* +* Values will be assigned to the date in the descending order of its unit's priority. +* Units of an equal priority overwrite each other in the order of appearance. +* +* If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), +* the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. +* +* `referenceDate` must be passed for correct work of the function. +* If you're not sure which `referenceDate` to supply, create a new instance of Date: +* `parse('02/11/2014', 'MM/dd/yyyy', new Date())` +* In this case parsing will be done in the context of the current date. +* If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, +* then `Invalid Date` will be returned. +* +* The result may vary by locale. +* +* If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. +* +* If parsing failed, `Invalid Date` will be returned. +* Invalid Date is a Date, whose time value is NaN. +* Time value of Date: http://es5.github.io/#x15.9.1.1 +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dateStr - The string to parse +* @param formatStr - The string of tokens +* @param referenceDate - defines values missing from the parsed dateString +* @param options - An object with options. +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @returns The parsed date +* +* @throws `options.locale` must contain `match` property +* @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Parse 11 February 2014 from middle-endian format: +* var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) +* //=> Tue Feb 11 2014 00:00:00 +* +* @example +* // Parse 28th of February in Esperanto locale in the context of 2010 year: +* import eo from 'date-fns/locale/eo' +* var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { +* locale: eo +* }) +* //=> Sun Feb 28 2010 00:00:00 +*/ +function _parse(dateStr, formatStr, referenceDate, options) {var _ref31, _options$locale13, _ref32, _ref33, _ref34, _options$firstWeekCon4, _options$locale14, _defaultOptions$local0, _ref35, _ref36, _ref37, _options$weekStartsOn7, _options$locale15, _defaultOptions$local1; + var invalidDate = function invalidDate() {return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || referenceDate, NaN);}; + var defaultOptions = _getDefaultOptions(); + var locale = (_ref31 = (_options$locale13 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale13 !== void 0 ? _options$locale13 : defaultOptions.locale) !== null && _ref31 !== void 0 ? _ref31 : enUS; + var firstWeekContainsDate = (_ref32 = (_ref33 = (_ref34 = (_options$firstWeekCon4 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon4 !== void 0 ? _options$firstWeekCon4 : options === null || options === void 0 || (_options$locale14 = options.locale) === null || _options$locale14 === void 0 || (_options$locale14 = _options$locale14.options) === null || _options$locale14 === void 0 ? void 0 : _options$locale14.firstWeekContainsDate) !== null && _ref34 !== void 0 ? _ref34 : defaultOptions.firstWeekContainsDate) !== null && _ref33 !== void 0 ? _ref33 : (_defaultOptions$local0 = defaultOptions.locale) === null || _defaultOptions$local0 === void 0 || (_defaultOptions$local0 = _defaultOptions$local0.options) === null || _defaultOptions$local0 === void 0 ? void 0 : _defaultOptions$local0.firstWeekContainsDate) !== null && _ref32 !== void 0 ? _ref32 : 1; + var weekStartsOn = (_ref35 = (_ref36 = (_ref37 = (_options$weekStartsOn7 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn7 !== void 0 ? _options$weekStartsOn7 : options === null || options === void 0 || (_options$locale15 = options.locale) === null || _options$locale15 === void 0 || (_options$locale15 = _options$locale15.options) === null || _options$locale15 === void 0 ? void 0 : _options$locale15.weekStartsOn) !== null && _ref37 !== void 0 ? _ref37 : defaultOptions.weekStartsOn) !== null && _ref36 !== void 0 ? _ref36 : (_defaultOptions$local1 = defaultOptions.locale) === null || _defaultOptions$local1 === void 0 || (_defaultOptions$local1 = _defaultOptions$local1.options) === null || _defaultOptions$local1 === void 0 ? void 0 : _defaultOptions$local1.weekStartsOn) !== null && _ref35 !== void 0 ? _ref35 : 0; + if (!formatStr) return dateStr ? invalidDate() : _toDate(referenceDate, options === null || options === void 0 ? void 0 : options.in); + var subFnOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; + var setters = [new DateTimezoneSetter(options === null || options === void 0 ? void 0 : options.in, referenceDate)]; + var tokens = formatStr.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + if (firstCharacter in _longFormatters) { + var longFormatter = _longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }).join("").match(formattingTokensRegExp$1); + var usedTokens = [];var _iterator = _createForOfIteratorHelper( + tokens),_step;try {var _loop = function _loop() {var token = _step.value; + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) warnOrThrowProtectedError(token, formatStr, dateStr); + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) warnOrThrowProtectedError(token, formatStr, dateStr); + var firstCharacter = token[0]; + var parser = _parsers[firstCharacter]; + if (parser) { + var incompatibleTokens = parser.incompatibleTokens; + if (Array.isArray(incompatibleTokens)) { + var incompatibleToken = usedTokens.find(function (usedToken) {return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;}); + if (incompatibleToken) throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); + } else if (parser.incompatibleTokens === "*" && usedTokens.length > 0) throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); + usedTokens.push({ + token: firstCharacter, + fullToken: token + }); + var parseResult = parser.run(dateStr, token, locale.match, subFnOptions); + if (!parseResult) return { v: invalidDate() }; + setters.push(parseResult.setter); + dateStr = parseResult.rest; + } else { + if (firstCharacter.match(unescapedLatinCharacterRegExp$1)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + if (token === "''") token = "'";else + if (firstCharacter === "'") token = cleanEscapedString$1(token); + if (dateStr.indexOf(token) === 0) dateStr = dateStr.slice(token.length);else return { v: + invalidDate() }; + } + },_ret;for (_iterator.s(); !(_step = _iterator.n()).done;) {_ret = _loop();if (_ret) return _ret.v;}} catch (err) {_iterator.e(err);} finally {_iterator.f();} + if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) return invalidDate(); + var uniquePrioritySetters = setters.map(function (setter) {return setter.priority;}).sort(function (a, b) {return b - a;}).filter(function (priority, index, array) {return array.indexOf(priority) === index;}).map(function (priority) {return setters.filter(function (setter) {return setter.priority === priority;}).sort(function (a, b) {return b.subPriority - a.subPriority;});}).map(function (setterArray) {return setterArray[0];}); + var date = _toDate(referenceDate, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date)) return invalidDate(); + var flags = {};var _iterator2 = _createForOfIteratorHelper( + uniquePrioritySetters),_step2;try {for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {var setter = _step2.value; + if (!setter.validate(date, subFnOptions)) return invalidDate(); + var result = setter.set(date, flags, subFnOptions); + if (Array.isArray(result)) { + date = result[0]; + Object.assign(flags, result[1]); + } else date = result; + }} catch (err) {_iterator2.e(err);} finally {_iterator2.f();} + return date; +} +function cleanEscapedString$1(input) { + return input.match(escapedStringRegExp$1)[1].replace(doubleQuoteRegExp$1, "'"); +} +//#endregion +//#region dist/date-fns/isMatch.js +/** +* The {@link isMatch} function options. +*/ +/** +* @name isMatch +* @category Common Helpers +* @summary validates the date string against given formats +* +* @description +* Return the true if given date is string correct against the given format else +* will return false. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters in the format string wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the format string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 5 below the table). +* +* Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited +* and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: +* +* ```javascript +* isMatch('23 AM', 'HH a') +* //=> RangeError: The format string mustn't contain `HH` and `a` at the same time +* ``` +* +* See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true +* +* Accepted format string patterns: +* | Unit |Prior| Pattern | Result examples | Notes | +* |---------------------------------|-----|---------|-----------------------------------|-------| +* | Era | 140 | G..GGG | AD, BC | | +* | | | GGGG | Anno Domini, Before Christ | 2 | +* | | | GGGGG | A, B | | +* | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | +* | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | yy | 44, 01, 00, 17 | 4 | +* | | | yyy | 044, 001, 123, 999 | 4 | +* | | | yyyy | 0044, 0001, 1900, 2017 | 4 | +* | | | yyyyy | ... | 2,4 | +* | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | +* | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | YY | 44, 01, 00, 17 | 4,6 | +* | | | YYY | 044, 001, 123, 999 | 4 | +* | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | +* | | | YYYYY | ... | 2,4 | +* | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | +* | | | RR | -43, 01, 00, 17 | 4,5 | +* | | | RRR | -043, 001, 123, 999, -999 | 4,5 | +* | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | +* | | | RRRRR | ... | 2,4,5 | +* | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | +* | | | uu | -43, 01, 99, -99 | 4 | +* | | | uuu | -043, 001, 123, 999, -999 | 4 | +* | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | +* | | | uuuuu | ... | 2,4 | +* | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | +* | | | Qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | QQ | 01, 02, 03, 04 | | +* | | | QQQ | Q1, Q2, Q3, Q4 | | +* | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | +* | | | qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | qq | 01, 02, 03, 04 | | +* | | | qqq | Q1, Q2, Q3, Q4 | | +* | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | | qqqqq | 1, 2, 3, 4 | 3 | +* | Month (formatting) | 110 | M | 1, 2, ..., 12 | | +* | | | Mo | 1st, 2nd, ..., 12th | 5 | +* | | | MM | 01, 02, ..., 12 | | +* | | | MMM | Jan, Feb, ..., Dec | | +* | | | MMMM | January, February, ..., December | 2 | +* | | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | +* | | | Lo | 1st, 2nd, ..., 12th | 5 | +* | | | LL | 01, 02, ..., 12 | | +* | | | LLL | Jan, Feb, ..., Dec | | +* | | | LLLL | January, February, ..., December | 2 | +* | | | LLLLL | J, F, ..., D | | +* | Local week of year | 100 | w | 1, 2, ..., 53 | | +* | | | wo | 1st, 2nd, ..., 53th | 5 | +* | | | ww | 01, 02, ..., 53 | | +* | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | +* | | | Io | 1st, 2nd, ..., 53th | 5 | +* | | | II | 01, 02, ..., 53 | 5 | +* | Day of month | 90 | d | 1, 2, ..., 31 | | +* | | | do | 1st, 2nd, ..., 31st | 5 | +* | | | dd | 01, 02, ..., 31 | | +* | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | +* | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | +* | | | DD | 01, 02, ..., 365, 366 | 7 | +* | | | DDD | 001, 002, ..., 365, 366 | | +* | | | DDDD | ... | 2 | +* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | +* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | | EEEEE | M, T, W, T, F, S, S | | +* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | +* | | | io | 1st, 2nd, ..., 7th | 5 | +* | | | ii | 01, 02, ..., 07 | 5 | +* | | | iii | Mon, Tue, Wed, ..., Su | 5 | +* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | +* | | | iiiii | M, T, W, T, F, S, S | 5 | +* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | +* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | +* | | | eo | 2nd, 3rd, ..., 1st | 5 | +* | | | ee | 02, 03, ..., 01 | | +* | | | eee | Mon, Tue, Wed, ..., Su | | +* | | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | | eeeee | M, T, W, T, F, S, S | | +* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | +* | | | co | 2nd, 3rd, ..., 1st | 5 | +* | | | cc | 02, 03, ..., 01 | | +* | | | ccc | Mon, Tue, Wed, ..., Su | | +* | | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | | ccccc | M, T, W, T, F, S, S | | +* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | 80 | a..aaa | AM, PM | | +* | | | aaaa | a.m., p.m. | 2 | +* | | | aaaaa | a, p | | +* | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | +* | | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | | bbbbb | a, p, n, mi | | +* | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | +* | | | BBBB | at night, in the morning, ... | 2 | +* | | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | +* | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | +* | | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | +* | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | +* | | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | +* | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | +* | | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | +* | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | +* | | | kk | 24, 01, 02, ..., 23 | | +* | Minute | 60 | m | 0, 1, ..., 59 | | +* | | | mo | 0th, 1st, ..., 59th | 5 | +* | | | mm | 00, 01, ..., 59 | | +* | Second | 50 | s | 0, 1, ..., 59 | | +* | | | so | 0th, 1st, ..., 59th | 5 | +* | | | ss | 00, 01, ..., 59 | | +* | Seconds timestamp | 40 | t | 512969520 | | +* | | | tt | ... | 2 | +* | Fraction of second | 30 | S | 0, 1, ..., 9 | | +* | | | SS | 00, 01, ..., 99 | | +* | | | SSS | 000, 001, ..., 999 | | +* | | | SSSS | ... | 2 | +* | Milliseconds timestamp | 20 | T | 512969520900 | | +* | | | TT | ... | 2 | +* | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | +* | | | XX | -0800, +0530, Z | | +* | | | XXX | -08:00, +05:30, Z | | +* | | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | +* | | | xx | -0800, +0530, +0000 | | +* | | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | | xxxx | -0800, +0530, +0000, +123456 | | +* | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Long localized date | NA | P | 05/29/1453 | 5,8 | +* | | | PP | May 29, 1453 | | +* | | | PPP | May 29th, 1453 | | +* | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | +* | Long localized time | NA | p | 12:00 AM | 5,8 | +* | | | pp | 12:00:00 AM | | +* | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | +* | | | PPpp | May 29, 1453, 12:00:00 AM | | +* | | | PPPpp | May 29th, 1453 at ... | | +* | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular. +* In `format` function, they will produce different result: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* `isMatch` will try to match both formatting and stand-alone units interchangeably. +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table: +* - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number +* as wide as the sequence +* - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. +* These variations are marked with "2" in the last column of the table. +* +* 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 4. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: +* +* `isMatch('50', 'yy') //=> true` +* +* `isMatch('75', 'yy') //=> true` +* +* while `uu` will use the year as is: +* +* `isMatch('50', 'uu') //=> true` +* +* `isMatch('75', 'uu') //=> true` +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) +* and [setWeekYear](https://date-fns.org/docs/setWeekYear)). +* +* 5. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based +* on the given locale. +* +* using `en-US` locale: `P` => `MM/dd/yyyy` +* using `en-US` locale: `p` => `hh:mm a` +* using `pt-BR` locale: `P` => `dd/MM/yyyy` +* using `pt-BR` locale: `p` => `HH:mm` +* +* Values will be checked in the descending order of its unit's priority. +* Units of an equal priority overwrite each other in the order of appearance. +* +* If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), +* the values will be taken from today's using `new Date()` date which works as a context of parsing. +* +* The result may vary by locale. +* +* If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. +* +* @param dateStr - The date string to verify +* @param format - The string of tokens +* @param options - An object with options. +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @returns Is format string a match for date string? +* +* @throws `options.locale` must contain `match` property +* @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Match 11 February 2014 from middle-endian format: +* const result = isMatch('02/11/2014', 'MM/dd/yyyy') +* //=> true +* +* @example +* // Match 28th of February in Esperanto locale in the context of 2010 year: +* import eo from 'date-fns/locale/eo' +* const result = isMatch('28-a de februaro', "do 'de' MMMM", { +* locale: eo +* }) +* //=> true +*/ +function _isMatch(dateStr, formatStr, options) { + return _isValid(_parse(dateStr, formatStr, /* @__PURE__ */new Date(), options)); +} +//#endregion +//#region dist/date-fns/isMonday.js +/** +* The {@link isMonday} function options. +*/ +/** +* @name isMonday +* @category Weekday Helpers +* @summary Is the given date Monday? +* +* @description +* Is the given date Monday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Monday +* +* @example +* // Is 22 September 2014 Monday? +* const result = isMonday(new Date(2014, 8, 22)) +* //=> true +*/ +function _isMonday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 1; +} +//#endregion +//#region dist/date-fns/isPast.js +/** +* @name isPast +* @category Common Helpers +* @summary Is the given date in the past? +* @pure false +* +* @description +* Is the given date in the past? +* +* @param date - The date to check +* +* @returns The date is in the past +* +* @example +* // If today is 6 October 2014, is 2 July 2014 in the past? +* const result = isPast(new Date(2014, 6, 2)) +* //=> true +*/ +function _isPast(date) { + return +_toDate(date) < Date.now(); +} +//#endregion +//#region dist/date-fns/startOfHour.js +/** +* The {@link startOfHour} function options. +*/ +/** +* @name startOfHour +* @category Hour Helpers +* @summary Return the start of an hour for the given date. +* +* @description +* Return the start of an hour for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an hour +* +* @example +* // The start of an hour for 2 September 2014 11:55:00: +* const result = startOfHour(new Date(2014, 8, 2, 11, 55)) +* //=> Tue Sep 02 2014 11:00:00 +*/ +function _startOfHour(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMinutes(0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameHour.js +/** +* The {@link isSameHour} function options. +*/ +/** +* @name isSameHour +* @category Hour Helpers +* @summary Are the given dates in the same hour (and same day)? +* +* @description +* Are the given dates in the same hour (and same day)? +* +* @param dateLeft - The first date to check +* @param dateRight - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same hour (and same day) +* +* @example +* // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? +* const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) +* //=> true +* +* @example +* // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? +* const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) +* //=> false +*/ +function _isSameHour(dateLeft, dateRight, options) { + var _normalizeDates43 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, dateLeft, dateRight),_normalizeDates44 = _slicedToArray(_normalizeDates43, 2),dateLeft_ = _normalizeDates44[0],dateRight_ = _normalizeDates44[1]; + return +_startOfHour(dateLeft_) === +_startOfHour(dateRight_); +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function _isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates45 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates46 = _slicedToArray(_normalizeDates45, 2),laterDate_ = _normalizeDates46[0],earlierDate_ = _normalizeDates46[1]; + return +_startOfWeek(laterDate_, options) === +_startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/isSameISOWeek.js +/** +* The {@link isSameISOWeek} function options. +*/ +/** +* @name isSameISOWeek +* @category ISO Week Helpers +* @summary Are the given dates in the same ISO week (and year)? +* +* @description +* Are the given dates in the same ISO week (and year)? +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same ISO week (and year) +* +* @example +* // Are 1 September 2014 and 7 September 2014 in the same ISO week? +* const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) +* //=> true +* +* @example +* // Are 1 September 2014 and 1 September 2015 in the same ISO week? +* const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) +* //=> false +*/ +function _isSameISOWeek(laterDate, earlierDate, options) { + return _isSameWeek(laterDate, earlierDate, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/isSameISOWeekYear.js +/** +* The {@link isSameISOWeekYear} function options. +*/ +/** +* @name isSameISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Are the given dates in the same ISO week-numbering year? +* +* @description +* Are the given dates in the same ISO week-numbering year? +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same ISO week-numbering year +* +* @example +* // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? +* const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) +* //=> true +*/ +function _isSameISOWeekYear(laterDate, earlierDate, options) { + var _normalizeDates47 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates48 = _slicedToArray(_normalizeDates47, 2),laterDate_ = _normalizeDates48[0],earlierDate_ = _normalizeDates48[1]; + return +_startOfISOWeekYear(laterDate_) === +_startOfISOWeekYear(earlierDate_); +} +//#endregion +//#region dist/date-fns/startOfMinute.js +/** +* The {@link startOfMinute} function options. +*/ +/** +* @name startOfMinute +* @category Minute Helpers +* @summary Return the start of a minute for the given date. +* +* @description +* Return the start of a minute for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a minute +* +* @example +* // The start of a minute for 1 December 2014 22:15:45.400: +* const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:00 +*/ +function _startOfMinute(date, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + date_.setSeconds(0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/isSameMinute.js +/** +* @name isSameMinute +* @category Minute Helpers +* @summary Are the given dates in the same minute (and hour and day)? +* +* @description +* Are the given dates in the same minute (and hour and day)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* +* @returns The dates are in the same minute (and hour and day) +* +* @example +* // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? +* const result = isSameMinute( +* new Date(2014, 8, 4, 6, 30), +* new Date(2014, 8, 4, 6, 30, 15) +* ) +* //=> true +* +* @example +* // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? +* const result = isSameMinute( +* new Date(2014, 8, 4, 6, 30), +* new Date(2014, 8, 5, 6, 30) +* ) +* //=> false +*/ +function _isSameMinute(laterDate, earlierDate) { + return +_startOfMinute(laterDate) === +_startOfMinute(earlierDate); +} +//#endregion +//#region dist/date-fns/isSameMonth.js +/** +* The {@link isSameMonth} function options. +*/ +/** +* @name isSameMonth +* @category Month Helpers +* @summary Are the given dates in the same month (and year)? +* +* @description +* Are the given dates in the same month (and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same month (and year) +* +* @example +* // Are 2 September 2014 and 25 September 2014 in the same month? +* const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) +* //=> true +* +* @example +* // Are 2 September 2014 and 25 September 2015 in the same month? +* const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) +* //=> false +*/ +function _isSameMonth(laterDate, earlierDate, options) { + var _normalizeDates49 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates50 = _slicedToArray(_normalizeDates49, 2),laterDate_ = _normalizeDates50[0],earlierDate_ = _normalizeDates50[1]; + return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth(); +} +//#endregion +//#region dist/date-fns/isSameQuarter.js +/** +* The {@link isSameQuarter} function options. +*/ +/** +* @name isSameQuarter +* @category Quarter Helpers +* @summary Are the given dates in the same quarter (and year)? +* +* @description +* Are the given dates in the same quarter (and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same quarter (and year) +* +* @example +* // Are 1 January 2014 and 8 March 2014 in the same quarter? +* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) +* //=> true +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same quarter? +* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function _isSameQuarter(laterDate, earlierDate, options) { + var _normalizeDates51 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates52 = _slicedToArray(_normalizeDates51, 2),dateLeft_ = _normalizeDates52[0],dateRight_ = _normalizeDates52[1]; + return +_startOfQuarter(dateLeft_) === +_startOfQuarter(dateRight_); +} +//#endregion +//#region dist/date-fns/startOfSecond.js +/** +* The {@link startOfSecond} function options. +*/ +/** +* @name startOfSecond +* @category Second Helpers +* @summary Return the start of a second for the given date. +* +* @description +* Return the start of a second for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a second +* +* @example +* // The start of a second for 1 December 2014 22:15:45.400: +* const result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:45.000 +*/ +function _startOfSecond(date, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMilliseconds(0); + return date_; +} +//#endregion +//#region dist/date-fns/isSameSecond.js +/** +* @name isSameSecond +* @category Second Helpers +* @summary Are the given dates in the same second (and hour and day)? +* +* @description +* Are the given dates in the same second (and hour and day)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* +* @returns The dates are in the same second (and hour and day) +* +* @example +* // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 30, 15), +* new Date(2014, 8, 4, 6, 30, 15, 500) +* ) +* //=> true +* +* @example +* // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 0, 15), +* new Date(2014, 8, 4, 6, 1, 15) +* ) +* //=> false +* +* @example +* // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 0, 15), +* new Date(2014, 8, 5, 6, 0, 15) +* ) +* //=> false +*/ +function _isSameSecond(laterDate, earlierDate) { + return +_startOfSecond(laterDate) === +_startOfSecond(earlierDate); +} +//#endregion +//#region dist/date-fns/isSameYear.js +/** +* The {@link isSameYear} function options. +*/ +/** +* @name isSameYear +* @category Year Helpers +* @summary Are the given dates in the same year? +* +* @description +* Are the given dates in the same year? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same year +* +* @example +* // Are 2 September 2014 and 25 September 2014 in the same year? +* const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) +* //=> true +*/ +function _isSameYear(laterDate, earlierDate, options) { + var _normalizeDates53 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates54 = _slicedToArray(_normalizeDates53, 2),laterDate_ = _normalizeDates54[0],earlierDate_ = _normalizeDates54[1]; + return laterDate_.getFullYear() === earlierDate_.getFullYear(); +} +//#endregion +//#region dist/date-fns/isThisHour.js +/** +* The {@link isThisHour} function options. +*/ +/** +* @name isThisHour +* @category Hour Helpers +* @summary Is the given date in the same hour as the current date? +* @pure false +* +* @description +* Is the given date in the same hour as the current date? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is in this hour +* +* @example +* // If now is 25 September 2014 18:30:15.500, +* // is 25 September 2014 18:00:00 in this hour? +* const result = isThisHour(new Date(2014, 8, 25, 18)) +* //=> true +*/ +function _isThisHour(date, options) { + return _isSameHour(_toDate(date, options === null || options === void 0 ? void 0 : options.in), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isThisISOWeek.js +/** +* The {@link isThisISOWeek} function options. +*/ +/** +* @name isThisISOWeek +* @category ISO Week Helpers +* @summary Is the given date in the same ISO week as the current date? +* @pure false +* +* @description +* Is the given date in the same ISO week as the current date? +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is in this ISO week +* +* @example +* // If today is 25 September 2014, is 22 September 2014 in this ISO week? +* const result = isThisISOWeek(new Date(2014, 8, 22)) +* //=> true +*/ +function _isThisISOWeek(date, options) { + return _isSameISOWeek(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isThisMinute.js +/** +* @name isThisMinute +* @category Minute Helpers +* @summary Is the given date in the same minute as the current date? +* @pure false +* +* @description +* Is the given date in the same minute as the current date? +* +* @param date - The date to check +* +* @returns The date is in this minute +* +* @example +* // If now is 25 September 2014 18:30:15.500, +* // is 25 September 2014 18:30:00 in this minute? +* const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) +* //=> true +*/ +function _isThisMinute(date) { + return _isSameMinute(date, _constructNow(date)); +} +//#endregion +//#region dist/date-fns/isThisMonth.js +/** +* The {@link isThisMonth} function options. +*/ +/** +* @name isThisMonth +* @category Month Helpers +* @summary Is the given date in the same month as the current date? +* @pure false +* +* @description +* Is the given date in the same month as the current date? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is in this month +* +* @example +* // If today is 25 September 2014, is 15 September 2014 in this month? +* const result = isThisMonth(new Date(2014, 8, 15)) +* //=> true +*/ +function _isThisMonth(date, options) { + return _isSameMonth(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isThisQuarter.js +/** +* The {@link isThisQuarter} function options. +*/ +/** +* @name isThisQuarter +* @category Quarter Helpers +* @summary Is the given date in the same quarter as the current date? +* @pure false +* +* @description +* Is the given date in the same quarter as the current date? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is in this quarter +* +* @example +* // If today is 25 September 2014, is 2 July 2014 in this quarter? +* const result = isThisQuarter(new Date(2014, 6, 2)) +* //=> true +*/ +function _isThisQuarter(date, options) { + return _isSameQuarter(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isThisSecond.js +/** +* @name isThisSecond +* @category Second Helpers +* @summary Is the given date in the same second as the current date? +* @pure false +* +* @description +* Is the given date in the same second as the current date? +* +* @param date - The date to check +* +* @returns The date is in this second +* +* @example +* // If now is 25 September 2014 18:30:15.500, +* // is 25 September 2014 18:30:15.000 in this second? +* const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) +* //=> true +*/ +function _isThisSecond(date) { + return _isSameSecond(date, _constructNow(date)); +} +//#endregion +//#region dist/date-fns/isThisWeek.js +/** +* The {@link isThisWeek} function options. +*/ +/** +* @name isThisWeek +* @category Week Helpers +* @summary Is the given date in the same week as the current date? +* @pure false +* +* @description +* Is the given date in the same week as the current date? +* +* @param date - The date to check +* @param options - The object with options +* +* @returns The date is in this week +* +* @example +* // If today is 25 September 2014, is 21 September 2014 in this week? +* const result = isThisWeek(new Date(2014, 8, 21)) +* //=> true +* +* @example +* // If today is 25 September 2014 and week starts with Monday +* // is 21 September 2014 in this week? +* const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) +* //=> false +*/ +function _isThisWeek(date, options) { + return _isSameWeek(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date), options); +} +//#endregion +//#region dist/date-fns/isThisYear.js +/** +* The {@link isThisYear} function options. +*/ +/** +* @name isThisYear +* @category Year Helpers +* @summary Is the given date in the same year as the current date? +* @pure false +* +* @description +* Is the given date in the same year as the current date? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is in this year +* +* @example +* // If today is 25 September 2014, is 2 July 2014 in this year? +* const result = isThisYear(new Date(2014, 6, 2)) +* //=> true +*/ +function _isThisYear(date, options) { + return _isSameYear(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isThursday.js +/** +* The {@link isThursday} function options. +*/ +/** +* @name isThursday +* @category Weekday Helpers +* @summary Is the given date Thursday? +* +* @description +* Is the given date Thursday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Thursday +* +* @example +* // Is 25 September 2014 Thursday? +* const result = isThursday(new Date(2014, 8, 25)) +* //=> true +*/ +function _isThursday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 4; +} +//#endregion +//#region dist/date-fns/isToday.js +/** +* The {@link isToday} function options. +*/ +/** +* @name isToday +* @category Day Helpers +* @summary Is the given date today? +* @pure false +* +* @description +* Is the given date today? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is today +* +* @example +* // If today is 6 October 2014, is 6 October 14:00:00 today? +* const result = isToday(new Date(2014, 9, 6, 14, 0)) +* //=> true +*/ +function _isToday(date, options) { + return _isSameDay(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _constructNow((options === null || options === void 0 ? void 0 : options.in) || date)); +} +//#endregion +//#region dist/date-fns/isTomorrow.js +/** +* The {@link isTomorrow} function options. +*/ +/** +* @name isTomorrow +* @category Day Helpers +* @summary Is the given date tomorrow? +* @pure false +* +* @description +* Is the given date tomorrow? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is tomorrow +* +* @example +* // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? +* const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) +* //=> true +*/ +function _isTomorrow(date, options) { + return _isSameDay(date, _addDays(_constructNow((options === null || options === void 0 ? void 0 : options.in) || date), 1), options); +} +//#endregion +//#region dist/date-fns/isTuesday.js +/** +* The {@link isTuesday} function options. +*/ +/** +* @name isTuesday +* @category Weekday Helpers +* @summary Is the given date Tuesday? +* +* @description +* Is the given date Tuesday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Tuesday +* +* @example +* // Is 23 September 2014 Tuesday? +* const result = isTuesday(new Date(2014, 8, 23)) +* //=> true +*/ +function _isTuesday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 2; +} +//#endregion +//#region dist/date-fns/isWednesday.js +/** +* The {@link isWednesday} function options. +*/ +/** +* @name isWednesday +* @category Weekday Helpers +* @summary Is the given date Wednesday? +* +* @description +* Is the given date Wednesday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Wednesday +* +* @example +* // Is 24 September 2014 Wednesday? +* const result = isWednesday(new Date(2014, 8, 24)) +* //=> true +*/ +function _isWednesday(date, options) { + return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 3; +} +//#endregion +//#region dist/date-fns/isWithinInterval.js +/** +* The {@link isWithinInterval} function options. +*/ +/** +* @name isWithinInterval +* @category Interval Helpers +* @summary Is the given date within the interval? +* +* @description +* Is the given date within the interval? (Including start and end.) +* +* @param date - The date to check +* @param interval - The interval to check +* @param options - An object with options +* +* @returns The date is within the interval +* +* @example +* // For the date within the interval: +* isWithinInterval(new Date(2014, 0, 3), { +* start: new Date(2014, 0, 1), +* end: new Date(2014, 0, 7) +* }) +* // => true +* +* @example +* // For the date outside of the interval: +* isWithinInterval(new Date(2014, 0, 10), { +* start: new Date(2014, 0, 1), +* end: new Date(2014, 0, 7) +* }) +* // => false +* +* @example +* // For date equal to the interval start: +* isWithinInterval(date, { start, end: date }) +* // => true +* +* @example +* // For date equal to the interval end: +* isWithinInterval(date, { start: date, end }) +* // => true +*/ +function _isWithinInterval(date, interval, options) { + var time = +_toDate(date, options === null || options === void 0 ? void 0 : options.in); + var _sort9 = [+_toDate(interval.start, options === null || options === void 0 ? void 0 : options.in), +_toDate(interval.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort0 = _slicedToArray(_sort9, 2),startTime = _sort0[0],endTime = _sort0[1]; + return time >= startTime && time <= endTime; +} +//#endregion +//#region dist/date-fns/subDays.js +/** +* The {@link subDays} function options. +*/ +/** +* @name subDays +* @category Day Helpers +* @summary Subtract the specified number of days from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of days to be subtracted. +* @param options - An object with options +* +* @returns The new date with the days subtracted +* +* @example +* // Subtract 10 days from 1 September 2014: +* const result = subDays(new Date(2014, 8, 1), 10) +* //=> Fri Aug 22 2014 00:00:00 +*/ +function _subDays(date, amount, options) { + return _addDays(date, -amount, options); +} +//#endregion +//#region dist/date-fns/isYesterday.js +/** +* The {@link isYesterday} function options. +*/ +/** +* @name isYesterday +* @category Day Helpers +* @summary Is the given date yesterday? +* @pure false +* +* @description +* Is the given date yesterday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is yesterday +* +* @example +* // If today is 6 October 2014, is 5 October 14:00:00 yesterday? +* const result = isYesterday(new Date(2014, 9, 5, 14, 0)) +* //=> true +*/ +function _isYesterday(date, options) { + return _isSameDay(_constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, date), _subDays(_constructNow((options === null || options === void 0 ? void 0 : options.in) || date), 1)); +} +//#endregion +//#region dist/date-fns/lastDayOfDecade.js +/** +* The {@link lastDayOfDecade} function options. +*/ +/** +* @name lastDayOfDecade +* @category Decade Helpers +* @summary Return the last day of a decade for the given date. +* +* @description +* Return the last day of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. +* +* @param date - The original date +* @param options - The options +* +* @returns The last day of a decade +* +* @example +* // The last day of a decade for 21 December 2012 21:12:00: +* const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) +* //=> Wed Dec 31 2019 00:00:00 +*/ +function _lastDayOfDecade(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade + 1, 0, 0); + _date.setHours(0, 0, 0, 0); + return _toDate(_date, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/lastDayOfWeek.js +/** +* The {@link lastDayOfWeek} function options. +*/ +/** +* @name lastDayOfWeek +* @category Week Helpers +* @summary Return the last day of a week for the given date. +* +* @description +* Return the last day of a week for the given date. +* The result will be in the local timezone unless a context is specified. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a week +*/ +function _lastDayOfWeek(date, options) {var _ref38, _ref39, _ref40, _options$weekStartsOn8, _options$locale16, _defaultOptions$local10; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref38 = (_ref39 = (_ref40 = (_options$weekStartsOn8 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn8 !== void 0 ? _options$weekStartsOn8 : options === null || options === void 0 || (_options$locale16 = options.locale) === null || _options$locale16 === void 0 || (_options$locale16 = _options$locale16.options) === null || _options$locale16 === void 0 ? void 0 : _options$locale16.weekStartsOn) !== null && _ref40 !== void 0 ? _ref40 : defaultOptions.weekStartsOn) !== null && _ref39 !== void 0 ? _ref39 : (_defaultOptions$local10 = defaultOptions.locale) === null || _defaultOptions$local10 === void 0 || (_defaultOptions$local10 = _defaultOptions$local10.options) === null || _defaultOptions$local10 === void 0 ? void 0 : _defaultOptions$local10.weekStartsOn) !== null && _ref38 !== void 0 ? _ref38 : 0; + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + _date.setHours(0, 0, 0, 0); + _date.setDate(_date.getDate() + diff); + return _date; +} +//#endregion +//#region dist/date-fns/lastDayOfISOWeek.js +/** +* The {@link lastDayOfISOWeek} function options. +*/ +/** +* @name lastDayOfISOWeek +* @category ISO Week Helpers +* @summary Return the last day of an ISO week for the given date. +* +* @description +* Return the last day of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of an ISO week +* +* @example +* // The last day of an ISO week for 2 September 2014 11:55:00: +* const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function _lastDayOfISOWeek(date, options) { + return _lastDayOfWeek(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/lastDayOfISOWeekYear.js +/** +* The {@link lastDayOfISOWeekYear} function options. +*/ +/** +* @name lastDayOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the last day of an ISO week-numbering year for the given date. +* +* @description +* Return the last day of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an ISO week-numbering year +* +* @example +* // The last day of an ISO week-numbering year for 2 July 2005: +* const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Sun Jan 01 2006 00:00:00 +*/ +function _lastDayOfISOWeekYear(date, options) { + var year = _getISOWeekYear(date, options); + var fourthOfJanuary = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date_ = _startOfISOWeek(fourthOfJanuary, options); + date_.setDate(date_.getDate() - 1); + return date_; +} +//#endregion +//#region dist/date-fns/lastDayOfQuarter.js +/** +* The {@link lastDayOfQuarter} function options. +*/ +/** +* @name lastDayOfQuarter +* @category Quarter Helpers +* @summary Return the last day of a year quarter for the given date. +* +* @description +* Return the last day of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The last day of a quarter +* +* @example +* // The last day of a quarter for 2 September 2014 11:55:00: +* const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function _lastDayOfQuarter(date, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = date_.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date_.setMonth(month, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/lastDayOfYear.js +/** +* The {@link lastDayOfYear} function options. +*/ +/** +* @name lastDayOfYear +* @category Year Helpers +* @summary Return the last day of a year for the given date. +* +* @description +* Return the last day of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a year +* +* @example +* // The last day of a year for 2 September 2014 11:55:00: +* const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) +* //=> Wed Dec 31 2014 00:00:00 +*/ +function _lastDayOfYear(date, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = date_.getFullYear(); + date_.setFullYear(year + 1, 0, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/lightFormat.js +var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** +* @private +*/ +/** +* @name lightFormat +* @category Common Helpers +* @summary Format the date. +* +* @description +* Return the formatted date string in the given format. Unlike `format`, +* `lightFormat` doesn't use locales and outputs date using the most popular tokens. +* +* > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* +* Accepted patterns: +* | Unit | Pattern | Result examples | +* |---------------------------------|---------|-----------------------------------| +* | AM, PM | a..aaa | AM, PM | +* | | aaaa | a.m., p.m. | +* | | aaaaa | a, p | +* | Calendar year | y | 44, 1, 1900, 2017 | +* | | yy | 44, 01, 00, 17 | +* | | yyy | 044, 001, 000, 017 | +* | | yyyy | 0044, 0001, 1900, 2017 | +* | Month (formatting) | M | 1, 2, ..., 12 | +* | | MM | 01, 02, ..., 12 | +* | Day of month | d | 1, 2, ..., 31 | +* | | dd | 01, 02, ..., 31 | +* | Hour [1-12] | h | 1, 2, ..., 11, 12 | +* | | hh | 01, 02, ..., 11, 12 | +* | Hour [0-23] | H | 0, 1, 2, ..., 23 | +* | | HH | 00, 01, 02, ..., 23 | +* | Minute | m | 0, 1, ..., 59 | +* | | mm | 00, 01, ..., 59 | +* | Second | s | 0, 1, ..., 59 | +* | | ss | 00, 01, ..., 59 | +* | Fraction of second | S | 0, 1, ..., 9 | +* | | SS | 00, 01, ..., 99 | +* | | SSS | 000, 001, ..., 999 | +* | | SSSS | ... | +* +* @param date - The original date +* @param format - The string of tokens +* +* @returns The formatted date string +* +* @throws `Invalid time value` if the date is invalid +* @throws format string contains an unescaped latin alphabet character +* +* @example +* const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') +* //=> '2014-02-11' +*/ +function _lightFormat(date, formatStr) { + var date_ = _toDate(date); + if (!_isValid(date_)) throw new RangeError("Invalid time value"); + var tokens = formatStr.match(formattingTokensRegExp); + if (!tokens) return ""; + return tokens.map(function (substring) { + if (substring === "''") return "'"; + var firstCharacter = substring[0]; + if (firstCharacter === "'") return cleanEscapedString(substring); + var formatter = _lightFormatters[firstCharacter]; + if (formatter) return formatter(date_, substring); + if (firstCharacter.match(unescapedLatinCharacterRegExp)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + return substring; + }).join(""); +} +function cleanEscapedString(input) { + var matches = input.match(escapedStringRegExp); + if (!matches) return input; + return matches[1].replace(doubleQuoteRegExp, "'"); +} +//#endregion +//#region dist/date-fns/milliseconds.js +/** +* @name milliseconds +* @category Millisecond Helpers +* @summary +* Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. +* +* @description +* Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. +* +* One years equals 365.2425 days according to the formula: +* +* > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. +* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +* +* One month is a year divided by 12. +* +* @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. +* +* @returns The milliseconds +* +* @example +* // 1 year in milliseconds +* milliseconds({ years: 1 }) +* //=> 31556952000 +* +* // 3 months in milliseconds +* milliseconds({ months: 3 }) +* //=> 7889238000 +*/ +function _milliseconds2(_ref41) {var years = _ref41.years,months = _ref41.months,weeks = _ref41.weeks,days = _ref41.days,hours = _ref41.hours,minutes = _ref41.minutes,seconds = _ref41.seconds; + var totalDays = 0; + if (years) totalDays += years * daysInYear; + if (months) totalDays += months * (daysInYear / 12); + if (weeks) totalDays += weeks * 7; + if (days) totalDays += days; + var totalSeconds = totalDays * 24 * 60 * 60; + if (hours) totalSeconds += hours * 60 * 60; + if (minutes) totalSeconds += minutes * 60; + if (seconds) totalSeconds += seconds; + return Math.trunc(totalSeconds * 1e3); +} +//#endregion +//#region dist/date-fns/millisecondsToHours.js +/** +* @name millisecondsToHours +* @category Conversion Helpers +* @summary Convert milliseconds to hours. +* +* @description +* Convert a number of milliseconds to a full number of hours. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in hours +* +* @example +* // Convert 7200000 milliseconds to hours: +* const result = millisecondsToHours(7200000) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToHours(7199999) +* //=> 1 +*/ +function _millisecondsToHours(milliseconds) { + var hours = milliseconds / millisecondsInHour; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/millisecondsToMinutes.js +/** +* @name millisecondsToMinutes +* @category Conversion Helpers +* @summary Convert milliseconds to minutes. +* +* @description +* Convert a number of milliseconds to a full number of minutes. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in minutes +* +* @example +* // Convert 60000 milliseconds to minutes: +* const result = millisecondsToMinutes(60000) +* //=> 1 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToMinutes(119999) +* //=> 1 +*/ +function _millisecondsToMinutes(milliseconds) { + var minutes = milliseconds / millisecondsInMinute; + return Math.trunc(minutes); +} +//#endregion +//#region dist/date-fns/millisecondsToSeconds.js +/** +* @name millisecondsToSeconds +* @category Conversion Helpers +* @summary Convert milliseconds to seconds. +* +* @description +* Convert a number of milliseconds to a full number of seconds. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in seconds +* +* @example +* // Convert 1000 milliseconds to seconds: +* const result = millisecondsToSeconds(1000) +* //=> 1 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToSeconds(1999) +* //=> 1 +*/ +function _millisecondsToSeconds(milliseconds) { + var seconds = milliseconds / millisecondsInSecond; + return Math.trunc(seconds); +} +//#endregion +//#region dist/date-fns/minutesToHours.js +/** +* @name minutesToHours +* @category Conversion Helpers +* @summary Convert minutes to hours. +* +* @description +* Convert a number of minutes to a full number of hours. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in hours +* +* @example +* // Convert 140 minutes to hours: +* const result = minutesToHours(120) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = minutesToHours(179) +* //=> 2 +*/ +function _minutesToHours(minutes) { + var hours = minutes / 60; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/minutesToMilliseconds.js +/** +* @name minutesToMilliseconds +* @category Conversion Helpers +* @summary Convert minutes to milliseconds. +* +* @description +* Convert a number of minutes to a full number of milliseconds. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in milliseconds +* +* @example +* // Convert 2 minutes to milliseconds +* const result = minutesToMilliseconds(2) +* //=> 120000 +*/ +function _minutesToMilliseconds(minutes) { + return Math.trunc(minutes * millisecondsInMinute); +} +//#endregion +//#region dist/date-fns/minutesToSeconds.js +/** +* @name minutesToSeconds +* @category Conversion Helpers +* @summary Convert minutes to seconds. +* +* @description +* Convert a number of minutes to a full number of seconds. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in seconds +* +* @example +* // Convert 2 minutes to seconds +* const result = minutesToSeconds(2) +* //=> 120 +*/ +function _minutesToSeconds(minutes) { + return Math.trunc(minutes * 60); +} +//#endregion +//#region dist/date-fns/monthsToQuarters.js +/** +* @name monthsToQuarters +* @category Conversion Helpers +* @summary Convert number of months to quarters. +* +* @description +* Convert a number of months to a full number of quarters. +* +* @param months - The number of months to be converted. +* +* @returns The number of months converted in quarters +* +* @example +* // Convert 6 months to quarters: +* const result = monthsToQuarters(6) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = monthsToQuarters(7) +* //=> 2 +*/ +function _monthsToQuarters(months) { + var quarters = months / 3; + return Math.trunc(quarters); +} +//#endregion +//#region dist/date-fns/monthsToYears.js +/** +* @name monthsToYears +* @category Conversion Helpers +* @summary Convert number of months to years. +* +* @description +* Convert a number of months to a full number of years. +* +* @param months - The number of months to be converted +* +* @returns The number of months converted in years +* +* @example +* // Convert 36 months to years: +* const result = monthsToYears(36) +* //=> 3 +* +* // It uses floor rounding: +* const result = monthsToYears(40) +* //=> 3 +*/ +function _monthsToYears(months) { + var years = months / 12; + return Math.trunc(years); +} +//#endregion +//#region dist/date-fns/nextDay.js +/** +* The {@link nextDay} function options. +*/ +/** +* @name nextDay +* @category Weekday Helpers +* @summary When is the next day of the week? 0-6 the day of the week, 0 represents Sunday. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to check +* @param day - Day of the week +* @param options - An object with options +* +* @returns The date is the next day of the week +* +* @example +* // When is the next Monday after Mar, 20, 2020? +* const result = nextDay(new Date(2020, 2, 20), 1) +* //=> Mon Mar 23 2020 00:00:00 +* +* @example +* // When is the next Tuesday after Mar, 21, 2020? +* const result = nextDay(new Date(2020, 2, 21), 2) +* //=> Tue Mar 24 2020 00:00:00 +*/ +function _nextDay(date, day, options) { + var delta = day - _getDay(date, options); + if (delta <= 0) delta += 7; + return _addDays(date, delta, options); +} +//#endregion +//#region dist/date-fns/nextFriday.js +/** +* The {@link nextFriday} function options. +*/ +/** +* @name nextFriday +* @category Weekday Helpers +* @summary When is the next Friday? +* +* @description +* When is the next Friday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Friday +* +* @example +* // When is the next Friday after Mar, 22, 2020? +* const result = nextFriday(new Date(2020, 2, 22)) +* //=> Fri Mar 27 2020 00:00:00 +*/ +function _nextFriday(date, options) { + return _nextDay(date, 5, options); +} +//#endregion +//#region dist/date-fns/nextMonday.js +/** +* The {@link nextMonday} function options. +*/ +/** +* @name nextMonday +* @category Weekday Helpers +* @summary When is the next Monday? +* +* @description +* When is the next Monday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, returned from the context function if passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Monday +* +* @example +* // When is the next Monday after Mar, 22, 2020? +* const result = nextMonday(new Date(2020, 2, 22)) +* //=> Mon Mar 23 2020 00:00:00 +*/ +function _nextMonday(date, options) { + return _nextDay(date, 1, options); +} +//#endregion +//#region dist/date-fns/nextSaturday.js +/** +* The {@link nextSaturday} function options. +*/ +/** +* @name nextSaturday +* @category Weekday Helpers +* @summary When is the next Saturday? +* +* @description +* When is the next Saturday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Saturday +* +* @example +* // When is the next Saturday after Mar, 22, 2020? +* const result = nextSaturday(new Date(2020, 2, 22)) +* //=> Sat Mar 28 2020 00:00:00 +*/ +function _nextSaturday(date, options) { + return _nextDay(date, 6, options); +} +//#endregion +//#region dist/date-fns/nextSunday.js +/** +* The {@link nextSunday} function options. +*/ +/** +* @name nextSunday +* @category Weekday Helpers +* @summary When is the next Sunday? +* +* @description +* When is the next Sunday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned if a context is provided. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Sunday +* +* @example +* // When is the next Sunday after March 22, 2020? +* const result = nextSunday(new Date(2020, 2, 22)) +* //=> Sun Mar 29 2020 00:00:00 +*/ +function _nextSunday(date, options) { + return _nextDay(date, 0, options); +} +//#endregion +//#region dist/date-fns/nextThursday.js +/** +* The {@link nextThursday} function options. +*/ +/** +* @name nextThursday +* @category Weekday Helpers +* @summary When is the next Thursday? +* +* @description +* When is the next Thursday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Thursday +* +* @example +* // When is the next Thursday after Mar, 22, 2020? +* const result = nextThursday(new Date(2020, 2, 22)) +* //=> Thur Mar 26 2020 00:00:00 +*/ +function _nextThursday(date, options) { + return _nextDay(date, 4, options); +} +//#endregion +//#region dist/date-fns/nextTuesday.js +/** +* The {@link nextTuesday} function options. +*/ +/** +* @name nextTuesday +* @category Weekday Helpers +* @summary When is the next Tuesday? +* +* @description +* When is the next Tuesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Tuesday +* +* @example +* // When is the next Tuesday after Mar, 22, 2020? +* const result = nextTuesday(new Date(2020, 2, 22)) +* //=> Tue Mar 24 2020 00:00:00 +*/ +function _nextTuesday(date, options) { + return _nextDay(date, 2, options); +} +//#endregion +//#region dist/date-fns/nextWednesday.js +/** +* The {@link nextWednesday} function options. +*/ +/** +* @name nextWednesday +* @category Weekday Helpers +* @summary When is the next Wednesday? +* +* @description +* When is the next Wednesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Wednesday +* +* @example +* // When is the next Wednesday after Mar, 22, 2020? +* const result = nextWednesday(new Date(2020, 2, 22)) +* //=> Wed Mar 25 2020 00:00:00 +*/ +function _nextWednesday(date, options) { + return _nextDay(date, 3, options); +} +//#endregion +//#region dist/date-fns/parseISO.js +/** +* The {@link parseISO} function options. +*/ +/** +* @name parseISO +* @category Common Helpers +* @summary Parse ISO string +* +* @description +* Parse the given string in ISO 8601 format and return an instance of Date. +* +* Function accepts complete ISO 8601 formats as well as partial implementations. +* ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 +* +* If the argument isn't a string, the function cannot parse the string or +* the values are invalid, it returns Invalid Date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* @param options - An object with options +* +* @returns The parsed date in the local time zone +* +* @example +* // Convert string '2014-02-11T11:30:30' to date: +* const result = parseISO('2014-02-11T11:30:30') +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert string '+02014101' to date, +* // if the additional number of digits in the extended year format is 1: +* const result = parseISO('+02014101', { additionalDigits: 1 }) +* //=> Fri Apr 11 2014 00:00:00 +*/ +function _parseISO(argument, options) {var _options$additionalDi; + var invalidDate = function invalidDate() {return _constructFrom(options === null || options === void 0 ? void 0 : options.in, NaN);}; + var additionalDigits = (_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2; + var dateStrings = splitDateString(argument); + var date; + if (dateStrings.date) { + var parseYearResult = parseYear(dateStrings.date, additionalDigits); + date = parseDate(parseYearResult.restDateString, parseYearResult.year); + } + if (!date || isNaN(+date)) return invalidDate(); + var timestamp = +date; + var time = 0; + var offset; + if (dateStrings.time) { + time = parseTime(dateStrings.time); + if (isNaN(time)) return invalidDate(); + } + if (dateStrings.timezone) { + offset = parseTimezone(dateStrings.timezone); + if (isNaN(offset)) return invalidDate(); + } else { + var tmpDate = new Date(timestamp + time); + var result = _toDate(0, options === null || options === void 0 ? void 0 : options.in); + result.setFullYear(tmpDate.getUTCFullYear(), tmpDate.getUTCMonth(), tmpDate.getUTCDate()); + result.setHours(tmpDate.getUTCHours(), tmpDate.getUTCMinutes(), tmpDate.getUTCSeconds(), tmpDate.getUTCMilliseconds()); + return result; + } + return _toDate(timestamp + time + offset, options === null || options === void 0 ? void 0 : options.in); +} +var patterns = { + dateTimeDelimiter: /[T ]/, + timeZoneDelimiter: /[Z ]/i, + timezone: /([Z+-].*)$/ +}; +var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; +var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; +var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; +function splitDateString(dateString) { + var dateStrings = {}; + var array = dateString.split(patterns.dateTimeDelimiter); + var timeString; + if (array.length > 2) return dateStrings; + if (/:/.test(array[0])) timeString = array[0];else + { + dateStrings.date = array[0]; + timeString = array[1]; + if (patterns.timeZoneDelimiter.test(dateStrings.date)) { + dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; + timeString = dateString.substr(dateStrings.date.length, dateString.length); + } + } + if (timeString) { + var token = patterns.timezone.exec(timeString); + if (token) { + dateStrings.time = timeString.replace(token[1], ""); + dateStrings.timezone = token[1]; + } else dateStrings.time = timeString; + } + return dateStrings; +} +function parseYear(dateString, additionalDigits) { + var regex = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + additionalDigits) + "})|(\\d{2}|[+-]\\d{" + (2 + additionalDigits) + "})$)"); + var captures = dateString.match(regex); + if (!captures) return { + year: NaN, + restDateString: "" + }; + var year = captures[1] ? parseInt(captures[1]) : null; + var century = captures[2] ? parseInt(captures[2]) : null; + return { + year: century === null ? year : century * 100, + restDateString: dateString.slice((captures[1] || captures[2]).length) + }; +} +function parseDate(dateString, year) { + if (year === null) return /* @__PURE__ */new Date(NaN); + var captures = dateString.match(dateRegex); + if (!captures) return /* @__PURE__ */new Date(NaN); + var isWeekDate = !!captures[4]; + var dayOfYear = parseDateUnit(captures[1]); + var month = parseDateUnit(captures[2]) - 1; + var day = parseDateUnit(captures[3]); + var week = parseDateUnit(captures[4]); + var dayOfWeek = parseDateUnit(captures[5]) - 1; + if (isWeekDate) { + if (!validateWeekDate(year, week, dayOfWeek)) return /* @__PURE__ */new Date(NaN); + return dayOfISOWeekYear(year, week, dayOfWeek); + } else { + var date = /* @__PURE__ */new Date(0); + if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) return /* @__PURE__ */new Date(NaN); + date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); + return date; + } +} +function parseDateUnit(value) { + return value ? parseInt(value) : 1; +} +function parseTime(timeString) { + var captures = timeString.match(timeRegex); + if (!captures) return NaN; + var hours = parseTimeUnit(captures[1]); + var minutes = parseTimeUnit(captures[2]); + var seconds = parseTimeUnit(captures[3]); + if (!validateTime(hours, minutes, seconds)) return NaN; + return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1e3; +} +function parseTimeUnit(value) { + return value && parseFloat(value.replace(",", ".")) || 0; +} +function parseTimezone(timezoneString) { + if (timezoneString === "Z") return 0; + var captures = timezoneString.match(timezoneRegex); + if (!captures) return 0; + var sign = captures[1] === "+" ? -1 : 1; + var hours = parseInt(captures[2]); + var minutes = captures[3] && parseInt(captures[3]) || 0; + if (!validateTimezone(hours, minutes)) return NaN; + return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute); +} +function dayOfISOWeekYear(isoWeekYear, week, day) { + var date = /* @__PURE__ */new Date(0); + date.setUTCFullYear(isoWeekYear, 0, 4); + var fourthOfJanuaryDay = date.getUTCDay() || 7; + var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} +var daysInMonths = [ +31, +null, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +function validateDate(year, month, date) { + return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); +} +function validateDayOfYearDate(year, dayOfYear) { + return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); +} +function validateWeekDate(_year, week, day) { + return week >= 1 && week <= 53 && day >= 0 && day <= 6; +} +function validateTime(hours, minutes, seconds) { + if (hours === 24) return minutes === 0 && seconds === 0; + return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; +} +function validateTimezone(_hours, minutes) { + return minutes >= 0 && minutes <= 59; +} +//#endregion +//#region dist/date-fns/parseJSON.js +/** +* The {@link parseJSON} function options. +*/ +/** +* Converts a complete ISO date string in UTC time, the typical format for transmitting +* a date in JSON, to a JavaScript `Date` instance. +* +* This is a minimal implementation for converting dates retrieved from a JSON API to +* a `Date` instance which can be used with other functions in the `date-fns` library. +* The following formats are supported: +* +* - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())` +* - `2000-03-15T05:20:10Z`: Without milliseconds +* - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages +* - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages +* - `2000-03-15T05:20:10+0000`: With a zero offset without a colon +* - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol +* - `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 +* - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting +* +* For convenience and ease of use these other input types are also supported +* via [toDate](https://date-fns.org/docs/toDate): +* +* - A `Date` instance will be cloned +* - A `number` will be treated as a timestamp +* +* Any other input type or invalid date strings will return an `Invalid Date`. +* +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dateStr - A fully formed ISO8601 date string to convert +* @param options - An object with options +* +* @returns The parsed date in the local time zone +*/ +function _parseJSON(dateStr, options) { + var parts = dateStr.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/); + if (!parts) return _toDate(NaN, options === null || options === void 0 ? void 0 : options.in); + return _toDate(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)), options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/previousDay.js +/** +* The {@link previousDay} function options. +*/ +/** +* @name previousDay +* @category Weekday Helpers +* @summary When is the previous day of the week? +* +* @description +* When is the previous day of the week? 0-6 the day of the week, 0 represents Sunday. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to check +* @param day - The day of the week +* @param options - An object with options +* +* @returns The date is the previous day of week +* +* @example +* // When is the previous Monday before Mar, 20, 2020? +* const result = previousDay(new Date(2020, 2, 20), 1) +* //=> Mon Mar 16 2020 00:00:00 +* +* @example +* // When is the previous Tuesday before Mar, 21, 2020? +* const result = previousDay(new Date(2020, 2, 21), 2) +* //=> Tue Mar 17 2020 00:00:00 +*/ +function _previousDay(date, day, options) { + var delta = _getDay(date, options) - day; + if (delta <= 0) delta += 7; + return _subDays(date, delta, options); +} +//#endregion +//#region dist/date-fns/previousFriday.js +/** +* The {@link previousFriday} function options. +*/ +/** +* @name previousFriday +* @category Weekday Helpers +* @summary When is the previous Friday? +* +* @description +* When is the previous Friday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Friday +* +* @example +* // When is the previous Friday before Jun, 19, 2021? +* const result = previousFriday(new Date(2021, 5, 19)) +* //=> Fri June 18 2021 00:00:00 +*/ +function _previousFriday(date, options) { + return _previousDay(date, 5, options); +} +//#endregion +//#region dist/date-fns/previousMonday.js +/** +* The {@link previousMonday} function options. +*/ +/** +* @name previousMonday +* @category Weekday Helpers +* @summary When is the previous Monday? +* +* @description +* When is the previous Monday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Monday +* +* @example +* // When is the previous Monday before Jun, 18, 2021? +* const result = previousMonday(new Date(2021, 5, 18)) +* //=> Mon June 14 2021 00:00:00 +*/ +function _previousMonday(date, options) { + return _previousDay(date, 1, options); +} +//#endregion +//#region dist/date-fns/previousSaturday.js +/** +* The {@link previousSaturday} function options. +*/ +/** +* @name previousSaturday +* @category Weekday Helpers +* @summary When is the previous Saturday? +* +* @description +* When is the previous Saturday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Saturday +* +* @example +* // When is the previous Saturday before Jun, 20, 2021? +* const result = previousSaturday(new Date(2021, 5, 20)) +* //=> Sat June 19 2021 00:00:00 +*/ +function _previousSaturday(date, options) { + return _previousDay(date, 6, options); +} +//#endregion +//#region dist/date-fns/previousSunday.js +/** +* The {@link previousSunday} function options. +*/ +/** +* @name previousSunday +* @category Weekday Helpers +* @summary When is the previous Sunday? +* +* @description +* When is the previous Sunday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Sunday +* +* @example +* // When is the previous Sunday before Jun, 21, 2021? +* const result = previousSunday(new Date(2021, 5, 21)) +* //=> Sun June 20 2021 00:00:00 +*/ +function _previousSunday(date, options) { + return _previousDay(date, 0, options); +} +//#endregion +//#region dist/date-fns/previousThursday.js +/** +* The {@link previousThursday} function options. +*/ +/** +* @name previousThursday +* @category Weekday Helpers +* @summary When is the previous Thursday? +* +* @description +* When is the previous Thursday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Thursday +* +* @example +* // When is the previous Thursday before Jun, 18, 2021? +* const result = previousThursday(new Date(2021, 5, 18)) +* //=> Thu June 17 2021 00:00:00 +*/ +function _previousThursday(date, options) { + return _previousDay(date, 4, options); +} +//#endregion +//#region dist/date-fns/previousTuesday.js +/** +* The {@link previousTuesday} function options. +*/ +/** +* @name previousTuesday +* @category Weekday Helpers +* @summary When is the previous Tuesday? +* +* @description +* When is the previous Tuesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Tuesday +* +* @example +* // When is the previous Tuesday before Jun, 18, 2021? +* const result = previousTuesday(new Date(2021, 5, 18)) +* //=> Tue June 15 2021 00:00:00 +*/ +function _previousTuesday(date, options) { + return _previousDay(date, 2, options); +} +//#endregion +//#region dist/date-fns/previousWednesday.js +/** +* The {@link previousWednesday} function options. +*/ +/** +* @name previousWednesday +* @category Weekday Helpers +* @summary When is the previous Wednesday? +* +* @description +* When is the previous Wednesday? +* +* @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Wednesday +* +* @example +* // When is the previous Wednesday before Jun, 18, 2021? +* const result = previousWednesday(new Date(2021, 5, 18)) +* //=> Wed June 16 2021 00:00:00 +*/ +function _previousWednesday(date, options) { + return _previousDay(date, 3, options); +} +//#endregion +//#region dist/date-fns/quartersToMonths.js +/** +* @name quartersToMonths +* @category Conversion Helpers +* @summary Convert number of quarters to months. +* +* @description +* Convert a number of quarters to a full number of months. +* +* @param quarters - The number of quarters to be converted +* +* @returns The number of quarters converted in months +* +* @example +* // Convert 2 quarters to months +* const result = quartersToMonths(2) +* //=> 6 +*/ +function _quartersToMonths(quarters) { + return Math.trunc(quarters * 3); +} +//#endregion +//#region dist/date-fns/quartersToYears.js +/** +* @name quartersToYears +* @category Conversion Helpers +* @summary Convert number of quarters to years. +* +* @description +* Convert a number of quarters to a full number of years. +* +* @param quarters - The number of quarters to be converted +* +* @returns The number of quarters converted in years +* +* @example +* // Convert 8 quarters to years +* const result = quartersToYears(8) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = quartersToYears(11) +* //=> 2 +*/ +function _quartersToYears(quarters) { + var years = quarters / 4; + return Math.trunc(years); +} +//#endregion +//#region dist/date-fns/roundToNearestHours.js +/** +* The {@link roundToNearestHours} function options. +*/ +/** +* @name roundToNearestHours +* @category Hour Helpers +* @summary Rounds the given date to the nearest hour +* +* @description +* Rounds the given date to the nearest hour (or number of hours). +* Rounds up when the given date is exactly between the nearest round hours. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to round +* @param options - An object with options. +* +* @returns The new date rounded to the closest hour +* +* @example +* // Round 10 July 2014 12:34:56 to nearest hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56)) +* //=> Thu Jul 10 2014 13:00:00 +* +* @example +* // Round 10 July 2014 12:34:56 to nearest half hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 6 }) +* //=> Thu Jul 10 2014 12:00:00 +* +* @example +* // Round 10 July 2014 12:34:56 to nearest half hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 8 }) +* //=> Thu Jul 10 2014 16:00:00 +* +* @example +* // Floor (rounds down) 10 July 2014 12:34:56 to nearest hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 1, 23, 45), { roundingMethod: 'ceil' }) +* //=> Thu Jul 10 2014 02:00:00 +* +* @example +* // Ceil (rounds up) 10 July 2014 12:34:56 to nearest quarter hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { roundingMethod: 'floor', nearestTo: 8 }) +* //=> Thu Jul 10 2014 08:00:00 +*/ +function _roundToNearestHours(date, options) {var _options$nearestTo, _options$roundingMeth2; + var nearestTo = (_options$nearestTo = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1; + if (nearestTo < 1 || nearestTo > 12) return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var fractionalMinutes = date_.getMinutes() / 60; + var fractionalSeconds = date_.getSeconds() / 60 / 60; + var fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60 / 60; + var hours = date_.getHours() + fractionalMinutes + fractionalSeconds + fractionalMilliseconds; + var roundedHours = getRoundingMethod((_options$roundingMeth2 = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth2 !== void 0 ? _options$roundingMeth2 : "round")(hours / nearestTo) * nearestTo; + date_.setHours(roundedHours, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/roundToNearestMinutes.js +/** +* The {@link roundToNearestMinutes} function options. +*/ +/** +* @name roundToNearestMinutes +* @category Minute Helpers +* @summary Rounds the given date to the nearest minute +* +* @description +* Rounds the given date to the nearest minute (or number of minutes). +* Rounds up when the given date is exactly between the nearest round minutes. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to round +* @param options - An object with options. +* +* @returns The new date rounded to the closest minute +* +* @example +* // Round 10 July 2014 12:12:34 to nearest minute: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) +* //=> Thu Jul 10 2014 12:13:00 +* +* @example +* // Round 10 July 2014 12:12:34 to nearest quarter hour: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 }) +* //=> Thu Jul 10 2014 12:15:00 +* +* @example +* // Floor (rounds down) 10 July 2014 12:12:34 to nearest minute: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'floor' }) +* //=> Thu Jul 10 2014 12:12:00 +* +* @example +* // Ceil (rounds up) 10 July 2014 12:12:34 to nearest half hour: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'ceil', nearestTo: 30 }) +* //=> Thu Jul 10 2014 12:30:00 +*/ +function _roundToNearestMinutes(date, options) {var _options$nearestTo2, _options$roundingMeth3; + var nearestTo = (_options$nearestTo2 = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo2 !== void 0 ? _options$nearestTo2 : 1; + if (nearestTo < 1 || nearestTo > 30) return _constructFrom(date, NaN); + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var fractionalSeconds = date_.getSeconds() / 60; + var fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60; + var minutes = date_.getMinutes() + fractionalSeconds + fractionalMilliseconds; + var roundedMinutes = getRoundingMethod((_options$roundingMeth3 = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth3 !== void 0 ? _options$roundingMeth3 : "round")(minutes / nearestTo) * nearestTo; + date_.setMinutes(roundedMinutes, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/secondsToHours.js +/** +* @name secondsToHours +* @category Conversion Helpers +* @summary Convert seconds to hours. +* +* @description +* Convert a number of seconds to a full number of hours. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in hours +* +* @example +* // Convert 7200 seconds into hours +* const result = secondsToHours(7200) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = secondsToHours(7199) +* //=> 1 +*/ +function _secondsToHours(seconds) { + var hours = seconds / secondsInHour; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/secondsToMilliseconds.js +/** +* @name secondsToMilliseconds +* @category Conversion Helpers +* @summary Convert seconds to milliseconds. +* +* @description +* Convert a number of seconds to a full number of milliseconds. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in milliseconds +* +* @example +* // Convert 2 seconds into milliseconds +* const result = secondsToMilliseconds(2) +* //=> 2000 +*/ +function _secondsToMilliseconds(seconds) { + return seconds * millisecondsInSecond; +} +//#endregion +//#region dist/date-fns/secondsToMinutes.js +/** +* @name secondsToMinutes +* @category Conversion Helpers +* @summary Convert seconds to minutes. +* +* @description +* Convert a number of seconds to a full number of minutes. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in minutes +* +* @example +* // Convert 120 seconds into minutes +* const result = secondsToMinutes(120) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = secondsToMinutes(119) +* //=> 1 +*/ +function _secondsToMinutes(seconds) { + var minutes = seconds / 60; + return Math.trunc(minutes); +} +//#endregion +//#region dist/date-fns/setMonth.js +/** +* The {@link setMonth} function options. +*/ +/** +* @name setMonth +* @category Month Helpers +* @summary Set the month to the given date. +* +* @description +* Set the month to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param month - The month index to set (0-11) +* @param options - The options +* +* @returns The new date with the month set +* +* @example +* // Set February to 1 September 2014: +* const result = setMonth(new Date(2014, 8, 1), 1) +* //=> Sat Feb 01 2014 00:00:00 +*/ +function _setMonth(date, month, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var day = _date.getDate(); + var midMonth = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + midMonth.setFullYear(year, month, 15); + midMonth.setHours(0, 0, 0, 0); + var daysInMonth = _getDaysInMonth(midMonth); + _date.setMonth(month, Math.min(day, daysInMonth)); + return _date; +} +//#endregion +//#region dist/date-fns/set.js +/** +* The {@link set} function options. +*/ +/** +* @name set +* @category Common Helpers +* @summary Set date values to a given date. +* +* @description +* Set date values to a given date. +* +* Sets time values to date from object `values`. +* A value is not set if it is undefined or null or doesn't exist in `values`. +* +* Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts +* to use native `Date#setX` methods. If you use this function, you may not want to include the +* other `setX` functions that date-fns provides if you are concerned about the bundle size. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param values - The date values to be set +* @param options - The options +* +* @returns The new date with options set +* +* @example +* // Transform 1 September 2014 into 20 October 2015 in a single line: +* const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) +* //=> Tue Oct 20 2015 00:00:00 +* +* @example +* // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: +* const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) +* //=> Mon Sep 01 2014 12:23:45 +*/ +function _set(date, values, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+_date)) return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (values.year != null) _date.setFullYear(values.year); + if (values.month != null) _date = _setMonth(_date, values.month); + if (values.date != null) _date.setDate(values.date); + if (values.hours != null) _date.setHours(values.hours); + if (values.minutes != null) _date.setMinutes(values.minutes); + if (values.seconds != null) _date.setSeconds(values.seconds); + if (values.milliseconds != null) _date.setMilliseconds(values.milliseconds); + return _date; +} +//#endregion +//#region dist/date-fns/setDate.js +/** +* The {@link setDate} function options. +*/ +/** +* @name setDate +* @category Day Helpers +* @summary Set the day of the month to the given date. +* +* @description +* Set the day of the month to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param dayOfMonth - The day of the month of the new date +* @param options - The options +* +* @returns The new date with the day of the month set +* +* @example +* // Set the 30th day of the month to 1 September 2014: +* const result = setDate(new Date(2014, 8, 1), 30) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function _setDate(date, dayOfMonth, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setDate(dayOfMonth); + return _date; +} +//#endregion +//#region dist/date-fns/setDayOfYear.js +/** +* The {@link setDayOfYear} function options. +*/ +/** +* @name setDayOfYear +* @category Day Helpers +* @summary Set the day of the year to the given date. +* +* @description +* Set the day of the year to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param dayOfYear - The day of the year of the new date +* @param options - An object with options +* +* @returns The new date with the day of the year set +* +* @example +* // Set the 2nd day of the year to 2 July 2014: +* const result = setDayOfYear(new Date(2014, 6, 2), 2) +* //=> Thu Jan 02 2014 00:00:00 +*/ +function _setDayOfYear(date, dayOfYear, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMonth(0); + date_.setDate(dayOfYear); + return date_; +} +//#endregion +//#region dist/date-fns/setDefaultOptions.js +/** +* @name setDefaultOptions +* @category Common Helpers +* @summary Set default options including locale. +* @pure false +* +* @description +* Sets the defaults for +* `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` +* arguments for all functions. +* +* @param options - An object with options +* +* @example +* // Set global locale: +* import { es } from 'date-fns/locale' +* setDefaultOptions({ locale: es }) +* const result = format(new Date(2014, 8, 2), 'PPPP') +* //=> 'martes, 2 de septiembre de 2014' +* +* @example +* // Start of the week for 2 September 2014: +* const result = startOfWeek(new Date(2014, 8, 2)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // Start of the week for 2 September 2014, +* // when we set that week starts on Monday by default: +* setDefaultOptions({ weekStartsOn: 1 }) +* const result = startOfWeek(new Date(2014, 8, 2)) +* //=> Mon Sep 01 2014 00:00:00 +* +* @example +* // Manually set options take priority over default options: +* setDefaultOptions({ weekStartsOn: 1 }) +* const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 }) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // Remove the option by setting it to `undefined`: +* setDefaultOptions({ weekStartsOn: 1 }) +* setDefaultOptions({ weekStartsOn: undefined }) +* const result = startOfWeek(new Date(2014, 8, 2)) +* //=> Sun Aug 31 2014 00:00:00 +*/ +function _setDefaultOptions(options) { + var result = {}; + var defaultOptions = getDefaultOptions$1(); + for (var property in defaultOptions) if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) result[property] = defaultOptions[property]; + for (var _property in options) if (Object.prototype.hasOwnProperty.call(options, _property)) if (options[_property] === void 0) delete result[_property];else + result[_property] = options[_property]; + setDefaultOptions$1(result); +} +//#endregion +//#region dist/date-fns/setHours.js +/** +* The {@link setHours} function options. +*/ +/** +* @name setHours +* @category Hour Helpers +* @summary Set the hours to the given date. +* +* @description +* Set the hours to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param hours - The hours of the new date +* @param options - An object with options +* +* @returns The new date with the hours set +* +* @example +* // Set 4 hours to 1 September 2014 11:30:00: +* const result = setHours(new Date(2014, 8, 1, 11, 30), 4) +* //=> Mon Sep 01 2014 04:30:00 +*/ +function _setHours(date, hours, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(hours); + return _date; +} +//#endregion +//#region dist/date-fns/setMilliseconds.js +/** +* The {@link setMilliseconds} function options. +*/ +/** +* @name setMilliseconds +* @category Millisecond Helpers +* @summary Set the milliseconds to the given date. +* +* @description +* Set the milliseconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param milliseconds - The milliseconds of the new date +* @param options - The options +* +* @returns The new date with the milliseconds set +* +* @example +* // Set 300 milliseconds to 1 September 2014 11:30:40.500: +* const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) +* //=> Mon Sep 01 2014 11:30:40.300 +*/ +function _setMilliseconds(date, milliseconds, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMilliseconds(milliseconds); + return _date; +} +//#endregion +//#region dist/date-fns/setMinutes.js +/** +* The {@link setMinutes} function options. +*/ +/** +* @name setMinutes +* @category Minute Helpers +* @summary Set the minutes to the given date. +* +* @description +* Set the minutes to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, returned from the context function, or inferred from the arguments. +* +* @param date - The date to be changed +* @param minutes - The minutes of the new date +* @param options - An object with options +* +* @returns The new date with the minutes set +* +* @example +* // Set 45 minutes to 1 September 2014 11:30:40: +* const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) +* //=> Mon Sep 01 2014 11:45:40 +*/ +function _setMinutes(date, minutes, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMinutes(minutes); + return date_; +} +//#endregion +//#region dist/date-fns/setQuarter.js +/** +* The {@link setQuarter} function options. +*/ +/** +* @name setQuarter +* @category Quarter Helpers +* @summary Set the year quarter to the given date. +* +* @description +* Set the year quarter to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param quarter - The quarter of the new date +* @param options - The options +* +* @returns The new date with the quarter set +* +* @example +* // Set the 2nd quarter to 2 July 2014: +* const result = setQuarter(new Date(2014, 6, 2), 2) +* //=> Wed Apr 02 2014 00:00:00 +*/ +function _setQuarter(date, quarter, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var diff = quarter - (Math.trunc(date_.getMonth() / 3) + 1); + return _setMonth(date_, date_.getMonth() + diff * 3); +} +//#endregion +//#region dist/date-fns/setSeconds.js +/** +* The {@link setSeconds} function options. +*/ +/** +* @name setSeconds +* @category Second Helpers +* @summary Set the seconds to the given date, with context support. +* +* @description +* Set the seconds to the given date, with an optional context for time zone specification. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param seconds - The seconds of the new date +* @param options - An object with options +* +* @returns The new date with the seconds set +* +* @example +* // Set 45 seconds to 1 September 2014 11:30:40: +* const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) +* //=> Mon Sep 01 2014 11:30:45 +*/ +function _setSeconds(date, seconds, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + _date.setSeconds(seconds); + return _date; +} +//#endregion +//#region dist/date-fns/setWeekYear.js +/** +* The {@link setWeekYear} function options. +*/ +/** +* @name setWeekYear +* @category Week-Numbering Year Helpers +* @summary Set the local week-numbering year to the given date. +* +* @description +* Set the local week-numbering year to the given date, +* saving the week number and the weekday number. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param weekYear - The local week-numbering year of the new date +* @param options - An object with options +* +* @returns The new date with the local week-numbering year set +* +* @example +* // Set the local week-numbering year 2004 to 2 January 2010 with default options: +* const result = setWeekYear(new Date(2010, 0, 2), 2004) +* //=> Sat Jan 03 2004 00:00:00 +* +* @example +* // Set the local week-numbering year 2004 to 2 January 2010, +* // if Monday is the first day of week +* // and 4 January is always in the first week of the year: +* const result = setWeekYear(new Date(2010, 0, 2), 2004, { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Sat Jan 01 2005 00:00:00 +*/ +function _setWeekYear(date, weekYear, options) {var _ref42, _ref43, _ref44, _options$firstWeekCon5, _options$locale17, _defaultOptions$local11; + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref42 = (_ref43 = (_ref44 = (_options$firstWeekCon5 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon5 !== void 0 ? _options$firstWeekCon5 : options === null || options === void 0 || (_options$locale17 = options.locale) === null || _options$locale17 === void 0 || (_options$locale17 = _options$locale17.options) === null || _options$locale17 === void 0 ? void 0 : _options$locale17.firstWeekContainsDate) !== null && _ref44 !== void 0 ? _ref44 : defaultOptions.firstWeekContainsDate) !== null && _ref43 !== void 0 ? _ref43 : (_defaultOptions$local11 = defaultOptions.locale) === null || _defaultOptions$local11 === void 0 || (_defaultOptions$local11 = _defaultOptions$local11.options) === null || _defaultOptions$local11 === void 0 ? void 0 : _defaultOptions$local11.firstWeekContainsDate) !== null && _ref42 !== void 0 ? _ref42 : 1; + var diff = _differenceInCalendarDays(_toDate(date, options === null || options === void 0 ? void 0 : options.in), _startOfWeekYear(date, options), options); + var firstWeek = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date_ = _startOfWeekYear(firstWeek, options); + date_.setDate(date_.getDate() + diff); + return date_; +} +//#endregion +//#region dist/date-fns/setYear.js +/** +* The {@link setYear} function options. +*/ +/** +* @name setYear +* @category Year Helpers +* @summary Set the year to the given date. +* +* @description +* Set the year to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param year - The year of the new date +* @param options - An object with options. +* +* @returns The new date with the year set +* +* @example +* // Set year 2013 to 1 September 2014: +* const result = setYear(new Date(2014, 8, 1), 2013) +* //=> Sun Sep 01 2013 00:00:00 +*/ +function _setYear(date, year, options) { + var date_ = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date_)) return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + date_.setFullYear(year); + return date_; +} +//#endregion +//#region dist/date-fns/startOfDecade.js +/** +* The {@link startOfDecade} options. +*/ +/** +* @name startOfDecade +* @category Decade Helpers +* @summary Return the start of a decade for the given date. +* +* @description +* Return the start of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a decade +* +* @example +* // The start of a decade for 21 October 2015 00:00:00: +* const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) +* //=> Jan 01 2010 00:00:00 +*/ +function _startOfDecade(date, options) { + var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + _date.setFullYear(decade, 0, 1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/startOfToday.js +/** +* The {@link startOfToday} function options. +*/ +/** +* @name startOfToday +* @category Day Helpers +* @summary Return the start of today. +* @pure false +* +* @description +* Return the start of today. +* +* @typeParam ContextDate - The `Date` type of the context function. +* +* @param options - An object with options +* +* @returns The start of today +* +* @example +* // If today is 6 October 2014: +* const result = startOfToday() +* //=> Mon Oct 6 2014 00:00:00 +*/ +function _startOfToday(options) { + return _startOfDay(Date.now(), options); +} +//#endregion +//#region dist/date-fns/startOfTomorrow.js +/** +* The {@link startOfTomorrow} function options. +*/ +/** +* @name startOfTomorrow +* @category Day Helpers +* @summary Return the start of tomorrow. +* @pure false +* +* @typeParam ContextDate - The `Date` type of the context function. +* +* @param options - An object with options +* +* @returns The start of tomorrow +* +* @description +* Return the start of tomorrow. +* +* @example +* // If today is 6 October 2014: +* const result = startOfTomorrow() +* //=> Tue Oct 7 2014 00:00:00 +*/ +function _startOfTomorrow(options) { + var now = _constructNow(options === null || options === void 0 ? void 0 : options.in); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = _constructFrom(options === null || options === void 0 ? void 0 : options.in, 0); + date.setFullYear(year, month, day + 1); + date.setHours(0, 0, 0, 0); + return date; +} +//#endregion +//#region dist/date-fns/startOfYesterday.js +/** +* The {@link startOfYesterday} function options. +*/ +/** +* @name startOfYesterday +* @category Day Helpers +* @summary Return the start of yesterday. +* @pure false +* +* @typeParam ContextDate - The `Date` type of the context function. +* +* @param options - An object with options +* +* @description +* Return the start of yesterday. +* +* @returns The start of yesterday +* +* @example +* // If today is 6 October 2014: +* const result = startOfYesterday() +* //=> Sun Oct 5 2014 00:00:00 +*/ +function _startOfYesterday(options) { + var now = _constructNow(options === null || options === void 0 ? void 0 : options.in); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = _constructNow(options === null || options === void 0 ? void 0 : options.in); + date.setFullYear(year, month, day - 1); + date.setHours(0, 0, 0, 0); + return date; +} +//#endregion +//#region dist/date-fns/subMonths.js +/** +* The subMonths function options. +*/ +/** +* @name subMonths +* @category Month Helpers +* @summary Subtract the specified number of months from the given date. +* +* @description +* Subtract the specified number of months from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of months to be subtracted. +* @param options - An object with options +* +* @returns The new date with the months subtracted +* +* @example +* // Subtract 5 months from 1 February 2015: +* const result = subMonths(new Date(2015, 1, 1), 5) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function _subMonths(date, amount, options) { + return _addMonths(date, -amount, options); +} +//#endregion +//#region dist/date-fns/sub.js +/** +* The {@link sub} function options. +*/ +/** +* @name sub +* @category Common Helpers +* @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. +* +* @description +* Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be subtracted +* @param options - An object with options +* +* | Key | Description | +* |---------|------------------------------------| +* | years | Amount of years to be subtracted | +* | months | Amount of months to be subtracted | +* | weeks | Amount of weeks to be subtracted | +* | days | Amount of days to be subtracted | +* | hours | Amount of hours to be subtracted | +* | minutes | Amount of minutes to be subtracted | +* | seconds | Amount of seconds to be subtracted | +* +* All values default to 0 +* +* @returns The new date with the seconds subtracted +* +* @example +* // Subtract the following duration from 15 June 2017 15:29:20 +* const result = sub(new Date(2017, 5, 15, 15, 29, 20), { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }) +* //=> Mon Sep 1 2014 10:19:50 +*/ +function _sub(date, duration, options) { + var _duration$years3 = duration.years,years = _duration$years3 === void 0 ? 0 : _duration$years3,_duration$months3 = duration.months,months = _duration$months3 === void 0 ? 0 : _duration$months3,_duration$weeks2 = duration.weeks,weeks = _duration$weeks2 === void 0 ? 0 : _duration$weeks2,_duration$days3 = duration.days,days = _duration$days3 === void 0 ? 0 : _duration$days3,_duration$hours3 = duration.hours,hours = _duration$hours3 === void 0 ? 0 : _duration$hours3,_duration$minutes3 = duration.minutes,minutes = _duration$minutes3 === void 0 ? 0 : _duration$minutes3,_duration$seconds3 = duration.seconds,seconds = _duration$seconds3 === void 0 ? 0 : _duration$seconds3; + var withoutDays = _subDays(_subMonths(date, months + years * 12, options), days + weeks * 7, options); + var msToSub = (seconds + (minutes + hours * 60) * 60) * 1e3; + return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, +withoutDays - msToSub); +} +//#endregion +//#region dist/date-fns/subBusinessDays.js +/** +* The {@link subBusinessDays} function options. +*/ +/** +* @name subBusinessDays +* @category Day Helpers +* @summary Subtract the specified number of business days (mon - fri) from the given date. +* +* @description +* Subtract the specified number of business days (mon - fri) from the given date, ignoring weekends. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of business days to be subtracted. +* @param options - An object with options +* +* @returns The new date with the business days subtracted +* +* @example +* // Subtract 10 business days from 1 September 2014: +* const result = subBusinessDays(new Date(2014, 8, 1), 10) +* //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) +*/ +function _subBusinessDays(date, amount, options) { + return _addBusinessDays(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subHours.js +/** +* The {@link subHours} function options. +*/ +/** +* @name subHours +* @category Hour Helpers +* @summary Subtract the specified number of hours from the given date. +* +* @description +* Subtract the specified number of hours from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of hours to be subtracted. +* @param options - The options +* +* @returns The new date with the hours subtracted +* +* @example +* // Subtract 2 hours from 11 July 2014 01:00:00: +* const result = subHours(new Date(2014, 6, 11, 1, 0), 2) +* //=> Thu Jul 10 2014 23:00:00 +*/ +function _subHours(date, amount, options) { + return _addHours(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subMilliseconds.js +/** +* The {@link subMilliseconds} function options. +*/ +/** +* Subtract the specified number of milliseconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of milliseconds to be subtracted. +* @param options - An object with options +* +* @returns The new date with the milliseconds subtracted +*/ +function _subMilliseconds(date, amount, options) { + return _addMilliseconds(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subMinutes.js +/** +* The {@link subMinutes} function options. +*/ +/** +* @name subMinutes +* @category Minute Helpers +* @summary Subtract the specified number of minutes from the given date. +* +* @description +* Subtract the specified number of minutes from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of minutes to be subtracted. +* @param options - An object with options +* +* @returns The new date with the minutes subtracted +* +* @example +* // Subtract 30 minutes from 10 July 2014 12:00:00: +* const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) +* //=> Thu Jul 10 2014 11:30:00 +*/ +function _subMinutes(date, amount, options) { + return _addMinutes(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subQuarters.js +/** +* The {@link subQuarters} function options. +*/ +/** +* @name subQuarters +* @category Quarter Helpers +* @summary Subtract the specified number of year quarters from the given date. +* +* @description +* Subtract the specified number of year quarters from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of quarters to be subtracted. +* @param options - An object with options +* +* @returns The new date with the quarters subtracted +* +* @example +* // Subtract 3 quarters from 1 September 2014: +* const result = subQuarters(new Date(2014, 8, 1), 3) +* //=> Sun Dec 01 2013 00:00:00 +*/ +function _subQuarters(date, amount, options) { + return _addQuarters(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subSeconds.js +/** +* The {@link subSeconds} function options. +*/ +/** +* Subtract the specified number of seconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of seconds to be subtracted. +* @param options - The options +* +* @returns The new date with the seconds subtracted +* +* @example +* // Subtract 30 seconds from 10 July 2014 12:45:00: +* const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) +* //=> Thu Jul 10 2014 12:44:30 +*/ +function _subSeconds(date, amount, options) { + return _addSeconds(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subWeeks.js +/** +* The {@link subWeeks} function options. +*/ +/** +* @name subWeeks +* @category Week Helpers +* @summary Subtract the specified number of weeks from the given date. +* +* @description +* Subtract the specified number of weeks from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of weeks to be subtracted. +* @param options - An object with options +* +* @returns The new date with the weeks subtracted +* +* @example +* // Subtract 4 weeks from 1 September 2014: +* const result = subWeeks(new Date(2014, 8, 1), 4) +* //=> Mon Aug 04 2014 00:00:00 +*/ +function _subWeeks(date, amount, options) { + return _addWeeks(date, -amount, options); +} +//#endregion +//#region dist/date-fns/subYears.js +/** +* The {@link subYears} function options. +*/ +/** +* @name subYears +* @category Year Helpers +* @summary Subtract the specified number of years from the given date. +* +* @description +* Subtract the specified number of years from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of years to be subtracted. +* @param options - An object with options +* +* @returns The new date with the years subtracted +* +* @example +* // Subtract 5 years from 1 September 2014: +* const result = subYears(new Date(2014, 8, 1), 5) +* //=> Tue Sep 01 2009 00:00:00 +*/ +function _subYears(date, amount, options) { + return _addYears(date, -amount, options); +} +//#endregion +//#region dist/date-fns/weeksToDays.js +/** +* @name weeksToDays +* @category Conversion Helpers +* @summary Convert weeks to days. +* +* @description +* Convert a number of weeks to a full number of days. +* +* @param weeks - The number of weeks to be converted +* +* @returns The number of weeks converted in days +* +* @example +* // Convert 2 weeks into days +* const result = weeksToDays(2) +* //=> 14 +*/ +function _weeksToDays(weeks) { + return Math.trunc(weeks * 7); +} +//#endregion +//#region dist/date-fns/yearsToDays.js +/** +* @name yearsToDays +* @category Conversion Helpers +* @summary Convert years to days. +* +* @description +* Convert a number of years to a full number of days. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in days +* +* @example +* // Convert 2 years into days +* const result = yearsToDays(2) +* //=> 730 +*/ +function _yearsToDays(years) { + return Math.trunc(years * daysInYear); +} +//#endregion +//#region dist/date-fns/yearsToMonths.js +/** +* @name yearsToMonths +* @category Conversion Helpers +* @summary Convert years to months. +* +* @description +* Convert a number of years to a full number of months. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in months +* +* @example +* // Convert 2 years into months +* const result = yearsToMonths(2) +* //=> 24 +*/ +function _yearsToMonths(years) { + return Math.trunc(years * 12); +} +//#endregion +//#region dist/date-fns/yearsToQuarters.js +/** +* @name yearsToQuarters +* @category Conversion Helpers +* @summary Convert years to quarters. +* +* @description +* Convert a number of years to a full number of quarters. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in quarters +* +* @example +* // Convert 2 years to quarters +* const result = yearsToQuarters(2) +* //=> 8 +*/ +function _yearsToQuarters(years) { + return Math.trunc(years * 4); +} +//#endregion +//#region dist/date-fns/index.js +var date_fns_exports = /* @__PURE__ */__exportAll({ + add: function add() {return _add;}, + addBusinessDays: function addBusinessDays() {return _addBusinessDays;}, + addDays: function addDays() {return _addDays;}, + addHours: function addHours() {return _addHours;}, + addISOWeekYears: function addISOWeekYears() {return _addISOWeekYears;}, + addMilliseconds: function addMilliseconds() {return _addMilliseconds;}, + addMinutes: function addMinutes() {return _addMinutes;}, + addMonths: function addMonths() {return _addMonths;}, + addQuarters: function addQuarters() {return _addQuarters;}, + addSeconds: function addSeconds() {return _addSeconds;}, + addWeeks: function addWeeks() {return _addWeeks;}, + addYears: function addYears() {return _addYears;}, + areIntervalsOverlapping: function areIntervalsOverlapping() {return _areIntervalsOverlapping;}, + clamp: function clamp() {return _clamp;}, + closestIndexTo: function closestIndexTo() {return _closestIndexTo;}, + closestTo: function closestTo() {return _closestTo;}, + compareAsc: function compareAsc() {return _compareAsc;}, + compareDesc: function compareDesc() {return _compareDesc;}, + constructFrom: function constructFrom() {return _constructFrom;}, + constructNow: function constructNow() {return _constructNow;}, + daysToWeeks: function daysToWeeks() {return _daysToWeeks;}, + differenceInBusinessDays: function differenceInBusinessDays() {return _differenceInBusinessDays;}, + differenceInCalendarDays: function differenceInCalendarDays() {return _differenceInCalendarDays;}, + differenceInCalendarISOWeekYears: function differenceInCalendarISOWeekYears() {return _differenceInCalendarISOWeekYears;}, + differenceInCalendarISOWeeks: function differenceInCalendarISOWeeks() {return _differenceInCalendarISOWeeks;}, + differenceInCalendarMonths: function differenceInCalendarMonths() {return _differenceInCalendarMonths;}, + differenceInCalendarQuarters: function differenceInCalendarQuarters() {return _differenceInCalendarQuarters;}, + differenceInCalendarWeeks: function differenceInCalendarWeeks() {return _differenceInCalendarWeeks;}, + differenceInCalendarYears: function differenceInCalendarYears() {return _differenceInCalendarYears;}, + differenceInDays: function differenceInDays() {return _differenceInDays;}, + differenceInHours: function differenceInHours() {return _differenceInHours;}, + differenceInISOWeekYears: function differenceInISOWeekYears() {return _differenceInISOWeekYears;}, + differenceInMilliseconds: function differenceInMilliseconds() {return _differenceInMilliseconds;}, + differenceInMinutes: function differenceInMinutes() {return _differenceInMinutes;}, + differenceInMonths: function differenceInMonths() {return _differenceInMonths;}, + differenceInQuarters: function differenceInQuarters() {return _differenceInQuarters;}, + differenceInSeconds: function differenceInSeconds() {return _differenceInSeconds;}, + differenceInWeeks: function differenceInWeeks() {return _differenceInWeeks;}, + differenceInYears: function differenceInYears() {return _differenceInYears;}, + eachDayOfInterval: function eachDayOfInterval() {return _eachDayOfInterval;}, + eachHourOfInterval: function eachHourOfInterval() {return _eachHourOfInterval;}, + eachMinuteOfInterval: function eachMinuteOfInterval() {return _eachMinuteOfInterval;}, + eachMonthOfInterval: function eachMonthOfInterval() {return _eachMonthOfInterval;}, + eachQuarterOfInterval: function eachQuarterOfInterval() {return _eachQuarterOfInterval;}, + eachWeekOfInterval: function eachWeekOfInterval() {return _eachWeekOfInterval;}, + eachWeekendOfInterval: function eachWeekendOfInterval() {return _eachWeekendOfInterval;}, + eachWeekendOfMonth: function eachWeekendOfMonth() {return _eachWeekendOfMonth;}, + eachWeekendOfYear: function eachWeekendOfYear() {return _eachWeekendOfYear;}, + eachYearOfInterval: function eachYearOfInterval() {return _eachYearOfInterval;}, + endOfDay: function endOfDay() {return _endOfDay;}, + endOfDecade: function endOfDecade() {return _endOfDecade;}, + endOfHour: function endOfHour() {return _endOfHour;}, + endOfISOWeek: function endOfISOWeek() {return _endOfISOWeek;}, + endOfISOWeekYear: function endOfISOWeekYear() {return _endOfISOWeekYear;}, + endOfMinute: function endOfMinute() {return _endOfMinute;}, + endOfMonth: function endOfMonth() {return _endOfMonth;}, + endOfQuarter: function endOfQuarter() {return _endOfQuarter;}, + endOfSecond: function endOfSecond() {return _endOfSecond;}, + endOfToday: function endOfToday() {return _endOfToday;}, + endOfTomorrow: function endOfTomorrow() {return _endOfTomorrow;}, + endOfWeek: function endOfWeek() {return _endOfWeek;}, + endOfYear: function endOfYear() {return _endOfYear;}, + endOfYesterday: function endOfYesterday() {return _endOfYesterday;}, + format: function format() {return _format;}, + formatDate: function formatDate() {return _format;}, + formatDistance: function formatDistance() {return _formatDistance;}, + formatDistanceStrict: function formatDistanceStrict() {return _formatDistanceStrict;}, + formatDistanceToNow: function formatDistanceToNow() {return _formatDistanceToNow;}, + formatDistanceToNowStrict: function formatDistanceToNowStrict() {return _formatDistanceToNowStrict;}, + formatDuration: function formatDuration() {return _formatDuration;}, + formatISO: function formatISO() {return _formatISO;}, + formatISO9075: function formatISO9075() {return _formatISO2;}, + formatISODuration: function formatISODuration() {return _formatISODuration;}, + formatRFC3339: function formatRFC3339() {return _formatRFC;}, + formatRFC7231: function formatRFC7231() {return _formatRFC2;}, + formatRelative: function formatRelative() {return _formatRelative;}, + formatters: function formatters() {return _formatters;}, + fromUnixTime: function fromUnixTime() {return _fromUnixTime;}, + getDate: function getDate() {return _getDate;}, + getDay: function getDay() {return _getDay;}, + getDayOfYear: function getDayOfYear() {return _getDayOfYear;}, + getDaysInMonth: function getDaysInMonth() {return _getDaysInMonth;}, + getDaysInYear: function getDaysInYear() {return _getDaysInYear;}, + getDecade: function getDecade() {return _getDecade;}, + getDefaultOptions: function getDefaultOptions() {return _getDefaultOptions;}, + getHours: function getHours() {return _getHours;}, + getISODay: function getISODay() {return _getISODay;}, + getISOWeek: function getISOWeek() {return _getISOWeek;}, + getISOWeekYear: function getISOWeekYear() {return _getISOWeekYear;}, + getISOWeeksInYear: function getISOWeeksInYear() {return _getISOWeeksInYear;}, + getMilliseconds: function getMilliseconds() {return _getMilliseconds;}, + getMinutes: function getMinutes() {return _getMinutes;}, + getMonth: function getMonth() {return _getMonth;}, + getOverlappingDaysInIntervals: function getOverlappingDaysInIntervals() {return _getOverlappingDaysInIntervals;}, + getQuarter: function getQuarter() {return _getQuarter;}, + getSeconds: function getSeconds() {return _getSeconds;}, + getTime: function getTime() {return _getTime;}, + getUnixTime: function getUnixTime() {return _getUnixTime;}, + getWeek: function getWeek() {return _getWeek;}, + getWeekOfMonth: function getWeekOfMonth() {return _getWeekOfMonth;}, + getWeekYear: function getWeekYear() {return _getWeekYear;}, + getWeeksInMonth: function getWeeksInMonth() {return _getWeeksInMonth;}, + getYear: function getYear() {return _getYear;}, + hoursToMilliseconds: function hoursToMilliseconds() {return _hoursToMilliseconds;}, + hoursToMinutes: function hoursToMinutes() {return _hoursToMinutes;}, + hoursToSeconds: function hoursToSeconds() {return _hoursToSeconds;}, + interval: function interval() {return _interval;}, + intervalToDuration: function intervalToDuration() {return _intervalToDuration;}, + intlFormat: function intlFormat() {return _intlFormat;}, + intlFormatDistance: function intlFormatDistance() {return _intlFormatDistance;}, + isAfter: function isAfter() {return _isAfter;}, + isBefore: function isBefore() {return _isBefore;}, + isDate: function isDate() {return _isDate;}, + isEqual: function isEqual() {return _isEqual;}, + isExists: function isExists() {return _isExists;}, + isFirstDayOfMonth: function isFirstDayOfMonth() {return _isFirstDayOfMonth;}, + isFriday: function isFriday() {return _isFriday;}, + isFuture: function isFuture() {return _isFuture;}, + isLastDayOfMonth: function isLastDayOfMonth() {return _isLastDayOfMonth;}, + isLeapYear: function isLeapYear() {return _isLeapYear;}, + isMatch: function isMatch() {return _isMatch;}, + isMonday: function isMonday() {return _isMonday;}, + isPast: function isPast() {return _isPast;}, + isSameDay: function isSameDay() {return _isSameDay;}, + isSameHour: function isSameHour() {return _isSameHour;}, + isSameISOWeek: function isSameISOWeek() {return _isSameISOWeek;}, + isSameISOWeekYear: function isSameISOWeekYear() {return _isSameISOWeekYear;}, + isSameMinute: function isSameMinute() {return _isSameMinute;}, + isSameMonth: function isSameMonth() {return _isSameMonth;}, + isSameQuarter: function isSameQuarter() {return _isSameQuarter;}, + isSameSecond: function isSameSecond() {return _isSameSecond;}, + isSameWeek: function isSameWeek() {return _isSameWeek;}, + isSameYear: function isSameYear() {return _isSameYear;}, + isSaturday: function isSaturday() {return _isSaturday;}, + isSunday: function isSunday() {return _isSunday;}, + isThisHour: function isThisHour() {return _isThisHour;}, + isThisISOWeek: function isThisISOWeek() {return _isThisISOWeek;}, + isThisMinute: function isThisMinute() {return _isThisMinute;}, + isThisMonth: function isThisMonth() {return _isThisMonth;}, + isThisQuarter: function isThisQuarter() {return _isThisQuarter;}, + isThisSecond: function isThisSecond() {return _isThisSecond;}, + isThisWeek: function isThisWeek() {return _isThisWeek;}, + isThisYear: function isThisYear() {return _isThisYear;}, + isThursday: function isThursday() {return _isThursday;}, + isToday: function isToday() {return _isToday;}, + isTomorrow: function isTomorrow() {return _isTomorrow;}, + isTuesday: function isTuesday() {return _isTuesday;}, + isValid: function isValid() {return _isValid;}, + isWednesday: function isWednesday() {return _isWednesday;}, + isWeekend: function isWeekend() {return _isWeekend;}, + isWithinInterval: function isWithinInterval() {return _isWithinInterval;}, + isYesterday: function isYesterday() {return _isYesterday;}, + lastDayOfDecade: function lastDayOfDecade() {return _lastDayOfDecade;}, + lastDayOfISOWeek: function lastDayOfISOWeek() {return _lastDayOfISOWeek;}, + lastDayOfISOWeekYear: function lastDayOfISOWeekYear() {return _lastDayOfISOWeekYear;}, + lastDayOfMonth: function lastDayOfMonth() {return _lastDayOfMonth;}, + lastDayOfQuarter: function lastDayOfQuarter() {return _lastDayOfQuarter;}, + lastDayOfWeek: function lastDayOfWeek() {return _lastDayOfWeek;}, + lastDayOfYear: function lastDayOfYear() {return _lastDayOfYear;}, + lightFormat: function lightFormat() {return _lightFormat;}, + lightFormatters: function lightFormatters() {return _lightFormatters;}, + longFormatters: function longFormatters() {return _longFormatters;}, + max: function max() {return _max;}, + milliseconds: function milliseconds() {return _milliseconds2;}, + millisecondsToHours: function millisecondsToHours() {return _millisecondsToHours;}, + millisecondsToMinutes: function millisecondsToMinutes() {return _millisecondsToMinutes;}, + millisecondsToSeconds: function millisecondsToSeconds() {return _millisecondsToSeconds;}, + min: function min() {return _min;}, + minutesToHours: function minutesToHours() {return _minutesToHours;}, + minutesToMilliseconds: function minutesToMilliseconds() {return _minutesToMilliseconds;}, + minutesToSeconds: function minutesToSeconds() {return _minutesToSeconds;}, + monthsToQuarters: function monthsToQuarters() {return _monthsToQuarters;}, + monthsToYears: function monthsToYears() {return _monthsToYears;}, + nextDay: function nextDay() {return _nextDay;}, + nextFriday: function nextFriday() {return _nextFriday;}, + nextMonday: function nextMonday() {return _nextMonday;}, + nextSaturday: function nextSaturday() {return _nextSaturday;}, + nextSunday: function nextSunday() {return _nextSunday;}, + nextThursday: function nextThursday() {return _nextThursday;}, + nextTuesday: function nextTuesday() {return _nextTuesday;}, + nextWednesday: function nextWednesday() {return _nextWednesday;}, + parse: function parse() {return _parse;}, + parseISO: function parseISO() {return _parseISO;}, + parseJSON: function parseJSON() {return _parseJSON;}, + parsers: function parsers() {return _parsers;}, + previousDay: function previousDay() {return _previousDay;}, + previousFriday: function previousFriday() {return _previousFriday;}, + previousMonday: function previousMonday() {return _previousMonday;}, + previousSaturday: function previousSaturday() {return _previousSaturday;}, + previousSunday: function previousSunday() {return _previousSunday;}, + previousThursday: function previousThursday() {return _previousThursday;}, + previousTuesday: function previousTuesday() {return _previousTuesday;}, + previousWednesday: function previousWednesday() {return _previousWednesday;}, + quartersToMonths: function quartersToMonths() {return _quartersToMonths;}, + quartersToYears: function quartersToYears() {return _quartersToYears;}, + roundToNearestHours: function roundToNearestHours() {return _roundToNearestHours;}, + roundToNearestMinutes: function roundToNearestMinutes() {return _roundToNearestMinutes;}, + secondsToHours: function secondsToHours() {return _secondsToHours;}, + secondsToMilliseconds: function secondsToMilliseconds() {return _secondsToMilliseconds;}, + secondsToMinutes: function secondsToMinutes() {return _secondsToMinutes;}, + set: function set() {return _set;}, + setDate: function setDate() {return _setDate;}, + setDay: function setDay() {return _setDay;}, + setDayOfYear: function setDayOfYear() {return _setDayOfYear;}, + setDefaultOptions: function setDefaultOptions() {return _setDefaultOptions;}, + setHours: function setHours() {return _setHours;}, + setISODay: function setISODay() {return _setISODay;}, + setISOWeek: function setISOWeek() {return _setISOWeek;}, + setISOWeekYear: function setISOWeekYear() {return _setISOWeekYear;}, + setMilliseconds: function setMilliseconds() {return _setMilliseconds;}, + setMinutes: function setMinutes() {return _setMinutes;}, + setMonth: function setMonth() {return _setMonth;}, + setQuarter: function setQuarter() {return _setQuarter;}, + setSeconds: function setSeconds() {return _setSeconds;}, + setWeek: function setWeek() {return _setWeek;}, + setWeekYear: function setWeekYear() {return _setWeekYear;}, + setYear: function setYear() {return _setYear;}, + startOfDay: function startOfDay() {return _startOfDay;}, + startOfDecade: function startOfDecade() {return _startOfDecade;}, + startOfHour: function startOfHour() {return _startOfHour;}, + startOfISOWeek: function startOfISOWeek() {return _startOfISOWeek;}, + startOfISOWeekYear: function startOfISOWeekYear() {return _startOfISOWeekYear;}, + startOfMinute: function startOfMinute() {return _startOfMinute;}, + startOfMonth: function startOfMonth() {return _startOfMonth;}, + startOfQuarter: function startOfQuarter() {return _startOfQuarter;}, + startOfSecond: function startOfSecond() {return _startOfSecond;}, + startOfToday: function startOfToday() {return _startOfToday;}, + startOfTomorrow: function startOfTomorrow() {return _startOfTomorrow;}, + startOfWeek: function startOfWeek() {return _startOfWeek;}, + startOfWeekYear: function startOfWeekYear() {return _startOfWeekYear;}, + startOfYear: function startOfYear() {return _startOfYear;}, + startOfYesterday: function startOfYesterday() {return _startOfYesterday;}, + sub: function sub() {return _sub;}, + subBusinessDays: function subBusinessDays() {return _subBusinessDays;}, + subDays: function subDays() {return _subDays;}, + subHours: function subHours() {return _subHours;}, + subISOWeekYears: function subISOWeekYears() {return _subISOWeekYears;}, + subMilliseconds: function subMilliseconds() {return _subMilliseconds;}, + subMinutes: function subMinutes() {return _subMinutes;}, + subMonths: function subMonths() {return _subMonths;}, + subQuarters: function subQuarters() {return _subQuarters;}, + subSeconds: function subSeconds() {return _subSeconds;}, + subWeeks: function subWeeks() {return _subWeeks;}, + subYears: function subYears() {return _subYears;}, + toDate: function toDate() {return _toDate;}, + transpose: function transpose() {return _transpose;}, + weeksToDays: function weeksToDays() {return _weeksToDays;}, + yearsToDays: function yearsToDays() {return _yearsToDays;}, + yearsToMonths: function yearsToMonths() {return _yearsToMonths;}, + yearsToQuarters: function yearsToQuarters() {return _yearsToQuarters;} +}); +//#endregion +//#region dist/date-fns/_entries/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), +date_fns_exports); + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/cdn.min.js b/node_modules/date-fns/cdn.min.js new file mode 100644 index 000000000..308708f79 --- /dev/null +++ b/node_modules/date-fns/cdn.min.js @@ -0,0 +1,4 @@ +(()=>{function e(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=v(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function t(e,t,r){return t=a(t),n(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function n(e,t){if(t&&(C(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return r(e)}function r(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function ge(e,t,n){var r=t.years,i=r===void 0?0:r,a=t.months,o=a===void 0?0:a,s=t.weeks,c=s===void 0?0:s,l=t.days,u=l===void 0?0:l,d=t.hours,f=d===void 0?0:d,p=t.minutes,m=p===void 0?0:p,h=t.seconds,g=h===void 0?0:h,_=D(e,n?.in),v=o||i?he(_,o+i*12):_,y=u||c?O(v,u+c*7):v,ee=(g+(m+f*60)*60)*1e3;return E(n?.in||e,+y+ee)}function _e(e,t){return D(e,t?.in).getDay()===6}function ve(e,t){return D(e,t?.in).getDay()===0}function ye(e,t){var n=D(e,t?.in).getDay();return n===0||n===6}function be(e,t,n){var r=D(e,n?.in),i=ye(r,n);if(isNaN(t))return E(n?.in,NaN);var a=r.getHours(),o=t<0?-1:1,s=Math.trunc(t/5);r.setDate(r.getDate()+s*7);for(var c=Math.abs(t%5);c>0;)r.setDate(r.getDate()+o),ye(r,n)||--c;return i&&ye(r,n)&&t!==0&&(_e(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),ve(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function xe(e,t,n){return E(n?.in||e,+D(e)+t)}function Se(e,t,n){return xe(e,t*T,n)}var Ce={};function k(){return Ce}function we(e){Ce=e}function A(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=D(e,t?.in),s=o.getDay(),c=(s=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function N(e){var t=D(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function P(e){var t=[...arguments].slice(1),n=E.bind(null,e||t.find(function(e){return C(e)===`object`}));return t.map(n)}function Te(e,t){var n=D(e,t?.in);return n.setHours(0,0,0,0),n}function F(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=Te(i),s=Te(a),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/ce)}function I(e,t){var n=M(e,t),r=E(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),j(r)}function Ee(e,t,n){var r=D(e,n?.in),i=F(r,I(r,n)),a=E(n?.in||e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),r=I(a),r.setDate(r.getDate()+i),r}function De(e,t,n){return Ee(e,M(e,n)+t,n)}function Oe(e,t,n){var r=D(e,n?.in);return r.setTime(r.getTime()+t*w),r}function ke(e,t,n){return he(e,t*3,n)}function Ae(e,t,n){return xe(e,t*1e3,n)}function je(e,t,n){return O(e,t*7,n)}function Me(e,t,n){return he(e,t*12,n)}function Ne(e,t,n){var r=g([+D(e.start,n?.in),+D(e.end,n?.in)].sort(function(e,t){return e-t}),2),i=r[0],a=r[1],o=g([+D(t.start,n?.in),+D(t.end,n?.in)].sort(function(e,t){return e-t}),2),s=o[0],c=o[1];return n!=null&&n.inclusive?i<=c&&s<=a:it||isNaN(+t))&&(n=t)}),E(r,n||NaN)}function Ie(e,t,n){var r=g(P(n?.in,e,t.start,t.end),3),i=r[0],a=r[1],o=r[2];return Fe([Pe([i,a],n),o],n)}function Le(e,t){var n=+D(e);if(isNaN(n))return NaN;var r,i;return t.forEach(function(e,t){var a=D(e);if(isNaN(+a)){r=NaN,i=NaN;return}var o=Math.abs(n-+a);(r==null||o0?1:n}function ze(e,t){var n=D(e)-+D(t);return n>0?-1:n<0?1:n}function R(e){return E(e,Date.now())}function Be(e){var t=Math.trunc(e/7);return t===0?0:t}function Ve(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1];return+Te(i)==+Te(a)}function He(e){return e instanceof Date||C(e)===`object`&&Object.prototype.toString.call(e)===`[object Date]`}function z(e){return!(!He(e)&&typeof e!=`number`||isNaN(+D(e)))}function Ue(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1];if(!z(i)||!z(a))return NaN;for(var o=F(i,a),s=o<0?-1:1,c=Math.trunc(o/7),l=c*5,u=O(a,c*7);!Ve(i,u);)l+=ye(u,n)?0:s,u=O(u,s);return l===0?0:l}function We(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1];return M(i,n)-M(a,n)}function Ge(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=j(i),s=j(a),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/se)}function Ke(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=i.getFullYear()-a.getFullYear(),s=i.getMonth()-a.getMonth();return o*12+s}function qe(e,t){var n=D(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function Je(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=i.getFullYear()-a.getFullYear(),s=qe(i)-qe(a);return o*4+s}function Ye(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=A(i,n),s=A(a,n),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/se)}function Xe(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1];return i.getFullYear()-a.getFullYear()}function Ze(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=Qe(i,a),s=Math.abs(F(i,a));i.setDate(i.getDate()-o*s);var c=o*(s-Number(Qe(i,a)===-o));return c===0?0:c}function Qe(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function B(e){return function(t){var n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function $e(e,t,n){var r=g(P(n?.in,e,t),2),i=(r[0]-+r[1])/T;return B(n?.roundingMethod)(i)}function et(e,t,n){return De(e,-t,n)}function tt(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=L(i,a),s=Math.abs(We(i,a,n)),c=et(i,o*s,n),l=o*(s-Number(L(c,a)===-o));return l===0?0:l}function nt(e,t){return D(e)-+D(t)}function rt(e,t,n){var r=nt(e,t)/w;return B(n?.roundingMethod)(r)}function it(e,t){var n=D(e,t?.in);return n.setHours(23,59,59,999),n}function at(e,t){var n=D(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function ot(e,t){var n=D(e,t?.in);return+it(n,t)==+at(n,t)}function st(e,t,n){var r=g(P(n?.in,e,e,t),3),i=r[0],a=r[1],o=r[2],s=L(a,o),c=Math.abs(Ke(a,o));if(c<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*c);var l=L(a,o)===-s;ot(i)&&c===1&&L(i,o)===1&&(l=!1);var u=s*(c-+l);return u===0?0:u}function ct(e,t,n){var r=st(e,t,n)/3;return B(n?.roundingMethod)(r)}function lt(e,t,n){var r=nt(e,t)/1e3;return B(n?.roundingMethod)(r)}function ut(e,t,n){var r=Ze(e,t,n)/7;return B(n?.roundingMethod)(r)}function dt(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1],o=L(i,a),s=Math.abs(Xe(i,a));i.setFullYear(1584),a.setFullYear(1584);var c=o*(s-+(L(i,a)===-o));return c===0?0:c}function V(e,t){var n=g(P(e,t.start,t.end),2);return{start:n[0],end:n[1]}}function ft(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return a?l.reverse():l}function pt(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setMinutes(0,0,0);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s.setHours(s.getHours()+c);return a?l.reverse():l}function mt(e,t){var n=V(t?.in,e),r=n.start,i=n.end;r.setSeconds(0,0);var a=+r>+i,o=a?+r:+i,s=a?i:r,c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s=Oe(s,c);return a?l.reverse():l}function ht(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setDate(1);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s.setMonth(s.getMonth()+c);return a?l.reverse():l}function gt(e,t){var n=D(e,t?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function _t(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+gt(r):+gt(i),s=gt(a?i:r),c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s=ke(s,c);return a?l.reverse():l}function vt(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=A(a?i:r,t),s=A(a?r:i,t);o.setHours(15),s.setHours(15);var c=+s.getTime(),l=o,u=t?.step??1;if(!u)return[];u<0&&(u=-u,a=!a);for(var d=[];+l<=c;)l.setHours(0),d.push(E(r,l)),l=je(l,u),l.setHours(15);return a?d.reverse():d}function yt(e,t){for(var n=V(t?.in,e),r=n.start,i=n.end,a=ft({start:r,end:i},t),o=[],s=0;s+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setMonth(0,1);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(E(r,s)),s.setFullYear(s.getFullYear()+c);return a?l.reverse():l}function Et(e,t){var n=D(e,t?.in),r=n.getFullYear(),i=9+Math.floor(r/10)*10;return n.setFullYear(i,11,31),n.setHours(23,59,59,999),n}function Dt(e,t){var n=D(e,t?.in);return n.setMinutes(59,59,999),n}function Ot(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=D(e,t?.in),s=o.getDay(),c=(s0?`in `+r:r+` ago`:r};function zt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Bt={date:zt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:zt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:zt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Vt={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Ht=function(e,t,n,r){return Vt[e]};function Ut(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var Wt={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Ut({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Ut({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:Ut({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Ut({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Ut({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function Gt(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?qt(s,function(e){return e.test(o)}):Kt(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function Kt(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qt(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var Yt={code:`en-US`,formatDistance:Rt,formatLong:Bt,formatRelative:Ht,localize:Wt,match:{ordinalNumber:Jt({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Gt({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Gt({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:Gt({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Gt({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Gt({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Xt(e,t){var n=D(e,t?.in);return F(n,Ct(n))+1}function Zt(e,t){var n=D(e,t?.in),r=j(n)-+I(n);return Math.round(r/se)+1}function Qt(e,t){var n,r,i=D(e,t?.in),a=i.getFullYear(),o=k(),s=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??o.firstWeekContainsDate??((r=o.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,c=E(t?.in||e,0);c.setFullYear(a+1,0,s),c.setHours(0,0,0,0);var l=A(c,t),u=E(t?.in||e,0);u.setFullYear(a,0,s),u.setHours(0,0,0,0);var d=A(u,t);return+i>=+l?a+1:+i>=+d?a:a-1}function $t(e,t){var n,r,i=k(),a=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??i.firstWeekContainsDate??((r=i.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,o=Qt(e,t),s=E(t?.in||e,0);return s.setFullYear(o,0,a),s.setHours(0,0,0,0),A(s,t)}function en(e,t){var n=D(e,t?.in),r=A(n,t)-+$t(n,t);return Math.round(r/se)+1}function H(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var U={y:function(e,t){var n=e.getFullYear(),r=n>0?n:1-n;return H(t===`yy`?r%100:r,t.length)},M:function(e,t){var n=e.getMonth();return t===`M`?String(n+1):H(n+1,2)},d:function(e,t){return H(e.getDate(),t.length)},a:function(e,t){var n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h:function(e,t){return H(e.getHours()%12||12,t.length)},H:function(e,t){return H(e.getHours(),t.length)},m:function(e,t){return H(e.getMinutes(),t.length)},s:function(e,t){return H(e.getSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getMilliseconds();return H(Math.trunc(r*10**(n-3)),t.length)}},tn={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},nn={G:function(e,t,n){var r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){var r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:`year`})}return U.y(e,t)},Y:function(e,t,n,r){var i=Qt(e,r),a=i>0?i:1-i;return t===`YY`?H(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):H(a,t.length)},R:function(e,t){return H(M(e),t.length)},u:function(e,t){return H(e.getFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return H(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return H(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){var r=e.getMonth();switch(t){case`M`:case`MM`:return U.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){var r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return H(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){var i=en(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):H(i,t.length)},I:function(e,t,n){var r=Zt(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):H(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):U.d(e,t)},D:function(e,t,n){var r=Xt(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):H(r,t.length)},E:function(e,t,n){var r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){var i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return H(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){var i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return H(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){var r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return H(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){var r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){var r=e.getHours(),i=r===12?tn.noon:r===0?tn.midnight:r/12>=1?`pm`:`am`;switch(t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){var r=e.getHours(),i=r>=17?tn.evening:r>=12?tn.afternoon:r>=4?tn.morning:tn.night;switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){var r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:`hour`})}return U.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):U.H(e,t)},K:function(e,t,n){var r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):H(r,t.length)},k:function(e,t,n){var r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):H(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):U.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):U.s(e,t)},S:function(e,t){return U.S(e,t)},X:function(e,t,n){var r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return an(r);case`XXXX`:case`XX`:return W(r);default:return W(r,`:`)}},x:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`x`:return an(r);case`xxxx`:case`xx`:return W(r);default:return W(r,`:`)}},O:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+rn(r,`:`);default:return`GMT`+W(r,`:`)}},z:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+rn(r,`:`);default:return`GMT`+W(r,`:`)}},t:function(e,t,n){return H(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return H(+e,t.length)}};function rn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+H(a,2)}function an(e,t){return e%60==0?(e>0?`-`:`+`)+H(Math.abs(e)/60,2):W(e,t)}function W(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e>0?`-`:`+`,r=Math.abs(e),i=H(Math.trunc(r/60),2),a=H(r%60,2);return n+i+t+a}var on=function(e,t){switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},sn=function(e,t){switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},cn={p:sn,P:function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return on(e,t);var a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,on(r,t)).replace(`{{time}}`,sn(i,t))}},ln=/^D+$/,un=/^Y+$/,dn=[`D`,`DD`,`YY`,`YYYY`];function fn(e){return ln.test(e)}function pn(e){return un.test(e)}function mn(e,t,n){var r=hn(e,t,n);if(console.warn(r),dn.includes(e))throw RangeError(r)}function hn(e,t,n){var r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var gn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vn=/^'([^]*?)'?$/,yn=/''/g,bn=/[a-zA-Z]/;function xn(e,t,n){var r,i,a,o,s=k(),c=n?.locale??s.locale??Yt,l=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((i=s.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,u=n?.weekStartsOn??(n==null||(a=n.locale)==null||(a=a.options)==null?void 0:a.weekStartsOn)??s.weekStartsOn??((o=s.locale)==null||(o=o.options)==null?void 0:o.weekStartsOn)??0,d=D(e,n?.in);if(!z(d))throw RangeError(`Invalid time value`);var f=t.match(_n).map(function(e){var t=e[0];if(t===`p`||t===`P`){var n=cn[t];return n(e,c.formatLong)}return e}).join(``).match(gn).map(function(e){if(e===`''`)return{isToken:!1,value:`'`};var t=e[0];if(t===`'`)return{isToken:!1,value:Sn(e)};if(nn[t])return{isToken:!0,value:e};if(t.match(bn))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});c.localize.preprocessor&&(f=c.localize.preprocessor(d,f));var p={firstWeekContainsDate:l,weekStartsOn:u,locale:c};return f.map(function(r){if(!r.isToken)return r.value;var i=r.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&pn(i)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&fn(i))&&mn(i,t,String(e));var a=nn[i[0]];return a(d,i,c.localize,p)}).join(``)}function Sn(e){var t=e.match(vn);return t?t[1].replace(yn,`'`):e}function Cn(e,t,n){var r=k(),i=n?.locale??r.locale??Yt,a=2520,o=L(e,t);if(isNaN(o))throw RangeError(`Invalid time value`);var s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),c=g(P.apply(void 0,[n?.in].concat(d(o>0?[t,e]:[e,t]))),2),l=c[0],u=c[1],f=lt(u,l),p=(N(u)-N(l))/1e3,m=Math.round((f-p)/60),h;if(m<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance(`lessThanXSeconds`,5,s):f<10?i.formatDistance(`lessThanXSeconds`,10,s):f<20?i.formatDistance(`lessThanXSeconds`,20,s):f<40?i.formatDistance(`halfAMinute`,0,s):f<60?i.formatDistance(`lessThanXMinutes`,1,s):i.formatDistance(`xMinutes`,1,s):m===0?i.formatDistance(`lessThanXMinutes`,1,s):i.formatDistance(`xMinutes`,m,s);if(m<45)return i.formatDistance(`xMinutes`,m,s);if(m<90)return i.formatDistance(`aboutXHours`,1,s);if(m<1440){var _=Math.round(m/60);return i.formatDistance(`aboutXHours`,_,s)}else if(m0?[t,e]:[e,t]))),2),c=s[0],l=s[1],u=B(n?.roundingMethod??`round`),f=l.getTime()-c.getTime(),p=f/w,m=(f-(N(l)-N(c)))/w,h=n?.unit,_=h||(p<1?`second`:p<60?`minute`:p<1440?`hour`:m<43200?`day`:m<525600?`month`:`year`);if(_===`second`){var v=u(f/1e3);return i.formatDistance(`xSeconds`,v,o)}else if(_===`minute`){var y=u(p);return i.formatDistance(`xMinutes`,y,o)}else if(_===`hour`){var ee=u(p/60);return i.formatDistance(`xHours`,ee,o)}else if(_===`day`){var b=u(m/fe);return i.formatDistance(`xDays`,b,o)}else if(_===`month`){var te=u(m/de);return te===12&&h!==`month`?i.formatDistance(`xYears`,1,o):i.formatDistance(`xMonths`,te,o)}else{var x=u(m/ue);return i.formatDistance(`xYears`,x,o)}}function Tn(e,t){return Cn(e,R(e),t)}function En(e,t){return wn(e,R(e),t)}var Dn=[`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`];function On(e,t){var n=k(),r=t?.locale??n.locale??Yt,i=t?.format??Dn,a=t?.zero??!1,o=t?.delimiter??` `;return r.formatDistance?i.reduce(function(t,n){var i=`x${n.replace(/(^.)/,function(e){return e.toUpperCase()})}`,o=e[n];return o!==void 0&&(a||e[n])?t.concat(r.formatDistance(i,o)):t},[]).join(o):``}function kn(e,t){var n=D(e,t?.in);if(isNaN(+n))throw RangeError(`Invalid time value`);var r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=``,s=r===`extended`?`-`:``,c=r===`extended`?`:`:``;if(i!==`time`){var l=H(n.getDate(),2),u=H(n.getMonth()+1,2);a=``.concat(H(n.getFullYear(),4),s,u,s,l)}if(i!==`date`){var d=n.getTimezoneOffset();if(d!==0){var f=Math.abs(d),p=H(Math.trunc(f/60),2),m=H(f%60,2);o=`${d<0?`+`:`-`}${p}:${m}`}else o=`Z`;var h=H(n.getHours(),2),g=H(n.getMinutes(),2),_=H(n.getSeconds(),2),v=a===``?``:`T`,y=[h,g,_].join(c);a=`${a}${v}${y}${o}`}return a}function An(e,t){var n=D(e,t?.in);if(!z(n))throw RangeError(`Invalid time value`);var r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=r===`extended`?`-`:``,s=r===`extended`?`:`:``;if(i!==`time`){var c=H(n.getDate(),2),l=H(n.getMonth()+1,2);a=``.concat(H(n.getFullYear(),4),o,l,o,c)}if(i!==`date`){var u=H(n.getHours(),2),d=H(n.getMinutes(),2),f=H(n.getSeconds(),2);a=``.concat(a,a===``?``:` `,u,s,d,s,f)}return a}function jn(e){var t=e.years,n=t===void 0?0:t,r=e.months,i=r===void 0?0:r,a=e.days,o=a===void 0?0:a,s=e.hours,c=s===void 0?0:s,l=e.minutes,u=l===void 0?0:l,d=e.seconds;return`P${n}Y${i}M${o}DT${c}H${u}M${d===void 0?0:d}S`}function Mn(e,t){var n=D(e,t?.in);if(!z(n))throw RangeError(`Invalid time value`);var r=t?.fractionDigits??0,i=H(n.getDate(),2),a=H(n.getMonth()+1,2),o=n.getFullYear(),s=H(n.getHours(),2),c=H(n.getMinutes(),2),l=H(n.getSeconds(),2),u=``;if(r>0){var d=n.getMilliseconds();u=`.`+H(Math.trunc(d*10**(r-3)),r)}var f=``,p=n.getTimezoneOffset();if(p!==0){var m=Math.abs(p),h=H(Math.trunc(m/60),2),g=H(m%60,2);f=`${p<0?`+`:`-`}${h}:${g}`}else f=`Z`;return`${o}-${a}-${i}T${s}:${c}:${l}${u}${f}`}var Nn=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Pn=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function Fn(e){var t=D(e);if(!z(t))throw RangeError(`Invalid time value`);return`${Nn[t.getUTCDay()]}, ${H(t.getUTCDate(),2)} ${Pn[t.getUTCMonth()]} ${t.getUTCFullYear()} ${H(t.getUTCHours(),2)}:${H(t.getUTCMinutes(),2)}:${H(t.getUTCSeconds(),2)} GMT`}function In(e,t,n){var r,i,a=g(P(n?.in,e,t),2),o=a[0],s=a[1],c=k(),l=n?.locale??c.locale??Yt,u=n?.weekStartsOn??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??c.weekStartsOn??((i=c.locale)==null||(i=i.options)==null?void 0:i.weekStartsOn)??0,d=F(o,s);if(isNaN(d))throw RangeError(`Invalid time value`);var f=d<-6?`other`:d<-1?`lastWeek`:d<0?`yesterday`:d<1?`today`:d<2?`tomorrow`:d<7?`nextWeek`:`other`;return xn(o,l.formatRelative(f,o,s,{locale:l,weekStartsOn:u}),{locale:l,weekStartsOn:u})}function Ln(e,t){return D(e*1e3,t?.in)}function Rn(e,t){return D(e,t?.in).getDate()}function zn(e,t){return D(e,t?.in).getDay()}function Bn(e,t){var n=D(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=E(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Vn(e,t){var n=D(e,t?.in).getFullYear();return n%400==0||n%4==0&&n%100!=0}function Hn(e,t){var n=D(e,t?.in);return Number.isNaN(+n)?NaN:Vn(n)?366:365}function Un(e,t){var n=D(e,t?.in).getFullYear();return Math.floor(n/10)*10}function Wn(){return Object.assign({},k())}function Gn(e,t){return D(e,t?.in).getHours()}function Kn(e,t){var n=D(e,t?.in).getDay();return n===0?7:n}function qn(e,t){var n=I(e,t),r=I(je(n,60))-+n;return Math.round(r/se)}function Jn(e){return D(e).getMilliseconds()}function Yn(e,t){return D(e,t?.in).getMinutes()}function Xn(e,t){return D(e,t?.in).getMonth()}function Zn(e,t){var n=g([+D(e.start),+D(e.end)].sort(function(e,t){return e-t}),2),r=n[0],i=n[1],a=g([+D(t.start),+D(t.end)].sort(function(e,t){return e-t}),2),o=a[0],s=a[1];if(!(ri?i:s,d=u-N(u);return Math.ceil((d-l)/ce)}function Qn(e){return D(e).getSeconds()}function $n(e){return+D(e)}function er(e){return Math.trunc(D(e)/1e3)}function tr(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=Rn(D(e,t?.in));if(isNaN(o))return NaN;var s=a-zn(bt(e,t));s<=0&&(s+=7);var c=o-s;return Math.ceil(c/7)+1}function nr(e,t){var n=D(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),D(n,t?.in)}function rr(e,t){var n=D(e,t?.in);return Ye(nr(n,t),bt(n,t),t)+1}function ir(e,t){return D(e,t?.in).getFullYear()}function ar(e){return Math.trunc(e*T)}function or(e){return Math.trunc(e*60)}function sr(e){return Math.trunc(e*pe)}function cr(e,t,n){var r=g(P(n?.in,e,t),2),i=r[0],a=r[1];if(isNaN(+i))throw TypeError(`Start date is invalid`);if(isNaN(+a))throw TypeError(`End date is invalid`);if(n!=null&&n.assertPositive&&+i>+a)throw TypeError(`End date must be after start date`);return{start:i,end:a}}function lr(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a={},o=dt(i,r);o&&(a.years=o);var s=ge(r,{years:a.years}),c=st(i,s);c&&(a.months=c);var l=ge(s,{months:a.months}),u=Ze(i,l);u&&(a.days=u);var d=ge(l,{days:a.days}),f=$e(i,d);f&&(a.hours=f);var p=ge(d,{hours:a.hours}),m=rt(i,p);m&&(a.minutes=m);var h=lt(i,ge(p,{minutes:a.minutes}));return h&&(a.seconds=h),a}function ur(e,t,n){var r;return dr(t)?r=t:n=t,new Intl.DateTimeFormat(n?.locale,r).format(D(e))}function dr(e){return e!==void 0&&!(`locale`in e)}function fr(e,t,n){var r=0,i,a=g(P(n?.in,e,t),2),o=a[0],s=a[1];if(n!=null&&n.unit)i=n?.unit,i===`second`?r=lt(o,s):i===`minute`?r=rt(o,s):i===`hour`?r=$e(o,s):i===`day`?r=F(o,s):i===`week`?r=Ye(o,s):i===`month`?r=Ke(o,s):i===`quarter`?r=Je(o,s):i===`year`&&(r=Xe(o,s));else{var c=lt(o,s);Math.abs(c)<60?(r=lt(o,s),i=`second`):Math.abs(c)<3600?(r=rt(o,s),i=`minute`):Math.abs(c)<86400&&Math.abs(F(o,s))<1?(r=$e(o,s),i=`hour`):Math.abs(c)<604800&&(r=F(o,s))&&Math.abs(r)<7?i=`day`:Math.abs(c)<2629746?(r=Ye(o,s),i=`week`):Math.abs(c)<7889238?(r=Ke(o,s),i=`month`):Math.abs(c)<31556952&&Je(o,s)<4?(r=Je(o,s),i=`quarter`):(r=Xe(o,s),i=`year`)}return new Intl.RelativeTimeFormat(n?.locale,x({numeric:`auto`},n)).format(r,i)}function pr(e,t){return+D(e)>+D(t)}function mr(e,t){return+D(e)<+D(t)}function hr(e,t){return+D(e)==+D(t)}function gr(e,t,n){var r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function _r(e,t){return D(e,t?.in).getDate()===1}function vr(e,t){return D(e,t?.in).getDay()===5}function yr(e){return+D(e)>Date.now()}function br(e,t){var n=xr(t)?new t(0):E(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function xr(e){return typeof e==`function`&&e.prototype?.constructor===e}var Sr=10,Cr=function(){function e(){c(this,e),S(this,`subPriority`,0)}return u(e,[{key:`validate`,value:function(e,t){return!0}}])}(),wr=function(e){function n(e,r,i,a,o){var s;return c(this,n),s=t(this,n),s.value=e,s.validateValue=r,s.setValue=i,s.priority=a,o&&(s.subPriority=o),s}return o(n,e),u(n,[{key:`validate`,value:function(e,t){return this.validateValue(e,this.value,t)}},{key:`set`,value:function(e,t,n){return this.setValue(e,t,this.value,n)}}])}(Cr),Tr=function(e){function n(e,r){var i;return c(this,n),i=t(this,n),S(i,`priority`,Sr),S(i,`subPriority`,-1),i.context=e||function(e){return E(r,e)},i}return o(n,e),u(n,[{key:`set`,value:function(e,t){return t.timestampIsSet?e:E(e,br(e,this.context))}}])}(Cr),G=function(){function e(){c(this,e)}return u(e,[{key:`run`,value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new wr(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:`validate`,value:function(e,t,n){return!0}}])}(),Er=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,140),S(e,`incompatibleTokens`,[`R`,`u`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}},{key:`set`,value:function(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}])}(G),K={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function J(e,t){return e&&{value:t(e.value),rest:e.rest}}function Y(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function X(e,t){var n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};var r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*T+a*w+o*le),rest:t.slice(n[0].length)}}function Dr(e){return Y(K.anyDigitsSigned,e)}function Z(e,t){switch(e){case 1:return Y(K.singleDigit,t);case 2:return Y(K.twoDigits,t);case 3:return Y(K.threeDigits,t);case 4:return Y(K.fourDigits,t);default:return Y(RegExp(`^\\d{1,`+e+`}`),t)}}function Or(e,t){switch(e){case 1:return Y(K.singleDigitSigned,t);case 2:return Y(K.twoDigitsSigned,t);case 3:return Y(K.threeDigitsSigned,t);case 4:return Y(K.fourDigitsSigned,t);default:return Y(RegExp(`^-?\\d{1,`+e+`}`),t)}}function kr(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function Ar(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.trunc(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function jr(e){return e%400==0||e%4==0&&e%100!=0}var Mr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,130),S(e,`incompatibleTokens`,[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`yy`}};switch(t){case`y`:return J(Z(4,e),r);case`yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n){var r=e.getFullYear();if(n.isTwoDigitYear){var i=Ar(n.year,r);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}var a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}])}(G),Nr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,130),S(e,`incompatibleTokens`,[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`YY`}};switch(t){case`Y`:return J(Z(4,e),r);case`Yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n,r){var i=Qt(e,r);if(n.isTwoDigitYear){var a=Ar(n.year,i);return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),A(e,r)}var o=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),A(e,r)}}])}(G),Pr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,130),S(e,`incompatibleTokens`,[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return Or(t===`R`?4:t.length,e)}},{key:`set`,value:function(e,t,n){var r=E(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),j(r)}}])}(G),Fr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,130),S(e,`incompatibleTokens`,[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return Or(t===`u`?4:t.length,e)}},{key:`set`,value:function(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}])}(G),Ir=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,120),S(e,`incompatibleTokens`,[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`Q`:case`QQ`:return Z(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}])}(G),Lr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,120),S(e,`incompatibleTokens`,[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`q`:case`qq`:return Z(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}])}(G),Rr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),S(e,`priority`,110),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`M`:return J(Y(K.month,e),r);case`MM`:return J(Z(2,e),r);case`Mo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}])}(G),zr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,110),S(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`L`:return J(Y(K.month,e),r);case`LL`:return J(Z(2,e),r);case`Lo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}])}(G);function Br(e,t,n){var r=D(e,n?.in),i=en(r,n)-t;return r.setDate(r.getDate()-i*7),D(r,n?.in)}var Vr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,100),S(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`w`:return Y(K.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n,r){return A(Br(e,n,r),r)}}])}(G);function Hr(e,t,n){var r=D(e,n?.in),i=Zt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Ur=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,100),S(e,`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`I`:return Y(K.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n){return j(Hr(e,n))}}])}(G),Wr=[31,28,31,30,31,30,31,31,30,31,30,31],Gr=[31,29,31,30,31,30,31,31,30,31,30,31],Kr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`subPriority`,1),S(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`d`:return Y(K.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){var n=jr(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Gr[r]:t>=1&&t<=Wr[r]}},{key:`set`,value:function(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}])}(G),qr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`subpriority`,1),S(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`D`:case`DD`:return Y(K.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return jr(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:`set`,value:function(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}])}(G);function Jr(e,t,n){var r,i,a=k(),o=n?.weekStartsOn??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((i=a.locale)==null||(i=i.options)==null?void 0:i.weekStartsOn)??0,s=D(e,n?.in),c=s.getDay(),l=(t%7+7)%7,u=7-o;return O(s,t<0||t>6?t-(c+u)%7:(l+u)%7-(c+u)%7,n)}var Yr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`incompatibleTokens`,[`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=Jr(e,n,r),e.setHours(0,0,0,0),e}}])}(G),Xr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return J(Z(t.length,e),i);case`eo`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=Jr(e,n,r),e.setHours(0,0,0,0),e}}])}(G),Zr=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return J(Z(t.length,e),i);case`co`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=Jr(e,n,r),e.setHours(0,0,0,0),e}}])}(G);function Qr(e,t,n){var r=D(e,n?.in);return O(r,t-Kn(r,n),n)}var $r=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,90),S(e,`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e===0?7:e};switch(t){case`i`:case`ii`:return Z(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return J(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return J(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return J(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return J(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=7}},{key:`set`,value:function(e,t,n){return e=Qr(e,n),e.setHours(0,0,0,0),e}}])}(G),ei=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,80),S(e,`incompatibleTokens`,[`b`,`B`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(kr(n),0,0,0),e}}])}(G),ti=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,80),S(e,`incompatibleTokens`,[`a`,`B`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(kr(n),0,0,0),e}}])}(G),ni=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,80),S(e,`incompatibleTokens`,[`a`,`b`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(kr(n),0,0,0),e}}])}(G),ri=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,70),S(e,`incompatibleTokens`,[`H`,`K`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`h`:return Y(K.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=12}},{key:`set`,value:function(e,t,n){var r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}}])}(G),ii=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,70),S(e,`incompatibleTokens`,[`a`,`b`,`h`,`K`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`H`:return Y(K.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=23}},{key:`set`,value:function(e,t,n){return e.setHours(n,0,0,0),e}}])}(G),ai=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,70),S(e,`incompatibleTokens`,[`h`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`K`:return Y(K.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}])}(G),oi=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,70),S(e,`incompatibleTokens`,[`a`,`b`,`h`,`H`,`K`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`k`:return Y(K.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=24}},{key:`set`,value:function(e,t,n){var r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}])}(G),si=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,60),S(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`m`:return Y(K.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setMinutes(n,0,0),e}}])}(G),ci=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,50),S(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`s`:return Y(K.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setSeconds(n,0),e}}])}(G),li=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,30),S(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return J(Z(t.length,e),function(e){return Math.trunc(e*10**(-t.length+3))})}},{key:`set`,value:function(e,t,n){return e.setMilliseconds(n),e}}])}(G),ui=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,10),S(e,`incompatibleTokens`,[`t`,`T`,`x`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){switch(t){case`X`:return X(q.basicOptionalMinutes,e);case`XX`:return X(q.basic,e);case`XXXX`:return X(q.basicOptionalSeconds,e);case`XXXXX`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:E(e,e.getTime()-N(e)-n)}}])}(G),di=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,10),S(e,`incompatibleTokens`,[`t`,`T`,`X`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){switch(t){case`x`:return X(q.basicOptionalMinutes,e);case`xx`:return X(q.basic,e);case`xxxx`:return X(q.basicOptionalSeconds,e);case`xxxxx`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:E(e,e.getTime()-N(e)-n)}}])}(G),fi=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,40),S(e,`incompatibleTokens`,`*`),e}return o(n,e),u(n,[{key:`parse`,value:function(e){return Dr(e)}},{key:`set`,value:function(e,t,n){return[E(e,n*1e3),{timestampIsSet:!0}]}}])}(G),pi=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),S(e,`priority`,20),S(e,`incompatibleTokens`,`*`),e}return o(n,e),u(n,[{key:`parse`,value:function(e){return Dr(e)}},{key:`set`,value:function(e,t,n){return[E(e,n),{timestampIsSet:!0}]}}])}(G),mi={G:new Er,y:new Mr,Y:new Nr,R:new Pr,u:new Fr,Q:new Ir,q:new Lr,M:new Rr,L:new zr,w:new Vr,I:new Ur,d:new Kr,D:new qr,E:new Yr,e:new Xr,c:new Zr,i:new $r,a:new ei,b:new ti,B:new ni,h:new ri,H:new ii,K:new ai,k:new oi,m:new si,s:new ci,S:new li,X:new ui,x:new di,t:new fi,T:new pi},hi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_i=/^'([^]*?)'?$/,vi=/''/g,yi=/\S/,bi=/[a-zA-Z]/;function xi(t,n,r,i){var a,o,s,c,l=function(){return E(i?.in||r,NaN)},u=Wn(),d=i?.locale??u.locale??Yt,f=i?.firstWeekContainsDate??(i==null||(a=i.locale)==null||(a=a.options)==null?void 0:a.firstWeekContainsDate)??u.firstWeekContainsDate??((o=u.locale)==null||(o=o.options)==null?void 0:o.firstWeekContainsDate)??1,p=i?.weekStartsOn??(i==null||(s=i.locale)==null||(s=s.options)==null?void 0:s.weekStartsOn)??u.weekStartsOn??((c=u.locale)==null||(c=c.options)==null?void 0:c.weekStartsOn)??0;if(!n)return t?l():D(r,i?.in);var m={firstWeekContainsDate:f,weekStartsOn:p,locale:d},h=[new Tr(i?.in,r)],g=n.match(gi).map(function(e){var t=e[0];if(t in cn){var n=cn[t];return n(e,d.formatLong)}return e}).join(``).match(hi),_=[],v=e(g),y;try{var ee=function(){var e=y.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&pn(e)&&mn(e,n,t),!(i!=null&&i.useAdditionalDayOfYearTokens)&&fn(e)&&mn(e,n,t);var r=e[0],a=mi[r];if(a){var o=a.incompatibleTokens;if(Array.isArray(o)){var s=_.find(function(e){return o.includes(e.token)||e.token===r});if(s)throw RangeError(`The format string mustn't contain \`${s.fullToken}\` and \`${e}\` at the same time`)}else if(a.incompatibleTokens===`*`&&_.length>0)throw RangeError(`The format string mustn't contain \`${e}\` and any other token at the same time`);_.push({token:r,fullToken:e});var c=a.run(t,e,d.match,m);if(!c)return{v:l()};h.push(c.setter),t=c.rest}else{if(r.match(bi))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if(e===`''`?e=`'`:r===`'`&&(e=Si(e)),t.indexOf(e)===0)t=t.slice(e.length);else return{v:l()}}},b;for(v.s();!(y=v.n()).done;)if(b=ee(),b)return b.v}catch(e){v.e(e)}finally{v.f()}if(t.length>0&&yi.test(t))return l();var te=h.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return h.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),x=D(r,i?.in);if(isNaN(+x))return l();var S={},ne=e(te),re;try{for(ne.s();!(re=ne.n()).done;){var C=re.value;if(!C.validate(x,m))return l();var ie=C.set(x,S,m);Array.isArray(ie)?(x=ie[0],Object.assign(S,ie[1])):x=ie}}catch(e){ne.e(e)}finally{ne.f()}return x}function Si(e){return e.match(_i)[1].replace(vi,`'`)}function Ci(e,t,n){return z(xi(e,t,new Date,n))}function wi(e,t){return D(e,t?.in).getDay()===1}function Ti(e){return+D(e)=a&&r<=o}function Qi(e,t,n){return O(e,-t,n)}function $i(e,t){return Ve(E(t?.in||e,e),Qi(R(t?.in||e),1))}function ea(e,t){var n=D(e,t?.in),r=n.getFullYear(),i=9+Math.floor(r/10)*10;return n.setFullYear(i+1,0,0),n.setHours(0,0,0,0),D(n,t?.in)}function ta(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=D(e,t?.in),s=o.getDay(),c=(s2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ka.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ka.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=ka.timezone.exec(r);i?(t.time=r.replace(i[1],``),t.timezone=i[1]):t.time=r}return t}function Pa(e,t){var n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Fa(e,t){if(t===null)return new Date(NaN);var n=e.match(Aa);if(!n)return new Date(NaN);var r=!!n[4],i=Ia(n[1]),a=Ia(n[2])-1,o=Ia(n[3]),s=Ia(n[4]),c=Ia(n[5])-1;if(r)return Ga(t,s,c)?Ba(t,s,c):new Date(NaN);var l=new Date(0);return!Ua(t,a,o)||!Wa(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function Ia(e){return e?parseInt(e):1}function La(e){var t=e.match(ja);if(!t)return NaN;var n=Ra(t[1]),r=Ra(t[2]),i=Ra(t[3]);return Ka(n,r,i)?n*T+r*w+i*1e3:NaN}function Ra(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function za(e){if(e===`Z`)return 0;var t=e.match(Ma);if(!t)return 0;var n=t[1]===`+`?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return qa(r,i)?n*(r*T+i*w):NaN}function Ba(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Va=[31,null,31,30,31,30,31,31,30,31,30,31];function Ha(e){return e%400==0||e%4==0&&e%100!=0}function Ua(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Va[t]||(Ha(e)?29:28))}function Wa(e,t){return t>=1&&t<=(Ha(e)?366:365)}function Ga(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ka(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function qa(e,t){return t>=0&&t<=59}function Ja(e,t){var n=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return D(n?Date.UTC(+n[1],n[2]-1,+n[3],n[4]-(+n[9]||0)*(n[8]==`-`?-1:1),n[5]-(+n[10]||0)*(n[8]==`-`?-1:1),+n[6],+((n[7]||`0`)+`00`).substring(0,3)):NaN,t?.in)}function $(e,t,n){var r=zn(e,n)-t;return r<=0&&(r+=7),Qi(e,r,n)}function Ya(e,t){return $(e,5,t)}function Xa(e,t){return $(e,1,t)}function Za(e,t){return $(e,6,t)}function Qa(e,t){return $(e,0,t)}function $a(e,t){return $(e,4,t)}function eo(e,t){return $(e,2,t)}function to(e,t){return $(e,3,t)}function no(e){return Math.trunc(e*3)}function ro(e){var t=e/4;return Math.trunc(t)}function io(e,t){var n=t?.nearestTo??1;if(n<1||n>12)return E(t?.in||e,NaN);var r=D(e,t?.in),i=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,s=r.getHours()+i+a+o,c=B(t?.roundingMethod??`round`)(s/n)*n;return r.setHours(c,0,0,0),r}function ao(e,t){var n=t?.nearestTo??1;if(n<1||n>30)return E(e,NaN);var r=D(e,t?.in),i=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+i+a,s=B(t?.roundingMethod??`round`)(o/n)*n;return r.setMinutes(s,0,0),r}function oo(e){var t=e/pe;return Math.trunc(t)}function so(e){return e*le}function co(e){var t=e/60;return Math.trunc(t)}function lo(e,t,n){var r=D(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=E(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);var s=Bn(o);return r.setMonth(t,Math.min(a,s)),r}function uo(e,t,n){var r=D(e,n?.in);return isNaN(+r)?E(n?.in||e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=lo(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function fo(e,t,n){var r=D(e,n?.in);return r.setDate(t),r}function po(e,t,n){var r=D(e,n?.in);return r.setMonth(0),r.setDate(t),r}function mo(e){var t={},n=k();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]===void 0?delete t[i]:t[i]=e[i]);we(t)}function ho(e,t,n){var r=D(e,n?.in);return r.setHours(t),r}function go(e,t,n){var r=D(e,n?.in);return r.setMilliseconds(t),r}function _o(e,t,n){var r=D(e,n?.in);return r.setMinutes(t),r}function vo(e,t,n){var r=D(e,n?.in),i=t-(Math.trunc(r.getMonth()/3)+1);return lo(r,r.getMonth()+i*3)}function yo(e,t,n){var r=D(e,n?.in);return r.setSeconds(t),r}function bo(e,t,n){var r,i,a=k(),o=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??a.firstWeekContainsDate??((i=a.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,s=F(D(e,n?.in),$t(e,n),n),c=E(n?.in||e,0);c.setFullYear(t,0,o),c.setHours(0,0,0,0);var l=$t(c,n);return l.setDate(l.getDate()+s),l}function xo(e,t,n){var r=D(e,n?.in);return isNaN(+r)?E(n?.in||e,NaN):(r.setFullYear(t),r)}function So(e,t){var n=D(e,t?.in),r=n.getFullYear(),i=Math.floor(r/10)*10;return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}function Co(e){return Te(Date.now(),e)}function wo(e){var t=R(e?.in),n=t.getFullYear(),r=t.getMonth(),i=t.getDate(),a=E(e?.in,0);return a.setFullYear(n,r,i+1),a.setHours(0,0,0,0),a}function To(e){var t=R(e?.in),n=t.getFullYear(),r=t.getMonth(),i=t.getDate(),a=R(e?.in);return a.setFullYear(n,r,i-1),a.setHours(0,0,0,0),a}function Eo(e,t,n){return he(e,-t,n)}function Do(e,t,n){var r=t.years,i=r===void 0?0:r,a=t.months,o=a===void 0?0:a,s=t.weeks,c=s===void 0?0:s,l=t.days,u=l===void 0?0:l,d=t.hours,f=d===void 0?0:d,p=t.minutes,m=p===void 0?0:p,h=t.seconds,g=h===void 0?0:h,_=Qi(Eo(e,o+i*12,n),u+c*7,n),v=(g+(m+f*60)*60)*1e3;return E(n?.in||e,+_-v)}function Oo(e,t,n){return be(e,-t,n)}function ko(e,t,n){return Se(e,-t,n)}function Ao(e,t,n){return xe(e,-t,n)}function jo(e,t,n){return Oe(e,-t,n)}function Mo(e,t,n){return ke(e,-t,n)}function No(e,t,n){return Ae(e,-t,n)}function Po(e,t,n){return je(e,-t,n)}function Fo(e,t,n){return Me(e,-t,n)}function Io(e){return Math.trunc(e*7)}function Lo(e){return Math.trunc(e*oe)}function Ro(e){return Math.trunc(e*12)}function zo(e){return Math.trunc(e*4)}var Bo=ae({add:function(){return ge},addBusinessDays:function(){return be},addDays:function(){return O},addHours:function(){return Se},addISOWeekYears:function(){return De},addMilliseconds:function(){return xe},addMinutes:function(){return Oe},addMonths:function(){return he},addQuarters:function(){return ke},addSeconds:function(){return Ae},addWeeks:function(){return je},addYears:function(){return Me},areIntervalsOverlapping:function(){return Ne},clamp:function(){return Ie},closestIndexTo:function(){return Le},closestTo:function(){return Re},compareAsc:function(){return L},compareDesc:function(){return ze},constructFrom:function(){return E},constructNow:function(){return R},daysToWeeks:function(){return Be},differenceInBusinessDays:function(){return Ue},differenceInCalendarDays:function(){return F},differenceInCalendarISOWeekYears:function(){return We},differenceInCalendarISOWeeks:function(){return Ge},differenceInCalendarMonths:function(){return Ke},differenceInCalendarQuarters:function(){return Je},differenceInCalendarWeeks:function(){return Ye},differenceInCalendarYears:function(){return Xe},differenceInDays:function(){return Ze},differenceInHours:function(){return $e},differenceInISOWeekYears:function(){return tt},differenceInMilliseconds:function(){return nt},differenceInMinutes:function(){return rt},differenceInMonths:function(){return st},differenceInQuarters:function(){return ct},differenceInSeconds:function(){return lt},differenceInWeeks:function(){return ut},differenceInYears:function(){return dt},eachDayOfInterval:function(){return ft},eachHourOfInterval:function(){return pt},eachMinuteOfInterval:function(){return mt},eachMonthOfInterval:function(){return ht},eachQuarterOfInterval:function(){return _t},eachWeekOfInterval:function(){return vt},eachWeekendOfInterval:function(){return yt},eachWeekendOfMonth:function(){return xt},eachWeekendOfYear:function(){return wt},eachYearOfInterval:function(){return Tt},endOfDay:function(){return it},endOfDecade:function(){return Et},endOfHour:function(){return Dt},endOfISOWeek:function(){return kt},endOfISOWeekYear:function(){return At},endOfMinute:function(){return jt},endOfMonth:function(){return at},endOfQuarter:function(){return Mt},endOfSecond:function(){return Nt},endOfToday:function(){return Pt},endOfTomorrow:function(){return Ft},endOfWeek:function(){return Ot},endOfYear:function(){return St},endOfYesterday:function(){return It},format:function(){return xn},formatDate:function(){return xn},formatDistance:function(){return Cn},formatDistanceStrict:function(){return wn},formatDistanceToNow:function(){return Tn},formatDistanceToNowStrict:function(){return En},formatDuration:function(){return On},formatISO:function(){return kn},formatISO9075:function(){return An},formatISODuration:function(){return jn},formatRFC3339:function(){return Mn},formatRFC7231:function(){return Fn},formatRelative:function(){return In},formatters:function(){return nn},fromUnixTime:function(){return Ln},getDate:function(){return Rn},getDay:function(){return zn},getDayOfYear:function(){return Xt},getDaysInMonth:function(){return Bn},getDaysInYear:function(){return Hn},getDecade:function(){return Un},getDefaultOptions:function(){return Wn},getHours:function(){return Gn},getISODay:function(){return Kn},getISOWeek:function(){return Zt},getISOWeekYear:function(){return M},getISOWeeksInYear:function(){return qn},getMilliseconds:function(){return Jn},getMinutes:function(){return Yn},getMonth:function(){return Xn},getOverlappingDaysInIntervals:function(){return Zn},getQuarter:function(){return qe},getSeconds:function(){return Qn},getTime:function(){return $n},getUnixTime:function(){return er},getWeek:function(){return en},getWeekOfMonth:function(){return tr},getWeekYear:function(){return Qt},getWeeksInMonth:function(){return rr},getYear:function(){return ir},hoursToMilliseconds:function(){return ar},hoursToMinutes:function(){return or},hoursToSeconds:function(){return sr},interval:function(){return cr},intervalToDuration:function(){return lr},intlFormat:function(){return ur},intlFormatDistance:function(){return fr},isAfter:function(){return pr},isBefore:function(){return mr},isDate:function(){return He},isEqual:function(){return hr},isExists:function(){return gr},isFirstDayOfMonth:function(){return _r},isFriday:function(){return vr},isFuture:function(){return yr},isLastDayOfMonth:function(){return ot},isLeapYear:function(){return Vn},isMatch:function(){return Ci},isMonday:function(){return wi},isPast:function(){return Ti},isSameDay:function(){return Ve},isSameHour:function(){return Di},isSameISOWeek:function(){return ki},isSameISOWeekYear:function(){return Ai},isSameMinute:function(){return Mi},isSameMonth:function(){return Ni},isSameQuarter:function(){return Pi},isSameSecond:function(){return Ii},isSameWeek:function(){return Oi},isSameYear:function(){return Li},isSaturday:function(){return _e},isSunday:function(){return ve},isThisHour:function(){return Ri},isThisISOWeek:function(){return zi},isThisMinute:function(){return Bi},isThisMonth:function(){return Vi},isThisQuarter:function(){return Hi},isThisSecond:function(){return Ui},isThisWeek:function(){return Wi},isThisYear:function(){return Gi},isThursday:function(){return Ki},isToday:function(){return qi},isTomorrow:function(){return Ji},isTuesday:function(){return Yi},isValid:function(){return z},isWednesday:function(){return Xi},isWeekend:function(){return ye},isWithinInterval:function(){return Zi},isYesterday:function(){return $i},lastDayOfDecade:function(){return ea},lastDayOfISOWeek:function(){return na},lastDayOfISOWeekYear:function(){return ra},lastDayOfMonth:function(){return nr},lastDayOfQuarter:function(){return ia},lastDayOfWeek:function(){return ta},lastDayOfYear:function(){return aa},lightFormat:function(){return ua},lightFormatters:function(){return U},longFormatters:function(){return cn},max:function(){return Pe},milliseconds:function(){return fa},millisecondsToHours:function(){return pa},millisecondsToMinutes:function(){return ma},millisecondsToSeconds:function(){return ha},min:function(){return Fe},minutesToHours:function(){return ga},minutesToMilliseconds:function(){return _a},minutesToSeconds:function(){return va},monthsToQuarters:function(){return ya},monthsToYears:function(){return ba},nextDay:function(){return Q},nextFriday:function(){return xa},nextMonday:function(){return Sa},nextSaturday:function(){return Ca},nextSunday:function(){return wa},nextThursday:function(){return Ta},nextTuesday:function(){return Ea},nextWednesday:function(){return Da},parse:function(){return xi},parseISO:function(){return Oa},parseJSON:function(){return Ja},parsers:function(){return mi},previousDay:function(){return $},previousFriday:function(){return Ya},previousMonday:function(){return Xa},previousSaturday:function(){return Za},previousSunday:function(){return Qa},previousThursday:function(){return $a},previousTuesday:function(){return eo},previousWednesday:function(){return to},quartersToMonths:function(){return no},quartersToYears:function(){return ro},roundToNearestHours:function(){return io},roundToNearestMinutes:function(){return ao},secondsToHours:function(){return oo},secondsToMilliseconds:function(){return so},secondsToMinutes:function(){return co},set:function(){return uo},setDate:function(){return fo},setDay:function(){return Jr},setDayOfYear:function(){return po},setDefaultOptions:function(){return mo},setHours:function(){return ho},setISODay:function(){return Qr},setISOWeek:function(){return Hr},setISOWeekYear:function(){return Ee},setMilliseconds:function(){return go},setMinutes:function(){return _o},setMonth:function(){return lo},setQuarter:function(){return vo},setSeconds:function(){return yo},setWeek:function(){return Br},setWeekYear:function(){return bo},setYear:function(){return xo},startOfDay:function(){return Te},startOfDecade:function(){return So},startOfHour:function(){return Ei},startOfISOWeek:function(){return j},startOfISOWeekYear:function(){return I},startOfMinute:function(){return ji},startOfMonth:function(){return bt},startOfQuarter:function(){return gt},startOfSecond:function(){return Fi},startOfToday:function(){return Co},startOfTomorrow:function(){return wo},startOfWeek:function(){return A},startOfWeekYear:function(){return $t},startOfYear:function(){return Ct},startOfYesterday:function(){return To},sub:function(){return Do},subBusinessDays:function(){return Oo},subDays:function(){return Qi},subHours:function(){return ko},subISOWeekYears:function(){return et},subMilliseconds:function(){return Ao},subMinutes:function(){return jo},subMonths:function(){return Eo},subQuarters:function(){return Mo},subSeconds:function(){return No},subWeeks:function(){return Po},subYears:function(){return Fo},toDate:function(){return D},transpose:function(){return br},weeksToDays:function(){return Io},yearsToDays:function(){return Lo},yearsToMonths:function(){return Ro},yearsToQuarters:function(){return zo}});window.dateFns=x(x({},window.dateFns),Bo),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/clamp.cjs b/node_modules/date-fns/clamp.cjs new file mode 100644 index 000000000..93ad726ad --- /dev/null +++ b/node_modules/date-fns/clamp.cjs @@ -0,0 +1,61 @@ +"use strict"; +exports.clamp = clamp; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./max.cjs"); +var _index3 = require("./min.cjs"); + +/** + * The {@link clamp} function options. + */ + +/** + * The {@link clamp} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval. + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @typeParam DateType - Date argument type. + * @typeParam IntervalType - Interval argument type. + * @typeParam Options - Options type. + * + * @param date - The date to be bounded + * @param interval - The interval to bound to + * @param options - An object with options + * + * @returns The date bounded by the start and the end of the interval + * + * @example + * // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + */ +function clamp(date, interval, options) { + const [date_, start, end] = (0, _index.normalizeDates)( + options?.in, + date, + interval.start, + interval.end, + ); + + return (0, _index3.min)( + [(0, _index2.max)([date_, start], options), end], + options, + ); +} diff --git a/node_modules/date-fns/clamp.d.cts b/node_modules/date-fns/clamp.d.cts new file mode 100644 index 000000000..3be579c60 --- /dev/null +++ b/node_modules/date-fns/clamp.d.cts @@ -0,0 +1,66 @@ +import type { ContextOptions, DateArg, Interval } from "./types.ts"; +/** + * The {@link clamp} function options. + */ +export interface ClampOptions + extends ContextOptions {} +/** + * The {@link clamp} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type ClampResult< + DateType extends DateArg, + IntervalType extends Interval, + Options extends ClampOptions | undefined, +> = + Options extends ClampOptions + ? DateType + : DateType extends Date + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date; +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval. + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @typeParam DateType - Date argument type. + * @typeParam IntervalType - Interval argument type. + * @typeParam Options - Options type. + * + * @param date - The date to be bounded + * @param interval - The interval to bound to + * @param options - An object with options + * + * @returns The date bounded by the start and the end of the interval + * + * @example + * // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + */ +export declare function clamp< + DateType extends DateArg, + IntervalType extends Interval, + Options extends ClampOptions | undefined = undefined, +>( + date: DateType, + interval: IntervalType, + options?: Options, +): ClampResult; diff --git a/node_modules/date-fns/clamp.d.ts b/node_modules/date-fns/clamp.d.ts new file mode 100644 index 000000000..3be579c60 --- /dev/null +++ b/node_modules/date-fns/clamp.d.ts @@ -0,0 +1,66 @@ +import type { ContextOptions, DateArg, Interval } from "./types.ts"; +/** + * The {@link clamp} function options. + */ +export interface ClampOptions + extends ContextOptions {} +/** + * The {@link clamp} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type ClampResult< + DateType extends DateArg, + IntervalType extends Interval, + Options extends ClampOptions | undefined, +> = + Options extends ClampOptions + ? DateType + : DateType extends Date + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date; +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval. + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @typeParam DateType - Date argument type. + * @typeParam IntervalType - Interval argument type. + * @typeParam Options - Options type. + * + * @param date - The date to be bounded + * @param interval - The interval to bound to + * @param options - An object with options + * + * @returns The date bounded by the start and the end of the interval + * + * @example + * // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + */ +export declare function clamp< + DateType extends DateArg, + IntervalType extends Interval, + Options extends ClampOptions | undefined = undefined, +>( + date: DateType, + interval: IntervalType, + options?: Options, +): ClampResult; diff --git a/node_modules/date-fns/clamp.js b/node_modules/date-fns/clamp.js new file mode 100644 index 000000000..2628d3c92 --- /dev/null +++ b/node_modules/date-fns/clamp.js @@ -0,0 +1,59 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { max } from "./max.js"; +import { min } from "./min.js"; + +/** + * The {@link clamp} function options. + */ + +/** + * The {@link clamp} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval. + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @typeParam DateType - Date argument type. + * @typeParam IntervalType - Interval argument type. + * @typeParam Options - Options type. + * + * @param date - The date to be bounded + * @param interval - The interval to bound to + * @param options - An object with options + * + * @returns The date bounded by the start and the end of the interval + * + * @example + * // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + */ +export function clamp(date, interval, options) { + const [date_, start, end] = normalizeDates( + options?.in, + date, + interval.start, + interval.end, + ); + + return min([max([date_, start], options), end], options); +} + +// Fallback for modularized imports: +export default clamp; diff --git a/node_modules/date-fns/closestIndexTo.cjs b/node_modules/date-fns/closestIndexTo.cjs new file mode 100644 index 000000000..ca6eecc06 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo.cjs @@ -0,0 +1,56 @@ +"use strict"; +exports.closestIndexTo = closestIndexTo; +var _index = require("./toDate.cjs"); + +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns An index of the date closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +function closestIndexTo(dateToCompare, dates) { + // [TODO] It would be better to return -1 here rather than undefined, as this + // is how JS behaves, but it would be a breaking change, so we need + // to consider it for v4. + const timeToCompare = +(0, _index.toDate)(dateToCompare); + + if (isNaN(timeToCompare)) return NaN; + + let result; + let minDistance; + dates.forEach((date, index) => { + const date_ = (0, _index.toDate)(date); + + if (isNaN(+date_)) { + result = NaN; + minDistance = NaN; + return; + } + + const distance = Math.abs(timeToCompare - +date_); + if (result == null || distance < minDistance) { + result = index; + minDistance = distance; + } + }); + + return result; +} diff --git a/node_modules/date-fns/closestIndexTo.d.cts b/node_modules/date-fns/closestIndexTo.d.cts new file mode 100644 index 000000000..3c6ecf209 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo.d.cts @@ -0,0 +1,29 @@ +import type { DateArg } from "./types.ts"; +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns An index of the date closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +export declare function closestIndexTo( + dateToCompare: DateArg & {}, + dates: Array & {}>, +): number | undefined; diff --git a/node_modules/date-fns/closestIndexTo.d.ts b/node_modules/date-fns/closestIndexTo.d.ts new file mode 100644 index 000000000..3c6ecf209 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo.d.ts @@ -0,0 +1,29 @@ +import type { DateArg } from "./types.ts"; +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns An index of the date closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +export declare function closestIndexTo( + dateToCompare: DateArg & {}, + dates: Array & {}>, +): number | undefined; diff --git a/node_modules/date-fns/closestIndexTo.js b/node_modules/date-fns/closestIndexTo.js new file mode 100644 index 000000000..db40674db --- /dev/null +++ b/node_modules/date-fns/closestIndexTo.js @@ -0,0 +1,57 @@ +import { toDate } from "./toDate.js"; + +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns An index of the date closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +export function closestIndexTo(dateToCompare, dates) { + // [TODO] It would be better to return -1 here rather than undefined, as this + // is how JS behaves, but it would be a breaking change, so we need + // to consider it for v4. + const timeToCompare = +toDate(dateToCompare); + + if (isNaN(timeToCompare)) return NaN; + + let result; + let minDistance; + dates.forEach((date, index) => { + const date_ = toDate(date); + + if (isNaN(+date_)) { + result = NaN; + minDistance = NaN; + return; + } + + const distance = Math.abs(timeToCompare - +date_); + if (result == null || distance < minDistance) { + result = index; + minDistance = distance; + } + }); + + return result; +} + +// Fallback for modularized imports: +export default closestIndexTo; diff --git a/node_modules/date-fns/closestTo.cjs b/node_modules/date-fns/closestTo.cjs new file mode 100644 index 000000000..3379d6085 --- /dev/null +++ b/node_modules/date-fns/closestTo.cjs @@ -0,0 +1,57 @@ +"use strict"; +exports.closestTo = closestTo; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./closestIndexTo.cjs"); +var _index3 = require("./constructFrom.cjs"); + +/** + * The {@link closestTo} function options. + */ + +/** + * The {@link closestTo} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @typeParam DateToCompare - Date to compare argument type. + * @typeParam DatesType - Dates array argument type. + * @typeParam Options - Options type. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns The date from the array closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +function closestTo(dateToCompare, dates, options) { + const [dateToCompare_, ...dates_] = (0, _index.normalizeDates)( + options?.in, + dateToCompare, + ...dates, + ); + + const index = (0, _index2.closestIndexTo)(dateToCompare_, dates_); + + if (typeof index === "number" && isNaN(index)) + return (0, _index3.constructFrom)(dateToCompare_, NaN); + + if (index !== undefined) return dates_[index]; +} diff --git a/node_modules/date-fns/closestTo.d.cts b/node_modules/date-fns/closestTo.d.cts new file mode 100644 index 000000000..21138f6ec --- /dev/null +++ b/node_modules/date-fns/closestTo.d.cts @@ -0,0 +1,59 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link closestTo} function options. + */ +export interface ClosestToOptions + extends ContextOptions {} +/** + * The {@link closestTo} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type ClosestToResult< + DateToCompare extends DateArg, + DatesType extends DateArg[], + Options extends ClosestToOptions | undefined, +> = + Options extends ClosestToOptions + ? DateType + : DateToCompare extends Date + ? DateToCompare + : DatesType extends DateArg[] + ? DateType + : Date; +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @typeParam DateToCompare - Date to compare argument type. + * @typeParam DatesType - Dates array argument type. + * @typeParam Options - Options type. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns The date from the array closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +export declare function closestTo< + DateToCompare extends DateArg, + DatesType extends DateArg[], + Options extends ClosestToOptions | undefined = undefined, +>( + dateToCompare: DateToCompare, + dates: DatesType, + options?: Options | undefined, +): ClosestToResult | undefined; diff --git a/node_modules/date-fns/closestTo.d.ts b/node_modules/date-fns/closestTo.d.ts new file mode 100644 index 000000000..21138f6ec --- /dev/null +++ b/node_modules/date-fns/closestTo.d.ts @@ -0,0 +1,59 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link closestTo} function options. + */ +export interface ClosestToOptions + extends ContextOptions {} +/** + * The {@link closestTo} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type ClosestToResult< + DateToCompare extends DateArg, + DatesType extends DateArg[], + Options extends ClosestToOptions | undefined, +> = + Options extends ClosestToOptions + ? DateType + : DateToCompare extends Date + ? DateToCompare + : DatesType extends DateArg[] + ? DateType + : Date; +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @typeParam DateToCompare - Date to compare argument type. + * @typeParam DatesType - Dates array argument type. + * @typeParam Options - Options type. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns The date from the array closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +export declare function closestTo< + DateToCompare extends DateArg, + DatesType extends DateArg[], + Options extends ClosestToOptions | undefined = undefined, +>( + dateToCompare: DateToCompare, + dates: DatesType, + options?: Options | undefined, +): ClosestToResult | undefined; diff --git a/node_modules/date-fns/closestTo.js b/node_modules/date-fns/closestTo.js new file mode 100644 index 000000000..677b93110 --- /dev/null +++ b/node_modules/date-fns/closestTo.js @@ -0,0 +1,58 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { closestIndexTo } from "./closestIndexTo.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link closestTo} function options. + */ + +/** + * The {@link closestTo} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @typeParam DateToCompare - Date to compare argument type. + * @typeParam DatesType - Dates array argument type. + * @typeParam Options - Options type. + * + * @param dateToCompare - The date to compare with + * @param dates - The array to search + * + * @returns The date from the array closest to the given date or undefined if no valid value is given + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +export function closestTo(dateToCompare, dates, options) { + const [dateToCompare_, ...dates_] = normalizeDates( + options?.in, + dateToCompare, + ...dates, + ); + + const index = closestIndexTo(dateToCompare_, dates_); + + if (typeof index === "number" && isNaN(index)) + return constructFrom(dateToCompare_, NaN); + + if (index !== undefined) return dates_[index]; +} + +// Fallback for modularized imports: +export default closestTo; diff --git a/node_modules/date-fns/compareAsc.cjs b/node_modules/date-fns/compareAsc.cjs new file mode 100644 index 000000000..101854eda --- /dev/null +++ b/node_modules/date-fns/compareAsc.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.compareAsc = compareAsc; +var _index = require("./toDate.cjs"); + +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +function compareAsc(dateLeft, dateRight) { + const diff = +(0, _index.toDate)(dateLeft) - +(0, _index.toDate)(dateRight); + + if (diff < 0) return -1; + else if (diff > 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} diff --git a/node_modules/date-fns/compareAsc.d.cts b/node_modules/date-fns/compareAsc.d.cts new file mode 100644 index 000000000..5eadf33b1 --- /dev/null +++ b/node_modules/date-fns/compareAsc.d.cts @@ -0,0 +1,37 @@ +import type { DateArg } from "./types.ts"; +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +export declare function compareAsc( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, +): number; diff --git a/node_modules/date-fns/compareAsc.d.ts b/node_modules/date-fns/compareAsc.d.ts new file mode 100644 index 000000000..5eadf33b1 --- /dev/null +++ b/node_modules/date-fns/compareAsc.d.ts @@ -0,0 +1,37 @@ +import type { DateArg } from "./types.ts"; +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +export declare function compareAsc( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, +): number; diff --git a/node_modules/date-fns/compareAsc.js b/node_modules/date-fns/compareAsc.js new file mode 100644 index 000000000..29f7a9588 --- /dev/null +++ b/node_modules/date-fns/compareAsc.js @@ -0,0 +1,46 @@ +import { toDate } from "./toDate.js"; + +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +export function compareAsc(dateLeft, dateRight) { + const diff = +toDate(dateLeft) - +toDate(dateRight); + + if (diff < 0) return -1; + else if (diff > 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} + +// Fallback for modularized imports: +export default compareAsc; diff --git a/node_modules/date-fns/compareDesc.cjs b/node_modules/date-fns/compareDesc.cjs new file mode 100644 index 000000000..d7d7355a1 --- /dev/null +++ b/node_modules/date-fns/compareDesc.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.compareDesc = compareDesc; +var _index = require("./toDate.cjs"); + +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +function compareDesc(dateLeft, dateRight) { + const diff = +(0, _index.toDate)(dateLeft) - +(0, _index.toDate)(dateRight); + + if (diff > 0) return -1; + else if (diff < 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} diff --git a/node_modules/date-fns/compareDesc.d.cts b/node_modules/date-fns/compareDesc.d.cts new file mode 100644 index 000000000..e01fb2329 --- /dev/null +++ b/node_modules/date-fns/compareDesc.d.cts @@ -0,0 +1,37 @@ +import type { DateArg } from "./types.ts"; +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +export declare function compareDesc( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, +): number; diff --git a/node_modules/date-fns/compareDesc.d.ts b/node_modules/date-fns/compareDesc.d.ts new file mode 100644 index 000000000..e01fb2329 --- /dev/null +++ b/node_modules/date-fns/compareDesc.d.ts @@ -0,0 +1,37 @@ +import type { DateArg } from "./types.ts"; +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +export declare function compareDesc( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, +): number; diff --git a/node_modules/date-fns/compareDesc.js b/node_modules/date-fns/compareDesc.js new file mode 100644 index 000000000..4446bb462 --- /dev/null +++ b/node_modules/date-fns/compareDesc.js @@ -0,0 +1,46 @@ +import { toDate } from "./toDate.js"; + +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The result of the comparison + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +export function compareDesc(dateLeft, dateRight) { + const diff = +toDate(dateLeft) - +toDate(dateRight); + + if (diff > 0) return -1; + else if (diff < 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} + +// Fallback for modularized imports: +export default compareDesc; diff --git a/node_modules/date-fns/constants.cjs b/node_modules/date-fns/constants.cjs new file mode 100644 index 000000000..15d13c916 --- /dev/null +++ b/node_modules/date-fns/constants.cjs @@ -0,0 +1,242 @@ +"use strict"; +exports.secondsInYear = + exports.secondsInWeek = + exports.secondsInQuarter = + exports.secondsInMonth = + exports.secondsInMinute = + exports.secondsInHour = + exports.secondsInDay = + exports.quartersInYear = + exports.monthsInYear = + exports.monthsInQuarter = + exports.minutesInYear = + exports.minutesInMonth = + exports.minutesInHour = + exports.minutesInDay = + exports.minTime = + exports.millisecondsInWeek = + exports.millisecondsInSecond = + exports.millisecondsInMinute = + exports.millisecondsInHour = + exports.millisecondsInDay = + exports.maxTime = + exports.daysInYear = + exports.daysInWeek = + exports.constructFromSymbol = + void 0; /** + * @module constants + * @summary Useful constants + * @description + * Collection of useful date constants. + * + * The constants could be imported from `date-fns/constants`: + * + * ```ts + * import { maxTime, minTime } from "date-fns/constants"; + * + * function isAllowedTime(time) { + * return time <= maxTime && time >= minTime; + * } + * ``` + */ + +/** + * @constant + * @name daysInWeek + * @summary Days in 1 week. + */ +const daysInWeek = (exports.daysInWeek = 7); + +/** + * @constant + * @name daysInYear + * @summary Days in 1 year. + * + * @description + * How many days in a year. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + */ +const daysInYear = (exports.daysInYear = 365.2425); + +/** + * @constant + * @name maxTime + * @summary Maximum allowed time. + * + * @example + * import { maxTime } from "date-fns/constants"; + * + * const isValid = 8640000000000001 <= maxTime; + * //=> false + * + * new Date(8640000000000001); + * //=> Invalid Date + */ +const maxTime = (exports.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000); + +/** + * @constant + * @name minTime + * @summary Minimum allowed time. + * + * @example + * import { minTime } from "date-fns/constants"; + * + * const isValid = -8640000000000001 >= minTime; + * //=> false + * + * new Date(-8640000000000001) + * //=> Invalid Date + */ +const minTime = (exports.minTime = -maxTime); + +/** + * @constant + * @name millisecondsInWeek + * @summary Milliseconds in 1 week. + */ +const millisecondsInWeek = (exports.millisecondsInWeek = 604800000); + +/** + * @constant + * @name millisecondsInDay + * @summary Milliseconds in 1 day. + */ +const millisecondsInDay = (exports.millisecondsInDay = 86400000); + +/** + * @constant + * @name millisecondsInMinute + * @summary Milliseconds in 1 minute + */ +const millisecondsInMinute = (exports.millisecondsInMinute = 60000); + +/** + * @constant + * @name millisecondsInHour + * @summary Milliseconds in 1 hour + */ +const millisecondsInHour = (exports.millisecondsInHour = 3600000); + +/** + * @constant + * @name millisecondsInSecond + * @summary Milliseconds in 1 second + */ +const millisecondsInSecond = (exports.millisecondsInSecond = 1000); + +/** + * @constant + * @name minutesInYear + * @summary Minutes in 1 year. + */ +const minutesInYear = (exports.minutesInYear = 525600); + +/** + * @constant + * @name minutesInMonth + * @summary Minutes in 1 month. + */ +const minutesInMonth = (exports.minutesInMonth = 43200); + +/** + * @constant + * @name minutesInDay + * @summary Minutes in 1 day. + */ +const minutesInDay = (exports.minutesInDay = 1440); + +/** + * @constant + * @name minutesInHour + * @summary Minutes in 1 hour. + */ +const minutesInHour = (exports.minutesInHour = 60); + +/** + * @constant + * @name monthsInQuarter + * @summary Months in 1 quarter. + */ +const monthsInQuarter = (exports.monthsInQuarter = 3); + +/** + * @constant + * @name monthsInYear + * @summary Months in 1 year. + */ +const monthsInYear = (exports.monthsInYear = 12); + +/** + * @constant + * @name quartersInYear + * @summary Quarters in 1 year + */ +const quartersInYear = (exports.quartersInYear = 4); + +/** + * @constant + * @name secondsInHour + * @summary Seconds in 1 hour. + */ +const secondsInHour = (exports.secondsInHour = 3600); + +/** + * @constant + * @name secondsInMinute + * @summary Seconds in 1 minute. + */ +const secondsInMinute = (exports.secondsInMinute = 60); + +/** + * @constant + * @name secondsInDay + * @summary Seconds in 1 day. + */ +const secondsInDay = (exports.secondsInDay = secondsInHour * 24); + +/** + * @constant + * @name secondsInWeek + * @summary Seconds in 1 week. + */ +const secondsInWeek = (exports.secondsInWeek = secondsInDay * 7); + +/** + * @constant + * @name secondsInYear + * @summary Seconds in 1 year. + */ +const secondsInYear = (exports.secondsInYear = secondsInDay * daysInYear); + +/** + * @constant + * @name secondsInMonth + * @summary Seconds in 1 month + */ +const secondsInMonth = (exports.secondsInMonth = secondsInYear / 12); + +/** + * @constant + * @name secondsInQuarter + * @summary Seconds in 1 quarter. + */ +const secondsInQuarter = (exports.secondsInQuarter = secondsInMonth * 3); + +/** + * @constant + * @name constructFromSymbol + * @summary Symbol enabling Date extensions to inherit properties from the reference date. + * + * The symbol is used to enable the `constructFrom` function to construct a date + * using a reference date and a value. It allows to transfer extra properties + * from the reference date to the new date. It's useful for extensions like + * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as + * a constructor argument. + */ +const constructFromSymbol = (exports.constructFromSymbol = + Symbol.for("constructDateFrom")); diff --git a/node_modules/date-fns/constants.d.cts b/node_modules/date-fns/constants.d.cts new file mode 100644 index 000000000..230c7b7f2 --- /dev/null +++ b/node_modules/date-fns/constants.d.cts @@ -0,0 +1,192 @@ +/** + * @module constants + * @summary Useful constants + * @description + * Collection of useful date constants. + * + * The constants could be imported from `date-fns/constants`: + * + * ```ts + * import { maxTime, minTime } from "./constants/date-fns/constants"; + * + * function isAllowedTime(time) { + * return time <= maxTime && time >= minTime; + * } + * ``` + */ +/** + * @constant + * @name daysInWeek + * @summary Days in 1 week. + */ +export declare const daysInWeek = 7; +/** + * @constant + * @name daysInYear + * @summary Days in 1 year. + * + * @description + * How many days in a year. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + */ +export declare const daysInYear = 365.2425; +/** + * @constant + * @name maxTime + * @summary Maximum allowed time. + * + * @example + * import { maxTime } from "./constants/date-fns/constants"; + * + * const isValid = 8640000000000001 <= maxTime; + * //=> false + * + * new Date(8640000000000001); + * //=> Invalid Date + */ +export declare const maxTime: number; +/** + * @constant + * @name minTime + * @summary Minimum allowed time. + * + * @example + * import { minTime } from "./constants/date-fns/constants"; + * + * const isValid = -8640000000000001 >= minTime; + * //=> false + * + * new Date(-8640000000000001) + * //=> Invalid Date + */ +export declare const minTime: number; +/** + * @constant + * @name millisecondsInWeek + * @summary Milliseconds in 1 week. + */ +export declare const millisecondsInWeek = 604800000; +/** + * @constant + * @name millisecondsInDay + * @summary Milliseconds in 1 day. + */ +export declare const millisecondsInDay = 86400000; +/** + * @constant + * @name millisecondsInMinute + * @summary Milliseconds in 1 minute + */ +export declare const millisecondsInMinute = 60000; +/** + * @constant + * @name millisecondsInHour + * @summary Milliseconds in 1 hour + */ +export declare const millisecondsInHour = 3600000; +/** + * @constant + * @name millisecondsInSecond + * @summary Milliseconds in 1 second + */ +export declare const millisecondsInSecond = 1000; +/** + * @constant + * @name minutesInYear + * @summary Minutes in 1 year. + */ +export declare const minutesInYear = 525600; +/** + * @constant + * @name minutesInMonth + * @summary Minutes in 1 month. + */ +export declare const minutesInMonth = 43200; +/** + * @constant + * @name minutesInDay + * @summary Minutes in 1 day. + */ +export declare const minutesInDay = 1440; +/** + * @constant + * @name minutesInHour + * @summary Minutes in 1 hour. + */ +export declare const minutesInHour = 60; +/** + * @constant + * @name monthsInQuarter + * @summary Months in 1 quarter. + */ +export declare const monthsInQuarter = 3; +/** + * @constant + * @name monthsInYear + * @summary Months in 1 year. + */ +export declare const monthsInYear = 12; +/** + * @constant + * @name quartersInYear + * @summary Quarters in 1 year + */ +export declare const quartersInYear = 4; +/** + * @constant + * @name secondsInHour + * @summary Seconds in 1 hour. + */ +export declare const secondsInHour = 3600; +/** + * @constant + * @name secondsInMinute + * @summary Seconds in 1 minute. + */ +export declare const secondsInMinute = 60; +/** + * @constant + * @name secondsInDay + * @summary Seconds in 1 day. + */ +export declare const secondsInDay: number; +/** + * @constant + * @name secondsInWeek + * @summary Seconds in 1 week. + */ +export declare const secondsInWeek: number; +/** + * @constant + * @name secondsInYear + * @summary Seconds in 1 year. + */ +export declare const secondsInYear: number; +/** + * @constant + * @name secondsInMonth + * @summary Seconds in 1 month + */ +export declare const secondsInMonth: number; +/** + * @constant + * @name secondsInQuarter + * @summary Seconds in 1 quarter. + */ +export declare const secondsInQuarter: number; +/** + * @constant + * @name constructFromSymbol + * @summary Symbol enabling Date extensions to inherit properties from the reference date. + * + * The symbol is used to enable the `constructFrom` function to construct a date + * using a reference date and a value. It allows to transfer extra properties + * from the reference date to the new date. It's useful for extensions like + * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as + * a constructor argument. + */ +export declare const constructFromSymbol: unique symbol; diff --git a/node_modules/date-fns/constants.d.ts b/node_modules/date-fns/constants.d.ts new file mode 100644 index 000000000..230c7b7f2 --- /dev/null +++ b/node_modules/date-fns/constants.d.ts @@ -0,0 +1,192 @@ +/** + * @module constants + * @summary Useful constants + * @description + * Collection of useful date constants. + * + * The constants could be imported from `date-fns/constants`: + * + * ```ts + * import { maxTime, minTime } from "./constants/date-fns/constants"; + * + * function isAllowedTime(time) { + * return time <= maxTime && time >= minTime; + * } + * ``` + */ +/** + * @constant + * @name daysInWeek + * @summary Days in 1 week. + */ +export declare const daysInWeek = 7; +/** + * @constant + * @name daysInYear + * @summary Days in 1 year. + * + * @description + * How many days in a year. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + */ +export declare const daysInYear = 365.2425; +/** + * @constant + * @name maxTime + * @summary Maximum allowed time. + * + * @example + * import { maxTime } from "./constants/date-fns/constants"; + * + * const isValid = 8640000000000001 <= maxTime; + * //=> false + * + * new Date(8640000000000001); + * //=> Invalid Date + */ +export declare const maxTime: number; +/** + * @constant + * @name minTime + * @summary Minimum allowed time. + * + * @example + * import { minTime } from "./constants/date-fns/constants"; + * + * const isValid = -8640000000000001 >= minTime; + * //=> false + * + * new Date(-8640000000000001) + * //=> Invalid Date + */ +export declare const minTime: number; +/** + * @constant + * @name millisecondsInWeek + * @summary Milliseconds in 1 week. + */ +export declare const millisecondsInWeek = 604800000; +/** + * @constant + * @name millisecondsInDay + * @summary Milliseconds in 1 day. + */ +export declare const millisecondsInDay = 86400000; +/** + * @constant + * @name millisecondsInMinute + * @summary Milliseconds in 1 minute + */ +export declare const millisecondsInMinute = 60000; +/** + * @constant + * @name millisecondsInHour + * @summary Milliseconds in 1 hour + */ +export declare const millisecondsInHour = 3600000; +/** + * @constant + * @name millisecondsInSecond + * @summary Milliseconds in 1 second + */ +export declare const millisecondsInSecond = 1000; +/** + * @constant + * @name minutesInYear + * @summary Minutes in 1 year. + */ +export declare const minutesInYear = 525600; +/** + * @constant + * @name minutesInMonth + * @summary Minutes in 1 month. + */ +export declare const minutesInMonth = 43200; +/** + * @constant + * @name minutesInDay + * @summary Minutes in 1 day. + */ +export declare const minutesInDay = 1440; +/** + * @constant + * @name minutesInHour + * @summary Minutes in 1 hour. + */ +export declare const minutesInHour = 60; +/** + * @constant + * @name monthsInQuarter + * @summary Months in 1 quarter. + */ +export declare const monthsInQuarter = 3; +/** + * @constant + * @name monthsInYear + * @summary Months in 1 year. + */ +export declare const monthsInYear = 12; +/** + * @constant + * @name quartersInYear + * @summary Quarters in 1 year + */ +export declare const quartersInYear = 4; +/** + * @constant + * @name secondsInHour + * @summary Seconds in 1 hour. + */ +export declare const secondsInHour = 3600; +/** + * @constant + * @name secondsInMinute + * @summary Seconds in 1 minute. + */ +export declare const secondsInMinute = 60; +/** + * @constant + * @name secondsInDay + * @summary Seconds in 1 day. + */ +export declare const secondsInDay: number; +/** + * @constant + * @name secondsInWeek + * @summary Seconds in 1 week. + */ +export declare const secondsInWeek: number; +/** + * @constant + * @name secondsInYear + * @summary Seconds in 1 year. + */ +export declare const secondsInYear: number; +/** + * @constant + * @name secondsInMonth + * @summary Seconds in 1 month + */ +export declare const secondsInMonth: number; +/** + * @constant + * @name secondsInQuarter + * @summary Seconds in 1 quarter. + */ +export declare const secondsInQuarter: number; +/** + * @constant + * @name constructFromSymbol + * @summary Symbol enabling Date extensions to inherit properties from the reference date. + * + * The symbol is used to enable the `constructFrom` function to construct a date + * using a reference date and a value. It allows to transfer extra properties + * from the reference date to the new date. It's useful for extensions like + * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as + * a constructor argument. + */ +export declare const constructFromSymbol: unique symbol; diff --git a/node_modules/date-fns/constants.js b/node_modules/date-fns/constants.js new file mode 100644 index 000000000..80e06d978 --- /dev/null +++ b/node_modules/date-fns/constants.js @@ -0,0 +1,216 @@ +/** + * @module constants + * @summary Useful constants + * @description + * Collection of useful date constants. + * + * The constants could be imported from `date-fns/constants`: + * + * ```ts + * import { maxTime, minTime } from "./constants/date-fns/constants"; + * + * function isAllowedTime(time) { + * return time <= maxTime && time >= minTime; + * } + * ``` + */ + +/** + * @constant + * @name daysInWeek + * @summary Days in 1 week. + */ +export const daysInWeek = 7; + +/** + * @constant + * @name daysInYear + * @summary Days in 1 year. + * + * @description + * How many days in a year. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + */ +export const daysInYear = 365.2425; + +/** + * @constant + * @name maxTime + * @summary Maximum allowed time. + * + * @example + * import { maxTime } from "./constants/date-fns/constants"; + * + * const isValid = 8640000000000001 <= maxTime; + * //=> false + * + * new Date(8640000000000001); + * //=> Invalid Date + */ +export const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; + +/** + * @constant + * @name minTime + * @summary Minimum allowed time. + * + * @example + * import { minTime } from "./constants/date-fns/constants"; + * + * const isValid = -8640000000000001 >= minTime; + * //=> false + * + * new Date(-8640000000000001) + * //=> Invalid Date + */ +export const minTime = -maxTime; + +/** + * @constant + * @name millisecondsInWeek + * @summary Milliseconds in 1 week. + */ +export const millisecondsInWeek = 604800000; + +/** + * @constant + * @name millisecondsInDay + * @summary Milliseconds in 1 day. + */ +export const millisecondsInDay = 86400000; + +/** + * @constant + * @name millisecondsInMinute + * @summary Milliseconds in 1 minute + */ +export const millisecondsInMinute = 60000; + +/** + * @constant + * @name millisecondsInHour + * @summary Milliseconds in 1 hour + */ +export const millisecondsInHour = 3600000; + +/** + * @constant + * @name millisecondsInSecond + * @summary Milliseconds in 1 second + */ +export const millisecondsInSecond = 1000; + +/** + * @constant + * @name minutesInYear + * @summary Minutes in 1 year. + */ +export const minutesInYear = 525600; + +/** + * @constant + * @name minutesInMonth + * @summary Minutes in 1 month. + */ +export const minutesInMonth = 43200; + +/** + * @constant + * @name minutesInDay + * @summary Minutes in 1 day. + */ +export const minutesInDay = 1440; + +/** + * @constant + * @name minutesInHour + * @summary Minutes in 1 hour. + */ +export const minutesInHour = 60; + +/** + * @constant + * @name monthsInQuarter + * @summary Months in 1 quarter. + */ +export const monthsInQuarter = 3; + +/** + * @constant + * @name monthsInYear + * @summary Months in 1 year. + */ +export const monthsInYear = 12; + +/** + * @constant + * @name quartersInYear + * @summary Quarters in 1 year + */ +export const quartersInYear = 4; + +/** + * @constant + * @name secondsInHour + * @summary Seconds in 1 hour. + */ +export const secondsInHour = 3600; + +/** + * @constant + * @name secondsInMinute + * @summary Seconds in 1 minute. + */ +export const secondsInMinute = 60; + +/** + * @constant + * @name secondsInDay + * @summary Seconds in 1 day. + */ +export const secondsInDay = secondsInHour * 24; + +/** + * @constant + * @name secondsInWeek + * @summary Seconds in 1 week. + */ +export const secondsInWeek = secondsInDay * 7; + +/** + * @constant + * @name secondsInYear + * @summary Seconds in 1 year. + */ +export const secondsInYear = secondsInDay * daysInYear; + +/** + * @constant + * @name secondsInMonth + * @summary Seconds in 1 month + */ +export const secondsInMonth = secondsInYear / 12; + +/** + * @constant + * @name secondsInQuarter + * @summary Seconds in 1 quarter. + */ +export const secondsInQuarter = secondsInMonth * 3; + +/** + * @constant + * @name constructFromSymbol + * @summary Symbol enabling Date extensions to inherit properties from the reference date. + * + * The symbol is used to enable the `constructFrom` function to construct a date + * using a reference date and a value. It allows to transfer extra properties + * from the reference date to the new date. It's useful for extensions like + * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as + * a constructor argument. + */ +export const constructFromSymbol = Symbol.for("constructDateFrom"); diff --git a/node_modules/date-fns/constructFrom.cjs b/node_modules/date-fns/constructFrom.cjs new file mode 100644 index 000000000..dbb4cdc9a --- /dev/null +++ b/node_modules/date-fns/constructFrom.cjs @@ -0,0 +1,49 @@ +"use strict"; +exports.constructFrom = constructFrom; +var _index = require("./constants.cjs"); + +/** + * @name constructFrom + * @category Generic Helpers + * @summary Constructs a date using the reference date and the value + * + * @description + * The function constructs a new date using the constructor from the reference + * date and the given value. It helps to build generic functions that accept + * date extensions. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` + * enabling to transfer extra properties from the reference date to the new date. + * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) + * that accept a time zone as a constructor argument. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The reference date to take constructor from + * @param value - The value to create the date + * + * @returns Date initialized using the given date and value + * + * @example + * import { constructFrom } from "date-fns"; + * + * // A function that clones a date preserving the original type + * function cloneDate(date: DateType): DateType { + * return constructFrom( + * date, // Use constructor from the given date + * date.getTime() // Use the date value to create a new date + * ); + * } + */ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + + if (date && typeof date === "object" && _index.constructFromSymbol in date) + return date[_index.constructFromSymbol](value); + + if (date instanceof Date) return new date.constructor(value); + + return new Date(value); +} diff --git a/node_modules/date-fns/constructFrom.d.cts b/node_modules/date-fns/constructFrom.d.cts new file mode 100644 index 000000000..f4c9d6716 --- /dev/null +++ b/node_modules/date-fns/constructFrom.d.cts @@ -0,0 +1,43 @@ +import type { ConstructableDate, ContextFn, DateArg } from "./types.ts"; +/** + * @name constructFrom + * @category Generic Helpers + * @summary Constructs a date using the reference date and the value + * + * @description + * The function constructs a new date using the constructor from the reference + * date and the given value. It helps to build generic functions that accept + * date extensions. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` + * enabling to transfer extra properties from the reference date to the new date. + * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) + * that accept a time zone as a constructor argument. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The reference date to take constructor from + * @param value - The value to create the date + * + * @returns Date initialized using the given date and value + * + * @example + * import { constructFrom } from "./constructFrom/date-fns"; + * + * // A function that clones a date preserving the original type + * function cloneDate(date: DateType): DateType { + * return constructFrom( + * date, // Use constructor from the given date + * date.getTime() // Use the date value to create a new date + * ); + * } + */ +export declare function constructFrom< + DateType extends Date | ConstructableDate, + ResultDate extends Date = DateType, +>( + date: DateArg | ContextFn | undefined, + value: DateArg & {}, +): ResultDate; diff --git a/node_modules/date-fns/constructFrom.d.ts b/node_modules/date-fns/constructFrom.d.ts new file mode 100644 index 000000000..f4c9d6716 --- /dev/null +++ b/node_modules/date-fns/constructFrom.d.ts @@ -0,0 +1,43 @@ +import type { ConstructableDate, ContextFn, DateArg } from "./types.ts"; +/** + * @name constructFrom + * @category Generic Helpers + * @summary Constructs a date using the reference date and the value + * + * @description + * The function constructs a new date using the constructor from the reference + * date and the given value. It helps to build generic functions that accept + * date extensions. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` + * enabling to transfer extra properties from the reference date to the new date. + * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) + * that accept a time zone as a constructor argument. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The reference date to take constructor from + * @param value - The value to create the date + * + * @returns Date initialized using the given date and value + * + * @example + * import { constructFrom } from "./constructFrom/date-fns"; + * + * // A function that clones a date preserving the original type + * function cloneDate(date: DateType): DateType { + * return constructFrom( + * date, // Use constructor from the given date + * date.getTime() // Use the date value to create a new date + * ); + * } + */ +export declare function constructFrom< + DateType extends Date | ConstructableDate, + ResultDate extends Date = DateType, +>( + date: DateArg | ContextFn | undefined, + value: DateArg & {}, +): ResultDate; diff --git a/node_modules/date-fns/constructFrom.js b/node_modules/date-fns/constructFrom.js new file mode 100644 index 000000000..4b8bcfda4 --- /dev/null +++ b/node_modules/date-fns/constructFrom.js @@ -0,0 +1,50 @@ +import { constructFromSymbol } from "./constants.js"; + +/** + * @name constructFrom + * @category Generic Helpers + * @summary Constructs a date using the reference date and the value + * + * @description + * The function constructs a new date using the constructor from the reference + * date and the given value. It helps to build generic functions that accept + * date extensions. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` + * enabling to transfer extra properties from the reference date to the new date. + * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) + * that accept a time zone as a constructor argument. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @param date - The reference date to take constructor from + * @param value - The value to create the date + * + * @returns Date initialized using the given date and value + * + * @example + * import { constructFrom } from "./constructFrom/date-fns"; + * + * // A function that clones a date preserving the original type + * function cloneDate(date: DateType): DateType { + * return constructFrom( + * date, // Use constructor from the given date + * date.getTime() // Use the date value to create a new date + * ); + * } + */ +export function constructFrom(date, value) { + if (typeof date === "function") return date(value); + + if (date && typeof date === "object" && constructFromSymbol in date) + return date[constructFromSymbol](value); + + if (date instanceof Date) return new date.constructor(value); + + return new Date(value); +} + +// Fallback for modularized imports: +export default constructFrom; diff --git a/node_modules/date-fns/constructNow.cjs b/node_modules/date-fns/constructNow.cjs new file mode 100644 index 000000000..5b2277899 --- /dev/null +++ b/node_modules/date-fns/constructNow.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.constructNow = constructNow; +var _index = require("./constructFrom.cjs"); + +/** + * @name constructNow + * @category Generic Helpers + * @summary Constructs a new current date using the passed value constructor. + * @pure false + * + * @description + * The function constructs a new current date using the constructor from + * the reference date. It helps to build generic functions that accept date + * extensions and use the current date. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * @param date - The reference date to take constructor from + * + * @returns Current date initialized using the given date constructor + * + * @example + * import { constructNow, isSameDay } from 'date-fns' + * + * function isToday( + * date: DateArg, + * ): boolean { + * // If we were to use `new Date()` directly, the function would behave + * // differently in different timezones and return false for the same date. + * return isSameDay(date, constructNow(date)); + * } + */ +function constructNow(date) { + return (0, _index.constructFrom)(date, Date.now()); +} diff --git a/node_modules/date-fns/constructNow.d.cts b/node_modules/date-fns/constructNow.d.cts new file mode 100644 index 000000000..94624b6d5 --- /dev/null +++ b/node_modules/date-fns/constructNow.d.cts @@ -0,0 +1,33 @@ +import type { ContextFn, DateArg } from "./types.ts"; +/** + * @name constructNow + * @category Generic Helpers + * @summary Constructs a new current date using the passed value constructor. + * @pure false + * + * @description + * The function constructs a new current date using the constructor from + * the reference date. It helps to build generic functions that accept date + * extensions and use the current date. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * @param date - The reference date to take constructor from + * + * @returns Current date initialized using the given date constructor + * + * @example + * import { constructNow, isSameDay } from 'date-fns' + * + * function isToday( + * date: DateArg, + * ): boolean { + * // If we were to use `new Date()` directly, the function would behave + * // differently in different timezones and return false for the same date. + * return isSameDay(date, constructNow(date)); + * } + */ +export declare function constructNow< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg | ContextFn | undefined): ResultDate; diff --git a/node_modules/date-fns/constructNow.d.ts b/node_modules/date-fns/constructNow.d.ts new file mode 100644 index 000000000..94624b6d5 --- /dev/null +++ b/node_modules/date-fns/constructNow.d.ts @@ -0,0 +1,33 @@ +import type { ContextFn, DateArg } from "./types.ts"; +/** + * @name constructNow + * @category Generic Helpers + * @summary Constructs a new current date using the passed value constructor. + * @pure false + * + * @description + * The function constructs a new current date using the constructor from + * the reference date. It helps to build generic functions that accept date + * extensions and use the current date. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * @param date - The reference date to take constructor from + * + * @returns Current date initialized using the given date constructor + * + * @example + * import { constructNow, isSameDay } from 'date-fns' + * + * function isToday( + * date: DateArg, + * ): boolean { + * // If we were to use `new Date()` directly, the function would behave + * // differently in different timezones and return false for the same date. + * return isSameDay(date, constructNow(date)); + * } + */ +export declare function constructNow< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg | ContextFn | undefined): ResultDate; diff --git a/node_modules/date-fns/constructNow.js b/node_modules/date-fns/constructNow.js new file mode 100644 index 000000000..56b9c400a --- /dev/null +++ b/node_modules/date-fns/constructNow.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; + +/** + * @name constructNow + * @category Generic Helpers + * @summary Constructs a new current date using the passed value constructor. + * @pure false + * + * @description + * The function constructs a new current date using the constructor from + * the reference date. It helps to build generic functions that accept date + * extensions and use the current date. + * + * It defaults to `Date` if the passed reference date is a number or a string. + * + * @param date - The reference date to take constructor from + * + * @returns Current date initialized using the given date constructor + * + * @example + * import { constructNow, isSameDay } from 'date-fns' + * + * function isToday( + * date: DateArg, + * ): boolean { + * // If we were to use `new Date()` directly, the function would behave + * // differently in different timezones and return false for the same date. + * return isSameDay(date, constructNow(date)); + * } + */ +export function constructNow(date) { + return constructFrom(date, Date.now()); +} + +// Fallback for modularized imports: +export default constructNow; diff --git a/node_modules/date-fns/daysToWeeks.cjs b/node_modules/date-fns/daysToWeeks.cjs new file mode 100644 index 000000000..2f0987927 --- /dev/null +++ b/node_modules/date-fns/daysToWeeks.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.daysToWeeks = daysToWeeks; +var _index = require("./constants.cjs"); + +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param days - The number of days to be converted + * + * @returns The number of days converted in weeks + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses trunc rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +function daysToWeeks(days) { + const result = Math.trunc(days / _index.daysInWeek); + // Prevent negative zero + return result === 0 ? 0 : result; +} diff --git a/node_modules/date-fns/daysToWeeks.d.cts b/node_modules/date-fns/daysToWeeks.d.cts new file mode 100644 index 000000000..2f1b50224 --- /dev/null +++ b/node_modules/date-fns/daysToWeeks.d.cts @@ -0,0 +1,23 @@ +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param days - The number of days to be converted + * + * @returns The number of days converted in weeks + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses trunc rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +export declare function daysToWeeks(days: number): number; diff --git a/node_modules/date-fns/daysToWeeks.d.ts b/node_modules/date-fns/daysToWeeks.d.ts new file mode 100644 index 000000000..2f1b50224 --- /dev/null +++ b/node_modules/date-fns/daysToWeeks.d.ts @@ -0,0 +1,23 @@ +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param days - The number of days to be converted + * + * @returns The number of days converted in weeks + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses trunc rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +export declare function daysToWeeks(days: number): number; diff --git a/node_modules/date-fns/daysToWeeks.js b/node_modules/date-fns/daysToWeeks.js new file mode 100644 index 000000000..5720c4a7f --- /dev/null +++ b/node_modules/date-fns/daysToWeeks.js @@ -0,0 +1,32 @@ +import { daysInWeek } from "./constants.js"; + +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param days - The number of days to be converted + * + * @returns The number of days converted in weeks + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses trunc rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +export function daysToWeeks(days) { + const result = Math.trunc(days / daysInWeek); + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Fallback for modularized imports: +export default daysToWeeks; diff --git a/node_modules/date-fns/differenceInBusinessDays.cjs b/node_modules/date-fns/differenceInBusinessDays.cjs new file mode 100644 index 000000000..8f8400703 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays.cjs @@ -0,0 +1,90 @@ +"use strict"; +exports.differenceInBusinessDays = differenceInBusinessDays; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./addDays.cjs"); +var _index3 = require("./differenceInCalendarDays.cjs"); +var _index4 = require("./isSameDay.cjs"); +var _index5 = require("./isValid.cjs"); +var _index6 = require("./isWeekend.cjs"); + +/** + * The {@link differenceInBusinessDays} function options. + */ + +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that aren't in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of business days + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +function differenceInBusinessDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + if (!(0, _index5.isValid)(laterDate_) || !(0, _index5.isValid)(earlierDate_)) + return NaN; + + const diff = (0, _index3.differenceInCalendarDays)(laterDate_, earlierDate_); + const sign = diff < 0 ? -1 : 1; + const weeks = Math.trunc(diff / 7); + + let result = weeks * 5; + let movingDate = (0, _index2.addDays)(earlierDate_, weeks * 7); + + // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week + while (!(0, _index4.isSameDay)(laterDate_, movingDate)) { + // sign is used to account for both negative and positive differences + result += (0, _index6.isWeekend)(movingDate, options) ? 0 : sign; + movingDate = (0, _index2.addDays)(movingDate, sign); + } + + // Prevent negative zero + return result === 0 ? 0 : result; +} diff --git a/node_modules/date-fns/differenceInBusinessDays.d.cts b/node_modules/date-fns/differenceInBusinessDays.d.cts new file mode 100644 index 000000000..5fdde719c --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays.d.cts @@ -0,0 +1,60 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInBusinessDays} function options. + */ +export interface DifferenceInBusinessDaysOptions extends ContextOptions {} +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that aren't in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of business days + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +export declare function differenceInBusinessDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInBusinessDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInBusinessDays.d.ts b/node_modules/date-fns/differenceInBusinessDays.d.ts new file mode 100644 index 000000000..5fdde719c --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays.d.ts @@ -0,0 +1,60 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInBusinessDays} function options. + */ +export interface DifferenceInBusinessDaysOptions extends ContextOptions {} +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that aren't in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of business days + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +export declare function differenceInBusinessDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInBusinessDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInBusinessDays.js b/node_modules/date-fns/differenceInBusinessDays.js new file mode 100644 index 000000000..ff0621115 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays.js @@ -0,0 +1,90 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { addDays } from "./addDays.js"; +import { differenceInCalendarDays } from "./differenceInCalendarDays.js"; +import { isSameDay } from "./isSameDay.js"; +import { isValid } from "./isValid.js"; +import { isWeekend } from "./isWeekend.js"; + +/** + * The {@link differenceInBusinessDays} function options. + */ + +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that aren't in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of business days + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +export function differenceInBusinessDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + if (!isValid(laterDate_) || !isValid(earlierDate_)) return NaN; + + const diff = differenceInCalendarDays(laterDate_, earlierDate_); + const sign = diff < 0 ? -1 : 1; + const weeks = Math.trunc(diff / 7); + + let result = weeks * 5; + let movingDate = addDays(earlierDate_, weeks * 7); + + // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week + while (!isSameDay(laterDate_, movingDate)) { + // sign is used to account for both negative and positive differences + result += isWeekend(movingDate, options) ? 0 : sign; + movingDate = addDays(movingDate, sign); + } + + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Fallback for modularized imports: +export default differenceInBusinessDays; diff --git a/node_modules/date-fns/differenceInCalendarDays.cjs b/node_modules/date-fns/differenceInCalendarDays.cjs new file mode 100644 index 000000000..64dfeb076 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays.cjs @@ -0,0 +1,66 @@ +"use strict"; +exports.differenceInCalendarDays = differenceInCalendarDays; +var _index = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index2 = require("./_lib/normalizeDates.cjs"); +var _index3 = require("./constants.cjs"); +var _index4 = require("./startOfDay.cjs"); + +/** + * The {@link differenceInCalendarDays} function options. + */ + +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options object + * + * @returns The number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ +function differenceInCalendarDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const laterStartOfDay = (0, _index4.startOfDay)(laterDate_); + const earlierStartOfDay = (0, _index4.startOfDay)(earlierDate_); + + const laterTimestamp = + +laterStartOfDay - + (0, _index.getTimezoneOffsetInMilliseconds)(laterStartOfDay); + const earlierTimestamp = + +earlierStartOfDay - + (0, _index.getTimezoneOffsetInMilliseconds)(earlierStartOfDay); + + // Round the number of days to the nearest integer because the number of + // milliseconds in a day is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round( + (laterTimestamp - earlierTimestamp) / _index3.millisecondsInDay, + ); +} diff --git a/node_modules/date-fns/differenceInCalendarDays.d.cts b/node_modules/date-fns/differenceInCalendarDays.d.cts new file mode 100644 index 000000000..1ada782aa --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays.d.cts @@ -0,0 +1,41 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarDays} function options. + */ +export interface DifferenceInCalendarDaysOptions extends ContextOptions {} +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options object + * + * @returns The number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ +export declare function differenceInCalendarDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarDays.d.ts b/node_modules/date-fns/differenceInCalendarDays.d.ts new file mode 100644 index 000000000..1ada782aa --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays.d.ts @@ -0,0 +1,41 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarDays} function options. + */ +export interface DifferenceInCalendarDaysOptions extends ContextOptions {} +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options object + * + * @returns The number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ +export declare function differenceInCalendarDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarDays.js b/node_modules/date-fns/differenceInCalendarDays.js new file mode 100644 index 000000000..349828827 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays.js @@ -0,0 +1,63 @@ +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { millisecondsInDay } from "./constants.js"; +import { startOfDay } from "./startOfDay.js"; + +/** + * The {@link differenceInCalendarDays} function options. + */ + +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options object + * + * @returns The number of calendar days + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ +export function differenceInCalendarDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const laterStartOfDay = startOfDay(laterDate_); + const earlierStartOfDay = startOfDay(earlierDate_); + + const laterTimestamp = + +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay); + const earlierTimestamp = + +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay); + + // Round the number of days to the nearest integer because the number of + // milliseconds in a day is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay); +} + +// Fallback for modularized imports: +export default differenceInCalendarDays; diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears.cjs b/node_modules/date-fns/differenceInCalendarISOWeekYears.cjs new file mode 100644 index 000000000..71ddd2522 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.differenceInCalendarISOWeekYears = differenceInCalendarISOWeekYears; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./getISOWeekYear.cjs"); + +/** + * The {@link differenceInCalendarISOWeekYears} function options. + */ + +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO week-numbering years + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +function differenceInCalendarISOWeekYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + (0, _index2.getISOWeekYear)(laterDate_, options) - + (0, _index2.getISOWeekYear)(earlierDate_, options) + ); +} diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears.d.cts b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.cts new file mode 100644 index 000000000..f0f0fb79b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarISOWeekYears} function options. + */ +export interface DifferenceInCalendarISOWeekYearsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO week-numbering years + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +export declare function differenceInCalendarISOWeekYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarISOWeekYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears.d.ts b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.ts new file mode 100644 index 000000000..f0f0fb79b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarISOWeekYears} function options. + */ +export interface DifferenceInCalendarISOWeekYearsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO week-numbering years + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +export declare function differenceInCalendarISOWeekYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarISOWeekYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears.js b/node_modules/date-fns/differenceInCalendarISOWeekYears.js new file mode 100644 index 000000000..cb119f526 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears.js @@ -0,0 +1,48 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { getISOWeekYear } from "./getISOWeekYear.js"; + +/** + * The {@link differenceInCalendarISOWeekYears} function options. + */ + +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO week-numbering years + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +export function differenceInCalendarISOWeekYears( + laterDate, + earlierDate, + options, +) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return ( + getISOWeekYear(laterDate_, options) - getISOWeekYear(earlierDate_, options) + ); +} + +// Fallback for modularized imports: +export default differenceInCalendarISOWeekYears; diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.cjs b/node_modules/date-fns/differenceInCalendarISOWeeks.cjs new file mode 100644 index 000000000..36f83e6df --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.cjs @@ -0,0 +1,59 @@ +"use strict"; +exports.differenceInCalendarISOWeeks = differenceInCalendarISOWeeks; +var _index = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index2 = require("./_lib/normalizeDates.cjs"); +var _index3 = require("./constants.cjs"); +var _index4 = require("./startOfISOWeek.cjs"); + +/** + * The {@link differenceInCalendarISOWeeks} function options. + */ + +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO weeks + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6), + * ); + * //=> 3 + */ +function differenceInCalendarISOWeeks(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const startOfISOWeekLeft = (0, _index4.startOfISOWeek)(laterDate_); + const startOfISOWeekRight = (0, _index4.startOfISOWeek)(earlierDate_); + + const timestampLeft = + +startOfISOWeekLeft - + (0, _index.getTimezoneOffsetInMilliseconds)(startOfISOWeekLeft); + const timestampRight = + +startOfISOWeekRight - + (0, _index.getTimezoneOffsetInMilliseconds)(startOfISOWeekRight); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round( + (timestampLeft - timestampRight) / _index3.millisecondsInWeek, + ); +} diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.d.cts b/node_modules/date-fns/differenceInCalendarISOWeeks.d.cts new file mode 100644 index 000000000..bba809e5c --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarISOWeeks} function options. + */ +export interface DifferenceInCalendarISOWeeksOptions + extends ContextOptions {} +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO weeks + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6), + * ); + * //=> 3 + */ +export declare function differenceInCalendarISOWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarISOWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.d.ts b/node_modules/date-fns/differenceInCalendarISOWeeks.d.ts new file mode 100644 index 000000000..bba809e5c --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarISOWeeks} function options. + */ +export interface DifferenceInCalendarISOWeeksOptions + extends ContextOptions {} +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO weeks + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6), + * ); + * //=> 3 + */ +export declare function differenceInCalendarISOWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarISOWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks.js b/node_modules/date-fns/differenceInCalendarISOWeeks.js new file mode 100644 index 000000000..37086af97 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks.js @@ -0,0 +1,56 @@ +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { millisecondsInWeek } from "./constants.js"; +import { startOfISOWeek } from "./startOfISOWeek.js"; + +/** + * The {@link differenceInCalendarISOWeeks} function options. + */ + +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar ISO weeks + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6), + * ); + * //=> 3 + */ +export function differenceInCalendarISOWeeks(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const startOfISOWeekLeft = startOfISOWeek(laterDate_); + const startOfISOWeekRight = startOfISOWeek(earlierDate_); + + const timestampLeft = + +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); + const timestampRight = + +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); +} + +// Fallback for modularized imports: +export default differenceInCalendarISOWeeks; diff --git a/node_modules/date-fns/differenceInCalendarMonths.cjs b/node_modules/date-fns/differenceInCalendarMonths.cjs new file mode 100644 index 000000000..7f4d0461f --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.differenceInCalendarMonths = differenceInCalendarMonths; +var _index = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link differenceInCalendarMonths} function options. + */ + +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar months + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +function differenceInCalendarMonths(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); + + return yearsDiff * 12 + monthsDiff; +} diff --git a/node_modules/date-fns/differenceInCalendarMonths.d.cts b/node_modules/date-fns/differenceInCalendarMonths.d.cts new file mode 100644 index 000000000..0e9780ff9 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths.d.cts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarMonths} function options. + */ +export interface DifferenceInCalendarMonthsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar months + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +export declare function differenceInCalendarMonths( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarMonthsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarMonths.d.ts b/node_modules/date-fns/differenceInCalendarMonths.d.ts new file mode 100644 index 000000000..0e9780ff9 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths.d.ts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarMonths} function options. + */ +export interface DifferenceInCalendarMonthsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar months + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +export declare function differenceInCalendarMonths( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarMonthsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarMonths.js b/node_modules/date-fns/differenceInCalendarMonths.js new file mode 100644 index 000000000..8db002414 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths.js @@ -0,0 +1,43 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link differenceInCalendarMonths} function options. + */ + +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar months + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +export function differenceInCalendarMonths(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); + + return yearsDiff * 12 + monthsDiff; +} + +// Fallback for modularized imports: +export default differenceInCalendarMonths; diff --git a/node_modules/date-fns/differenceInCalendarQuarters.cjs b/node_modules/date-fns/differenceInCalendarQuarters.cjs new file mode 100644 index 000000000..def065b43 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.differenceInCalendarQuarters = differenceInCalendarQuarters; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./getQuarter.cjs"); + +/** + * The {@link differenceInCalendarQuarters} function options. + */ + +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar quarters + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +function differenceInCalendarQuarters(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + const quartersDiff = + (0, _index2.getQuarter)(laterDate_) - (0, _index2.getQuarter)(earlierDate_); + + return yearsDiff * 4 + quartersDiff; +} diff --git a/node_modules/date-fns/differenceInCalendarQuarters.d.cts b/node_modules/date-fns/differenceInCalendarQuarters.d.cts new file mode 100644 index 000000000..8e80e2fa3 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters.d.cts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarQuarters} function options. + */ +export interface DifferenceInCalendarQuartersOptions + extends ContextOptions {} +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar quarters + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +export declare function differenceInCalendarQuarters( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarQuartersOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarQuarters.d.ts b/node_modules/date-fns/differenceInCalendarQuarters.d.ts new file mode 100644 index 000000000..8e80e2fa3 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters.d.ts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarQuarters} function options. + */ +export interface DifferenceInCalendarQuartersOptions + extends ContextOptions {} +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar quarters + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +export declare function differenceInCalendarQuarters( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarQuartersOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarQuarters.js b/node_modules/date-fns/differenceInCalendarQuarters.js new file mode 100644 index 000000000..66095a32d --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters.js @@ -0,0 +1,44 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { getQuarter } from "./getQuarter.js"; + +/** + * The {@link differenceInCalendarQuarters} function options. + */ + +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of calendar quarters + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +export function differenceInCalendarQuarters(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + const quartersDiff = getQuarter(laterDate_) - getQuarter(earlierDate_); + + return yearsDiff * 4 + quartersDiff; +} + +// Fallback for modularized imports: +export default differenceInCalendarQuarters; diff --git a/node_modules/date-fns/differenceInCalendarWeeks.cjs b/node_modules/date-fns/differenceInCalendarWeeks.cjs new file mode 100644 index 000000000..745780ea0 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks.cjs @@ -0,0 +1,64 @@ +"use strict"; +exports.differenceInCalendarWeeks = differenceInCalendarWeeks; +var _index = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index2 = require("./_lib/normalizeDates.cjs"); +var _index3 = require("./constants.cjs"); +var _index4 = require("./startOfWeek.cjs"); + +/** + * The {@link differenceInCalendarWeeks} function options. + */ + +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ +function differenceInCalendarWeeks(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const laterStartOfWeek = (0, _index4.startOfWeek)(laterDate_, options); + const earlierStartOfWeek = (0, _index4.startOfWeek)(earlierDate_, options); + + const laterTimestamp = + +laterStartOfWeek - + (0, _index.getTimezoneOffsetInMilliseconds)(laterStartOfWeek); + const earlierTimestamp = + +earlierStartOfWeek - + (0, _index.getTimezoneOffsetInMilliseconds)(earlierStartOfWeek); + + return Math.round( + (laterTimestamp - earlierTimestamp) / _index3.millisecondsInWeek, + ); +} diff --git a/node_modules/date-fns/differenceInCalendarWeeks.d.cts b/node_modules/date-fns/differenceInCalendarWeeks.d.cts new file mode 100644 index 000000000..c207b9333 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks.d.cts @@ -0,0 +1,50 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link differenceInCalendarWeeks} function options. + */ +export interface DifferenceInCalendarWeeksOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ +export declare function differenceInCalendarWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarWeeks.d.ts b/node_modules/date-fns/differenceInCalendarWeeks.d.ts new file mode 100644 index 000000000..c207b9333 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks.d.ts @@ -0,0 +1,50 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link differenceInCalendarWeeks} function options. + */ +export interface DifferenceInCalendarWeeksOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ +export declare function differenceInCalendarWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarWeeks.js b/node_modules/date-fns/differenceInCalendarWeeks.js new file mode 100644 index 000000000..1518f42a0 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks.js @@ -0,0 +1,61 @@ +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { millisecondsInWeek } from "./constants.js"; +import { startOfWeek } from "./startOfWeek.js"; + +/** + * The {@link differenceInCalendarWeeks} function options. + */ + +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ +export function differenceInCalendarWeeks(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const laterStartOfWeek = startOfWeek(laterDate_, options); + const earlierStartOfWeek = startOfWeek(earlierDate_, options); + + const laterTimestamp = + +laterStartOfWeek - getTimezoneOffsetInMilliseconds(laterStartOfWeek); + const earlierTimestamp = + +earlierStartOfWeek - getTimezoneOffsetInMilliseconds(earlierStartOfWeek); + + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInWeek); +} + +// Fallback for modularized imports: +export default differenceInCalendarWeeks; diff --git a/node_modules/date-fns/differenceInCalendarYears.cjs b/node_modules/date-fns/differenceInCalendarYears.cjs new file mode 100644 index 000000000..b6e59d170 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.differenceInCalendarYears = differenceInCalendarYears; +var _index = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link differenceInCalendarYears} function options. + */ + +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + + * @returns The number of calendar years + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ); + * //=> 2 + */ +function differenceInCalendarYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return laterDate_.getFullYear() - earlierDate_.getFullYear(); +} diff --git a/node_modules/date-fns/differenceInCalendarYears.d.cts b/node_modules/date-fns/differenceInCalendarYears.d.cts new file mode 100644 index 000000000..2933d8a8e --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears.d.cts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarYears} function options. + */ +export interface DifferenceInCalendarYearsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + + * @returns The number of calendar years + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ); + * //=> 2 + */ +export declare function differenceInCalendarYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarYears.d.ts b/node_modules/date-fns/differenceInCalendarYears.d.ts new file mode 100644 index 000000000..2933d8a8e --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears.d.ts @@ -0,0 +1,33 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInCalendarYears} function options. + */ +export interface DifferenceInCalendarYearsOptions + extends ContextOptions {} +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + + * @returns The number of calendar years + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ); + * //=> 2 + */ +export declare function differenceInCalendarYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInCalendarYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInCalendarYears.js b/node_modules/date-fns/differenceInCalendarYears.js new file mode 100644 index 000000000..3370d6e68 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears.js @@ -0,0 +1,39 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link differenceInCalendarYears} function options. + */ + +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + + * @returns The number of calendar years + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ); + * //=> 2 + */ +export function differenceInCalendarYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return laterDate_.getFullYear() - earlierDate_.getFullYear(); +} + +// Fallback for modularized imports: +export default differenceInCalendarYears; diff --git a/node_modules/date-fns/differenceInDays.cjs b/node_modules/date-fns/differenceInDays.cjs new file mode 100644 index 000000000..5c997f9f6 --- /dev/null +++ b/node_modules/date-fns/differenceInDays.cjs @@ -0,0 +1,107 @@ +"use strict"; +exports.differenceInDays = differenceInDays; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./differenceInCalendarDays.cjs"); + +/** + * The {@link differenceInDays} function options. + */ + +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full days according to the local timezone + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * + * @example + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * + * @example + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) + * //=> 92 + */ +function differenceInDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const sign = compareLocalAsc(laterDate_, earlierDate_); + const difference = Math.abs( + (0, _index2.differenceInCalendarDays)(laterDate_, earlierDate_), + ); + + laterDate_.setDate(laterDate_.getDate() - sign * difference); + + // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full + // If so, result must be decreased by 1 in absolute value + const isLastDayNotFull = Number( + compareLocalAsc(laterDate_, earlierDate_) === -sign, + ); + + const result = sign * (difference - isLastDayNotFull); + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Like `compareAsc` but uses local time not UTC, which is needed +// for accurate equality comparisons of UTC timestamps that end up +// having the same representation in local time, e.g. one hour before +// DST ends vs. the instant that DST ends. +function compareLocalAsc(laterDate, earlierDate) { + const diff = + laterDate.getFullYear() - earlierDate.getFullYear() || + laterDate.getMonth() - earlierDate.getMonth() || + laterDate.getDate() - earlierDate.getDate() || + laterDate.getHours() - earlierDate.getHours() || + laterDate.getMinutes() - earlierDate.getMinutes() || + laterDate.getSeconds() - earlierDate.getSeconds() || + laterDate.getMilliseconds() - earlierDate.getMilliseconds(); + + if (diff < 0) return -1; + if (diff > 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} diff --git a/node_modules/date-fns/differenceInDays.d.cts b/node_modules/date-fns/differenceInDays.d.cts new file mode 100644 index 000000000..4dbdc16b5 --- /dev/null +++ b/node_modules/date-fns/differenceInDays.d.cts @@ -0,0 +1,63 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInDays} function options. + */ +export interface DifferenceInDaysOptions extends ContextOptions {} +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full days according to the local timezone + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * + * @example + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * + * @example + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) + * //=> 92 + */ +export declare function differenceInDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInDays.d.ts b/node_modules/date-fns/differenceInDays.d.ts new file mode 100644 index 000000000..4dbdc16b5 --- /dev/null +++ b/node_modules/date-fns/differenceInDays.d.ts @@ -0,0 +1,63 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInDays} function options. + */ +export interface DifferenceInDaysOptions extends ContextOptions {} +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full days according to the local timezone + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * + * @example + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * + * @example + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) + * //=> 92 + */ +export declare function differenceInDays( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInDaysOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInDays.js b/node_modules/date-fns/differenceInDays.js new file mode 100644 index 000000000..8d2ce6cab --- /dev/null +++ b/node_modules/date-fns/differenceInDays.js @@ -0,0 +1,108 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { differenceInCalendarDays } from "./differenceInCalendarDays.js"; + +/** + * The {@link differenceInDays} function options. + */ + +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full days according to the local timezone + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * + * @example + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * + * @example + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) + * //=> 92 + */ +export function differenceInDays(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const sign = compareLocalAsc(laterDate_, earlierDate_); + const difference = Math.abs( + differenceInCalendarDays(laterDate_, earlierDate_), + ); + + laterDate_.setDate(laterDate_.getDate() - sign * difference); + + // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full + // If so, result must be decreased by 1 in absolute value + const isLastDayNotFull = Number( + compareLocalAsc(laterDate_, earlierDate_) === -sign, + ); + + const result = sign * (difference - isLastDayNotFull); + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Like `compareAsc` but uses local time not UTC, which is needed +// for accurate equality comparisons of UTC timestamps that end up +// having the same representation in local time, e.g. one hour before +// DST ends vs. the instant that DST ends. +function compareLocalAsc(laterDate, earlierDate) { + const diff = + laterDate.getFullYear() - earlierDate.getFullYear() || + laterDate.getMonth() - earlierDate.getMonth() || + laterDate.getDate() - earlierDate.getDate() || + laterDate.getHours() - earlierDate.getHours() || + laterDate.getMinutes() - earlierDate.getMinutes() || + laterDate.getSeconds() - earlierDate.getSeconds() || + laterDate.getMilliseconds() - earlierDate.getMilliseconds(); + + if (diff < 0) return -1; + if (diff > 0) return 1; + + // Return 0 if diff is 0; return NaN if diff is NaN + return diff; +} + +// Fallback for modularized imports: +export default differenceInDays; diff --git a/node_modules/date-fns/differenceInHours.cjs b/node_modules/date-fns/differenceInHours.cjs new file mode 100644 index 000000000..649460dbd --- /dev/null +++ b/node_modules/date-fns/differenceInHours.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.differenceInHours = differenceInHours; +var _index = require("./_lib/getRoundingMethod.cjs"); +var _index2 = require("./_lib/normalizeDates.cjs"); +var _index3 = require("./constants.cjs"); + +/** + * The {@link differenceInHours} function options. + */ + +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of hours + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +function differenceInHours(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + const diff = (+laterDate_ - +earlierDate_) / _index3.millisecondsInHour; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); +} diff --git a/node_modules/date-fns/differenceInHours.d.cts b/node_modules/date-fns/differenceInHours.d.cts new file mode 100644 index 000000000..74ff5329d --- /dev/null +++ b/node_modules/date-fns/differenceInHours.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInHours} function options. + */ +export interface DifferenceInHoursOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of hours + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +export declare function differenceInHours( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInHoursOptions, +): number; diff --git a/node_modules/date-fns/differenceInHours.d.ts b/node_modules/date-fns/differenceInHours.d.ts new file mode 100644 index 000000000..74ff5329d --- /dev/null +++ b/node_modules/date-fns/differenceInHours.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInHours} function options. + */ +export interface DifferenceInHoursOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of hours + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +export declare function differenceInHours( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInHoursOptions, +): number; diff --git a/node_modules/date-fns/differenceInHours.js b/node_modules/date-fns/differenceInHours.js new file mode 100644 index 000000000..e5d85bed7 --- /dev/null +++ b/node_modules/date-fns/differenceInHours.js @@ -0,0 +1,42 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { millisecondsInHour } from "./constants.js"; + +/** + * The {@link differenceInHours} function options. + */ + +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of hours + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +export function differenceInHours(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + const diff = (+laterDate_ - +earlierDate_) / millisecondsInHour; + return getRoundingMethod(options?.roundingMethod)(diff); +} + +// Fallback for modularized imports: +export default differenceInHours; diff --git a/node_modules/date-fns/differenceInISOWeekYears.cjs b/node_modules/date-fns/differenceInISOWeekYears.cjs new file mode 100644 index 000000000..684379b39 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears.cjs @@ -0,0 +1,65 @@ +"use strict"; +exports.differenceInISOWeekYears = differenceInISOWeekYears; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./compareAsc.cjs"); +var _index3 = require("./differenceInCalendarISOWeekYears.cjs"); +var _index4 = require("./subISOWeekYears.cjs"); + +/** + * The {@link differenceInISOWeekYears} function options. + */ + +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options + * + * @returns The number of full ISO week-numbering years + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * // => 1 + */ +function differenceInISOWeekYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + const sign = (0, _index2.compareAsc)(laterDate_, earlierDate_); + const diff = Math.abs( + (0, _index3.differenceInCalendarISOWeekYears)( + laterDate_, + earlierDate_, + options, + ), + ); + + const adjustedDate = (0, _index4.subISOWeekYears)( + laterDate_, + sign * diff, + options, + ); + + const isLastISOWeekYearNotFull = Number( + (0, _index2.compareAsc)(adjustedDate, earlierDate_) === -sign, + ); + const result = sign * (diff - isLastISOWeekYearNotFull); + + // Prevent negative zero + return result === 0 ? 0 : result; +} diff --git a/node_modules/date-fns/differenceInISOWeekYears.d.cts b/node_modules/date-fns/differenceInISOWeekYears.d.cts new file mode 100644 index 000000000..21c4edc46 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInISOWeekYears} function options. + */ +export interface DifferenceInISOWeekYearsOptions extends ContextOptions {} +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options + * + * @returns The number of full ISO week-numbering years + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * // => 1 + */ +export declare function differenceInISOWeekYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInISOWeekYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInISOWeekYears.d.ts b/node_modules/date-fns/differenceInISOWeekYears.d.ts new file mode 100644 index 000000000..21c4edc46 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInISOWeekYears} function options. + */ +export interface DifferenceInISOWeekYearsOptions extends ContextOptions {} +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options + * + * @returns The number of full ISO week-numbering years + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * // => 1 + */ +export declare function differenceInISOWeekYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInISOWeekYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInISOWeekYears.js b/node_modules/date-fns/differenceInISOWeekYears.js new file mode 100644 index 000000000..bf9e371d4 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears.js @@ -0,0 +1,58 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { compareAsc } from "./compareAsc.js"; +import { differenceInCalendarISOWeekYears } from "./differenceInCalendarISOWeekYears.js"; +import { subISOWeekYears } from "./subISOWeekYears.js"; + +/** + * The {@link differenceInISOWeekYears} function options. + */ + +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - The options + * + * @returns The number of full ISO week-numbering years + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * // => 1 + */ +export function differenceInISOWeekYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + const sign = compareAsc(laterDate_, earlierDate_); + const diff = Math.abs( + differenceInCalendarISOWeekYears(laterDate_, earlierDate_, options), + ); + + const adjustedDate = subISOWeekYears(laterDate_, sign * diff, options); + + const isLastISOWeekYearNotFull = Number( + compareAsc(adjustedDate, earlierDate_) === -sign, + ); + const result = sign * (diff - isLastISOWeekYearNotFull); + + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Fallback for modularized imports: +export default differenceInISOWeekYears; diff --git a/node_modules/date-fns/differenceInMilliseconds.cjs b/node_modules/date-fns/differenceInMilliseconds.cjs new file mode 100644 index 000000000..665e04ef8 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.differenceInMilliseconds = differenceInMilliseconds; +var _index = require("./toDate.cjs"); + +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * + * @returns The number of milliseconds + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +function differenceInMilliseconds(laterDate, earlierDate) { + return +(0, _index.toDate)(laterDate) - +(0, _index.toDate)(earlierDate); +} diff --git a/node_modules/date-fns/differenceInMilliseconds.d.cts b/node_modules/date-fns/differenceInMilliseconds.d.cts new file mode 100644 index 000000000..3e1abc50f --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds.d.cts @@ -0,0 +1,27 @@ +import type { DateArg } from "./types.ts"; +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * + * @returns The number of milliseconds + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +export declare function differenceInMilliseconds( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): number; diff --git a/node_modules/date-fns/differenceInMilliseconds.d.ts b/node_modules/date-fns/differenceInMilliseconds.d.ts new file mode 100644 index 000000000..3e1abc50f --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds.d.ts @@ -0,0 +1,27 @@ +import type { DateArg } from "./types.ts"; +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * + * @returns The number of milliseconds + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +export declare function differenceInMilliseconds( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): number; diff --git a/node_modules/date-fns/differenceInMilliseconds.js b/node_modules/date-fns/differenceInMilliseconds.js new file mode 100644 index 000000000..377f00883 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * + * @returns The number of milliseconds + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +export function differenceInMilliseconds(laterDate, earlierDate) { + return +toDate(laterDate) - +toDate(earlierDate); +} + +// Fallback for modularized imports: +export default differenceInMilliseconds; diff --git a/node_modules/date-fns/differenceInMinutes.cjs b/node_modules/date-fns/differenceInMinutes.cjs new file mode 100644 index 000000000..488fc4f18 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes.cjs @@ -0,0 +1,46 @@ +"use strict"; +exports.differenceInMinutes = differenceInMinutes; +var _index = require("./_lib/getRoundingMethod.cjs"); +var _index2 = require("./constants.cjs"); +var _index3 = require("./differenceInMilliseconds.cjs"); + +/** + * The {@link differenceInMinutes} function options. + */ + +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of minutes + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +function differenceInMinutes(dateLeft, dateRight, options) { + const diff = + (0, _index3.differenceInMilliseconds)(dateLeft, dateRight) / + _index2.millisecondsInMinute; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); +} diff --git a/node_modules/date-fns/differenceInMinutes.d.cts b/node_modules/date-fns/differenceInMinutes.d.cts new file mode 100644 index 000000000..ebbf34c88 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes.d.cts @@ -0,0 +1,40 @@ +import type { DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInMinutes} function options. + */ +export interface DifferenceInMinutesOptions extends RoundingOptions {} +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of minutes + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +export declare function differenceInMinutes( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, + options?: DifferenceInMinutesOptions, +): number; diff --git a/node_modules/date-fns/differenceInMinutes.d.ts b/node_modules/date-fns/differenceInMinutes.d.ts new file mode 100644 index 000000000..ebbf34c88 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes.d.ts @@ -0,0 +1,40 @@ +import type { DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInMinutes} function options. + */ +export interface DifferenceInMinutesOptions extends RoundingOptions {} +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of minutes + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +export declare function differenceInMinutes( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, + options?: DifferenceInMinutesOptions, +): number; diff --git a/node_modules/date-fns/differenceInMinutes.js b/node_modules/date-fns/differenceInMinutes.js new file mode 100644 index 000000000..b97f06c79 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes.js @@ -0,0 +1,46 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { millisecondsInMinute } from "./constants.js"; +import { differenceInMilliseconds } from "./differenceInMilliseconds.js"; + +/** + * The {@link differenceInMinutes} function options. + */ + +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param dateLeft - The later date + * @param dateRight - The earlier date + * @param options - An object with options. + * + * @returns The number of minutes + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +export function differenceInMinutes(dateLeft, dateRight, options) { + const diff = + differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute; + return getRoundingMethod(options?.roundingMethod)(diff); +} + +// Fallback for modularized imports: +export default differenceInMinutes; diff --git a/node_modules/date-fns/differenceInMonths.cjs b/node_modules/date-fns/differenceInMonths.cjs new file mode 100644 index 000000000..bcf103044 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths.cjs @@ -0,0 +1,57 @@ +"use strict"; +exports.differenceInMonths = differenceInMonths; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./compareAsc.cjs"); +var _index3 = require("./differenceInCalendarMonths.cjs"); +var _index4 = require("./isLastDayOfMonth.cjs"); + +/** + * The {@link differenceInMonths} function options. + */ + +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full months + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +function differenceInMonths(laterDate, earlierDate, options) { + const [laterDate_, workingLaterDate, earlierDate_] = (0, + _index.normalizeDates)(options?.in, laterDate, laterDate, earlierDate); + + const sign = (0, _index2.compareAsc)(workingLaterDate, earlierDate_); + const difference = Math.abs( + (0, _index3.differenceInCalendarMonths)(workingLaterDate, earlierDate_), + ); + + if (difference < 1) return 0; + + if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27) + workingLaterDate.setDate(30); + + workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference); + + let isLastMonthNotFull = + (0, _index2.compareAsc)(workingLaterDate, earlierDate_) === -sign; + + if ( + (0, _index4.isLastDayOfMonth)(laterDate_) && + difference === 1 && + (0, _index2.compareAsc)(laterDate_, earlierDate_) === 1 + ) { + isLastMonthNotFull = false; + } + + const result = sign * (difference - +isLastMonthNotFull); + return result === 0 ? 0 : result; +} diff --git a/node_modules/date-fns/differenceInMonths.d.cts b/node_modules/date-fns/differenceInMonths.d.cts new file mode 100644 index 000000000..6396b8c2f --- /dev/null +++ b/node_modules/date-fns/differenceInMonths.d.cts @@ -0,0 +1,26 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInMonths} function options. + */ +export interface DifferenceInMonthsOptions extends ContextOptions {} +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full months + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +export declare function differenceInMonths( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInMonthsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInMonths.d.ts b/node_modules/date-fns/differenceInMonths.d.ts new file mode 100644 index 000000000..6396b8c2f --- /dev/null +++ b/node_modules/date-fns/differenceInMonths.d.ts @@ -0,0 +1,26 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInMonths} function options. + */ +export interface DifferenceInMonthsOptions extends ContextOptions {} +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full months + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +export declare function differenceInMonths( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInMonthsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInMonths.js b/node_modules/date-fns/differenceInMonths.js new file mode 100644 index 000000000..c65928b28 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths.js @@ -0,0 +1,61 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { compareAsc } from "./compareAsc.js"; +import { differenceInCalendarMonths } from "./differenceInCalendarMonths.js"; +import { isLastDayOfMonth } from "./isLastDayOfMonth.js"; + +/** + * The {@link differenceInMonths} function options. + */ + +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full months + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +export function differenceInMonths(laterDate, earlierDate, options) { + const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates( + options?.in, + laterDate, + laterDate, + earlierDate, + ); + + const sign = compareAsc(workingLaterDate, earlierDate_); + const difference = Math.abs( + differenceInCalendarMonths(workingLaterDate, earlierDate_), + ); + + if (difference < 1) return 0; + + if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27) + workingLaterDate.setDate(30); + + workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference); + + let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign; + + if ( + isLastDayOfMonth(laterDate_) && + difference === 1 && + compareAsc(laterDate_, earlierDate_) === 1 + ) { + isLastMonthNotFull = false; + } + + const result = sign * (difference - +isLastMonthNotFull); + return result === 0 ? 0 : result; +} + +// Fallback for modularized imports: +export default differenceInMonths; diff --git a/node_modules/date-fns/differenceInQuarters.cjs b/node_modules/date-fns/differenceInQuarters.cjs new file mode 100644 index 000000000..1e25db4d7 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.differenceInQuarters = differenceInQuarters; +var _index = require("./_lib/getRoundingMethod.cjs"); +var _index2 = require("./differenceInMonths.cjs"); + +/** + * The {@link differenceInQuarters} function options. + */ + +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of full quarters + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +function differenceInQuarters(laterDate, earlierDate, options) { + const diff = + (0, _index2.differenceInMonths)(laterDate, earlierDate, options) / 3; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); +} diff --git a/node_modules/date-fns/differenceInQuarters.d.cts b/node_modules/date-fns/differenceInQuarters.d.cts new file mode 100644 index 000000000..82b7f7d0b --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters.d.cts @@ -0,0 +1,31 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInQuarters} function options. + */ +export interface DifferenceInQuartersOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of full quarters + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +export declare function differenceInQuarters( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInQuartersOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInQuarters.d.ts b/node_modules/date-fns/differenceInQuarters.d.ts new file mode 100644 index 000000000..82b7f7d0b --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters.d.ts @@ -0,0 +1,31 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInQuarters} function options. + */ +export interface DifferenceInQuartersOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of full quarters + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +export declare function differenceInQuarters( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInQuartersOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInQuarters.js b/node_modules/date-fns/differenceInQuarters.js new file mode 100644 index 000000000..b91f385e6 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters.js @@ -0,0 +1,33 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { differenceInMonths } from "./differenceInMonths.js"; + +/** + * The {@link differenceInQuarters} function options. + */ + +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of full quarters + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +export function differenceInQuarters(laterDate, earlierDate, options) { + const diff = differenceInMonths(laterDate, earlierDate, options) / 3; + return getRoundingMethod(options?.roundingMethod)(diff); +} + +// Fallback for modularized imports: +export default differenceInQuarters; diff --git a/node_modules/date-fns/differenceInSeconds.cjs b/node_modules/date-fns/differenceInSeconds.cjs new file mode 100644 index 000000000..60c6e70ff --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.differenceInSeconds = differenceInSeconds; +var _index = require("./_lib/getRoundingMethod.cjs"); +var _index2 = require("./differenceInMilliseconds.cjs"); + +/** + * The {@link differenceInSeconds} function options. + */ + +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of seconds + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +function differenceInSeconds(laterDate, earlierDate, options) { + const diff = + (0, _index2.differenceInMilliseconds)(laterDate, earlierDate) / 1000; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); +} diff --git a/node_modules/date-fns/differenceInSeconds.d.cts b/node_modules/date-fns/differenceInSeconds.d.cts new file mode 100644 index 000000000..f1c8b4ce6 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds.d.cts @@ -0,0 +1,33 @@ +import type { DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInSeconds} function options. + */ +export interface DifferenceInSecondsOptions extends RoundingOptions {} +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of seconds + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +export declare function differenceInSeconds( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInSecondsOptions, +): number; diff --git a/node_modules/date-fns/differenceInSeconds.d.ts b/node_modules/date-fns/differenceInSeconds.d.ts new file mode 100644 index 000000000..f1c8b4ce6 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds.d.ts @@ -0,0 +1,33 @@ +import type { DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInSeconds} function options. + */ +export interface DifferenceInSecondsOptions extends RoundingOptions {} +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of seconds + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +export declare function differenceInSeconds( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInSecondsOptions, +): number; diff --git a/node_modules/date-fns/differenceInSeconds.js b/node_modules/date-fns/differenceInSeconds.js new file mode 100644 index 000000000..dd506d155 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds.js @@ -0,0 +1,37 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { differenceInMilliseconds } from "./differenceInMilliseconds.js"; + +/** + * The {@link differenceInSeconds} function options. + */ + +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options. + * + * @returns The number of seconds + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +export function differenceInSeconds(laterDate, earlierDate, options) { + const diff = differenceInMilliseconds(laterDate, earlierDate) / 1000; + return getRoundingMethod(options?.roundingMethod)(diff); +} + +// Fallback for modularized imports: +export default differenceInSeconds; diff --git a/node_modules/date-fns/differenceInWeeks.cjs b/node_modules/date-fns/differenceInWeeks.cjs new file mode 100644 index 000000000..ed39308ea --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks.cjs @@ -0,0 +1,54 @@ +"use strict"; +exports.differenceInWeeks = differenceInWeeks; +var _index = require("./_lib/getRoundingMethod.cjs"); +var _index2 = require("./differenceInDays.cjs"); + +/** + * The {@link differenceInWeeks} function options. + */ + +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full weeks + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * @example + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +function differenceInWeeks(laterDate, earlierDate, options) { + const diff = + (0, _index2.differenceInDays)(laterDate, earlierDate, options) / 7; + return (0, _index.getRoundingMethod)(options?.roundingMethod)(diff); +} diff --git a/node_modules/date-fns/differenceInWeeks.d.cts b/node_modules/date-fns/differenceInWeeks.d.cts new file mode 100644 index 000000000..625d75212 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks.d.cts @@ -0,0 +1,52 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInWeeks} function options. + */ +export interface DifferenceInWeeksOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full weeks + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * @example + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +export declare function differenceInWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInWeeks.d.ts b/node_modules/date-fns/differenceInWeeks.d.ts new file mode 100644 index 000000000..625d75212 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks.d.ts @@ -0,0 +1,52 @@ +import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts"; +/** + * The {@link differenceInWeeks} function options. + */ +export interface DifferenceInWeeksOptions + extends RoundingOptions, + ContextOptions {} +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full weeks + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * @example + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +export declare function differenceInWeeks( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInWeeksOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInWeeks.js b/node_modules/date-fns/differenceInWeeks.js new file mode 100644 index 000000000..cbab4ca24 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks.js @@ -0,0 +1,54 @@ +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { differenceInDays } from "./differenceInDays.js"; + +/** + * The {@link differenceInWeeks} function options. + */ + +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full weeks + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * @example + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +export function differenceInWeeks(laterDate, earlierDate, options) { + const diff = differenceInDays(laterDate, earlierDate, options) / 7; + return getRoundingMethod(options?.roundingMethod)(diff); +} + +// Fallback for modularized imports: +export default differenceInWeeks; diff --git a/node_modules/date-fns/differenceInYears.cjs b/node_modules/date-fns/differenceInYears.cjs new file mode 100644 index 000000000..256bac606 --- /dev/null +++ b/node_modules/date-fns/differenceInYears.cjs @@ -0,0 +1,64 @@ +"use strict"; +exports.differenceInYears = differenceInYears; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./compareAsc.cjs"); +var _index3 = require("./differenceInCalendarYears.cjs"); + +/** + * The {@link differenceInYears} function options. + */ + +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full years + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +function differenceInYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + // -1 if the left date is earlier than the right date + // 2023-12-31 - 2024-01-01 = -1 + const sign = (0, _index2.compareAsc)(laterDate_, earlierDate_); + + // First calculate the difference in calendar years + // 2024-01-01 - 2023-12-31 = 1 year + const diff = Math.abs( + (0, _index3.differenceInCalendarYears)(laterDate_, earlierDate_), + ); + + // Now we need to calculate if the difference is full. To do that we set + // both dates to the same year and check if the both date's month and day + // form a full year. + laterDate_.setFullYear(1584); + earlierDate_.setFullYear(1584); + + // For it to be true, when the later date is indeed later than the earlier date + // (2026-02-01 - 2023-12-10 = 3 years), the difference is full if + // the normalized later date is also later than the normalized earlier date. + // In our example, 1584-02-01 is earlier than 1584-12-10, so the difference + // is partial, hence we need to subtract 1 from the difference 3 - 1 = 2. + const partial = (0, _index2.compareAsc)(laterDate_, earlierDate_) === -sign; + + const result = sign * (diff - +partial); + + // Prevent negative zero + return result === 0 ? 0 : result; +} diff --git a/node_modules/date-fns/differenceInYears.d.cts b/node_modules/date-fns/differenceInYears.d.cts new file mode 100644 index 000000000..9bd6cfe21 --- /dev/null +++ b/node_modules/date-fns/differenceInYears.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInYears} function options. + */ +export interface DifferenceInYearsOptions extends ContextOptions {} +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full years + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +export declare function differenceInYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInYears.d.ts b/node_modules/date-fns/differenceInYears.d.ts new file mode 100644 index 000000000..9bd6cfe21 --- /dev/null +++ b/node_modules/date-fns/differenceInYears.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link differenceInYears} function options. + */ +export interface DifferenceInYearsOptions extends ContextOptions {} +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full years + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +export declare function differenceInYears( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: DifferenceInYearsOptions | undefined, +): number; diff --git a/node_modules/date-fns/differenceInYears.js b/node_modules/date-fns/differenceInYears.js new file mode 100644 index 000000000..d367610ee --- /dev/null +++ b/node_modules/date-fns/differenceInYears.js @@ -0,0 +1,63 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { compareAsc } from "./compareAsc.js"; +import { differenceInCalendarYears } from "./differenceInCalendarYears.js"; + +/** + * The {@link differenceInYears} function options. + */ + +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param laterDate - The later date + * @param earlierDate - The earlier date + * @param options - An object with options + * + * @returns The number of full years + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +export function differenceInYears(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + // -1 if the left date is earlier than the right date + // 2023-12-31 - 2024-01-01 = -1 + const sign = compareAsc(laterDate_, earlierDate_); + + // First calculate the difference in calendar years + // 2024-01-01 - 2023-12-31 = 1 year + const diff = Math.abs(differenceInCalendarYears(laterDate_, earlierDate_)); + + // Now we need to calculate if the difference is full. To do that we set + // both dates to the same year and check if the both date's month and day + // form a full year. + laterDate_.setFullYear(1584); + earlierDate_.setFullYear(1584); + + // For it to be true, when the later date is indeed later than the earlier date + // (2026-02-01 - 2023-12-10 = 3 years), the difference is full if + // the normalized later date is also later than the normalized earlier date. + // In our example, 1584-02-01 is earlier than 1584-12-10, so the difference + // is partial, hence we need to subtract 1 from the difference 3 - 1 = 2. + const partial = compareAsc(laterDate_, earlierDate_) === -sign; + + const result = sign * (diff - +partial); + + // Prevent negative zero + return result === 0 ? 0 : result; +} + +// Fallback for modularized imports: +export default differenceInYears; diff --git a/node_modules/date-fns/docs/cdn.md b/node_modules/date-fns/docs/cdn.md new file mode 100644 index 000000000..cb33f5038 --- /dev/null +++ b/node_modules/date-fns/docs/cdn.md @@ -0,0 +1,120 @@ +# CDN + +The CDN versions of date-fns are available as the [`@date-fns/cdn`](https://www.jsdelivr.com/package/npm/@date-fns/cdn) package on jsDelivr and other CDNs. They expose the date-fns functionality via the `window.dateFns` global variable. + +> ⚠️ The legacy CDN files in the `date-fns` package are deprecated and will be removed in a future version. They remain available for compatibility, but they log a migration notice in the console. Please update your URLs from `date-fns` to `@date-fns/cdn`. + +Unlike the npm package, the CDN is transpiled to be compatible with IE11, so it supports a wide variety of legacy browsers and environments. + +```html + + + + +``` + +Legacy URLs still work for now but should be replaced: + +```diff +- https://cdn.jsdelivr.net/npm/date-fns@VERSION/cdn.min.js ++ https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/cdn.min.js +``` + +The CDN versions are available for the main module, all & individual locales, and the FP submodule. + +They come in two flavors: `cdn.js` and `cdn.min.js`. The latter is minified and should be used in production. The former is useful for debugging and development. + +Keep in mind that using the CDN versions in production is suboptimal because they bundle all the date-fns functionality you will never use. It's much better to use the npm package and a tree-shaking-enabled bundler like webpack or Rollup. However, the CDN versions are helpful for quick prototyping, small projects, educational purposes, or working in a legacy environment. + +## Main module + +The main module with all functions bundled: + +``` +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/cdn.js +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/cdn.min.js +``` + +You can access it via the `dateFns` global variable: + +```html + + +``` + +## The FP submodule + +The FP submodule with all functions bundled: + +``` +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/fp/cdn.js +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/fp/cdn.min.js +``` + +You can access it via the `dateFns.fp` global variable: + +```html + + +``` + +## Locales + +All locales bundled: + +``` +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/locale/cdn.js +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/locale/cdn.min.js +``` + +You can access them via the `dateFns.locale` global variable: + +```html + + + +``` + +The locales are also available as individual files. + +``` +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/locale/LOCALE/cdn.js +https://cdn.jsdelivr.net/npm/@date-fns/cdn@VERSION/locale/LOCALE/cdn.min.js +``` + +You can access them via the `dateFns.locale.LOCALE` global variable: + +```html + + + +``` diff --git a/node_modules/date-fns/docs/config.d.ts b/node_modules/date-fns/docs/config.d.ts new file mode 100644 index 000000000..c12b03a4c --- /dev/null +++ b/node_modules/date-fns/docs/config.d.ts @@ -0,0 +1,2 @@ +import type { DateFnsDocs } from "@date-fns/docs"; +export declare const config: DateFnsDocs.Config; diff --git a/node_modules/date-fns/docs/config.js b/node_modules/date-fns/docs/config.js new file mode 100644 index 000000000..5044edb18 --- /dev/null +++ b/node_modules/date-fns/docs/config.js @@ -0,0 +1,135 @@ +/** @type {import('@date-fns/docs').DateFnsDocs.Config} */ +export const config = { + package: "..", + + json: "../tmp/docs.json", + + categories: [ + "General", + "Misc", + "Common Helpers", + "Conversion Helpers", + "Interval Helpers", + "Timestamp Helpers", + "Millisecond Helpers", + "Second Helpers", + "Minute Helpers", + "Hour Helpers", + "Day Helpers", + "Weekday Helpers", + "Week Helpers", + "ISO Week Helpers", + "Month Helpers", + "Quarter Helpers", + "Year Helpers", + "ISO Week-Numbering Year Helpers", + "Decade Helpers", + "Generic Helpers", + ], + + files: [ + { + type: "markdown", + slug: "Getting-Started", + category: "General", + title: "Getting Started", + summary: "Introduction & installation instructions", + path: "gettingStarted.md", + }, + { + type: "markdown", + slug: "Change-Log", + category: "General", + title: "Change Log", + summary: "Changes for each version of the library", + path: "../CHANGELOG.md", + }, + { + type: "markdown", + slug: "Contributing", + category: "General", + title: "Contributing", + summary: "Contribution manual", + path: "../../../CONTRIBUTING.md", + }, + { + type: "markdown", + slug: "Security", + category: "General", + title: "Security policy", + summary: "Security policy", + path: "../../../SECURITY.md", + }, + { + type: "markdown", + slug: "I18n", + category: "General", + title: "I18n", + summary: "Internationalization", + path: "i18n.md", + }, + { + type: "markdown", + slug: "I18n-Contribution-Guide", + category: "General", + title: "I18n Contribution Guide", + summary: "Locales manual", + path: "i18nContributionGuide.md", + }, + { + type: "markdown", + slug: "Time-Zones", + category: "General", + title: "Time Zones", + summary: "Time zone support", + path: "timeZones.md", + }, + { + type: "markdown", + slug: "CDN", + category: "General", + title: "CDN", + summary: "CDN version of date-fns", + path: "cdn.md", + }, + { + type: "markdown", + slug: "webpack", + category: "General", + title: "webpack", + summary: "Using date-fns with webpack", + path: "webpack.md", + }, + { + type: "markdown", + slug: "FP-Guide", + category: "General", + title: "FP Guide", + summary: "Curried functions", + path: "fp.md", + }, + { + type: "markdown", + slug: "Unicode-Tokens", + category: "General", + title: "Unicode Tokens", + summary: "Usage of the Unicode tokens in parse and format", + path: "unicodeTokens.md", + }, + { + type: "markdown", + slug: "License", + category: "General", + title: "License", + summary: "MIT © Sasha Koss", + path: "../LICENSE.md", + }, + ], + + kindsMap: { + "src/constants/index.ts": { + kind: "constants", + category: "Misc", + }, + }, +}; diff --git a/node_modules/date-fns/docs/fp.md b/node_modules/date-fns/docs/fp.md new file mode 100644 index 000000000..0482fd430 --- /dev/null +++ b/node_modules/date-fns/docs/fp.md @@ -0,0 +1,72 @@ +# FP Guide + +**date-fns** v2.x provides [functional programming](https://en.wikipedia.org/wiki/Functional_programming) (FP) +friendly functions, like those in [lodash](https://github.com/lodash/lodash/wiki/FP-Guide), +that support [currying](https://en.wikipedia.org/wiki/Currying). + +## Table of Contents + +- [Usage](#usage) + +- [Using Function Composition](#using-function-composition) + +## Usage + +FP functions are provided via `'date-fns/fp'` submodule. + +Functions with options (`format`, `parse`, etc.) have two FP counterparts: +one that has the options object as its first argument and one that hasn't. +The name of the former has `WithOptions` added to the end of its name. + +In **date-fns'** FP functions, the order of arguments is reversed. + +```javascript +import { addYears, formatWithOptions } from "date-fns/fp"; +import { eo } from "date-fns/locale"; +import toUpper from "lodash/fp/toUpper"; // 'date-fns/fp' is compatible with 'lodash/fp'! + +// If FP function has not received enough arguments, it returns another function +const addFiveYears = addYears(5); + +// Several arguments can be curried at once +const dateToString = formatWithOptions({ locale: eo }, "d MMMM yyyy"); + +const dates = [ + new Date(2017, 0 /* Jan */, 1), + new Date(2017, 1 /* Feb */, 11), + new Date(2017, 6 /* Jul */, 2), +]; + +const formattedDates = dates.map(addFiveYears).map(dateToString).map(toUpper); +//=> ['1 JANUARO 2022', '11 FEBRUARO 2022', '2 JULIO 2022'] +``` + +## Using Function Composition + +The main advantage of FP functions is support of functional-style +[function composing](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba). + +In the example above, you can compose `addFiveYears`, `dateToString` and `toUpper` into a single function: + +```javascript +const formattedDates = dates.map((date) => + toUpper(dateToString(addFiveYears(date))), +); +``` + +Or you can use `compose` function provided by [lodash](https://lodash.com) to do the same in more idiomatic way: + +```javascript +import { compose } from "lodash/fp/compose"; + +const formattedDates = dates.map(compose(toUpper, dateToString, addFiveYears)); +``` + +Or if you prefer natural direction of composing (as opposed to the computationally correct order), +you can use lodash' `flow` instead: + +```javascript +import flow from "lodash/fp/flow"; + +const formattedDates = dates.map(flow(addFiveYears, dateToString, toUpper)); +``` diff --git a/node_modules/date-fns/docs/gettingStarted.md b/node_modules/date-fns/docs/gettingStarted.md new file mode 100644 index 000000000..ddae14892 --- /dev/null +++ b/node_modules/date-fns/docs/gettingStarted.md @@ -0,0 +1,76 @@ +# Getting Started + +## Table of Contents + +- [Introduction](#introduction) + +- [Submodules](#submodules) + +- [Installation](#installation) + +## Introduction + +**date-fns** provides the most comprehensive, yet simple and consistent toolset +for manipulating **JavaScript dates** in **a browser** & **Node.js**. + +**date-fns** is like [lodash](https://lodash.com) for dates. It has +[**200+ functions** for all occasions](https://date-fns.org/docs/). + +```js +import { format, compareAsc } from "date-fns"; + +format(new Date(2014, 1, 11), "MM/dd/yyyy"); +//=> '02/11/2014' + +const dates = [ + new Date(1995, 6, 2), + new Date(1987, 1, 11), + new Date(1989, 6, 10), +]; +dates.sort(compareAsc); +//=> [ +// Wed Feb 11 1987 00:00:00, +// Mon Jul 10 1989 00:00:00, +// Sun Jul 02 1995 00:00:00 +// ] +``` + +## Submodules + +**date-fns** includes some optional features as submodules in the npm package. +Here is the list of them, in order of nesting: + +- FP — functional programming-friendly variations of the functions. See [FP Guide](https://date-fns.org/docs/FP-Guide); + +The later submodules are also included inside the former if you want to use multiple features from the list. + +To use submodule features, [install the npm package](#npm) and then import a function from a submodule: + +```js +// The main submodule: +import { addDays } from "date-fns"; + +// FP variation: +import { addDays, format } from "date-fns/fp"; +``` + +## Installation + +The library is available as an [npm package](https://www.npmjs.com/package/date-fns). + +To install the package, run: + +```bash +npm install date-fns --save +# or +yarn add date-fns +``` + +Start using: + +```js +import { formatDistance, subDays } from "date-fns"; + +formatDistance(subDays(new Date(), 3), new Date(), { addSuffix: true }); +//=> "3 days ago" +``` diff --git a/node_modules/date-fns/docs/i18n.md b/node_modules/date-fns/docs/i18n.md new file mode 100644 index 000000000..96d81576e --- /dev/null +++ b/node_modules/date-fns/docs/i18n.md @@ -0,0 +1,91 @@ +# Internationalization + +## Table of Contents + +- [Usage](#usage) + +- [Adding New Language](#adding-new-language) + +## Usage + +There are just a few functions that support I18n: + +- [`format`](https://date-fns.org/docs/format) +- [`formatDistance`](https://date-fns.org/docs/formatDistance) +- [`formatDistanceStrict`](https://date-fns.org/docs/formatDistanceStrict) +- [`formatRelative`](https://date-fns.org/docs/formatRelative) + +To use a locale, you need to require it and then pass +as an option to a function: + +```js +import { formatDistance } from "date-fns"; +// Require Esperanto locale +import { eo } from "date-fns/locale"; + +const result = formatDistance( + new Date(2016, 7, 1), + new Date(2015, 0, 1), + { locale: eo }, // Pass the locale as an option +); +//=> 'pli ol 1 jaro' +``` + +It might seem complicated to require and pass locales as options, +but unlike Moment.js which bloats your build with all the locales +by default date-fns forces developer to manually require locales when needed. +To make API simple, we encourage you to write tiny wrappers and use those +instead of original functions: + +```js +// app/_lib/format.js + +import { format } from "date-fns"; +import { enGB, eo, ru } from "date-fns/locale"; + +const locales = { enGB, eo, ru }; + +// by providing a default string of 'PP' or any of its variants for `formatStr` +// it will format dates in whichever way is appropriate to the locale +export default function (date, formatStr = "PP") { + return format(date, formatStr, { + locale: locales[window.__localeId__], // or global.__localeId__ + }); +} + +// Later: + +import format from "app/_lib/format"; + +window.__localeId__ = "enGB"; +format(friday13, "EEEE d"); +//=> 'Friday 13' + +window.__localeId__ = "eo"; +format(friday13, "EEEE d"); +//=> 'vendredo 13' + +// If the format string is omitted, it will take the default for the locale. +window.__localeId__ = "enGB"; +format(friday13); +//=> Jul 13, 2019 + +window.__localeId__ = "eo"; +format(friday13); +//=> 2019-jul-13 +``` + +## Adding New Language + +At the moment there is no definitive guide, so if you feel brave enough, +use this quick guide: + +- First of all, [create an issue](https://github.com/date-fns/date-fns/issues/new?title=XXX%20language%20support) + so you won't overlap with others. +- A detailed explanation of how to [add a new locale](https://github.com/date-fns/date-fns/blob/master/docs/i18nContributionGuide.md#adding-a-new-locale). +- Use [English locale](https://github.com/date-fns/date-fns/tree/master/src/locale/en-US) + as the basis and then incrementally adjust the tests and the code. +- Directions on [adding a locale with the same language as another locale](https://github.com/date-fns/date-fns/blob/master/docs/i18nContributionGuide.md#creating-a-locale-with-the-same-language-as-another-locale). +- If you have questions or need guidance, leave a comment in the issue. + +Thank you for your support! diff --git a/node_modules/date-fns/docs/i18nContributionGuide.md b/node_modules/date-fns/docs/i18nContributionGuide.md new file mode 100644 index 000000000..8d6764408 --- /dev/null +++ b/node_modules/date-fns/docs/i18nContributionGuide.md @@ -0,0 +1,1059 @@ +# I18n Contribution Guide + +## Table of Contents + +- [Adding a new locale](#adding-a-new-locale) + - [Choosing a directory name for a locale](#choosing-a-directory-name-for-a-locale) + + - [index.js](#index.js) + + - [localize](#localize) + - [localize.ordinalNumber](#localize.ordinalnumber) + + - [localize.era and using buildLocalizeFn function](#localize.era-and-using-buildlocalizefn-function) + + - [Formatting localizers](#formatting-localizers) + + - [localize.quarter](#localize.quarter) + + - [localize.month](#localize.month) + + - [localize.day](#localize.day) + + - [localize.dayPeriod](#localize.dayperiod) + + - [formatLong](#formatlong) + - [formatLong.dateFormats](#formatlong.dateformats) + + - [formatLong.timeFormats](#formatlong.timeformats) + + - [formatLong.dateTimeFormats](#formatlong.datetimeformats) + + - [formatRelative](#formatrelative) + + - [match](#match) + + - [formatDistance](#formatdistance) + + - [Tests](#tests) + +- [Creating a locale with the same language as another locale](#creating-a-locale-with-the-same-language-as-another-locale) + +## Adding a new locale + +To add a new locale: + +- [Choose a directory name for it](#choosing-a-directory-name-for-a-locale). + +- Copy the content of an existing locale (e.g. `en-US`) into the newly created directory. + +- Replace the values in the content with yours file-by-file. + Use [CLDR data](https://www.unicode.org/cldr/charts/32/summary/root.html) + as a point of reference which values to choose. + +All locales contain a number of properties: + +- [`formatDistance`](#formatdistance) — distance localizer function used by `formatDistance` and `formatDistanceStrict`. +- [`formatLong`](#formatlong) — contains long date localizer functions used by `format` and `formatRelative`. +- [`formatRelative`](#formatrelative) — relative date localizer function used by `formatRelative`. +- [`localize`](#localize) — contains functions, which localize the various date values. Required by `format` and `formatRelative`. +- [`match`](#match) — contains functions to parse date values. Required by `parse`. +- [`options`](#indexjs) — contains the index of the first day of the week for functions such as `startOfWeek`, + and the value which determines the first week of the year + for functions like `setWeek`. + +### Choosing a directory name for a locale + +Use the four letter code for the directory name (e.g. `en-GB`), + +Use the two/three letter code: + +- if the language code and the country code are the same (e.g. `pt` instead of `pt-PT`). + +- if the language is used in only one country (e.g. `fil` instead of `fil-PH`). + +- if all countries who use the language + also use the same regional standards: the first day of the week, + the week numbering (see: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system), + calendar date format (see: https://en.wikipedia.org/wiki/Calendar_date) + and date representation (see: https://en.wikipedia.org/wiki/Date_and_time_representation_by_country + and: https://en.wikipedia.org/wiki/Date_format_by_country) + (e.g. `ca` instead of `ca-ES` and `ca-AD`). + +### index.js + +Locale's `index.js` is where all the properties of the locale are combined in a single file, +documented in JSDoc format. + +```javascript +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * + * // Name of the locale. + * // Inside the parentheses - name of the country - if the locale uses the four letter code, e.g. en-US, fr-CA or pt-BR. + * @summary English locale (United States). + * + * // Name of the language (used by https://date-fns.org/ website) + * @language English + * + * // ISO 639-2 code. See the list here: + * // https://www.loc.gov/standards/iso639-2/php/code_list.php + * // Used by https://date-fns.org/ to detect the list of the countries that uses the language. + * @iso-639-2 eng + * + * // Authors of the locale (including anyone who corrected or fixed the locale) + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +var locale = { + code: "en", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + // Index of the first day of the week. + // Sunday is 0, Monday is 1, Saturday is 6. + weekStartsOn: 0, + + // Nth of January which is always in the first week of the year. See: + // https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + // http://www.pjh2.de/datetime/weeknumber/wnd.php?l=en + firstWeekContainsDate: 1, + }, +}; + +export default locale; +``` + +### localize + +Put this object in `_lib/localize/index.js` inside your locale directory. +Contains a number of functions for used by `format`: + +```js +var localize = { + ordinalNumber, + era, + quarter, + month, + day, + dayPeriod, +}; + +export default localize; +``` + +#### localize.ordinalNumber + +Function that takes a numeric argument and returns a string with ordinal number: + +```js +// In `en-US` locale: +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber); + + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "st"; + case 2: + return number + "nd"; + case 3: + return number + "rd"; + } + } + return number + "th"; +} + +var localize = { + ordinalNumber: ordinalNumber, + // ... +}; +``` + +If the form of the ordinal number depends on the grammatical case (or other grammatical structures), +use `options.unit` argument which could be one of the values 'year', 'quarter', 'month', 'week', +'date', 'dayOfYear', 'day', 'hour', 'minute' or 'second': + +```js +// In `ru` locale: +function ordinalNumber(dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {}; + var unit = String(options.unit); + var suffix; + + if (unit === "date") { + suffix = "-е"; + } else if (unit === "week" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = "-й"; + } + + return dirtyNumber + suffix; +} +``` + +#### localize.era and using buildLocalizeFn function + +Localizes a numeric era. Takes either 0 or 1 as the first argument. +As with many of the `localize` functions, they can be generated by built-in +`buildLocalizeFn` function. + +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Eras'](https://www.unicode.org/cldr/charts/32/summary/en.html#1771) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], +}; + +var localize = { + // ... + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + // ... +}; + +export default localize; +``` + +General usage of the function: + +```js +var result = locale.localize.era(1, { width: "abbreviated" }); +//=> 'AD' +``` + +If `width` is not provided or the `values` object does not contain values for the provided width, +`defaultWidth` will be used. `defaultWidth` should indicate the longest form of the localized value. +The same is true for all other `localize` functions. +`width` for `localize.era` function could be either 'narrow', 'abbreviated' or 'wide'. + +```js +var result = locale.localize.era(1, { width: "foobar" }); +//=> 'Anno Domini' +``` + +#### Formatting localizers + +For some languages, there is a difference between "stand-alone" localizers and "formatting" localizers. +"Stand-alone" means that the resulting value should make grammatical sense without context. +"Formatting" means that the resulting value should be decided using the grammar rules of the language +as if the value was a part of a date. +For example, for languages with grammatical cases, the stand-alone month could be in the nominative case ("January"), +and the formatting month could decline as a part of the phrase "1st of January". +In this case, use parameters `formattingValues` and `defaultFormattingWidth` of `buildLocalizeFn` function. + +Any localizer could be stand-alone and formatting. +Check the CLDR chart for the unit to see if stand-alone and formatting values are different for a certain unit. +If there's no difference (usually it happens in languages without grammatical cases), +parameters `formattingValues` and `defaultFormattingWidth` are not needed. + +In this example, in Russian language a stand-alone month is in the nominative case ("январь"), +and formatting month is in the genitive case ("января" as in "1-е января"). Notice the different endings: + +```js +// In `ru` locale: +var monthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "март", + "апр.", + "май", + "июнь", + "июль", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + wide: [ + "январь", + "февраль", + "март", + "апрель", + "май", + "июнь", + "июль", + "август", + "сентябрь", + "октябрь", + "ноябрь", + "декабрь", + ], +}; +var formattingMonthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "мар.", + "апр.", + "мая", + "июн.", + "июл.", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + wide: [ + "января", + "февраля", + "марта", + "апреля", + "мая", + "июня", + "июля", + "августа", + "сентября", + "октября", + "ноября", + "декабря", + ], +}; + +var localize = { + // ... + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + // ... +}; + +export default localize; +``` + +#### localize.quarter + +Localizes a quarter. Takes 1, 2, 3 or 4 as the first argument. +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Quarters'](https://www.unicode.org/cldr/charts/32/summary/en.html#1781) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +var quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], +}; + +var localize = { + // ... + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function (quarter) { + return Number(quarter) - 1; + }, + }), + // ... +}; + +export default localize; +``` + +Note the usage of `argumentCallback` here. It converts the value passed into `localize.quarter` function +(one of 1, 2, 3 or 4) into the index of the values array inside `quarterValues` (one of 0, 1, 2 or 3). + +#### localize.month + +Localizes a month. Takes numbers between 0 (for January) and 11 (for December). +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Months'](https://www.unicode.org/cldr/charts/32/summary/en.html#1793) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +var monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], +}; + +var localize = { + // ... + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + // ... +}; + +export default localize; +``` + +**NOTE**: in English, the names of days of the week and months are capitalized. +Check if the same is true for the language you're working on. +Generally, formatted dates should look like they are in the middle of a sentence, +e.g. in Spanish language the weekdays and months should be in the lowercase: + +```js +// In `es` locale: +var monthValues = { + narrow: ["E", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "ene.", + "feb.", + "mar.", + "abr.", + "may.", + "jun.", + "jul.", + "ago.", + "sep.", + "oct.", + "nov.", + "dic.", + ], + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre", + ], +}; +``` + +`monthValues.narrow` are usually capitalized in every language. Check the CLDR chart for your language. + +#### localize.day + +Localizes a week day. Takes numbers between 0 (for Sunday) and 6 (for Saturday). +`width` could be either 'narrow', 'short', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Days'](https://www.unicode.org/cldr/charts/32/summary/en.html#1829) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +var dayValues = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], +}; + +var localize = { + // ... + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + // ... +}; + +export default localize; +``` + +**NOTE**: the rules of capitalization from `localize.month` are also true for `localize.day`. + +#### localize.dayPeriod + +Localizes a certain day period. +Could take one of these strings as the argument: 'am', 'pm', 'midnight', 'noon', 'morning', 'afternoon', 'evening', 'night'. +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Day periods'](https://www.unicode.org/cldr/charts/32/summary/en.html#1857) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; + +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, +}; + +var localize = { + // ... + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; + +export default localize; +``` + +### formatLong + +Put this object in `_lib/formatLong/index.js` inside your locale directory. +Locale date formats written in `format` token string format. +See the list of tokens: https://date-fns.org/docs/format +Use https://en.wikipedia.org/wiki/Date_format_by_country and CLDR chart as the reference. + +#### formatLong.dateFormats + +Use ['Date & Time'/'Gregorian'/'Formats - Standard - Date Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1901) values +from the CLDR chart as a reference. + +```js +// In `en-US` locale +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; + +var dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + // ... +}; + +export default formatLong; +``` + +`dateFormats.long` usually contains the longest form of writing the year, the month, and the day of the month. +Use ordinal day of the month ('do' token) where applicable (date-fns, unlike CLDR supports ordinal numbers). + +`dateFormats.full` contains the same but with the day of the week. + +`dateFormats.medium` contains the same values as `dateFormats.long`, but with short form of month and non-ordinal day. + +`dateFormats.short` usually contains a strictly numerical form of the date. +Pay attention to the order of units (big-, little- or middle-endian) + +#### formatLong.timeFormats + +Use ['Date & Time'/'Gregorian'/'Formats - Standard - Time Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1906) values +from the CLDR chart as a reference. + +Use some variation of 'h:mm aa' for 12-hour clock locales or 'H:mm' for 24-hour clock locales. Use the local time separator. + +```js +// In `en-US` locale +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; + +var timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +var formatLong = { + // ... + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + // ... +}; + +export default formatLong; +``` + +#### formatLong.dateTimeFormats + +Use +['Date & Time'/'Gregorian'/'Formats - Standard - Date & Time Combination Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1910) +values from the CLDR chart. + +```js +// In `en-US` locale +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; + +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +var formatLong = { + // ... + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; + +export default formatLong; +``` + +'{{date}}' and '{{time}}' from the strings will be replaced with the date and time respectively. + +### formatRelative + +Put this function in `_lib/formatRelative/index.js` inside your locale directory. +Relative date formats written in `format` token string format. +See the list of tokens: https://date-fns.org/docs/format. +Has to process `lastWeek`, `yesterday`, `today`, `tomorrow`, `nextWeek` and `other` tokens. + +```javascript +// In `en-US` locale +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +export default function formatRelative(token, date, baseDate, options) { + return formatRelativeLocale[token]; +} +``` + +You can use `date` and `baseDate` supplied to the function for the difficult situations +(e.g. grammatical genders and cases of the days of the week). +Example is below. Note the different grammatical case for weekdays (accusative instead of nominative) +and declension of word "прошлый" which depends on the grammatical gender of the weekday: + +```javascript +// In `ru` locale +var accusativeWeekdays = [ + "воскресенье", + "понедельник", + "вторник", + "среду", + "четверг", + "пятницу", + "субботу", +]; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + // ... +} + +function nextWeek(day) { + // ... +} + +var formatRelativeLocale = { + lastWeek: function (date, baseDate, options) { + var day = date.getDay(); + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function (date, baseDate, options) { + var day = date.getDay(); + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export default function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +} +``` + +### match + +Put this object in `_lib/match/index.js` inside your locale directory. +Contains the functions used by `parse` to parse a localized value: + +```js +// In `en-US` locale: +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; + +var matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, +}; +var parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function (index) { + return index + 1; + }, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; + +export default match; +``` + +These functions mirror those in `localize`. + +For `matchPatterns` the patterns should match the whole meaningful word for the parsed value +(which will be cut from the string in the process of parsing). +`parsePatterns` contains patterns to detect one of the values from the result of `matchPatterns` +Note that the patterns for `parsePatterns` don't necessary contain the whole word: + +```javascript +// In `en-US` locale: +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; +``` + +but only the bare minimum to parse the value. + +Also note that all patterns have "case-insensitive" flags +to match as much arbitrary user input as possible. For the same reason, try to match +any variation of diacritical marks: + +```javascript +// In `eo` locale: +var matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i, +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i], +}; +``` + +Here, for the word "dimanĉo" the functions will match also "dimancxo", "dimancho" +and even grammatically incorrect "dimanco". + +Try to match any possible way of writing the word. Don't forget the grammatical cases: + +```javascript +// In `ru` locale: +var matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: + /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i, +}; +``` + +and variations of short weekdays and months: + +```javascript +// In `ru` locale: +var matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i, +}; +``` + +(here, the `abbreviated` pattern will match both `вск` and `вос` as the short of `воскресенье` {Sunday}) + +In `match.ordinalNumber` match ordinal numbers as well as non-ordinal numbers: + +```javascript +// In `en-US` locale: +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +``` + +Don't forget the grammatical genders: + +```javascript +// In `ru` locale: +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; +``` + +### formatDistance + +`formatDistance` property of locale is a function which takes three arguments: +token passed by date-fns' `formatDistance` function (e.g. 'lessThanXMinutes'), +a number of units to be displayed by the function +(e.g. `locale.formatDistance('lessThanXMinutes', 5)` would display localized 'less than 5 minutes') +and object with options. + +Your best guess is to copy `formatDistance` property from another locale and change the values. + +### Tests + +To test locales we use snapshots. See [`en-US` snapshot](https://github.com/date-fns/date-fns/blob/master/src/locale/en-US/snapshot.md) for an example. + +To generate snapshots, run `pnpm run locale-snapshots`. The snapshot for the locale +you're working on will appear in the root locale directory (e.g. `src/locales/ru/snapshot.md`). + +Once you are done with the locale, generate the snapshot and review the output values. + +## Creating a locale with the same language as another locale + +Import the locale properties already implemented for the language, +but replace unique properties. + +```javascript +// Same as en-US +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; + +// Unique for en-GB +import formatLong from "./_lib/formatLong/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author John Doe [@example]{@link https://github.com/example} + */ +var locale = { + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + + // Unique for en-GB + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4, + }, +}; + +export default locale; +``` diff --git a/node_modules/date-fns/docs/logo.svg b/node_modules/date-fns/docs/logo.svg new file mode 100644 index 000000000..212e227be --- /dev/null +++ b/node_modules/date-fns/docs/logo.svg @@ -0,0 +1,26 @@ + + + + Slice 1 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/node_modules/date-fns/docs/logotype.svg b/node_modules/date-fns/docs/logotype.svg new file mode 100644 index 000000000..8b2a3a464 --- /dev/null +++ b/node_modules/date-fns/docs/logotype.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/date-fns/docs/release.md b/node_modules/date-fns/docs/release.md new file mode 100644 index 000000000..63ef35c27 --- /dev/null +++ b/node_modules/date-fns/docs/release.md @@ -0,0 +1,19 @@ +# Releasing date-fns + +1. First, make sure that the library is built by running `./scripts/build/build.sh` and committing and pushing any change you would have. + +2. Then add the changelog entry generated by `node scripts/release/buildChangelog.ts` to (CHANGELOG.md)[../CHANGELOG.md]. Make sure that the output is valid Markdown and fix if there're any errors. Commit and push the file. + +3. Using the version that the changelog script generated, run the command: + + ```bash + env VERSION="vX.XX.X" APP_ENV="production" GOOGLE_APPLICATION_CREDENTIALS="secrets/production/key.json" ./scripts/release/release.sh + ``` + + The script will change `package.json`. **Do not commit the change, and reset it instead**. + +4. Now when the package is published, go to [GitHub Releases](https://github.com/date-fns/date-fns/releases) and draft a new version using the changelog entry you generated earlier. + +5. Finally, write an announce tweet using the created GitHub release as the tweet link. + +You're done, great job! diff --git a/node_modules/date-fns/docs/timeZones.md b/node_modules/date-fns/docs/timeZones.md new file mode 100644 index 000000000..cb8a0fc24 --- /dev/null +++ b/node_modules/date-fns/docs/timeZones.md @@ -0,0 +1,127 @@ +# Time zones + +Starting from v4, date-fns has first-class support for time zones. It is provided via [`@date-fns/tz`] and [`@date-fns/utc`] packages. Visit the links to learn more about corresponding packages. + +Just like with everything else in date-fns, the time zones support has a minimal bundle size footprint with `UTCDateMini` and `TZDateMini` being `239 B` and `761 B`, respectively. + +If you're looking for time zone support prior to date-fns v4, see the third-party [`date-fns-tz`](https://github.com/marnusw/date-fns-tz) package. + +[See the announcement blog post](https://blog.date-fns.org/v40-with-time-zone-support/) for details about the motivation and implementation and [the change log entry for the list of changes in v4.0](https://date-fns.org/v4.0.0/docs/Change-Log#v4.0.0-2024-09-16). + +## Working with time zones + +There are two ways to start working with time zones: + +- [Using the `Date` extensions `TZDate` and `UTCDate`](#using-tzdate-utcdate) +- [Using the date-fns functions' `in` option](#using-in-option) + +### Using `TZDate` & `UTCDate` + +One way is to use [`TZDate`](https://github.com/date-fns/tz) or [`UTCDate`](https://github.com/date-fns/tz) `Date` extensions,with regular date-fns functions: + +```ts +import { TZDate } from "@date-fns/tz"; +import { addHours } from "date-fns"; + +// Given that the system time zone is America/Los_Angeles +// where DST happens on Sunday, 13 March 2022, 02:00:00 + +// Using the system time zone will produce 03:00 instead of 02:00 because of DST: +const date = new Date(2022, 2, 13); +addHours(date, 2).toString(); +//=> 'Sun Mar 13 2022 03:00:00 GMT-0700 (Pacific Daylight Time)' + +// Using Asia/Singapore will provide the expected 02:00: +const tzDate = new TZDate(2022, 2, 13, "Asia/Singapore"); +addHours(tzDate, 2).toString(); +//=> 'Sun Mar 13 2022 02:00:00 GMT+0800 (Singapore Standard Time)' +``` + +You can safely mix and match regular `Date` instances, as well as `UTCDate` or `TZDate` in different time zones and primitive values (timestamps and strings). date-fns will normalize the arguments, taking the first object argument (`Date` or a `Date` extension instance) as the reference and return the result in the reference type: + +```ts +import { TZDate } from "@date-fns/tz"; +import { differenceInBusinessDays } from "date-fns"; + +const laterDate = new TZDate(2025, 0, 1, "Asia/Singapore"); +const earlierDate = new TZDate(2024, 0, 1, "America/New_York"); + +// Will calculate in Asia/Singapore +differenceInBusinessDays(laterDate, earlierDate); +//=> 262 + +// Will calculate in America/New_York +differenceInBusinessDays(earlierDate, laterDate); +//=> -261 +``` + +In the given example, the one-day difference comes from the fact that in New York (UTC-5), the `earlierDate` will be `Dec 31` rather than `Jan 1`: + +```ts +laterDate.withTimeZone("Asia/Singapore").toString(); +//=> 'Wed Jan 01 2025 00:00:00 GMT+0800 (Singapore Standard Time)' +earlierDate.withTimeZone("Asia/Singapore").toString(); +//=> 'Mon Jan 01 2024 13:00:00 GMT+0800 (Singapore Standard Time)' + +laterDate.withTimeZone("America/New_York").toString(); +//=> 'Tue Dec 31 2024 11:00:00 GMT-0500 (Eastern Standard Time)' +earlierDate.withTimeZone("America/New_York").toString(); +//=> 'Mon Jan 01 2024 00:00:00 GMT-0500 (Eastern Standard Time)' +``` + +This is essential to understand and consider when making calculations. + +### Using `in` option + +When it is important to get the value in a specific time zone or when you are unsure about the type of arguments, use the function context `in` option. + +Each function, where the calculation might be affected by the time zone, like with `differenceInBusinessDays`, accepts the `in` option that provides the context for the arguments and the result, so you can explicitly say what time zone to use: + +```ts +import { tz } from "@date-fns/tz"; + +// Will calculate in Asia/Singapore +differenceInBusinessDays(laterDate, earlierDate); +//=> 262 + +// Will normalize to America/Los_Angeles +differenceInBusinessDays(laterDate, earlierDate, { + in: tz("America/Los_Angeles"), +}); +//=> 261 +``` + +In the example, we forced `differenceInBusinessDays` to use the Los Angeles time zone. + +## Transposing date values + +Sometimes, you want to transpose date values from a date instance to another time zone or vice versa. For that, you would use the `transpose` function: + +```ts +import { transpose } from "date-fns"; +import { tz } from "@date-fns/tz"; + +// Singapore is the system time zone: +const sgDate = new Date(2024, 8 /* Sep */, 7, 6, 5, 4); +//=> 'Wed Sep 07 2024 06:05:04 GMT+0800 (Singapore Standard Time)' + +// Transpose the date to Los Angeles time zone: +const laDate = transpose(sgDate, tz("America/Los_Angeles")); +//=> 'Wed Sep 07 2024 06:05:04 GMT-0700 (Pacific Daylight Time)' + +// Transpose back to local time zone using Date: +const systemDate = transpose(laDate, Date); +//=> 'Wed Sep 07 2024 06:05:04 GMT+0800 (Singapore Standard Time)' +``` + +This is the `date-fns-tz`'s `fromZonedTime` and `toZonedTime` equivalent. + +## Further reading + +Read more about the time zone packages visiting their READMEs: + +- [`@date-fns/tz`] +- [`@date-fns/utc`] + +[`@date-fns/tz`]: https://github.com/date-fns/tz +[`@date-fns/utc`]: https://github.com/date-fns/utc diff --git a/node_modules/date-fns/docs/unicodeTokens.md b/node_modules/date-fns/docs/unicodeTokens.md new file mode 100644 index 000000000..c5c926cb1 --- /dev/null +++ b/node_modules/date-fns/docs/unicodeTokens.md @@ -0,0 +1,54 @@ +# Unicode Tokens + +Starting with v2, `format` and `parse` use [Unicode tokens]. + +The tokens are different from Moment.js and other libraries that opted to use +custom formatting rules. While usage of a standard ensures compatibility and +the future of the library, it causes confusion that this document intends +to resolve. + +## Popular mistakes + +There are 4 tokens that cause most of the confusion: + +- `D` and `DD` that represent the day of a year (1, 2, ..., 365, 366) + are often confused with `d` and `dd` that represent the day of a month + (1, 2, ..., 31). + +- `YY` and `YYYY` that represent the local week-numbering year (44, 01, 00, 17) + are often confused with `yy` and `yyyy` that represent the calendar year. + +```js +// ❌ Wrong! +format(new Date(), "YYYY-MM-DD"); +//=> 2018-10-283 + +// ✅ Correct +format(new Date(), "yyyy-MM-dd"); +//=> 2018-10-10 + +// ❌ Wrong! +parse("11.02.87", "D.MM.YY", new Date()).toString(); +//=> 'Sat Jan 11 1986 00:00:00 GMT+0200 (EET)' + +// ✅ Correct +parse("11.02.87", "d.MM.yy", new Date()).toString(); +//=> 'Wed Feb 11 1987 00:00:00 GMT+0200 (EET)' +``` + +To help with the issue, `format` and `parse` functions won't accept +these tokens without `useAdditionalDayOfYearTokens` option for `D` and `DD` and +`useAdditionalWeekYearTokens` options for `YY` and `YYYY`: + +```js +format(new Date(), "D", { useAdditionalDayOfYearTokens: true }); +//=> '283' + +parse("365+1987", "DD+YYYY", new Date(), { + useAdditionalDayOfYearTokens: true, + useAdditionalWeekYearTokens: true, +}).toString(); +//=> 'Wed Dec 31 1986 00:00:00 GMT+0200 (EET)' +``` + +[Unicode tokens]: https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table diff --git a/node_modules/date-fns/docs/webpack.md b/node_modules/date-fns/docs/webpack.md new file mode 100644 index 000000000..ab756f720 --- /dev/null +++ b/node_modules/date-fns/docs/webpack.md @@ -0,0 +1,53 @@ +# webpack + +## Removing unused languages from dynamic import + +If a locale is imported dynamically, then all locales from date-fns are loaded by webpack into a bundle (~160kb) or split across the chunks. This prolongs the build process and increases the amount of space taken. However, it is possible to use webpack to trim down languages using [ContextReplacementPlugin]. + +Let's assume that we have a single point in which supported locales are present: + +`config.js`: + +```js +// `see date-fns/src/locale` for available locales +export const supportedLocales = ["en-US", "de", "pl", "it"]; +``` + +We could also have a function that formats the date: + +```js +const getLocale = (locale) => import(`date-fns-locale/locale/${locale}.js`); // or require() if using CommonJS + +const formatDate = (date, formatStyle, locale) => { + return format(date, formatStyle, { + locale: getLocale(locale).default, + }); +}; +``` + +In order to exclude unused languages we can use webpacks [ContextReplacementPlugin]. + +`webpack.config.js`: + +```js +import webpack from "webpack"; +import { supportedLocales } from "./config.js"; + +export default config = { + resolve: { + alias: { + "date-fns-locale": path.dirname(require.resolve("date-fns/package.json")), + }, + }, + plugins: [ + new webpack.ContextReplacementPlugin( + /date-fns[/\\]locale/, + new RegExp(`(${locales.join("|")})\.js$`), + ), + ], +}; +``` + +This results in a language bundle of ~23kb . + +[contextreplacementplugin]: https://webpack.js.org/plugins/context-replacement-plugin/ diff --git a/node_modules/date-fns/eachDayOfInterval.cjs b/node_modules/date-fns/eachDayOfInterval.cjs new file mode 100644 index 000000000..7cd40c196 --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval.cjs @@ -0,0 +1,71 @@ +"use strict"; +exports.eachDayOfInterval = eachDayOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./constructFrom.cjs"); + +/** + * The {@link eachDayOfInterval} function options. + */ + +/** + * The {@link eachDayOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of days from the day of the interval start to the day of the interval end + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +function eachDayOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index2.constructFrom)(start, date)); + date.setDate(date.getDate() + step); + date.setHours(0, 0, 0, 0); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachDayOfInterval.d.cts b/node_modules/date-fns/eachDayOfInterval.d.cts new file mode 100644 index 000000000..b671ae41e --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval.d.cts @@ -0,0 +1,62 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachDayOfInterval} function options. + */ +export interface EachDayOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachDayOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachDayOfIntervalResult< + IntervalType extends Interval, + Options extends EachDayOfIntervalOptions | undefined, +> = Array< + Options extends EachDayOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of days from the day of the interval start to the day of the interval end + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +export declare function eachDayOfInterval< + IntervalType extends Interval, + Options extends EachDayOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachDayOfIntervalResult; diff --git a/node_modules/date-fns/eachDayOfInterval.d.ts b/node_modules/date-fns/eachDayOfInterval.d.ts new file mode 100644 index 000000000..b671ae41e --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval.d.ts @@ -0,0 +1,62 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachDayOfInterval} function options. + */ +export interface EachDayOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachDayOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachDayOfIntervalResult< + IntervalType extends Interval, + Options extends EachDayOfIntervalOptions | undefined, +> = Array< + Options extends EachDayOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of days from the day of the interval start to the day of the interval end + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +export declare function eachDayOfInterval< + IntervalType extends Interval, + Options extends EachDayOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachDayOfIntervalResult; diff --git a/node_modules/date-fns/eachDayOfInterval.js b/node_modules/date-fns/eachDayOfInterval.js new file mode 100644 index 000000000..65a2c1a4a --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval.js @@ -0,0 +1,72 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link eachDayOfInterval} function options. + */ + +/** + * The {@link eachDayOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of days from the day of the interval start to the day of the interval end + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +export function eachDayOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date.setDate(date.getDate() + step); + date.setHours(0, 0, 0, 0); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachDayOfInterval; diff --git a/node_modules/date-fns/eachHourOfInterval.cjs b/node_modules/date-fns/eachHourOfInterval.cjs new file mode 100644 index 000000000..464177174 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval.cjs @@ -0,0 +1,67 @@ +"use strict"; +exports.eachHourOfInterval = eachHourOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./constructFrom.cjs"); + +/** + * The {@link eachHourOfInterval} function options. + */ + +/** + * The {@link eachHourOfInterval} function result type. + * Resolves to the appropriate date type based on inputs. + */ + +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of hours from the hour of the interval start to the hour of the interval end + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }); + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +function eachHourOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setMinutes(0, 0, 0); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index2.constructFrom)(start, date)); + date.setHours(date.getHours() + step); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachHourOfInterval.d.cts b/node_modules/date-fns/eachHourOfInterval.d.cts new file mode 100644 index 000000000..e4aba97e6 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval.d.cts @@ -0,0 +1,59 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachHourOfInterval} function options. + */ +export interface EachHourOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachHourOfInterval} function result type. + * Resolves to the appropriate date type based on inputs. + */ +export type EachHourOfIntervalResult< + IntervalType extends Interval, + Options extends EachHourOfIntervalOptions | undefined, +> = Array< + Options extends EachHourOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of hours from the hour of the interval start to the hour of the interval end + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }); + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +export declare function eachHourOfInterval< + IntervalType extends Interval, + Options extends EachHourOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachHourOfIntervalResult; diff --git a/node_modules/date-fns/eachHourOfInterval.d.ts b/node_modules/date-fns/eachHourOfInterval.d.ts new file mode 100644 index 000000000..e4aba97e6 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval.d.ts @@ -0,0 +1,59 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachHourOfInterval} function options. + */ +export interface EachHourOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachHourOfInterval} function result type. + * Resolves to the appropriate date type based on inputs. + */ +export type EachHourOfIntervalResult< + IntervalType extends Interval, + Options extends EachHourOfIntervalOptions | undefined, +> = Array< + Options extends EachHourOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of hours from the hour of the interval start to the hour of the interval end + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }); + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +export declare function eachHourOfInterval< + IntervalType extends Interval, + Options extends EachHourOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachHourOfIntervalResult; diff --git a/node_modules/date-fns/eachHourOfInterval.js b/node_modules/date-fns/eachHourOfInterval.js new file mode 100644 index 000000000..6b8dd3a12 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval.js @@ -0,0 +1,68 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link eachHourOfInterval} function options. + */ + +/** + * The {@link eachHourOfInterval} function result type. + * Resolves to the appropriate date type based on inputs. + */ + +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of hours from the hour of the interval start to the hour of the interval end + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }); + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +export function eachHourOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setMinutes(0, 0, 0); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date.setHours(date.getHours() + step); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachHourOfInterval; diff --git a/node_modules/date-fns/eachMinuteOfInterval.cjs b/node_modules/date-fns/eachMinuteOfInterval.cjs new file mode 100644 index 000000000..3dcc64c1b --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval.cjs @@ -0,0 +1,71 @@ +"use strict"; +exports.eachMinuteOfInterval = eachMinuteOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./addMinutes.cjs"); +var _index3 = require("./constructFrom.cjs"); + +/** + * The {@link eachMinuteOfInterval} function options. + */ + +/** + * The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +function eachMinuteOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + // Set to the start of the minute + start.setSeconds(0, 0); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + let date = reversed ? end : start; + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index3.constructFrom)(start, date)); + date = (0, _index2.addMinutes)(date, step); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachMinuteOfInterval.d.cts b/node_modules/date-fns/eachMinuteOfInterval.d.cts new file mode 100644 index 000000000..eda61b0bb --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval.d.cts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachMinuteOfInterval} function options. + */ +export interface EachMinuteOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachMinuteOfIntervalResult< + IntervalType extends Interval, + Options extends EachMinuteOfIntervalOptions | undefined, +> = Array< + Options extends EachMinuteOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +export declare function eachMinuteOfInterval< + IntervalType extends Interval, + Options extends EachMinuteOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachMinuteOfIntervalResult; diff --git a/node_modules/date-fns/eachMinuteOfInterval.d.ts b/node_modules/date-fns/eachMinuteOfInterval.d.ts new file mode 100644 index 000000000..eda61b0bb --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval.d.ts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachMinuteOfInterval} function options. + */ +export interface EachMinuteOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachMinuteOfIntervalResult< + IntervalType extends Interval, + Options extends EachMinuteOfIntervalOptions | undefined, +> = Array< + Options extends EachMinuteOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +export declare function eachMinuteOfInterval< + IntervalType extends Interval, + Options extends EachMinuteOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachMinuteOfIntervalResult; diff --git a/node_modules/date-fns/eachMinuteOfInterval.js b/node_modules/date-fns/eachMinuteOfInterval.js new file mode 100644 index 000000000..2c9d5900d --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval.js @@ -0,0 +1,72 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { addMinutes } from "./addMinutes.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link eachMinuteOfInterval} function options. + */ + +/** + * The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +export function eachMinuteOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + // Set to the start of the minute + start.setSeconds(0, 0); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + let date = reversed ? end : start; + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date = addMinutes(date, step); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachMinuteOfInterval; diff --git a/node_modules/date-fns/eachMonthOfInterval.cjs b/node_modules/date-fns/eachMonthOfInterval.cjs new file mode 100644 index 000000000..b4b4c152c --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval.cjs @@ -0,0 +1,70 @@ +"use strict"; +exports.eachMonthOfInterval = eachMonthOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./constructFrom.cjs"); + +/** + * The {@link eachMonthOfInterval} function options. + */ + +/** + * The {@link eachMonthOfInterval} function result type. It resolves the proper data type. + */ + +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of months from the month of the interval start to the month of the interval end + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +function eachMonthOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setDate(1); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index2.constructFrom)(start, date)); + date.setMonth(date.getMonth() + step); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachMonthOfInterval.d.cts b/node_modules/date-fns/eachMonthOfInterval.d.cts new file mode 100644 index 000000000..0bbdc608c --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval.d.cts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachMonthOfInterval} function options. + */ +export interface EachMonthOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachMonthOfInterval} function result type. It resolves the proper data type. + */ +export type EachMonthOfIntervalResult< + IntervalType extends Interval, + Options extends EachMonthOfIntervalOptions | undefined, +> = Array< + Options extends EachMonthOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of months from the month of the interval start to the month of the interval end + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +export declare function eachMonthOfInterval< + IntervalType extends Interval, + Options extends EachMonthOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachMonthOfIntervalResult; diff --git a/node_modules/date-fns/eachMonthOfInterval.d.ts b/node_modules/date-fns/eachMonthOfInterval.d.ts new file mode 100644 index 000000000..0bbdc608c --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval.d.ts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachMonthOfInterval} function options. + */ +export interface EachMonthOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachMonthOfInterval} function result type. It resolves the proper data type. + */ +export type EachMonthOfIntervalResult< + IntervalType extends Interval, + Options extends EachMonthOfIntervalOptions | undefined, +> = Array< + Options extends EachMonthOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of months from the month of the interval start to the month of the interval end + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +export declare function eachMonthOfInterval< + IntervalType extends Interval, + Options extends EachMonthOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachMonthOfIntervalResult; diff --git a/node_modules/date-fns/eachMonthOfInterval.js b/node_modules/date-fns/eachMonthOfInterval.js new file mode 100644 index 000000000..4671df83d --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval.js @@ -0,0 +1,71 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link eachMonthOfInterval} function options. + */ + +/** + * The {@link eachMonthOfInterval} function result type. It resolves the proper data type. + */ + +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of months from the month of the interval start to the month of the interval end + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +export function eachMonthOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setDate(1); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date.setMonth(date.getMonth() + step); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachMonthOfInterval; diff --git a/node_modules/date-fns/eachQuarterOfInterval.cjs b/node_modules/date-fns/eachQuarterOfInterval.cjs new file mode 100644 index 000000000..119221a66 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval.cjs @@ -0,0 +1,73 @@ +"use strict"; +exports.eachQuarterOfInterval = eachQuarterOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./addQuarters.cjs"); +var _index3 = require("./constructFrom.cjs"); +var _index4 = require("./startOfQuarter.cjs"); + +/** + * The {@link eachQuarterOfInterval} function options. + */ + +/** + * The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval + * @param options - An object with options + * + * @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10), + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +function eachQuarterOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed + ? +(0, _index4.startOfQuarter)(start) + : +(0, _index4.startOfQuarter)(end); + let date = reversed + ? (0, _index4.startOfQuarter)(end) + : (0, _index4.startOfQuarter)(start); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index3.constructFrom)(start, date)); + date = (0, _index2.addQuarters)(date, step); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachQuarterOfInterval.d.cts b/node_modules/date-fns/eachQuarterOfInterval.d.cts new file mode 100644 index 000000000..52d0db6a0 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval.d.cts @@ -0,0 +1,60 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachQuarterOfInterval} function options. + */ +export interface EachQuarterOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachQuarterOfIntervalResult< + IntervalType extends Interval, + Options extends EachQuarterOfIntervalOptions | undefined, +> = Array< + Options extends EachQuarterOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval + * @param options - An object with options + * + * @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10), + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +export declare function eachQuarterOfInterval< + IntervalType extends Interval, + Options extends EachQuarterOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachQuarterOfIntervalResult; diff --git a/node_modules/date-fns/eachQuarterOfInterval.d.ts b/node_modules/date-fns/eachQuarterOfInterval.d.ts new file mode 100644 index 000000000..52d0db6a0 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval.d.ts @@ -0,0 +1,60 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachQuarterOfInterval} function options. + */ +export interface EachQuarterOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachQuarterOfIntervalResult< + IntervalType extends Interval, + Options extends EachQuarterOfIntervalOptions | undefined, +> = Array< + Options extends EachQuarterOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval + * @param options - An object with options + * + * @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10), + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +export declare function eachQuarterOfInterval< + IntervalType extends Interval, + Options extends EachQuarterOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachQuarterOfIntervalResult; diff --git a/node_modules/date-fns/eachQuarterOfInterval.js b/node_modules/date-fns/eachQuarterOfInterval.js new file mode 100644 index 000000000..f834b0d2d --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval.js @@ -0,0 +1,70 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { addQuarters } from "./addQuarters.js"; +import { constructFrom } from "./constructFrom.js"; +import { startOfQuarter } from "./startOfQuarter.js"; + +/** + * The {@link eachQuarterOfInterval} function options. + */ + +/** + * The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval + * @param options - An object with options + * + * @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10), + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +export function eachQuarterOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +startOfQuarter(start) : +startOfQuarter(end); + let date = reversed ? startOfQuarter(end) : startOfQuarter(start); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date = addQuarters(date, step); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachQuarterOfInterval; diff --git a/node_modules/date-fns/eachWeekOfInterval.cjs b/node_modules/date-fns/eachWeekOfInterval.cjs new file mode 100644 index 000000000..84e10ebdf --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval.cjs @@ -0,0 +1,82 @@ +"use strict"; +exports.eachWeekOfInterval = eachWeekOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./addWeeks.cjs"); +var _index3 = require("./constructFrom.cjs"); +var _index4 = require("./startOfWeek.cjs"); + +/** + * The {@link eachWeekOfInterval} function options. + */ + +/** + * The {@link eachWeekOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the interval start date, + * then the end interval date. If a context function is passed, it uses the context function return type. + */ + +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of weeks from the week of the interval start to the week of the interval end + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +function eachWeekOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const startDateWeek = reversed + ? (0, _index4.startOfWeek)(end, options) + : (0, _index4.startOfWeek)(start, options); + const endDateWeek = reversed + ? (0, _index4.startOfWeek)(start, options) + : (0, _index4.startOfWeek)(end, options); + + startDateWeek.setHours(15); + endDateWeek.setHours(15); + + const endTime = +endDateWeek.getTime(); + let currentDate = startDateWeek; + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+currentDate <= endTime) { + currentDate.setHours(0); + dates.push((0, _index3.constructFrom)(start, currentDate)); + currentDate = (0, _index2.addWeeks)(currentDate, step); + currentDate.setHours(15); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachWeekOfInterval.d.cts b/node_modules/date-fns/eachWeekOfInterval.d.cts new file mode 100644 index 000000000..1f3fcceaf --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval.d.cts @@ -0,0 +1,69 @@ +import type { + ContextOptions, + Interval, + LocalizedOptions, + StepOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link eachWeekOfInterval} function options. + */ +export interface EachWeekOfIntervalOptions + extends StepOptions, + WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * The {@link eachWeekOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the interval start date, + * then the end interval date. If a context function is passed, it uses the context function return type. + */ +export type EachWeekOfIntervalResult< + IntervalType extends Interval, + Options extends EachWeekOfIntervalOptions | undefined, +> = Array< + Options extends EachWeekOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of weeks from the week of the interval start to the week of the interval end + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +export declare function eachWeekOfInterval< + IntervalType extends Interval, + Options extends EachWeekOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachWeekOfIntervalResult; diff --git a/node_modules/date-fns/eachWeekOfInterval.d.ts b/node_modules/date-fns/eachWeekOfInterval.d.ts new file mode 100644 index 000000000..1f3fcceaf --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval.d.ts @@ -0,0 +1,69 @@ +import type { + ContextOptions, + Interval, + LocalizedOptions, + StepOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link eachWeekOfInterval} function options. + */ +export interface EachWeekOfIntervalOptions + extends StepOptions, + WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * The {@link eachWeekOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the interval start date, + * then the end interval date. If a context function is passed, it uses the context function return type. + */ +export type EachWeekOfIntervalResult< + IntervalType extends Interval, + Options extends EachWeekOfIntervalOptions | undefined, +> = Array< + Options extends EachWeekOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of weeks from the week of the interval start to the week of the interval end + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +export declare function eachWeekOfInterval< + IntervalType extends Interval, + Options extends EachWeekOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachWeekOfIntervalResult; diff --git a/node_modules/date-fns/eachWeekOfInterval.js b/node_modules/date-fns/eachWeekOfInterval.js new file mode 100644 index 000000000..ffc0073b8 --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval.js @@ -0,0 +1,83 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { addWeeks } from "./addWeeks.js"; +import { constructFrom } from "./constructFrom.js"; +import { startOfWeek } from "./startOfWeek.js"; + +/** + * The {@link eachWeekOfInterval} function options. + */ + +/** + * The {@link eachWeekOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the interval start date, + * then the end interval date. If a context function is passed, it uses the context function return type. + */ + +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of weeks from the week of the interval start to the week of the interval end + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +export function eachWeekOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const startDateWeek = reversed + ? startOfWeek(end, options) + : startOfWeek(start, options); + const endDateWeek = reversed + ? startOfWeek(start, options) + : startOfWeek(end, options); + + startDateWeek.setHours(15); + endDateWeek.setHours(15); + + const endTime = +endDateWeek.getTime(); + let currentDate = startDateWeek; + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+currentDate <= endTime) { + currentDate.setHours(0); + dates.push(constructFrom(start, currentDate)); + currentDate = addWeeks(currentDate, step); + currentDate.setHours(15); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachWeekOfInterval; diff --git a/node_modules/date-fns/eachWeekendOfInterval.cjs b/node_modules/date-fns/eachWeekendOfInterval.cjs new file mode 100644 index 000000000..4f75e0644 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval.cjs @@ -0,0 +1,56 @@ +"use strict"; +exports.eachWeekendOfInterval = eachWeekendOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./constructFrom.cjs"); +var _index3 = require("./eachDayOfInterval.cjs"); +var _index4 = require("./isWeekend.cjs"); + +/** + * The {@link eachWeekendOfInterval} function options. + */ + +/** + * The {@link eachWeekendOfInterval} function result type. + */ + +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The given interval + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +function eachWeekendOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + const dateInterval = (0, _index3.eachDayOfInterval)({ start, end }, options); + const weekends = []; + let index = 0; + while (index < dateInterval.length) { + const date = dateInterval[index++]; + if ((0, _index4.isWeekend)(date)) + weekends.push((0, _index2.constructFrom)(start, date)); + } + return weekends; +} diff --git a/node_modules/date-fns/eachWeekendOfInterval.d.cts b/node_modules/date-fns/eachWeekendOfInterval.d.cts new file mode 100644 index 000000000..ff4049476 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval.d.cts @@ -0,0 +1,57 @@ +import type { ContextOptions, Interval } from "./types.ts"; +/** + * The {@link eachWeekendOfInterval} function options. + */ +export interface EachWeekendOfIntervalOptions + extends ContextOptions {} +/** + * The {@link eachWeekendOfInterval} function result type. + */ +export type EachWeekendOfIntervalResult< + IntervalType extends Interval, + Options extends EachWeekendOfIntervalOptions | undefined, +> = Array< + Options extends EachWeekendOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The given interval + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +export declare function eachWeekendOfInterval< + IntervalType extends Interval, + Options extends EachWeekendOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachWeekendOfIntervalResult; diff --git a/node_modules/date-fns/eachWeekendOfInterval.d.ts b/node_modules/date-fns/eachWeekendOfInterval.d.ts new file mode 100644 index 000000000..ff4049476 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval.d.ts @@ -0,0 +1,57 @@ +import type { ContextOptions, Interval } from "./types.ts"; +/** + * The {@link eachWeekendOfInterval} function options. + */ +export interface EachWeekendOfIntervalOptions + extends ContextOptions {} +/** + * The {@link eachWeekendOfInterval} function result type. + */ +export type EachWeekendOfIntervalResult< + IntervalType extends Interval, + Options extends EachWeekendOfIntervalOptions | undefined, +> = Array< + Options extends EachWeekendOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The given interval + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +export declare function eachWeekendOfInterval< + IntervalType extends Interval, + Options extends EachWeekendOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachWeekendOfIntervalResult; diff --git a/node_modules/date-fns/eachWeekendOfInterval.js b/node_modules/date-fns/eachWeekendOfInterval.js new file mode 100644 index 000000000..e91afbc61 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval.js @@ -0,0 +1,56 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { constructFrom } from "./constructFrom.js"; +import { eachDayOfInterval } from "./eachDayOfInterval.js"; +import { isWeekend } from "./isWeekend.js"; + +/** + * The {@link eachWeekendOfInterval} function options. + */ + +/** + * The {@link eachWeekendOfInterval} function result type. + */ + +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The given interval + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +export function eachWeekendOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + const dateInterval = eachDayOfInterval({ start, end }, options); + const weekends = []; + let index = 0; + while (index < dateInterval.length) { + const date = dateInterval[index++]; + if (isWeekend(date)) weekends.push(constructFrom(start, date)); + } + return weekends; +} + +// Fallback for modularized imports: +export default eachWeekendOfInterval; diff --git a/node_modules/date-fns/eachWeekendOfMonth.cjs b/node_modules/date-fns/eachWeekendOfMonth.cjs new file mode 100644 index 000000000..8b05eb52c --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.eachWeekendOfMonth = eachWeekendOfMonth; +var _index = require("./eachWeekendOfInterval.cjs"); +var _index2 = require("./endOfMonth.cjs"); +var _index3 = require("./startOfMonth.cjs"); + +/** + * The {@link eachWeekendOfMonth} function options. + */ + +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given month + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +function eachWeekendOfMonth(date, options) { + const start = (0, _index3.startOfMonth)(date, options); + const end = (0, _index2.endOfMonth)(date, options); + return (0, _index.eachWeekendOfInterval)({ start, end }, options); +} diff --git a/node_modules/date-fns/eachWeekendOfMonth.d.cts b/node_modules/date-fns/eachWeekendOfMonth.d.cts new file mode 100644 index 000000000..68a6a38b8 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth.d.cts @@ -0,0 +1,43 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link eachWeekendOfMonth} function options. + */ +export interface EachWeekendOfMonthOptions + extends ContextOptions {} +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given month + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +export declare function eachWeekendOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EachWeekendOfMonthOptions, +): ResultDate[]; diff --git a/node_modules/date-fns/eachWeekendOfMonth.d.ts b/node_modules/date-fns/eachWeekendOfMonth.d.ts new file mode 100644 index 000000000..68a6a38b8 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth.d.ts @@ -0,0 +1,43 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link eachWeekendOfMonth} function options. + */ +export interface EachWeekendOfMonthOptions + extends ContextOptions {} +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given month + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +export declare function eachWeekendOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EachWeekendOfMonthOptions, +): ResultDate[]; diff --git a/node_modules/date-fns/eachWeekendOfMonth.js b/node_modules/date-fns/eachWeekendOfMonth.js new file mode 100644 index 000000000..c0d14267c --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth.js @@ -0,0 +1,46 @@ +import { eachWeekendOfInterval } from "./eachWeekendOfInterval.js"; +import { endOfMonth } from "./endOfMonth.js"; +import { startOfMonth } from "./startOfMonth.js"; + +/** + * The {@link eachWeekendOfMonth} function options. + */ + +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given month + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +export function eachWeekendOfMonth(date, options) { + const start = startOfMonth(date, options); + const end = endOfMonth(date, options); + return eachWeekendOfInterval({ start, end }, options); +} + +// Fallback for modularized imports: +export default eachWeekendOfMonth; diff --git a/node_modules/date-fns/eachWeekendOfYear.cjs b/node_modules/date-fns/eachWeekendOfYear.cjs new file mode 100644 index 000000000..823ad56dc --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.eachWeekendOfYear = eachWeekendOfYear; +var _index = require("./eachWeekendOfInterval.cjs"); +var _index2 = require("./endOfYear.cjs"); +var _index3 = require("./startOfYear.cjs"); + +/** + * The {@link eachWeekendOfYear} function options. + */ + +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given year + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +function eachWeekendOfYear(date, options) { + const start = (0, _index3.startOfYear)(date, options); + const end = (0, _index2.endOfYear)(date, options); + return (0, _index.eachWeekendOfInterval)({ start, end }, options); +} diff --git a/node_modules/date-fns/eachWeekendOfYear.d.cts b/node_modules/date-fns/eachWeekendOfYear.d.cts new file mode 100644 index 000000000..74832edf7 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear.d.cts @@ -0,0 +1,40 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link eachWeekendOfYear} function options. + */ +export interface EachWeekendOfYearOptions + extends ContextOptions {} +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given year + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +export declare function eachWeekendOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EachWeekendOfYearOptions, +): ResultDate[]; diff --git a/node_modules/date-fns/eachWeekendOfYear.d.ts b/node_modules/date-fns/eachWeekendOfYear.d.ts new file mode 100644 index 000000000..74832edf7 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear.d.ts @@ -0,0 +1,40 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link eachWeekendOfYear} function options. + */ +export interface EachWeekendOfYearOptions + extends ContextOptions {} +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given year + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +export declare function eachWeekendOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EachWeekendOfYearOptions, +): ResultDate[]; diff --git a/node_modules/date-fns/eachWeekendOfYear.js b/node_modules/date-fns/eachWeekendOfYear.js new file mode 100644 index 000000000..901cf9f8e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear.js @@ -0,0 +1,43 @@ +import { eachWeekendOfInterval } from "./eachWeekendOfInterval.js"; +import { endOfYear } from "./endOfYear.js"; +import { startOfYear } from "./startOfYear.js"; + +/** + * The {@link eachWeekendOfYear} function options. + */ + +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The given year + * @param options - An object with options + * + * @returns An array containing all the Saturdays and Sundays + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +export function eachWeekendOfYear(date, options) { + const start = startOfYear(date, options); + const end = endOfYear(date, options); + return eachWeekendOfInterval({ start, end }, options); +} + +// Fallback for modularized imports: +export default eachWeekendOfYear; diff --git a/node_modules/date-fns/eachYearOfInterval.cjs b/node_modules/date-fns/eachYearOfInterval.cjs new file mode 100644 index 000000000..9984fe277 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval.cjs @@ -0,0 +1,70 @@ +"use strict"; +exports.eachYearOfInterval = eachYearOfInterval; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./constructFrom.cjs"); + +/** + * The {@link eachYearOfInterval} function options. + */ + +/** + * The {@link eachYearOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +function eachYearOfInterval(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setMonth(0, 1); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push((0, _index2.constructFrom)(start, date)); + date.setFullYear(date.getFullYear() + step); + } + + return reversed ? dates.reverse() : dates; +} diff --git a/node_modules/date-fns/eachYearOfInterval.d.cts b/node_modules/date-fns/eachYearOfInterval.d.cts new file mode 100644 index 000000000..a91ae49e6 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval.d.cts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachYearOfInterval} function options. + */ +export interface EachYearOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachYearOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachYearOfIntervalResult< + IntervalType extends Interval, + Options extends EachYearOfIntervalOptions | undefined, +> = Array< + Options extends EachYearOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +export declare function eachYearOfInterval< + IntervalType extends Interval, + Options extends EachYearOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachYearOfIntervalResult; diff --git a/node_modules/date-fns/eachYearOfInterval.d.ts b/node_modules/date-fns/eachYearOfInterval.d.ts new file mode 100644 index 000000000..a91ae49e6 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval.d.ts @@ -0,0 +1,61 @@ +import type { ContextOptions, Interval, StepOptions } from "./types.ts"; +/** + * The {@link eachYearOfInterval} function options. + */ +export interface EachYearOfIntervalOptions + extends StepOptions, + ContextOptions {} +/** + * The {@link eachYearOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ +export type EachYearOfIntervalResult< + IntervalType extends Interval, + Options extends EachYearOfIntervalOptions | undefined, +> = Array< + Options extends EachYearOfIntervalOptions + ? DateType + : IntervalType["start"] extends Date + ? IntervalType["start"] + : IntervalType["end"] extends Date + ? IntervalType["end"] + : Date +>; +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +export declare function eachYearOfInterval< + IntervalType extends Interval, + Options extends EachYearOfIntervalOptions | undefined = undefined, +>( + interval: IntervalType, + options?: Options, +): EachYearOfIntervalResult; diff --git a/node_modules/date-fns/eachYearOfInterval.js b/node_modules/date-fns/eachYearOfInterval.js new file mode 100644 index 000000000..667ae6c15 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval.js @@ -0,0 +1,71 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { constructFrom } from "./constructFrom.js"; + +/** + * The {@link eachYearOfInterval} function options. + */ + +/** + * The {@link eachYearOfInterval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the date argument, + * then the start interval date, and finally the end interval date. If + * a context function is passed, it uses the context function return type. + */ + +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @typeParam IntervalType - Interval type. + * @typeParam Options - Options type. + * + * @param interval - The interval. + * @param options - An object with options. + * + * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +export function eachYearOfInterval(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + + let reversed = +start > +end; + const endTime = reversed ? +start : +end; + const date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setMonth(0, 1); + + let step = options?.step ?? 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + + const dates = []; + + while (+date <= endTime) { + dates.push(constructFrom(start, date)); + date.setFullYear(date.getFullYear() + step); + } + + return reversed ? dates.reverse() : dates; +} + +// Fallback for modularized imports: +export default eachYearOfInterval; diff --git a/node_modules/date-fns/endOfDay.cjs b/node_modules/date-fns/endOfDay.cjs new file mode 100644 index 000000000..187550a39 --- /dev/null +++ b/node_modules/date-fns/endOfDay.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfDay = endOfDay; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfDay} function options. + */ + +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a day + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +function endOfDay(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfDay.d.cts b/node_modules/date-fns/endOfDay.d.cts new file mode 100644 index 000000000..ea7af041e --- /dev/null +++ b/node_modules/date-fns/endOfDay.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfDay} function options. + */ +export interface EndOfDayOptions + extends ContextOptions {} +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a day + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +export declare function endOfDay< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfDayOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfDay.d.ts b/node_modules/date-fns/endOfDay.d.ts new file mode 100644 index 000000000..ea7af041e --- /dev/null +++ b/node_modules/date-fns/endOfDay.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfDay} function options. + */ +export interface EndOfDayOptions + extends ContextOptions {} +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a day + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +export declare function endOfDay< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfDayOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfDay.js b/node_modules/date-fns/endOfDay.js new file mode 100644 index 000000000..1d70ab071 --- /dev/null +++ b/node_modules/date-fns/endOfDay.js @@ -0,0 +1,36 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfDay} function options. + */ + +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a day + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +export function endOfDay(date, options) { + const _date = toDate(date, options?.in); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfDay; diff --git a/node_modules/date-fns/endOfDecade.cjs b/node_modules/date-fns/endOfDecade.cjs new file mode 100644 index 000000000..42260a441 --- /dev/null +++ b/node_modules/date-fns/endOfDecade.cjs @@ -0,0 +1,40 @@ +"use strict"; +exports.endOfDecade = endOfDecade; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfDecade} function options. + */ + +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a decade + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +function endOfDecade(date, options) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. + const _date = (0, _index.toDate)(date, options?.in); + const year = _date.getFullYear(); + const decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade, 11, 31); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfDecade.d.cts b/node_modules/date-fns/endOfDecade.d.cts new file mode 100644 index 000000000..6c2919a78 --- /dev/null +++ b/node_modules/date-fns/endOfDecade.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfDecade} function options. + */ +export interface EndOfDecadeOptions + extends ContextOptions {} +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a decade + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +export declare function endOfDecade< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfDecadeOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfDecade.d.ts b/node_modules/date-fns/endOfDecade.d.ts new file mode 100644 index 000000000..6c2919a78 --- /dev/null +++ b/node_modules/date-fns/endOfDecade.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfDecade} function options. + */ +export interface EndOfDecadeOptions + extends ContextOptions {} +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a decade + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +export declare function endOfDecade< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfDecadeOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfDecade.js b/node_modules/date-fns/endOfDecade.js new file mode 100644 index 000000000..539a6a6d6 --- /dev/null +++ b/node_modules/date-fns/endOfDecade.js @@ -0,0 +1,41 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfDecade} function options. + */ + +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a decade + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +export function endOfDecade(date, options) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + const decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade, 11, 31); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfDecade; diff --git a/node_modules/date-fns/endOfHour.cjs b/node_modules/date-fns/endOfHour.cjs new file mode 100644 index 000000000..1b6e0fa00 --- /dev/null +++ b/node_modules/date-fns/endOfHour.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfHour = endOfHour; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfHour} function options. + */ + +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an hour + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +function endOfHour(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + _date.setMinutes(59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfHour.d.cts b/node_modules/date-fns/endOfHour.d.cts new file mode 100644 index 000000000..8b37ba56e --- /dev/null +++ b/node_modules/date-fns/endOfHour.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfHour} function options. + */ +export interface EndOfHourOptions + extends ContextOptions {} +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an hour + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +export declare function endOfHour< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfHourOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfHour.d.ts b/node_modules/date-fns/endOfHour.d.ts new file mode 100644 index 000000000..8b37ba56e --- /dev/null +++ b/node_modules/date-fns/endOfHour.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfHour} function options. + */ +export interface EndOfHourOptions + extends ContextOptions {} +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an hour + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +export declare function endOfHour< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfHourOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfHour.js b/node_modules/date-fns/endOfHour.js new file mode 100644 index 000000000..ad0826bfd --- /dev/null +++ b/node_modules/date-fns/endOfHour.js @@ -0,0 +1,36 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfHour} function options. + */ + +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an hour + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +export function endOfHour(date, options) { + const _date = toDate(date, options?.in); + _date.setMinutes(59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfHour; diff --git a/node_modules/date-fns/endOfISOWeek.cjs b/node_modules/date-fns/endOfISOWeek.cjs new file mode 100644 index 000000000..f43d50f03 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfISOWeek = endOfISOWeek; +var _index = require("./endOfWeek.cjs"); + +/** + * The {@link endOfISOWeek} function options. + */ + +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +function endOfISOWeek(date, options) { + return (0, _index.endOfWeek)(date, { ...options, weekStartsOn: 1 }); +} diff --git a/node_modules/date-fns/endOfISOWeek.d.cts b/node_modules/date-fns/endOfISOWeek.d.cts new file mode 100644 index 000000000..ba36616f7 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek.d.cts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfISOWeek} function options. + */ +export interface EndOfISOWeekOptions + extends ContextOptions {} +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfISOWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfISOWeekOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfISOWeek.d.ts b/node_modules/date-fns/endOfISOWeek.d.ts new file mode 100644 index 000000000..ba36616f7 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek.d.ts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfISOWeek} function options. + */ +export interface EndOfISOWeekOptions + extends ContextOptions {} +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfISOWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfISOWeekOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfISOWeek.js b/node_modules/date-fns/endOfISOWeek.js new file mode 100644 index 000000000..c885a1dd1 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek.js @@ -0,0 +1,36 @@ +import { endOfWeek } from "./endOfWeek.js"; + +/** + * The {@link endOfISOWeek} function options. + */ + +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export function endOfISOWeek(date, options) { + return endOfWeek(date, { ...options, weekStartsOn: 1 }); +} + +// Fallback for modularized imports: +export default endOfISOWeek; diff --git a/node_modules/date-fns/endOfISOWeekYear.cjs b/node_modules/date-fns/endOfISOWeekYear.cjs new file mode 100644 index 000000000..c5e7a5a86 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear.cjs @@ -0,0 +1,47 @@ +"use strict"; +exports.endOfISOWeekYear = endOfISOWeekYear; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./getISOWeekYear.cjs"); +var _index3 = require("./startOfISOWeek.cjs"); + +/** + * The {@link endOfISOWeekYear} function options. + */ + +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ContextDate - The `Date` type of the context function. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +function endOfISOWeekYear(date, options) { + const year = (0, _index2.getISOWeekYear)(date, options); + const fourthOfJanuaryOfNextYear = (0, _index.constructFrom)( + options?.in || date, + 0, + ); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + const _date = (0, _index3.startOfISOWeek)(fourthOfJanuaryOfNextYear, options); + _date.setMilliseconds(_date.getMilliseconds() - 1); + return _date; +} diff --git a/node_modules/date-fns/endOfISOWeekYear.d.cts b/node_modules/date-fns/endOfISOWeekYear.d.cts new file mode 100644 index 000000000..2083de13a --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear.d.cts @@ -0,0 +1,38 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfISOWeekYear} function options. + */ +export interface EndOfISOWeekYearOptions + extends ContextOptions {} +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ContextDate - The `Date` type of the context function. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +export declare function endOfISOWeekYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfISOWeekYearOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfISOWeekYear.d.ts b/node_modules/date-fns/endOfISOWeekYear.d.ts new file mode 100644 index 000000000..2083de13a --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear.d.ts @@ -0,0 +1,38 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfISOWeekYear} function options. + */ +export interface EndOfISOWeekYearOptions + extends ContextOptions {} +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ContextDate - The `Date` type of the context function. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +export declare function endOfISOWeekYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfISOWeekYearOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfISOWeekYear.js b/node_modules/date-fns/endOfISOWeekYear.js new file mode 100644 index 000000000..54bddd491 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear.js @@ -0,0 +1,45 @@ +import { constructFrom } from "./constructFrom.js"; +import { getISOWeekYear } from "./getISOWeekYear.js"; +import { startOfISOWeek } from "./startOfISOWeek.js"; + +/** + * The {@link endOfISOWeekYear} function options. + */ + +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ContextDate - The `Date` type of the context function. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +export function endOfISOWeekYear(date, options) { + const year = getISOWeekYear(date, options); + const fourthOfJanuaryOfNextYear = constructFrom(options?.in || date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + const _date = startOfISOWeek(fourthOfJanuaryOfNextYear, options); + _date.setMilliseconds(_date.getMilliseconds() - 1); + return _date; +} + +// Fallback for modularized imports: +export default endOfISOWeekYear; diff --git a/node_modules/date-fns/endOfMinute.cjs b/node_modules/date-fns/endOfMinute.cjs new file mode 100644 index 000000000..aca6b63fe --- /dev/null +++ b/node_modules/date-fns/endOfMinute.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfMinute = endOfMinute; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfMinute} function options. + */ + +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone or the provided context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a minute + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +function endOfMinute(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + _date.setSeconds(59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfMinute.d.cts b/node_modules/date-fns/endOfMinute.d.cts new file mode 100644 index 000000000..337496e85 --- /dev/null +++ b/node_modules/date-fns/endOfMinute.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfMinute} function options. + */ +export interface EndOfMinuteOptions + extends ContextOptions {} +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone or the provided context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a minute + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +export declare function endOfMinute< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfMinuteOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfMinute.d.ts b/node_modules/date-fns/endOfMinute.d.ts new file mode 100644 index 000000000..337496e85 --- /dev/null +++ b/node_modules/date-fns/endOfMinute.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfMinute} function options. + */ +export interface EndOfMinuteOptions + extends ContextOptions {} +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone or the provided context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a minute + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +export declare function endOfMinute< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfMinuteOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfMinute.js b/node_modules/date-fns/endOfMinute.js new file mode 100644 index 000000000..24699a2a3 --- /dev/null +++ b/node_modules/date-fns/endOfMinute.js @@ -0,0 +1,36 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfMinute} function options. + */ + +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone or the provided context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a minute + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +export function endOfMinute(date, options) { + const _date = toDate(date, options?.in); + _date.setSeconds(59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfMinute; diff --git a/node_modules/date-fns/endOfMonth.cjs b/node_modules/date-fns/endOfMonth.cjs new file mode 100644 index 000000000..891f850f6 --- /dev/null +++ b/node_modules/date-fns/endOfMonth.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.endOfMonth = endOfMonth; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfMonth} function options. + */ + +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +function endOfMonth(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfMonth.d.cts b/node_modules/date-fns/endOfMonth.d.cts new file mode 100644 index 000000000..14d39250d --- /dev/null +++ b/node_modules/date-fns/endOfMonth.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfMonth} function options. + */ +export interface EndOfMonthOptions + extends ContextOptions {} +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfMonthOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfMonth.d.ts b/node_modules/date-fns/endOfMonth.d.ts new file mode 100644 index 000000000..14d39250d --- /dev/null +++ b/node_modules/date-fns/endOfMonth.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfMonth} function options. + */ +export interface EndOfMonthOptions + extends ContextOptions {} +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfMonthOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfMonth.js b/node_modules/date-fns/endOfMonth.js new file mode 100644 index 000000000..bfbabfa5e --- /dev/null +++ b/node_modules/date-fns/endOfMonth.js @@ -0,0 +1,38 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfMonth} function options. + */ + +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a month + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export function endOfMonth(date, options) { + const _date = toDate(date, options?.in); + const month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfMonth; diff --git a/node_modules/date-fns/endOfQuarter.cjs b/node_modules/date-fns/endOfQuarter.cjs new file mode 100644 index 000000000..f2f642cee --- /dev/null +++ b/node_modules/date-fns/endOfQuarter.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.endOfQuarter = endOfQuarter; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfQuarter} function options. + */ + +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a quarter + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +function endOfQuarter(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const currentMonth = _date.getMonth(); + const month = currentMonth - (currentMonth % 3) + 3; + _date.setMonth(month, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfQuarter.d.cts b/node_modules/date-fns/endOfQuarter.d.cts new file mode 100644 index 000000000..1d8fd1ae9 --- /dev/null +++ b/node_modules/date-fns/endOfQuarter.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfQuarter} function options. + */ +export interface EndOfQuarterOptions + extends ContextOptions {} +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a quarter + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfQuarter< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfQuarterOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfQuarter.d.ts b/node_modules/date-fns/endOfQuarter.d.ts new file mode 100644 index 000000000..1d8fd1ae9 --- /dev/null +++ b/node_modules/date-fns/endOfQuarter.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfQuarter} function options. + */ +export interface EndOfQuarterOptions + extends ContextOptions {} +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a quarter + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export declare function endOfQuarter< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfQuarterOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfQuarter.js b/node_modules/date-fns/endOfQuarter.js new file mode 100644 index 000000000..a891b6a39 --- /dev/null +++ b/node_modules/date-fns/endOfQuarter.js @@ -0,0 +1,39 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfQuarter} function options. + */ + +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a quarter + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +export function endOfQuarter(date, options) { + const _date = toDate(date, options?.in); + const currentMonth = _date.getMonth(); + const month = currentMonth - (currentMonth % 3) + 3; + _date.setMonth(month, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfQuarter; diff --git a/node_modules/date-fns/endOfSecond.cjs b/node_modules/date-fns/endOfSecond.cjs new file mode 100644 index 000000000..98f26eb74 --- /dev/null +++ b/node_modules/date-fns/endOfSecond.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfSecond = endOfSecond; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfSecond} function options. + */ + +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone if no `in` option is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a second + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +function endOfSecond(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + _date.setMilliseconds(999); + return _date; +} diff --git a/node_modules/date-fns/endOfSecond.d.cts b/node_modules/date-fns/endOfSecond.d.cts new file mode 100644 index 000000000..5fd48893e --- /dev/null +++ b/node_modules/date-fns/endOfSecond.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfSecond} function options. + */ +export interface EndOfSecondOptions + extends ContextOptions {} +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone if no `in` option is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a second + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +export declare function endOfSecond< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfSecondOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfSecond.d.ts b/node_modules/date-fns/endOfSecond.d.ts new file mode 100644 index 000000000..5fd48893e --- /dev/null +++ b/node_modules/date-fns/endOfSecond.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfSecond} function options. + */ +export interface EndOfSecondOptions + extends ContextOptions {} +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone if no `in` option is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a second + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +export declare function endOfSecond< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: EndOfSecondOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/endOfSecond.js b/node_modules/date-fns/endOfSecond.js new file mode 100644 index 000000000..92f64cfcd --- /dev/null +++ b/node_modules/date-fns/endOfSecond.js @@ -0,0 +1,36 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfSecond} function options. + */ + +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone if no `in` option is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a second + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +export function endOfSecond(date, options) { + const _date = toDate(date, options?.in); + _date.setMilliseconds(999); + return _date; +} + +// Fallback for modularized imports: +export default endOfSecond; diff --git a/node_modules/date-fns/endOfToday.cjs b/node_modules/date-fns/endOfToday.cjs new file mode 100644 index 000000000..c856ce47d --- /dev/null +++ b/node_modules/date-fns/endOfToday.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.endOfToday = endOfToday; +var _index = require("./endOfDay.cjs"); + +/** + * The {@link endOfToday} function options. + */ + +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * + * @returns The end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +function endOfToday(options) { + return (0, _index.endOfDay)(Date.now(), options); +} diff --git a/node_modules/date-fns/endOfToday.d.cts b/node_modules/date-fns/endOfToday.d.cts new file mode 100644 index 000000000..b5d51a7a7 --- /dev/null +++ b/node_modules/date-fns/endOfToday.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfToday} function options. + */ +export interface EndOfTodayOptions + extends ContextOptions {} +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * + * @returns The end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +export declare function endOfToday( + options?: EndOfTodayOptions, +): ResultDate; diff --git a/node_modules/date-fns/endOfToday.d.ts b/node_modules/date-fns/endOfToday.d.ts new file mode 100644 index 000000000..b5d51a7a7 --- /dev/null +++ b/node_modules/date-fns/endOfToday.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfToday} function options. + */ +export interface EndOfTodayOptions + extends ContextOptions {} +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * + * @returns The end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +export declare function endOfToday( + options?: EndOfTodayOptions, +): ResultDate; diff --git a/node_modules/date-fns/endOfToday.js b/node_modules/date-fns/endOfToday.js new file mode 100644 index 000000000..fcf29e958 --- /dev/null +++ b/node_modules/date-fns/endOfToday.js @@ -0,0 +1,33 @@ +import { endOfDay } from "./endOfDay.js"; + +/** + * The {@link endOfToday} function options. + */ + +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * + * @returns The end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +export function endOfToday(options) { + return endOfDay(Date.now(), options); +} + +// Fallback for modularized imports: +export default endOfToday; diff --git a/node_modules/date-fns/endOfTomorrow.cjs b/node_modules/date-fns/endOfTomorrow.cjs new file mode 100644 index 000000000..bc9bb83e7 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.endOfTomorrow = endOfTomorrow; +var _index = require("./constructNow.cjs"); + +/** + * The {@link endOfTomorrow} function options. + */ + +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * @returns The end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +function endOfTomorrow(options) { + const now = (0, _index.constructNow)(options?.in); + const year = now.getFullYear(); + const month = now.getMonth(); + const day = now.getDate(); + + const date = (0, _index.constructNow)(options?.in); + date.setFullYear(year, month, day + 1); + date.setHours(23, 59, 59, 999); + return options?.in ? options.in(date) : date; +} diff --git a/node_modules/date-fns/endOfTomorrow.d.cts b/node_modules/date-fns/endOfTomorrow.d.cts new file mode 100644 index 000000000..2fe1964f3 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfTomorrow} function options. + */ +export interface EndOfTomorrowOptions + extends ContextOptions {} +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * @returns The end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +export declare function endOfTomorrow< + DateType extends Date, + ResultDate extends Date = DateType, +>(options?: EndOfTomorrowOptions | undefined): ResultDate; diff --git a/node_modules/date-fns/endOfTomorrow.d.ts b/node_modules/date-fns/endOfTomorrow.d.ts new file mode 100644 index 000000000..2fe1964f3 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfTomorrow} function options. + */ +export interface EndOfTomorrowOptions + extends ContextOptions {} +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * @returns The end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +export declare function endOfTomorrow< + DateType extends Date, + ResultDate extends Date = DateType, +>(options?: EndOfTomorrowOptions | undefined): ResultDate; diff --git a/node_modules/date-fns/endOfTomorrow.js b/node_modules/date-fns/endOfTomorrow.js new file mode 100644 index 000000000..e27a4fb78 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow.js @@ -0,0 +1,40 @@ +import { constructNow } from "./constructNow.js"; + +/** + * The {@link endOfTomorrow} function options. + */ + +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param options - The options + * @returns The end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +export function endOfTomorrow(options) { + const now = constructNow(options?.in); + const year = now.getFullYear(); + const month = now.getMonth(); + const day = now.getDate(); + + const date = constructNow(options?.in); + date.setFullYear(year, month, day + 1); + date.setHours(23, 59, 59, 999); + return options?.in ? options.in(date) : date; +} + +// Fallback for modularized imports: +export default endOfTomorrow; diff --git a/node_modules/date-fns/endOfWeek.cjs b/node_modules/date-fns/endOfWeek.cjs new file mode 100644 index 000000000..407b656b2 --- /dev/null +++ b/node_modules/date-fns/endOfWeek.cjs @@ -0,0 +1,53 @@ +"use strict"; +exports.endOfWeek = endOfWeek; +var _index = require("./_lib/defaultOptions.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link endOfWeek} function options. + */ + +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a week + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +function endOfWeek(date, options) { + const defaultOptions = (0, _index.getDefaultOptions)(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const _date = (0, _index2.toDate)(date, options?.in); + const day = _date.getDay(); + const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + + _date.setDate(_date.getDate() + diff); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfWeek.d.cts b/node_modules/date-fns/endOfWeek.d.cts new file mode 100644 index 000000000..0bb3919bf --- /dev/null +++ b/node_modules/date-fns/endOfWeek.d.cts @@ -0,0 +1,44 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link endOfWeek} function options. + */ +export interface EndOfWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a week + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg, options?: EndOfWeekOptions): ResultDate; diff --git a/node_modules/date-fns/endOfWeek.d.ts b/node_modules/date-fns/endOfWeek.d.ts new file mode 100644 index 000000000..0bb3919bf --- /dev/null +++ b/node_modules/date-fns/endOfWeek.d.ts @@ -0,0 +1,44 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link endOfWeek} function options. + */ +export interface EndOfWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a week + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export declare function endOfWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg, options?: EndOfWeekOptions): ResultDate; diff --git a/node_modules/date-fns/endOfWeek.js b/node_modules/date-fns/endOfWeek.js new file mode 100644 index 000000000..1e6155d2e --- /dev/null +++ b/node_modules/date-fns/endOfWeek.js @@ -0,0 +1,54 @@ +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfWeek} function options. + */ + +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of a week + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export function endOfWeek(date, options) { + const defaultOptions = getDefaultOptions(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const _date = toDate(date, options?.in); + const day = _date.getDay(); + const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + + _date.setDate(_date.getDate() + diff); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfWeek; diff --git a/node_modules/date-fns/endOfYear.cjs b/node_modules/date-fns/endOfYear.cjs new file mode 100644 index 000000000..3ab226535 --- /dev/null +++ b/node_modules/date-fns/endOfYear.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.endOfYear = endOfYear; +var _index = require("./toDate.cjs"); + +/** + * The {@link endOfYear} function options. + */ + +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of a year + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +function endOfYear(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const year = _date.getFullYear(); + _date.setFullYear(year + 1, 0, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} diff --git a/node_modules/date-fns/endOfYear.d.cts b/node_modules/date-fns/endOfYear.d.cts new file mode 100644 index 000000000..a8829509c --- /dev/null +++ b/node_modules/date-fns/endOfYear.d.cts @@ -0,0 +1,32 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfYear} function options. + */ +export interface EndOfYearOptions + extends ContextOptions {} +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of a year + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +export declare function endOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg, options?: EndOfYearOptions): ResultDate; diff --git a/node_modules/date-fns/endOfYear.d.ts b/node_modules/date-fns/endOfYear.d.ts new file mode 100644 index 000000000..a8829509c --- /dev/null +++ b/node_modules/date-fns/endOfYear.d.ts @@ -0,0 +1,32 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link endOfYear} function options. + */ +export interface EndOfYearOptions + extends ContextOptions {} +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of a year + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +export declare function endOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>(date: DateArg, options?: EndOfYearOptions): ResultDate; diff --git a/node_modules/date-fns/endOfYear.js b/node_modules/date-fns/endOfYear.js new file mode 100644 index 000000000..f437ae92f --- /dev/null +++ b/node_modules/date-fns/endOfYear.js @@ -0,0 +1,38 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link endOfYear} function options. + */ + +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The end of a year + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +export function endOfYear(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + _date.setFullYear(year + 1, 0, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} + +// Fallback for modularized imports: +export default endOfYear; diff --git a/node_modules/date-fns/endOfYesterday.cjs b/node_modules/date-fns/endOfYesterday.cjs new file mode 100644 index 000000000..b4a24727a --- /dev/null +++ b/node_modules/date-fns/endOfYesterday.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.endOfYesterday = endOfYesterday; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); + +/** + * The {@link endOfYesterday} function options. + */ + +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @returns The end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +function endOfYesterday(options) { + const now = (0, _index2.constructNow)(options?.in); + const date = (0, _index.constructFrom)(options?.in, 0); + date.setFullYear(now.getFullYear(), now.getMonth(), now.getDate() - 1); + date.setHours(23, 59, 59, 999); + return date; +} diff --git a/node_modules/date-fns/endOfYesterday.d.cts b/node_modules/date-fns/endOfYesterday.d.cts new file mode 100644 index 000000000..0d9b83575 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfYesterday} function options. + */ +export interface EndOfYesterdayOptions + extends ContextOptions {} +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @returns The end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +export declare function endOfYesterday< + DateType extends Date, + ResultDate extends Date = DateType, +>(options?: EndOfYesterdayOptions | undefined): ResultDate; diff --git a/node_modules/date-fns/endOfYesterday.d.ts b/node_modules/date-fns/endOfYesterday.d.ts new file mode 100644 index 000000000..0d9b83575 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link endOfYesterday} function options. + */ +export interface EndOfYesterdayOptions + extends ContextOptions {} +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @returns The end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +export declare function endOfYesterday< + DateType extends Date, + ResultDate extends Date = DateType, +>(options?: EndOfYesterdayOptions | undefined): ResultDate; diff --git a/node_modules/date-fns/endOfYesterday.js b/node_modules/date-fns/endOfYesterday.js new file mode 100644 index 000000000..e9d1cfb65 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; + +/** + * The {@link endOfYesterday} function options. + */ + +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @returns The end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +export function endOfYesterday(options) { + const now = constructNow(options?.in); + const date = constructFrom(options?.in, 0); + date.setFullYear(now.getFullYear(), now.getMonth(), now.getDate() - 1); + date.setHours(23, 59, 59, 999); + return date; +} + +// Fallback for modularized imports: +export default endOfYesterday; diff --git a/node_modules/date-fns/format.cjs b/node_modules/date-fns/format.cjs new file mode 100644 index 000000000..3bd77de74 --- /dev/null +++ b/node_modules/date-fns/format.cjs @@ -0,0 +1,440 @@ +"use strict"; +exports.format = exports.formatDate = format; +Object.defineProperty(exports, "formatters", { + enumerable: true, + get: function () { + return _index3.formatters; + }, +}); +Object.defineProperty(exports, "longFormatters", { + enumerable: true, + get: function () { + return _index4.longFormatters; + }, +}); +var _index = require("./_lib/defaultLocale.cjs"); +var _index2 = require("./_lib/defaultOptions.cjs"); +var _index3 = require("./_lib/format/formatters.cjs"); +var _index4 = require("./_lib/format/longFormatters.cjs"); +var _index5 = require("./_lib/protectedTokens.cjs"); + +var _index6 = require("./isValid.cjs"); +var _index7 = require("./toDate.cjs"); + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 + +// This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +const formattingTokensRegExp = + /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; + +// This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` +const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; + +const escapedStringRegExp = /^'([^]*?)'?$/; +const doubleQuoteRegExp = /''/g; +const unescapedLatinCharacterRegExp = /[a-zA-Z]/; + +/** + * The {@link format} function options. + */ + +/** + * @name format + * @alias formatDate + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) + * and [getWeekYear](https://date-fns.org/docs/getWeekYear)). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param date - The original date + * @param format - The string of tokens + * @param options - An object with options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ +function format(date, formatStr, options) { + const defaultOptions = (0, _index2.getDefaultOptions)(); + const locale = + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; + + const firstWeekContainsDate = + options?.firstWeekContainsDate ?? + options?.locale?.options?.firstWeekContainsDate ?? + defaultOptions.firstWeekContainsDate ?? + defaultOptions.locale?.options?.firstWeekContainsDate ?? + 1; + + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const originalDate = (0, _index7.toDate)(date, options?.in); + + if (!(0, _index6.isValid)(originalDate)) { + throw new RangeError("Invalid time value"); + } + + let parts = formatStr + .match(longFormattingTokensRegExp) + .map((substring) => { + const firstCharacter = substring[0]; + if (firstCharacter === "p" || firstCharacter === "P") { + const longFormatter = _index4.longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }) + .join("") + .match(formattingTokensRegExp) + .map((substring) => { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return { isToken: false, value: "'" }; + } + + const firstCharacter = substring[0]; + if (firstCharacter === "'") { + return { isToken: false, value: cleanEscapedString(substring) }; + } + + if (_index3.formatters[firstCharacter]) { + return { isToken: true, value: substring }; + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError( + "Format string contains an unescaped latin alphabet character `" + + firstCharacter + + "`", + ); + } + + return { isToken: false, value: substring }; + }); + + // invoke localize preprocessor (only for french locales at the moment) + if (locale.localize.preprocessor) { + parts = locale.localize.preprocessor(originalDate, parts); + } + + const formatterOptions = { + firstWeekContainsDate, + weekStartsOn, + locale, + }; + + return parts + .map((part) => { + if (!part.isToken) return part.value; + + const token = part.value; + + if ( + (!options?.useAdditionalWeekYearTokens && + (0, _index5.isProtectedWeekYearToken)(token)) || + (!options?.useAdditionalDayOfYearTokens && + (0, _index5.isProtectedDayOfYearToken)(token)) + ) { + (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date)); + } + + const formatter = _index3.formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); + }) + .join(""); +} + +function cleanEscapedString(input) { + const matched = input.match(escapedStringRegExp); + + if (!matched) { + return input; + } + + return matched[1].replace(doubleQuoteRegExp, "'"); +} diff --git a/node_modules/date-fns/format.d.cts b/node_modules/date-fns/format.d.cts new file mode 100644 index 000000000..f832adf55 --- /dev/null +++ b/node_modules/date-fns/format.d.cts @@ -0,0 +1,311 @@ +import { formatters } from "./_lib/format/formatters.ts"; +import { longFormatters } from "./_lib/format/longFormatters.ts"; +import type { + AdditionalTokensOptions, + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +export { formatters, longFormatters }; +export { format as formatDate }; +export type { FormatOptions as FormatDateOptions }; +/** + * The {@link format} function options. + */ +export interface FormatOptions + extends LocalizedOptions<"options" | "localize" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions, + ContextOptions {} +/** + * @name format + * @alias formatDate + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) + * and [getWeekYear](https://date-fns.org/docs/getWeekYear)). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param date - The original date + * @param format - The string of tokens + * @param options - An object with options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ +export declare function format( + date: DateArg & {}, + formatStr: string, + options?: FormatOptions, +): string; diff --git a/node_modules/date-fns/format.d.ts b/node_modules/date-fns/format.d.ts new file mode 100644 index 000000000..f832adf55 --- /dev/null +++ b/node_modules/date-fns/format.d.ts @@ -0,0 +1,311 @@ +import { formatters } from "./_lib/format/formatters.ts"; +import { longFormatters } from "./_lib/format/longFormatters.ts"; +import type { + AdditionalTokensOptions, + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +export { formatters, longFormatters }; +export { format as formatDate }; +export type { FormatOptions as FormatDateOptions }; +/** + * The {@link format} function options. + */ +export interface FormatOptions + extends LocalizedOptions<"options" | "localize" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions, + ContextOptions {} +/** + * @name format + * @alias formatDate + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) + * and [getWeekYear](https://date-fns.org/docs/getWeekYear)). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param date - The original date + * @param format - The string of tokens + * @param options - An object with options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ +export declare function format( + date: DateArg & {}, + formatStr: string, + options?: FormatOptions, +): string; diff --git a/node_modules/date-fns/format.js b/node_modules/date-fns/format.js new file mode 100644 index 000000000..0c0acbc61 --- /dev/null +++ b/node_modules/date-fns/format.js @@ -0,0 +1,434 @@ +import { defaultLocale } from "./_lib/defaultLocale.js"; +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { formatters } from "./_lib/format/formatters.js"; +import { longFormatters } from "./_lib/format/longFormatters.js"; +import { + isProtectedDayOfYearToken, + isProtectedWeekYearToken, + warnOrThrowProtectedError, +} from "./_lib/protectedTokens.js"; +import { isValid } from "./isValid.js"; +import { toDate } from "./toDate.js"; + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 +export { formatters, longFormatters }; + +// This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +const formattingTokensRegExp = + /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; + +// This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` +const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; + +const escapedStringRegExp = /^'([^]*?)'?$/; +const doubleQuoteRegExp = /''/g; +const unescapedLatinCharacterRegExp = /[a-zA-Z]/; + +export { format as formatDate }; + +/** + * The {@link format} function options. + */ + +/** + * @name format + * @alias formatDate + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) + * and [getWeekYear](https://date-fns.org/docs/getWeekYear)). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param date - The original date + * @param format - The string of tokens + * @param options - An object with options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ +export function format(date, formatStr, options) { + const defaultOptions = getDefaultOptions(); + const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale; + + const firstWeekContainsDate = + options?.firstWeekContainsDate ?? + options?.locale?.options?.firstWeekContainsDate ?? + defaultOptions.firstWeekContainsDate ?? + defaultOptions.locale?.options?.firstWeekContainsDate ?? + 1; + + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const originalDate = toDate(date, options?.in); + + if (!isValid(originalDate)) { + throw new RangeError("Invalid time value"); + } + + let parts = formatStr + .match(longFormattingTokensRegExp) + .map((substring) => { + const firstCharacter = substring[0]; + if (firstCharacter === "p" || firstCharacter === "P") { + const longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }) + .join("") + .match(formattingTokensRegExp) + .map((substring) => { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return { isToken: false, value: "'" }; + } + + const firstCharacter = substring[0]; + if (firstCharacter === "'") { + return { isToken: false, value: cleanEscapedString(substring) }; + } + + if (formatters[firstCharacter]) { + return { isToken: true, value: substring }; + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError( + "Format string contains an unescaped latin alphabet character `" + + firstCharacter + + "`", + ); + } + + return { isToken: false, value: substring }; + }); + + // invoke localize preprocessor (only for french locales at the moment) + if (locale.localize.preprocessor) { + parts = locale.localize.preprocessor(originalDate, parts); + } + + const formatterOptions = { + firstWeekContainsDate, + weekStartsOn, + locale, + }; + + return parts + .map((part) => { + if (!part.isToken) return part.value; + + const token = part.value; + + if ( + (!options?.useAdditionalWeekYearTokens && + isProtectedWeekYearToken(token)) || + (!options?.useAdditionalDayOfYearTokens && + isProtectedDayOfYearToken(token)) + ) { + warnOrThrowProtectedError(token, formatStr, String(date)); + } + + const formatter = formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); + }) + .join(""); +} + +function cleanEscapedString(input) { + const matched = input.match(escapedStringRegExp); + + if (!matched) { + return input; + } + + return matched[1].replace(doubleQuoteRegExp, "'"); +} + +// Fallback for modularized imports: +export default format; diff --git a/node_modules/date-fns/formatDistance.cjs b/node_modules/date-fns/formatDistance.cjs new file mode 100644 index 000000000..b3c39e890 --- /dev/null +++ b/node_modules/date-fns/formatDistance.cjs @@ -0,0 +1,199 @@ +"use strict"; +exports.formatDistance = formatDistance; +var _index = require("./_lib/defaultLocale.cjs"); +var _index2 = require("./_lib/defaultOptions.cjs"); +var _index3 = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index4 = require("./_lib/normalizeDates.cjs"); +var _index5 = require("./compareAsc.cjs"); +var _index6 = require("./constants.cjs"); +var _index7 = require("./differenceInMonths.cjs"); +var _index8 = require("./differenceInSeconds.cjs"); + +/** + * The {@link formatDistance} function options. + */ + +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ +function formatDistance(laterDate, earlierDate, options) { + const defaultOptions = (0, _index2.getDefaultOptions)(); + const locale = + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; + const minutesInAlmostTwoDays = 2520; + + const comparison = (0, _index5.compareAsc)(laterDate, earlierDate); + + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + + const localizeOptions = Object.assign({}, options, { + addSuffix: options?.addSuffix, + comparison: comparison, + }); + + const [laterDate_, earlierDate_] = (0, _index4.normalizeDates)( + options?.in, + ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]), + ); + + const seconds = (0, _index8.differenceInSeconds)(earlierDate_, laterDate_); + const offsetInSeconds = + ((0, _index3.getTimezoneOffsetInMilliseconds)(earlierDate_) - + (0, _index3.getTimezoneOffsetInMilliseconds)(laterDate_)) / + 1000; + const minutes = Math.round((seconds - offsetInSeconds) / 60); + let months; + + // 0 up to 2 mins + if (minutes < 2) { + if (options?.includeSeconds) { + if (seconds < 5) { + return locale.formatDistance("lessThanXSeconds", 5, localizeOptions); + } else if (seconds < 10) { + return locale.formatDistance("lessThanXSeconds", 10, localizeOptions); + } else if (seconds < 20) { + return locale.formatDistance("lessThanXSeconds", 20, localizeOptions); + } else if (seconds < 40) { + return locale.formatDistance("halfAMinute", 0, localizeOptions); + } else if (seconds < 60) { + return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); + } else { + return locale.formatDistance("xMinutes", 1, localizeOptions); + } + } else { + if (minutes === 0) { + return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); + } else { + return locale.formatDistance("xMinutes", minutes, localizeOptions); + } + } + + // 2 mins up to 0.75 hrs + } else if (minutes < 45) { + return locale.formatDistance("xMinutes", minutes, localizeOptions); + + // 0.75 hrs up to 1.5 hrs + } else if (minutes < 90) { + return locale.formatDistance("aboutXHours", 1, localizeOptions); + + // 1.5 hrs up to 24 hrs + } else if (minutes < _index6.minutesInDay) { + const hours = Math.round(minutes / 60); + return locale.formatDistance("aboutXHours", hours, localizeOptions); + + // 1 day up to 1.75 days + } else if (minutes < minutesInAlmostTwoDays) { + return locale.formatDistance("xDays", 1, localizeOptions); + + // 1.75 days up to 30 days + } else if (minutes < _index6.minutesInMonth) { + const days = Math.round(minutes / _index6.minutesInDay); + return locale.formatDistance("xDays", days, localizeOptions); + + // 1 month up to 2 months + } else if (minutes < _index6.minutesInMonth * 2) { + months = Math.round(minutes / _index6.minutesInMonth); + return locale.formatDistance("aboutXMonths", months, localizeOptions); + } + + months = (0, _index7.differenceInMonths)(earlierDate_, laterDate_); + + // 2 months up to 12 months + if (months < 12) { + const nearestMonth = Math.round(minutes / _index6.minutesInMonth); + return locale.formatDistance("xMonths", nearestMonth, localizeOptions); + + // 1 year up to max Date + } else { + const monthsSinceStartOfYear = months % 12; + const years = Math.trunc(months / 12); + + // N years up to 1 years 3 months + if (monthsSinceStartOfYear < 3) { + return locale.formatDistance("aboutXYears", years, localizeOptions); + + // N years 3 months up to N years 9 months + } else if (monthsSinceStartOfYear < 9) { + return locale.formatDistance("overXYears", years, localizeOptions); + + // N years 9 months up to N year 12 months + } else { + return locale.formatDistance("almostXYears", years + 1, localizeOptions); + } + } +} diff --git a/node_modules/date-fns/formatDistance.d.cts b/node_modules/date-fns/formatDistance.d.cts new file mode 100644 index 000000000..bd1d53d63 --- /dev/null +++ b/node_modules/date-fns/formatDistance.d.cts @@ -0,0 +1,95 @@ +import type { ContextOptions, DateArg, LocalizedOptions } from "./types.ts"; +/** + * The {@link formatDistance} function options. + */ +export interface FormatDistanceOptions + extends LocalizedOptions<"formatDistance">, + ContextOptions { + /** Distances less than a minute are more detailed */ + includeSeconds?: boolean; + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; +} +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistance( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: FormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/formatDistance.d.ts b/node_modules/date-fns/formatDistance.d.ts new file mode 100644 index 000000000..bd1d53d63 --- /dev/null +++ b/node_modules/date-fns/formatDistance.d.ts @@ -0,0 +1,95 @@ +import type { ContextOptions, DateArg, LocalizedOptions } from "./types.ts"; +/** + * The {@link formatDistance} function options. + */ +export interface FormatDistanceOptions + extends LocalizedOptions<"formatDistance">, + ContextOptions { + /** Distances less than a minute are more detailed */ + includeSeconds?: boolean; + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; +} +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistance( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: FormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/formatDistance.js b/node_modules/date-fns/formatDistance.js new file mode 100644 index 000000000..fcba11117 --- /dev/null +++ b/node_modules/date-fns/formatDistance.js @@ -0,0 +1,199 @@ +import { defaultLocale } from "./_lib/defaultLocale.js"; +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { compareAsc } from "./compareAsc.js"; +import { minutesInDay, minutesInMonth } from "./constants.js"; +import { differenceInMonths } from "./differenceInMonths.js"; +import { differenceInSeconds } from "./differenceInSeconds.js"; + +/** + * The {@link formatDistance} function options. + */ + +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ +export function formatDistance(laterDate, earlierDate, options) { + const defaultOptions = getDefaultOptions(); + const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale; + const minutesInAlmostTwoDays = 2520; + + const comparison = compareAsc(laterDate, earlierDate); + + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + + const localizeOptions = Object.assign({}, options, { + addSuffix: options?.addSuffix, + comparison: comparison, + }); + + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]), + ); + + const seconds = differenceInSeconds(earlierDate_, laterDate_); + const offsetInSeconds = + (getTimezoneOffsetInMilliseconds(earlierDate_) - + getTimezoneOffsetInMilliseconds(laterDate_)) / + 1000; + const minutes = Math.round((seconds - offsetInSeconds) / 60); + let months; + + // 0 up to 2 mins + if (minutes < 2) { + if (options?.includeSeconds) { + if (seconds < 5) { + return locale.formatDistance("lessThanXSeconds", 5, localizeOptions); + } else if (seconds < 10) { + return locale.formatDistance("lessThanXSeconds", 10, localizeOptions); + } else if (seconds < 20) { + return locale.formatDistance("lessThanXSeconds", 20, localizeOptions); + } else if (seconds < 40) { + return locale.formatDistance("halfAMinute", 0, localizeOptions); + } else if (seconds < 60) { + return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); + } else { + return locale.formatDistance("xMinutes", 1, localizeOptions); + } + } else { + if (minutes === 0) { + return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); + } else { + return locale.formatDistance("xMinutes", minutes, localizeOptions); + } + } + + // 2 mins up to 0.75 hrs + } else if (minutes < 45) { + return locale.formatDistance("xMinutes", minutes, localizeOptions); + + // 0.75 hrs up to 1.5 hrs + } else if (minutes < 90) { + return locale.formatDistance("aboutXHours", 1, localizeOptions); + + // 1.5 hrs up to 24 hrs + } else if (minutes < minutesInDay) { + const hours = Math.round(minutes / 60); + return locale.formatDistance("aboutXHours", hours, localizeOptions); + + // 1 day up to 1.75 days + } else if (minutes < minutesInAlmostTwoDays) { + return locale.formatDistance("xDays", 1, localizeOptions); + + // 1.75 days up to 30 days + } else if (minutes < minutesInMonth) { + const days = Math.round(minutes / minutesInDay); + return locale.formatDistance("xDays", days, localizeOptions); + + // 1 month up to 2 months + } else if (minutes < minutesInMonth * 2) { + months = Math.round(minutes / minutesInMonth); + return locale.formatDistance("aboutXMonths", months, localizeOptions); + } + + months = differenceInMonths(earlierDate_, laterDate_); + + // 2 months up to 12 months + if (months < 12) { + const nearestMonth = Math.round(minutes / minutesInMonth); + return locale.formatDistance("xMonths", nearestMonth, localizeOptions); + + // 1 year up to max Date + } else { + const monthsSinceStartOfYear = months % 12; + const years = Math.trunc(months / 12); + + // N years up to 1 years 3 months + if (monthsSinceStartOfYear < 3) { + return locale.formatDistance("aboutXYears", years, localizeOptions); + + // N years 3 months up to N years 9 months + } else if (monthsSinceStartOfYear < 9) { + return locale.formatDistance("overXYears", years, localizeOptions); + + // N years 9 months up to N year 12 months + } else { + return locale.formatDistance("almostXYears", years + 1, localizeOptions); + } + } +} + +// Fallback for modularized imports: +export default formatDistance; diff --git a/node_modules/date-fns/formatDistanceStrict.cjs b/node_modules/date-fns/formatDistanceStrict.cjs new file mode 100644 index 000000000..60cdc4b74 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict.cjs @@ -0,0 +1,188 @@ +"use strict"; +exports.formatDistanceStrict = formatDistanceStrict; +var _index = require("./_lib/defaultLocale.cjs"); +var _index2 = require("./_lib/defaultOptions.cjs"); +var _index3 = require("./_lib/getRoundingMethod.cjs"); +var _index4 = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index5 = require("./_lib/normalizeDates.cjs"); +var _index6 = require("./compareAsc.cjs"); +var _index7 = require("./constants.cjs"); + +/** + * The {@link formatDistanceStrict} function options. + */ + +/** + * The unit used to format the distance in {@link formatDistanceStrict}. + */ + +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +function formatDistanceStrict(laterDate, earlierDate, options) { + const defaultOptions = (0, _index2.getDefaultOptions)(); + const locale = + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; + + const comparison = (0, _index6.compareAsc)(laterDate, earlierDate); + + if (isNaN(comparison)) { + throw new RangeError("Invalid time value"); + } + + const localizeOptions = Object.assign({}, options, { + addSuffix: options?.addSuffix, + comparison: comparison, + }); + + const [laterDate_, earlierDate_] = (0, _index5.normalizeDates)( + options?.in, + ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]), + ); + + const roundingMethod = (0, _index3.getRoundingMethod)( + options?.roundingMethod ?? "round", + ); + + const milliseconds = earlierDate_.getTime() - laterDate_.getTime(); + const minutes = milliseconds / _index7.millisecondsInMinute; + + const timezoneOffset = + (0, _index4.getTimezoneOffsetInMilliseconds)(earlierDate_) - + (0, _index4.getTimezoneOffsetInMilliseconds)(laterDate_); + + // Use DST-normalized difference in minutes for years, months and days; + // use regular difference in minutes for hours, minutes and seconds. + const dstNormalizedMinutes = + (milliseconds - timezoneOffset) / _index7.millisecondsInMinute; + + const defaultUnit = options?.unit; + let unit; + if (!defaultUnit) { + if (minutes < 1) { + unit = "second"; + } else if (minutes < 60) { + unit = "minute"; + } else if (minutes < _index7.minutesInDay) { + unit = "hour"; + } else if (dstNormalizedMinutes < _index7.minutesInMonth) { + unit = "day"; + } else if (dstNormalizedMinutes < _index7.minutesInYear) { + unit = "month"; + } else { + unit = "year"; + } + } else { + unit = defaultUnit; + } + + // 0 up to 60 seconds + if (unit === "second") { + const seconds = roundingMethod(milliseconds / 1000); + return locale.formatDistance("xSeconds", seconds, localizeOptions); + + // 1 up to 60 mins + } else if (unit === "minute") { + const roundedMinutes = roundingMethod(minutes); + return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); + + // 1 up to 24 hours + } else if (unit === "hour") { + const hours = roundingMethod(minutes / 60); + return locale.formatDistance("xHours", hours, localizeOptions); + + // 1 up to 30 days + } else if (unit === "day") { + const days = roundingMethod(dstNormalizedMinutes / _index7.minutesInDay); + return locale.formatDistance("xDays", days, localizeOptions); + + // 1 up to 12 months + } else if (unit === "month") { + const months = roundingMethod( + dstNormalizedMinutes / _index7.minutesInMonth, + ); + return months === 12 && defaultUnit !== "month" + ? locale.formatDistance("xYears", 1, localizeOptions) + : locale.formatDistance("xMonths", months, localizeOptions); + + // 1 year up to max Date + } else { + const years = roundingMethod(dstNormalizedMinutes / _index7.minutesInYear); + return locale.formatDistance("xYears", years, localizeOptions); + } +} diff --git a/node_modules/date-fns/formatDistanceStrict.d.cts b/node_modules/date-fns/formatDistanceStrict.d.cts new file mode 100644 index 000000000..884aa8de7 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict.d.cts @@ -0,0 +1,110 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + RoundingOptions, +} from "./types.ts"; +/** + * The {@link formatDistanceStrict} function options. + */ +export interface FormatDistanceStrictOptions + extends LocalizedOptions<"formatDistance">, + RoundingOptions, + ContextOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** If specified, will force the unit */ + unit?: FormatDistanceStrictUnit; +} +/** + * The unit used to format the distance in {@link formatDistanceStrict}. + */ +export type FormatDistanceStrictUnit = + | "second" + | "minute" + | "hour" + | "day" + | "month" + | "year"; +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ +export declare function formatDistanceStrict( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: FormatDistanceStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceStrict.d.ts b/node_modules/date-fns/formatDistanceStrict.d.ts new file mode 100644 index 000000000..884aa8de7 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict.d.ts @@ -0,0 +1,110 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + RoundingOptions, +} from "./types.ts"; +/** + * The {@link formatDistanceStrict} function options. + */ +export interface FormatDistanceStrictOptions + extends LocalizedOptions<"formatDistance">, + RoundingOptions, + ContextOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** If specified, will force the unit */ + unit?: FormatDistanceStrictUnit; +} +/** + * The unit used to format the distance in {@link formatDistanceStrict}. + */ +export type FormatDistanceStrictUnit = + | "second" + | "minute" + | "hour" + | "day" + | "month" + | "year"; +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ +export declare function formatDistanceStrict( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: FormatDistanceStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceStrict.js b/node_modules/date-fns/formatDistanceStrict.js new file mode 100644 index 000000000..e4a99cbf5 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict.js @@ -0,0 +1,189 @@ +import { defaultLocale } from "./_lib/defaultLocale.js"; +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { getRoundingMethod } from "./_lib/getRoundingMethod.js"; +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { compareAsc } from "./compareAsc.js"; +import { + millisecondsInMinute, + minutesInDay, + minutesInMonth, + minutesInYear, +} from "./constants.js"; + +/** + * The {@link formatDistanceStrict} function options. + */ + +/** + * The unit used to format the distance in {@link formatDistanceStrict}. + */ + +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with + * @param options - An object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +export function formatDistanceStrict(laterDate, earlierDate, options) { + const defaultOptions = getDefaultOptions(); + const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale; + + const comparison = compareAsc(laterDate, earlierDate); + + if (isNaN(comparison)) { + throw new RangeError("Invalid time value"); + } + + const localizeOptions = Object.assign({}, options, { + addSuffix: options?.addSuffix, + comparison: comparison, + }); + + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]), + ); + + const roundingMethod = getRoundingMethod(options?.roundingMethod ?? "round"); + + const milliseconds = earlierDate_.getTime() - laterDate_.getTime(); + const minutes = milliseconds / millisecondsInMinute; + + const timezoneOffset = + getTimezoneOffsetInMilliseconds(earlierDate_) - + getTimezoneOffsetInMilliseconds(laterDate_); + + // Use DST-normalized difference in minutes for years, months and days; + // use regular difference in minutes for hours, minutes and seconds. + const dstNormalizedMinutes = + (milliseconds - timezoneOffset) / millisecondsInMinute; + + const defaultUnit = options?.unit; + let unit; + if (!defaultUnit) { + if (minutes < 1) { + unit = "second"; + } else if (minutes < 60) { + unit = "minute"; + } else if (minutes < minutesInDay) { + unit = "hour"; + } else if (dstNormalizedMinutes < minutesInMonth) { + unit = "day"; + } else if (dstNormalizedMinutes < minutesInYear) { + unit = "month"; + } else { + unit = "year"; + } + } else { + unit = defaultUnit; + } + + // 0 up to 60 seconds + if (unit === "second") { + const seconds = roundingMethod(milliseconds / 1000); + return locale.formatDistance("xSeconds", seconds, localizeOptions); + + // 1 up to 60 mins + } else if (unit === "minute") { + const roundedMinutes = roundingMethod(minutes); + return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); + + // 1 up to 24 hours + } else if (unit === "hour") { + const hours = roundingMethod(minutes / 60); + return locale.formatDistance("xHours", hours, localizeOptions); + + // 1 up to 30 days + } else if (unit === "day") { + const days = roundingMethod(dstNormalizedMinutes / minutesInDay); + return locale.formatDistance("xDays", days, localizeOptions); + + // 1 up to 12 months + } else if (unit === "month") { + const months = roundingMethod(dstNormalizedMinutes / minutesInMonth); + return months === 12 && defaultUnit !== "month" + ? locale.formatDistance("xYears", 1, localizeOptions) + : locale.formatDistance("xMonths", months, localizeOptions); + + // 1 year up to max Date + } else { + const years = roundingMethod(dstNormalizedMinutes / minutesInYear); + return locale.formatDistance("xYears", years, localizeOptions); + } +} + +// Fallback for modularized imports: +export default formatDistanceStrict; diff --git a/node_modules/date-fns/formatDistanceToNow.cjs b/node_modules/date-fns/formatDistanceToNow.cjs new file mode 100644 index 000000000..810a3914f --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow.cjs @@ -0,0 +1,98 @@ +"use strict"; +exports.formatDistanceToNow = formatDistanceToNow; +var _index = require("./constructNow.cjs"); + +var _index2 = require("./formatDistance.cjs"); + +/** + * The {@link formatDistanceToNow} function options. + */ + +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param date - The given date + * @param options - The object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +function formatDistanceToNow(date, options) { + return (0, _index2.formatDistance)( + date, + (0, _index.constructNow)(date), + options, + ); +} diff --git a/node_modules/date-fns/formatDistanceToNow.d.cts b/node_modules/date-fns/formatDistanceToNow.d.cts new file mode 100644 index 000000000..3448fdd5c --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow.d.cts @@ -0,0 +1,93 @@ +import type { FormatDistanceOptions } from "./formatDistance.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatDistanceToNow} function options. + */ +export interface FormatDistanceToNowOptions + extends FormatDistanceOptions, + ContextOptions {} +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param date - The given date + * @param options - The object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistanceToNow( + date: DateArg & {}, + options?: FormatDistanceToNowOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNow.d.ts b/node_modules/date-fns/formatDistanceToNow.d.ts new file mode 100644 index 000000000..3448fdd5c --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow.d.ts @@ -0,0 +1,93 @@ +import type { FormatDistanceOptions } from "./formatDistance.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatDistanceToNow} function options. + */ +export interface FormatDistanceToNowOptions + extends FormatDistanceOptions, + ContextOptions {} +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param date - The given date + * @param options - The object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +export declare function formatDistanceToNow( + date: DateArg & {}, + options?: FormatDistanceToNowOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNow.js b/node_modules/date-fns/formatDistanceToNow.js new file mode 100644 index 000000000..85798ac19 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow.js @@ -0,0 +1,95 @@ +import { constructNow } from "./constructNow.js"; + +import { formatDistance } from "./formatDistance.js"; + +/** + * The {@link formatDistanceToNow} function options. + */ + +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param date - The given date + * @param options - The object with options + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +export function formatDistanceToNow(date, options) { + return formatDistance(date, constructNow(date), options); +} + +// Fallback for modularized imports: +export default formatDistanceToNow; diff --git a/node_modules/date-fns/formatDistanceToNowStrict.cjs b/node_modules/date-fns/formatDistanceToNowStrict.cjs new file mode 100644 index 000000000..c28c62d15 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict.cjs @@ -0,0 +1,88 @@ +"use strict"; +exports.formatDistanceToNowStrict = formatDistanceToNowStrict; +var _index = require("./constructNow.cjs"); + +var _index2 = require("./formatDistanceStrict.cjs"); + +/** + * The {@link formatDistanceToNowStrict} function options. + */ + +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +function formatDistanceToNowStrict(date, options) { + return (0, _index2.formatDistanceStrict)( + date, + (0, _index.constructNow)(date), + options, + ); +} diff --git a/node_modules/date-fns/formatDistanceToNowStrict.d.cts b/node_modules/date-fns/formatDistanceToNowStrict.d.cts new file mode 100644 index 000000000..a3910b5bf --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict.d.cts @@ -0,0 +1,83 @@ +import type { FormatDistanceStrictOptions } from "./formatDistanceStrict.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatDistanceToNowStrict} function options. + */ +export interface FormatDistanceToNowStrictOptions + extends FormatDistanceStrictOptions, + ContextOptions {} +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +export declare function formatDistanceToNowStrict( + date: DateArg & {}, + options?: FormatDistanceToNowStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNowStrict.d.ts b/node_modules/date-fns/formatDistanceToNowStrict.d.ts new file mode 100644 index 000000000..a3910b5bf --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict.d.ts @@ -0,0 +1,83 @@ +import type { FormatDistanceStrictOptions } from "./formatDistanceStrict.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatDistanceToNowStrict} function options. + */ +export interface FormatDistanceToNowStrictOptions + extends FormatDistanceStrictOptions, + ContextOptions {} +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +export declare function formatDistanceToNowStrict( + date: DateArg & {}, + options?: FormatDistanceToNowStrictOptions, +): string; diff --git a/node_modules/date-fns/formatDistanceToNowStrict.js b/node_modules/date-fns/formatDistanceToNowStrict.js new file mode 100644 index 000000000..8a1159fb2 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict.js @@ -0,0 +1,85 @@ +import { constructNow } from "./constructNow.js"; + +import { formatDistanceStrict } from "./formatDistanceStrict.js"; + +/** + * The {@link formatDistanceToNowStrict} function options. + */ + +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The distance in words + * + * @throws `date` must not be Invalid Date + * @throws `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +export function formatDistanceToNowStrict(date, options) { + return formatDistanceStrict(date, constructNow(date), options); +} + +// Fallback for modularized imports: +export default formatDistanceToNowStrict; diff --git a/node_modules/date-fns/formatDuration.cjs b/node_modules/date-fns/formatDuration.cjs new file mode 100644 index 000000000..3935b9c2b --- /dev/null +++ b/node_modules/date-fns/formatDuration.cjs @@ -0,0 +1,103 @@ +"use strict"; +exports.formatDuration = formatDuration; + +var _index = require("./_lib/defaultLocale.cjs"); +var _index2 = require("./_lib/defaultOptions.cjs"); + +/** + * The {@link formatDuration} function options. + */ + +const defaultFormat = [ + "years", + "months", + "weeks", + "days", + "hours", + "minutes", + "seconds", +]; + +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param duration - The duration to format + * @param options - An object with options. + * + * @returns The formatted date string + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ +function formatDuration(duration, options) { + const defaultOptions = (0, _index2.getDefaultOptions)(); + const locale = + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; + const format = options?.format ?? defaultFormat; + const zero = options?.zero ?? false; + const delimiter = options?.delimiter ?? " "; + + if (!locale.formatDistance) { + return ""; + } + + const result = format + .reduce((acc, unit) => { + const token = `x${unit.replace(/(^.)/, (m) => m.toUpperCase())}`; + const value = duration[unit]; + if (value !== undefined && (zero || duration[unit])) { + return acc.concat(locale.formatDistance(token, value)); + } + return acc; + }, []) + .join(delimiter); + + return result; +} diff --git a/node_modules/date-fns/formatDuration.d.cts b/node_modules/date-fns/formatDuration.d.cts new file mode 100644 index 000000000..7ad7ed7e6 --- /dev/null +++ b/node_modules/date-fns/formatDuration.d.cts @@ -0,0 +1,75 @@ +import type { Duration, DurationUnit, LocalizedOptions } from "./types.ts"; +/** + * The {@link formatDuration} function options. + */ +export interface FormatDurationOptions + extends LocalizedOptions<"formatDistance"> { + /** The array of units to format */ + format?: DurationUnit[]; + /** Should be zeros be included in the output? */ + zero?: boolean; + /** The delimiter string to use */ + delimiter?: string; +} +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param duration - The duration to format + * @param options - An object with options. + * + * @returns The formatted date string + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ +export declare function formatDuration( + duration: Duration, + options?: FormatDurationOptions, +): string; diff --git a/node_modules/date-fns/formatDuration.d.ts b/node_modules/date-fns/formatDuration.d.ts new file mode 100644 index 000000000..7ad7ed7e6 --- /dev/null +++ b/node_modules/date-fns/formatDuration.d.ts @@ -0,0 +1,75 @@ +import type { Duration, DurationUnit, LocalizedOptions } from "./types.ts"; +/** + * The {@link formatDuration} function options. + */ +export interface FormatDurationOptions + extends LocalizedOptions<"formatDistance"> { + /** The array of units to format */ + format?: DurationUnit[]; + /** Should be zeros be included in the output? */ + zero?: boolean; + /** The delimiter string to use */ + delimiter?: string; +} +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param duration - The duration to format + * @param options - An object with options. + * + * @returns The formatted date string + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ +export declare function formatDuration( + duration: Duration, + options?: FormatDurationOptions, +): string; diff --git a/node_modules/date-fns/formatDuration.js b/node_modules/date-fns/formatDuration.js new file mode 100644 index 000000000..dd06f16eb --- /dev/null +++ b/node_modules/date-fns/formatDuration.js @@ -0,0 +1,102 @@ +import { defaultLocale } from "./_lib/defaultLocale.js"; +import { getDefaultOptions } from "./_lib/defaultOptions.js"; + +/** + * The {@link formatDuration} function options. + */ + +const defaultFormat = [ + "years", + "months", + "weeks", + "days", + "hours", + "minutes", + "seconds", +]; + +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param duration - The duration to format + * @param options - An object with options. + * + * @returns The formatted date string + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ +export function formatDuration(duration, options) { + const defaultOptions = getDefaultOptions(); + const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale; + const format = options?.format ?? defaultFormat; + const zero = options?.zero ?? false; + const delimiter = options?.delimiter ?? " "; + + if (!locale.formatDistance) { + return ""; + } + + const result = format + .reduce((acc, unit) => { + const token = `x${unit.replace(/(^.)/, (m) => m.toUpperCase())}`; + const value = duration[unit]; + if (value !== undefined && (zero || duration[unit])) { + return acc.concat(locale.formatDistance(token, value)); + } + return acc; + }, []) + .join(delimiter); + + return result; +} + +// Fallback for modularized imports: +export default formatDuration; diff --git a/node_modules/date-fns/formatISO.cjs b/node_modules/date-fns/formatISO.cjs new file mode 100644 index 000000000..15c76dddd --- /dev/null +++ b/node_modules/date-fns/formatISO.cjs @@ -0,0 +1,106 @@ +"use strict"; +exports.formatISO = formatISO; +var _index = require("./_lib/addLeadingZeros.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link formatISO} function options. + */ + +/** + * @name formatISO + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string (in local time zone) + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +function formatISO(date, options) { + const date_ = (0, _index2.toDate)(date, options?.in); + + if (isNaN(+date_)) { + throw new RangeError("Invalid time value"); + } + + const format = options?.format ?? "extended"; + const representation = options?.representation ?? "complete"; + + let result = ""; + let tzOffset = ""; + + const dateDelimiter = format === "extended" ? "-" : ""; + const timeDelimiter = format === "extended" ? ":" : ""; + + // Representation is either 'date' or 'complete' + if (representation !== "time") { + const day = (0, _index.addLeadingZeros)(date_.getDate(), 2); + const month = (0, _index.addLeadingZeros)(date_.getMonth() + 1, 2); + const year = (0, _index.addLeadingZeros)(date_.getFullYear(), 4); + + // yyyyMMdd or yyyy-MM-dd. + result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; + } + + // Representation is either 'time' or 'complete' + if (representation !== "date") { + // Add the timezone. + const offset = date_.getTimezoneOffset(); + + if (offset !== 0) { + const absoluteOffset = Math.abs(offset); + const hourOffset = (0, _index.addLeadingZeros)( + Math.trunc(absoluteOffset / 60), + 2, + ); + const minuteOffset = (0, _index.addLeadingZeros)(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = offset < 0 ? "+" : "-"; + + tzOffset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + tzOffset = "Z"; + } + + const hour = (0, _index.addLeadingZeros)(date_.getHours(), 2); + const minute = (0, _index.addLeadingZeros)(date_.getMinutes(), 2); + const second = (0, _index.addLeadingZeros)(date_.getSeconds(), 2); + + // If there's also date, separate it with time with 'T' + const separator = result === "" ? "" : "T"; + + // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined. + const time = [hour, minute, second].join(timeDelimiter); + + // HHmmss or HH:mm:ss. + result = `${result}${separator}${time}${tzOffset}`; + } + + return result; +} diff --git a/node_modules/date-fns/formatISO.d.cts b/node_modules/date-fns/formatISO.d.cts new file mode 100644 index 000000000..4d20da312 --- /dev/null +++ b/node_modules/date-fns/formatISO.d.cts @@ -0,0 +1,46 @@ +import type { ContextOptions, DateArg, ISOFormatOptions } from "./types.ts"; +/** + * The {@link formatISO} function options. + */ +export interface FormatISOOptions + extends ISOFormatOptions, + ContextOptions {} +/** + * @name formatISO + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string (in local time zone) + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +export declare function formatISO( + date: DateArg & {}, + options?: FormatISOOptions, +): string; diff --git a/node_modules/date-fns/formatISO.d.ts b/node_modules/date-fns/formatISO.d.ts new file mode 100644 index 000000000..4d20da312 --- /dev/null +++ b/node_modules/date-fns/formatISO.d.ts @@ -0,0 +1,46 @@ +import type { ContextOptions, DateArg, ISOFormatOptions } from "./types.ts"; +/** + * The {@link formatISO} function options. + */ +export interface FormatISOOptions + extends ISOFormatOptions, + ContextOptions {} +/** + * @name formatISO + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string (in local time zone) + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +export declare function formatISO( + date: DateArg & {}, + options?: FormatISOOptions, +): string; diff --git a/node_modules/date-fns/formatISO.js b/node_modules/date-fns/formatISO.js new file mode 100644 index 000000000..e75177df3 --- /dev/null +++ b/node_modules/date-fns/formatISO.js @@ -0,0 +1,104 @@ +import { addLeadingZeros } from "./_lib/addLeadingZeros.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link formatISO} function options. + */ + +/** + * @name formatISO + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string (in local time zone) + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +export function formatISO(date, options) { + const date_ = toDate(date, options?.in); + + if (isNaN(+date_)) { + throw new RangeError("Invalid time value"); + } + + const format = options?.format ?? "extended"; + const representation = options?.representation ?? "complete"; + + let result = ""; + let tzOffset = ""; + + const dateDelimiter = format === "extended" ? "-" : ""; + const timeDelimiter = format === "extended" ? ":" : ""; + + // Representation is either 'date' or 'complete' + if (representation !== "time") { + const day = addLeadingZeros(date_.getDate(), 2); + const month = addLeadingZeros(date_.getMonth() + 1, 2); + const year = addLeadingZeros(date_.getFullYear(), 4); + + // yyyyMMdd or yyyy-MM-dd. + result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; + } + + // Representation is either 'time' or 'complete' + if (representation !== "date") { + // Add the timezone. + const offset = date_.getTimezoneOffset(); + + if (offset !== 0) { + const absoluteOffset = Math.abs(offset); + const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = offset < 0 ? "+" : "-"; + + tzOffset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + tzOffset = "Z"; + } + + const hour = addLeadingZeros(date_.getHours(), 2); + const minute = addLeadingZeros(date_.getMinutes(), 2); + const second = addLeadingZeros(date_.getSeconds(), 2); + + // If there's also date, separate it with time with 'T' + const separator = result === "" ? "" : "T"; + + // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined. + const time = [hour, minute, second].join(timeDelimiter); + + // HHmmss or HH:mm:ss. + result = `${result}${separator}${time}${tzOffset}`; + } + + return result; +} + +// Fallback for modularized imports: +export default formatISO; diff --git a/node_modules/date-fns/formatISO9075.cjs b/node_modules/date-fns/formatISO9075.cjs new file mode 100644 index 000000000..41ccb556f --- /dev/null +++ b/node_modules/date-fns/formatISO9075.cjs @@ -0,0 +1,85 @@ +"use strict"; +exports.formatISO9075 = formatISO9075; +var _index = require("./_lib/addLeadingZeros.cjs"); +var _index2 = require("./isValid.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * The {@link formatISO9075} function options. + */ + +/** + * @name formatISO9075 + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +function formatISO9075(date, options) { + const date_ = (0, _index3.toDate)(date, options?.in); + + if (!(0, _index2.isValid)(date_)) { + throw new RangeError("Invalid time value"); + } + + const format = options?.format ?? "extended"; + const representation = options?.representation ?? "complete"; + + let result = ""; + + const dateDelimiter = format === "extended" ? "-" : ""; + const timeDelimiter = format === "extended" ? ":" : ""; + + // Representation is either 'date' or 'complete' + if (representation !== "time") { + const day = (0, _index.addLeadingZeros)(date_.getDate(), 2); + const month = (0, _index.addLeadingZeros)(date_.getMonth() + 1, 2); + const year = (0, _index.addLeadingZeros)(date_.getFullYear(), 4); + + // yyyyMMdd or yyyy-MM-dd. + result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; + } + + // Representation is either 'time' or 'complete' + if (representation !== "date") { + const hour = (0, _index.addLeadingZeros)(date_.getHours(), 2); + const minute = (0, _index.addLeadingZeros)(date_.getMinutes(), 2); + const second = (0, _index.addLeadingZeros)(date_.getSeconds(), 2); + + // If there's also date, separate it with time with a space + const separator = result === "" ? "" : " "; + + // HHmmss or HH:mm:ss. + result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`; + } + + return result; +} diff --git a/node_modules/date-fns/formatISO9075.d.cts b/node_modules/date-fns/formatISO9075.d.cts new file mode 100644 index 000000000..0a1bc8a57 --- /dev/null +++ b/node_modules/date-fns/formatISO9075.d.cts @@ -0,0 +1,46 @@ +import type { ContextOptions, DateArg, ISOFormatOptions } from "./types.ts"; +/** + * The {@link formatISO9075} function options. + */ +export interface FormatISO9075Options + extends ISOFormatOptions, + ContextOptions {} +/** + * @name formatISO9075 + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +export declare function formatISO9075( + date: DateArg & {}, + options?: FormatISO9075Options, +): string; diff --git a/node_modules/date-fns/formatISO9075.d.ts b/node_modules/date-fns/formatISO9075.d.ts new file mode 100644 index 000000000..0a1bc8a57 --- /dev/null +++ b/node_modules/date-fns/formatISO9075.d.ts @@ -0,0 +1,46 @@ +import type { ContextOptions, DateArg, ISOFormatOptions } from "./types.ts"; +/** + * The {@link formatISO9075} function options. + */ +export interface FormatISO9075Options + extends ISOFormatOptions, + ContextOptions {} +/** + * @name formatISO9075 + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +export declare function formatISO9075( + date: DateArg & {}, + options?: FormatISO9075Options, +): string; diff --git a/node_modules/date-fns/formatISO9075.js b/node_modules/date-fns/formatISO9075.js new file mode 100644 index 000000000..cea94539f --- /dev/null +++ b/node_modules/date-fns/formatISO9075.js @@ -0,0 +1,86 @@ +import { addLeadingZeros } from "./_lib/addLeadingZeros.js"; +import { isValid } from "./isValid.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link formatISO9075} function options. + */ + +/** + * @name formatISO9075 + * @category Common Helpers + * @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). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +export function formatISO9075(date, options) { + const date_ = toDate(date, options?.in); + + if (!isValid(date_)) { + throw new RangeError("Invalid time value"); + } + + const format = options?.format ?? "extended"; + const representation = options?.representation ?? "complete"; + + let result = ""; + + const dateDelimiter = format === "extended" ? "-" : ""; + const timeDelimiter = format === "extended" ? ":" : ""; + + // Representation is either 'date' or 'complete' + if (representation !== "time") { + const day = addLeadingZeros(date_.getDate(), 2); + const month = addLeadingZeros(date_.getMonth() + 1, 2); + const year = addLeadingZeros(date_.getFullYear(), 4); + + // yyyyMMdd or yyyy-MM-dd. + result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; + } + + // Representation is either 'time' or 'complete' + if (representation !== "date") { + const hour = addLeadingZeros(date_.getHours(), 2); + const minute = addLeadingZeros(date_.getMinutes(), 2); + const second = addLeadingZeros(date_.getSeconds(), 2); + + // If there's also date, separate it with time with a space + const separator = result === "" ? "" : " "; + + // HHmmss or HH:mm:ss. + result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`; + } + + return result; +} + +// Fallback for modularized imports: +export default formatISO9075; diff --git a/node_modules/date-fns/formatISODuration.cjs b/node_modules/date-fns/formatISODuration.cjs new file mode 100644 index 000000000..7220173f0 --- /dev/null +++ b/node_modules/date-fns/formatISODuration.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.formatISODuration = formatISODuration; + +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) + * + * @param duration - The duration to format + * + * @returns The ISO 8601 duration string + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +function formatISODuration(duration) { + const { + years = 0, + months = 0, + days = 0, + hours = 0, + minutes = 0, + seconds = 0, + } = duration; + + return `P${years}Y${months}M${days}DT${hours}H${minutes}M${seconds}S`; +} diff --git a/node_modules/date-fns/formatISODuration.d.cts b/node_modules/date-fns/formatISODuration.d.cts new file mode 100644 index 000000000..bbccc73b0 --- /dev/null +++ b/node_modules/date-fns/formatISODuration.d.cts @@ -0,0 +1,26 @@ +import type { Duration } from "./types.ts"; +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) + * + * @param duration - The duration to format + * + * @returns The ISO 8601 duration string + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +export declare function formatISODuration(duration: Duration): string; diff --git a/node_modules/date-fns/formatISODuration.d.ts b/node_modules/date-fns/formatISODuration.d.ts new file mode 100644 index 000000000..bbccc73b0 --- /dev/null +++ b/node_modules/date-fns/formatISODuration.d.ts @@ -0,0 +1,26 @@ +import type { Duration } from "./types.ts"; +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) + * + * @param duration - The duration to format + * + * @returns The ISO 8601 duration string + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +export declare function formatISODuration(duration: Duration): string; diff --git a/node_modules/date-fns/formatISODuration.js b/node_modules/date-fns/formatISODuration.js new file mode 100644 index 000000000..e40c538fb --- /dev/null +++ b/node_modules/date-fns/formatISODuration.js @@ -0,0 +1,39 @@ +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) + * + * @param duration - The duration to format + * + * @returns The ISO 8601 duration string + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +export function formatISODuration(duration) { + const { + years = 0, + months = 0, + days = 0, + hours = 0, + minutes = 0, + seconds = 0, + } = duration; + + return `P${years}Y${months}M${days}DT${hours}H${minutes}M${seconds}S`; +} + +// Fallback for modularized imports: +export default formatISODuration; diff --git a/node_modules/date-fns/formatRFC3339.cjs b/node_modules/date-fns/formatRFC3339.cjs new file mode 100644 index 000000000..264945c96 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339.cjs @@ -0,0 +1,84 @@ +"use strict"; +exports.formatRFC3339 = formatRFC3339; +var _index = require("./_lib/addLeadingZeros.cjs"); +var _index2 = require("./isValid.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * The {@link formatRFC3339} function options. + */ + +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { + * fractionDigits: 3 + * }) + * //=> '2019-09-18T19:00:52.234Z' + */ +function formatRFC3339(date, options) { + const date_ = (0, _index3.toDate)(date, options?.in); + + if (!(0, _index2.isValid)(date_)) { + throw new RangeError("Invalid time value"); + } + + const fractionDigits = options?.fractionDigits ?? 0; + + const day = (0, _index.addLeadingZeros)(date_.getDate(), 2); + const month = (0, _index.addLeadingZeros)(date_.getMonth() + 1, 2); + const year = date_.getFullYear(); + + const hour = (0, _index.addLeadingZeros)(date_.getHours(), 2); + const minute = (0, _index.addLeadingZeros)(date_.getMinutes(), 2); + const second = (0, _index.addLeadingZeros)(date_.getSeconds(), 2); + + let fractionalSecond = ""; + if (fractionDigits > 0) { + const milliseconds = date_.getMilliseconds(); + const fractionalSeconds = Math.trunc( + milliseconds * Math.pow(10, fractionDigits - 3), + ); + fractionalSecond = + "." + (0, _index.addLeadingZeros)(fractionalSeconds, fractionDigits); + } + + let offset = ""; + const tzOffset = date_.getTimezoneOffset(); + + if (tzOffset !== 0) { + const absoluteOffset = Math.abs(tzOffset); + const hourOffset = (0, _index.addLeadingZeros)( + Math.trunc(absoluteOffset / 60), + 2, + ); + const minuteOffset = (0, _index.addLeadingZeros)(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = tzOffset < 0 ? "+" : "-"; + + offset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + offset = "Z"; + } + + return `${year}-${month}-${day}T${hour}:${minute}:${second}${fractionalSecond}${offset}`; +} diff --git a/node_modules/date-fns/formatRFC3339.d.cts b/node_modules/date-fns/formatRFC3339.d.cts new file mode 100644 index 000000000..ae0d0ba1d --- /dev/null +++ b/node_modules/date-fns/formatRFC3339.d.cts @@ -0,0 +1,39 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatRFC3339} function options. + */ +export interface FormatRFC3339Options extends ContextOptions { + /** The number of digits after the decimal point after seconds, defaults to 0 */ + fractionDigits?: 0 | 1 | 2 | 3; +} +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { + * fractionDigits: 3 + * }) + * //=> '2019-09-18T19:00:52.234Z' + */ +export declare function formatRFC3339( + date: DateArg & {}, + options?: FormatRFC3339Options, +): string; diff --git a/node_modules/date-fns/formatRFC3339.d.ts b/node_modules/date-fns/formatRFC3339.d.ts new file mode 100644 index 000000000..ae0d0ba1d --- /dev/null +++ b/node_modules/date-fns/formatRFC3339.d.ts @@ -0,0 +1,39 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link formatRFC3339} function options. + */ +export interface FormatRFC3339Options extends ContextOptions { + /** The number of digits after the decimal point after seconds, defaults to 0 */ + fractionDigits?: 0 | 1 | 2 | 3; +} +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { + * fractionDigits: 3 + * }) + * //=> '2019-09-18T19:00:52.234Z' + */ +export declare function formatRFC3339( + date: DateArg & {}, + options?: FormatRFC3339Options, +): string; diff --git a/node_modules/date-fns/formatRFC3339.js b/node_modules/date-fns/formatRFC3339.js new file mode 100644 index 000000000..0599f9af2 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339.js @@ -0,0 +1,81 @@ +import { addLeadingZeros } from "./_lib/addLeadingZeros.js"; +import { isValid } from "./isValid.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link formatRFC3339} function options. + */ + +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param date - The original date + * @param options - An object with options. + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { + * fractionDigits: 3 + * }) + * //=> '2019-09-18T19:00:52.234Z' + */ +export function formatRFC3339(date, options) { + const date_ = toDate(date, options?.in); + + if (!isValid(date_)) { + throw new RangeError("Invalid time value"); + } + + const fractionDigits = options?.fractionDigits ?? 0; + + const day = addLeadingZeros(date_.getDate(), 2); + const month = addLeadingZeros(date_.getMonth() + 1, 2); + const year = date_.getFullYear(); + + const hour = addLeadingZeros(date_.getHours(), 2); + const minute = addLeadingZeros(date_.getMinutes(), 2); + const second = addLeadingZeros(date_.getSeconds(), 2); + + let fractionalSecond = ""; + if (fractionDigits > 0) { + const milliseconds = date_.getMilliseconds(); + const fractionalSeconds = Math.trunc( + milliseconds * Math.pow(10, fractionDigits - 3), + ); + fractionalSecond = "." + addLeadingZeros(fractionalSeconds, fractionDigits); + } + + let offset = ""; + const tzOffset = date_.getTimezoneOffset(); + + if (tzOffset !== 0) { + const absoluteOffset = Math.abs(tzOffset); + const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + // If less than 0, the sign is +, because it is ahead of time. + const sign = tzOffset < 0 ? "+" : "-"; + + offset = `${sign}${hourOffset}:${minuteOffset}`; + } else { + offset = "Z"; + } + + return `${year}-${month}-${day}T${hour}:${minute}:${second}${fractionalSecond}${offset}`; +} + +// Fallback for modularized imports: +export default formatRFC3339; diff --git a/node_modules/date-fns/formatRFC7231.cjs b/node_modules/date-fns/formatRFC7231.cjs new file mode 100644 index 000000000..8555dd834 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231.cjs @@ -0,0 +1,62 @@ +"use strict"; +exports.formatRFC7231 = formatRFC7231; +var _index = require("./_lib/addLeadingZeros.cjs"); +var _index2 = require("./isValid.cjs"); +var _index3 = require("./toDate.cjs"); + +const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + +const months = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", +]; + +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param date - The original date + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ +function formatRFC7231(date) { + const _date = (0, _index3.toDate)(date); + + if (!(0, _index2.isValid)(_date)) { + throw new RangeError("Invalid time value"); + } + + const dayName = days[_date.getUTCDay()]; + const dayOfMonth = (0, _index.addLeadingZeros)(_date.getUTCDate(), 2); + const monthName = months[_date.getUTCMonth()]; + const year = _date.getUTCFullYear(); + + const hour = (0, _index.addLeadingZeros)(_date.getUTCHours(), 2); + const minute = (0, _index.addLeadingZeros)(_date.getUTCMinutes(), 2); + const second = (0, _index.addLeadingZeros)(_date.getUTCSeconds(), 2); + + // Result variables. + return `${dayName}, ${dayOfMonth} ${monthName} ${year} ${hour}:${minute}:${second} GMT`; +} diff --git a/node_modules/date-fns/formatRFC7231.d.cts b/node_modules/date-fns/formatRFC7231.d.cts new file mode 100644 index 000000000..e9ea8e208 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231.d.cts @@ -0,0 +1,22 @@ +import type { DateArg } from "./types.ts"; +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param date - The original date + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ +export declare function formatRFC7231(date: DateArg & {}): string; diff --git a/node_modules/date-fns/formatRFC7231.d.ts b/node_modules/date-fns/formatRFC7231.d.ts new file mode 100644 index 000000000..e9ea8e208 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231.d.ts @@ -0,0 +1,22 @@ +import type { DateArg } from "./types.ts"; +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param date - The original date + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ +export declare function formatRFC7231(date: DateArg & {}): string; diff --git a/node_modules/date-fns/formatRFC7231.js b/node_modules/date-fns/formatRFC7231.js new file mode 100644 index 000000000..e1e1b8813 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231.js @@ -0,0 +1,63 @@ +import { addLeadingZeros } from "./_lib/addLeadingZeros.js"; +import { isValid } from "./isValid.js"; +import { toDate } from "./toDate.js"; + +const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + +const months = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", +]; + +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param date - The original date + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ +export function formatRFC7231(date) { + const _date = toDate(date); + + if (!isValid(_date)) { + throw new RangeError("Invalid time value"); + } + + const dayName = days[_date.getUTCDay()]; + const dayOfMonth = addLeadingZeros(_date.getUTCDate(), 2); + const monthName = months[_date.getUTCMonth()]; + const year = _date.getUTCFullYear(); + + const hour = addLeadingZeros(_date.getUTCHours(), 2); + const minute = addLeadingZeros(_date.getUTCMinutes(), 2); + const second = addLeadingZeros(_date.getUTCSeconds(), 2); + + // Result variables. + return `${dayName}, ${dayOfMonth} ${monthName} ${year} ${hour}:${minute}:${second} GMT`; +} + +// Fallback for modularized imports: +export default formatRFC7231; diff --git a/node_modules/date-fns/formatRelative.cjs b/node_modules/date-fns/formatRelative.cjs new file mode 100644 index 000000000..8b1512f30 --- /dev/null +++ b/node_modules/date-fns/formatRelative.cjs @@ -0,0 +1,92 @@ +"use strict"; +exports.formatRelative = formatRelative; +var _index = require("./_lib/defaultLocale.cjs"); +var _index2 = require("./_lib/defaultOptions.cjs"); +var _index3 = require("./_lib/normalizeDates.cjs"); +var _index4 = require("./differenceInCalendarDays.cjs"); +var _index5 = require("./format.cjs"); + +/** + * The {@link formatRelative} function options. + */ + +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param date - The date to format + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The date in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(subDays(new Date(), 6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +function formatRelative(date, baseDate, options) { + const [date_, baseDate_] = (0, _index3.normalizeDates)( + options?.in, + date, + baseDate, + ); + + const defaultOptions = (0, _index2.getDefaultOptions)(); + const locale = + options?.locale ?? defaultOptions.locale ?? _index.defaultLocale; + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const diff = (0, _index4.differenceInCalendarDays)(date_, baseDate_); + + if (isNaN(diff)) { + throw new RangeError("Invalid time value"); + } + + let token; + if (diff < -6) { + token = "other"; + } else if (diff < -1) { + token = "lastWeek"; + } else if (diff < 0) { + token = "yesterday"; + } else if (diff < 1) { + token = "today"; + } else if (diff < 2) { + token = "tomorrow"; + } else if (diff < 7) { + token = "nextWeek"; + } else { + token = "other"; + } + + const formatStr = locale.formatRelative(token, date_, baseDate_, { + locale, + weekStartsOn, + }); + return (0, _index5.format)(date_, formatStr, { locale, weekStartsOn }); +} diff --git a/node_modules/date-fns/formatRelative.d.cts b/node_modules/date-fns/formatRelative.d.cts new file mode 100644 index 000000000..2ae84935f --- /dev/null +++ b/node_modules/date-fns/formatRelative.d.cts @@ -0,0 +1,54 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link formatRelative} function options. + */ +export interface FormatRelativeOptions + extends LocalizedOptions< + "options" | "localize" | "formatLong" | "formatRelative" + >, + WeekOptions, + ContextOptions {} +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param date - The date to format + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The date in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(subDays(new Date(), 6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +export declare function formatRelative( + date: DateArg & {}, + baseDate: DateArg & {}, + options?: FormatRelativeOptions, +): string; diff --git a/node_modules/date-fns/formatRelative.d.ts b/node_modules/date-fns/formatRelative.d.ts new file mode 100644 index 000000000..2ae84935f --- /dev/null +++ b/node_modules/date-fns/formatRelative.d.ts @@ -0,0 +1,54 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link formatRelative} function options. + */ +export interface FormatRelativeOptions + extends LocalizedOptions< + "options" | "localize" | "formatLong" | "formatRelative" + >, + WeekOptions, + ContextOptions {} +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param date - The date to format + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The date in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(subDays(new Date(), 6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +export declare function formatRelative( + date: DateArg & {}, + baseDate: DateArg & {}, + options?: FormatRelativeOptions, +): string; diff --git a/node_modules/date-fns/formatRelative.js b/node_modules/date-fns/formatRelative.js new file mode 100644 index 000000000..a564b0415 --- /dev/null +++ b/node_modules/date-fns/formatRelative.js @@ -0,0 +1,88 @@ +import { defaultLocale } from "./_lib/defaultLocale.js"; +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { differenceInCalendarDays } from "./differenceInCalendarDays.js"; +import { format } from "./format.js"; + +/** + * The {@link formatRelative} function options. + */ + +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param date - The date to format + * @param baseDate - The date to compare with + * @param options - An object with options + * + * @returns The date in words + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.locale` must contain `localize` property + * @throws `options.locale` must contain `formatLong` property + * @throws `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(subDays(new Date(), 6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +export function formatRelative(date, baseDate, options) { + const [date_, baseDate_] = normalizeDates(options?.in, date, baseDate); + + const defaultOptions = getDefaultOptions(); + const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale; + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const diff = differenceInCalendarDays(date_, baseDate_); + + if (isNaN(diff)) { + throw new RangeError("Invalid time value"); + } + + let token; + if (diff < -6) { + token = "other"; + } else if (diff < -1) { + token = "lastWeek"; + } else if (diff < 0) { + token = "yesterday"; + } else if (diff < 1) { + token = "today"; + } else if (diff < 2) { + token = "tomorrow"; + } else if (diff < 7) { + token = "nextWeek"; + } else { + token = "other"; + } + + const formatStr = locale.formatRelative(token, date_, baseDate_, { + locale, + weekStartsOn, + }); + return format(date_, formatStr, { locale, weekStartsOn }); +} + +// Fallback for modularized imports: +export default formatRelative; diff --git a/node_modules/date-fns/fp.cjs b/node_modules/date-fns/fp.cjs new file mode 100644 index 000000000..677e69cf0 --- /dev/null +++ b/node_modules/date-fns/fp.cjs @@ -0,0 +1,4358 @@ +"use strict"; + +var _index = require("./fp/add.cjs"); +Object.keys(_index).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index[key]; + }, + }); +}); +var _index2 = require("./fp/addBusinessDays.cjs"); +Object.keys(_index2).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index2[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index2[key]; + }, + }); +}); +var _index3 = require("./fp/addBusinessDaysWithOptions.cjs"); +Object.keys(_index3).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index3[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index3[key]; + }, + }); +}); +var _index4 = require("./fp/addDays.cjs"); +Object.keys(_index4).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index4[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index4[key]; + }, + }); +}); +var _index5 = require("./fp/addDaysWithOptions.cjs"); +Object.keys(_index5).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index5[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index5[key]; + }, + }); +}); +var _index6 = require("./fp/addHours.cjs"); +Object.keys(_index6).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index6[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index6[key]; + }, + }); +}); +var _index7 = require("./fp/addHoursWithOptions.cjs"); +Object.keys(_index7).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index7[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index7[key]; + }, + }); +}); +var _index8 = require("./fp/addISOWeekYears.cjs"); +Object.keys(_index8).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index8[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index8[key]; + }, + }); +}); +var _index9 = require("./fp/addISOWeekYearsWithOptions.cjs"); +Object.keys(_index9).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index9[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index9[key]; + }, + }); +}); +var _index0 = require("./fp/addMilliseconds.cjs"); +Object.keys(_index0).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index0[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index0[key]; + }, + }); +}); +var _index1 = require("./fp/addMillisecondsWithOptions.cjs"); +Object.keys(_index1).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index1[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index1[key]; + }, + }); +}); +var _index10 = require("./fp/addMinutes.cjs"); +Object.keys(_index10).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index10[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index10[key]; + }, + }); +}); +var _index11 = require("./fp/addMinutesWithOptions.cjs"); +Object.keys(_index11).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index11[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index11[key]; + }, + }); +}); +var _index12 = require("./fp/addMonths.cjs"); +Object.keys(_index12).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index12[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index12[key]; + }, + }); +}); +var _index13 = require("./fp/addMonthsWithOptions.cjs"); +Object.keys(_index13).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index13[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index13[key]; + }, + }); +}); +var _index14 = require("./fp/addQuarters.cjs"); +Object.keys(_index14).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index14[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index14[key]; + }, + }); +}); +var _index15 = require("./fp/addQuartersWithOptions.cjs"); +Object.keys(_index15).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index15[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index15[key]; + }, + }); +}); +var _index16 = require("./fp/addSeconds.cjs"); +Object.keys(_index16).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index16[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index16[key]; + }, + }); +}); +var _index17 = require("./fp/addSecondsWithOptions.cjs"); +Object.keys(_index17).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index17[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index17[key]; + }, + }); +}); +var _index18 = require("./fp/addWeeks.cjs"); +Object.keys(_index18).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index18[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index18[key]; + }, + }); +}); +var _index19 = require("./fp/addWeeksWithOptions.cjs"); +Object.keys(_index19).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index19[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index19[key]; + }, + }); +}); +var _index20 = require("./fp/addWithOptions.cjs"); +Object.keys(_index20).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index20[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index20[key]; + }, + }); +}); +var _index21 = require("./fp/addYears.cjs"); +Object.keys(_index21).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index21[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index21[key]; + }, + }); +}); +var _index22 = require("./fp/addYearsWithOptions.cjs"); +Object.keys(_index22).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index22[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index22[key]; + }, + }); +}); +var _index23 = require("./fp/areIntervalsOverlapping.cjs"); +Object.keys(_index23).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index23[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index23[key]; + }, + }); +}); +var _index24 = require("./fp/areIntervalsOverlappingWithOptions.cjs"); +Object.keys(_index24).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index24[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index24[key]; + }, + }); +}); +var _index25 = require("./fp/clamp.cjs"); +Object.keys(_index25).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index25[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index25[key]; + }, + }); +}); +var _index26 = require("./fp/clampWithOptions.cjs"); +Object.keys(_index26).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index26[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index26[key]; + }, + }); +}); +var _index27 = require("./fp/closestIndexTo.cjs"); +Object.keys(_index27).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index27[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index27[key]; + }, + }); +}); +var _index28 = require("./fp/closestTo.cjs"); +Object.keys(_index28).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index28[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index28[key]; + }, + }); +}); +var _index29 = require("./fp/closestToWithOptions.cjs"); +Object.keys(_index29).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index29[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index29[key]; + }, + }); +}); +var _index30 = require("./fp/compareAsc.cjs"); +Object.keys(_index30).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index30[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index30[key]; + }, + }); +}); +var _index31 = require("./fp/compareDesc.cjs"); +Object.keys(_index31).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index31[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index31[key]; + }, + }); +}); +var _index32 = require("./fp/constructFrom.cjs"); +Object.keys(_index32).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index32[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index32[key]; + }, + }); +}); +var _index33 = require("./fp/daysToWeeks.cjs"); +Object.keys(_index33).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index33[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index33[key]; + }, + }); +}); +var _index34 = require("./fp/differenceInBusinessDays.cjs"); +Object.keys(_index34).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index34[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index34[key]; + }, + }); +}); +var _index35 = require("./fp/differenceInBusinessDaysWithOptions.cjs"); +Object.keys(_index35).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index35[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index35[key]; + }, + }); +}); +var _index36 = require("./fp/differenceInCalendarDays.cjs"); +Object.keys(_index36).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index36[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index36[key]; + }, + }); +}); +var _index37 = require("./fp/differenceInCalendarDaysWithOptions.cjs"); +Object.keys(_index37).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index37[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index37[key]; + }, + }); +}); +var _index38 = require("./fp/differenceInCalendarISOWeekYears.cjs"); +Object.keys(_index38).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index38[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index38[key]; + }, + }); +}); +var _index39 = require("./fp/differenceInCalendarISOWeekYearsWithOptions.cjs"); +Object.keys(_index39).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index39[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index39[key]; + }, + }); +}); +var _index40 = require("./fp/differenceInCalendarISOWeeks.cjs"); +Object.keys(_index40).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index40[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index40[key]; + }, + }); +}); +var _index41 = require("./fp/differenceInCalendarISOWeeksWithOptions.cjs"); +Object.keys(_index41).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index41[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index41[key]; + }, + }); +}); +var _index42 = require("./fp/differenceInCalendarMonths.cjs"); +Object.keys(_index42).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index42[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index42[key]; + }, + }); +}); +var _index43 = require("./fp/differenceInCalendarMonthsWithOptions.cjs"); +Object.keys(_index43).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index43[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index43[key]; + }, + }); +}); +var _index44 = require("./fp/differenceInCalendarQuarters.cjs"); +Object.keys(_index44).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index44[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index44[key]; + }, + }); +}); +var _index45 = require("./fp/differenceInCalendarQuartersWithOptions.cjs"); +Object.keys(_index45).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index45[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index45[key]; + }, + }); +}); +var _index46 = require("./fp/differenceInCalendarWeeks.cjs"); +Object.keys(_index46).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index46[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index46[key]; + }, + }); +}); +var _index47 = require("./fp/differenceInCalendarWeeksWithOptions.cjs"); +Object.keys(_index47).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index47[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index47[key]; + }, + }); +}); +var _index48 = require("./fp/differenceInCalendarYears.cjs"); +Object.keys(_index48).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index48[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index48[key]; + }, + }); +}); +var _index49 = require("./fp/differenceInCalendarYearsWithOptions.cjs"); +Object.keys(_index49).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index49[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index49[key]; + }, + }); +}); +var _index50 = require("./fp/differenceInDays.cjs"); +Object.keys(_index50).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index50[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index50[key]; + }, + }); +}); +var _index51 = require("./fp/differenceInDaysWithOptions.cjs"); +Object.keys(_index51).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index51[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index51[key]; + }, + }); +}); +var _index52 = require("./fp/differenceInHours.cjs"); +Object.keys(_index52).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index52[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index52[key]; + }, + }); +}); +var _index53 = require("./fp/differenceInHoursWithOptions.cjs"); +Object.keys(_index53).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index53[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index53[key]; + }, + }); +}); +var _index54 = require("./fp/differenceInISOWeekYears.cjs"); +Object.keys(_index54).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index54[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index54[key]; + }, + }); +}); +var _index55 = require("./fp/differenceInISOWeekYearsWithOptions.cjs"); +Object.keys(_index55).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index55[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index55[key]; + }, + }); +}); +var _index56 = require("./fp/differenceInMilliseconds.cjs"); +Object.keys(_index56).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index56[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index56[key]; + }, + }); +}); +var _index57 = require("./fp/differenceInMinutes.cjs"); +Object.keys(_index57).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index57[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index57[key]; + }, + }); +}); +var _index58 = require("./fp/differenceInMinutesWithOptions.cjs"); +Object.keys(_index58).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index58[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index58[key]; + }, + }); +}); +var _index59 = require("./fp/differenceInMonths.cjs"); +Object.keys(_index59).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index59[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index59[key]; + }, + }); +}); +var _index60 = require("./fp/differenceInMonthsWithOptions.cjs"); +Object.keys(_index60).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index60[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index60[key]; + }, + }); +}); +var _index61 = require("./fp/differenceInQuarters.cjs"); +Object.keys(_index61).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index61[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index61[key]; + }, + }); +}); +var _index62 = require("./fp/differenceInQuartersWithOptions.cjs"); +Object.keys(_index62).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index62[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index62[key]; + }, + }); +}); +var _index63 = require("./fp/differenceInSeconds.cjs"); +Object.keys(_index63).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index63[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index63[key]; + }, + }); +}); +var _index64 = require("./fp/differenceInSecondsWithOptions.cjs"); +Object.keys(_index64).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index64[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index64[key]; + }, + }); +}); +var _index65 = require("./fp/differenceInWeeks.cjs"); +Object.keys(_index65).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index65[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index65[key]; + }, + }); +}); +var _index66 = require("./fp/differenceInWeeksWithOptions.cjs"); +Object.keys(_index66).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index66[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index66[key]; + }, + }); +}); +var _index67 = require("./fp/differenceInYears.cjs"); +Object.keys(_index67).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index67[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index67[key]; + }, + }); +}); +var _index68 = require("./fp/differenceInYearsWithOptions.cjs"); +Object.keys(_index68).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index68[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index68[key]; + }, + }); +}); +var _index69 = require("./fp/eachDayOfInterval.cjs"); +Object.keys(_index69).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index69[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index69[key]; + }, + }); +}); +var _index70 = require("./fp/eachDayOfIntervalWithOptions.cjs"); +Object.keys(_index70).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index70[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index70[key]; + }, + }); +}); +var _index71 = require("./fp/eachHourOfInterval.cjs"); +Object.keys(_index71).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index71[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index71[key]; + }, + }); +}); +var _index72 = require("./fp/eachHourOfIntervalWithOptions.cjs"); +Object.keys(_index72).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index72[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index72[key]; + }, + }); +}); +var _index73 = require("./fp/eachMinuteOfInterval.cjs"); +Object.keys(_index73).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index73[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index73[key]; + }, + }); +}); +var _index74 = require("./fp/eachMinuteOfIntervalWithOptions.cjs"); +Object.keys(_index74).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index74[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index74[key]; + }, + }); +}); +var _index75 = require("./fp/eachMonthOfInterval.cjs"); +Object.keys(_index75).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index75[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index75[key]; + }, + }); +}); +var _index76 = require("./fp/eachMonthOfIntervalWithOptions.cjs"); +Object.keys(_index76).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index76[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index76[key]; + }, + }); +}); +var _index77 = require("./fp/eachQuarterOfInterval.cjs"); +Object.keys(_index77).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index77[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index77[key]; + }, + }); +}); +var _index78 = require("./fp/eachQuarterOfIntervalWithOptions.cjs"); +Object.keys(_index78).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index78[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index78[key]; + }, + }); +}); +var _index79 = require("./fp/eachWeekOfInterval.cjs"); +Object.keys(_index79).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index79[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index79[key]; + }, + }); +}); +var _index80 = require("./fp/eachWeekOfIntervalWithOptions.cjs"); +Object.keys(_index80).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index80[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index80[key]; + }, + }); +}); +var _index81 = require("./fp/eachWeekendOfInterval.cjs"); +Object.keys(_index81).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index81[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index81[key]; + }, + }); +}); +var _index82 = require("./fp/eachWeekendOfIntervalWithOptions.cjs"); +Object.keys(_index82).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index82[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index82[key]; + }, + }); +}); +var _index83 = require("./fp/eachWeekendOfMonth.cjs"); +Object.keys(_index83).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index83[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index83[key]; + }, + }); +}); +var _index84 = require("./fp/eachWeekendOfMonthWithOptions.cjs"); +Object.keys(_index84).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index84[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index84[key]; + }, + }); +}); +var _index85 = require("./fp/eachWeekendOfYear.cjs"); +Object.keys(_index85).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index85[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index85[key]; + }, + }); +}); +var _index86 = require("./fp/eachWeekendOfYearWithOptions.cjs"); +Object.keys(_index86).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index86[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index86[key]; + }, + }); +}); +var _index87 = require("./fp/eachYearOfInterval.cjs"); +Object.keys(_index87).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index87[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index87[key]; + }, + }); +}); +var _index88 = require("./fp/eachYearOfIntervalWithOptions.cjs"); +Object.keys(_index88).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index88[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index88[key]; + }, + }); +}); +var _index89 = require("./fp/endOfDay.cjs"); +Object.keys(_index89).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index89[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index89[key]; + }, + }); +}); +var _index90 = require("./fp/endOfDayWithOptions.cjs"); +Object.keys(_index90).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index90[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index90[key]; + }, + }); +}); +var _index91 = require("./fp/endOfDecade.cjs"); +Object.keys(_index91).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index91[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index91[key]; + }, + }); +}); +var _index92 = require("./fp/endOfDecadeWithOptions.cjs"); +Object.keys(_index92).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index92[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index92[key]; + }, + }); +}); +var _index93 = require("./fp/endOfHour.cjs"); +Object.keys(_index93).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index93[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index93[key]; + }, + }); +}); +var _index94 = require("./fp/endOfHourWithOptions.cjs"); +Object.keys(_index94).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index94[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index94[key]; + }, + }); +}); +var _index95 = require("./fp/endOfISOWeek.cjs"); +Object.keys(_index95).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index95[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index95[key]; + }, + }); +}); +var _index96 = require("./fp/endOfISOWeekWithOptions.cjs"); +Object.keys(_index96).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index96[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index96[key]; + }, + }); +}); +var _index97 = require("./fp/endOfISOWeekYear.cjs"); +Object.keys(_index97).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index97[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index97[key]; + }, + }); +}); +var _index98 = require("./fp/endOfISOWeekYearWithOptions.cjs"); +Object.keys(_index98).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index98[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index98[key]; + }, + }); +}); +var _index99 = require("./fp/endOfMinute.cjs"); +Object.keys(_index99).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index99[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index99[key]; + }, + }); +}); +var _index100 = require("./fp/endOfMinuteWithOptions.cjs"); +Object.keys(_index100).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index100[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index100[key]; + }, + }); +}); +var _index101 = require("./fp/endOfMonth.cjs"); +Object.keys(_index101).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index101[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index101[key]; + }, + }); +}); +var _index102 = require("./fp/endOfMonthWithOptions.cjs"); +Object.keys(_index102).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index102[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index102[key]; + }, + }); +}); +var _index103 = require("./fp/endOfQuarter.cjs"); +Object.keys(_index103).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index103[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index103[key]; + }, + }); +}); +var _index104 = require("./fp/endOfQuarterWithOptions.cjs"); +Object.keys(_index104).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index104[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index104[key]; + }, + }); +}); +var _index105 = require("./fp/endOfSecond.cjs"); +Object.keys(_index105).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index105[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index105[key]; + }, + }); +}); +var _index106 = require("./fp/endOfSecondWithOptions.cjs"); +Object.keys(_index106).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index106[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index106[key]; + }, + }); +}); +var _index107 = require("./fp/endOfWeek.cjs"); +Object.keys(_index107).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index107[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index107[key]; + }, + }); +}); +var _index108 = require("./fp/endOfWeekWithOptions.cjs"); +Object.keys(_index108).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index108[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index108[key]; + }, + }); +}); +var _index109 = require("./fp/endOfYear.cjs"); +Object.keys(_index109).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index109[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index109[key]; + }, + }); +}); +var _index110 = require("./fp/endOfYearWithOptions.cjs"); +Object.keys(_index110).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index110[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index110[key]; + }, + }); +}); +var _index111 = require("./fp/format.cjs"); +Object.keys(_index111).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index111[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index111[key]; + }, + }); +}); +var _index112 = require("./fp/formatDistance.cjs"); +Object.keys(_index112).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index112[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index112[key]; + }, + }); +}); +var _index113 = require("./fp/formatDistanceStrict.cjs"); +Object.keys(_index113).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index113[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index113[key]; + }, + }); +}); +var _index114 = require("./fp/formatDistanceStrictWithOptions.cjs"); +Object.keys(_index114).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index114[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index114[key]; + }, + }); +}); +var _index115 = require("./fp/formatDistanceWithOptions.cjs"); +Object.keys(_index115).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index115[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index115[key]; + }, + }); +}); +var _index116 = require("./fp/formatDuration.cjs"); +Object.keys(_index116).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index116[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index116[key]; + }, + }); +}); +var _index117 = require("./fp/formatDurationWithOptions.cjs"); +Object.keys(_index117).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index117[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index117[key]; + }, + }); +}); +var _index118 = require("./fp/formatISO.cjs"); +Object.keys(_index118).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index118[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index118[key]; + }, + }); +}); +var _index119 = require("./fp/formatISO9075.cjs"); +Object.keys(_index119).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index119[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index119[key]; + }, + }); +}); +var _index120 = require("./fp/formatISO9075WithOptions.cjs"); +Object.keys(_index120).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index120[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index120[key]; + }, + }); +}); +var _index121 = require("./fp/formatISODuration.cjs"); +Object.keys(_index121).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index121[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index121[key]; + }, + }); +}); +var _index122 = require("./fp/formatISOWithOptions.cjs"); +Object.keys(_index122).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index122[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index122[key]; + }, + }); +}); +var _index123 = require("./fp/formatRFC3339.cjs"); +Object.keys(_index123).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index123[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index123[key]; + }, + }); +}); +var _index124 = require("./fp/formatRFC3339WithOptions.cjs"); +Object.keys(_index124).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index124[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index124[key]; + }, + }); +}); +var _index125 = require("./fp/formatRFC7231.cjs"); +Object.keys(_index125).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index125[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index125[key]; + }, + }); +}); +var _index126 = require("./fp/formatRelative.cjs"); +Object.keys(_index126).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index126[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index126[key]; + }, + }); +}); +var _index127 = require("./fp/formatRelativeWithOptions.cjs"); +Object.keys(_index127).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index127[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index127[key]; + }, + }); +}); +var _index128 = require("./fp/formatWithOptions.cjs"); +Object.keys(_index128).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index128[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index128[key]; + }, + }); +}); +var _index129 = require("./fp/fromUnixTime.cjs"); +Object.keys(_index129).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index129[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index129[key]; + }, + }); +}); +var _index130 = require("./fp/fromUnixTimeWithOptions.cjs"); +Object.keys(_index130).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index130[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index130[key]; + }, + }); +}); +var _index131 = require("./fp/getDate.cjs"); +Object.keys(_index131).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index131[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index131[key]; + }, + }); +}); +var _index132 = require("./fp/getDateWithOptions.cjs"); +Object.keys(_index132).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index132[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index132[key]; + }, + }); +}); +var _index133 = require("./fp/getDay.cjs"); +Object.keys(_index133).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index133[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index133[key]; + }, + }); +}); +var _index134 = require("./fp/getDayOfYear.cjs"); +Object.keys(_index134).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index134[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index134[key]; + }, + }); +}); +var _index135 = require("./fp/getDayOfYearWithOptions.cjs"); +Object.keys(_index135).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index135[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index135[key]; + }, + }); +}); +var _index136 = require("./fp/getDayWithOptions.cjs"); +Object.keys(_index136).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index136[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index136[key]; + }, + }); +}); +var _index137 = require("./fp/getDaysInMonth.cjs"); +Object.keys(_index137).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index137[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index137[key]; + }, + }); +}); +var _index138 = require("./fp/getDaysInMonthWithOptions.cjs"); +Object.keys(_index138).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index138[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index138[key]; + }, + }); +}); +var _index139 = require("./fp/getDaysInYear.cjs"); +Object.keys(_index139).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index139[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index139[key]; + }, + }); +}); +var _index140 = require("./fp/getDaysInYearWithOptions.cjs"); +Object.keys(_index140).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index140[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index140[key]; + }, + }); +}); +var _index141 = require("./fp/getDecade.cjs"); +Object.keys(_index141).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index141[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index141[key]; + }, + }); +}); +var _index142 = require("./fp/getDecadeWithOptions.cjs"); +Object.keys(_index142).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index142[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index142[key]; + }, + }); +}); +var _index143 = require("./fp/getHours.cjs"); +Object.keys(_index143).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index143[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index143[key]; + }, + }); +}); +var _index144 = require("./fp/getHoursWithOptions.cjs"); +Object.keys(_index144).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index144[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index144[key]; + }, + }); +}); +var _index145 = require("./fp/getISODay.cjs"); +Object.keys(_index145).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index145[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index145[key]; + }, + }); +}); +var _index146 = require("./fp/getISODayWithOptions.cjs"); +Object.keys(_index146).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index146[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index146[key]; + }, + }); +}); +var _index147 = require("./fp/getISOWeek.cjs"); +Object.keys(_index147).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index147[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index147[key]; + }, + }); +}); +var _index148 = require("./fp/getISOWeekWithOptions.cjs"); +Object.keys(_index148).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index148[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index148[key]; + }, + }); +}); +var _index149 = require("./fp/getISOWeekYear.cjs"); +Object.keys(_index149).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index149[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index149[key]; + }, + }); +}); +var _index150 = require("./fp/getISOWeekYearWithOptions.cjs"); +Object.keys(_index150).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index150[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index150[key]; + }, + }); +}); +var _index151 = require("./fp/getISOWeeksInYear.cjs"); +Object.keys(_index151).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index151[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index151[key]; + }, + }); +}); +var _index152 = require("./fp/getISOWeeksInYearWithOptions.cjs"); +Object.keys(_index152).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index152[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index152[key]; + }, + }); +}); +var _index153 = require("./fp/getMilliseconds.cjs"); +Object.keys(_index153).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index153[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index153[key]; + }, + }); +}); +var _index154 = require("./fp/getMinutes.cjs"); +Object.keys(_index154).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index154[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index154[key]; + }, + }); +}); +var _index155 = require("./fp/getMinutesWithOptions.cjs"); +Object.keys(_index155).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index155[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index155[key]; + }, + }); +}); +var _index156 = require("./fp/getMonth.cjs"); +Object.keys(_index156).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index156[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index156[key]; + }, + }); +}); +var _index157 = require("./fp/getMonthWithOptions.cjs"); +Object.keys(_index157).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index157[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index157[key]; + }, + }); +}); +var _index158 = require("./fp/getOverlappingDaysInIntervals.cjs"); +Object.keys(_index158).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index158[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index158[key]; + }, + }); +}); +var _index159 = require("./fp/getQuarter.cjs"); +Object.keys(_index159).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index159[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index159[key]; + }, + }); +}); +var _index160 = require("./fp/getQuarterWithOptions.cjs"); +Object.keys(_index160).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index160[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index160[key]; + }, + }); +}); +var _index161 = require("./fp/getSeconds.cjs"); +Object.keys(_index161).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index161[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index161[key]; + }, + }); +}); +var _index162 = require("./fp/getTime.cjs"); +Object.keys(_index162).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index162[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index162[key]; + }, + }); +}); +var _index163 = require("./fp/getUnixTime.cjs"); +Object.keys(_index163).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index163[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index163[key]; + }, + }); +}); +var _index164 = require("./fp/getWeek.cjs"); +Object.keys(_index164).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index164[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index164[key]; + }, + }); +}); +var _index165 = require("./fp/getWeekOfMonth.cjs"); +Object.keys(_index165).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index165[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index165[key]; + }, + }); +}); +var _index166 = require("./fp/getWeekOfMonthWithOptions.cjs"); +Object.keys(_index166).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index166[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index166[key]; + }, + }); +}); +var _index167 = require("./fp/getWeekWithOptions.cjs"); +Object.keys(_index167).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index167[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index167[key]; + }, + }); +}); +var _index168 = require("./fp/getWeekYear.cjs"); +Object.keys(_index168).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index168[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index168[key]; + }, + }); +}); +var _index169 = require("./fp/getWeekYearWithOptions.cjs"); +Object.keys(_index169).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index169[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index169[key]; + }, + }); +}); +var _index170 = require("./fp/getWeeksInMonth.cjs"); +Object.keys(_index170).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index170[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index170[key]; + }, + }); +}); +var _index171 = require("./fp/getWeeksInMonthWithOptions.cjs"); +Object.keys(_index171).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index171[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index171[key]; + }, + }); +}); +var _index172 = require("./fp/getYear.cjs"); +Object.keys(_index172).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index172[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index172[key]; + }, + }); +}); +var _index173 = require("./fp/getYearWithOptions.cjs"); +Object.keys(_index173).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index173[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index173[key]; + }, + }); +}); +var _index174 = require("./fp/hoursToMilliseconds.cjs"); +Object.keys(_index174).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index174[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index174[key]; + }, + }); +}); +var _index175 = require("./fp/hoursToMinutes.cjs"); +Object.keys(_index175).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index175[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index175[key]; + }, + }); +}); +var _index176 = require("./fp/hoursToSeconds.cjs"); +Object.keys(_index176).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index176[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index176[key]; + }, + }); +}); +var _index177 = require("./fp/interval.cjs"); +Object.keys(_index177).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index177[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index177[key]; + }, + }); +}); +var _index178 = require("./fp/intervalToDuration.cjs"); +Object.keys(_index178).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index178[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index178[key]; + }, + }); +}); +var _index179 = require("./fp/intervalToDurationWithOptions.cjs"); +Object.keys(_index179).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index179[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index179[key]; + }, + }); +}); +var _index180 = require("./fp/intervalWithOptions.cjs"); +Object.keys(_index180).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index180[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index180[key]; + }, + }); +}); +var _index181 = require("./fp/intlFormat.cjs"); +Object.keys(_index181).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index181[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index181[key]; + }, + }); +}); +var _index182 = require("./fp/intlFormatDistance.cjs"); +Object.keys(_index182).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index182[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index182[key]; + }, + }); +}); +var _index183 = require("./fp/intlFormatDistanceWithOptions.cjs"); +Object.keys(_index183).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index183[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index183[key]; + }, + }); +}); +var _index184 = require("./fp/isAfter.cjs"); +Object.keys(_index184).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index184[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index184[key]; + }, + }); +}); +var _index185 = require("./fp/isBefore.cjs"); +Object.keys(_index185).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index185[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index185[key]; + }, + }); +}); +var _index186 = require("./fp/isDate.cjs"); +Object.keys(_index186).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index186[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index186[key]; + }, + }); +}); +var _index187 = require("./fp/isEqual.cjs"); +Object.keys(_index187).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index187[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index187[key]; + }, + }); +}); +var _index188 = require("./fp/isExists.cjs"); +Object.keys(_index188).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index188[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index188[key]; + }, + }); +}); +var _index189 = require("./fp/isFirstDayOfMonth.cjs"); +Object.keys(_index189).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index189[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index189[key]; + }, + }); +}); +var _index190 = require("./fp/isFirstDayOfMonthWithOptions.cjs"); +Object.keys(_index190).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index190[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index190[key]; + }, + }); +}); +var _index191 = require("./fp/isFriday.cjs"); +Object.keys(_index191).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index191[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index191[key]; + }, + }); +}); +var _index192 = require("./fp/isFridayWithOptions.cjs"); +Object.keys(_index192).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index192[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index192[key]; + }, + }); +}); +var _index193 = require("./fp/isLastDayOfMonth.cjs"); +Object.keys(_index193).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index193[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index193[key]; + }, + }); +}); +var _index194 = require("./fp/isLastDayOfMonthWithOptions.cjs"); +Object.keys(_index194).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index194[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index194[key]; + }, + }); +}); +var _index195 = require("./fp/isLeapYear.cjs"); +Object.keys(_index195).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index195[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index195[key]; + }, + }); +}); +var _index196 = require("./fp/isLeapYearWithOptions.cjs"); +Object.keys(_index196).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index196[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index196[key]; + }, + }); +}); +var _index197 = require("./fp/isMatch.cjs"); +Object.keys(_index197).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index197[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index197[key]; + }, + }); +}); +var _index198 = require("./fp/isMatchWithOptions.cjs"); +Object.keys(_index198).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index198[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index198[key]; + }, + }); +}); +var _index199 = require("./fp/isMonday.cjs"); +Object.keys(_index199).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index199[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index199[key]; + }, + }); +}); +var _index200 = require("./fp/isMondayWithOptions.cjs"); +Object.keys(_index200).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index200[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index200[key]; + }, + }); +}); +var _index201 = require("./fp/isSameDay.cjs"); +Object.keys(_index201).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index201[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index201[key]; + }, + }); +}); +var _index202 = require("./fp/isSameDayWithOptions.cjs"); +Object.keys(_index202).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index202[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index202[key]; + }, + }); +}); +var _index203 = require("./fp/isSameHour.cjs"); +Object.keys(_index203).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index203[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index203[key]; + }, + }); +}); +var _index204 = require("./fp/isSameHourWithOptions.cjs"); +Object.keys(_index204).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index204[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index204[key]; + }, + }); +}); +var _index205 = require("./fp/isSameISOWeek.cjs"); +Object.keys(_index205).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index205[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index205[key]; + }, + }); +}); +var _index206 = require("./fp/isSameISOWeekWithOptions.cjs"); +Object.keys(_index206).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index206[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index206[key]; + }, + }); +}); +var _index207 = require("./fp/isSameISOWeekYear.cjs"); +Object.keys(_index207).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index207[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index207[key]; + }, + }); +}); +var _index208 = require("./fp/isSameISOWeekYearWithOptions.cjs"); +Object.keys(_index208).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index208[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index208[key]; + }, + }); +}); +var _index209 = require("./fp/isSameMinute.cjs"); +Object.keys(_index209).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index209[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index209[key]; + }, + }); +}); +var _index210 = require("./fp/isSameMonth.cjs"); +Object.keys(_index210).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index210[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index210[key]; + }, + }); +}); +var _index211 = require("./fp/isSameMonthWithOptions.cjs"); +Object.keys(_index211).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index211[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index211[key]; + }, + }); +}); +var _index212 = require("./fp/isSameQuarter.cjs"); +Object.keys(_index212).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index212[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index212[key]; + }, + }); +}); +var _index213 = require("./fp/isSameQuarterWithOptions.cjs"); +Object.keys(_index213).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index213[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index213[key]; + }, + }); +}); +var _index214 = require("./fp/isSameSecond.cjs"); +Object.keys(_index214).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index214[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index214[key]; + }, + }); +}); +var _index215 = require("./fp/isSameWeek.cjs"); +Object.keys(_index215).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index215[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index215[key]; + }, + }); +}); +var _index216 = require("./fp/isSameWeekWithOptions.cjs"); +Object.keys(_index216).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index216[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index216[key]; + }, + }); +}); +var _index217 = require("./fp/isSameYear.cjs"); +Object.keys(_index217).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index217[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index217[key]; + }, + }); +}); +var _index218 = require("./fp/isSameYearWithOptions.cjs"); +Object.keys(_index218).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index218[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index218[key]; + }, + }); +}); +var _index219 = require("./fp/isSaturday.cjs"); +Object.keys(_index219).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index219[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index219[key]; + }, + }); +}); +var _index220 = require("./fp/isSaturdayWithOptions.cjs"); +Object.keys(_index220).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index220[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index220[key]; + }, + }); +}); +var _index221 = require("./fp/isSunday.cjs"); +Object.keys(_index221).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index221[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index221[key]; + }, + }); +}); +var _index222 = require("./fp/isSundayWithOptions.cjs"); +Object.keys(_index222).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index222[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index222[key]; + }, + }); +}); +var _index223 = require("./fp/isThursday.cjs"); +Object.keys(_index223).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index223[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index223[key]; + }, + }); +}); +var _index224 = require("./fp/isThursdayWithOptions.cjs"); +Object.keys(_index224).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index224[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index224[key]; + }, + }); +}); +var _index225 = require("./fp/isTuesday.cjs"); +Object.keys(_index225).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index225[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index225[key]; + }, + }); +}); +var _index226 = require("./fp/isTuesdayWithOptions.cjs"); +Object.keys(_index226).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index226[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index226[key]; + }, + }); +}); +var _index227 = require("./fp/isValid.cjs"); +Object.keys(_index227).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index227[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index227[key]; + }, + }); +}); +var _index228 = require("./fp/isWednesday.cjs"); +Object.keys(_index228).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index228[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index228[key]; + }, + }); +}); +var _index229 = require("./fp/isWednesdayWithOptions.cjs"); +Object.keys(_index229).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index229[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index229[key]; + }, + }); +}); +var _index230 = require("./fp/isWeekend.cjs"); +Object.keys(_index230).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index230[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index230[key]; + }, + }); +}); +var _index231 = require("./fp/isWeekendWithOptions.cjs"); +Object.keys(_index231).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index231[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index231[key]; + }, + }); +}); +var _index232 = require("./fp/isWithinInterval.cjs"); +Object.keys(_index232).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index232[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index232[key]; + }, + }); +}); +var _index233 = require("./fp/isWithinIntervalWithOptions.cjs"); +Object.keys(_index233).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index233[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index233[key]; + }, + }); +}); +var _index234 = require("./fp/lastDayOfDecade.cjs"); +Object.keys(_index234).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index234[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index234[key]; + }, + }); +}); +var _index235 = require("./fp/lastDayOfDecadeWithOptions.cjs"); +Object.keys(_index235).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index235[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index235[key]; + }, + }); +}); +var _index236 = require("./fp/lastDayOfISOWeek.cjs"); +Object.keys(_index236).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index236[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index236[key]; + }, + }); +}); +var _index237 = require("./fp/lastDayOfISOWeekWithOptions.cjs"); +Object.keys(_index237).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index237[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index237[key]; + }, + }); +}); +var _index238 = require("./fp/lastDayOfISOWeekYear.cjs"); +Object.keys(_index238).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index238[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index238[key]; + }, + }); +}); +var _index239 = require("./fp/lastDayOfISOWeekYearWithOptions.cjs"); +Object.keys(_index239).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index239[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index239[key]; + }, + }); +}); +var _index240 = require("./fp/lastDayOfMonth.cjs"); +Object.keys(_index240).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index240[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index240[key]; + }, + }); +}); +var _index241 = require("./fp/lastDayOfMonthWithOptions.cjs"); +Object.keys(_index241).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index241[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index241[key]; + }, + }); +}); +var _index242 = require("./fp/lastDayOfQuarter.cjs"); +Object.keys(_index242).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index242[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index242[key]; + }, + }); +}); +var _index243 = require("./fp/lastDayOfQuarterWithOptions.cjs"); +Object.keys(_index243).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index243[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index243[key]; + }, + }); +}); +var _index244 = require("./fp/lastDayOfWeek.cjs"); +Object.keys(_index244).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index244[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index244[key]; + }, + }); +}); +var _index245 = require("./fp/lastDayOfWeekWithOptions.cjs"); +Object.keys(_index245).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index245[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index245[key]; + }, + }); +}); +var _index246 = require("./fp/lastDayOfYear.cjs"); +Object.keys(_index246).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index246[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index246[key]; + }, + }); +}); +var _index247 = require("./fp/lastDayOfYearWithOptions.cjs"); +Object.keys(_index247).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index247[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index247[key]; + }, + }); +}); +var _index248 = require("./fp/lightFormat.cjs"); +Object.keys(_index248).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index248[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index248[key]; + }, + }); +}); +var _index249 = require("./fp/max.cjs"); +Object.keys(_index249).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index249[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index249[key]; + }, + }); +}); +var _index250 = require("./fp/maxWithOptions.cjs"); +Object.keys(_index250).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index250[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index250[key]; + }, + }); +}); +var _index251 = require("./fp/milliseconds.cjs"); +Object.keys(_index251).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index251[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index251[key]; + }, + }); +}); +var _index252 = require("./fp/millisecondsToHours.cjs"); +Object.keys(_index252).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index252[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index252[key]; + }, + }); +}); +var _index253 = require("./fp/millisecondsToMinutes.cjs"); +Object.keys(_index253).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index253[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index253[key]; + }, + }); +}); +var _index254 = require("./fp/millisecondsToSeconds.cjs"); +Object.keys(_index254).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index254[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index254[key]; + }, + }); +}); +var _index255 = require("./fp/min.cjs"); +Object.keys(_index255).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index255[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index255[key]; + }, + }); +}); +var _index256 = require("./fp/minWithOptions.cjs"); +Object.keys(_index256).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index256[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index256[key]; + }, + }); +}); +var _index257 = require("./fp/minutesToHours.cjs"); +Object.keys(_index257).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index257[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index257[key]; + }, + }); +}); +var _index258 = require("./fp/minutesToMilliseconds.cjs"); +Object.keys(_index258).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index258[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index258[key]; + }, + }); +}); +var _index259 = require("./fp/minutesToSeconds.cjs"); +Object.keys(_index259).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index259[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index259[key]; + }, + }); +}); +var _index260 = require("./fp/monthsToQuarters.cjs"); +Object.keys(_index260).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index260[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index260[key]; + }, + }); +}); +var _index261 = require("./fp/monthsToYears.cjs"); +Object.keys(_index261).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index261[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index261[key]; + }, + }); +}); +var _index262 = require("./fp/nextDay.cjs"); +Object.keys(_index262).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index262[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index262[key]; + }, + }); +}); +var _index263 = require("./fp/nextDayWithOptions.cjs"); +Object.keys(_index263).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index263[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index263[key]; + }, + }); +}); +var _index264 = require("./fp/nextFriday.cjs"); +Object.keys(_index264).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index264[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index264[key]; + }, + }); +}); +var _index265 = require("./fp/nextFridayWithOptions.cjs"); +Object.keys(_index265).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index265[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index265[key]; + }, + }); +}); +var _index266 = require("./fp/nextMonday.cjs"); +Object.keys(_index266).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index266[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index266[key]; + }, + }); +}); +var _index267 = require("./fp/nextMondayWithOptions.cjs"); +Object.keys(_index267).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index267[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index267[key]; + }, + }); +}); +var _index268 = require("./fp/nextSaturday.cjs"); +Object.keys(_index268).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index268[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index268[key]; + }, + }); +}); +var _index269 = require("./fp/nextSaturdayWithOptions.cjs"); +Object.keys(_index269).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index269[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index269[key]; + }, + }); +}); +var _index270 = require("./fp/nextSunday.cjs"); +Object.keys(_index270).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index270[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index270[key]; + }, + }); +}); +var _index271 = require("./fp/nextSundayWithOptions.cjs"); +Object.keys(_index271).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index271[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index271[key]; + }, + }); +}); +var _index272 = require("./fp/nextThursday.cjs"); +Object.keys(_index272).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index272[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index272[key]; + }, + }); +}); +var _index273 = require("./fp/nextThursdayWithOptions.cjs"); +Object.keys(_index273).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index273[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index273[key]; + }, + }); +}); +var _index274 = require("./fp/nextTuesday.cjs"); +Object.keys(_index274).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index274[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index274[key]; + }, + }); +}); +var _index275 = require("./fp/nextTuesdayWithOptions.cjs"); +Object.keys(_index275).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index275[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index275[key]; + }, + }); +}); +var _index276 = require("./fp/nextWednesday.cjs"); +Object.keys(_index276).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index276[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index276[key]; + }, + }); +}); +var _index277 = require("./fp/nextWednesdayWithOptions.cjs"); +Object.keys(_index277).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index277[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index277[key]; + }, + }); +}); +var _index278 = require("./fp/parse.cjs"); +Object.keys(_index278).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index278[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index278[key]; + }, + }); +}); +var _index279 = require("./fp/parseISO.cjs"); +Object.keys(_index279).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index279[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index279[key]; + }, + }); +}); +var _index280 = require("./fp/parseISOWithOptions.cjs"); +Object.keys(_index280).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index280[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index280[key]; + }, + }); +}); +var _index281 = require("./fp/parseJSON.cjs"); +Object.keys(_index281).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index281[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index281[key]; + }, + }); +}); +var _index282 = require("./fp/parseJSONWithOptions.cjs"); +Object.keys(_index282).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index282[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index282[key]; + }, + }); +}); +var _index283 = require("./fp/parseWithOptions.cjs"); +Object.keys(_index283).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index283[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index283[key]; + }, + }); +}); +var _index284 = require("./fp/previousDay.cjs"); +Object.keys(_index284).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index284[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index284[key]; + }, + }); +}); +var _index285 = require("./fp/previousDayWithOptions.cjs"); +Object.keys(_index285).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index285[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index285[key]; + }, + }); +}); +var _index286 = require("./fp/previousFriday.cjs"); +Object.keys(_index286).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index286[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index286[key]; + }, + }); +}); +var _index287 = require("./fp/previousFridayWithOptions.cjs"); +Object.keys(_index287).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index287[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index287[key]; + }, + }); +}); +var _index288 = require("./fp/previousMonday.cjs"); +Object.keys(_index288).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index288[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index288[key]; + }, + }); +}); +var _index289 = require("./fp/previousMondayWithOptions.cjs"); +Object.keys(_index289).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index289[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index289[key]; + }, + }); +}); +var _index290 = require("./fp/previousSaturday.cjs"); +Object.keys(_index290).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index290[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index290[key]; + }, + }); +}); +var _index291 = require("./fp/previousSaturdayWithOptions.cjs"); +Object.keys(_index291).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index291[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index291[key]; + }, + }); +}); +var _index292 = require("./fp/previousSunday.cjs"); +Object.keys(_index292).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index292[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index292[key]; + }, + }); +}); +var _index293 = require("./fp/previousSundayWithOptions.cjs"); +Object.keys(_index293).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index293[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index293[key]; + }, + }); +}); +var _index294 = require("./fp/previousThursday.cjs"); +Object.keys(_index294).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index294[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index294[key]; + }, + }); +}); +var _index295 = require("./fp/previousThursdayWithOptions.cjs"); +Object.keys(_index295).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index295[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index295[key]; + }, + }); +}); +var _index296 = require("./fp/previousTuesday.cjs"); +Object.keys(_index296).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index296[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index296[key]; + }, + }); +}); +var _index297 = require("./fp/previousTuesdayWithOptions.cjs"); +Object.keys(_index297).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index297[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index297[key]; + }, + }); +}); +var _index298 = require("./fp/previousWednesday.cjs"); +Object.keys(_index298).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index298[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index298[key]; + }, + }); +}); +var _index299 = require("./fp/previousWednesdayWithOptions.cjs"); +Object.keys(_index299).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index299[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index299[key]; + }, + }); +}); +var _index300 = require("./fp/quartersToMonths.cjs"); +Object.keys(_index300).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index300[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index300[key]; + }, + }); +}); +var _index301 = require("./fp/quartersToYears.cjs"); +Object.keys(_index301).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index301[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index301[key]; + }, + }); +}); +var _index302 = require("./fp/roundToNearestHours.cjs"); +Object.keys(_index302).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index302[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index302[key]; + }, + }); +}); +var _index303 = require("./fp/roundToNearestHoursWithOptions.cjs"); +Object.keys(_index303).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index303[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index303[key]; + }, + }); +}); +var _index304 = require("./fp/roundToNearestMinutes.cjs"); +Object.keys(_index304).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index304[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index304[key]; + }, + }); +}); +var _index305 = require("./fp/roundToNearestMinutesWithOptions.cjs"); +Object.keys(_index305).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index305[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index305[key]; + }, + }); +}); +var _index306 = require("./fp/secondsToHours.cjs"); +Object.keys(_index306).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index306[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index306[key]; + }, + }); +}); +var _index307 = require("./fp/secondsToMilliseconds.cjs"); +Object.keys(_index307).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index307[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index307[key]; + }, + }); +}); +var _index308 = require("./fp/secondsToMinutes.cjs"); +Object.keys(_index308).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index308[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index308[key]; + }, + }); +}); +var _index309 = require("./fp/set.cjs"); +Object.keys(_index309).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index309[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index309[key]; + }, + }); +}); +var _index310 = require("./fp/setDate.cjs"); +Object.keys(_index310).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index310[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index310[key]; + }, + }); +}); +var _index311 = require("./fp/setDateWithOptions.cjs"); +Object.keys(_index311).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index311[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index311[key]; + }, + }); +}); +var _index312 = require("./fp/setDay.cjs"); +Object.keys(_index312).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index312[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index312[key]; + }, + }); +}); +var _index313 = require("./fp/setDayOfYear.cjs"); +Object.keys(_index313).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index313[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index313[key]; + }, + }); +}); +var _index314 = require("./fp/setDayOfYearWithOptions.cjs"); +Object.keys(_index314).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index314[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index314[key]; + }, + }); +}); +var _index315 = require("./fp/setDayWithOptions.cjs"); +Object.keys(_index315).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index315[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index315[key]; + }, + }); +}); +var _index316 = require("./fp/setHours.cjs"); +Object.keys(_index316).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index316[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index316[key]; + }, + }); +}); +var _index317 = require("./fp/setHoursWithOptions.cjs"); +Object.keys(_index317).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index317[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index317[key]; + }, + }); +}); +var _index318 = require("./fp/setISODay.cjs"); +Object.keys(_index318).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index318[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index318[key]; + }, + }); +}); +var _index319 = require("./fp/setISODayWithOptions.cjs"); +Object.keys(_index319).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index319[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index319[key]; + }, + }); +}); +var _index320 = require("./fp/setISOWeek.cjs"); +Object.keys(_index320).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index320[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index320[key]; + }, + }); +}); +var _index321 = require("./fp/setISOWeekWithOptions.cjs"); +Object.keys(_index321).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index321[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index321[key]; + }, + }); +}); +var _index322 = require("./fp/setISOWeekYear.cjs"); +Object.keys(_index322).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index322[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index322[key]; + }, + }); +}); +var _index323 = require("./fp/setISOWeekYearWithOptions.cjs"); +Object.keys(_index323).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index323[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index323[key]; + }, + }); +}); +var _index324 = require("./fp/setMilliseconds.cjs"); +Object.keys(_index324).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index324[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index324[key]; + }, + }); +}); +var _index325 = require("./fp/setMillisecondsWithOptions.cjs"); +Object.keys(_index325).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index325[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index325[key]; + }, + }); +}); +var _index326 = require("./fp/setMinutes.cjs"); +Object.keys(_index326).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index326[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index326[key]; + }, + }); +}); +var _index327 = require("./fp/setMinutesWithOptions.cjs"); +Object.keys(_index327).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index327[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index327[key]; + }, + }); +}); +var _index328 = require("./fp/setMonth.cjs"); +Object.keys(_index328).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index328[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index328[key]; + }, + }); +}); +var _index329 = require("./fp/setMonthWithOptions.cjs"); +Object.keys(_index329).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index329[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index329[key]; + }, + }); +}); +var _index330 = require("./fp/setQuarter.cjs"); +Object.keys(_index330).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index330[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index330[key]; + }, + }); +}); +var _index331 = require("./fp/setQuarterWithOptions.cjs"); +Object.keys(_index331).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index331[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index331[key]; + }, + }); +}); +var _index332 = require("./fp/setSeconds.cjs"); +Object.keys(_index332).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index332[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index332[key]; + }, + }); +}); +var _index333 = require("./fp/setSecondsWithOptions.cjs"); +Object.keys(_index333).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index333[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index333[key]; + }, + }); +}); +var _index334 = require("./fp/setWeek.cjs"); +Object.keys(_index334).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index334[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index334[key]; + }, + }); +}); +var _index335 = require("./fp/setWeekWithOptions.cjs"); +Object.keys(_index335).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index335[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index335[key]; + }, + }); +}); +var _index336 = require("./fp/setWeekYear.cjs"); +Object.keys(_index336).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index336[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index336[key]; + }, + }); +}); +var _index337 = require("./fp/setWeekYearWithOptions.cjs"); +Object.keys(_index337).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index337[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index337[key]; + }, + }); +}); +var _index338 = require("./fp/setWithOptions.cjs"); +Object.keys(_index338).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index338[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index338[key]; + }, + }); +}); +var _index339 = require("./fp/setYear.cjs"); +Object.keys(_index339).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index339[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index339[key]; + }, + }); +}); +var _index340 = require("./fp/setYearWithOptions.cjs"); +Object.keys(_index340).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index340[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index340[key]; + }, + }); +}); +var _index341 = require("./fp/startOfDay.cjs"); +Object.keys(_index341).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index341[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index341[key]; + }, + }); +}); +var _index342 = require("./fp/startOfDayWithOptions.cjs"); +Object.keys(_index342).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index342[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index342[key]; + }, + }); +}); +var _index343 = require("./fp/startOfDecade.cjs"); +Object.keys(_index343).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index343[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index343[key]; + }, + }); +}); +var _index344 = require("./fp/startOfDecadeWithOptions.cjs"); +Object.keys(_index344).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index344[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index344[key]; + }, + }); +}); +var _index345 = require("./fp/startOfHour.cjs"); +Object.keys(_index345).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index345[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index345[key]; + }, + }); +}); +var _index346 = require("./fp/startOfHourWithOptions.cjs"); +Object.keys(_index346).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index346[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index346[key]; + }, + }); +}); +var _index347 = require("./fp/startOfISOWeek.cjs"); +Object.keys(_index347).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index347[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index347[key]; + }, + }); +}); +var _index348 = require("./fp/startOfISOWeekWithOptions.cjs"); +Object.keys(_index348).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index348[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index348[key]; + }, + }); +}); +var _index349 = require("./fp/startOfISOWeekYear.cjs"); +Object.keys(_index349).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index349[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index349[key]; + }, + }); +}); +var _index350 = require("./fp/startOfISOWeekYearWithOptions.cjs"); +Object.keys(_index350).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index350[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index350[key]; + }, + }); +}); +var _index351 = require("./fp/startOfMinute.cjs"); +Object.keys(_index351).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index351[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index351[key]; + }, + }); +}); +var _index352 = require("./fp/startOfMinuteWithOptions.cjs"); +Object.keys(_index352).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index352[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index352[key]; + }, + }); +}); +var _index353 = require("./fp/startOfMonth.cjs"); +Object.keys(_index353).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index353[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index353[key]; + }, + }); +}); +var _index354 = require("./fp/startOfMonthWithOptions.cjs"); +Object.keys(_index354).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index354[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index354[key]; + }, + }); +}); +var _index355 = require("./fp/startOfQuarter.cjs"); +Object.keys(_index355).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index355[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index355[key]; + }, + }); +}); +var _index356 = require("./fp/startOfQuarterWithOptions.cjs"); +Object.keys(_index356).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index356[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index356[key]; + }, + }); +}); +var _index357 = require("./fp/startOfSecond.cjs"); +Object.keys(_index357).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index357[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index357[key]; + }, + }); +}); +var _index358 = require("./fp/startOfSecondWithOptions.cjs"); +Object.keys(_index358).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index358[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index358[key]; + }, + }); +}); +var _index359 = require("./fp/startOfWeek.cjs"); +Object.keys(_index359).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index359[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index359[key]; + }, + }); +}); +var _index360 = require("./fp/startOfWeekWithOptions.cjs"); +Object.keys(_index360).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index360[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index360[key]; + }, + }); +}); +var _index361 = require("./fp/startOfWeekYear.cjs"); +Object.keys(_index361).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index361[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index361[key]; + }, + }); +}); +var _index362 = require("./fp/startOfWeekYearWithOptions.cjs"); +Object.keys(_index362).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index362[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index362[key]; + }, + }); +}); +var _index363 = require("./fp/startOfYear.cjs"); +Object.keys(_index363).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index363[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index363[key]; + }, + }); +}); +var _index364 = require("./fp/startOfYearWithOptions.cjs"); +Object.keys(_index364).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index364[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index364[key]; + }, + }); +}); +var _index365 = require("./fp/sub.cjs"); +Object.keys(_index365).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index365[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index365[key]; + }, + }); +}); +var _index366 = require("./fp/subBusinessDays.cjs"); +Object.keys(_index366).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index366[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index366[key]; + }, + }); +}); +var _index367 = require("./fp/subBusinessDaysWithOptions.cjs"); +Object.keys(_index367).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index367[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index367[key]; + }, + }); +}); +var _index368 = require("./fp/subDays.cjs"); +Object.keys(_index368).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index368[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index368[key]; + }, + }); +}); +var _index369 = require("./fp/subDaysWithOptions.cjs"); +Object.keys(_index369).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index369[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index369[key]; + }, + }); +}); +var _index370 = require("./fp/subHours.cjs"); +Object.keys(_index370).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index370[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index370[key]; + }, + }); +}); +var _index371 = require("./fp/subHoursWithOptions.cjs"); +Object.keys(_index371).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index371[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index371[key]; + }, + }); +}); +var _index372 = require("./fp/subISOWeekYears.cjs"); +Object.keys(_index372).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index372[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index372[key]; + }, + }); +}); +var _index373 = require("./fp/subISOWeekYearsWithOptions.cjs"); +Object.keys(_index373).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index373[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index373[key]; + }, + }); +}); +var _index374 = require("./fp/subMilliseconds.cjs"); +Object.keys(_index374).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index374[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index374[key]; + }, + }); +}); +var _index375 = require("./fp/subMillisecondsWithOptions.cjs"); +Object.keys(_index375).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index375[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index375[key]; + }, + }); +}); +var _index376 = require("./fp/subMinutes.cjs"); +Object.keys(_index376).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index376[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index376[key]; + }, + }); +}); +var _index377 = require("./fp/subMinutesWithOptions.cjs"); +Object.keys(_index377).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index377[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index377[key]; + }, + }); +}); +var _index378 = require("./fp/subMonths.cjs"); +Object.keys(_index378).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index378[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index378[key]; + }, + }); +}); +var _index379 = require("./fp/subMonthsWithOptions.cjs"); +Object.keys(_index379).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index379[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index379[key]; + }, + }); +}); +var _index380 = require("./fp/subQuarters.cjs"); +Object.keys(_index380).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index380[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index380[key]; + }, + }); +}); +var _index381 = require("./fp/subQuartersWithOptions.cjs"); +Object.keys(_index381).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index381[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index381[key]; + }, + }); +}); +var _index382 = require("./fp/subSeconds.cjs"); +Object.keys(_index382).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index382[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index382[key]; + }, + }); +}); +var _index383 = require("./fp/subSecondsWithOptions.cjs"); +Object.keys(_index383).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index383[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index383[key]; + }, + }); +}); +var _index384 = require("./fp/subWeeks.cjs"); +Object.keys(_index384).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index384[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index384[key]; + }, + }); +}); +var _index385 = require("./fp/subWeeksWithOptions.cjs"); +Object.keys(_index385).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index385[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index385[key]; + }, + }); +}); +var _index386 = require("./fp/subWithOptions.cjs"); +Object.keys(_index386).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index386[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index386[key]; + }, + }); +}); +var _index387 = require("./fp/subYears.cjs"); +Object.keys(_index387).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index387[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index387[key]; + }, + }); +}); +var _index388 = require("./fp/subYearsWithOptions.cjs"); +Object.keys(_index388).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index388[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index388[key]; + }, + }); +}); +var _index389 = require("./fp/toDate.cjs"); +Object.keys(_index389).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index389[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index389[key]; + }, + }); +}); +var _index390 = require("./fp/transpose.cjs"); +Object.keys(_index390).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index390[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index390[key]; + }, + }); +}); +var _index391 = require("./fp/weeksToDays.cjs"); +Object.keys(_index391).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index391[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index391[key]; + }, + }); +}); +var _index392 = require("./fp/yearsToDays.cjs"); +Object.keys(_index392).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index392[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index392[key]; + }, + }); +}); +var _index393 = require("./fp/yearsToMonths.cjs"); +Object.keys(_index393).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index393[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index393[key]; + }, + }); +}); +var _index394 = require("./fp/yearsToQuarters.cjs"); +Object.keys(_index394).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index394[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index394[key]; + }, + }); +}); diff --git a/node_modules/date-fns/fp.d.cts b/node_modules/date-fns/fp.d.cts new file mode 100644 index 000000000..2194a40fa --- /dev/null +++ b/node_modules/date-fns/fp.d.cts @@ -0,0 +1,397 @@ +export * from "./fp/add.ts"; +export * from "./fp/addBusinessDays.ts"; +export * from "./fp/addBusinessDaysWithOptions.ts"; +export * from "./fp/addDays.ts"; +export * from "./fp/addDaysWithOptions.ts"; +export * from "./fp/addHours.ts"; +export * from "./fp/addHoursWithOptions.ts"; +export * from "./fp/addISOWeekYears.ts"; +export * from "./fp/addISOWeekYearsWithOptions.ts"; +export * from "./fp/addMilliseconds.ts"; +export * from "./fp/addMillisecondsWithOptions.ts"; +export * from "./fp/addMinutes.ts"; +export * from "./fp/addMinutesWithOptions.ts"; +export * from "./fp/addMonths.ts"; +export * from "./fp/addMonthsWithOptions.ts"; +export * from "./fp/addQuarters.ts"; +export * from "./fp/addQuartersWithOptions.ts"; +export * from "./fp/addSeconds.ts"; +export * from "./fp/addSecondsWithOptions.ts"; +export * from "./fp/addWeeks.ts"; +export * from "./fp/addWeeksWithOptions.ts"; +export * from "./fp/addWithOptions.ts"; +export * from "./fp/addYears.ts"; +export * from "./fp/addYearsWithOptions.ts"; +export * from "./fp/areIntervalsOverlapping.ts"; +export * from "./fp/areIntervalsOverlappingWithOptions.ts"; +export * from "./fp/clamp.ts"; +export * from "./fp/clampWithOptions.ts"; +export * from "./fp/closestIndexTo.ts"; +export * from "./fp/closestTo.ts"; +export * from "./fp/closestToWithOptions.ts"; +export * from "./fp/compareAsc.ts"; +export * from "./fp/compareDesc.ts"; +export * from "./fp/constructFrom.ts"; +export * from "./fp/daysToWeeks.ts"; +export * from "./fp/differenceInBusinessDays.ts"; +export * from "./fp/differenceInBusinessDaysWithOptions.ts"; +export * from "./fp/differenceInCalendarDays.ts"; +export * from "./fp/differenceInCalendarDaysWithOptions.ts"; +export * from "./fp/differenceInCalendarISOWeekYears.ts"; +export * from "./fp/differenceInCalendarISOWeekYearsWithOptions.ts"; +export * from "./fp/differenceInCalendarISOWeeks.ts"; +export * from "./fp/differenceInCalendarISOWeeksWithOptions.ts"; +export * from "./fp/differenceInCalendarMonths.ts"; +export * from "./fp/differenceInCalendarMonthsWithOptions.ts"; +export * from "./fp/differenceInCalendarQuarters.ts"; +export * from "./fp/differenceInCalendarQuartersWithOptions.ts"; +export * from "./fp/differenceInCalendarWeeks.ts"; +export * from "./fp/differenceInCalendarWeeksWithOptions.ts"; +export * from "./fp/differenceInCalendarYears.ts"; +export * from "./fp/differenceInCalendarYearsWithOptions.ts"; +export * from "./fp/differenceInDays.ts"; +export * from "./fp/differenceInDaysWithOptions.ts"; +export * from "./fp/differenceInHours.ts"; +export * from "./fp/differenceInHoursWithOptions.ts"; +export * from "./fp/differenceInISOWeekYears.ts"; +export * from "./fp/differenceInISOWeekYearsWithOptions.ts"; +export * from "./fp/differenceInMilliseconds.ts"; +export * from "./fp/differenceInMinutes.ts"; +export * from "./fp/differenceInMinutesWithOptions.ts"; +export * from "./fp/differenceInMonths.ts"; +export * from "./fp/differenceInMonthsWithOptions.ts"; +export * from "./fp/differenceInQuarters.ts"; +export * from "./fp/differenceInQuartersWithOptions.ts"; +export * from "./fp/differenceInSeconds.ts"; +export * from "./fp/differenceInSecondsWithOptions.ts"; +export * from "./fp/differenceInWeeks.ts"; +export * from "./fp/differenceInWeeksWithOptions.ts"; +export * from "./fp/differenceInYears.ts"; +export * from "./fp/differenceInYearsWithOptions.ts"; +export * from "./fp/eachDayOfInterval.ts"; +export * from "./fp/eachDayOfIntervalWithOptions.ts"; +export * from "./fp/eachHourOfInterval.ts"; +export * from "./fp/eachHourOfIntervalWithOptions.ts"; +export * from "./fp/eachMinuteOfInterval.ts"; +export * from "./fp/eachMinuteOfIntervalWithOptions.ts"; +export * from "./fp/eachMonthOfInterval.ts"; +export * from "./fp/eachMonthOfIntervalWithOptions.ts"; +export * from "./fp/eachQuarterOfInterval.ts"; +export * from "./fp/eachQuarterOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekOfInterval.ts"; +export * from "./fp/eachWeekOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekendOfInterval.ts"; +export * from "./fp/eachWeekendOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekendOfMonth.ts"; +export * from "./fp/eachWeekendOfMonthWithOptions.ts"; +export * from "./fp/eachWeekendOfYear.ts"; +export * from "./fp/eachWeekendOfYearWithOptions.ts"; +export * from "./fp/eachYearOfInterval.ts"; +export * from "./fp/eachYearOfIntervalWithOptions.ts"; +export * from "./fp/endOfDay.ts"; +export * from "./fp/endOfDayWithOptions.ts"; +export * from "./fp/endOfDecade.ts"; +export * from "./fp/endOfDecadeWithOptions.ts"; +export * from "./fp/endOfHour.ts"; +export * from "./fp/endOfHourWithOptions.ts"; +export * from "./fp/endOfISOWeek.ts"; +export * from "./fp/endOfISOWeekWithOptions.ts"; +export * from "./fp/endOfISOWeekYear.ts"; +export * from "./fp/endOfISOWeekYearWithOptions.ts"; +export * from "./fp/endOfMinute.ts"; +export * from "./fp/endOfMinuteWithOptions.ts"; +export * from "./fp/endOfMonth.ts"; +export * from "./fp/endOfMonthWithOptions.ts"; +export * from "./fp/endOfQuarter.ts"; +export * from "./fp/endOfQuarterWithOptions.ts"; +export * from "./fp/endOfSecond.ts"; +export * from "./fp/endOfSecondWithOptions.ts"; +export * from "./fp/endOfWeek.ts"; +export * from "./fp/endOfWeekWithOptions.ts"; +export * from "./fp/endOfYear.ts"; +export * from "./fp/endOfYearWithOptions.ts"; +export * from "./fp/format.ts"; +export * from "./fp/formatDistance.ts"; +export * from "./fp/formatDistanceStrict.ts"; +export * from "./fp/formatDistanceStrictWithOptions.ts"; +export * from "./fp/formatDistanceWithOptions.ts"; +export * from "./fp/formatDuration.ts"; +export * from "./fp/formatDurationWithOptions.ts"; +export * from "./fp/formatISO.ts"; +export * from "./fp/formatISO9075.ts"; +export * from "./fp/formatISO9075WithOptions.ts"; +export * from "./fp/formatISODuration.ts"; +export * from "./fp/formatISOWithOptions.ts"; +export * from "./fp/formatRFC3339.ts"; +export * from "./fp/formatRFC3339WithOptions.ts"; +export * from "./fp/formatRFC7231.ts"; +export * from "./fp/formatRelative.ts"; +export * from "./fp/formatRelativeWithOptions.ts"; +export * from "./fp/formatWithOptions.ts"; +export * from "./fp/fromUnixTime.ts"; +export * from "./fp/fromUnixTimeWithOptions.ts"; +export * from "./fp/getDate.ts"; +export * from "./fp/getDateWithOptions.ts"; +export * from "./fp/getDay.ts"; +export * from "./fp/getDayOfYear.ts"; +export * from "./fp/getDayOfYearWithOptions.ts"; +export * from "./fp/getDayWithOptions.ts"; +export * from "./fp/getDaysInMonth.ts"; +export * from "./fp/getDaysInMonthWithOptions.ts"; +export * from "./fp/getDaysInYear.ts"; +export * from "./fp/getDaysInYearWithOptions.ts"; +export * from "./fp/getDecade.ts"; +export * from "./fp/getDecadeWithOptions.ts"; +export * from "./fp/getHours.ts"; +export * from "./fp/getHoursWithOptions.ts"; +export * from "./fp/getISODay.ts"; +export * from "./fp/getISODayWithOptions.ts"; +export * from "./fp/getISOWeek.ts"; +export * from "./fp/getISOWeekWithOptions.ts"; +export * from "./fp/getISOWeekYear.ts"; +export * from "./fp/getISOWeekYearWithOptions.ts"; +export * from "./fp/getISOWeeksInYear.ts"; +export * from "./fp/getISOWeeksInYearWithOptions.ts"; +export * from "./fp/getMilliseconds.ts"; +export * from "./fp/getMinutes.ts"; +export * from "./fp/getMinutesWithOptions.ts"; +export * from "./fp/getMonth.ts"; +export * from "./fp/getMonthWithOptions.ts"; +export * from "./fp/getOverlappingDaysInIntervals.ts"; +export * from "./fp/getQuarter.ts"; +export * from "./fp/getQuarterWithOptions.ts"; +export * from "./fp/getSeconds.ts"; +export * from "./fp/getTime.ts"; +export * from "./fp/getUnixTime.ts"; +export * from "./fp/getWeek.ts"; +export * from "./fp/getWeekOfMonth.ts"; +export * from "./fp/getWeekOfMonthWithOptions.ts"; +export * from "./fp/getWeekWithOptions.ts"; +export * from "./fp/getWeekYear.ts"; +export * from "./fp/getWeekYearWithOptions.ts"; +export * from "./fp/getWeeksInMonth.ts"; +export * from "./fp/getWeeksInMonthWithOptions.ts"; +export * from "./fp/getYear.ts"; +export * from "./fp/getYearWithOptions.ts"; +export * from "./fp/hoursToMilliseconds.ts"; +export * from "./fp/hoursToMinutes.ts"; +export * from "./fp/hoursToSeconds.ts"; +export * from "./fp/interval.ts"; +export * from "./fp/intervalToDuration.ts"; +export * from "./fp/intervalToDurationWithOptions.ts"; +export * from "./fp/intervalWithOptions.ts"; +export * from "./fp/intlFormat.ts"; +export * from "./fp/intlFormatDistance.ts"; +export * from "./fp/intlFormatDistanceWithOptions.ts"; +export * from "./fp/isAfter.ts"; +export * from "./fp/isBefore.ts"; +export * from "./fp/isDate.ts"; +export * from "./fp/isEqual.ts"; +export * from "./fp/isExists.ts"; +export * from "./fp/isFirstDayOfMonth.ts"; +export * from "./fp/isFirstDayOfMonthWithOptions.ts"; +export * from "./fp/isFriday.ts"; +export * from "./fp/isFridayWithOptions.ts"; +export * from "./fp/isLastDayOfMonth.ts"; +export * from "./fp/isLastDayOfMonthWithOptions.ts"; +export * from "./fp/isLeapYear.ts"; +export * from "./fp/isLeapYearWithOptions.ts"; +export * from "./fp/isMatch.ts"; +export * from "./fp/isMatchWithOptions.ts"; +export * from "./fp/isMonday.ts"; +export * from "./fp/isMondayWithOptions.ts"; +export * from "./fp/isSameDay.ts"; +export * from "./fp/isSameDayWithOptions.ts"; +export * from "./fp/isSameHour.ts"; +export * from "./fp/isSameHourWithOptions.ts"; +export * from "./fp/isSameISOWeek.ts"; +export * from "./fp/isSameISOWeekWithOptions.ts"; +export * from "./fp/isSameISOWeekYear.ts"; +export * from "./fp/isSameISOWeekYearWithOptions.ts"; +export * from "./fp/isSameMinute.ts"; +export * from "./fp/isSameMonth.ts"; +export * from "./fp/isSameMonthWithOptions.ts"; +export * from "./fp/isSameQuarter.ts"; +export * from "./fp/isSameQuarterWithOptions.ts"; +export * from "./fp/isSameSecond.ts"; +export * from "./fp/isSameWeek.ts"; +export * from "./fp/isSameWeekWithOptions.ts"; +export * from "./fp/isSameYear.ts"; +export * from "./fp/isSameYearWithOptions.ts"; +export * from "./fp/isSaturday.ts"; +export * from "./fp/isSaturdayWithOptions.ts"; +export * from "./fp/isSunday.ts"; +export * from "./fp/isSundayWithOptions.ts"; +export * from "./fp/isThursday.ts"; +export * from "./fp/isThursdayWithOptions.ts"; +export * from "./fp/isTuesday.ts"; +export * from "./fp/isTuesdayWithOptions.ts"; +export * from "./fp/isValid.ts"; +export * from "./fp/isWednesday.ts"; +export * from "./fp/isWednesdayWithOptions.ts"; +export * from "./fp/isWeekend.ts"; +export * from "./fp/isWeekendWithOptions.ts"; +export * from "./fp/isWithinInterval.ts"; +export * from "./fp/isWithinIntervalWithOptions.ts"; +export * from "./fp/lastDayOfDecade.ts"; +export * from "./fp/lastDayOfDecadeWithOptions.ts"; +export * from "./fp/lastDayOfISOWeek.ts"; +export * from "./fp/lastDayOfISOWeekWithOptions.ts"; +export * from "./fp/lastDayOfISOWeekYear.ts"; +export * from "./fp/lastDayOfISOWeekYearWithOptions.ts"; +export * from "./fp/lastDayOfMonth.ts"; +export * from "./fp/lastDayOfMonthWithOptions.ts"; +export * from "./fp/lastDayOfQuarter.ts"; +export * from "./fp/lastDayOfQuarterWithOptions.ts"; +export * from "./fp/lastDayOfWeek.ts"; +export * from "./fp/lastDayOfWeekWithOptions.ts"; +export * from "./fp/lastDayOfYear.ts"; +export * from "./fp/lastDayOfYearWithOptions.ts"; +export * from "./fp/lightFormat.ts"; +export * from "./fp/max.ts"; +export * from "./fp/maxWithOptions.ts"; +export * from "./fp/milliseconds.ts"; +export * from "./fp/millisecondsToHours.ts"; +export * from "./fp/millisecondsToMinutes.ts"; +export * from "./fp/millisecondsToSeconds.ts"; +export * from "./fp/min.ts"; +export * from "./fp/minWithOptions.ts"; +export * from "./fp/minutesToHours.ts"; +export * from "./fp/minutesToMilliseconds.ts"; +export * from "./fp/minutesToSeconds.ts"; +export * from "./fp/monthsToQuarters.ts"; +export * from "./fp/monthsToYears.ts"; +export * from "./fp/nextDay.ts"; +export * from "./fp/nextDayWithOptions.ts"; +export * from "./fp/nextFriday.ts"; +export * from "./fp/nextFridayWithOptions.ts"; +export * from "./fp/nextMonday.ts"; +export * from "./fp/nextMondayWithOptions.ts"; +export * from "./fp/nextSaturday.ts"; +export * from "./fp/nextSaturdayWithOptions.ts"; +export * from "./fp/nextSunday.ts"; +export * from "./fp/nextSundayWithOptions.ts"; +export * from "./fp/nextThursday.ts"; +export * from "./fp/nextThursdayWithOptions.ts"; +export * from "./fp/nextTuesday.ts"; +export * from "./fp/nextTuesdayWithOptions.ts"; +export * from "./fp/nextWednesday.ts"; +export * from "./fp/nextWednesdayWithOptions.ts"; +export * from "./fp/parse.ts"; +export * from "./fp/parseISO.ts"; +export * from "./fp/parseISOWithOptions.ts"; +export * from "./fp/parseJSON.ts"; +export * from "./fp/parseJSONWithOptions.ts"; +export * from "./fp/parseWithOptions.ts"; +export * from "./fp/previousDay.ts"; +export * from "./fp/previousDayWithOptions.ts"; +export * from "./fp/previousFriday.ts"; +export * from "./fp/previousFridayWithOptions.ts"; +export * from "./fp/previousMonday.ts"; +export * from "./fp/previousMondayWithOptions.ts"; +export * from "./fp/previousSaturday.ts"; +export * from "./fp/previousSaturdayWithOptions.ts"; +export * from "./fp/previousSunday.ts"; +export * from "./fp/previousSundayWithOptions.ts"; +export * from "./fp/previousThursday.ts"; +export * from "./fp/previousThursdayWithOptions.ts"; +export * from "./fp/previousTuesday.ts"; +export * from "./fp/previousTuesdayWithOptions.ts"; +export * from "./fp/previousWednesday.ts"; +export * from "./fp/previousWednesdayWithOptions.ts"; +export * from "./fp/quartersToMonths.ts"; +export * from "./fp/quartersToYears.ts"; +export * from "./fp/roundToNearestHours.ts"; +export * from "./fp/roundToNearestHoursWithOptions.ts"; +export * from "./fp/roundToNearestMinutes.ts"; +export * from "./fp/roundToNearestMinutesWithOptions.ts"; +export * from "./fp/secondsToHours.ts"; +export * from "./fp/secondsToMilliseconds.ts"; +export * from "./fp/secondsToMinutes.ts"; +export * from "./fp/set.ts"; +export * from "./fp/setDate.ts"; +export * from "./fp/setDateWithOptions.ts"; +export * from "./fp/setDay.ts"; +export * from "./fp/setDayOfYear.ts"; +export * from "./fp/setDayOfYearWithOptions.ts"; +export * from "./fp/setDayWithOptions.ts"; +export * from "./fp/setHours.ts"; +export * from "./fp/setHoursWithOptions.ts"; +export * from "./fp/setISODay.ts"; +export * from "./fp/setISODayWithOptions.ts"; +export * from "./fp/setISOWeek.ts"; +export * from "./fp/setISOWeekWithOptions.ts"; +export * from "./fp/setISOWeekYear.ts"; +export * from "./fp/setISOWeekYearWithOptions.ts"; +export * from "./fp/setMilliseconds.ts"; +export * from "./fp/setMillisecondsWithOptions.ts"; +export * from "./fp/setMinutes.ts"; +export * from "./fp/setMinutesWithOptions.ts"; +export * from "./fp/setMonth.ts"; +export * from "./fp/setMonthWithOptions.ts"; +export * from "./fp/setQuarter.ts"; +export * from "./fp/setQuarterWithOptions.ts"; +export * from "./fp/setSeconds.ts"; +export * from "./fp/setSecondsWithOptions.ts"; +export * from "./fp/setWeek.ts"; +export * from "./fp/setWeekWithOptions.ts"; +export * from "./fp/setWeekYear.ts"; +export * from "./fp/setWeekYearWithOptions.ts"; +export * from "./fp/setWithOptions.ts"; +export * from "./fp/setYear.ts"; +export * from "./fp/setYearWithOptions.ts"; +export * from "./fp/startOfDay.ts"; +export * from "./fp/startOfDayWithOptions.ts"; +export * from "./fp/startOfDecade.ts"; +export * from "./fp/startOfDecadeWithOptions.ts"; +export * from "./fp/startOfHour.ts"; +export * from "./fp/startOfHourWithOptions.ts"; +export * from "./fp/startOfISOWeek.ts"; +export * from "./fp/startOfISOWeekWithOptions.ts"; +export * from "./fp/startOfISOWeekYear.ts"; +export * from "./fp/startOfISOWeekYearWithOptions.ts"; +export * from "./fp/startOfMinute.ts"; +export * from "./fp/startOfMinuteWithOptions.ts"; +export * from "./fp/startOfMonth.ts"; +export * from "./fp/startOfMonthWithOptions.ts"; +export * from "./fp/startOfQuarter.ts"; +export * from "./fp/startOfQuarterWithOptions.ts"; +export * from "./fp/startOfSecond.ts"; +export * from "./fp/startOfSecondWithOptions.ts"; +export * from "./fp/startOfWeek.ts"; +export * from "./fp/startOfWeekWithOptions.ts"; +export * from "./fp/startOfWeekYear.ts"; +export * from "./fp/startOfWeekYearWithOptions.ts"; +export * from "./fp/startOfYear.ts"; +export * from "./fp/startOfYearWithOptions.ts"; +export * from "./fp/sub.ts"; +export * from "./fp/subBusinessDays.ts"; +export * from "./fp/subBusinessDaysWithOptions.ts"; +export * from "./fp/subDays.ts"; +export * from "./fp/subDaysWithOptions.ts"; +export * from "./fp/subHours.ts"; +export * from "./fp/subHoursWithOptions.ts"; +export * from "./fp/subISOWeekYears.ts"; +export * from "./fp/subISOWeekYearsWithOptions.ts"; +export * from "./fp/subMilliseconds.ts"; +export * from "./fp/subMillisecondsWithOptions.ts"; +export * from "./fp/subMinutes.ts"; +export * from "./fp/subMinutesWithOptions.ts"; +export * from "./fp/subMonths.ts"; +export * from "./fp/subMonthsWithOptions.ts"; +export * from "./fp/subQuarters.ts"; +export * from "./fp/subQuartersWithOptions.ts"; +export * from "./fp/subSeconds.ts"; +export * from "./fp/subSecondsWithOptions.ts"; +export * from "./fp/subWeeks.ts"; +export * from "./fp/subWeeksWithOptions.ts"; +export * from "./fp/subWithOptions.ts"; +export * from "./fp/subYears.ts"; +export * from "./fp/subYearsWithOptions.ts"; +export * from "./fp/toDate.ts"; +export * from "./fp/transpose.ts"; +export * from "./fp/weeksToDays.ts"; +export * from "./fp/yearsToDays.ts"; +export * from "./fp/yearsToMonths.ts"; +export * from "./fp/yearsToQuarters.ts"; +export type * from "./types.ts"; diff --git a/node_modules/date-fns/fp.d.ts b/node_modules/date-fns/fp.d.ts new file mode 100644 index 000000000..2194a40fa --- /dev/null +++ b/node_modules/date-fns/fp.d.ts @@ -0,0 +1,397 @@ +export * from "./fp/add.ts"; +export * from "./fp/addBusinessDays.ts"; +export * from "./fp/addBusinessDaysWithOptions.ts"; +export * from "./fp/addDays.ts"; +export * from "./fp/addDaysWithOptions.ts"; +export * from "./fp/addHours.ts"; +export * from "./fp/addHoursWithOptions.ts"; +export * from "./fp/addISOWeekYears.ts"; +export * from "./fp/addISOWeekYearsWithOptions.ts"; +export * from "./fp/addMilliseconds.ts"; +export * from "./fp/addMillisecondsWithOptions.ts"; +export * from "./fp/addMinutes.ts"; +export * from "./fp/addMinutesWithOptions.ts"; +export * from "./fp/addMonths.ts"; +export * from "./fp/addMonthsWithOptions.ts"; +export * from "./fp/addQuarters.ts"; +export * from "./fp/addQuartersWithOptions.ts"; +export * from "./fp/addSeconds.ts"; +export * from "./fp/addSecondsWithOptions.ts"; +export * from "./fp/addWeeks.ts"; +export * from "./fp/addWeeksWithOptions.ts"; +export * from "./fp/addWithOptions.ts"; +export * from "./fp/addYears.ts"; +export * from "./fp/addYearsWithOptions.ts"; +export * from "./fp/areIntervalsOverlapping.ts"; +export * from "./fp/areIntervalsOverlappingWithOptions.ts"; +export * from "./fp/clamp.ts"; +export * from "./fp/clampWithOptions.ts"; +export * from "./fp/closestIndexTo.ts"; +export * from "./fp/closestTo.ts"; +export * from "./fp/closestToWithOptions.ts"; +export * from "./fp/compareAsc.ts"; +export * from "./fp/compareDesc.ts"; +export * from "./fp/constructFrom.ts"; +export * from "./fp/daysToWeeks.ts"; +export * from "./fp/differenceInBusinessDays.ts"; +export * from "./fp/differenceInBusinessDaysWithOptions.ts"; +export * from "./fp/differenceInCalendarDays.ts"; +export * from "./fp/differenceInCalendarDaysWithOptions.ts"; +export * from "./fp/differenceInCalendarISOWeekYears.ts"; +export * from "./fp/differenceInCalendarISOWeekYearsWithOptions.ts"; +export * from "./fp/differenceInCalendarISOWeeks.ts"; +export * from "./fp/differenceInCalendarISOWeeksWithOptions.ts"; +export * from "./fp/differenceInCalendarMonths.ts"; +export * from "./fp/differenceInCalendarMonthsWithOptions.ts"; +export * from "./fp/differenceInCalendarQuarters.ts"; +export * from "./fp/differenceInCalendarQuartersWithOptions.ts"; +export * from "./fp/differenceInCalendarWeeks.ts"; +export * from "./fp/differenceInCalendarWeeksWithOptions.ts"; +export * from "./fp/differenceInCalendarYears.ts"; +export * from "./fp/differenceInCalendarYearsWithOptions.ts"; +export * from "./fp/differenceInDays.ts"; +export * from "./fp/differenceInDaysWithOptions.ts"; +export * from "./fp/differenceInHours.ts"; +export * from "./fp/differenceInHoursWithOptions.ts"; +export * from "./fp/differenceInISOWeekYears.ts"; +export * from "./fp/differenceInISOWeekYearsWithOptions.ts"; +export * from "./fp/differenceInMilliseconds.ts"; +export * from "./fp/differenceInMinutes.ts"; +export * from "./fp/differenceInMinutesWithOptions.ts"; +export * from "./fp/differenceInMonths.ts"; +export * from "./fp/differenceInMonthsWithOptions.ts"; +export * from "./fp/differenceInQuarters.ts"; +export * from "./fp/differenceInQuartersWithOptions.ts"; +export * from "./fp/differenceInSeconds.ts"; +export * from "./fp/differenceInSecondsWithOptions.ts"; +export * from "./fp/differenceInWeeks.ts"; +export * from "./fp/differenceInWeeksWithOptions.ts"; +export * from "./fp/differenceInYears.ts"; +export * from "./fp/differenceInYearsWithOptions.ts"; +export * from "./fp/eachDayOfInterval.ts"; +export * from "./fp/eachDayOfIntervalWithOptions.ts"; +export * from "./fp/eachHourOfInterval.ts"; +export * from "./fp/eachHourOfIntervalWithOptions.ts"; +export * from "./fp/eachMinuteOfInterval.ts"; +export * from "./fp/eachMinuteOfIntervalWithOptions.ts"; +export * from "./fp/eachMonthOfInterval.ts"; +export * from "./fp/eachMonthOfIntervalWithOptions.ts"; +export * from "./fp/eachQuarterOfInterval.ts"; +export * from "./fp/eachQuarterOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekOfInterval.ts"; +export * from "./fp/eachWeekOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekendOfInterval.ts"; +export * from "./fp/eachWeekendOfIntervalWithOptions.ts"; +export * from "./fp/eachWeekendOfMonth.ts"; +export * from "./fp/eachWeekendOfMonthWithOptions.ts"; +export * from "./fp/eachWeekendOfYear.ts"; +export * from "./fp/eachWeekendOfYearWithOptions.ts"; +export * from "./fp/eachYearOfInterval.ts"; +export * from "./fp/eachYearOfIntervalWithOptions.ts"; +export * from "./fp/endOfDay.ts"; +export * from "./fp/endOfDayWithOptions.ts"; +export * from "./fp/endOfDecade.ts"; +export * from "./fp/endOfDecadeWithOptions.ts"; +export * from "./fp/endOfHour.ts"; +export * from "./fp/endOfHourWithOptions.ts"; +export * from "./fp/endOfISOWeek.ts"; +export * from "./fp/endOfISOWeekWithOptions.ts"; +export * from "./fp/endOfISOWeekYear.ts"; +export * from "./fp/endOfISOWeekYearWithOptions.ts"; +export * from "./fp/endOfMinute.ts"; +export * from "./fp/endOfMinuteWithOptions.ts"; +export * from "./fp/endOfMonth.ts"; +export * from "./fp/endOfMonthWithOptions.ts"; +export * from "./fp/endOfQuarter.ts"; +export * from "./fp/endOfQuarterWithOptions.ts"; +export * from "./fp/endOfSecond.ts"; +export * from "./fp/endOfSecondWithOptions.ts"; +export * from "./fp/endOfWeek.ts"; +export * from "./fp/endOfWeekWithOptions.ts"; +export * from "./fp/endOfYear.ts"; +export * from "./fp/endOfYearWithOptions.ts"; +export * from "./fp/format.ts"; +export * from "./fp/formatDistance.ts"; +export * from "./fp/formatDistanceStrict.ts"; +export * from "./fp/formatDistanceStrictWithOptions.ts"; +export * from "./fp/formatDistanceWithOptions.ts"; +export * from "./fp/formatDuration.ts"; +export * from "./fp/formatDurationWithOptions.ts"; +export * from "./fp/formatISO.ts"; +export * from "./fp/formatISO9075.ts"; +export * from "./fp/formatISO9075WithOptions.ts"; +export * from "./fp/formatISODuration.ts"; +export * from "./fp/formatISOWithOptions.ts"; +export * from "./fp/formatRFC3339.ts"; +export * from "./fp/formatRFC3339WithOptions.ts"; +export * from "./fp/formatRFC7231.ts"; +export * from "./fp/formatRelative.ts"; +export * from "./fp/formatRelativeWithOptions.ts"; +export * from "./fp/formatWithOptions.ts"; +export * from "./fp/fromUnixTime.ts"; +export * from "./fp/fromUnixTimeWithOptions.ts"; +export * from "./fp/getDate.ts"; +export * from "./fp/getDateWithOptions.ts"; +export * from "./fp/getDay.ts"; +export * from "./fp/getDayOfYear.ts"; +export * from "./fp/getDayOfYearWithOptions.ts"; +export * from "./fp/getDayWithOptions.ts"; +export * from "./fp/getDaysInMonth.ts"; +export * from "./fp/getDaysInMonthWithOptions.ts"; +export * from "./fp/getDaysInYear.ts"; +export * from "./fp/getDaysInYearWithOptions.ts"; +export * from "./fp/getDecade.ts"; +export * from "./fp/getDecadeWithOptions.ts"; +export * from "./fp/getHours.ts"; +export * from "./fp/getHoursWithOptions.ts"; +export * from "./fp/getISODay.ts"; +export * from "./fp/getISODayWithOptions.ts"; +export * from "./fp/getISOWeek.ts"; +export * from "./fp/getISOWeekWithOptions.ts"; +export * from "./fp/getISOWeekYear.ts"; +export * from "./fp/getISOWeekYearWithOptions.ts"; +export * from "./fp/getISOWeeksInYear.ts"; +export * from "./fp/getISOWeeksInYearWithOptions.ts"; +export * from "./fp/getMilliseconds.ts"; +export * from "./fp/getMinutes.ts"; +export * from "./fp/getMinutesWithOptions.ts"; +export * from "./fp/getMonth.ts"; +export * from "./fp/getMonthWithOptions.ts"; +export * from "./fp/getOverlappingDaysInIntervals.ts"; +export * from "./fp/getQuarter.ts"; +export * from "./fp/getQuarterWithOptions.ts"; +export * from "./fp/getSeconds.ts"; +export * from "./fp/getTime.ts"; +export * from "./fp/getUnixTime.ts"; +export * from "./fp/getWeek.ts"; +export * from "./fp/getWeekOfMonth.ts"; +export * from "./fp/getWeekOfMonthWithOptions.ts"; +export * from "./fp/getWeekWithOptions.ts"; +export * from "./fp/getWeekYear.ts"; +export * from "./fp/getWeekYearWithOptions.ts"; +export * from "./fp/getWeeksInMonth.ts"; +export * from "./fp/getWeeksInMonthWithOptions.ts"; +export * from "./fp/getYear.ts"; +export * from "./fp/getYearWithOptions.ts"; +export * from "./fp/hoursToMilliseconds.ts"; +export * from "./fp/hoursToMinutes.ts"; +export * from "./fp/hoursToSeconds.ts"; +export * from "./fp/interval.ts"; +export * from "./fp/intervalToDuration.ts"; +export * from "./fp/intervalToDurationWithOptions.ts"; +export * from "./fp/intervalWithOptions.ts"; +export * from "./fp/intlFormat.ts"; +export * from "./fp/intlFormatDistance.ts"; +export * from "./fp/intlFormatDistanceWithOptions.ts"; +export * from "./fp/isAfter.ts"; +export * from "./fp/isBefore.ts"; +export * from "./fp/isDate.ts"; +export * from "./fp/isEqual.ts"; +export * from "./fp/isExists.ts"; +export * from "./fp/isFirstDayOfMonth.ts"; +export * from "./fp/isFirstDayOfMonthWithOptions.ts"; +export * from "./fp/isFriday.ts"; +export * from "./fp/isFridayWithOptions.ts"; +export * from "./fp/isLastDayOfMonth.ts"; +export * from "./fp/isLastDayOfMonthWithOptions.ts"; +export * from "./fp/isLeapYear.ts"; +export * from "./fp/isLeapYearWithOptions.ts"; +export * from "./fp/isMatch.ts"; +export * from "./fp/isMatchWithOptions.ts"; +export * from "./fp/isMonday.ts"; +export * from "./fp/isMondayWithOptions.ts"; +export * from "./fp/isSameDay.ts"; +export * from "./fp/isSameDayWithOptions.ts"; +export * from "./fp/isSameHour.ts"; +export * from "./fp/isSameHourWithOptions.ts"; +export * from "./fp/isSameISOWeek.ts"; +export * from "./fp/isSameISOWeekWithOptions.ts"; +export * from "./fp/isSameISOWeekYear.ts"; +export * from "./fp/isSameISOWeekYearWithOptions.ts"; +export * from "./fp/isSameMinute.ts"; +export * from "./fp/isSameMonth.ts"; +export * from "./fp/isSameMonthWithOptions.ts"; +export * from "./fp/isSameQuarter.ts"; +export * from "./fp/isSameQuarterWithOptions.ts"; +export * from "./fp/isSameSecond.ts"; +export * from "./fp/isSameWeek.ts"; +export * from "./fp/isSameWeekWithOptions.ts"; +export * from "./fp/isSameYear.ts"; +export * from "./fp/isSameYearWithOptions.ts"; +export * from "./fp/isSaturday.ts"; +export * from "./fp/isSaturdayWithOptions.ts"; +export * from "./fp/isSunday.ts"; +export * from "./fp/isSundayWithOptions.ts"; +export * from "./fp/isThursday.ts"; +export * from "./fp/isThursdayWithOptions.ts"; +export * from "./fp/isTuesday.ts"; +export * from "./fp/isTuesdayWithOptions.ts"; +export * from "./fp/isValid.ts"; +export * from "./fp/isWednesday.ts"; +export * from "./fp/isWednesdayWithOptions.ts"; +export * from "./fp/isWeekend.ts"; +export * from "./fp/isWeekendWithOptions.ts"; +export * from "./fp/isWithinInterval.ts"; +export * from "./fp/isWithinIntervalWithOptions.ts"; +export * from "./fp/lastDayOfDecade.ts"; +export * from "./fp/lastDayOfDecadeWithOptions.ts"; +export * from "./fp/lastDayOfISOWeek.ts"; +export * from "./fp/lastDayOfISOWeekWithOptions.ts"; +export * from "./fp/lastDayOfISOWeekYear.ts"; +export * from "./fp/lastDayOfISOWeekYearWithOptions.ts"; +export * from "./fp/lastDayOfMonth.ts"; +export * from "./fp/lastDayOfMonthWithOptions.ts"; +export * from "./fp/lastDayOfQuarter.ts"; +export * from "./fp/lastDayOfQuarterWithOptions.ts"; +export * from "./fp/lastDayOfWeek.ts"; +export * from "./fp/lastDayOfWeekWithOptions.ts"; +export * from "./fp/lastDayOfYear.ts"; +export * from "./fp/lastDayOfYearWithOptions.ts"; +export * from "./fp/lightFormat.ts"; +export * from "./fp/max.ts"; +export * from "./fp/maxWithOptions.ts"; +export * from "./fp/milliseconds.ts"; +export * from "./fp/millisecondsToHours.ts"; +export * from "./fp/millisecondsToMinutes.ts"; +export * from "./fp/millisecondsToSeconds.ts"; +export * from "./fp/min.ts"; +export * from "./fp/minWithOptions.ts"; +export * from "./fp/minutesToHours.ts"; +export * from "./fp/minutesToMilliseconds.ts"; +export * from "./fp/minutesToSeconds.ts"; +export * from "./fp/monthsToQuarters.ts"; +export * from "./fp/monthsToYears.ts"; +export * from "./fp/nextDay.ts"; +export * from "./fp/nextDayWithOptions.ts"; +export * from "./fp/nextFriday.ts"; +export * from "./fp/nextFridayWithOptions.ts"; +export * from "./fp/nextMonday.ts"; +export * from "./fp/nextMondayWithOptions.ts"; +export * from "./fp/nextSaturday.ts"; +export * from "./fp/nextSaturdayWithOptions.ts"; +export * from "./fp/nextSunday.ts"; +export * from "./fp/nextSundayWithOptions.ts"; +export * from "./fp/nextThursday.ts"; +export * from "./fp/nextThursdayWithOptions.ts"; +export * from "./fp/nextTuesday.ts"; +export * from "./fp/nextTuesdayWithOptions.ts"; +export * from "./fp/nextWednesday.ts"; +export * from "./fp/nextWednesdayWithOptions.ts"; +export * from "./fp/parse.ts"; +export * from "./fp/parseISO.ts"; +export * from "./fp/parseISOWithOptions.ts"; +export * from "./fp/parseJSON.ts"; +export * from "./fp/parseJSONWithOptions.ts"; +export * from "./fp/parseWithOptions.ts"; +export * from "./fp/previousDay.ts"; +export * from "./fp/previousDayWithOptions.ts"; +export * from "./fp/previousFriday.ts"; +export * from "./fp/previousFridayWithOptions.ts"; +export * from "./fp/previousMonday.ts"; +export * from "./fp/previousMondayWithOptions.ts"; +export * from "./fp/previousSaturday.ts"; +export * from "./fp/previousSaturdayWithOptions.ts"; +export * from "./fp/previousSunday.ts"; +export * from "./fp/previousSundayWithOptions.ts"; +export * from "./fp/previousThursday.ts"; +export * from "./fp/previousThursdayWithOptions.ts"; +export * from "./fp/previousTuesday.ts"; +export * from "./fp/previousTuesdayWithOptions.ts"; +export * from "./fp/previousWednesday.ts"; +export * from "./fp/previousWednesdayWithOptions.ts"; +export * from "./fp/quartersToMonths.ts"; +export * from "./fp/quartersToYears.ts"; +export * from "./fp/roundToNearestHours.ts"; +export * from "./fp/roundToNearestHoursWithOptions.ts"; +export * from "./fp/roundToNearestMinutes.ts"; +export * from "./fp/roundToNearestMinutesWithOptions.ts"; +export * from "./fp/secondsToHours.ts"; +export * from "./fp/secondsToMilliseconds.ts"; +export * from "./fp/secondsToMinutes.ts"; +export * from "./fp/set.ts"; +export * from "./fp/setDate.ts"; +export * from "./fp/setDateWithOptions.ts"; +export * from "./fp/setDay.ts"; +export * from "./fp/setDayOfYear.ts"; +export * from "./fp/setDayOfYearWithOptions.ts"; +export * from "./fp/setDayWithOptions.ts"; +export * from "./fp/setHours.ts"; +export * from "./fp/setHoursWithOptions.ts"; +export * from "./fp/setISODay.ts"; +export * from "./fp/setISODayWithOptions.ts"; +export * from "./fp/setISOWeek.ts"; +export * from "./fp/setISOWeekWithOptions.ts"; +export * from "./fp/setISOWeekYear.ts"; +export * from "./fp/setISOWeekYearWithOptions.ts"; +export * from "./fp/setMilliseconds.ts"; +export * from "./fp/setMillisecondsWithOptions.ts"; +export * from "./fp/setMinutes.ts"; +export * from "./fp/setMinutesWithOptions.ts"; +export * from "./fp/setMonth.ts"; +export * from "./fp/setMonthWithOptions.ts"; +export * from "./fp/setQuarter.ts"; +export * from "./fp/setQuarterWithOptions.ts"; +export * from "./fp/setSeconds.ts"; +export * from "./fp/setSecondsWithOptions.ts"; +export * from "./fp/setWeek.ts"; +export * from "./fp/setWeekWithOptions.ts"; +export * from "./fp/setWeekYear.ts"; +export * from "./fp/setWeekYearWithOptions.ts"; +export * from "./fp/setWithOptions.ts"; +export * from "./fp/setYear.ts"; +export * from "./fp/setYearWithOptions.ts"; +export * from "./fp/startOfDay.ts"; +export * from "./fp/startOfDayWithOptions.ts"; +export * from "./fp/startOfDecade.ts"; +export * from "./fp/startOfDecadeWithOptions.ts"; +export * from "./fp/startOfHour.ts"; +export * from "./fp/startOfHourWithOptions.ts"; +export * from "./fp/startOfISOWeek.ts"; +export * from "./fp/startOfISOWeekWithOptions.ts"; +export * from "./fp/startOfISOWeekYear.ts"; +export * from "./fp/startOfISOWeekYearWithOptions.ts"; +export * from "./fp/startOfMinute.ts"; +export * from "./fp/startOfMinuteWithOptions.ts"; +export * from "./fp/startOfMonth.ts"; +export * from "./fp/startOfMonthWithOptions.ts"; +export * from "./fp/startOfQuarter.ts"; +export * from "./fp/startOfQuarterWithOptions.ts"; +export * from "./fp/startOfSecond.ts"; +export * from "./fp/startOfSecondWithOptions.ts"; +export * from "./fp/startOfWeek.ts"; +export * from "./fp/startOfWeekWithOptions.ts"; +export * from "./fp/startOfWeekYear.ts"; +export * from "./fp/startOfWeekYearWithOptions.ts"; +export * from "./fp/startOfYear.ts"; +export * from "./fp/startOfYearWithOptions.ts"; +export * from "./fp/sub.ts"; +export * from "./fp/subBusinessDays.ts"; +export * from "./fp/subBusinessDaysWithOptions.ts"; +export * from "./fp/subDays.ts"; +export * from "./fp/subDaysWithOptions.ts"; +export * from "./fp/subHours.ts"; +export * from "./fp/subHoursWithOptions.ts"; +export * from "./fp/subISOWeekYears.ts"; +export * from "./fp/subISOWeekYearsWithOptions.ts"; +export * from "./fp/subMilliseconds.ts"; +export * from "./fp/subMillisecondsWithOptions.ts"; +export * from "./fp/subMinutes.ts"; +export * from "./fp/subMinutesWithOptions.ts"; +export * from "./fp/subMonths.ts"; +export * from "./fp/subMonthsWithOptions.ts"; +export * from "./fp/subQuarters.ts"; +export * from "./fp/subQuartersWithOptions.ts"; +export * from "./fp/subSeconds.ts"; +export * from "./fp/subSecondsWithOptions.ts"; +export * from "./fp/subWeeks.ts"; +export * from "./fp/subWeeksWithOptions.ts"; +export * from "./fp/subWithOptions.ts"; +export * from "./fp/subYears.ts"; +export * from "./fp/subYearsWithOptions.ts"; +export * from "./fp/toDate.ts"; +export * from "./fp/transpose.ts"; +export * from "./fp/weeksToDays.ts"; +export * from "./fp/yearsToDays.ts"; +export * from "./fp/yearsToMonths.ts"; +export * from "./fp/yearsToQuarters.ts"; +export type * from "./types.ts"; diff --git a/node_modules/date-fns/fp.js b/node_modules/date-fns/fp.js new file mode 100644 index 000000000..e0846aa53 --- /dev/null +++ b/node_modules/date-fns/fp.js @@ -0,0 +1,398 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. + +export * from "./fp/add.js"; +export * from "./fp/addBusinessDays.js"; +export * from "./fp/addBusinessDaysWithOptions.js"; +export * from "./fp/addDays.js"; +export * from "./fp/addDaysWithOptions.js"; +export * from "./fp/addHours.js"; +export * from "./fp/addHoursWithOptions.js"; +export * from "./fp/addISOWeekYears.js"; +export * from "./fp/addISOWeekYearsWithOptions.js"; +export * from "./fp/addMilliseconds.js"; +export * from "./fp/addMillisecondsWithOptions.js"; +export * from "./fp/addMinutes.js"; +export * from "./fp/addMinutesWithOptions.js"; +export * from "./fp/addMonths.js"; +export * from "./fp/addMonthsWithOptions.js"; +export * from "./fp/addQuarters.js"; +export * from "./fp/addQuartersWithOptions.js"; +export * from "./fp/addSeconds.js"; +export * from "./fp/addSecondsWithOptions.js"; +export * from "./fp/addWeeks.js"; +export * from "./fp/addWeeksWithOptions.js"; +export * from "./fp/addWithOptions.js"; +export * from "./fp/addYears.js"; +export * from "./fp/addYearsWithOptions.js"; +export * from "./fp/areIntervalsOverlapping.js"; +export * from "./fp/areIntervalsOverlappingWithOptions.js"; +export * from "./fp/clamp.js"; +export * from "./fp/clampWithOptions.js"; +export * from "./fp/closestIndexTo.js"; +export * from "./fp/closestTo.js"; +export * from "./fp/closestToWithOptions.js"; +export * from "./fp/compareAsc.js"; +export * from "./fp/compareDesc.js"; +export * from "./fp/constructFrom.js"; +export * from "./fp/daysToWeeks.js"; +export * from "./fp/differenceInBusinessDays.js"; +export * from "./fp/differenceInBusinessDaysWithOptions.js"; +export * from "./fp/differenceInCalendarDays.js"; +export * from "./fp/differenceInCalendarDaysWithOptions.js"; +export * from "./fp/differenceInCalendarISOWeekYears.js"; +export * from "./fp/differenceInCalendarISOWeekYearsWithOptions.js"; +export * from "./fp/differenceInCalendarISOWeeks.js"; +export * from "./fp/differenceInCalendarISOWeeksWithOptions.js"; +export * from "./fp/differenceInCalendarMonths.js"; +export * from "./fp/differenceInCalendarMonthsWithOptions.js"; +export * from "./fp/differenceInCalendarQuarters.js"; +export * from "./fp/differenceInCalendarQuartersWithOptions.js"; +export * from "./fp/differenceInCalendarWeeks.js"; +export * from "./fp/differenceInCalendarWeeksWithOptions.js"; +export * from "./fp/differenceInCalendarYears.js"; +export * from "./fp/differenceInCalendarYearsWithOptions.js"; +export * from "./fp/differenceInDays.js"; +export * from "./fp/differenceInDaysWithOptions.js"; +export * from "./fp/differenceInHours.js"; +export * from "./fp/differenceInHoursWithOptions.js"; +export * from "./fp/differenceInISOWeekYears.js"; +export * from "./fp/differenceInISOWeekYearsWithOptions.js"; +export * from "./fp/differenceInMilliseconds.js"; +export * from "./fp/differenceInMinutes.js"; +export * from "./fp/differenceInMinutesWithOptions.js"; +export * from "./fp/differenceInMonths.js"; +export * from "./fp/differenceInMonthsWithOptions.js"; +export * from "./fp/differenceInQuarters.js"; +export * from "./fp/differenceInQuartersWithOptions.js"; +export * from "./fp/differenceInSeconds.js"; +export * from "./fp/differenceInSecondsWithOptions.js"; +export * from "./fp/differenceInWeeks.js"; +export * from "./fp/differenceInWeeksWithOptions.js"; +export * from "./fp/differenceInYears.js"; +export * from "./fp/differenceInYearsWithOptions.js"; +export * from "./fp/eachDayOfInterval.js"; +export * from "./fp/eachDayOfIntervalWithOptions.js"; +export * from "./fp/eachHourOfInterval.js"; +export * from "./fp/eachHourOfIntervalWithOptions.js"; +export * from "./fp/eachMinuteOfInterval.js"; +export * from "./fp/eachMinuteOfIntervalWithOptions.js"; +export * from "./fp/eachMonthOfInterval.js"; +export * from "./fp/eachMonthOfIntervalWithOptions.js"; +export * from "./fp/eachQuarterOfInterval.js"; +export * from "./fp/eachQuarterOfIntervalWithOptions.js"; +export * from "./fp/eachWeekOfInterval.js"; +export * from "./fp/eachWeekOfIntervalWithOptions.js"; +export * from "./fp/eachWeekendOfInterval.js"; +export * from "./fp/eachWeekendOfIntervalWithOptions.js"; +export * from "./fp/eachWeekendOfMonth.js"; +export * from "./fp/eachWeekendOfMonthWithOptions.js"; +export * from "./fp/eachWeekendOfYear.js"; +export * from "./fp/eachWeekendOfYearWithOptions.js"; +export * from "./fp/eachYearOfInterval.js"; +export * from "./fp/eachYearOfIntervalWithOptions.js"; +export * from "./fp/endOfDay.js"; +export * from "./fp/endOfDayWithOptions.js"; +export * from "./fp/endOfDecade.js"; +export * from "./fp/endOfDecadeWithOptions.js"; +export * from "./fp/endOfHour.js"; +export * from "./fp/endOfHourWithOptions.js"; +export * from "./fp/endOfISOWeek.js"; +export * from "./fp/endOfISOWeekWithOptions.js"; +export * from "./fp/endOfISOWeekYear.js"; +export * from "./fp/endOfISOWeekYearWithOptions.js"; +export * from "./fp/endOfMinute.js"; +export * from "./fp/endOfMinuteWithOptions.js"; +export * from "./fp/endOfMonth.js"; +export * from "./fp/endOfMonthWithOptions.js"; +export * from "./fp/endOfQuarter.js"; +export * from "./fp/endOfQuarterWithOptions.js"; +export * from "./fp/endOfSecond.js"; +export * from "./fp/endOfSecondWithOptions.js"; +export * from "./fp/endOfWeek.js"; +export * from "./fp/endOfWeekWithOptions.js"; +export * from "./fp/endOfYear.js"; +export * from "./fp/endOfYearWithOptions.js"; +export * from "./fp/format.js"; +export * from "./fp/formatDistance.js"; +export * from "./fp/formatDistanceStrict.js"; +export * from "./fp/formatDistanceStrictWithOptions.js"; +export * from "./fp/formatDistanceWithOptions.js"; +export * from "./fp/formatDuration.js"; +export * from "./fp/formatDurationWithOptions.js"; +export * from "./fp/formatISO.js"; +export * from "./fp/formatISO9075.js"; +export * from "./fp/formatISO9075WithOptions.js"; +export * from "./fp/formatISODuration.js"; +export * from "./fp/formatISOWithOptions.js"; +export * from "./fp/formatRFC3339.js"; +export * from "./fp/formatRFC3339WithOptions.js"; +export * from "./fp/formatRFC7231.js"; +export * from "./fp/formatRelative.js"; +export * from "./fp/formatRelativeWithOptions.js"; +export * from "./fp/formatWithOptions.js"; +export * from "./fp/fromUnixTime.js"; +export * from "./fp/fromUnixTimeWithOptions.js"; +export * from "./fp/getDate.js"; +export * from "./fp/getDateWithOptions.js"; +export * from "./fp/getDay.js"; +export * from "./fp/getDayOfYear.js"; +export * from "./fp/getDayOfYearWithOptions.js"; +export * from "./fp/getDayWithOptions.js"; +export * from "./fp/getDaysInMonth.js"; +export * from "./fp/getDaysInMonthWithOptions.js"; +export * from "./fp/getDaysInYear.js"; +export * from "./fp/getDaysInYearWithOptions.js"; +export * from "./fp/getDecade.js"; +export * from "./fp/getDecadeWithOptions.js"; +export * from "./fp/getHours.js"; +export * from "./fp/getHoursWithOptions.js"; +export * from "./fp/getISODay.js"; +export * from "./fp/getISODayWithOptions.js"; +export * from "./fp/getISOWeek.js"; +export * from "./fp/getISOWeekWithOptions.js"; +export * from "./fp/getISOWeekYear.js"; +export * from "./fp/getISOWeekYearWithOptions.js"; +export * from "./fp/getISOWeeksInYear.js"; +export * from "./fp/getISOWeeksInYearWithOptions.js"; +export * from "./fp/getMilliseconds.js"; +export * from "./fp/getMinutes.js"; +export * from "./fp/getMinutesWithOptions.js"; +export * from "./fp/getMonth.js"; +export * from "./fp/getMonthWithOptions.js"; +export * from "./fp/getOverlappingDaysInIntervals.js"; +export * from "./fp/getQuarter.js"; +export * from "./fp/getQuarterWithOptions.js"; +export * from "./fp/getSeconds.js"; +export * from "./fp/getTime.js"; +export * from "./fp/getUnixTime.js"; +export * from "./fp/getWeek.js"; +export * from "./fp/getWeekOfMonth.js"; +export * from "./fp/getWeekOfMonthWithOptions.js"; +export * from "./fp/getWeekWithOptions.js"; +export * from "./fp/getWeekYear.js"; +export * from "./fp/getWeekYearWithOptions.js"; +export * from "./fp/getWeeksInMonth.js"; +export * from "./fp/getWeeksInMonthWithOptions.js"; +export * from "./fp/getYear.js"; +export * from "./fp/getYearWithOptions.js"; +export * from "./fp/hoursToMilliseconds.js"; +export * from "./fp/hoursToMinutes.js"; +export * from "./fp/hoursToSeconds.js"; +export * from "./fp/interval.js"; +export * from "./fp/intervalToDuration.js"; +export * from "./fp/intervalToDurationWithOptions.js"; +export * from "./fp/intervalWithOptions.js"; +export * from "./fp/intlFormat.js"; +export * from "./fp/intlFormatDistance.js"; +export * from "./fp/intlFormatDistanceWithOptions.js"; +export * from "./fp/isAfter.js"; +export * from "./fp/isBefore.js"; +export * from "./fp/isDate.js"; +export * from "./fp/isEqual.js"; +export * from "./fp/isExists.js"; +export * from "./fp/isFirstDayOfMonth.js"; +export * from "./fp/isFirstDayOfMonthWithOptions.js"; +export * from "./fp/isFriday.js"; +export * from "./fp/isFridayWithOptions.js"; +export * from "./fp/isLastDayOfMonth.js"; +export * from "./fp/isLastDayOfMonthWithOptions.js"; +export * from "./fp/isLeapYear.js"; +export * from "./fp/isLeapYearWithOptions.js"; +export * from "./fp/isMatch.js"; +export * from "./fp/isMatchWithOptions.js"; +export * from "./fp/isMonday.js"; +export * from "./fp/isMondayWithOptions.js"; +export * from "./fp/isSameDay.js"; +export * from "./fp/isSameDayWithOptions.js"; +export * from "./fp/isSameHour.js"; +export * from "./fp/isSameHourWithOptions.js"; +export * from "./fp/isSameISOWeek.js"; +export * from "./fp/isSameISOWeekWithOptions.js"; +export * from "./fp/isSameISOWeekYear.js"; +export * from "./fp/isSameISOWeekYearWithOptions.js"; +export * from "./fp/isSameMinute.js"; +export * from "./fp/isSameMonth.js"; +export * from "./fp/isSameMonthWithOptions.js"; +export * from "./fp/isSameQuarter.js"; +export * from "./fp/isSameQuarterWithOptions.js"; +export * from "./fp/isSameSecond.js"; +export * from "./fp/isSameWeek.js"; +export * from "./fp/isSameWeekWithOptions.js"; +export * from "./fp/isSameYear.js"; +export * from "./fp/isSameYearWithOptions.js"; +export * from "./fp/isSaturday.js"; +export * from "./fp/isSaturdayWithOptions.js"; +export * from "./fp/isSunday.js"; +export * from "./fp/isSundayWithOptions.js"; +export * from "./fp/isThursday.js"; +export * from "./fp/isThursdayWithOptions.js"; +export * from "./fp/isTuesday.js"; +export * from "./fp/isTuesdayWithOptions.js"; +export * from "./fp/isValid.js"; +export * from "./fp/isWednesday.js"; +export * from "./fp/isWednesdayWithOptions.js"; +export * from "./fp/isWeekend.js"; +export * from "./fp/isWeekendWithOptions.js"; +export * from "./fp/isWithinInterval.js"; +export * from "./fp/isWithinIntervalWithOptions.js"; +export * from "./fp/lastDayOfDecade.js"; +export * from "./fp/lastDayOfDecadeWithOptions.js"; +export * from "./fp/lastDayOfISOWeek.js"; +export * from "./fp/lastDayOfISOWeekWithOptions.js"; +export * from "./fp/lastDayOfISOWeekYear.js"; +export * from "./fp/lastDayOfISOWeekYearWithOptions.js"; +export * from "./fp/lastDayOfMonth.js"; +export * from "./fp/lastDayOfMonthWithOptions.js"; +export * from "./fp/lastDayOfQuarter.js"; +export * from "./fp/lastDayOfQuarterWithOptions.js"; +export * from "./fp/lastDayOfWeek.js"; +export * from "./fp/lastDayOfWeekWithOptions.js"; +export * from "./fp/lastDayOfYear.js"; +export * from "./fp/lastDayOfYearWithOptions.js"; +export * from "./fp/lightFormat.js"; +export * from "./fp/max.js"; +export * from "./fp/maxWithOptions.js"; +export * from "./fp/milliseconds.js"; +export * from "./fp/millisecondsToHours.js"; +export * from "./fp/millisecondsToMinutes.js"; +export * from "./fp/millisecondsToSeconds.js"; +export * from "./fp/min.js"; +export * from "./fp/minWithOptions.js"; +export * from "./fp/minutesToHours.js"; +export * from "./fp/minutesToMilliseconds.js"; +export * from "./fp/minutesToSeconds.js"; +export * from "./fp/monthsToQuarters.js"; +export * from "./fp/monthsToYears.js"; +export * from "./fp/nextDay.js"; +export * from "./fp/nextDayWithOptions.js"; +export * from "./fp/nextFriday.js"; +export * from "./fp/nextFridayWithOptions.js"; +export * from "./fp/nextMonday.js"; +export * from "./fp/nextMondayWithOptions.js"; +export * from "./fp/nextSaturday.js"; +export * from "./fp/nextSaturdayWithOptions.js"; +export * from "./fp/nextSunday.js"; +export * from "./fp/nextSundayWithOptions.js"; +export * from "./fp/nextThursday.js"; +export * from "./fp/nextThursdayWithOptions.js"; +export * from "./fp/nextTuesday.js"; +export * from "./fp/nextTuesdayWithOptions.js"; +export * from "./fp/nextWednesday.js"; +export * from "./fp/nextWednesdayWithOptions.js"; +export * from "./fp/parse.js"; +export * from "./fp/parseISO.js"; +export * from "./fp/parseISOWithOptions.js"; +export * from "./fp/parseJSON.js"; +export * from "./fp/parseJSONWithOptions.js"; +export * from "./fp/parseWithOptions.js"; +export * from "./fp/previousDay.js"; +export * from "./fp/previousDayWithOptions.js"; +export * from "./fp/previousFriday.js"; +export * from "./fp/previousFridayWithOptions.js"; +export * from "./fp/previousMonday.js"; +export * from "./fp/previousMondayWithOptions.js"; +export * from "./fp/previousSaturday.js"; +export * from "./fp/previousSaturdayWithOptions.js"; +export * from "./fp/previousSunday.js"; +export * from "./fp/previousSundayWithOptions.js"; +export * from "./fp/previousThursday.js"; +export * from "./fp/previousThursdayWithOptions.js"; +export * from "./fp/previousTuesday.js"; +export * from "./fp/previousTuesdayWithOptions.js"; +export * from "./fp/previousWednesday.js"; +export * from "./fp/previousWednesdayWithOptions.js"; +export * from "./fp/quartersToMonths.js"; +export * from "./fp/quartersToYears.js"; +export * from "./fp/roundToNearestHours.js"; +export * from "./fp/roundToNearestHoursWithOptions.js"; +export * from "./fp/roundToNearestMinutes.js"; +export * from "./fp/roundToNearestMinutesWithOptions.js"; +export * from "./fp/secondsToHours.js"; +export * from "./fp/secondsToMilliseconds.js"; +export * from "./fp/secondsToMinutes.js"; +export * from "./fp/set.js"; +export * from "./fp/setDate.js"; +export * from "./fp/setDateWithOptions.js"; +export * from "./fp/setDay.js"; +export * from "./fp/setDayOfYear.js"; +export * from "./fp/setDayOfYearWithOptions.js"; +export * from "./fp/setDayWithOptions.js"; +export * from "./fp/setHours.js"; +export * from "./fp/setHoursWithOptions.js"; +export * from "./fp/setISODay.js"; +export * from "./fp/setISODayWithOptions.js"; +export * from "./fp/setISOWeek.js"; +export * from "./fp/setISOWeekWithOptions.js"; +export * from "./fp/setISOWeekYear.js"; +export * from "./fp/setISOWeekYearWithOptions.js"; +export * from "./fp/setMilliseconds.js"; +export * from "./fp/setMillisecondsWithOptions.js"; +export * from "./fp/setMinutes.js"; +export * from "./fp/setMinutesWithOptions.js"; +export * from "./fp/setMonth.js"; +export * from "./fp/setMonthWithOptions.js"; +export * from "./fp/setQuarter.js"; +export * from "./fp/setQuarterWithOptions.js"; +export * from "./fp/setSeconds.js"; +export * from "./fp/setSecondsWithOptions.js"; +export * from "./fp/setWeek.js"; +export * from "./fp/setWeekWithOptions.js"; +export * from "./fp/setWeekYear.js"; +export * from "./fp/setWeekYearWithOptions.js"; +export * from "./fp/setWithOptions.js"; +export * from "./fp/setYear.js"; +export * from "./fp/setYearWithOptions.js"; +export * from "./fp/startOfDay.js"; +export * from "./fp/startOfDayWithOptions.js"; +export * from "./fp/startOfDecade.js"; +export * from "./fp/startOfDecadeWithOptions.js"; +export * from "./fp/startOfHour.js"; +export * from "./fp/startOfHourWithOptions.js"; +export * from "./fp/startOfISOWeek.js"; +export * from "./fp/startOfISOWeekWithOptions.js"; +export * from "./fp/startOfISOWeekYear.js"; +export * from "./fp/startOfISOWeekYearWithOptions.js"; +export * from "./fp/startOfMinute.js"; +export * from "./fp/startOfMinuteWithOptions.js"; +export * from "./fp/startOfMonth.js"; +export * from "./fp/startOfMonthWithOptions.js"; +export * from "./fp/startOfQuarter.js"; +export * from "./fp/startOfQuarterWithOptions.js"; +export * from "./fp/startOfSecond.js"; +export * from "./fp/startOfSecondWithOptions.js"; +export * from "./fp/startOfWeek.js"; +export * from "./fp/startOfWeekWithOptions.js"; +export * from "./fp/startOfWeekYear.js"; +export * from "./fp/startOfWeekYearWithOptions.js"; +export * from "./fp/startOfYear.js"; +export * from "./fp/startOfYearWithOptions.js"; +export * from "./fp/sub.js"; +export * from "./fp/subBusinessDays.js"; +export * from "./fp/subBusinessDaysWithOptions.js"; +export * from "./fp/subDays.js"; +export * from "./fp/subDaysWithOptions.js"; +export * from "./fp/subHours.js"; +export * from "./fp/subHoursWithOptions.js"; +export * from "./fp/subISOWeekYears.js"; +export * from "./fp/subISOWeekYearsWithOptions.js"; +export * from "./fp/subMilliseconds.js"; +export * from "./fp/subMillisecondsWithOptions.js"; +export * from "./fp/subMinutes.js"; +export * from "./fp/subMinutesWithOptions.js"; +export * from "./fp/subMonths.js"; +export * from "./fp/subMonthsWithOptions.js"; +export * from "./fp/subQuarters.js"; +export * from "./fp/subQuartersWithOptions.js"; +export * from "./fp/subSeconds.js"; +export * from "./fp/subSecondsWithOptions.js"; +export * from "./fp/subWeeks.js"; +export * from "./fp/subWeeksWithOptions.js"; +export * from "./fp/subWithOptions.js"; +export * from "./fp/subYears.js"; +export * from "./fp/subYearsWithOptions.js"; +export * from "./fp/toDate.js"; +export * from "./fp/transpose.js"; +export * from "./fp/weeksToDays.js"; +export * from "./fp/yearsToDays.js"; +export * from "./fp/yearsToMonths.js"; +export * from "./fp/yearsToQuarters.js"; diff --git a/node_modules/date-fns/fp/_lib/convertToFP.cjs b/node_modules/date-fns/fp/_lib/convertToFP.cjs new file mode 100644 index 000000000..9b8b45f69 --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP.cjs @@ -0,0 +1,20 @@ +"use strict"; +exports.convertToFP = convertToFP; + +/** + * Converts a function to a curried function that accepts arguments in reverse + * order. + * + * @param fn - The function to convert to FP + * @param arity - The arity of the function + * @param curriedArgs - The curried arguments + * + * @returns FP version of the function + * + * @private + */ +function convertToFP(fn, arity, curriedArgs = []) { + return curriedArgs.length >= arity + ? fn(...curriedArgs.slice(0, arity).reverse()) + : (...args) => convertToFP(fn, arity, curriedArgs.concat(args)); +} diff --git a/node_modules/date-fns/fp/_lib/convertToFP.d.cts b/node_modules/date-fns/fp/_lib/convertToFP.d.cts new file mode 100644 index 000000000..3741f432a --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP.d.cts @@ -0,0 +1,17 @@ +import type { FPArity, FPFn, FPFnInput } from "../types.ts"; +/** + * Converts a function to a curried function that accepts arguments in reverse + * order. + * + * @param fn - The function to convert to FP + * @param arity - The arity of the function + * @param curriedArgs - The curried arguments + * + * @returns FP version of the function + * + * @private + */ +export declare function convertToFP< + Fn extends FPFnInput, + Arity extends FPArity, +>(fn: Fn, arity: Arity, curriedArgs?: unknown[]): FPFn; diff --git a/node_modules/date-fns/fp/_lib/convertToFP.d.ts b/node_modules/date-fns/fp/_lib/convertToFP.d.ts new file mode 100644 index 000000000..3741f432a --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP.d.ts @@ -0,0 +1,17 @@ +import type { FPArity, FPFn, FPFnInput } from "../types.ts"; +/** + * Converts a function to a curried function that accepts arguments in reverse + * order. + * + * @param fn - The function to convert to FP + * @param arity - The arity of the function + * @param curriedArgs - The curried arguments + * + * @returns FP version of the function + * + * @private + */ +export declare function convertToFP< + Fn extends FPFnInput, + Arity extends FPArity, +>(fn: Fn, arity: Arity, curriedArgs?: unknown[]): FPFn; diff --git a/node_modules/date-fns/fp/_lib/convertToFP.js b/node_modules/date-fns/fp/_lib/convertToFP.js new file mode 100644 index 000000000..1e854634a --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP.js @@ -0,0 +1,17 @@ +/** + * Converts a function to a curried function that accepts arguments in reverse + * order. + * + * @param fn - The function to convert to FP + * @param arity - The arity of the function + * @param curriedArgs - The curried arguments + * + * @returns FP version of the function + * + * @private + */ +export function convertToFP(fn, arity, curriedArgs = []) { + return curriedArgs.length >= arity + ? fn(...curriedArgs.slice(0, arity).reverse()) + : (...args) => convertToFP(fn, arity, curriedArgs.concat(args)); +} diff --git a/node_modules/date-fns/fp/add.cjs b/node_modules/date-fns/fp/add.cjs new file mode 100644 index 000000000..9bf112702 --- /dev/null +++ b/node_modules/date-fns/fp/add.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.add = void 0; + +var _index = require("../add.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const add = (exports.add = (0, _index2.convertToFP)(_index.add, 2)); diff --git a/node_modules/date-fns/fp/add.d.cts b/node_modules/date-fns/fp/add.d.cts new file mode 100644 index 000000000..9c7bafba5 --- /dev/null +++ b/node_modules/date-fns/fp/add.d.cts @@ -0,0 +1,5 @@ +export declare const add: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/add.d.ts b/node_modules/date-fns/fp/add.d.ts new file mode 100644 index 000000000..9c7bafba5 --- /dev/null +++ b/node_modules/date-fns/fp/add.d.ts @@ -0,0 +1,5 @@ +export declare const add: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/add.js b/node_modules/date-fns/fp/add.js new file mode 100644 index 000000000..198961c14 --- /dev/null +++ b/node_modules/date-fns/fp/add.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { add as fn } from "../add.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const add = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default add; diff --git a/node_modules/date-fns/fp/addBusinessDays.cjs b/node_modules/date-fns/fp/addBusinessDays.cjs new file mode 100644 index 000000000..4bd236d68 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addBusinessDays = void 0; + +var _index = require("../addBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addBusinessDays = (exports.addBusinessDays = (0, _index2.convertToFP)( + _index.addBusinessDays, + 2, +)); diff --git a/node_modules/date-fns/fp/addBusinessDays.d.cts b/node_modules/date-fns/fp/addBusinessDays.d.cts new file mode 100644 index 000000000..82827a4d5 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays.d.cts @@ -0,0 +1,5 @@ +export declare const addBusinessDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addBusinessDays.d.ts b/node_modules/date-fns/fp/addBusinessDays.d.ts new file mode 100644 index 000000000..82827a4d5 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays.d.ts @@ -0,0 +1,5 @@ +export declare const addBusinessDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addBusinessDays.js b/node_modules/date-fns/fp/addBusinessDays.js new file mode 100644 index 000000000..47e4024a4 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addBusinessDays as fn } from "../addBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addBusinessDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addBusinessDays; diff --git a/node_modules/date-fns/fp/addBusinessDaysWithOptions.cjs b/node_modules/date-fns/fp/addBusinessDaysWithOptions.cjs new file mode 100644 index 000000000..63b13a7f3 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDaysWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addBusinessDaysWithOptions = void 0; + +var _index = require("../addBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addBusinessDaysWithOptions = (exports.addBusinessDaysWithOptions = (0, +_index2.convertToFP)(_index.addBusinessDays, 3)); diff --git a/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.cts b/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.cts new file mode 100644 index 000000000..21250d14b --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const addBusinessDaysWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addBusinessDays.ts").AddBusinessDaysOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.ts b/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.ts new file mode 100644 index 000000000..21250d14b --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDaysWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const addBusinessDaysWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addBusinessDays.ts").AddBusinessDaysOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addBusinessDaysWithOptions.js b/node_modules/date-fns/fp/addBusinessDaysWithOptions.js new file mode 100644 index 000000000..180a80bd3 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addBusinessDays as fn } from "../addBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addBusinessDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addBusinessDaysWithOptions; diff --git a/node_modules/date-fns/fp/addDays.cjs b/node_modules/date-fns/fp/addDays.cjs new file mode 100644 index 000000000..f58f4c7e9 --- /dev/null +++ b/node_modules/date-fns/fp/addDays.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.addDays = void 0; + +var _index = require("../addDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addDays = (exports.addDays = (0, _index2.convertToFP)(_index.addDays, 2)); diff --git a/node_modules/date-fns/fp/addDays.d.cts b/node_modules/date-fns/fp/addDays.d.cts new file mode 100644 index 000000000..c1806115f --- /dev/null +++ b/node_modules/date-fns/fp/addDays.d.cts @@ -0,0 +1,5 @@ +export declare const addDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addDays.d.ts b/node_modules/date-fns/fp/addDays.d.ts new file mode 100644 index 000000000..c1806115f --- /dev/null +++ b/node_modules/date-fns/fp/addDays.d.ts @@ -0,0 +1,5 @@ +export declare const addDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addDays.js b/node_modules/date-fns/fp/addDays.js new file mode 100644 index 000000000..4c3695d59 --- /dev/null +++ b/node_modules/date-fns/fp/addDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addDays as fn } from "../addDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addDays; diff --git a/node_modules/date-fns/fp/addDaysWithOptions.cjs b/node_modules/date-fns/fp/addDaysWithOptions.cjs new file mode 100644 index 000000000..e8b92c874 --- /dev/null +++ b/node_modules/date-fns/fp/addDaysWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addDaysWithOptions = void 0; + +var _index = require("../addDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addDaysWithOptions = (exports.addDaysWithOptions = (0, +_index2.convertToFP)(_index.addDays, 3)); diff --git a/node_modules/date-fns/fp/addDaysWithOptions.d.cts b/node_modules/date-fns/fp/addDaysWithOptions.d.cts new file mode 100644 index 000000000..2f89b5568 --- /dev/null +++ b/node_modules/date-fns/fp/addDaysWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addDaysWithOptions: import("./types.ts").FPFn3< + Date, + import("../addDays.ts").AddDaysOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addDaysWithOptions.d.ts b/node_modules/date-fns/fp/addDaysWithOptions.d.ts new file mode 100644 index 000000000..2f89b5568 --- /dev/null +++ b/node_modules/date-fns/fp/addDaysWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addDaysWithOptions: import("./types.ts").FPFn3< + Date, + import("../addDays.ts").AddDaysOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addDaysWithOptions.js b/node_modules/date-fns/fp/addDaysWithOptions.js new file mode 100644 index 000000000..db2adf501 --- /dev/null +++ b/node_modules/date-fns/fp/addDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addDays as fn } from "../addDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addDaysWithOptions; diff --git a/node_modules/date-fns/fp/addHours.cjs b/node_modules/date-fns/fp/addHours.cjs new file mode 100644 index 000000000..eee7658a8 --- /dev/null +++ b/node_modules/date-fns/fp/addHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addHours = void 0; + +var _index = require("../addHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addHours = (exports.addHours = (0, _index2.convertToFP)( + _index.addHours, + 2, +)); diff --git a/node_modules/date-fns/fp/addHours.d.cts b/node_modules/date-fns/fp/addHours.d.cts new file mode 100644 index 000000000..085cfe264 --- /dev/null +++ b/node_modules/date-fns/fp/addHours.d.cts @@ -0,0 +1,5 @@ +export declare const addHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addHours.d.ts b/node_modules/date-fns/fp/addHours.d.ts new file mode 100644 index 000000000..085cfe264 --- /dev/null +++ b/node_modules/date-fns/fp/addHours.d.ts @@ -0,0 +1,5 @@ +export declare const addHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addHours.js b/node_modules/date-fns/fp/addHours.js new file mode 100644 index 000000000..15a11a43f --- /dev/null +++ b/node_modules/date-fns/fp/addHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addHours as fn } from "../addHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addHours = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addHours; diff --git a/node_modules/date-fns/fp/addHoursWithOptions.cjs b/node_modules/date-fns/fp/addHoursWithOptions.cjs new file mode 100644 index 000000000..b5c6fdb00 --- /dev/null +++ b/node_modules/date-fns/fp/addHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addHoursWithOptions = void 0; + +var _index = require("../addHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addHoursWithOptions = (exports.addHoursWithOptions = (0, +_index2.convertToFP)(_index.addHours, 3)); diff --git a/node_modules/date-fns/fp/addHoursWithOptions.d.cts b/node_modules/date-fns/fp/addHoursWithOptions.d.cts new file mode 100644 index 000000000..3c9e5a42a --- /dev/null +++ b/node_modules/date-fns/fp/addHoursWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../addHours.ts").AddHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addHoursWithOptions.d.ts b/node_modules/date-fns/fp/addHoursWithOptions.d.ts new file mode 100644 index 000000000..3c9e5a42a --- /dev/null +++ b/node_modules/date-fns/fp/addHoursWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../addHours.ts").AddHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addHoursWithOptions.js b/node_modules/date-fns/fp/addHoursWithOptions.js new file mode 100644 index 000000000..14f161337 --- /dev/null +++ b/node_modules/date-fns/fp/addHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addHours as fn } from "../addHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addHoursWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addHoursWithOptions; diff --git a/node_modules/date-fns/fp/addISOWeekYears.cjs b/node_modules/date-fns/fp/addISOWeekYears.cjs new file mode 100644 index 000000000..1deacee01 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addISOWeekYears = void 0; + +var _index = require("../addISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addISOWeekYears = (exports.addISOWeekYears = (0, _index2.convertToFP)( + _index.addISOWeekYears, + 2, +)); diff --git a/node_modules/date-fns/fp/addISOWeekYears.d.cts b/node_modules/date-fns/fp/addISOWeekYears.d.cts new file mode 100644 index 000000000..27863bda3 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears.d.cts @@ -0,0 +1,5 @@ +export declare const addISOWeekYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addISOWeekYears.d.ts b/node_modules/date-fns/fp/addISOWeekYears.d.ts new file mode 100644 index 000000000..27863bda3 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears.d.ts @@ -0,0 +1,5 @@ +export declare const addISOWeekYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addISOWeekYears.js b/node_modules/date-fns/fp/addISOWeekYears.js new file mode 100644 index 000000000..64c1d4a9d --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addISOWeekYears as fn } from "../addISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addISOWeekYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addISOWeekYears; diff --git a/node_modules/date-fns/fp/addISOWeekYearsWithOptions.cjs b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.cjs new file mode 100644 index 000000000..5931c01e6 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addISOWeekYearsWithOptions = void 0; + +var _index = require("../addISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addISOWeekYearsWithOptions = (exports.addISOWeekYearsWithOptions = (0, +_index2.convertToFP)(_index.addISOWeekYears, 3)); diff --git a/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.cts b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.cts new file mode 100644 index 000000000..6e53d09a7 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const addISOWeekYearsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addISOWeekYears.ts").AddISOWeekYearsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.ts b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.ts new file mode 100644 index 000000000..6e53d09a7 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const addISOWeekYearsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addISOWeekYears.ts").AddISOWeekYearsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addISOWeekYearsWithOptions.js b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.js new file mode 100644 index 000000000..dd28efa19 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addISOWeekYears as fn } from "../addISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addISOWeekYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addISOWeekYearsWithOptions; diff --git a/node_modules/date-fns/fp/addMilliseconds.cjs b/node_modules/date-fns/fp/addMilliseconds.cjs new file mode 100644 index 000000000..7e73ddc9a --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addMilliseconds = void 0; + +var _index = require("../addMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMilliseconds = (exports.addMilliseconds = (0, _index2.convertToFP)( + _index.addMilliseconds, + 2, +)); diff --git a/node_modules/date-fns/fp/addMilliseconds.d.cts b/node_modules/date-fns/fp/addMilliseconds.d.cts new file mode 100644 index 000000000..9e3db4161 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds.d.cts @@ -0,0 +1,5 @@ +export declare const addMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMilliseconds.d.ts b/node_modules/date-fns/fp/addMilliseconds.d.ts new file mode 100644 index 000000000..9e3db4161 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds.d.ts @@ -0,0 +1,5 @@ +export declare const addMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMilliseconds.js b/node_modules/date-fns/fp/addMilliseconds.js new file mode 100644 index 000000000..5ee342680 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMilliseconds as fn } from "../addMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMilliseconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addMilliseconds; diff --git a/node_modules/date-fns/fp/addMillisecondsWithOptions.cjs b/node_modules/date-fns/fp/addMillisecondsWithOptions.cjs new file mode 100644 index 000000000..beabbc122 --- /dev/null +++ b/node_modules/date-fns/fp/addMillisecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addMillisecondsWithOptions = void 0; + +var _index = require("../addMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMillisecondsWithOptions = (exports.addMillisecondsWithOptions = (0, +_index2.convertToFP)(_index.addMilliseconds, 3)); diff --git a/node_modules/date-fns/fp/addMillisecondsWithOptions.d.cts b/node_modules/date-fns/fp/addMillisecondsWithOptions.d.cts new file mode 100644 index 000000000..fc651a479 --- /dev/null +++ b/node_modules/date-fns/fp/addMillisecondsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const addMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addMilliseconds.ts").AddMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMillisecondsWithOptions.d.ts b/node_modules/date-fns/fp/addMillisecondsWithOptions.d.ts new file mode 100644 index 000000000..fc651a479 --- /dev/null +++ b/node_modules/date-fns/fp/addMillisecondsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const addMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../addMilliseconds.ts").AddMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMillisecondsWithOptions.js b/node_modules/date-fns/fp/addMillisecondsWithOptions.js new file mode 100644 index 000000000..8854f17db --- /dev/null +++ b/node_modules/date-fns/fp/addMillisecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMilliseconds as fn } from "../addMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMillisecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addMillisecondsWithOptions; diff --git a/node_modules/date-fns/fp/addMinutes.cjs b/node_modules/date-fns/fp/addMinutes.cjs new file mode 100644 index 000000000..d4e208c7e --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addMinutes = void 0; + +var _index = require("../addMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMinutes = (exports.addMinutes = (0, _index2.convertToFP)( + _index.addMinutes, + 2, +)); diff --git a/node_modules/date-fns/fp/addMinutes.d.cts b/node_modules/date-fns/fp/addMinutes.d.cts new file mode 100644 index 000000000..ffacd3a67 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes.d.cts @@ -0,0 +1,5 @@ +export declare const addMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMinutes.d.ts b/node_modules/date-fns/fp/addMinutes.d.ts new file mode 100644 index 000000000..ffacd3a67 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes.d.ts @@ -0,0 +1,5 @@ +export declare const addMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMinutes.js b/node_modules/date-fns/fp/addMinutes.js new file mode 100644 index 000000000..c7a1189b0 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMinutes as fn } from "../addMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMinutes = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addMinutes; diff --git a/node_modules/date-fns/fp/addMinutesWithOptions.cjs b/node_modules/date-fns/fp/addMinutesWithOptions.cjs new file mode 100644 index 000000000..e8ee58ca6 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutesWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addMinutesWithOptions = void 0; + +var _index = require("../addMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMinutesWithOptions = (exports.addMinutesWithOptions = (0, +_index2.convertToFP)(_index.addMinutes, 3)); diff --git a/node_modules/date-fns/fp/addMinutesWithOptions.d.cts b/node_modules/date-fns/fp/addMinutesWithOptions.d.cts new file mode 100644 index 000000000..31a2d538e --- /dev/null +++ b/node_modules/date-fns/fp/addMinutesWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../addMinutes.ts").AddMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMinutesWithOptions.d.ts b/node_modules/date-fns/fp/addMinutesWithOptions.d.ts new file mode 100644 index 000000000..31a2d538e --- /dev/null +++ b/node_modules/date-fns/fp/addMinutesWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../addMinutes.ts").AddMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMinutesWithOptions.js b/node_modules/date-fns/fp/addMinutesWithOptions.js new file mode 100644 index 000000000..c0218aadf --- /dev/null +++ b/node_modules/date-fns/fp/addMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMinutes as fn } from "../addMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMinutesWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addMinutesWithOptions; diff --git a/node_modules/date-fns/fp/addMonths.cjs b/node_modules/date-fns/fp/addMonths.cjs new file mode 100644 index 000000000..a491939a5 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addMonths = void 0; + +var _index = require("../addMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMonths = (exports.addMonths = (0, _index2.convertToFP)( + _index.addMonths, + 2, +)); diff --git a/node_modules/date-fns/fp/addMonths.d.cts b/node_modules/date-fns/fp/addMonths.d.cts new file mode 100644 index 000000000..d83b75a6a --- /dev/null +++ b/node_modules/date-fns/fp/addMonths.d.cts @@ -0,0 +1,5 @@ +export declare const addMonths: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMonths.d.ts b/node_modules/date-fns/fp/addMonths.d.ts new file mode 100644 index 000000000..d83b75a6a --- /dev/null +++ b/node_modules/date-fns/fp/addMonths.d.ts @@ -0,0 +1,5 @@ +export declare const addMonths: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMonths.js b/node_modules/date-fns/fp/addMonths.js new file mode 100644 index 000000000..52f383579 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMonths as fn } from "../addMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMonths = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addMonths; diff --git a/node_modules/date-fns/fp/addMonthsWithOptions.cjs b/node_modules/date-fns/fp/addMonthsWithOptions.cjs new file mode 100644 index 000000000..0a502882a --- /dev/null +++ b/node_modules/date-fns/fp/addMonthsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addMonthsWithOptions = void 0; + +var _index = require("../addMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addMonthsWithOptions = (exports.addMonthsWithOptions = (0, +_index2.convertToFP)(_index.addMonths, 3)); diff --git a/node_modules/date-fns/fp/addMonthsWithOptions.d.cts b/node_modules/date-fns/fp/addMonthsWithOptions.d.cts new file mode 100644 index 000000000..c7df9a0d9 --- /dev/null +++ b/node_modules/date-fns/fp/addMonthsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addMonthsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addMonths.ts").AddMonthsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMonthsWithOptions.d.ts b/node_modules/date-fns/fp/addMonthsWithOptions.d.ts new file mode 100644 index 000000000..c7df9a0d9 --- /dev/null +++ b/node_modules/date-fns/fp/addMonthsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addMonthsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addMonths.ts").AddMonthsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addMonthsWithOptions.js b/node_modules/date-fns/fp/addMonthsWithOptions.js new file mode 100644 index 000000000..6a0d3f8cb --- /dev/null +++ b/node_modules/date-fns/fp/addMonthsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addMonths as fn } from "../addMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addMonthsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addMonthsWithOptions; diff --git a/node_modules/date-fns/fp/addQuarters.cjs b/node_modules/date-fns/fp/addQuarters.cjs new file mode 100644 index 000000000..9beda3673 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addQuarters = void 0; + +var _index = require("../addQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addQuarters = (exports.addQuarters = (0, _index2.convertToFP)( + _index.addQuarters, + 2, +)); diff --git a/node_modules/date-fns/fp/addQuarters.d.cts b/node_modules/date-fns/fp/addQuarters.d.cts new file mode 100644 index 000000000..1cc6bf816 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters.d.cts @@ -0,0 +1,5 @@ +export declare const addQuarters: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addQuarters.d.ts b/node_modules/date-fns/fp/addQuarters.d.ts new file mode 100644 index 000000000..1cc6bf816 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters.d.ts @@ -0,0 +1,5 @@ +export declare const addQuarters: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addQuarters.js b/node_modules/date-fns/fp/addQuarters.js new file mode 100644 index 000000000..b108f47a4 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addQuarters as fn } from "../addQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addQuarters = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addQuarters; diff --git a/node_modules/date-fns/fp/addQuartersWithOptions.cjs b/node_modules/date-fns/fp/addQuartersWithOptions.cjs new file mode 100644 index 000000000..18cec4905 --- /dev/null +++ b/node_modules/date-fns/fp/addQuartersWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addQuartersWithOptions = void 0; + +var _index = require("../addQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addQuartersWithOptions = (exports.addQuartersWithOptions = (0, +_index2.convertToFP)(_index.addQuarters, 3)); diff --git a/node_modules/date-fns/fp/addQuartersWithOptions.d.cts b/node_modules/date-fns/fp/addQuartersWithOptions.d.cts new file mode 100644 index 000000000..ae2f03aed --- /dev/null +++ b/node_modules/date-fns/fp/addQuartersWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addQuartersWithOptions: import("./types.ts").FPFn3< + Date, + import("../addQuarters.ts").AddQuartersOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addQuartersWithOptions.d.ts b/node_modules/date-fns/fp/addQuartersWithOptions.d.ts new file mode 100644 index 000000000..ae2f03aed --- /dev/null +++ b/node_modules/date-fns/fp/addQuartersWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addQuartersWithOptions: import("./types.ts").FPFn3< + Date, + import("../addQuarters.ts").AddQuartersOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addQuartersWithOptions.js b/node_modules/date-fns/fp/addQuartersWithOptions.js new file mode 100644 index 000000000..0d8385d61 --- /dev/null +++ b/node_modules/date-fns/fp/addQuartersWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addQuarters as fn } from "../addQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addQuartersWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addQuartersWithOptions; diff --git a/node_modules/date-fns/fp/addSeconds.cjs b/node_modules/date-fns/fp/addSeconds.cjs new file mode 100644 index 000000000..3dddbdd77 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addSeconds = void 0; + +var _index = require("../addSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addSeconds = (exports.addSeconds = (0, _index2.convertToFP)( + _index.addSeconds, + 2, +)); diff --git a/node_modules/date-fns/fp/addSeconds.d.cts b/node_modules/date-fns/fp/addSeconds.d.cts new file mode 100644 index 000000000..76865f78f --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds.d.cts @@ -0,0 +1,5 @@ +export declare const addSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addSeconds.d.ts b/node_modules/date-fns/fp/addSeconds.d.ts new file mode 100644 index 000000000..76865f78f --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds.d.ts @@ -0,0 +1,5 @@ +export declare const addSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addSeconds.js b/node_modules/date-fns/fp/addSeconds.js new file mode 100644 index 000000000..09f9bd010 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addSeconds as fn } from "../addSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addSeconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addSeconds; diff --git a/node_modules/date-fns/fp/addSecondsWithOptions.cjs b/node_modules/date-fns/fp/addSecondsWithOptions.cjs new file mode 100644 index 000000000..c882a107a --- /dev/null +++ b/node_modules/date-fns/fp/addSecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addSecondsWithOptions = void 0; + +var _index = require("../addSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addSecondsWithOptions = (exports.addSecondsWithOptions = (0, +_index2.convertToFP)(_index.addSeconds, 3)); diff --git a/node_modules/date-fns/fp/addSecondsWithOptions.d.cts b/node_modules/date-fns/fp/addSecondsWithOptions.d.cts new file mode 100644 index 000000000..bf5294e26 --- /dev/null +++ b/node_modules/date-fns/fp/addSecondsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addSeconds.ts").AddSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addSecondsWithOptions.d.ts b/node_modules/date-fns/fp/addSecondsWithOptions.d.ts new file mode 100644 index 000000000..bf5294e26 --- /dev/null +++ b/node_modules/date-fns/fp/addSecondsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addSeconds.ts").AddSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addSecondsWithOptions.js b/node_modules/date-fns/fp/addSecondsWithOptions.js new file mode 100644 index 000000000..fc2039ed8 --- /dev/null +++ b/node_modules/date-fns/fp/addSecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addSeconds as fn } from "../addSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addSecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addSecondsWithOptions; diff --git a/node_modules/date-fns/fp/addWeeks.cjs b/node_modules/date-fns/fp/addWeeks.cjs new file mode 100644 index 000000000..a6c237e99 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addWeeks = void 0; + +var _index = require("../addWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addWeeks = (exports.addWeeks = (0, _index2.convertToFP)( + _index.addWeeks, + 2, +)); diff --git a/node_modules/date-fns/fp/addWeeks.d.cts b/node_modules/date-fns/fp/addWeeks.d.cts new file mode 100644 index 000000000..5f964dfc3 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks.d.cts @@ -0,0 +1,5 @@ +export declare const addWeeks: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWeeks.d.ts b/node_modules/date-fns/fp/addWeeks.d.ts new file mode 100644 index 000000000..5f964dfc3 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks.d.ts @@ -0,0 +1,5 @@ +export declare const addWeeks: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWeeks.js b/node_modules/date-fns/fp/addWeeks.js new file mode 100644 index 000000000..12d5e9a66 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addWeeks as fn } from "../addWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addWeeks = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addWeeks; diff --git a/node_modules/date-fns/fp/addWeeksWithOptions.cjs b/node_modules/date-fns/fp/addWeeksWithOptions.cjs new file mode 100644 index 000000000..3d2cb2e5e --- /dev/null +++ b/node_modules/date-fns/fp/addWeeksWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addWeeksWithOptions = void 0; + +var _index = require("../addWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addWeeksWithOptions = (exports.addWeeksWithOptions = (0, +_index2.convertToFP)(_index.addWeeks, 3)); diff --git a/node_modules/date-fns/fp/addWeeksWithOptions.d.cts b/node_modules/date-fns/fp/addWeeksWithOptions.d.cts new file mode 100644 index 000000000..602cd0596 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeksWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addWeeksWithOptions: import("./types.ts").FPFn3< + Date, + import("../addWeeks.ts").AddWeeksOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWeeksWithOptions.d.ts b/node_modules/date-fns/fp/addWeeksWithOptions.d.ts new file mode 100644 index 000000000..602cd0596 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeksWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addWeeksWithOptions: import("./types.ts").FPFn3< + Date, + import("../addWeeks.ts").AddWeeksOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWeeksWithOptions.js b/node_modules/date-fns/fp/addWeeksWithOptions.js new file mode 100644 index 000000000..51b70184c --- /dev/null +++ b/node_modules/date-fns/fp/addWeeksWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addWeeks as fn } from "../addWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addWeeksWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addWeeksWithOptions; diff --git a/node_modules/date-fns/fp/addWithOptions.cjs b/node_modules/date-fns/fp/addWithOptions.cjs new file mode 100644 index 000000000..892c4e55b --- /dev/null +++ b/node_modules/date-fns/fp/addWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addWithOptions = void 0; + +var _index = require("../add.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addWithOptions = (exports.addWithOptions = (0, _index2.convertToFP)( + _index.add, + 3, +)); diff --git a/node_modules/date-fns/fp/addWithOptions.d.cts b/node_modules/date-fns/fp/addWithOptions.d.cts new file mode 100644 index 000000000..9df7c16af --- /dev/null +++ b/node_modules/date-fns/fp/addWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addWithOptions: import("./types.ts").FPFn3< + Date, + import("../add.ts").AddOptions | undefined, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWithOptions.d.ts b/node_modules/date-fns/fp/addWithOptions.d.ts new file mode 100644 index 000000000..9df7c16af --- /dev/null +++ b/node_modules/date-fns/fp/addWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addWithOptions: import("./types.ts").FPFn3< + Date, + import("../add.ts").AddOptions | undefined, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addWithOptions.js b/node_modules/date-fns/fp/addWithOptions.js new file mode 100644 index 000000000..277be5131 --- /dev/null +++ b/node_modules/date-fns/fp/addWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { add as fn } from "../add.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addWithOptions; diff --git a/node_modules/date-fns/fp/addYears.cjs b/node_modules/date-fns/fp/addYears.cjs new file mode 100644 index 000000000..0a0776061 --- /dev/null +++ b/node_modules/date-fns/fp/addYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.addYears = void 0; + +var _index = require("../addYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addYears = (exports.addYears = (0, _index2.convertToFP)( + _index.addYears, + 2, +)); diff --git a/node_modules/date-fns/fp/addYears.d.cts b/node_modules/date-fns/fp/addYears.d.cts new file mode 100644 index 000000000..371734221 --- /dev/null +++ b/node_modules/date-fns/fp/addYears.d.cts @@ -0,0 +1,5 @@ +export declare const addYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addYears.d.ts b/node_modules/date-fns/fp/addYears.d.ts new file mode 100644 index 000000000..371734221 --- /dev/null +++ b/node_modules/date-fns/fp/addYears.d.ts @@ -0,0 +1,5 @@ +export declare const addYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addYears.js b/node_modules/date-fns/fp/addYears.js new file mode 100644 index 000000000..1f017f4ef --- /dev/null +++ b/node_modules/date-fns/fp/addYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addYears as fn } from "../addYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default addYears; diff --git a/node_modules/date-fns/fp/addYearsWithOptions.cjs b/node_modules/date-fns/fp/addYearsWithOptions.cjs new file mode 100644 index 000000000..3cf8aee0a --- /dev/null +++ b/node_modules/date-fns/fp/addYearsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.addYearsWithOptions = void 0; + +var _index = require("../addYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const addYearsWithOptions = (exports.addYearsWithOptions = (0, +_index2.convertToFP)(_index.addYears, 3)); diff --git a/node_modules/date-fns/fp/addYearsWithOptions.d.cts b/node_modules/date-fns/fp/addYearsWithOptions.d.cts new file mode 100644 index 000000000..eb41b208f --- /dev/null +++ b/node_modules/date-fns/fp/addYearsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const addYearsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addYears.ts").AddYearsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addYearsWithOptions.d.ts b/node_modules/date-fns/fp/addYearsWithOptions.d.ts new file mode 100644 index 000000000..eb41b208f --- /dev/null +++ b/node_modules/date-fns/fp/addYearsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const addYearsWithOptions: import("./types.ts").FPFn3< + Date, + import("../addYears.ts").AddYearsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/addYearsWithOptions.js b/node_modules/date-fns/fp/addYearsWithOptions.js new file mode 100644 index 000000000..904982cd0 --- /dev/null +++ b/node_modules/date-fns/fp/addYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { addYears as fn } from "../addYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const addYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default addYearsWithOptions; diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping.cjs b/node_modules/date-fns/fp/areIntervalsOverlapping.cjs new file mode 100644 index 000000000..b886440e0 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.areIntervalsOverlapping = void 0; + +var _index = require("../areIntervalsOverlapping.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const areIntervalsOverlapping = (exports.areIntervalsOverlapping = (0, +_index2.convertToFP)(_index.areIntervalsOverlapping, 2)); diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping.d.cts b/node_modules/date-fns/fp/areIntervalsOverlapping.d.cts new file mode 100644 index 000000000..6051e8626 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping.d.cts @@ -0,0 +1,11 @@ +export declare const areIntervalsOverlapping: import("./types.ts").FPFn2< + boolean, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping.d.ts b/node_modules/date-fns/fp/areIntervalsOverlapping.d.ts new file mode 100644 index 000000000..6051e8626 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping.d.ts @@ -0,0 +1,11 @@ +export declare const areIntervalsOverlapping: import("./types.ts").FPFn2< + boolean, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping.js b/node_modules/date-fns/fp/areIntervalsOverlapping.js new file mode 100644 index 000000000..add4e1b38 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { areIntervalsOverlapping as fn } from "../areIntervalsOverlapping.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const areIntervalsOverlapping = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default areIntervalsOverlapping; diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.cjs b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.cjs new file mode 100644 index 000000000..34daeab2d --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.areIntervalsOverlappingWithOptions = void 0; + +var _index = require("../areIntervalsOverlapping.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const areIntervalsOverlappingWithOptions = + (exports.areIntervalsOverlappingWithOptions = (0, _index2.convertToFP)( + _index.areIntervalsOverlapping, + 3, + )); diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.cts b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.cts new file mode 100644 index 000000000..792383084 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.cts @@ -0,0 +1,13 @@ +export declare const areIntervalsOverlappingWithOptions: import("./types.ts").FPFn3< + boolean, + | import("../areIntervalsOverlapping.ts").AreIntervalsOverlappingOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.ts b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.ts new file mode 100644 index 000000000..792383084 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.d.ts @@ -0,0 +1,13 @@ +export declare const areIntervalsOverlappingWithOptions: import("./types.ts").FPFn3< + boolean, + | import("../areIntervalsOverlapping.ts").AreIntervalsOverlappingOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.js b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.js new file mode 100644 index 000000000..f86967cfa --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { areIntervalsOverlapping as fn } from "../areIntervalsOverlapping.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const areIntervalsOverlappingWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default areIntervalsOverlappingWithOptions; diff --git a/node_modules/date-fns/fp/cdn.js b/node_modules/date-fns/fp/cdn.js new file mode 100644 index 000000000..578be1378 --- /dev/null +++ b/node_modules/date-fns/fp/cdn.js @@ -0,0 +1,13661 @@ +(() => { +function _createForOfIteratorHelper(r, e) {var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (!t) {if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {t && (r = t);var _n = 0,F = function F() {};return { s: F, n: function n() {return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] };}, e: function e(r) {throw r;}, f: F };}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a = !0,u = !1;return { s: function s() {t = t.call(r);}, n: function n() {var r = t.next();return a = r.done, r;}, e: function e(r) {u = !0, o = r;}, f: function f() {try {a || null == t.return || t.return();} finally {if (u) throw o;}} };}function _callSuper(t, o, e) {return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));}function _possibleConstructorReturn(t, e) {if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e) {if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct() {try {var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));} catch (t) {}return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {return !!t;})();}function _getPrototypeOf(t) {return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {return t.__proto__ || Object.getPrototypeOf(t);}, _getPrototypeOf(t);}function _inherits(t, e) {if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);}function _setPrototypeOf(t, e) {return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {return t.__proto__ = e, t;}, _setPrototypeOf(t, e);}function _classCallCheck(a, n) {if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");}function _defineProperties(e, r) {for (var t = 0; t < r.length; t++) {var o = r[t];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);}}function _createClass(e, r, t) {return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;}function _toArray(r) {return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _toConsumableArray(r) {return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _iterableToArray(r) {if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);}function _arrayWithoutHoles(r) {if (Array.isArray(r)) return _arrayLikeToArray(r);}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region \0rolldown/runtime.js +var __defProp = Object.defineProperty; +var __exportAll = function __exportAll(all, no_symbols) { + var target = {}; + for (var name in all) __defProp(target, name, { + get: all[name], + enumerable: true + }); + if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); + return target; +}; +//#endregion +//#region dist/date-fns/constants.js +/** +* @constant +* @name daysInYear +* @summary Days in 1 year. +* +* @description +* How many days in a year. +* +* One years equals 365.2425 days according to the formula: +* +* > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. +* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +*/ +var daysInYear = 365.2425; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name millisecondsInWeek +* @summary Milliseconds in 1 week. +*/ +var millisecondsInWeek = 6048e5; +/** +* @constant +* @name millisecondsInDay +* @summary Milliseconds in 1 day. +*/ +var millisecondsInDay = 864e5; +/** +* @constant +* @name millisecondsInMinute +* @summary Milliseconds in 1 minute +*/ +var millisecondsInMinute = 6e4; +/** +* @constant +* @name millisecondsInHour +* @summary Milliseconds in 1 hour +*/ +var millisecondsInHour = 36e5; +/** +* @constant +* @name millisecondsInSecond +* @summary Milliseconds in 1 second +*/ +var millisecondsInSecond = 1e3; +/** +* @constant +* @name minutesInYear +* @summary Minutes in 1 year. +*/ +var minutesInYear = 525600; +/** +* @constant +* @name minutesInMonth +* @summary Minutes in 1 month. +*/ +var minutesInMonth = 43200; +/** +* @constant +* @name minutesInDay +* @summary Minutes in 1 day. +*/ +var minutesInDay = 1440; +/** +* @constant +* @name secondsInHour +* @summary Seconds in 1 hour. +*/ +var secondsInHour = 3600; +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom$1(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate$1(argument, context) { + return constructFrom$1(context || argument, argument); +} +//#endregion +//#region dist/date-fns/addDays.js +/** +* The {@link addDays} function options. +*/ +/** +* @name addDays +* @category Day Helpers +* @summary Add the specified number of days to the given date. +* +* @description +* Add the specified number of days to the given date. +* +* **You don't need date-fns\***: +* +* Temporal has a built-in `add` method on all its classes: +* +* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) +* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) +* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) +* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) +* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) +* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of days to be added. +* @param options - An object with options +* +* @returns The new date with the days added +* +* @example +* // Add 10 days to 1 September 2014: +* const result = addDays(new Date(2014, 8, 1), 10) +* //=> Thu Sep 11 2014 00:00:00 +* +* @example +* // Using Temporal: +* // Add 10 days to 1 September 2014: +* Temporal.PlainDate.from("2014-09-01").add({ days: 10 }).toString(); +* //=> "2014-09-11" +*/ +function addDays$1(date, amount, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(amount)) return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (!amount) return _date; + _date.setDate(_date.getDate() + amount); + return _date; +} +//#endregion +//#region dist/date-fns/addMonths.js +/** +* The {@link addMonths} function options. +*/ +/** +* @name addMonths +* @category Month Helpers +* @summary Add the specified number of months to the given date. +* +* @description +* Add the specified number of months to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of months to be added. +* @param options - The options object +* +* @returns The new date with the months added +* +* @example +* // Add 5 months to 1 September 2014: +* const result = addMonths(new Date(2014, 8, 1), 5) +* //=> Sun Feb 01 2015 00:00:00 +* +* // Add one month to 30 January 2023: +* const result = addMonths(new Date(2023, 0, 30), 1) +* //=> Tue Feb 28 2023 00:00:00 +*/ +function addMonths$1(date, amount, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(amount)) return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (!amount) return _date; + var dayOfMonth = _date.getDate(); + var endOfDesiredMonth = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, _date.getTime()); + endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); + if (dayOfMonth >= endOfDesiredMonth.getDate()) return endOfDesiredMonth;else + { + _date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); + return _date; + } +} +//#endregion +//#region dist/date-fns/add.js +/** +* The {@link add} function options. +*/ +/** +* @name add +* @category Common Helpers +* @summary Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. +* +* @description +* Add the specified years, months, weeks, days, hours, minutes, and seconds to the given date. +* +* **You don't need date-fns\***: +* +* Temporal has a built-in `add` method on all its classes: +* +* - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add) +* - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add) +* - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add) +* - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add) +* - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add) +* - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add) +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param duration - The object with years, months, weeks, days, hours, minutes, and seconds to be added. +* @param options - An object with options +* +* @returns The new date with the seconds added +* +* @example +* // Add the following duration to 1 September 2014, 10:19:50 +* const result = add(new Date(2014, 8, 1, 10, 19, 50), { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30, +* }) +* //=> Thu Jun 15 2017 15:29:20 +* +* @example +* // Using Temporal: +* // Add the following duration to 1 September 2014, 10:19:50 +* Temporal.PlainDateTime.from("2014-09-01T10:19:50") +* .add({ +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30, +* }) +* .toString(); +* //=> "2017-06-15T15:29:20" +*/ +function add$1(date, duration, options) { + var _duration$years = duration.years,years = _duration$years === void 0 ? 0 : _duration$years,_duration$months = duration.months,months = _duration$months === void 0 ? 0 : _duration$months,_duration$weeks = duration.weeks,weeks = _duration$weeks === void 0 ? 0 : _duration$weeks,_duration$days = duration.days,days = _duration$days === void 0 ? 0 : _duration$days,_duration$hours = duration.hours,hours = _duration$hours === void 0 ? 0 : _duration$hours,_duration$minutes = duration.minutes,minutes = _duration$minutes === void 0 ? 0 : _duration$minutes,_duration$seconds = duration.seconds,seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var dateWithMonths = months || years ? addMonths$1(_date, months + years * 12) : _date; + var dateWithDays = days || weeks ? addDays$1(dateWithMonths, days + weeks * 7) : dateWithMonths; + var msToAdd = (seconds + (minutes + hours * 60) * 60) * 1e3; + return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, +dateWithDays + msToAdd); +} +//#endregion +//#region dist/date-fns/fp/_lib/convertToFP.js +/** +* Converts a function to a curried function that accepts arguments in reverse +* order. +* +* @param fn - The function to convert to FP +* @param arity - The arity of the function +* @param curriedArgs - The curried arguments +* +* @returns FP version of the function +* +* @private +*/ +function convertToFP(fn, arity) {var curriedArgs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + return curriedArgs.length >= arity ? fn.apply(void 0, _toConsumableArray(curriedArgs.slice(0, arity).reverse())) : function () {for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {args[_key] = arguments[_key];}return convertToFP(fn, arity, curriedArgs.concat(args));}; +} +//#endregion +//#region dist/date-fns/fp/add.js +var _add = convertToFP(add$1, 2); +//#endregion +//#region dist/date-fns/isSaturday.js +/** +* The {@link isSaturday} function options. +*/ +/** +* @name isSaturday +* @category Weekday Helpers +* @summary Is the given date Saturday? +* +* @description +* Is the given date Saturday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Saturday +* +* @example +* // Is 27 September 2014 Saturday? +* const result = isSaturday(new Date(2014, 8, 27)) +* //=> true +*/ +function isSaturday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 6; +} +//#endregion +//#region dist/date-fns/isSunday.js +/** +* The {@link isSunday} function options. +*/ +/** +* @name isSunday +* @category Weekday Helpers +* @summary Is the given date Sunday? +* +* @description +* Is the given date Sunday? +* +* @param date - The date to check +* @param options - The options object +* +* @returns The date is Sunday +* +* @example +* // Is 21 September 2014 Sunday? +* const result = isSunday(new Date(2014, 8, 21)) +* //=> true +*/ +function isSunday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 0; +} +//#endregion +//#region dist/date-fns/isWeekend.js +/** +* The {@link isWeekend} function options. +*/ +/** +* @name isWeekend +* @category Weekday Helpers +* @summary Does the given date fall on a weekend? +* +* @description +* Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date falls on a weekend +* +* @example +* // Does 5 October 2014 fall on a weekend? +* const result = isWeekend(new Date(2014, 9, 5)) +* //=> true +*/ +function isWeekend$1(date, options) { + var day = toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay(); + return day === 0 || day === 6; +} +//#endregion +//#region dist/date-fns/addBusinessDays.js +/** +* The {@link addBusinessDays} function options. +*/ +/** +* @name addBusinessDays +* @category Day Helpers +* @summary Add the specified number of business days (mon - fri) to the given date. +* +* @description +* Add the specified number of business days (mon - fri) to the given date, ignoring weekends. +* +* **You don't need date-fns\***: +* +* Temporal doesn't have built-in business day arithmetic, so you still need date-fns for this. +* +* \* **Not really**, see: https://date-fns.org/you-dont-need-date-fns +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of business days to be added. +* @param options - An object with options +* +* @returns The new date with the business days added +* +* @example +* // Add 10 business days to 1 September 2014: +* const result = addBusinessDays(new Date(2014, 8, 1), 10) +* //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) +*/ +function addBusinessDays$1(date, amount, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var startedOnWeekend = isWeekend$1(_date, options); + if (isNaN(amount)) return constructFrom$1(options === null || options === void 0 ? void 0 : options.in, NaN); + var hours = _date.getHours(); + var sign = amount < 0 ? -1 : 1; + var fullWeeks = Math.trunc(amount / 5); + _date.setDate(_date.getDate() + fullWeeks * 7); + var restDays = Math.abs(amount % 5); + while (restDays > 0) { + _date.setDate(_date.getDate() + sign); + if (!isWeekend$1(_date, options)) restDays -= 1; + } + if (startedOnWeekend && isWeekend$1(_date, options) && amount !== 0) { + if (isSaturday$1(_date, options)) _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1)); + if (isSunday$1(_date, options)) _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2)); + } + _date.setHours(hours); + return _date; +} +//#endregion +//#region dist/date-fns/fp/addBusinessDays.js +var _addBusinessDays = convertToFP(addBusinessDays$1, 2); +//#endregion +//#region dist/date-fns/fp/addBusinessDaysWithOptions.js +var _addBusinessDaysWithOptions = convertToFP(addBusinessDays$1, 3); +//#endregion +//#region dist/date-fns/fp/addDays.js +var _addDays = convertToFP(addDays$1, 2); +//#endregion +//#region dist/date-fns/fp/addDaysWithOptions.js +var _addDaysWithOptions = convertToFP(addDays$1, 3); +//#endregion +//#region dist/date-fns/addMilliseconds.js +/** +* The {@link addMilliseconds} function options. +*/ +/** +* @name addMilliseconds +* @category Millisecond Helpers +* @summary Add the specified number of milliseconds to the given date. +* +* @description +* Add the specified number of milliseconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of milliseconds to be added. +* @param options - The options object +* +* @returns The new date with the milliseconds added +* +* @example +* // Add 750 milliseconds to 10 July 2014 12:45:30.000: +* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) +* //=> Thu Jul 10 2014 12:45:30.750 +*/ +function addMilliseconds$1(date, amount, options) { + return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, +toDate$1(date) + amount); +} +//#endregion +//#region dist/date-fns/addHours.js +/** +* The {@link addHours} function options. +*/ +/** +* @name addHours +* @category Hour Helpers +* @summary Add the specified number of hours to the given date. +* +* @description +* Add the specified number of hours to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of hours to be added +* @param options - An object with options +* +* @returns The new date with the hours added +* +* @example +* // Add 2 hours to 10 July 2014 23:00:00: +* const result = addHours(new Date(2014, 6, 10, 23, 0), 2) +* //=> Fri Jul 11 2014 01:00:00 +*/ +function addHours$1(date, amount, options) { + return addMilliseconds$1(date, amount * millisecondsInHour, options); +} +//#endregion +//#region dist/date-fns/fp/addHours.js +var _addHours = convertToFP(addHours$1, 2); +//#endregion +//#region dist/date-fns/fp/addHoursWithOptions.js +var _addHoursWithOptions = convertToFP(addHours$1, 3); +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions$1() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek$1(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/startOfISOWeek.js +/** +* The {@link startOfISOWeek} function options. +*/ +/** +* @name startOfISOWeek +* @category ISO Week Helpers +* @summary Return the start of an ISO week for the given date. +* +* @description +* Return the start of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an ISO week +* +* @example +* // The start of an ISO week for 2 September 2014 11:55:00: +* const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfISOWeek$1(date, options) { + return startOfWeek$1(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/getISOWeekYear.js +/** +* The {@link getISOWeekYear} function options. +*/ +/** +* @name getISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Get the ISO week-numbering year of the given date. +* +* @description +* Get the ISO week-numbering year of the given date, +* which always starts 3 days before the year's first Thursday. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* +* @returns The ISO week-numbering year +* +* @example +* // Which ISO-week numbering year is 2 January 2005? +* const result = getISOWeekYear(new Date(2005, 0, 2)) +* //=> 2004 +*/ +function getISOWeekYear$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var fourthOfJanuaryOfNextYear = constructFrom$1(_date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = startOfISOWeek$1(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = constructFrom$1(_date, 0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = startOfISOWeek$1(fourthOfJanuaryOfThisYear); + if (_date.getTime() >= startOfNextYear.getTime()) return year + 1;else + if (_date.getTime() >= startOfThisYear.getTime()) return year;else + return year - 1; +} +//#endregion +//#region dist/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +/** +* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. +* They usually appear for dates that denote time before the timezones were introduced +* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 +* and GMT+01:00:00 after that date) +* +* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, +* which would lead to incorrect calculations. +* +* This function returns the timezone offset in milliseconds that takes seconds in account. +*/ +function getTimezoneOffsetInMilliseconds(date) { + var _date = toDate$1(date); + var utcDate = new Date(Date.UTC(_date.getFullYear(), _date.getMonth(), _date.getDate(), _date.getHours(), _date.getMinutes(), _date.getSeconds(), _date.getMilliseconds())); + utcDate.setUTCFullYear(_date.getFullYear()); + return +date - +utcDate; +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len2 = arguments.length, dates = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {dates[_key2 - 1] = arguments[_key2];} + var normalize = constructFrom$1.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/startOfDay.js +/** +* The {@link startOfDay} function options. +*/ +/** +* @name startOfDay +* @category Day Helpers +* @summary Return the start of a day for the given date. +* +* @description +* Return the start of a day for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a day +* +* @example +* // The start of a day for 2 September 2014 11:55:00: +* const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 02 2014 00:00:00 +*/ +function startOfDay$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/differenceInCalendarDays.js +/** +* The {@link differenceInCalendarDays} function options. +*/ +/** +* @name differenceInCalendarDays +* @category Day Helpers +* @summary Get the number of calendar days between the given dates. +* +* @description +* Get the number of calendar days between the given dates. This means that the times are removed +* from the dates and then the difference in days is calculated. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - The options object +* +* @returns The number of calendar days +* +* @example +* // How many calendar days are between +* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? +* const result = differenceInCalendarDays( +* new Date(2012, 6, 2, 0, 0), +* new Date(2011, 6, 2, 23, 0) +* ) +* //=> 366 +* // How many calendar days are between +* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? +* const result = differenceInCalendarDays( +* new Date(2011, 6, 3, 0, 1), +* new Date(2011, 6, 2, 23, 59) +* ) +* //=> 1 +*/ +function differenceInCalendarDays$1(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + var laterStartOfDay = startOfDay$1(laterDate_); + var earlierStartOfDay = startOfDay$1(earlierDate_); + var laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay); + var earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay); + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay); +} +//#endregion +//#region dist/date-fns/startOfISOWeekYear.js +/** +* The {@link startOfISOWeekYear} function options. +*/ +/** +* @name startOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the start of an ISO week-numbering year for the given date. +* +* @description +* Return the start of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an ISO week-numbering year +* +* @example +* // The start of an ISO week-numbering year for 2 July 2005: +* const result = startOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Mon Jan 03 2005 00:00:00 +*/ +function startOfISOWeekYear$1(date, options) { + var year = getISOWeekYear$1(date, options); + var fourthOfJanuary = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(year, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + return startOfISOWeek$1(fourthOfJanuary); +} +//#endregion +//#region dist/date-fns/setISOWeekYear.js +/** +* The {@link setISOWeekYear} function options. +*/ +/** +* @name setISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Set the ISO week-numbering year to the given date. +* +* @description +* Set the ISO week-numbering year to the given date, +* saving the week number and the weekday number. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param weekYear - The ISO week-numbering year of the new date +* @param options - An object with options +* +* @returns The new date with the ISO week-numbering year set +* +* @example +* // Set ISO week-numbering year 2007 to 29 December 2008: +* const result = setISOWeekYear(new Date(2008, 11, 29), 2007) +* //=> Mon Jan 01 2007 00:00:00 +*/ +function setISOWeekYear$1(date, weekYear, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = differenceInCalendarDays$1(_date, startOfISOWeekYear$1(_date, options)); + var fourthOfJanuary = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(weekYear, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + _date = startOfISOWeekYear$1(fourthOfJanuary); + _date.setDate(_date.getDate() + diff); + return _date; +} +//#endregion +//#region dist/date-fns/addISOWeekYears.js +/** +* The {@link addISOWeekYears} function options. +*/ +/** +* @name addISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Add the specified number of ISO week-numbering years to the given date. +* +* @description +* Add the specified number of ISO week-numbering years to the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The date to be changed +* @param amount - The amount of ISO week-numbering years to be added. +* @param options - An object with options +* +* @returns The new date with the ISO week-numbering years added +* +* @example +* // Add 5 ISO week-numbering years to 2 July 2010: +* const result = addISOWeekYears(new Date(2010, 6, 2), 5) +* //=> Fri Jun 26 2015 00:00:00 +*/ +function addISOWeekYears$1(date, amount, options) { + return setISOWeekYear$1(date, getISOWeekYear$1(date, options) + amount, options); +} +//#endregion +//#region dist/date-fns/fp/addISOWeekYears.js +var _addISOWeekYears = convertToFP(addISOWeekYears$1, 2); +//#endregion +//#region dist/date-fns/fp/addISOWeekYearsWithOptions.js +var _addISOWeekYearsWithOptions = convertToFP(addISOWeekYears$1, 3); +//#endregion +//#region dist/date-fns/fp/addMilliseconds.js +var _addMilliseconds = convertToFP(addMilliseconds$1, 2); +//#endregion +//#region dist/date-fns/fp/addMillisecondsWithOptions.js +var _addMillisecondsWithOptions = convertToFP(addMilliseconds$1, 3); +//#endregion +//#region dist/date-fns/addMinutes.js +/** +* The {@link addMinutes} function options. +*/ +/** +* @name addMinutes +* @category Minute Helpers +* @summary Add the specified number of minutes to the given date. +* +* @description +* Add the specified number of minutes to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of minutes to be added. +* @param options - An object with options +* +* @returns The new date with the minutes added +* +* @example +* // Add 30 minutes to 10 July 2014 12:00:00: +* const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) +* //=> Thu Jul 10 2014 12:30:00 +*/ +function addMinutes$1(date, amount, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setTime(_date.getTime() + amount * millisecondsInMinute); + return _date; +} +//#endregion +//#region dist/date-fns/fp/addMinutes.js +var _addMinutes = convertToFP(addMinutes$1, 2); +//#endregion +//#region dist/date-fns/fp/addMinutesWithOptions.js +var _addMinutesWithOptions = convertToFP(addMinutes$1, 3); +//#endregion +//#region dist/date-fns/fp/addMonths.js +var _addMonths = convertToFP(addMonths$1, 2); +//#endregion +//#region dist/date-fns/fp/addMonthsWithOptions.js +var _addMonthsWithOptions = convertToFP(addMonths$1, 3); +//#endregion +//#region dist/date-fns/addQuarters.js +/** +* The {@link addQuarters} function options. +*/ +/** +* @name addQuarters +* @category Quarter Helpers +* @summary Add the specified number of year quarters to the given date. +* +* @description +* Add the specified number of year quarters to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of quarters to be added. +* @param options - An object with options +* +* @returns The new date with the quarters added +* +* @example +* // Add 1 quarter to 1 September 2014: +* const result = addQuarters(new Date(2014, 8, 1), 1) +* //=; Mon Dec 01 2014 00:00:00 +*/ +function addQuarters$1(date, amount, options) { + return addMonths$1(date, amount * 3, options); +} +//#endregion +//#region dist/date-fns/fp/addQuarters.js +var _addQuarters = convertToFP(addQuarters$1, 2); +//#endregion +//#region dist/date-fns/fp/addQuartersWithOptions.js +var _addQuartersWithOptions = convertToFP(addQuarters$1, 3); +//#endregion +//#region dist/date-fns/addSeconds.js +/** +* The {@link addSeconds} function options. +*/ +/** +* @name addSeconds +* @category Second Helpers +* @summary Add the specified number of seconds to the given date. +* +* @description +* Add the specified number of seconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of seconds to be added. +* @param options - An object with options +* +* @returns The new date with the seconds added +* +* @example +* // Add 30 seconds to 10 July 2014 12:45:00: +* const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) +* //=> Thu Jul 10 2014 12:45:30 +*/ +function addSeconds$1(date, amount, options) { + return addMilliseconds$1(date, amount * 1e3, options); +} +//#endregion +//#region dist/date-fns/fp/addSeconds.js +var _addSeconds = convertToFP(addSeconds$1, 2); +//#endregion +//#region dist/date-fns/fp/addSecondsWithOptions.js +var _addSecondsWithOptions = convertToFP(addSeconds$1, 3); +//#endregion +//#region dist/date-fns/addWeeks.js +/** +* The {@link addWeeks} function options. +*/ +/** +* @name addWeeks +* @category Week Helpers +* @summary Add the specified number of weeks to the given date. +* +* @description +* Add the specified number of weeks to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of weeks to be added. +* @param options - An object with options +* +* @returns The new date with the weeks added +* +* @example +* // Add 4 weeks to 1 September 2014: +* const result = addWeeks(new Date(2014, 8, 1), 4) +* //=> Mon Sep 29 2014 00:00:00 +*/ +function addWeeks$1(date, amount, options) { + return addDays$1(date, amount * 7, options); +} +//#endregion +//#region dist/date-fns/fp/addWeeks.js +var _addWeeks = convertToFP(addWeeks$1, 2); +//#endregion +//#region dist/date-fns/fp/addWeeksWithOptions.js +var _addWeeksWithOptions = convertToFP(addWeeks$1, 3); +//#endregion +//#region dist/date-fns/fp/addWithOptions.js +var _addWithOptions = convertToFP(add$1, 3); +//#endregion +//#region dist/date-fns/addYears.js +/** +* The {@link addYears} function options. +*/ +/** +* @name addYears +* @category Year Helpers +* @summary Add the specified number of years to the given date. +* +* @description +* Add the specified number of years to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type. +* +* @param date - The date to be changed +* @param amount - The amount of years to be added. +* @param options - The options +* +* @returns The new date with the years added +* +* @example +* // Add 5 years to 1 September 2014: +* const result = addYears(new Date(2014, 8, 1), 5) +* //=> Sun Sep 01 2019 00:00:00 +*/ +function addYears$1(date, amount, options) { + return addMonths$1(date, amount * 12, options); +} +//#endregion +//#region dist/date-fns/fp/addYears.js +var _addYears = convertToFP(addYears$1, 2); +//#endregion +//#region dist/date-fns/fp/addYearsWithOptions.js +var _addYearsWithOptions = convertToFP(addYears$1, 3); +//#endregion +//#region dist/date-fns/areIntervalsOverlapping.js +/** +* The {@link areIntervalsOverlapping} function options. +*/ +/** +* @name areIntervalsOverlapping +* @category Interval Helpers +* @summary Is the given time interval overlapping with another time interval? +* +* @description +* Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping unless `inclusive` is set to `true`. +* +* @param intervalLeft - The first interval to compare. +* @param intervalRight - The second interval to compare. +* @param options - The object with options +* +* @returns Whether the time intervals are overlapping +* +* @example +* // For overlapping time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } +* ) +* //=> true +* +* @example +* // For non-overlapping time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } +* ) +* //=> false +* +* @example +* // For adjacent time intervals: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } +* ) +* //=> false +* +* @example +* // Using the inclusive option: +* areIntervalsOverlapping( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, +* { inclusive: true } +* ) +* //=> true +*/ +function areIntervalsOverlapping$1(intervalLeft, intervalRight, options) { + var _sort = [+toDate$1(intervalLeft.start, options === null || options === void 0 ? void 0 : options.in), +toDate$1(intervalLeft.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort2 = _slicedToArray(_sort, 2),leftStartTime = _sort2[0],leftEndTime = _sort2[1]; + var _sort3 = [+toDate$1(intervalRight.start, options === null || options === void 0 ? void 0 : options.in), +toDate$1(intervalRight.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort4 = _slicedToArray(_sort3, 2),rightStartTime = _sort4[0],rightEndTime = _sort4[1]; + if (options !== null && options !== void 0 && options.inclusive) return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} +//#endregion +//#region dist/date-fns/fp/areIntervalsOverlapping.js +var _areIntervalsOverlapping = convertToFP(areIntervalsOverlapping$1, 2); +//#endregion +//#region dist/date-fns/fp/areIntervalsOverlappingWithOptions.js +var _areIntervalsOverlappingWithOptions = convertToFP(areIntervalsOverlapping$1, 3); +//#endregion +//#region dist/date-fns/max.js +/** +* The {@link max} function options. +*/ +/** +* @name max +* @category Common Helpers +* @summary Return the latest of the given dates. +* +* @description +* Return the latest of the given dates. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dates - The dates to compare +* +* @returns The latest of the dates +* +* @example +* // Which of these dates is the latest? +* const result = max([ +* new Date(1989, 6, 10), +* new Date(1987, 1, 11), +* new Date(1995, 6, 2), +* new Date(1990, 0, 1) +* ]) +* //=> Sun Jul 02 1995 00:00:00 +*/ +function max$1(dates, options) { + var result; + var context = options === null || options === void 0 ? void 0 : options.in; + dates.forEach(function (date) { + if (!context && _typeof(date) === "object") context = constructFrom$1.bind(null, date); + var date_ = toDate$1(date, context); + if (!result || result < date_ || isNaN(+date_)) result = date_; + }); + return constructFrom$1(context, result || NaN); +} +//#endregion +//#region dist/date-fns/min.js +/** +* The {@link min} function options. +*/ +/** +* @name min +* @category Common Helpers +* @summary Returns the earliest of the given dates. +* +* @description +* Returns the earliest of the given dates. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dates - The dates to compare +* +* @returns The earliest of the dates +* +* @example +* // Which of these dates is the earliest? +* const result = min([ +* new Date(1989, 6, 10), +* new Date(1987, 1, 11), +* new Date(1995, 6, 2), +* new Date(1990, 0, 1) +* ]) +* //=> Wed Feb 11 1987 00:00:00 +*/ +function min$1(dates, options) { + var result; + var context = options === null || options === void 0 ? void 0 : options.in; + dates.forEach(function (date) { + if (!context && _typeof(date) === "object") context = constructFrom$1.bind(null, date); + var date_ = toDate$1(date, context); + if (!result || result > date_ || isNaN(+date_)) result = date_; + }); + return constructFrom$1(context, result || NaN); +} +//#endregion +//#region dist/date-fns/clamp.js +/** +* The {@link clamp} function options. +*/ +/** +* The {@link clamp} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name clamp +* @category Interval Helpers +* @summary Return a date bounded by the start and the end of the given interval. +* +* @description +* Clamps a date to the lower bound with the start of the interval and the upper +* bound with the end of the interval. +* +* - When the date is less than the start of the interval, the start is returned. +* - When the date is greater than the end of the interval, the end is returned. +* - Otherwise the date is returned. +* +* @typeParam DateType - Date argument type. +* @typeParam IntervalType - Interval argument type. +* @typeParam Options - Options type. +* +* @param date - The date to be bounded +* @param interval - The interval to bound to +* @param options - An object with options +* +* @returns The date bounded by the start and the end of the interval +* +* @example +* // What is Mar 21, 2021 bounded to an interval starting at Mar 22, 2021 and ending at Apr 01, 2021 +* const result = clamp(new Date(2021, 2, 21), { +* start: new Date(2021, 2, 22), +* end: new Date(2021, 3, 1), +* }) +* //=> Mon Mar 22 2021 00:00:00 +*/ +function clamp$1(date, interval, options) { + var _normalizeDates3 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, date, interval.start, interval.end),_normalizeDates4 = _slicedToArray(_normalizeDates3, 3),date_ = _normalizeDates4[0],start = _normalizeDates4[1],end = _normalizeDates4[2]; + return min$1([max$1([date_, start], options), end], options); +} +//#endregion +//#region dist/date-fns/fp/clamp.js +var _clamp = convertToFP(clamp$1, 2); +//#endregion +//#region dist/date-fns/fp/clampWithOptions.js +var _clampWithOptions = convertToFP(clamp$1, 3); +//#endregion +//#region dist/date-fns/closestIndexTo.js +/** +* @name closestIndexTo +* @category Common Helpers +* @summary Return an index of the closest date from the array comparing to the given date. +* +* @description +* Return an index of the closest date from the array comparing to the given date. +* +* @param dateToCompare - The date to compare with +* @param dates - The array to search +* +* @returns An index of the date closest to the given date or undefined if no valid value is given +* +* @example +* // Which date is closer to 6 September 2015? +* const dateToCompare = new Date(2015, 8, 6) +* const datesArray = [ +* new Date(2015, 0, 1), +* new Date(2016, 0, 1), +* new Date(2017, 0, 1) +* ] +* const result = closestIndexTo(dateToCompare, datesArray) +* //=> 1 +*/ +function closestIndexTo$1(dateToCompare, dates) { + var timeToCompare = +toDate$1(dateToCompare); + if (isNaN(timeToCompare)) return NaN; + var result; + var minDistance; + dates.forEach(function (date, index) { + var date_ = toDate$1(date); + if (isNaN(+date_)) { + result = NaN; + minDistance = NaN; + return; + } + var distance = Math.abs(timeToCompare - +date_); + if (result == null || distance < minDistance) { + result = index; + minDistance = distance; + } + }); + return result; +} +//#endregion +//#region dist/date-fns/fp/closestIndexTo.js +var _closestIndexTo = convertToFP(closestIndexTo$1, 2); +//#endregion +//#region dist/date-fns/closestTo.js +/** +* The {@link closestTo} function options. +*/ +/** +* The {@link closestTo} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name closestTo +* @category Common Helpers +* @summary Return a date from the array closest to the given date. +* +* @description +* Return a date from the array closest to the given date. +* +* @typeParam DateToCompare - Date to compare argument type. +* @typeParam DatesType - Dates array argument type. +* @typeParam Options - Options type. +* +* @param dateToCompare - The date to compare with +* @param dates - The array to search +* +* @returns The date from the array closest to the given date or undefined if no valid value is given +* +* @example +* // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? +* const dateToCompare = new Date(2015, 8, 6) +* const result = closestTo(dateToCompare, [ +* new Date(2000, 0, 1), +* new Date(2030, 0, 1) +* ]) +* //=> Tue Jan 01 2030 00:00:00 +*/ +function closestTo$1(dateToCompare, dates, options) { + var _normalizeDates5 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in, dateToCompare].concat(_toConsumableArray(dates))),_normalizeDates6 = _toArray(_normalizeDates5),dateToCompare_ = _normalizeDates6[0],dates_ = _normalizeDates6.slice(1); + var index = closestIndexTo$1(dateToCompare_, dates_); + if (typeof index === "number" && isNaN(index)) return constructFrom$1(dateToCompare_, NaN); + if (index !== void 0) return dates_[index]; +} +//#endregion +//#region dist/date-fns/fp/closestTo.js +var _closestTo = convertToFP(closestTo$1, 2); +//#endregion +//#region dist/date-fns/fp/closestToWithOptions.js +var _closestToWithOptions = convertToFP(closestTo$1, 3); +//#endregion +//#region dist/date-fns/compareAsc.js +/** +* @name compareAsc +* @category Common Helpers +* @summary Compare the two dates and return -1, 0 or 1. +* +* @description +* Compare the two dates and return 1 if the first date is after the second, +* -1 if the first date is before the second or 0 if dates are equal. +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The result of the comparison +* +* @example +* // Compare 11 February 1987 and 10 July 1989: +* const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) +* //=> -1 +* +* @example +* // Sort the array of dates: +* const result = [ +* new Date(1995, 6, 2), +* new Date(1987, 1, 11), +* new Date(1989, 6, 10) +* ].sort(compareAsc) +* //=> [ +* // Wed Feb 11 1987 00:00:00, +* // Mon Jul 10 1989 00:00:00, +* // Sun Jul 02 1995 00:00:00 +* // ] +*/ +function compareAsc$1(dateLeft, dateRight) { + var diff = +toDate$1(dateLeft) - +toDate$1(dateRight); + if (diff < 0) return -1;else + if (diff > 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/fp/compareAsc.js +var _compareAsc = convertToFP(compareAsc$1, 2); +//#endregion +//#region dist/date-fns/compareDesc.js +/** +* @name compareDesc +* @category Common Helpers +* @summary Compare the two dates reverse chronologically and return -1, 0 or 1. +* +* @description +* Compare the two dates and return -1 if the first date is after the second, +* 1 if the first date is before the second or 0 if dates are equal. +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The result of the comparison +* +* @example +* // Compare 11 February 1987 and 10 July 1989 reverse chronologically: +* const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) +* //=> 1 +* +* @example +* // Sort the array of dates in reverse chronological order: +* const result = [ +* new Date(1995, 6, 2), +* new Date(1987, 1, 11), +* new Date(1989, 6, 10) +* ].sort(compareDesc) +* //=> [ +* // Sun Jul 02 1995 00:00:00, +* // Mon Jul 10 1989 00:00:00, +* // Wed Feb 11 1987 00:00:00 +* // ] +*/ +function compareDesc$1(dateLeft, dateRight) { + var diff = +toDate$1(dateLeft) - +toDate$1(dateRight); + if (diff > 0) return -1;else + if (diff < 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/fp/compareDesc.js +var _compareDesc = convertToFP(compareDesc$1, 2); +//#endregion +//#region dist/date-fns/fp/constructFrom.js +var _constructFrom = convertToFP(constructFrom$1, 2); +//#endregion +//#region dist/date-fns/daysToWeeks.js +/** +* @name daysToWeeks +* @category Conversion Helpers +* @summary Convert days to weeks. +* +* @description +* Convert a number of days to a full number of weeks. +* +* @param days - The number of days to be converted +* +* @returns The number of days converted in weeks +* +* @example +* // Convert 14 days to weeks: +* const result = daysToWeeks(14) +* //=> 2 +* +* @example +* // It uses trunc rounding: +* const result = daysToWeeks(13) +* //=> 1 +*/ +function daysToWeeks$1(days) { + var result = Math.trunc(days / 7); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/fp/daysToWeeks.js +var _daysToWeeks = convertToFP(daysToWeeks$1, 1); +//#endregion +//#region dist/date-fns/isSameDay.js +/** +* The {@link isSameDay} function options. +*/ +/** +* @name isSameDay +* @category Day Helpers +* @summary Are the given dates in the same day (and year and month)? +* +* @description +* Are the given dates in the same day (and year and month)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same day (and year and month) +* +* @example +* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? +* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) +* //=> true +* +* @example +* // Are 4 September and 4 October in the same day? +* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) +* //=> false +* +* @example +* // Are 4 September, 2014 and 4 September, 2015 in the same day? +* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) +* //=> false +*/ +function isSameDay$1(laterDate, earlierDate, options) { + var _normalizeDates7 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates8 = _slicedToArray(_normalizeDates7, 2),dateLeft_ = _normalizeDates8[0],dateRight_ = _normalizeDates8[1]; + return +startOfDay$1(dateLeft_) === +startOfDay$1(dateRight_); +} +//#endregion +//#region dist/date-fns/isDate.js +/** +* @name isDate +* @category Common Helpers +* @summary Is the given value a date? +* +* @description +* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. +* +* @param value - The value to check +* +* @returns True if the given value is a date +* +* @example +* // For a valid date: +* const result = isDate(new Date()) +* //=> true +* +* @example +* // For an invalid date: +* const result = isDate(new Date(NaN)) +* //=> true +* +* @example +* // For some value: +* const result = isDate('2014-02-31') +* //=> false +* +* @example +* // For an object: +* const result = isDate({}) +* //=> false +*/ +function isDate$1(value) { + return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]"; +} +//#endregion +//#region dist/date-fns/isValid.js +/** +* @name isValid +* @category Common Helpers +* @summary Is the given date valid? +* +* @description +* Returns false if argument is Invalid Date and true otherwise. +* Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) +* Invalid Date is a Date, whose time value is NaN. +* +* Time value of Date: http://es5.github.io/#x15.9.1.1 +* +* @param date - The date to check +* +* @returns The date is valid +* +* @example +* // For the valid date: +* const result = isValid(new Date(2014, 1, 31)) +* //=> true +* +* @example +* // For the value, convertible into a date: +* const result = isValid(1393804800000) +* //=> true +* +* @example +* // For the invalid date: +* const result = isValid(new Date('')) +* //=> false +*/ +function isValid$1(date) { + return !(!isDate$1(date) && typeof date !== "number" || isNaN(+toDate$1(date))); +} +//#endregion +//#region dist/date-fns/differenceInBusinessDays.js +/** +* The {@link differenceInBusinessDays} function options. +*/ +/** +* @name differenceInBusinessDays +* @category Day Helpers +* @summary Get the number of business days between the given dates. +* +* @description +* Get the number of business day periods between the given dates. +* Business days being days that aren't in the weekend. +* Like `differenceInCalendarDays`, the function removes the times from +* the dates before calculating the difference. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of business days +* +* @example +* // How many business days are between +* // 10 January 2014 and 20 July 2014? +* const result = differenceInBusinessDays( +* new Date(2014, 6, 20), +* new Date(2014, 0, 10) +* ) +* //=> 136 +* +* // How many business days are between +* // 30 November 2021 and 1 November 2021? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 30), +* new Date(2021, 10, 1) +* ) +* //=> 21 +* +* // How many business days are between +* // 1 November 2021 and 1 December 2021? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 1), +* new Date(2021, 11, 1) +* ) +* //=> -22 +* +* // How many business days are between +* // 1 November 2021 and 1 November 2021 ? +* const result = differenceInBusinessDays( +* new Date(2021, 10, 1), +* new Date(2021, 10, 1) +* ) +* //=> 0 +*/ +function differenceInBusinessDays$1(laterDate, earlierDate, options) { + var _normalizeDates9 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates0 = _slicedToArray(_normalizeDates9, 2),laterDate_ = _normalizeDates0[0],earlierDate_ = _normalizeDates0[1]; + if (!isValid$1(laterDate_) || !isValid$1(earlierDate_)) return NaN; + var diff = differenceInCalendarDays$1(laterDate_, earlierDate_); + var sign = diff < 0 ? -1 : 1; + var weeks = Math.trunc(diff / 7); + var result = weeks * 5; + var movingDate = addDays$1(earlierDate_, weeks * 7); + while (!isSameDay$1(laterDate_, movingDate)) { + result += isWeekend$1(movingDate, options) ? 0 : sign; + movingDate = addDays$1(movingDate, sign); + } + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/fp/differenceInBusinessDays.js +var _differenceInBusinessDays = convertToFP(differenceInBusinessDays$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInBusinessDaysWithOptions.js +var _differenceInBusinessDaysWithOptions = convertToFP(differenceInBusinessDays$1, 3); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarDays.js +var _differenceInCalendarDays = convertToFP(differenceInCalendarDays$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarDaysWithOptions.js +var _differenceInCalendarDaysWithOptions = convertToFP(differenceInCalendarDays$1, 3); +//#endregion +//#region dist/date-fns/differenceInCalendarISOWeekYears.js +/** +* The {@link differenceInCalendarISOWeekYears} function options. +*/ +/** +* @name differenceInCalendarISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of calendar ISO week-numbering years between the given dates. +* +* @description +* Get the number of calendar ISO week-numbering years between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar ISO week-numbering years +* +* @example +* // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? +* const result = differenceInCalendarISOWeekYears( +* new Date(2012, 0, 1), +* new Date(2010, 0, 1) +* ) +* //=> 2 +*/ +function differenceInCalendarISOWeekYears$1(laterDate, earlierDate, options) { + var _normalizeDates1 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates10 = _slicedToArray(_normalizeDates1, 2),laterDate_ = _normalizeDates10[0],earlierDate_ = _normalizeDates10[1]; + return getISOWeekYear$1(laterDate_, options) - getISOWeekYear$1(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarISOWeekYears.js +var _differenceInCalendarISOWeekYears = convertToFP(differenceInCalendarISOWeekYears$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.js +var _differenceInCalendarISOWeekYearsWithOptions = convertToFP(differenceInCalendarISOWeekYears$1, 3); +//#endregion +//#region dist/date-fns/differenceInCalendarISOWeeks.js +/** +* The {@link differenceInCalendarISOWeeks} function options. +*/ +/** +* @name differenceInCalendarISOWeeks +* @category ISO Week Helpers +* @summary Get the number of calendar ISO weeks between the given dates. +* +* @description +* Get the number of calendar ISO weeks between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar ISO weeks +* +* @example +* // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? +* const result = differenceInCalendarISOWeeks( +* new Date(2014, 6, 21), +* new Date(2014, 6, 6), +* ); +* //=> 3 +*/ +function differenceInCalendarISOWeeks$1(laterDate, earlierDate, options) { + var _normalizeDates11 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates12 = _slicedToArray(_normalizeDates11, 2),laterDate_ = _normalizeDates12[0],earlierDate_ = _normalizeDates12[1]; + var startOfISOWeekLeft = startOfISOWeek$1(laterDate_); + var startOfISOWeekRight = startOfISOWeek$1(earlierDate_); + var timestampLeft = +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); + var timestampRight = +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); + return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarISOWeeks.js +var _differenceInCalendarISOWeeks = convertToFP(differenceInCalendarISOWeeks$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarISOWeeksWithOptions.js +var _differenceInCalendarISOWeeksWithOptions = convertToFP(differenceInCalendarISOWeeks$1, 3); +//#endregion +//#region dist/date-fns/differenceInCalendarMonths.js +/** +* The {@link differenceInCalendarMonths} function options. +*/ +/** +* @name differenceInCalendarMonths +* @category Month Helpers +* @summary Get the number of calendar months between the given dates. +* +* @description +* Get the number of calendar months between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar months +* +* @example +* // How many calendar months are between 31 January 2014 and 1 September 2014? +* const result = differenceInCalendarMonths( +* new Date(2014, 8, 1), +* new Date(2014, 0, 31) +* ) +* //=> 8 +*/ +function differenceInCalendarMonths$1(laterDate, earlierDate, options) { + var _normalizeDates13 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates14 = _slicedToArray(_normalizeDates13, 2),laterDate_ = _normalizeDates14[0],earlierDate_ = _normalizeDates14[1]; + var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + var monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); + return yearsDiff * 12 + monthsDiff; +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarMonths.js +var _differenceInCalendarMonths = convertToFP(differenceInCalendarMonths$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarMonthsWithOptions.js +var _differenceInCalendarMonthsWithOptions = convertToFP(differenceInCalendarMonths$1, 3); +//#endregion +//#region dist/date-fns/getQuarter.js +/** +* The {@link getQuarter} function options. +*/ +/** +* @name getQuarter +* @category Quarter Helpers +* @summary Get the year quarter of the given date. +* +* @description +* Get the year quarter of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The quarter +* +* @example +* // Which quarter is 2 July 2014? +* const result = getQuarter(new Date(2014, 6, 2)); +* //=> 3 +*/ +function getQuarter$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + return Math.trunc(_date.getMonth() / 3) + 1; +} +//#endregion +//#region dist/date-fns/differenceInCalendarQuarters.js +/** +* The {@link differenceInCalendarQuarters} function options. +*/ +/** +* @name differenceInCalendarQuarters +* @category Quarter Helpers +* @summary Get the number of calendar quarters between the given dates. +* +* @description +* Get the number of calendar quarters between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of calendar quarters +* +* @example +* // How many calendar quarters are between 31 December 2013 and 2 July 2014? +* const result = differenceInCalendarQuarters( +* new Date(2014, 6, 2), +* new Date(2013, 11, 31) +* ) +* //=> 3 +*/ +function differenceInCalendarQuarters$1(laterDate, earlierDate, options) { + var _normalizeDates15 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates16 = _slicedToArray(_normalizeDates15, 2),laterDate_ = _normalizeDates16[0],earlierDate_ = _normalizeDates16[1]; + var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); + var quartersDiff = getQuarter$1(laterDate_) - getQuarter$1(earlierDate_); + return yearsDiff * 4 + quartersDiff; +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarQuarters.js +var _differenceInCalendarQuarters = convertToFP(differenceInCalendarQuarters$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarQuartersWithOptions.js +var _differenceInCalendarQuartersWithOptions = convertToFP(differenceInCalendarQuarters$1, 3); +//#endregion +//#region dist/date-fns/differenceInCalendarWeeks.js +/** +* The {@link differenceInCalendarWeeks} function options. +*/ +/** +* @name differenceInCalendarWeeks +* @category Week Helpers +* @summary Get the number of calendar weeks between the given dates. +* +* @description +* Get the number of calendar weeks between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of calendar weeks +* +* @example +* // How many calendar weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInCalendarWeeks( +* new Date(2014, 6, 20), +* new Date(2014, 6, 5) +* ) +* //=> 3 +* +* @example +* // If the week starts on Monday, +* // how many calendar weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInCalendarWeeks( +* new Date(2014, 6, 20), +* new Date(2014, 6, 5), +* { weekStartsOn: 1 } +* ) +* //=> 2 +*/ +function differenceInCalendarWeeks$1(laterDate, earlierDate, options) { + var _normalizeDates17 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates18 = _slicedToArray(_normalizeDates17, 2),laterDate_ = _normalizeDates18[0],earlierDate_ = _normalizeDates18[1]; + var laterStartOfWeek = startOfWeek$1(laterDate_, options); + var earlierStartOfWeek = startOfWeek$1(earlierDate_, options); + var laterTimestamp = +laterStartOfWeek - getTimezoneOffsetInMilliseconds(laterStartOfWeek); + var earlierTimestamp = +earlierStartOfWeek - getTimezoneOffsetInMilliseconds(earlierStartOfWeek); + return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarWeeks.js +var _differenceInCalendarWeeks = convertToFP(differenceInCalendarWeeks$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarWeeksWithOptions.js +var _differenceInCalendarWeeksWithOptions = convertToFP(differenceInCalendarWeeks$1, 3); +//#endregion +//#region dist/date-fns/differenceInCalendarYears.js +/** +* The {@link differenceInCalendarYears} function options. +*/ +/** +* @name differenceInCalendarYears +* @category Year Helpers +* @summary Get the number of calendar years between the given dates. +* +* @description +* Get the number of calendar years between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options + +* @returns The number of calendar years +* +* @example +* // How many calendar years are between 31 December 2013 and 11 February 2015? +* const result = differenceInCalendarYears( +* new Date(2015, 1, 11), +* new Date(2013, 11, 31) +* ); +* //=> 2 +*/ +function differenceInCalendarYears$1(laterDate, earlierDate, options) { + var _normalizeDates19 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates20 = _slicedToArray(_normalizeDates19, 2),laterDate_ = _normalizeDates20[0],earlierDate_ = _normalizeDates20[1]; + return laterDate_.getFullYear() - earlierDate_.getFullYear(); +} +//#endregion +//#region dist/date-fns/fp/differenceInCalendarYears.js +var _differenceInCalendarYears = convertToFP(differenceInCalendarYears$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInCalendarYearsWithOptions.js +var _differenceInCalendarYearsWithOptions = convertToFP(differenceInCalendarYears$1, 3); +//#endregion +//#region dist/date-fns/differenceInDays.js +/** +* The {@link differenceInDays} function options. +*/ +/** +* @name differenceInDays +* @category Day Helpers +* @summary Get the number of full days between the given dates. +* +* @description +* Get the number of full day periods between two dates. Fractional days are +* truncated towards zero. +* +* One "full day" is the distance between a local time in one day to the same +* local time on the next or previous day. A full day can sometimes be less than +* or more than 24 hours if a daylight savings change happens between two dates. +* +* To ignore DST and only measure exact 24-hour periods, use this instead: +* `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full days according to the local timezone +* +* @example +* // How many full days are between +* // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? +* const result = differenceInDays( +* new Date(2012, 6, 2, 0, 0), +* new Date(2011, 6, 2, 23, 0) +* ) +* //=> 365 +* +* @example +* // How many full days are between +* // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? +* const result = differenceInDays( +* new Date(2011, 6, 3, 0, 1), +* new Date(2011, 6, 2, 23, 59) +* ) +* //=> 0 +* +* @example +* // How many full days are between +* // 1 March 2020 0:00 and 1 June 2020 0:00 ? +* // Note: because local time is used, the +* // result will always be 92 days, even in +* // time zones where DST starts and the +* // period has only 92*24-1 hours. +* const result = differenceInDays( +* new Date(2020, 5, 1), +* new Date(2020, 2, 1) +* ) +* //=> 92 +*/ +function differenceInDays$1(laterDate, earlierDate, options) { + var _normalizeDates21 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates22 = _slicedToArray(_normalizeDates21, 2),laterDate_ = _normalizeDates22[0],earlierDate_ = _normalizeDates22[1]; + var sign = compareLocalAsc(laterDate_, earlierDate_); + var difference = Math.abs(differenceInCalendarDays$1(laterDate_, earlierDate_)); + laterDate_.setDate(laterDate_.getDate() - sign * difference); + var result = sign * (difference - Number(compareLocalAsc(laterDate_, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +function compareLocalAsc(laterDate, earlierDate) { + var diff = laterDate.getFullYear() - earlierDate.getFullYear() || laterDate.getMonth() - earlierDate.getMonth() || laterDate.getDate() - earlierDate.getDate() || laterDate.getHours() - earlierDate.getHours() || laterDate.getMinutes() - earlierDate.getMinutes() || laterDate.getSeconds() - earlierDate.getSeconds() || laterDate.getMilliseconds() - earlierDate.getMilliseconds(); + if (diff < 0) return -1; + if (diff > 0) return 1; + return diff; +} +//#endregion +//#region dist/date-fns/fp/differenceInDays.js +var _differenceInDays = convertToFP(differenceInDays$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInDaysWithOptions.js +var _differenceInDaysWithOptions = convertToFP(differenceInDays$1, 3); +//#endregion +//#region dist/date-fns/_lib/getRoundingMethod.js +function getRoundingMethod(method) { + return function (number) { + var result = (method ? Math[method] : Math.trunc)(number); + return result === 0 ? 0 : result; + }; +} +//#endregion +//#region dist/date-fns/differenceInHours.js +/** +* The {@link differenceInHours} function options. +*/ +/** +* @name differenceInHours +* @category Hour Helpers +* @summary Get the number of hours between the given dates. +* +* @description +* Get the number of hours between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of hours +* +* @example +* // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? +* const result = differenceInHours( +* new Date(2014, 6, 2, 19, 0), +* new Date(2014, 6, 2, 6, 50) +* ) +* //=> 12 +*/ +function differenceInHours$1(laterDate, earlierDate, options) { + var _normalizeDates23 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates24 = _slicedToArray(_normalizeDates23, 2),laterDate_ = _normalizeDates24[0],earlierDate_ = _normalizeDates24[1]; + var diff = (+laterDate_ - +earlierDate_) / millisecondsInHour; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/fp/differenceInHours.js +var _differenceInHours = convertToFP(differenceInHours$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInHoursWithOptions.js +var _differenceInHoursWithOptions = convertToFP(differenceInHours$1, 3); +//#endregion +//#region dist/date-fns/subISOWeekYears.js +/** +* The {@link subISOWeekYears} function options. +*/ +/** +* @name subISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Subtract the specified number of ISO week-numbering years from the given date. +* +* @description +* Subtract the specified number of ISO week-numbering years from the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of ISO week-numbering years to be subtracted. +* @param options - The options +* +* @returns The new date with the ISO week-numbering years subtracted +* +* @example +* // Subtract 5 ISO week-numbering years from 1 September 2014: +* const result = subISOWeekYears(new Date(2014, 8, 1), 5) +* //=> Mon Aug 31 2009 00:00:00 +*/ +function subISOWeekYears$1(date, amount, options) { + return addISOWeekYears$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/differenceInISOWeekYears.js +/** +* The {@link differenceInISOWeekYears} function options. +*/ +/** +* @name differenceInISOWeekYears +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of full ISO week-numbering years between the given dates. +* +* @description +* Get the number of full ISO week-numbering years between the given dates. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - The options +* +* @returns The number of full ISO week-numbering years +* +* @example +* // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? +* const result = differenceInISOWeekYears( +* new Date(2012, 0, 1), +* new Date(2010, 0, 1) +* ) +* // => 1 +*/ +function differenceInISOWeekYears$1(laterDate, earlierDate, options) { + var _normalizeDates25 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates26 = _slicedToArray(_normalizeDates25, 2),laterDate_ = _normalizeDates26[0],earlierDate_ = _normalizeDates26[1]; + var sign = compareAsc$1(laterDate_, earlierDate_); + var diff = Math.abs(differenceInCalendarISOWeekYears$1(laterDate_, earlierDate_, options)); + var adjustedDate = subISOWeekYears$1(laterDate_, sign * diff, options); + var result = sign * (diff - Number(compareAsc$1(adjustedDate, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/fp/differenceInISOWeekYears.js +var _differenceInISOWeekYears = convertToFP(differenceInISOWeekYears$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInISOWeekYearsWithOptions.js +var _differenceInISOWeekYearsWithOptions = convertToFP(differenceInISOWeekYears$1, 3); +//#endregion +//#region dist/date-fns/differenceInMilliseconds.js +/** +* @name differenceInMilliseconds +* @category Millisecond Helpers +* @summary Get the number of milliseconds between the given dates. +* +* @description +* Get the number of milliseconds between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* +* @returns The number of milliseconds +* +* @example +* // How many milliseconds are between +* // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? +* const result = differenceInMilliseconds( +* new Date(2014, 6, 2, 12, 30, 21, 700), +* new Date(2014, 6, 2, 12, 30, 20, 600) +* ) +* //=> 1100 +*/ +function differenceInMilliseconds$1(laterDate, earlierDate) { + return +toDate$1(laterDate) - +toDate$1(earlierDate); +} +//#endregion +//#region dist/date-fns/fp/differenceInMilliseconds.js +var _differenceInMilliseconds = convertToFP(differenceInMilliseconds$1, 2); +//#endregion +//#region dist/date-fns/differenceInMinutes.js +/** +* The {@link differenceInMinutes} function options. +*/ +/** +* @name differenceInMinutes +* @category Minute Helpers +* @summary Get the number of minutes between the given dates. +* +* @description +* Get the signed number of full (rounded towards 0) minutes between the given dates. +* +* @param dateLeft - The later date +* @param dateRight - The earlier date +* @param options - An object with options. +* +* @returns The number of minutes +* +* @example +* // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? +* const result = differenceInMinutes( +* new Date(2014, 6, 2, 12, 20, 0), +* new Date(2014, 6, 2, 12, 7, 59) +* ) +* //=> 12 +* +* @example +* // How many minutes are between 10:01:59 and 10:00:00 +* const result = differenceInMinutes( +* new Date(2000, 0, 1, 10, 0, 0), +* new Date(2000, 0, 1, 10, 1, 59) +* ) +* //=> -1 +*/ +function differenceInMinutes$1(dateLeft, dateRight, options) { + var diff = differenceInMilliseconds$1(dateLeft, dateRight) / millisecondsInMinute; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/fp/differenceInMinutes.js +var _differenceInMinutes = convertToFP(differenceInMinutes$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInMinutesWithOptions.js +var _differenceInMinutesWithOptions = convertToFP(differenceInMinutes$1, 3); +//#endregion +//#region dist/date-fns/endOfDay.js +/** +* The {@link endOfDay} function options. +*/ +/** +* @name endOfDay +* @category Day Helpers +* @summary Return the end of a day for the given date. +* +* @description +* Return the end of a day for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a day +* +* @example +* // The end of a day for 2 September 2014 11:55:00: +* const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 02 2014 23:59:59.999 +*/ +function endOfDay$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfMonth.js +/** +* The {@link endOfMonth} function options. +*/ +/** +* @name endOfMonth +* @category Month Helpers +* @summary Return the end of a month for the given date. +* +* @description +* Return the end of a month for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a month +* +* @example +* // The end of a month for 2 September 2014 11:55:00: +* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 23:59:59.999 +*/ +function endOfMonth$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/isLastDayOfMonth.js +/** +* @name isLastDayOfMonth +* @category Month Helpers +* @summary Is the given date the last day of a month? +* +* @description +* Is the given date the last day of a month? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is the last day of a month +* +* @example +* // Is 28 February 2014 the last day of a month? +* const result = isLastDayOfMonth(new Date(2014, 1, 28)) +* //=> true +*/ +function isLastDayOfMonth$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + return +endOfDay$1(_date, options) === +endOfMonth$1(_date, options); +} +//#endregion +//#region dist/date-fns/differenceInMonths.js +/** +* The {@link differenceInMonths} function options. +*/ +/** +* @name differenceInMonths +* @category Month Helpers +* @summary Get the number of full months between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full months +* +* @example +* // How many full months are between 31 January 2014 and 1 September 2014? +* const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) +* //=> 7 +*/ +function differenceInMonths$1(laterDate, earlierDate, options) { + var _normalizeDates27 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, laterDate, earlierDate),_normalizeDates28 = _slicedToArray(_normalizeDates27, 3),laterDate_ = _normalizeDates28[0],workingLaterDate = _normalizeDates28[1],earlierDate_ = _normalizeDates28[2]; + var sign = compareAsc$1(workingLaterDate, earlierDate_); + var difference = Math.abs(differenceInCalendarMonths$1(workingLaterDate, earlierDate_)); + if (difference < 1) return 0; + if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27) workingLaterDate.setDate(30); + workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference); + var isLastMonthNotFull = compareAsc$1(workingLaterDate, earlierDate_) === -sign; + if (isLastDayOfMonth$1(laterDate_) && difference === 1 && compareAsc$1(laterDate_, earlierDate_) === 1) isLastMonthNotFull = false; + var result = sign * (difference - +isLastMonthNotFull); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/fp/differenceInMonths.js +var _differenceInMonths = convertToFP(differenceInMonths$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInMonthsWithOptions.js +var _differenceInMonthsWithOptions = convertToFP(differenceInMonths$1, 3); +//#endregion +//#region dist/date-fns/differenceInQuarters.js +/** +* The {@link differenceInQuarters} function options. +*/ +/** +* @name differenceInQuarters +* @category Quarter Helpers +* @summary Get the number of quarters between the given dates. +* +* @description +* Get the number of quarters between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of full quarters +* +* @example +* // How many full quarters are between 31 December 2013 and 2 July 2014? +* const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) +* //=> 2 +*/ +function differenceInQuarters$1(laterDate, earlierDate, options) { + var diff = differenceInMonths$1(laterDate, earlierDate, options) / 3; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/fp/differenceInQuarters.js +var _differenceInQuarters = convertToFP(differenceInQuarters$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInQuartersWithOptions.js +var _differenceInQuartersWithOptions = convertToFP(differenceInQuarters$1, 3); +//#endregion +//#region dist/date-fns/differenceInSeconds.js +/** +* The {@link differenceInSeconds} function options. +*/ +/** +* @name differenceInSeconds +* @category Second Helpers +* @summary Get the number of seconds between the given dates. +* +* @description +* Get the number of seconds between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options. +* +* @returns The number of seconds +* +* @example +* // How many seconds are between +* // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? +* const result = differenceInSeconds( +* new Date(2014, 6, 2, 12, 30, 20, 0), +* new Date(2014, 6, 2, 12, 30, 7, 999) +* ) +* //=> 12 +*/ +function differenceInSeconds$1(laterDate, earlierDate, options) { + var diff = differenceInMilliseconds$1(laterDate, earlierDate) / 1e3; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/fp/differenceInSeconds.js +var _differenceInSeconds = convertToFP(differenceInSeconds$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInSecondsWithOptions.js +var _differenceInSecondsWithOptions = convertToFP(differenceInSeconds$1, 3); +//#endregion +//#region dist/date-fns/differenceInWeeks.js +/** +* The {@link differenceInWeeks} function options. +*/ +/** +* @name differenceInWeeks +* @category Week Helpers +* @summary Get the number of full weeks between the given dates. +* +* @description +* Get the number of full weeks between two dates. Fractional weeks are +* truncated towards zero by default. +* +* One "full week" is the distance between a local time in one day to the same +* local time 7 days earlier or later. A full week can sometimes be less than +* or more than 7*24 hours if a daylight savings change happens between two dates. +* +* To ignore DST and only measure exact 7*24-hour periods, use this instead: +* `Math.trunc(differenceInHours(dateLeft, dateRight)/(7*24))|0`. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full weeks +* +* @example +* // How many full weeks are between 5 July 2014 and 20 July 2014? +* const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) +* //=> 2 +* +* @example +* // How many full weeks are between +* // 1 March 2020 0:00 and 6 June 2020 0:00 ? +* // Note: because local time is used, the +* // result will always be 8 weeks (54 days), +* // even if DST starts and the period has +* // only 54*24-1 hours. +* const result = differenceInWeeks( +* new Date(2020, 5, 1), +* new Date(2020, 2, 6) +* ) +* //=> 8 +*/ +function differenceInWeeks$1(laterDate, earlierDate, options) { + var diff = differenceInDays$1(laterDate, earlierDate, options) / 7; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} +//#endregion +//#region dist/date-fns/fp/differenceInWeeks.js +var _differenceInWeeks = convertToFP(differenceInWeeks$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInWeeksWithOptions.js +var _differenceInWeeksWithOptions = convertToFP(differenceInWeeks$1, 3); +//#endregion +//#region dist/date-fns/differenceInYears.js +/** +* The {@link differenceInYears} function options. +*/ +/** +* @name differenceInYears +* @category Year Helpers +* @summary Get the number of full years between the given dates. +* +* @description +* Get the number of full years between the given dates. +* +* @param laterDate - The later date +* @param earlierDate - The earlier date +* @param options - An object with options +* +* @returns The number of full years +* +* @example +* // How many full years are between 31 December 2013 and 11 February 2015? +* const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) +* //=> 1 +*/ +function differenceInYears$1(laterDate, earlierDate, options) { + var _normalizeDates29 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates30 = _slicedToArray(_normalizeDates29, 2),laterDate_ = _normalizeDates30[0],earlierDate_ = _normalizeDates30[1]; + var sign = compareAsc$1(laterDate_, earlierDate_); + var diff = Math.abs(differenceInCalendarYears$1(laterDate_, earlierDate_)); + laterDate_.setFullYear(1584); + earlierDate_.setFullYear(1584); + var result = sign * (diff - +(compareAsc$1(laterDate_, earlierDate_) === -sign)); + return result === 0 ? 0 : result; +} +//#endregion +//#region dist/date-fns/fp/differenceInYears.js +var _differenceInYears = convertToFP(differenceInYears$1, 2); +//#endregion +//#region dist/date-fns/fp/differenceInYearsWithOptions.js +var _differenceInYearsWithOptions = convertToFP(differenceInYears$1, 3); +//#endregion +//#region dist/date-fns/_lib/normalizeInterval.js +function normalizeInterval(context, interval) { + var _normalizeDates31 = normalizeDates(context, interval.start, interval.end),_normalizeDates32 = _slicedToArray(_normalizeDates31, 2),start = _normalizeDates32[0],end = _normalizeDates32[1]; + return { + start: start, + end: end + }; +} +//#endregion +//#region dist/date-fns/eachDayOfInterval.js +/** +* The {@link eachDayOfInterval} function options. +*/ +/** +* The {@link eachDayOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachDayOfInterval +* @category Interval Helpers +* @summary Return the array of dates within the specified time interval. +* +* @description +* Return the array of dates within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of days from the day of the interval start to the day of the interval end +* +* @example +* // Each day between 6 October 2014 and 10 October 2014: +* const result = eachDayOfInterval({ +* start: new Date(2014, 9, 6), +* end: new Date(2014, 9, 10) +* }) +* //=> [ +* // Mon Oct 06 2014 00:00:00, +* // Tue Oct 07 2014 00:00:00, +* // Wed Oct 08 2014 00:00:00, +* // Thu Oct 09 2014 00:00:00, +* // Fri Oct 10 2014 00:00:00 +* // ] +*/ +function eachDayOfInterval$1(interval, options) {var _options$step; + var _normalizeInterval = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval.start,end = _normalizeInterval.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + var step = (_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date.setDate(date.getDate() + step); + date.setHours(0, 0, 0, 0); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachDayOfInterval.js +var _eachDayOfInterval = convertToFP(eachDayOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachDayOfIntervalWithOptions.js +var _eachDayOfIntervalWithOptions = convertToFP(eachDayOfInterval$1, 2); +//#endregion +//#region dist/date-fns/eachHourOfInterval.js +/** +* The {@link eachHourOfInterval} function options. +*/ +/** +* The {@link eachHourOfInterval} function result type. +* Resolves to the appropriate date type based on inputs. +*/ +/** +* @name eachHourOfInterval +* @category Interval Helpers +* @summary Return the array of hours within the specified time interval. +* +* @description +* Return the array of hours within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of hours from the hour of the interval start to the hour of the interval end +* +* @example +* // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 +* const result = eachHourOfInterval({ +* start: new Date(2014, 9, 6, 12), +* end: new Date(2014, 9, 6, 15) +* }); +* //=> [ +* // Mon Oct 06 2014 12:00:00, +* // Mon Oct 06 2014 13:00:00, +* // Mon Oct 06 2014 14:00:00, +* // Mon Oct 06 2014 15:00:00 +* // ] +*/ +function eachHourOfInterval$1(interval, options) {var _options$step2; + var _normalizeInterval2 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval2.start,end = _normalizeInterval2.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setMinutes(0, 0, 0); + var step = (_options$step2 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step2 !== void 0 ? _options$step2 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date.setHours(date.getHours() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachHourOfInterval.js +var _eachHourOfInterval = convertToFP(eachHourOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachHourOfIntervalWithOptions.js +var _eachHourOfIntervalWithOptions = convertToFP(eachHourOfInterval$1, 2); +//#endregion +//#region dist/date-fns/eachMinuteOfInterval.js +/** +* The {@link eachMinuteOfInterval} function options. +*/ +/** +* The {@link eachMinuteOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachMinuteOfInterval +* @category Interval Helpers +* @summary Return the array of minutes within the specified time interval. +* +* @description +* Returns the array of minutes within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of minutes from the minute of the interval start to the minute of the interval end +* +* @example +* // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 +* const result = eachMinuteOfInterval({ +* start: new Date(2014, 9, 14, 13), +* end: new Date(2014, 9, 14, 13, 3) +* }) +* //=> [ +* // Wed Oct 14 2014 13:00:00, +* // Wed Oct 14 2014 13:01:00, +* // Wed Oct 14 2014 13:02:00, +* // Wed Oct 14 2014 13:03:00 +* // ] +*/ +function eachMinuteOfInterval$1(interval, options) {var _options$step3; + var _normalizeInterval3 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval3.start,end = _normalizeInterval3.end; + start.setSeconds(0, 0); + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + var step = (_options$step3 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step3 !== void 0 ? _options$step3 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date = addMinutes$1(date, step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachMinuteOfInterval.js +var _eachMinuteOfInterval = convertToFP(eachMinuteOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachMinuteOfIntervalWithOptions.js +var _eachMinuteOfIntervalWithOptions = convertToFP(eachMinuteOfInterval$1, 2); +//#endregion +//#region dist/date-fns/eachMonthOfInterval.js +/** +* The {@link eachMonthOfInterval} function options. +*/ +/** +* The {@link eachMonthOfInterval} function result type. It resolves the proper data type. +*/ +/** +* @name eachMonthOfInterval +* @category Interval Helpers +* @summary Return the array of months within the specified time interval. +* +* @description +* Return the array of months within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of months from the month of the interval start to the month of the interval end +* +* @example +* // Each month between 6 February 2014 and 10 August 2014: +* const result = eachMonthOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2014, 7, 10) +* }) +* //=> [ +* // Sat Feb 01 2014 00:00:00, +* // Sat Mar 01 2014 00:00:00, +* // Tue Apr 01 2014 00:00:00, +* // Thu May 01 2014 00:00:00, +* // Sun Jun 01 2014 00:00:00, +* // Tue Jul 01 2014 00:00:00, +* // Fri Aug 01 2014 00:00:00 +* // ] +*/ +function eachMonthOfInterval$1(interval, options) {var _options$step4; + var _normalizeInterval4 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval4.start,end = _normalizeInterval4.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setDate(1); + var step = (_options$step4 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step4 !== void 0 ? _options$step4 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date.setMonth(date.getMonth() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachMonthOfInterval.js +var _eachMonthOfInterval = convertToFP(eachMonthOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachMonthOfIntervalWithOptions.js +var _eachMonthOfIntervalWithOptions = convertToFP(eachMonthOfInterval$1, 2); +//#endregion +//#region dist/date-fns/startOfQuarter.js +/** +* The {@link startOfQuarter} function options. +*/ +/** +* @name startOfQuarter +* @category Quarter Helpers +* @summary Return the start of a year quarter for the given date. +* +* @description +* Return the start of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a quarter +* +* @example +* // The start of a quarter for 2 September 2014 11:55:00: +* const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Jul 01 2014 00:00:00 +*/ +function startOfQuarter$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = _date.getMonth(); + var month = currentMonth - currentMonth % 3; + _date.setMonth(month, 1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/eachQuarterOfInterval.js +/** +* The {@link eachQuarterOfInterval} function options. +*/ +/** +* The {@link eachQuarterOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachQuarterOfInterval +* @category Interval Helpers +* @summary Return the array of quarters within the specified time interval. +* +* @description +* Return the array of quarters within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval +* @param options - An object with options +* +* @returns The array with starts of quarters from the quarter of the interval start to the quarter of the interval end +* +* @example +* // Each quarter within interval 6 February 2014 - 10 August 2014: +* const result = eachQuarterOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2014, 7, 10), +* }) +* //=> [ +* // Wed Jan 01 2014 00:00:00, +* // Tue Apr 01 2014 00:00:00, +* // Tue Jul 01 2014 00:00:00, +* // ] +*/ +function eachQuarterOfInterval$1(interval, options) {var _options$step5; + var _normalizeInterval5 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval5.start,end = _normalizeInterval5.end; + var reversed = +start > +end; + var endTime = reversed ? +startOfQuarter$1(start) : +startOfQuarter$1(end); + var date = reversed ? startOfQuarter$1(end) : startOfQuarter$1(start); + var step = (_options$step5 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step5 !== void 0 ? _options$step5 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date = addQuarters$1(date, step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachQuarterOfInterval.js +var _eachQuarterOfInterval = convertToFP(eachQuarterOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachQuarterOfIntervalWithOptions.js +var _eachQuarterOfIntervalWithOptions = convertToFP(eachQuarterOfInterval$1, 2); +//#endregion +//#region dist/date-fns/eachWeekOfInterval.js +/** +* The {@link eachWeekOfInterval} function options. +*/ +/** +* The {@link eachWeekOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the interval start date, +* then the end interval date. If a context function is passed, it uses the context function return type. +*/ +/** +* @name eachWeekOfInterval +* @category Interval Helpers +* @summary Return the array of weeks within the specified time interval. +* +* @description +* Return the array of weeks within the specified time interval. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of weeks from the week of the interval start to the week of the interval end +* +* @example +* // Each week within interval 6 October 2014 - 23 November 2014: +* const result = eachWeekOfInterval({ +* start: new Date(2014, 9, 6), +* end: new Date(2014, 10, 23) +* }) +* //=> [ +* // Sun Oct 05 2014 00:00:00, +* // Sun Oct 12 2014 00:00:00, +* // Sun Oct 19 2014 00:00:00, +* // Sun Oct 26 2014 00:00:00, +* // Sun Nov 02 2014 00:00:00, +* // Sun Nov 09 2014 00:00:00, +* // Sun Nov 16 2014 00:00:00, +* // Sun Nov 23 2014 00:00:00 +* // ] +*/ +function eachWeekOfInterval$1(interval, options) {var _options$step6; + var _normalizeInterval6 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval6.start,end = _normalizeInterval6.end; + var reversed = +start > +end; + var startDateWeek = reversed ? startOfWeek$1(end, options) : startOfWeek$1(start, options); + var endDateWeek = reversed ? startOfWeek$1(start, options) : startOfWeek$1(end, options); + startDateWeek.setHours(15); + endDateWeek.setHours(15); + var endTime = +endDateWeek.getTime(); + var currentDate = startDateWeek; + var step = (_options$step6 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step6 !== void 0 ? _options$step6 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+currentDate <= endTime) { + currentDate.setHours(0); + dates.push(constructFrom$1(start, currentDate)); + currentDate = addWeeks$1(currentDate, step); + currentDate.setHours(15); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachWeekOfInterval.js +var _eachWeekOfInterval = convertToFP(eachWeekOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachWeekOfIntervalWithOptions.js +var _eachWeekOfIntervalWithOptions = convertToFP(eachWeekOfInterval$1, 2); +//#endregion +//#region dist/date-fns/eachWeekendOfInterval.js +/** +* The {@link eachWeekendOfInterval} function options. +*/ +/** +* The {@link eachWeekendOfInterval} function result type. +*/ +/** +* @name eachWeekendOfInterval +* @category Interval Helpers +* @summary List all the Saturdays and Sundays in the given date interval. +* +* @description +* Get all the Saturdays and Sundays in the given date interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The given interval +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the given date interval +* const result = eachWeekendOfInterval({ +* start: new Date(2018, 8, 17), +* end: new Date(2018, 8, 30) +* }) +* //=> [ +* // Sat Sep 22 2018 00:00:00, +* // Sun Sep 23 2018 00:00:00, +* // Sat Sep 29 2018 00:00:00, +* // Sun Sep 30 2018 00:00:00 +* // ] +*/ +function eachWeekendOfInterval$1(interval, options) { + var _normalizeInterval7 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval7.start,end = _normalizeInterval7.end; + var dateInterval = eachDayOfInterval$1({ + start: start, + end: end + }, options); + var weekends = []; + var index = 0; + while (index < dateInterval.length) { + var date = dateInterval[index++]; + if (isWeekend$1(date)) weekends.push(constructFrom$1(start, date)); + } + return weekends; +} +//#endregion +//#region dist/date-fns/fp/eachWeekendOfInterval.js +var _eachWeekendOfInterval = convertToFP(eachWeekendOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachWeekendOfIntervalWithOptions.js +var _eachWeekendOfIntervalWithOptions = convertToFP(eachWeekendOfInterval$1, 2); +//#endregion +//#region dist/date-fns/startOfMonth.js +/** +* The {@link startOfMonth} function options. +*/ +/** +* @name startOfMonth +* @category Month Helpers +* @summary Return the start of a month for the given date. +* +* @description +* Return the start of a month for the given date. The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. +* Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, +* or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a month +* +* @example +* // The start of a month for 2 September 2014 11:55:00: +* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfMonth$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setDate(1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/eachWeekendOfMonth.js +/** +* The {@link eachWeekendOfMonth} function options. +*/ +/** +* @name eachWeekendOfMonth +* @category Month Helpers +* @summary List all the Saturdays and Sundays in the given month. +* +* @description +* Get all the Saturdays and Sundays in the given month. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The given month +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the given month +* const result = eachWeekendOfMonth(new Date(2022, 1, 1)) +* //=> [ +* // Sat Feb 05 2022 00:00:00, +* // Sun Feb 06 2022 00:00:00, +* // Sat Feb 12 2022 00:00:00, +* // Sun Feb 13 2022 00:00:00, +* // Sat Feb 19 2022 00:00:00, +* // Sun Feb 20 2022 00:00:00, +* // Sat Feb 26 2022 00:00:00, +* // Sun Feb 27 2022 00:00:00 +* // ] +*/ +function eachWeekendOfMonth$1(date, options) { + return eachWeekendOfInterval$1({ + start: startOfMonth$1(date, options), + end: endOfMonth$1(date, options) + }, options); +} +//#endregion +//#region dist/date-fns/fp/eachWeekendOfMonth.js +var _eachWeekendOfMonth = convertToFP(eachWeekendOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/eachWeekendOfMonthWithOptions.js +var _eachWeekendOfMonthWithOptions = convertToFP(eachWeekendOfMonth$1, 2); +//#endregion +//#region dist/date-fns/endOfYear.js +/** +* The {@link endOfYear} function options. +*/ +/** +* @name endOfYear +* @category Year Helpers +* @summary Return the end of a year for the given date. +* +* @description +* Return the end of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The end of a year +* +* @example +* // The end of a year for 2 September 2014 11:55:00: +* const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Wed Dec 31 2014 23:59:59.999 +*/ +function endOfYear$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + _date.setFullYear(year + 1, 0, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/startOfYear.js +/** +* The {@link startOfYear} function options. +*/ +/** +* @name startOfYear +* @category Year Helpers +* @summary Return the start of a year for the given date. +* +* @description +* Return the start of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a year +* +* @example +* // The start of a year for 2 September 2014 11:55:00: +* const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) +* //=> Wed Jan 01 2014 00:00:00 +*/ +function startOfYear$1(date, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + date_.setFullYear(date_.getFullYear(), 0, 1); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/eachWeekendOfYear.js +/** +* The {@link eachWeekendOfYear} function options. +*/ +/** +* @name eachWeekendOfYear +* @category Year Helpers +* @summary List all the Saturdays and Sundays in the year. +* +* @description +* Get all the Saturdays and Sundays in the year. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The given year +* @param options - An object with options +* +* @returns An array containing all the Saturdays and Sundays +* +* @example +* // Lists all Saturdays and Sundays in the year +* const result = eachWeekendOfYear(new Date(2020, 1, 1)) +* //=> [ +* // Sat Jan 03 2020 00:00:00, +* // Sun Jan 04 2020 00:00:00, +* // ... +* // Sun Dec 27 2020 00:00:00 +* // ] +* ] +*/ +function eachWeekendOfYear$1(date, options) { + return eachWeekendOfInterval$1({ + start: startOfYear$1(date, options), + end: endOfYear$1(date, options) + }, options); +} +//#endregion +//#region dist/date-fns/fp/eachWeekendOfYear.js +var _eachWeekendOfYear = convertToFP(eachWeekendOfYear$1, 1); +//#endregion +//#region dist/date-fns/fp/eachWeekendOfYearWithOptions.js +var _eachWeekendOfYearWithOptions = convertToFP(eachWeekendOfYear$1, 2); +//#endregion +//#region dist/date-fns/eachYearOfInterval.js +/** +* The {@link eachYearOfInterval} function options. +*/ +/** +* The {@link eachYearOfInterval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the date argument, +* then the start interval date, and finally the end interval date. If +* a context function is passed, it uses the context function return type. +*/ +/** +* @name eachYearOfInterval +* @category Interval Helpers +* @summary Return the array of yearly timestamps within the specified time interval. +* +* @description +* Return the array of yearly timestamps within the specified time interval. +* +* @typeParam IntervalType - Interval type. +* @typeParam Options - Options type. +* +* @param interval - The interval. +* @param options - An object with options. +* +* @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end +* +* @example +* // Each year between 6 February 2014 and 10 August 2017: +* const result = eachYearOfInterval({ +* start: new Date(2014, 1, 6), +* end: new Date(2017, 7, 10) +* }) +* //=> [ +* // Wed Jan 01 2014 00:00:00, +* // Thu Jan 01 2015 00:00:00, +* // Fri Jan 01 2016 00:00:00, +* // Sun Jan 01 2017 00:00:00 +* // ] +*/ +function eachYearOfInterval$1(interval, options) {var _options$step7; + var _normalizeInterval8 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval8.start,end = _normalizeInterval8.end; + var reversed = +start > +end; + var endTime = reversed ? +start : +end; + var date = reversed ? end : start; + date.setHours(0, 0, 0, 0); + date.setMonth(0, 1); + var step = (_options$step7 = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step7 !== void 0 ? _options$step7 : 1; + if (!step) return []; + if (step < 0) { + step = -step; + reversed = !reversed; + } + var dates = []; + while (+date <= endTime) { + dates.push(constructFrom$1(start, date)); + date.setFullYear(date.getFullYear() + step); + } + return reversed ? dates.reverse() : dates; +} +//#endregion +//#region dist/date-fns/fp/eachYearOfInterval.js +var _eachYearOfInterval = convertToFP(eachYearOfInterval$1, 1); +//#endregion +//#region dist/date-fns/fp/eachYearOfIntervalWithOptions.js +var _eachYearOfIntervalWithOptions = convertToFP(eachYearOfInterval$1, 2); +//#endregion +//#region dist/date-fns/fp/endOfDay.js +var _endOfDay = convertToFP(endOfDay$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfDayWithOptions.js +var _endOfDayWithOptions = convertToFP(endOfDay$1, 2); +//#endregion +//#region dist/date-fns/endOfDecade.js +/** +* The {@link endOfDecade} function options. +*/ +/** +* @name endOfDecade +* @category Decade Helpers +* @summary Return the end of a decade for the given date. +* +* @description +* Return the end of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a decade +* +* @example +* // The end of a decade for 12 May 1984 00:00:00: +* const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) +* //=> Dec 31 1989 23:59:59.999 +*/ +function endOfDecade$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade, 11, 31); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfDecade.js +var _endOfDecade = convertToFP(endOfDecade$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfDecadeWithOptions.js +var _endOfDecadeWithOptions = convertToFP(endOfDecade$1, 2); +//#endregion +//#region dist/date-fns/endOfHour.js +/** +* The {@link endOfHour} function options. +*/ +/** +* @name endOfHour +* @category Hour Helpers +* @summary Return the end of an hour for the given date. +* +* @description +* Return the end of an hour for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an hour +* +* @example +* // The end of an hour for 2 September 2014 11:55:00: +* const result = endOfHour(new Date(2014, 8, 2, 11, 55)) +* //=> Tue Sep 02 2014 11:59:59.999 +*/ +function endOfHour$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMinutes(59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfHour.js +var _endOfHour = convertToFP(endOfHour$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfHourWithOptions.js +var _endOfHourWithOptions = convertToFP(endOfHour$1, 2); +//#endregion +//#region dist/date-fns/endOfWeek.js +/** +* The {@link endOfWeek} function options. +*/ +/** +* @name endOfWeek +* @category Week Helpers +* @summary Return the end of a week for the given date. +* +* @description +* Return the end of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a week +* +* @example +* // The end of a week for 2 September 2014 11:55:00: +* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sat Sep 06 2014 23:59:59.999 +* +* @example +* // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: +* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Sun Sep 07 2014 23:59:59.999 +*/ +function endOfWeek$1(date, options) {var _ref4, _ref5, _ref6, _options$weekStartsOn2, _options$locale2, _defaultOptions$local2; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref4 = (_ref5 = (_ref6 = (_options$weekStartsOn2 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn2 !== void 0 ? _options$weekStartsOn2 : options === null || options === void 0 || (_options$locale2 = options.locale) === null || _options$locale2 === void 0 || (_options$locale2 = _options$locale2.options) === null || _options$locale2 === void 0 ? void 0 : _options$locale2.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : defaultOptions.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : (_defaultOptions$local2 = defaultOptions.locale) === null || _defaultOptions$local2 === void 0 || (_defaultOptions$local2 = _defaultOptions$local2.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : 0; + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + _date.setDate(_date.getDate() + diff); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/endOfISOWeek.js +/** +* The {@link endOfISOWeek} function options. +*/ +/** +* @name endOfISOWeek +* @category ISO Week Helpers +* @summary Return the end of an ISO week for the given date. +* +* @description +* Return the end of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an ISO week +* +* @example +* // The end of an ISO week for 2 September 2014 11:55:00: +* const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Sep 07 2014 23:59:59.999 +*/ +function endOfISOWeek$1(date, options) { + return endOfWeek$1(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/fp/endOfISOWeek.js +var _endOfISOWeek = convertToFP(endOfISOWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfISOWeekWithOptions.js +var _endOfISOWeekWithOptions = convertToFP(endOfISOWeek$1, 2); +//#endregion +//#region dist/date-fns/endOfISOWeekYear.js +/** +* The {@link endOfISOWeekYear} function options. +*/ +/** +* @name endOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the end of an ISO week-numbering year for the given date. +* +* @description +* Return the end of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ContextDate - The `Date` type of the context function. +* +* @param date - The original date +* @param options - The options +* +* @returns The end of an ISO week-numbering year +* +* @example +* // The end of an ISO week-numbering year for 2 July 2005: +* const result = endOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Sun Jan 01 2006 23:59:59.999 +*/ +function endOfISOWeekYear$1(date, options) { + var year = getISOWeekYear$1(date, options); + var fourthOfJanuaryOfNextYear = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var _date = startOfISOWeek$1(fourthOfJanuaryOfNextYear, options); + _date.setMilliseconds(_date.getMilliseconds() - 1); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfISOWeekYear.js +var _endOfISOWeekYear = convertToFP(endOfISOWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfISOWeekYearWithOptions.js +var _endOfISOWeekYearWithOptions = convertToFP(endOfISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/endOfMinute.js +/** +* The {@link endOfMinute} function options. +*/ +/** +* @name endOfMinute +* @category Minute Helpers +* @summary Return the end of a minute for the given date. +* +* @description +* Return the end of a minute for the given date. +* The result will be in the local timezone or the provided context. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a minute +* +* @example +* // The end of a minute for 1 December 2014 22:15:45.400: +* const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:59.999 +*/ +function endOfMinute$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setSeconds(59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfMinute.js +var _endOfMinute = convertToFP(endOfMinute$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfMinuteWithOptions.js +var _endOfMinuteWithOptions = convertToFP(endOfMinute$1, 2); +//#endregion +//#region dist/date-fns/fp/endOfMonth.js +var _endOfMonth = convertToFP(endOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfMonthWithOptions.js +var _endOfMonthWithOptions = convertToFP(endOfMonth$1, 2); +//#endregion +//#region dist/date-fns/endOfQuarter.js +/** +* The {@link endOfQuarter} function options. +*/ +/** +* @name endOfQuarter +* @category Quarter Helpers +* @summary Return the end of a year quarter for the given date. +* +* @description +* Return the end of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a quarter +* +* @example +* // The end of a quarter for 2 September 2014 11:55:00: +* const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 23:59:59.999 +*/ +function endOfQuarter$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = _date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + _date.setMonth(month, 0); + _date.setHours(23, 59, 59, 999); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfQuarter.js +var _endOfQuarter = convertToFP(endOfQuarter$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfQuarterWithOptions.js +var _endOfQuarterWithOptions = convertToFP(endOfQuarter$1, 2); +//#endregion +//#region dist/date-fns/endOfSecond.js +/** +* The {@link endOfSecond} function options. +*/ +/** +* @name endOfSecond +* @category Second Helpers +* @summary Return the end of a second for the given date. +* +* @description +* Return the end of a second for the given date. +* The result will be in the local timezone if no `in` option is specified. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of a second +* +* @example +* // The end of a second for 1 December 2014 22:15:45.400: +* const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:45.999 +*/ +function endOfSecond$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMilliseconds(999); + return _date; +} +//#endregion +//#region dist/date-fns/fp/endOfSecond.js +var _endOfSecond = convertToFP(endOfSecond$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfSecondWithOptions.js +var _endOfSecondWithOptions = convertToFP(endOfSecond$1, 2); +//#endregion +//#region dist/date-fns/fp/endOfWeek.js +var _endOfWeek = convertToFP(endOfWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfWeekWithOptions.js +var _endOfWeekWithOptions = convertToFP(endOfWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/endOfYear.js +var _endOfYear = convertToFP(endOfYear$1, 1); +//#endregion +//#region dist/date-fns/fp/endOfYearWithOptions.js +var _endOfYearWithOptions = convertToFP(endOfYear$1, 2); +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance$2 = function formatDistance$2(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative$2 = function formatRelative$2(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US.js +/** +* @category Locales +* @summary English locale (United States). +* @language English +* @iso-639-2 eng +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var enUS = { + code: "en-US", + formatDistance: formatDistance$2, + formatLong: formatLong, + formatRelative: formatRelative$2, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/getDayOfYear.js +/** +* The {@link getDayOfYear} function options. +*/ +/** +* @name getDayOfYear +* @category Day Helpers +* @summary Get the day of the year of the given date. +* +* @description +* Get the day of the year of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The day of year +* +* @example +* // Which day of the year is 2 July 2014? +* const result = getDayOfYear(new Date(2014, 6, 2)) +* //=> 183 +*/ +function getDayOfYear$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + return differenceInCalendarDays$1(_date, startOfYear$1(_date)) + 1; +} +//#endregion +//#region dist/date-fns/getISOWeek.js +/** +* The {@link getISOWeek} function options. +*/ +/** +* @name getISOWeek +* @category ISO Week Helpers +* @summary Get the ISO week of the given date. +* +* @description +* Get the ISO week of the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - The options +* +* @returns The ISO week +* +* @example +* // Which week of the ISO-week numbering year is 2 January 2005? +* const result = getISOWeek(new Date(2005, 0, 2)) +* //=> 53 +*/ +function getISOWeek$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = +startOfISOWeek$1(_date) - +startOfISOWeekYear$1(_date); + return Math.round(diff / millisecondsInWeek) + 1; +} +//#endregion +//#region dist/date-fns/getWeekYear.js +/** +* The {@link getWeekYear} function options. +*/ +/** +* @name getWeekYear +* @category Week-Numbering Year Helpers +* @summary Get the local week-numbering year of the given date. +* +* @description +* Get the local week-numbering year of the given date. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The local week-numbering year +* +* @example +* // Which week numbering year is 26 December 2004 with the default settings? +* const result = getWeekYear(new Date(2004, 11, 26)) +* //=> 2005 +* +* @example +* // Which week numbering year is 26 December 2004 if week starts on Saturday? +* const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) +* //=> 2004 +* +* @example +* // Which week numbering year is 26 December 2004 if the first week contains 4 January? +* const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) +* //=> 2004 +*/ +function getWeekYear$1(date, options) {var _ref7, _ref8, _ref9, _options$firstWeekCon, _options$locale3, _defaultOptions$local3; + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref7 = (_ref8 = (_ref9 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 || (_options$locale3 = options.locale) === null || _options$locale3 === void 0 || (_options$locale3 = _options$locale3.options) === null || _options$locale3 === void 0 ? void 0 : _options$locale3.firstWeekContainsDate) !== null && _ref9 !== void 0 ? _ref9 : defaultOptions.firstWeekContainsDate) !== null && _ref8 !== void 0 ? _ref8 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 || (_defaultOptions$local3 = _defaultOptions$local3.options) === null || _defaultOptions$local3 === void 0 ? void 0 : _defaultOptions$local3.firstWeekContainsDate) !== null && _ref7 !== void 0 ? _ref7 : 1; + var firstWeekOfNextYear = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = startOfWeek$1(firstWeekOfNextYear, options); + var firstWeekOfThisYear = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = startOfWeek$1(firstWeekOfThisYear, options); + if (+_date >= +startOfNextYear) return year + 1;else + if (+_date >= +startOfThisYear) return year;else + return year - 1; +} +//#endregion +//#region dist/date-fns/startOfWeekYear.js +/** +* The {@link startOfWeekYear} function options. +*/ +/** +* @name startOfWeekYear +* @category Week-Numbering Year Helpers +* @summary Return the start of a local week-numbering year for the given date. +* +* @description +* Return the start of a local week-numbering year. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week-numbering year +* +* @example +* // The start of an a week-numbering year for 2 July 2005 with default settings: +* const result = startOfWeekYear(new Date(2005, 6, 2)) +* //=> Sun Dec 26 2004 00:00:00 +* +* @example +* // The start of a week-numbering year for 2 July 2005 +* // if Monday is the first day of week +* // and 4 January is always in the first week of the year: +* const result = startOfWeekYear(new Date(2005, 6, 2), { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Mon Jan 03 2005 00:00:00 +*/ +function startOfWeekYear$1(date, options) {var _ref0, _ref1, _ref10, _options$firstWeekCon2, _options$locale4, _defaultOptions$local4; + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref0 = (_ref1 = (_ref10 = (_options$firstWeekCon2 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon2 !== void 0 ? _options$firstWeekCon2 : options === null || options === void 0 || (_options$locale4 = options.locale) === null || _options$locale4 === void 0 || (_options$locale4 = _options$locale4.options) === null || _options$locale4 === void 0 ? void 0 : _options$locale4.firstWeekContainsDate) !== null && _ref10 !== void 0 ? _ref10 : defaultOptions.firstWeekContainsDate) !== null && _ref1 !== void 0 ? _ref1 : (_defaultOptions$local4 = defaultOptions.locale) === null || _defaultOptions$local4 === void 0 || (_defaultOptions$local4 = _defaultOptions$local4.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.firstWeekContainsDate) !== null && _ref0 !== void 0 ? _ref0 : 1; + var year = getWeekYear$1(date, options); + var firstWeek = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + return startOfWeek$1(firstWeek, options); +} +//#endregion +//#region dist/date-fns/getWeek.js +/** +* The {@link getWeek} function options. +*/ +/** +* @name getWeek +* @category Week Helpers +* @summary Get the local week index of the given date. +* +* @description +* Get the local week index of the given date. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @param date - The given date +* @param options - An object with options +* +* @returns The week +* +* @example +* // Which week of the local week numbering year is 2 January 2005 with default options? +* const result = getWeek(new Date(2005, 0, 2)) +* //=> 2 +* +* @example +* // Which week of the local week numbering year is 2 January 2005, +* // if Monday is the first day of the week, +* // and the first week of the year always contains 4 January? +* const result = getWeek(new Date(2005, 0, 2), { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> 53 +*/ +function getWeek$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = +startOfWeek$1(_date, options) - +startOfWeekYear$1(_date, options); + return Math.round(diff / millisecondsInWeek) + 1; +} +//#endregion +//#region dist/date-fns/_lib/addLeadingZeros.js +function addLeadingZeros(number, targetLength) { + return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0"); +} +//#endregion +//#region dist/date-fns/_lib/format/lightFormatters.js +var lightFormatters = { + y: function y(date, token) { + var signedYear = date.getFullYear(); + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return addLeadingZeros(token === "yy" ? year % 100 : year, token.length); + }, + M: function M(date, token) { + var month = date.getMonth(); + return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + d: function d(date, token) { + return addLeadingZeros(date.getDate(), token.length); + }, + a: function a(date, token) { + var dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "a": + case "aa":return dayPeriodEnumValue.toUpperCase(); + case "aaa":return dayPeriodEnumValue; + case "aaaaa":return dayPeriodEnumValue[0]; + default:return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; + } + }, + h: function h(date, token) { + return addLeadingZeros(date.getHours() % 12 || 12, token.length); + }, + H: function H(date, token) { + return addLeadingZeros(date.getHours(), token.length); + }, + m: function m(date, token) { + return addLeadingZeros(date.getMinutes(), token.length); + }, + s: function s(date, token) { + return addLeadingZeros(date.getSeconds(), token.length); + }, + S: function S(date, token) { + var numberOfDigits = token.length; + var milliseconds = date.getMilliseconds(); + return addLeadingZeros(Math.trunc(milliseconds * Math.pow(10, numberOfDigits - 3)), token.length); + } +}; +//#endregion +//#region dist/date-fns/_lib/format/formatters.js +var dayPeriodEnum = { + am: "am", + pm: "pm", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" +}; +var formatters = { + G: function G(date, token, localize) { + var era = date.getFullYear() > 0 ? 1 : 0; + switch (token) { + case "G": + case "GG": + case "GGG":return localize.era(era, { width: "abbreviated" }); + case "GGGGG":return localize.era(era, { width: "narrow" }); + default:return localize.era(era, { width: "wide" }); + } + }, + y: function y(date, token, localize) { + if (token === "yo") { + var signedYear = date.getFullYear(); + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { unit: "year" }); + } + return lightFormatters.y(date, token); + }, + Y: function Y(date, token, localize, options) { + var signedWeekYear = getWeekYear$1(date, options); + var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; + if (token === "YY") return addLeadingZeros(weekYear % 100, 2); + if (token === "Yo") return localize.ordinalNumber(weekYear, { unit: "year" }); + return addLeadingZeros(weekYear, token.length); + }, + R: function R(date, token) { + return addLeadingZeros(getISOWeekYear$1(date), token.length); + }, + u: function u(date, token) { + return addLeadingZeros(date.getFullYear(), token.length); + }, + Q: function Q(date, token, localize) { + var quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + case "Q":return String(quarter); + case "QQ":return addLeadingZeros(quarter, 2); + case "Qo":return localize.ordinalNumber(quarter, { unit: "quarter" }); + case "QQQ":return localize.quarter(quarter, { + width: "abbreviated", + context: "formatting" + }); + case "QQQQQ":return localize.quarter(quarter, { + width: "narrow", + context: "formatting" + }); + default:return localize.quarter(quarter, { + width: "wide", + context: "formatting" + }); + } + }, + q: function q(date, token, localize) { + var quarter = Math.ceil((date.getMonth() + 1) / 3); + switch (token) { + case "q":return String(quarter); + case "qq":return addLeadingZeros(quarter, 2); + case "qo":return localize.ordinalNumber(quarter, { unit: "quarter" }); + case "qqq":return localize.quarter(quarter, { + width: "abbreviated", + context: "standalone" + }); + case "qqqqq":return localize.quarter(quarter, { + width: "narrow", + context: "standalone" + }); + default:return localize.quarter(quarter, { + width: "wide", + context: "standalone" + }); + } + }, + M: function M(date, token, localize) { + var month = date.getMonth(); + switch (token) { + case "M": + case "MM":return lightFormatters.M(date, token); + case "Mo":return localize.ordinalNumber(month + 1, { unit: "month" }); + case "MMM":return localize.month(month, { + width: "abbreviated", + context: "formatting" + }); + case "MMMMM":return localize.month(month, { + width: "narrow", + context: "formatting" + }); + default:return localize.month(month, { + width: "wide", + context: "formatting" + }); + } + }, + L: function L(date, token, localize) { + var month = date.getMonth(); + switch (token) { + case "L":return String(month + 1); + case "LL":return addLeadingZeros(month + 1, 2); + case "Lo":return localize.ordinalNumber(month + 1, { unit: "month" }); + case "LLL":return localize.month(month, { + width: "abbreviated", + context: "standalone" + }); + case "LLLLL":return localize.month(month, { + width: "narrow", + context: "standalone" + }); + default:return localize.month(month, { + width: "wide", + context: "standalone" + }); + } + }, + w: function w(date, token, localize, options) { + var week = getWeek$1(date, options); + if (token === "wo") return localize.ordinalNumber(week, { unit: "week" }); + return addLeadingZeros(week, token.length); + }, + I: function I(date, token, localize) { + var isoWeek = getISOWeek$1(date); + if (token === "Io") return localize.ordinalNumber(isoWeek, { unit: "week" }); + return addLeadingZeros(isoWeek, token.length); + }, + d: function d(date, token, localize) { + if (token === "do") return localize.ordinalNumber(date.getDate(), { unit: "date" }); + return lightFormatters.d(date, token); + }, + D: function D(date, token, localize) { + var dayOfYear = getDayOfYear$1(date); + if (token === "Do") return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); + return addLeadingZeros(dayOfYear, token.length); + }, + E: function E(date, token, localize) { + var dayOfWeek = date.getDay(); + switch (token) { + case "E": + case "EE": + case "EEE":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "EEEEE":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "EEEEEE":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + e: function e(date, token, localize, options) { + var dayOfWeek = date.getDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + case "e":return String(localDayOfWeek); + case "ee":return addLeadingZeros(localDayOfWeek, 2); + case "eo":return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "eee":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "eeeee":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "eeeeee":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + c: function c(date, token, localize, options) { + var dayOfWeek = date.getDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + switch (token) { + case "c":return String(localDayOfWeek); + case "cc":return addLeadingZeros(localDayOfWeek, token.length); + case "co":return localize.ordinalNumber(localDayOfWeek, { unit: "day" }); + case "ccc":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "standalone" + }); + case "ccccc":return localize.day(dayOfWeek, { + width: "narrow", + context: "standalone" + }); + case "cccccc":return localize.day(dayOfWeek, { + width: "short", + context: "standalone" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "standalone" + }); + } + }, + i: function i(date, token, localize) { + var dayOfWeek = date.getDay(); + var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + switch (token) { + case "i":return String(isoDayOfWeek); + case "ii":return addLeadingZeros(isoDayOfWeek, token.length); + case "io":return localize.ordinalNumber(isoDayOfWeek, { unit: "day" }); + case "iii":return localize.day(dayOfWeek, { + width: "abbreviated", + context: "formatting" + }); + case "iiiii":return localize.day(dayOfWeek, { + width: "narrow", + context: "formatting" + }); + case "iiiiii":return localize.day(dayOfWeek, { + width: "short", + context: "formatting" + }); + default:return localize.day(dayOfWeek, { + width: "wide", + context: "formatting" + }); + } + }, + a: function a(date, token, localize) { + var dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "a": + case "aa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "aaa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }).toLowerCase(); + case "aaaaa":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + b: function b(date, token, localize) { + var hours = date.getHours(); + var dayPeriodEnumValue; + if (hours === 12) dayPeriodEnumValue = dayPeriodEnum.noon;else + if (hours === 0) dayPeriodEnumValue = dayPeriodEnum.midnight;else + dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; + switch (token) { + case "b": + case "bb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "bbb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }).toLowerCase(); + case "bbbbb":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + B: function B(date, token, localize) { + var hours = date.getHours(); + var dayPeriodEnumValue; + if (hours >= 17) dayPeriodEnumValue = dayPeriodEnum.evening;else + if (hours >= 12) dayPeriodEnumValue = dayPeriodEnum.afternoon;else + if (hours >= 4) dayPeriodEnumValue = dayPeriodEnum.morning;else + dayPeriodEnumValue = dayPeriodEnum.night; + switch (token) { + case "B": + case "BB": + case "BBB":return localize.dayPeriod(dayPeriodEnumValue, { + width: "abbreviated", + context: "formatting" + }); + case "BBBBB":return localize.dayPeriod(dayPeriodEnumValue, { + width: "narrow", + context: "formatting" + }); + default:return localize.dayPeriod(dayPeriodEnumValue, { + width: "wide", + context: "formatting" + }); + } + }, + h: function h(date, token, localize) { + if (token === "ho") { + var hours = date.getHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { unit: "hour" }); + } + return lightFormatters.h(date, token); + }, + H: function H(date, token, localize) { + if (token === "Ho") return localize.ordinalNumber(date.getHours(), { unit: "hour" }); + return lightFormatters.H(date, token); + }, + K: function K(date, token, localize) { + var hours = date.getHours() % 12; + if (token === "Ko") return localize.ordinalNumber(hours, { unit: "hour" }); + return addLeadingZeros(hours, token.length); + }, + k: function k(date, token, localize) { + var hours = date.getHours(); + if (hours === 0) hours = 24; + if (token === "ko") return localize.ordinalNumber(hours, { unit: "hour" }); + return addLeadingZeros(hours, token.length); + }, + m: function m(date, token, localize) { + if (token === "mo") return localize.ordinalNumber(date.getMinutes(), { unit: "minute" }); + return lightFormatters.m(date, token); + }, + s: function s(date, token, localize) { + if (token === "so") return localize.ordinalNumber(date.getSeconds(), { unit: "second" }); + return lightFormatters.s(date, token); + }, + S: function S(date, token) { + return lightFormatters.S(date, token); + }, + X: function X(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + if (timezoneOffset === 0) return "Z"; + switch (token) { + case "X":return formatTimezoneWithOptionalMinutes(timezoneOffset); + case "XXXX": + case "XX":return formatTimezone(timezoneOffset); + default:return formatTimezone(timezoneOffset, ":"); + } + }, + x: function x(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "x":return formatTimezoneWithOptionalMinutes(timezoneOffset); + case "xxxx": + case "xx":return formatTimezone(timezoneOffset); + default:return formatTimezone(timezoneOffset, ":"); + } + }, + O: function O(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "O": + case "OO": + case "OOO":return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + default:return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + z: function z(date, token, _localize) { + var timezoneOffset = date.getTimezoneOffset(); + switch (token) { + case "z": + case "zz": + case "zzz":return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + default:return "GMT" + formatTimezone(timezoneOffset, ":"); + } + }, + t: function t(date, token, _localize) { + return addLeadingZeros(Math.trunc(+date / 1e3), token.length); + }, + T: function T(date, token, _localize) { + return addLeadingZeros(+date, token.length); + } +}; +function formatTimezoneShort(offset) {var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var sign = offset > 0 ? "-" : "+"; + var absOffset = Math.abs(offset); + var hours = Math.trunc(absOffset / 60); + var minutes = absOffset % 60; + if (minutes === 0) return sign + String(hours); + return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); +} +function formatTimezoneWithOptionalMinutes(offset, delimiter) { + if (offset % 60 === 0) return (offset > 0 ? "-" : "+") + addLeadingZeros(Math.abs(offset) / 60, 2); + return formatTimezone(offset, delimiter); +} +function formatTimezone(offset) {var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + var sign = offset > 0 ? "-" : "+"; + var absOffset = Math.abs(offset); + var hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); + var minutes = addLeadingZeros(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} +//#endregion +//#region dist/date-fns/_lib/format/longFormatters.js +var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { + switch (pattern) { + case "P":return formatLong.date({ width: "short" }); + case "PP":return formatLong.date({ width: "medium" }); + case "PPP":return formatLong.date({ width: "long" }); + default:return formatLong.date({ width: "full" }); + } +}; +var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { + switch (pattern) { + case "p":return formatLong.time({ width: "short" }); + case "pp":return formatLong.time({ width: "medium" }); + case "ppp":return formatLong.time({ width: "long" }); + default:return formatLong.time({ width: "full" }); + } +}; +var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { + var matchResult = pattern.match(/(P+)(p+)?/) || []; + var datePattern = matchResult[1]; + var timePattern = matchResult[2]; + if (!timePattern) return dateLongFormatter(pattern, formatLong); + var dateTimeFormat; + switch (datePattern) { + case "P": + dateTimeFormat = formatLong.dateTime({ width: "short" }); + break; + case "PP": + dateTimeFormat = formatLong.dateTime({ width: "medium" }); + break; + case "PPP": + dateTimeFormat = formatLong.dateTime({ width: "long" }); + break; + default: + dateTimeFormat = formatLong.dateTime({ width: "full" }); + break; + } + return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong)).replace("{{time}}", timeLongFormatter(timePattern, formatLong)); +}; +var longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter +}; +//#endregion +//#region dist/date-fns/_lib/protectedTokens.js +var dayOfYearTokenRE = /^D+$/; +var weekYearTokenRE = /^Y+$/; +var throwTokens = [ +"D", +"DD", +"YY", +"YYYY"]; + +function isProtectedDayOfYearToken(token) { + return dayOfYearTokenRE.test(token); +} +function isProtectedWeekYearToken(token) { + return weekYearTokenRE.test(token); +} +function warnOrThrowProtectedError(token, format, input) { + var _message = message(token, format, input); + console.warn(_message); + if (throwTokens.includes(token)) throw new RangeError(_message); +} +function message(token, format, input) { + var subject = token[0] === "Y" ? "years" : "days of the month"; + return "Use `".concat(token.toLowerCase(), "` instead of `").concat(token, "` (in `").concat(format, "`) for formatting ").concat(subject, " to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"); +} +//#endregion +//#region dist/date-fns/format.js +var formattingTokensRegExp$2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; +var longFormattingTokensRegExp$1 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp$2 = /^'([^]*?)'?$/; +var doubleQuoteRegExp$2 = /''/g; +var unescapedLatinCharacterRegExp$2 = /[a-zA-Z]/; +/** +* The {@link format} function options. +*/ +/** +* @name format +* @alias formatDate +* @category Common Helpers +* @summary Format the date. +* +* @description +* Return the formatted date string in the given format. The result may vary by locale. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* (see the last example) +* +* Format of the string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 7 below the table). +* +* Accepted patterns: +* | Unit | Pattern | Result examples | Notes | +* |---------------------------------|---------|-----------------------------------|-------| +* | Era | G..GGG | AD, BC | | +* | | GGGG | Anno Domini, Before Christ | 2 | +* | | GGGGG | A, B | | +* | Calendar year | y | 44, 1, 1900, 2017 | 5 | +* | | yo | 44th, 1st, 0th, 17th | 5,7 | +* | | yy | 44, 01, 00, 17 | 5 | +* | | yyy | 044, 001, 1900, 2017 | 5 | +* | | yyyy | 0044, 0001, 1900, 2017 | 5 | +* | | yyyyy | ... | 3,5 | +* | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | +* | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | +* | | YY | 44, 01, 00, 17 | 5,8 | +* | | YYY | 044, 001, 1900, 2017 | 5 | +* | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | +* | | YYYYY | ... | 3,5 | +* | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | +* | | RR | -43, 00, 01, 1900, 2017 | 5,7 | +* | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | +* | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | +* | | RRRRR | ... | 3,5,7 | +* | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | +* | | uu | -43, 01, 1900, 2017 | 5 | +* | | uuu | -043, 001, 1900, 2017 | 5 | +* | | uuuu | -0043, 0001, 1900, 2017 | 5 | +* | | uuuuu | ... | 3,5 | +* | Quarter (formatting) | Q | 1, 2, 3, 4 | | +* | | Qo | 1st, 2nd, 3rd, 4th | 7 | +* | | QQ | 01, 02, 03, 04 | | +* | | QQQ | Q1, Q2, Q3, Q4 | | +* | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | q | 1, 2, 3, 4 | | +* | | qo | 1st, 2nd, 3rd, 4th | 7 | +* | | qq | 01, 02, 03, 04 | | +* | | qqq | Q1, Q2, Q3, Q4 | | +* | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | qqqqq | 1, 2, 3, 4 | 4 | +* | Month (formatting) | M | 1, 2, ..., 12 | | +* | | Mo | 1st, 2nd, ..., 12th | 7 | +* | | MM | 01, 02, ..., 12 | | +* | | MMM | Jan, Feb, ..., Dec | | +* | | MMMM | January, February, ..., December | 2 | +* | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | L | 1, 2, ..., 12 | | +* | | Lo | 1st, 2nd, ..., 12th | 7 | +* | | LL | 01, 02, ..., 12 | | +* | | LLL | Jan, Feb, ..., Dec | | +* | | LLLL | January, February, ..., December | 2 | +* | | LLLLL | J, F, ..., D | | +* | Local week of year | w | 1, 2, ..., 53 | | +* | | wo | 1st, 2nd, ..., 53th | 7 | +* | | ww | 01, 02, ..., 53 | | +* | ISO week of year | I | 1, 2, ..., 53 | 7 | +* | | Io | 1st, 2nd, ..., 53th | 7 | +* | | II | 01, 02, ..., 53 | 7 | +* | Day of month | d | 1, 2, ..., 31 | | +* | | do | 1st, 2nd, ..., 31st | 7 | +* | | dd | 01, 02, ..., 31 | | +* | Day of year | D | 1, 2, ..., 365, 366 | 9 | +* | | Do | 1st, 2nd, ..., 365th, 366th | 7 | +* | | DD | 01, 02, ..., 365, 366 | 9 | +* | | DDD | 001, 002, ..., 365, 366 | | +* | | DDDD | ... | 3 | +* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | +* | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | EEEEE | M, T, W, T, F, S, S | | +* | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | +* | | io | 1st, 2nd, ..., 7th | 7 | +* | | ii | 01, 02, ..., 07 | 7 | +* | | iii | Mon, Tue, Wed, ..., Sun | 7 | +* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | +* | | iiiii | M, T, W, T, F, S, S | 7 | +* | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | +* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | +* | | eo | 2nd, 3rd, ..., 1st | 7 | +* | | ee | 02, 03, ..., 01 | | +* | | eee | Mon, Tue, Wed, ..., Sun | | +* | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | eeeee | M, T, W, T, F, S, S | | +* | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | +* | | co | 2nd, 3rd, ..., 1st | 7 | +* | | cc | 02, 03, ..., 01 | | +* | | ccc | Mon, Tue, Wed, ..., Sun | | +* | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | ccccc | M, T, W, T, F, S, S | | +* | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | a..aa | AM, PM | | +* | | aaa | am, pm | | +* | | aaaa | a.m., p.m. | 2 | +* | | aaaaa | a, p | | +* | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | +* | | bbb | am, pm, noon, midnight | | +* | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | bbbbb | a, p, n, mi | | +* | Flexible day period | B..BBB | at night, in the morning, ... | | +* | | BBBB | at night, in the morning, ... | 2 | +* | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | h | 1, 2, ..., 11, 12 | | +* | | ho | 1st, 2nd, ..., 11th, 12th | 7 | +* | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | H | 0, 1, 2, ..., 23 | | +* | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | +* | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | K | 1, 2, ..., 11, 0 | | +* | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | +* | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | k | 24, 1, 2, ..., 23 | | +* | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | +* | | kk | 24, 01, 02, ..., 23 | | +* | Minute | m | 0, 1, ..., 59 | | +* | | mo | 0th, 1st, ..., 59th | 7 | +* | | mm | 00, 01, ..., 59 | | +* | Second | s | 0, 1, ..., 59 | | +* | | so | 0th, 1st, ..., 59th | 7 | +* | | ss | 00, 01, ..., 59 | | +* | Fraction of second | S | 0, 1, ..., 9 | | +* | | SS | 00, 01, ..., 99 | | +* | | SSS | 000, 001, ..., 999 | | +* | | SSSS | ... | 3 | +* | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | +* | | XX | -0800, +0530, Z | | +* | | XXX | -08:00, +05:30, Z | | +* | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | +* | | xx | -0800, +0530, +0000 | | +* | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | xxxx | -0800, +0530, +0000, +123456 | | +* | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | +* | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | +* | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | +* | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | +* | Seconds timestamp | t | 512969520 | 7 | +* | | tt | ... | 3,7 | +* | Milliseconds timestamp | T | 512969520900 | 7 | +* | | TT | ... | 3,7 | +* | Long localized date | P | 04/29/1453 | 7 | +* | | PP | Apr 29, 1453 | 7 | +* | | PPP | April 29th, 1453 | 7 | +* | | PPPP | Friday, April 29th, 1453 | 2,7 | +* | Long localized time | p | 12:00 AM | 7 | +* | | pp | 12:00:00 AM | 7 | +* | | ppp | 12:00:00 AM GMT+2 | 7 | +* | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | +* | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | +* | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | +* | | PPPppp | April 29th, 1453 at ... | 7 | +* | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) +* the output will be the same as default pattern for this unit, usually +* the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units +* are marked with "2" in the last column of the table. +* +* `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` +* +* `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` +* +* `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` +* +* `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` +* +* `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` +* +* 3. Some patterns could be unlimited length (such as `yyyyyyyy`). +* The output will be padded with zeros to match the length of the pattern. +* +* `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` +* +* 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 5. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` always returns the last two digits of a year, +* while `uu` pads single digit years to 2 characters and returns other years unchanged: +* +* | Year | `yy` | `uu` | +* |------|------|------| +* | 1 | 01 | 01 | +* | 14 | 14 | 14 | +* | 376 | 76 | 376 | +* | 1453 | 53 | 1453 | +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear) +* and [getWeekYear](https://date-fns.org/docs/getWeekYear)). +* +* 6. Specific non-location timezones are currently unavailable in `date-fns`, +* so right now these tokens fall back to GMT timezones. +* +* 7. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `t`: seconds timestamp +* - `T`: milliseconds timestamp +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @param date - The original date +* @param format - The string of tokens +* @param options - An object with options +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* @throws `options.locale` must contain `localize` property +* @throws `options.locale` must contain `formatLong` property +* @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Represent 11 February 2014 in middle-endian format: +* const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') +* //=> '02/11/2014' +* +* @example +* // Represent 2 July 2014 in Esperanto: +* import { eoLocale } from 'date-fns/locale/eo' +* const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { +* locale: eoLocale +* }) +* //=> '2-a de julio 2014' +* +* @example +* // Escape string by single quote characters: +* const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") +* //=> "3 o'clock" +*/ +function format$1(date, formatStr, options) {var _ref11, _options$locale5, _ref12, _ref13, _ref14, _options$firstWeekCon3, _options$locale6, _defaultOptions$local5, _ref15, _ref16, _ref17, _options$weekStartsOn3, _options$locale7, _defaultOptions$local6; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref11 = (_options$locale5 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale5 !== void 0 ? _options$locale5 : defaultOptions.locale) !== null && _ref11 !== void 0 ? _ref11 : enUS; + var firstWeekContainsDate = (_ref12 = (_ref13 = (_ref14 = (_options$firstWeekCon3 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon3 !== void 0 ? _options$firstWeekCon3 : options === null || options === void 0 || (_options$locale6 = options.locale) === null || _options$locale6 === void 0 || (_options$locale6 = _options$locale6.options) === null || _options$locale6 === void 0 ? void 0 : _options$locale6.firstWeekContainsDate) !== null && _ref14 !== void 0 ? _ref14 : defaultOptions.firstWeekContainsDate) !== null && _ref13 !== void 0 ? _ref13 : (_defaultOptions$local5 = defaultOptions.locale) === null || _defaultOptions$local5 === void 0 || (_defaultOptions$local5 = _defaultOptions$local5.options) === null || _defaultOptions$local5 === void 0 ? void 0 : _defaultOptions$local5.firstWeekContainsDate) !== null && _ref12 !== void 0 ? _ref12 : 1; + var weekStartsOn = (_ref15 = (_ref16 = (_ref17 = (_options$weekStartsOn3 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn3 !== void 0 ? _options$weekStartsOn3 : options === null || options === void 0 || (_options$locale7 = options.locale) === null || _options$locale7 === void 0 || (_options$locale7 = _options$locale7.options) === null || _options$locale7 === void 0 ? void 0 : _options$locale7.weekStartsOn) !== null && _ref17 !== void 0 ? _ref17 : defaultOptions.weekStartsOn) !== null && _ref16 !== void 0 ? _ref16 : (_defaultOptions$local6 = defaultOptions.locale) === null || _defaultOptions$local6 === void 0 || (_defaultOptions$local6 = _defaultOptions$local6.options) === null || _defaultOptions$local6 === void 0 ? void 0 : _defaultOptions$local6.weekStartsOn) !== null && _ref15 !== void 0 ? _ref15 : 0; + var originalDate = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (!isValid$1(originalDate)) throw new RangeError("Invalid time value"); + var parts = formatStr.match(longFormattingTokensRegExp$1).map(function (substring) { + var firstCharacter = substring[0]; + if (firstCharacter === "p" || firstCharacter === "P") { + var longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }).join("").match(formattingTokensRegExp$2).map(function (substring) { + if (substring === "''") return { + isToken: false, + value: "'" + }; + var firstCharacter = substring[0]; + if (firstCharacter === "'") return { + isToken: false, + value: cleanEscapedString$2(substring) + }; + if (formatters[firstCharacter]) return { + isToken: true, + value: substring + }; + if (firstCharacter.match(unescapedLatinCharacterRegExp$2)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + return { + isToken: false, + value: substring + }; + }); + if (locale.localize.preprocessor) parts = locale.localize.preprocessor(originalDate, parts); + var formatterOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; + return parts.map(function (part) { + if (!part.isToken) return part.value; + var token = part.value; + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token) || !(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) warnOrThrowProtectedError(token, formatStr, String(date)); + var formatter = formatters[token[0]]; + return formatter(originalDate, token, locale.localize, formatterOptions); + }).join(""); +} +function cleanEscapedString$2(input) { + var matched = input.match(escapedStringRegExp$2); + if (!matched) return input; + return matched[1].replace(doubleQuoteRegExp$2, "'"); +} +//#endregion +//#region dist/date-fns/fp/format.js +var _format = convertToFP(format$1, 2); +//#endregion +//#region dist/date-fns/formatDistance.js +/** +* The {@link formatDistance} function options. +*/ +/** +* @name formatDistance +* @category Common Helpers +* @summary Return the distance between the given dates in words. +* +* @description +* Return the distance between the given dates in words. +* +* | Distance between dates | Result | +* |-------------------------------------------------------------------|---------------------| +* | 0 ... 30 secs | less than a minute | +* | 30 secs ... 1 min 30 secs | 1 minute | +* | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | +* | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | +* | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | +* | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | +* | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | +* | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | +* | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | +* | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | +* | 1 yr ... 1 yr 3 months | about 1 year | +* | 1 yr 3 months ... 1 yr 9 month s | over 1 year | +* | 1 yr 9 months ... 2 yrs | almost 2 years | +* | N yrs ... N yrs 3 months | about N years | +* | N yrs 3 months ... N yrs 9 months | over N years | +* | N yrs 9 months ... N+1 yrs | almost N+1 years | +* +* With `options.includeSeconds == true`: +* | Distance between dates | Result | +* |------------------------|----------------------| +* | 0 secs ... 5 secs | less than 5 seconds | +* | 5 secs ... 10 secs | less than 10 seconds | +* | 10 secs ... 20 secs | less than 20 seconds | +* | 20 secs ... 40 secs | half a minute | +* | 40 secs ... 60 secs | less than a minute | +* | 60 secs ... 90 secs | 1 minute | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with +* @param options - An object with options +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // What is the distance between 2 July 2014 and 1 January 2015? +* const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) +* //=> '6 months' +* +* @example +* // What is the distance between 1 January 2015 00:00:15 +* // and 1 January 2015 00:00:00, including seconds? +* const result = formatDistance( +* new Date(2015, 0, 1, 0, 0, 15), +* new Date(2015, 0, 1, 0, 0, 0), +* { includeSeconds: true } +* ) +* //=> 'less than 20 seconds' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, with a suffix? +* const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { +* addSuffix: true +* }) +* //=> 'about 1 year ago' +* +* @example +* // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? +* import { eoLocale } from 'date-fns/locale/eo' +* const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { +* locale: eoLocale +* }) +* //=> 'pli ol 1 jaro' +*/ +function formatDistance$1(laterDate, earlierDate, options) {var _ref18, _options$locale8; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref18 = (_options$locale8 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale8 !== void 0 ? _options$locale8 : defaultOptions.locale) !== null && _ref18 !== void 0 ? _ref18 : enUS; + var minutesInAlmostTwoDays = 2520; + var comparison = compareAsc$1(laterDate, earlierDate); + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + var localizeOptions = Object.assign({}, options, { + addSuffix: options === null || options === void 0 ? void 0 : options.addSuffix, + comparison: comparison + }); + var _normalizeDates33 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in].concat(_toConsumableArray(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]))),_normalizeDates34 = _slicedToArray(_normalizeDates33, 2),laterDate_ = _normalizeDates34[0],earlierDate_ = _normalizeDates34[1]; + var seconds = differenceInSeconds$1(earlierDate_, laterDate_); + var offsetInSeconds = (getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_)) / 1e3; + var minutes = Math.round((seconds - offsetInSeconds) / 60); + var months; + if (minutes < 2) {if (options !== null && options !== void 0 && options.includeSeconds) {if (seconds < 5) return locale.formatDistance("lessThanXSeconds", 5, localizeOptions);else + if (seconds < 10) return locale.formatDistance("lessThanXSeconds", 10, localizeOptions);else + if (seconds < 20) return locale.formatDistance("lessThanXSeconds", 20, localizeOptions);else + if (seconds < 40) return locale.formatDistance("halfAMinute", 0, localizeOptions);else + if (seconds < 60) return locale.formatDistance("lessThanXMinutes", 1, localizeOptions);else + return locale.formatDistance("xMinutes", 1, localizeOptions);} else + if (minutes === 0) return locale.formatDistance("lessThanXMinutes", 1, localizeOptions);else + return locale.formatDistance("xMinutes", minutes, localizeOptions);} else + if (minutes < 45) return locale.formatDistance("xMinutes", minutes, localizeOptions);else + if (minutes < 90) return locale.formatDistance("aboutXHours", 1, localizeOptions);else + if (minutes < 1440) { + var hours = Math.round(minutes / 60); + return locale.formatDistance("aboutXHours", hours, localizeOptions); + } else if (minutes < minutesInAlmostTwoDays) return locale.formatDistance("xDays", 1, localizeOptions);else + if (minutes < 43200) { + var _days = Math.round(minutes / minutesInDay); + return locale.formatDistance("xDays", _days, localizeOptions); + } else if (minutes < 43200 * 2) { + months = Math.round(minutes / minutesInMonth); + return locale.formatDistance("aboutXMonths", months, localizeOptions); + } + months = differenceInMonths$1(earlierDate_, laterDate_); + if (months < 12) { + var nearestMonth = Math.round(minutes / minutesInMonth); + return locale.formatDistance("xMonths", nearestMonth, localizeOptions); + } else { + var monthsSinceStartOfYear = months % 12; + var years = Math.trunc(months / 12); + if (monthsSinceStartOfYear < 3) return locale.formatDistance("aboutXYears", years, localizeOptions);else + if (monthsSinceStartOfYear < 9) return locale.formatDistance("overXYears", years, localizeOptions);else + return locale.formatDistance("almostXYears", years + 1, localizeOptions); + } +} +//#endregion +//#region dist/date-fns/fp/formatDistance.js +var _formatDistance = convertToFP(formatDistance$1, 2); +//#endregion +//#region dist/date-fns/formatDistanceStrict.js +/** +* The {@link formatDistanceStrict} function options. +*/ +/** +* The unit used to format the distance in {@link formatDistanceStrict}. +*/ +/** +* @name formatDistanceStrict +* @category Common Helpers +* @summary Return the distance between the given dates in words. +* +* @description +* Return the distance between the given dates in words, using strict units. +* This is like `formatDistance`, but does not use helpers like 'almost', 'over', +* 'less than' and the like. +* +* | Distance between dates | Result | +* |------------------------|---------------------| +* | 0 ... 59 secs | [0..59] seconds | +* | 1 ... 59 mins | [1..59] minutes | +* | 1 ... 23 hrs | [1..23] hours | +* | 1 ... 29 days | [1..29] days | +* | 1 ... 11 months | [1..11] months | +* | 1 ... N years | [1..N] years | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with +* @param options - An object with options +* +* @returns The distance in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' +* @throws `options.locale` must contain `formatDistance` property +* +* @example +* // What is the distance between 2 July 2014 and 1 January 2015? +* const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) +* //=> '6 months' +* +* @example +* // What is the distance between 1 January 2015 00:00:15 +* // and 1 January 2015 00:00:00? +* const result = formatDistanceStrict( +* new Date(2015, 0, 1, 0, 0, 15), +* new Date(2015, 0, 1, 0, 0, 0) +* ) +* //=> '15 seconds' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, with a suffix? +* const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { +* addSuffix: true +* }) +* //=> '1 year ago' +* +* @example +* // What is the distance from 1 January 2016 +* // to 1 January 2015, in minutes? +* const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { +* unit: 'minute' +* }) +* //=> '525600 minutes' +* +* @example +* // What is the distance from 1 January 2015 +* // to 28 January 2015, in months, rounded up? +* const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { +* unit: 'month', +* roundingMethod: 'ceil' +* }) +* //=> '1 month' +* +* @example +* // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? +* import { eoLocale } from 'date-fns/locale/eo' +* const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { +* locale: eoLocale +* }) +* //=> '1 jaro' +*/ +function formatDistanceStrict$1(laterDate, earlierDate, options) {var _ref19, _options$locale9, _options$roundingMeth; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref19 = (_options$locale9 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale9 !== void 0 ? _options$locale9 : defaultOptions.locale) !== null && _ref19 !== void 0 ? _ref19 : enUS; + var comparison = compareAsc$1(laterDate, earlierDate); + if (isNaN(comparison)) throw new RangeError("Invalid time value"); + var localizeOptions = Object.assign({}, options, { + addSuffix: options === null || options === void 0 ? void 0 : options.addSuffix, + comparison: comparison + }); + var _normalizeDates35 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in].concat(_toConsumableArray(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]))),_normalizeDates36 = _slicedToArray(_normalizeDates35, 2),laterDate_ = _normalizeDates36[0],earlierDate_ = _normalizeDates36[1]; + var roundingMethod = getRoundingMethod((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : "round"); + var milliseconds = earlierDate_.getTime() - laterDate_.getTime(); + var minutes = milliseconds / millisecondsInMinute; + var dstNormalizedMinutes = (milliseconds - (getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_))) / millisecondsInMinute; + var defaultUnit = options === null || options === void 0 ? void 0 : options.unit; + var unit; + if (!defaultUnit) {if (minutes < 1) unit = "second";else + if (minutes < 60) unit = "minute";else + if (minutes < 1440) unit = "hour";else + if (dstNormalizedMinutes < 43200) unit = "day";else + if (dstNormalizedMinutes < 525600) unit = "month";else + unit = "year";} else + unit = defaultUnit; + if (unit === "second") { + var seconds = roundingMethod(milliseconds / 1e3); + return locale.formatDistance("xSeconds", seconds, localizeOptions); + } else if (unit === "minute") { + var roundedMinutes = roundingMethod(minutes); + return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); + } else if (unit === "hour") { + var hours = roundingMethod(minutes / 60); + return locale.formatDistance("xHours", hours, localizeOptions); + } else if (unit === "day") { + var _days2 = roundingMethod(dstNormalizedMinutes / minutesInDay); + return locale.formatDistance("xDays", _days2, localizeOptions); + } else if (unit === "month") { + var _months = roundingMethod(dstNormalizedMinutes / minutesInMonth); + return _months === 12 && defaultUnit !== "month" ? locale.formatDistance("xYears", 1, localizeOptions) : locale.formatDistance("xMonths", _months, localizeOptions); + } else { + var years = roundingMethod(dstNormalizedMinutes / minutesInYear); + return locale.formatDistance("xYears", years, localizeOptions); + } +} +//#endregion +//#region dist/date-fns/fp/formatDistanceStrict.js +var _formatDistanceStrict = convertToFP(formatDistanceStrict$1, 2); +//#endregion +//#region dist/date-fns/fp/formatDistanceStrictWithOptions.js +var _formatDistanceStrictWithOptions = convertToFP(formatDistanceStrict$1, 3); +//#endregion +//#region dist/date-fns/fp/formatDistanceWithOptions.js +var _formatDistanceWithOptions = convertToFP(formatDistance$1, 3); +//#endregion +//#region dist/date-fns/formatDuration.js +/** +* The {@link formatDuration} function options. +*/ +var defaultFormat = [ +"years", +"months", +"weeks", +"days", +"hours", +"minutes", +"seconds"]; + +/** +* @name formatDuration +* @category Common Helpers +* @summary Formats a duration in human-readable format +* +* @description +* Return human-readable duration string i.e. "9 months 2 days" +* +* @param duration - The duration to format +* @param options - An object with options. +* +* @returns The formatted date string +* +* @example +* // Format full duration +* formatDuration({ +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }) +* //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' +* +* @example +* // Format partial duration +* formatDuration({ months: 9, days: 2 }) +* //=> '9 months 2 days' +* +* @example +* // Customize the format +* formatDuration( +* { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }, +* { format: ['months', 'weeks'] } +* ) === '9 months 1 week' +* +* @example +* // Customize the zeros presence +* formatDuration({ years: 0, months: 9 }) +* //=> '9 months' +* formatDuration({ years: 0, months: 9 }, { zero: true }) +* //=> '0 years 9 months' +* +* @example +* // Customize the delimiter +* formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) +* //=> '2 years, 9 months, 3 weeks' +*/ +function formatDuration$1(duration, options) {var _ref20, _options$locale0, _options$format, _options$zero, _options$delimiter; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref20 = (_options$locale0 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale0 !== void 0 ? _options$locale0 : defaultOptions.locale) !== null && _ref20 !== void 0 ? _ref20 : enUS; + var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat; + var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false; + var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : " "; + if (!locale.formatDistance) return ""; + return format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) {return m.toUpperCase();})); + var value = duration[unit]; + if (value !== void 0 && (zero || duration[unit])) return acc.concat(locale.formatDistance(token, value)); + return acc; + }, []).join(delimiter); +} +//#endregion +//#region dist/date-fns/fp/formatDuration.js +var _formatDuration = convertToFP(formatDuration$1, 1); +//#endregion +//#region dist/date-fns/fp/formatDurationWithOptions.js +var _formatDurationWithOptions = convertToFP(formatDuration$1, 2); +//#endregion +//#region dist/date-fns/formatISO.js +/** +* The {@link formatISO} function options. +*/ +/** +* @name formatISO +* @category Common Helpers +* @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). +* +* @description +* Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string (in local time zone) +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18T19:00:52Z' +* +* @example +* // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) +* //=> '20190918T190052' +* +* @example +* // Represent 18 September 2019 in ISO 8601 format, date only: +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) +* //=> '2019-09-18' +* +* @example +* // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): +* const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) +* //=> '19:00:52Z' +*/ +function formatISO$1(date, options) {var _options$format2, _options$representati; + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date_)) throw new RangeError("Invalid time value"); + var format = (_options$format2 = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format2 !== void 0 ? _options$format2 : "extended"; + var representation = (_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : "complete"; + var result = ""; + var tzOffset = ""; + var dateDelimiter = format === "extended" ? "-" : ""; + var timeDelimiter = format === "extended" ? ":" : ""; + if (representation !== "time") { + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + result = "".concat(addLeadingZeros(date_.getFullYear(), 4)).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } + if (representation !== "date") { + var offset = date_.getTimezoneOffset(); + if (offset !== 0) { + var absoluteOffset = Math.abs(offset); + var hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + tzOffset = "".concat(offset < 0 ? "+" : "-").concat(hourOffset, ":").concat(minuteOffset); + } else tzOffset = "Z"; + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + var separator = result === "" ? "" : "T"; + var time = [ + hour, + minute, + second]. + join(timeDelimiter); + result = "".concat(result).concat(separator).concat(time).concat(tzOffset); + } + return result; +} +//#endregion +//#region dist/date-fns/fp/formatISO.js +var _formatISO = convertToFP(formatISO$1, 1); +//#endregion +//#region dist/date-fns/formatISO9075.js +/** +* The {@link formatISO9075} function options. +*/ +/** +* @name formatISO9075 +* @category Common Helpers +* @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). +* +* @description +* Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in ISO 9075 format: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18 19:00:52' +* +* @example +* // Represent 18 September 2019 in ISO 9075, short format: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) +* //=> '20190918 190052' +* +* @example +* // Represent 18 September 2019 in ISO 9075 format, date only: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) +* //=> '2019-09-18' +* +* @example +* // Represent 18 September 2019 in ISO 9075 format, time only: +* const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) +* //=> '19:00:52' +*/ +function formatISO9075$1(date, options) {var _options$format3, _options$representati2; + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (!isValid$1(date_)) throw new RangeError("Invalid time value"); + var format = (_options$format3 = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format3 !== void 0 ? _options$format3 : "extended"; + var representation = (_options$representati2 = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati2 !== void 0 ? _options$representati2 : "complete"; + var result = ""; + var dateDelimiter = format === "extended" ? "-" : ""; + var timeDelimiter = format === "extended" ? ":" : ""; + if (representation !== "time") { + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + result = "".concat(addLeadingZeros(date_.getFullYear(), 4)).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } + if (representation !== "date") { + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + result = "".concat(result).concat(result === "" ? "" : " ").concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); + } + return result; +} +//#endregion +//#region dist/date-fns/fp/formatISO9075.js +var _formatISO2 = convertToFP(formatISO9075$1, 1); +//#endregion +//#region dist/date-fns/fp/formatISO9075WithOptions.js +var _formatISO9075WithOptions = convertToFP(formatISO9075$1, 2); +//#endregion +//#region dist/date-fns/formatISODuration.js +/** +* @name formatISODuration +* @category Common Helpers +* @summary Format a duration object according as ISO 8601 duration string +* +* @description +* Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs//90001488-13/reference/r_iso_8601_duration_format.htm) +* +* @param duration - The duration to format +* +* @returns The ISO 8601 duration string +* +* @example +* // Format the given duration as ISO 8601 string +* const result = formatISODuration({ +* years: 39, +* months: 2, +* days: 20, +* hours: 7, +* minutes: 5, +* seconds: 0 +* }) +* //=> 'P39Y2M20DT0H0M0S' +*/ +function formatISODuration$1(duration) { + var _duration$years2 = duration.years,years = _duration$years2 === void 0 ? 0 : _duration$years2,_duration$months2 = duration.months,months = _duration$months2 === void 0 ? 0 : _duration$months2,_duration$days2 = duration.days,days = _duration$days2 === void 0 ? 0 : _duration$days2,_duration$hours2 = duration.hours,hours = _duration$hours2 === void 0 ? 0 : _duration$hours2,_duration$minutes2 = duration.minutes,minutes = _duration$minutes2 === void 0 ? 0 : _duration$minutes2,_duration$seconds2 = duration.seconds,seconds = _duration$seconds2 === void 0 ? 0 : _duration$seconds2; + return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); +} +//#endregion +//#region dist/date-fns/fp/formatISODuration.js +var _formatISODuration = convertToFP(formatISODuration$1, 1); +//#endregion +//#region dist/date-fns/fp/formatISOWithOptions.js +var _formatISOWithOptions = convertToFP(formatISO$1, 2); +//#endregion +//#region dist/date-fns/formatRFC3339.js +/** +* The {@link formatRFC3339} function options. +*/ +/** +* @name formatRFC3339 +* @category Common Helpers +* @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). +* +* @description +* Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. +* +* @param date - The original date +* @param options - An object with options. +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in RFC 3339 format: +* formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) +* //=> '2019-09-18T19:00:52Z' +* +* @example +* // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction +* formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { +* fractionDigits: 3 +* }) +* //=> '2019-09-18T19:00:52.234Z' +*/ +function formatRFC3339$1(date, options) {var _options$fractionDigi; + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (!isValid$1(date_)) throw new RangeError("Invalid time value"); + var fractionDigits = (_options$fractionDigi = options === null || options === void 0 ? void 0 : options.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0; + var day = addLeadingZeros(date_.getDate(), 2); + var month = addLeadingZeros(date_.getMonth() + 1, 2); + var year = date_.getFullYear(); + var hour = addLeadingZeros(date_.getHours(), 2); + var minute = addLeadingZeros(date_.getMinutes(), 2); + var second = addLeadingZeros(date_.getSeconds(), 2); + var fractionalSecond = ""; + if (fractionDigits > 0) { + var _milliseconds = date_.getMilliseconds(); + fractionalSecond = "." + addLeadingZeros(Math.trunc(_milliseconds * Math.pow(10, fractionDigits - 3)), fractionDigits); + } + var offset = ""; + var tzOffset = date_.getTimezoneOffset(); + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); + offset = "".concat(tzOffset < 0 ? "+" : "-").concat(hourOffset, ":").concat(minuteOffset); + } else offset = "Z"; + return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); +} +//#endregion +//#region dist/date-fns/fp/formatRFC3339.js +var _formatRFC = convertToFP(formatRFC3339$1, 1); +//#endregion +//#region dist/date-fns/fp/formatRFC3339WithOptions.js +var _formatRFC3339WithOptions = convertToFP(formatRFC3339$1, 2); +//#endregion +//#region dist/date-fns/formatRFC7231.js +var days = [ +"Sun", +"Mon", +"Tue", +"Wed", +"Thu", +"Fri", +"Sat"]; + +var months = [ +"Jan", +"Feb", +"Mar", +"Apr", +"May", +"Jun", +"Jul", +"Aug", +"Sep", +"Oct", +"Nov", +"Dec"]; + +/** +* @name formatRFC7231 +* @category Common Helpers +* @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). +* +* @description +* Return the formatted date string in RFC 7231 format. +* The result will always be in UTC timezone. +* +* @param date - The original date +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 18 September 2019 in RFC 7231 format: +* const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) +* //=> 'Wed, 18 Sep 2019 19:00:52 GMT' +*/ +function formatRFC7231$1(date) { + var _date = toDate$1(date); + if (!isValid$1(_date)) throw new RangeError("Invalid time value"); + return "".concat(days[_date.getUTCDay()], ", ").concat(addLeadingZeros(_date.getUTCDate(), 2), " ").concat(months[_date.getUTCMonth()], " ").concat(_date.getUTCFullYear(), " ").concat(addLeadingZeros(_date.getUTCHours(), 2), ":").concat(addLeadingZeros(_date.getUTCMinutes(), 2), ":").concat(addLeadingZeros(_date.getUTCSeconds(), 2), " GMT"); +} +//#endregion +//#region dist/date-fns/fp/formatRFC7231.js +var _formatRFC2 = convertToFP(formatRFC7231$1, 1); +//#endregion +//#region dist/date-fns/formatRelative.js +/** +* The {@link formatRelative} function options. +*/ +/** +* @name formatRelative +* @category Common Helpers +* @summary Represent the date in words relative to the given base date. +* +* @description +* Represent the date in words relative to the given base date. +* +* | Distance to the base date | Result | +* |---------------------------|---------------------------| +* | Previous 6 days | last Sunday at 04:30 AM | +* | Last day | yesterday at 04:30 AM | +* | Same day | today at 04:30 AM | +* | Next day | tomorrow at 04:30 AM | +* | Next 6 days | Sunday at 04:30 AM | +* | Other | 12/31/2017 | +* +* @param date - The date to format +* @param baseDate - The date to compare with +* @param options - An object with options +* +* @returns The date in words +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.locale` must contain `localize` property +* @throws `options.locale` must contain `formatLong` property +* @throws `options.locale` must contain `formatRelative` property +* +* @example +* // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday +* const result = formatRelative(subDays(new Date(), 6), new Date()) +* //=> "last Thursday at 12:45 AM" +*/ +function formatRelative$1(date, baseDate, options) {var _ref21, _options$locale1, _ref22, _ref23, _ref24, _options$weekStartsOn4, _options$locale10, _defaultOptions$local7; + var _normalizeDates37 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, date, baseDate),_normalizeDates38 = _slicedToArray(_normalizeDates37, 2),date_ = _normalizeDates38[0],baseDate_ = _normalizeDates38[1]; + var defaultOptions = getDefaultOptions$1(); + var locale = (_ref21 = (_options$locale1 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale1 !== void 0 ? _options$locale1 : defaultOptions.locale) !== null && _ref21 !== void 0 ? _ref21 : enUS; + var weekStartsOn = (_ref22 = (_ref23 = (_ref24 = (_options$weekStartsOn4 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn4 !== void 0 ? _options$weekStartsOn4 : options === null || options === void 0 || (_options$locale10 = options.locale) === null || _options$locale10 === void 0 || (_options$locale10 = _options$locale10.options) === null || _options$locale10 === void 0 ? void 0 : _options$locale10.weekStartsOn) !== null && _ref24 !== void 0 ? _ref24 : defaultOptions.weekStartsOn) !== null && _ref23 !== void 0 ? _ref23 : (_defaultOptions$local7 = defaultOptions.locale) === null || _defaultOptions$local7 === void 0 || (_defaultOptions$local7 = _defaultOptions$local7.options) === null || _defaultOptions$local7 === void 0 ? void 0 : _defaultOptions$local7.weekStartsOn) !== null && _ref22 !== void 0 ? _ref22 : 0; + var diff = differenceInCalendarDays$1(date_, baseDate_); + if (isNaN(diff)) throw new RangeError("Invalid time value"); + var token; + if (diff < -6) token = "other";else + if (diff < -1) token = "lastWeek";else + if (diff < 0) token = "yesterday";else + if (diff < 1) token = "today";else + if (diff < 2) token = "tomorrow";else + if (diff < 7) token = "nextWeek";else + token = "other"; + return format$1(date_, locale.formatRelative(token, date_, baseDate_, { + locale: locale, + weekStartsOn: weekStartsOn + }), { + locale: locale, + weekStartsOn: weekStartsOn + }); +} +//#endregion +//#region dist/date-fns/fp/formatRelative.js +var _formatRelative = convertToFP(formatRelative$1, 2); +//#endregion +//#region dist/date-fns/fp/formatRelativeWithOptions.js +var _formatRelativeWithOptions = convertToFP(formatRelative$1, 3); +//#endregion +//#region dist/date-fns/fp/formatWithOptions.js +var _formatWithOptions = convertToFP(format$1, 3); +//#endregion +//#region dist/date-fns/fromUnixTime.js +/** +* The {@link fromUnixTime} function options. +*/ +/** +* @name fromUnixTime +* @category Timestamp Helpers +* @summary Create a date from a Unix timestamp. +* +* @description +* Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. +* +* @param unixTime - The given Unix timestamp (in seconds) +* @param options - An object with options. Allows to pass a context. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @returns The date +* +* @example +* // Create the date 29 February 2012 11:45:05: +* const result = fromUnixTime(1330515905) +* //=> Wed Feb 29 2012 11:45:05 +*/ +function fromUnixTime$1(unixTime, options) { + return toDate$1(unixTime * 1e3, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/fp/fromUnixTime.js +var _fromUnixTime = convertToFP(fromUnixTime$1, 1); +//#endregion +//#region dist/date-fns/fp/fromUnixTimeWithOptions.js +var _fromUnixTimeWithOptions = convertToFP(fromUnixTime$1, 2); +//#endregion +//#region dist/date-fns/getDate.js +/** +* The {@link getDate} function options. +*/ +/** +* @name getDate +* @category Day Helpers +* @summary Get the day of the month of the given date. +* +* @description +* Get the day of the month of the given date. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The day of month +* +* @example +* // Which day of the month is 29 February 2012? +* const result = getDate(new Date(2012, 1, 29)) +* //=> 29 +*/ +function getDate$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDate(); +} +//#endregion +//#region dist/date-fns/fp/getDate.js +var _getDate = convertToFP(getDate$1, 1); +//#endregion +//#region dist/date-fns/fp/getDateWithOptions.js +var _getDateWithOptions = convertToFP(getDate$1, 2); +//#endregion +//#region dist/date-fns/getDay.js +/** +* The {@link getDay} function options. +*/ +/** +* @name getDay +* @category Weekday Helpers +* @summary Get the day of the week of the given date. +* +* @description +* Get the day of the week of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The day of week, 0 represents Sunday +* +* @example +* // Which day of the week is 29 February 2012? +* const result = getDay(new Date(2012, 1, 29)) +* //=> 3 +*/ +function getDay$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay(); +} +//#endregion +//#region dist/date-fns/fp/getDay.js +var _getDay = convertToFP(getDay$1, 1); +//#endregion +//#region dist/date-fns/fp/getDayOfYear.js +var _getDayOfYear = convertToFP(getDayOfYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getDayOfYearWithOptions.js +var _getDayOfYearWithOptions = convertToFP(getDayOfYear$1, 2); +//#endregion +//#region dist/date-fns/fp/getDayWithOptions.js +var _getDayWithOptions = convertToFP(getDay$1, 2); +//#endregion +//#region dist/date-fns/getDaysInMonth.js +/** +* The {@link getDaysInMonth} function options. +*/ +/** +* @name getDaysInMonth +* @category Month Helpers +* @summary Get the number of days in a month of the given date. +* +* @description +* Get the number of days in a month of the given date, considering the context if provided. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of days in a month +* +* @example +* // How many days are in February 2000? +* const result = getDaysInMonth(new Date(2000, 1)) +* //=> 29 +*/ +function getDaysInMonth$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var monthIndex = _date.getMonth(); + var lastDayOfMonth = constructFrom$1(_date, 0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} +//#endregion +//#region dist/date-fns/fp/getDaysInMonth.js +var _getDaysInMonth = convertToFP(getDaysInMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/getDaysInMonthWithOptions.js +var _getDaysInMonthWithOptions = convertToFP(getDaysInMonth$1, 2); +//#endregion +//#region dist/date-fns/isLeapYear.js +/** +* @name isLeapYear +* @category Year Helpers +* @summary Is the given date in the leap year? +* +* @description +* Is the given date in the leap year? +* +* @param date - The date to check +* @param options - The options object +* +* @returns The date is in the leap year +* +* @example +* // Is 1 September 2012 in the leap year? +* const result = isLeapYear(new Date(2012, 8, 1)) +* //=> true +*/ +function isLeapYear$1(date, options) { + var year = toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +//#endregion +//#region dist/date-fns/getDaysInYear.js +/** +* The {@link getDaysInYear} function options. +*/ +/** +* @name getDaysInYear +* @category Year Helpers +* @summary Get the number of days in a year of the given date. +* +* @description +* Get the number of days in a year of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of days in a year +* +* @example +* // How many days are in 2012? +* const result = getDaysInYear(new Date(2012, 0, 1)) +* //=> 366 +*/ +function getDaysInYear$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (Number.isNaN(+_date)) return NaN; + return isLeapYear$1(_date) ? 366 : 365; +} +//#endregion +//#region dist/date-fns/fp/getDaysInYear.js +var _getDaysInYear = convertToFP(getDaysInYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getDaysInYearWithOptions.js +var _getDaysInYearWithOptions = convertToFP(getDaysInYear$1, 2); +//#endregion +//#region dist/date-fns/getDecade.js +/** +* The {@link getDecade} function options. +*/ +/** +* @name getDecade +* @category Decade Helpers +* @summary Get the decade of the given date. +* +* @description +* Get the decade of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The year of decade +* +* @example +* // Which decade belongs 27 November 1942? +* const result = getDecade(new Date(1942, 10, 27)) +* //=> 1940 +*/ +function getDecade$1(date, options) { + var year = toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); + return Math.floor(year / 10) * 10; +} +//#endregion +//#region dist/date-fns/fp/getDecade.js +var _getDecade = convertToFP(getDecade$1, 1); +//#endregion +//#region dist/date-fns/fp/getDecadeWithOptions.js +var _getDecadeWithOptions = convertToFP(getDecade$1, 2); +//#endregion +//#region dist/date-fns/getHours.js +/** +* The {@link getHours} function options. +*/ +/** +* @name getHours +* @category Hour Helpers +* @summary Get the hours of the given date. +* +* @description +* Get the hours of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The hours +* +* @example +* // Get the hours of 29 February 2012 11:45:00: +* const result = getHours(new Date(2012, 1, 29, 11, 45)) +* //=> 11 +*/ +function getHours$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getHours(); +} +//#endregion +//#region dist/date-fns/fp/getHours.js +var _getHours = convertToFP(getHours$1, 1); +//#endregion +//#region dist/date-fns/fp/getHoursWithOptions.js +var _getHoursWithOptions = convertToFP(getHours$1, 2); +//#endregion +//#region dist/date-fns/getISODay.js +/** +* The {@link getISODay} function options. +*/ +/** +* @name getISODay +* @category Weekday Helpers +* @summary Get the day of the ISO week of the given date. +* +* @description +* Get the day of the ISO week of the given date, +* which is 7 for Sunday, 1 for Monday etc. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - An object with options +* +* @returns The day of ISO week +* +* @example +* // Which day of the ISO week is 26 February 2012? +* const result = getISODay(new Date(2012, 1, 26)) +* //=> 7 +*/ +function getISODay$1(date, options) { + var day = toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay(); + return day === 0 ? 7 : day; +} +//#endregion +//#region dist/date-fns/fp/getISODay.js +var _getISODay = convertToFP(getISODay$1, 1); +//#endregion +//#region dist/date-fns/fp/getISODayWithOptions.js +var _getISODayWithOptions = convertToFP(getISODay$1, 2); +//#endregion +//#region dist/date-fns/fp/getISOWeek.js +var _getISOWeek = convertToFP(getISOWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/getISOWeekWithOptions.js +var _getISOWeekWithOptions = convertToFP(getISOWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/getISOWeekYear.js +var _getISOWeekYear = convertToFP(getISOWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getISOWeekYearWithOptions.js +var _getISOWeekYearWithOptions = convertToFP(getISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/getISOWeeksInYear.js +/** +* The {@link getISOWeeksInYear} function options. +*/ +/** +* @name getISOWeeksInYear +* @category ISO Week-Numbering Year Helpers +* @summary Get the number of weeks in an ISO week-numbering year of the given date. +* +* @description +* Get the number of weeks in an ISO week-numbering year of the given date. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param date - The given date +* @param options - An object with options +* +* @returns The number of ISO weeks in a year +* +* @example +* // How many weeks are in ISO week-numbering year 2015? +* const result = getISOWeeksInYear(new Date(2015, 1, 11)) +* //=> 53 +*/ +function getISOWeeksInYear$1(date, options) { + var thisYear = startOfISOWeekYear$1(date, options); + var diff = +startOfISOWeekYear$1(addWeeks$1(thisYear, 60)) - +thisYear; + return Math.round(diff / millisecondsInWeek); +} +//#endregion +//#region dist/date-fns/fp/getISOWeeksInYear.js +var _getISOWeeksInYear = convertToFP(getISOWeeksInYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getISOWeeksInYearWithOptions.js +var _getISOWeeksInYearWithOptions = convertToFP(getISOWeeksInYear$1, 2); +//#endregion +//#region dist/date-fns/getMilliseconds.js +/** +* @name getMilliseconds +* @category Millisecond Helpers +* @summary Get the milliseconds of the given date. +* +* @description +* Get the milliseconds of the given date. +* +* @param date - The given date +* +* @returns The milliseconds +* +* @example +* // Get the milliseconds of 29 February 2012 11:45:05.123: +* const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 123 +*/ +function getMilliseconds$1(date) { + return toDate$1(date).getMilliseconds(); +} +//#endregion +//#region dist/date-fns/fp/getMilliseconds.js +var _getMilliseconds = convertToFP(getMilliseconds$1, 1); +//#endregion +//#region dist/date-fns/getMinutes.js +/** +* The {@link getMinutes} function options. +*/ +/** +* @name getMinutes +* @category Minute Helpers +* @summary Get the minutes of the given date. +* +* @description +* Get the minutes of the given date. +* +* @param date - The given date +* @param options - The options +* +* @returns The minutes +* +* @example +* // Get the minutes of 29 February 2012 11:45:05: +* const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) +* //=> 45 +*/ +function getMinutes$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getMinutes(); +} +//#endregion +//#region dist/date-fns/fp/getMinutes.js +var _getMinutes = convertToFP(getMinutes$1, 1); +//#endregion +//#region dist/date-fns/fp/getMinutesWithOptions.js +var _getMinutesWithOptions = convertToFP(getMinutes$1, 2); +//#endregion +//#region dist/date-fns/getMonth.js +/** +* The {@link getMonth} function options. +*/ +/** +* @name getMonth +* @category Month Helpers +* @summary Get the month of the given date. +* +* @description +* Get the month of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The month index (0-11) +* +* @example +* // Which month is 29 February 2012? +* const result = getMonth(new Date(2012, 1, 29)) +* //=> 1 +*/ +function getMonth$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getMonth(); +} +//#endregion +//#region dist/date-fns/fp/getMonth.js +var _getMonth = convertToFP(getMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/getMonthWithOptions.js +var _getMonthWithOptions = convertToFP(getMonth$1, 2); +//#endregion +//#region dist/date-fns/getOverlappingDaysInIntervals.js +/** +* @name getOverlappingDaysInIntervals +* @category Interval Helpers +* @summary Get the number of days that overlap in two time intervals +* +* @description +* Get the number of days that overlap in two time intervals. It uses the time +* between dates to calculate the number of days, rounding it up to include +* partial days. +* +* Two equal 0-length intervals will result in 0. Two equal 1ms intervals will +* result in 1. +* +* @param intervalLeft - The first interval to compare. +* @param intervalRight - The second interval to compare. +* @param options - An object with options +* +* @returns The number of days that overlap in two time intervals +* +* @example +* // For overlapping time intervals adds 1 for each started overlapping day: +* getOverlappingDaysInIntervals( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } +* ) +* //=> 3 +* +* @example +* // For non-overlapping time intervals returns 0: +* getOverlappingDaysInIntervals( +* { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, +* { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } +* ) +* //=> 0 +*/ +function getOverlappingDaysInIntervals$1(intervalLeft, intervalRight) { + var _sort5 = [+toDate$1(intervalLeft.start), +toDate$1(intervalLeft.end)].sort(function (a, b) {return a - b;}),_sort6 = _slicedToArray(_sort5, 2),leftStart = _sort6[0],leftEnd = _sort6[1]; + var _sort7 = [+toDate$1(intervalRight.start), +toDate$1(intervalRight.end)].sort(function (a, b) {return a - b;}),_sort8 = _slicedToArray(_sort7, 2),rightStart = _sort8[0],rightEnd = _sort8[1]; + if (!(leftStart < rightEnd && rightStart < leftEnd)) return 0; + var overlapLeft = rightStart < leftStart ? leftStart : rightStart; + var left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft); + var overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + var right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight); + return Math.ceil((right - left) / millisecondsInDay); +} +//#endregion +//#region dist/date-fns/fp/getOverlappingDaysInIntervals.js +var _getOverlappingDaysInIntervals = convertToFP(getOverlappingDaysInIntervals$1, 2); +//#endregion +//#region dist/date-fns/fp/getQuarter.js +var _getQuarter = convertToFP(getQuarter$1, 1); +//#endregion +//#region dist/date-fns/fp/getQuarterWithOptions.js +var _getQuarterWithOptions = convertToFP(getQuarter$1, 2); +//#endregion +//#region dist/date-fns/getSeconds.js +/** +* @name getSeconds +* @category Second Helpers +* @summary Get the seconds of the given date. +* +* @description +* Get the seconds of the given date. +* +* @param date - The given date +* +* @returns The seconds +* +* @example +* // Get the seconds of 29 February 2012 11:45:05.123: +* const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 5 +*/ +function getSeconds$1(date) { + return toDate$1(date).getSeconds(); +} +//#endregion +//#region dist/date-fns/fp/getSeconds.js +var _getSeconds = convertToFP(getSeconds$1, 1); +//#endregion +//#region dist/date-fns/getTime.js +/** +* @name getTime +* @category Timestamp Helpers +* @summary Get the milliseconds timestamp of the given date. +* +* @description +* Get the milliseconds timestamp of the given date. +* +* @param date - The given date +* +* @returns The timestamp +* +* @example +* // Get the timestamp of 29 February 2012 11:45:05.123: +* const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) +* //=> 1330515905123 +*/ +function getTime$1(date) { + return +toDate$1(date); +} +//#endregion +//#region dist/date-fns/fp/getTime.js +var _getTime = convertToFP(getTime$1, 1); +//#endregion +//#region dist/date-fns/getUnixTime.js +/** +* @name getUnixTime +* @category Timestamp Helpers +* @summary Get the seconds timestamp of the given date. +* +* @description +* Get the seconds timestamp of the given date. +* +* @param date - The given date +* +* @returns The timestamp +* +* @example +* // Get the timestamp of 29 February 2012 11:45:05 CET: +* const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) +* //=> 1330512305 +*/ +function getUnixTime$1(date) { + return Math.trunc(+toDate$1(date) / 1e3); +} +//#endregion +//#region dist/date-fns/fp/getUnixTime.js +var _getUnixTime = convertToFP(getUnixTime$1, 1); +//#endregion +//#region dist/date-fns/fp/getWeek.js +var _getWeek = convertToFP(getWeek$1, 1); +//#endregion +//#region dist/date-fns/getWeekOfMonth.js +/** +* The {@link getWeekOfMonth} function options. +*/ +/** +* @name getWeekOfMonth +* @category Week Helpers +* @summary Get the week of the month of the given date. +* +* @description +* Get the week of the month of the given date. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The week of month +* +* @example +* // Which week of the month is 9 November 2017? +* const result = getWeekOfMonth(new Date(2017, 10, 9)) +* //=> 2 +*/ +function getWeekOfMonth$1(date, options) {var _ref25, _ref26, _ref27, _options$weekStartsOn5, _options$locale11, _defaultOptions$local8; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref25 = (_ref26 = (_ref27 = (_options$weekStartsOn5 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn5 !== void 0 ? _options$weekStartsOn5 : options === null || options === void 0 || (_options$locale11 = options.locale) === null || _options$locale11 === void 0 || (_options$locale11 = _options$locale11.options) === null || _options$locale11 === void 0 ? void 0 : _options$locale11.weekStartsOn) !== null && _ref27 !== void 0 ? _ref27 : defaultOptions.weekStartsOn) !== null && _ref26 !== void 0 ? _ref26 : (_defaultOptions$local8 = defaultOptions.locale) === null || _defaultOptions$local8 === void 0 || (_defaultOptions$local8 = _defaultOptions$local8.options) === null || _defaultOptions$local8 === void 0 ? void 0 : _defaultOptions$local8.weekStartsOn) !== null && _ref25 !== void 0 ? _ref25 : 0; + var currentDayOfMonth = getDate$1(toDate$1(date, options === null || options === void 0 ? void 0 : options.in)); + if (isNaN(currentDayOfMonth)) return NaN; + var lastDayOfFirstWeek = weekStartsOn - getDay$1(startOfMonth$1(date, options)); + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} +//#endregion +//#region dist/date-fns/fp/getWeekOfMonth.js +var _getWeekOfMonth = convertToFP(getWeekOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/getWeekOfMonthWithOptions.js +var _getWeekOfMonthWithOptions = convertToFP(getWeekOfMonth$1, 2); +//#endregion +//#region dist/date-fns/fp/getWeekWithOptions.js +var _getWeekWithOptions = convertToFP(getWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/getWeekYear.js +var _getWeekYear = convertToFP(getWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getWeekYearWithOptions.js +var _getWeekYearWithOptions = convertToFP(getWeekYear$1, 2); +//#endregion +//#region dist/date-fns/lastDayOfMonth.js +/** +* The {@link lastDayOfMonth} function options. +*/ +/** +* @name lastDayOfMonth +* @category Month Helpers +* @summary Return the last day of a month for the given date. +* +* @description +* Return the last day of a month for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a month +* +* @example +* // The last day of a month for 2 September 2014 11:55:00: +* const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function lastDayOfMonth$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(0, 0, 0, 0); + return toDate$1(_date, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/getWeeksInMonth.js +/** +* The {@link getWeeksInMonth} function options. +*/ +/** +* @name getWeeksInMonth +* @category Week Helpers +* @summary Get the number of calendar weeks a month spans. +* +* @description +* Get the number of calendar weeks the month in the given date spans. +* +* @param date - The given date +* @param options - An object with options. +* +* @returns The number of calendar weeks +* +* @example +* // How many calendar weeks does February 2015 span? +* const result = getWeeksInMonth(new Date(2015, 1, 8)) +* //=> 4 +* +* @example +* // If the week starts on Monday, +* // how many calendar weeks does July 2017 span? +* const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) +* //=> 6 +*/ +function getWeeksInMonth$1(date, options) { + var contextDate = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + return differenceInCalendarWeeks$1(lastDayOfMonth$1(contextDate, options), startOfMonth$1(contextDate, options), options) + 1; +} +//#endregion +//#region dist/date-fns/fp/getWeeksInMonth.js +var _getWeeksInMonth = convertToFP(getWeeksInMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/getWeeksInMonthWithOptions.js +var _getWeeksInMonthWithOptions = convertToFP(getWeeksInMonth$1, 2); +//#endregion +//#region dist/date-fns/getYear.js +/** +* The {@link getYear} function options. +*/ +/** +* @name getYear +* @category Year Helpers +* @summary Get the year of the given date. +* +* @description +* Get the year of the given date. +* +* @param date - The given date +* @param options - An object with options +* +* @returns The year +* +* @example +* // Which year is 2 July 2014? +* const result = getYear(new Date(2014, 6, 2)) +* //=> 2014 +*/ +function getYear$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getFullYear(); +} +//#endregion +//#region dist/date-fns/fp/getYear.js +var _getYear = convertToFP(getYear$1, 1); +//#endregion +//#region dist/date-fns/fp/getYearWithOptions.js +var _getYearWithOptions = convertToFP(getYear$1, 2); +//#endregion +//#region dist/date-fns/hoursToMilliseconds.js +/** +* @name hoursToMilliseconds +* @category Conversion Helpers +* @summary Convert hours to milliseconds. +* +* @description +* Convert a number of hours to a full number of milliseconds. +* +* @param hours - number of hours to be converted +* +* @returns The number of hours converted to milliseconds +* +* @example +* // Convert 2 hours to milliseconds: +* const result = hoursToMilliseconds(2) +* //=> 7200000 +*/ +function hoursToMilliseconds$1(hours) { + return Math.trunc(hours * millisecondsInHour); +} +//#endregion +//#region dist/date-fns/fp/hoursToMilliseconds.js +var _hoursToMilliseconds = convertToFP(hoursToMilliseconds$1, 1); +//#endregion +//#region dist/date-fns/hoursToMinutes.js +/** +* @name hoursToMinutes +* @category Conversion Helpers +* @summary Convert hours to minutes. +* +* @description +* Convert a number of hours to a full number of minutes. +* +* @param hours - number of hours to be converted +* +* @returns The number of hours converted in minutes +* +* @example +* // Convert 2 hours to minutes: +* const result = hoursToMinutes(2) +* //=> 120 +*/ +function hoursToMinutes$1(hours) { + return Math.trunc(hours * 60); +} +//#endregion +//#region dist/date-fns/fp/hoursToMinutes.js +var _hoursToMinutes = convertToFP(hoursToMinutes$1, 1); +//#endregion +//#region dist/date-fns/hoursToSeconds.js +/** +* @name hoursToSeconds +* @category Conversion Helpers +* @summary Convert hours to seconds. +* +* @description +* Convert a number of hours to a full number of seconds. +* +* @param hours - The number of hours to be converted +* +* @returns The number of hours converted in seconds +* +* @example +* // Convert 2 hours to seconds: +* const result = hoursToSeconds(2) +* //=> 7200 +*/ +function hoursToSeconds$1(hours) { + return Math.trunc(hours * secondsInHour); +} +//#endregion +//#region dist/date-fns/fp/hoursToSeconds.js +var _hoursToSeconds = convertToFP(hoursToSeconds$1, 1); +//#endregion +//#region dist/date-fns/interval.js +/** +* The {@link interval} function options. +*/ +/** +* The {@link interval} function result type. It resolves the proper data type. +* It uses the first argument date object type, starting from the start argument, +* then the end interval date. If a context function is passed, it uses the context +* function return type. +*/ +/** +* @name interval +* @category Interval Helpers +* @summary Creates an interval object and validates its values. +* +* @description +* Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. +* +* @typeParam StartDate - Start date type. +* @typeParam EndDate - End date type. +* @typeParam Options - Options type. +* +* @param start - The start of the interval. +* @param end - The end of the interval. +* @param options - The options object. +* +* @throws `Start date is invalid` when `start` is invalid. +* @throws `End date is invalid` when `end` is invalid. +* @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. +* +* @returns The normalized and validated interval object. +*/ +function interval$1(start, end, options) { + var _normalizeDates39 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, start, end),_normalizeDates40 = _slicedToArray(_normalizeDates39, 2),_start = _normalizeDates40[0],_end = _normalizeDates40[1]; + if (isNaN(+_start)) throw new TypeError("Start date is invalid"); + if (isNaN(+_end)) throw new TypeError("End date is invalid"); + if (options !== null && options !== void 0 && options.assertPositive && +_start > +_end) throw new TypeError("End date must be after start date"); + return { + start: _start, + end: _end + }; +} +//#endregion +//#region dist/date-fns/fp/interval.js +var _interval = convertToFP(interval$1, 2); +//#endregion +//#region dist/date-fns/intervalToDuration.js +/** +* The {@link intervalToDuration} function options. +*/ +/** +* @name intervalToDuration +* @category Common Helpers +* @summary Convert interval to duration +* +* @description +* Convert an interval object to a duration object. +* +* @param interval - The interval to convert to duration +* @param options - The context options +* +* @returns The duration object +* +* @example +* // Get the duration between January 15, 1929 and April 4, 1968. +* intervalToDuration({ +* start: new Date(1929, 0, 15, 12, 0, 0), +* end: new Date(1968, 3, 4, 19, 5, 0) +* }); +* //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } +*/ +function intervalToDuration$1(interval, options) { + var _normalizeInterval9 = normalizeInterval(options === null || options === void 0 ? void 0 : options.in, interval),start = _normalizeInterval9.start,end = _normalizeInterval9.end; + var duration = {}; + var years = differenceInYears$1(end, start); + if (years) duration.years = years; + var remainingMonths = add$1(start, { years: duration.years }); + var months = differenceInMonths$1(end, remainingMonths); + if (months) duration.months = months; + var remainingDays = add$1(remainingMonths, { months: duration.months }); + var days = differenceInDays$1(end, remainingDays); + if (days) duration.days = days; + var remainingHours = add$1(remainingDays, { days: duration.days }); + var hours = differenceInHours$1(end, remainingHours); + if (hours) duration.hours = hours; + var remainingMinutes = add$1(remainingHours, { hours: duration.hours }); + var minutes = differenceInMinutes$1(end, remainingMinutes); + if (minutes) duration.minutes = minutes; + var seconds = differenceInSeconds$1(end, add$1(remainingMinutes, { minutes: duration.minutes })); + if (seconds) duration.seconds = seconds; + return duration; +} +//#endregion +//#region dist/date-fns/fp/intervalToDuration.js +var _intervalToDuration = convertToFP(intervalToDuration$1, 1); +//#endregion +//#region dist/date-fns/fp/intervalToDurationWithOptions.js +var _intervalToDurationWithOptions = convertToFP(intervalToDuration$1, 2); +//#endregion +//#region dist/date-fns/fp/intervalWithOptions.js +var _intervalWithOptions = convertToFP(interval$1, 3); +//#endregion +//#region dist/date-fns/intlFormat.js +/** +* The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). +* @deprecated +* +* [TODO] Remove in v4 +*/ +/** +* The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) +*/ +/** +* The locale options. +*/ +/** +* @name intlFormat +* @category Common Helpers +* @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). +* +* @description +* Return the formatted date string in the given format. +* The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. +* formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) +* +* > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. +* +* @param date - The date to format +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in middle-endian format: +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) +* //=> 10/4/2019 +*/ +/** +* @param date - The date to format +* @param localeOptions - An object with locale +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in Korean. +* // Convert the date with locale's options. +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { +* locale: 'ko-KR', +* }) +* //=> 2019. 10. 4. +*/ +/** +* @param date - The date to format +* @param formatOptions - The format options +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019. +* // Convert the date with format's options. +* const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { +* year: 'numeric', +* month: 'numeric', +* day: 'numeric', +* hour: 'numeric', +* }) +* //=> 10/4/2019, 12 PM +*/ +/** +* @param date - The date to format +* @param formatOptions - The format options +* @param localeOptions - An object with locale +* +* @returns The formatted date string +* +* @throws `date` must not be Invalid Date +* +* @example +* // Represent 4 October 2019 in German. +* // Convert the date with format's options and locale's options. +* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { +* weekday: 'long', +* year: 'numeric', +* month: 'long', +* day: 'numeric', +* }, { +* locale: 'de-DE', +* }) +* //=> Freitag, 4. Oktober 2019 +*/ +function intlFormat$1(date, formatOrLocale, localeOptions) {var _localeOptions; + var formatOptions; + if (isFormatOptions(formatOrLocale)) formatOptions = formatOrLocale;else + localeOptions = formatOrLocale; + return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(toDate$1(date)); +} +function isFormatOptions(opts) { + return opts !== void 0 && !("locale" in opts); +} +//#endregion +//#region dist/date-fns/fp/intlFormat.js +var _intlFormat = convertToFP(intlFormat$1, 3); +//#endregion +//#region dist/date-fns/intlFormatDistance.js +/** +* The {@link intlFormatDistance} function options. +*/ +/** +* The unit used to format the distance in {@link intlFormatDistance}. +*/ +/** +* @name intlFormatDistance +* @category Common Helpers +* @summary Formats distance between two dates in a human-readable format +* @description +* The function calculates the difference between two dates and formats it as a human-readable string. +* +* 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`. +* +* You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. +* +* See the table below for the unit picking logic: +* +* | Distance between dates | Result (past) | Result (future) | +* | ---------------------- | -------------- | --------------- | +* | 0 seconds | now | now | +* | 1-59 seconds | X seconds ago | in X seconds | +* | 1-59 minutes | X minutes ago | in X minutes | +* | 1-23 hours | X hours ago | in X hours | +* | 1 day | yesterday | tomorrow | +* | 2-6 days | X days ago | in X days | +* | 7 days | last week | next week | +* | 8 days-1 month | X weeks ago | in X weeks | +* | 1 month | last month | next month | +* | 2-3 months | X months ago | in X months | +* | 1 quarter | last quarter | next quarter | +* | 2-3 quarters | X quarters ago | in X quarters | +* | 1 year | last year | next year | +* | 2+ years | X years ago | in X years | +* +* @param laterDate - The date +* @param earlierDate - The date to compare with. +* @param options - An object with options. +* 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) +* The narrow one could be similar to the short one for some locales. +* +* @returns The distance in words according to language-sensitive relative time formatting. +* +* @throws `date` must not be Invalid Date +* @throws `baseDate` must not be Invalid Date +* @throws `options.unit` must not be invalid Unit +* @throws `options.locale` must not be invalid locale +* @throws `options.localeMatcher` must not be invalid localeMatcher +* @throws `options.numeric` must not be invalid numeric +* @throws `options.style` must not be invalid style +* +* @example +* // What is the distance between the dates when the fist date is after the second? +* intlFormatDistance( +* new Date(1986, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0) +* ) +* //=> 'in 1 hour' +* +* // What is the distance between the dates when the fist date is before the second? +* intlFormatDistance( +* new Date(1986, 3, 4, 10, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0) +* ) +* //=> '1 hour ago' +* +* @example +* // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" +* intlFormatDistance( +* new Date(1987, 6, 4, 10, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0), +* { unit: 'quarter' } +* ) +* //=> 'in 5 quarters' +* +* @example +* // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". +* intlFormatDistance( +* new Date(1986, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 10, 30, 0), +* { locale: 'es' } +* ) +* //=> 'dentro de 1 hora' +* +* @example +* // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". +* intlFormatDistance( +* new Date(1986, 3, 5, 11, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0), +* { numeric: 'always' } +* ) +* //=> 'in 1 day' +* +* @example +* // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". +* intlFormatDistance( +* new Date(1988, 3, 4, 11, 30, 0), +* new Date(1986, 3, 4, 11, 30, 0), +* { style: 'short' } +* ) +* //=> 'in 2 yr' +*/ +function intlFormatDistance$1(laterDate, earlierDate, options) { + var value = 0; + var unit; + var _normalizeDates41 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates42 = _slicedToArray(_normalizeDates41, 2),laterDate_ = _normalizeDates42[0],earlierDate_ = _normalizeDates42[1]; + if (!(options !== null && options !== void 0 && options.unit)) { + var diffInSeconds = differenceInSeconds$1(laterDate_, earlierDate_); + if (Math.abs(diffInSeconds) < 60) { + value = differenceInSeconds$1(laterDate_, earlierDate_); + unit = "second"; + } else if (Math.abs(diffInSeconds) < 3600) { + value = differenceInMinutes$1(laterDate_, earlierDate_); + unit = "minute"; + } else if (Math.abs(diffInSeconds) < 86400 && Math.abs(differenceInCalendarDays$1(laterDate_, earlierDate_)) < 1) { + value = differenceInHours$1(laterDate_, earlierDate_); + unit = "hour"; + } else if (Math.abs(diffInSeconds) < 604800 && (value = differenceInCalendarDays$1(laterDate_, earlierDate_)) && Math.abs(value) < 7) unit = "day";else + if (Math.abs(diffInSeconds) < 2629746) { + value = differenceInCalendarWeeks$1(laterDate_, earlierDate_); + unit = "week"; + } else if (Math.abs(diffInSeconds) < 7889238) { + value = differenceInCalendarMonths$1(laterDate_, earlierDate_); + unit = "month"; + } else if (Math.abs(diffInSeconds) < 31556952) {if (differenceInCalendarQuarters$1(laterDate_, earlierDate_) < 4) { + value = differenceInCalendarQuarters$1(laterDate_, earlierDate_); + unit = "quarter"; + } else { + value = differenceInCalendarYears$1(laterDate_, earlierDate_); + unit = "year"; + }} else + { + value = differenceInCalendarYears$1(laterDate_, earlierDate_); + unit = "year"; + } + } else { + unit = options === null || options === void 0 ? void 0 : options.unit; + if (unit === "second") value = differenceInSeconds$1(laterDate_, earlierDate_);else + if (unit === "minute") value = differenceInMinutes$1(laterDate_, earlierDate_);else + if (unit === "hour") value = differenceInHours$1(laterDate_, earlierDate_);else + if (unit === "day") value = differenceInCalendarDays$1(laterDate_, earlierDate_);else + if (unit === "week") value = differenceInCalendarWeeks$1(laterDate_, earlierDate_);else + if (unit === "month") value = differenceInCalendarMonths$1(laterDate_, earlierDate_);else + if (unit === "quarter") value = differenceInCalendarQuarters$1(laterDate_, earlierDate_);else + if (unit === "year") value = differenceInCalendarYears$1(laterDate_, earlierDate_); + } + return new Intl.RelativeTimeFormat(options === null || options === void 0 ? void 0 : options.locale, _objectSpread({ + numeric: "auto" }, + options) + ).format(value, unit); +} +//#endregion +//#region dist/date-fns/fp/intlFormatDistance.js +var _intlFormatDistance = convertToFP(intlFormatDistance$1, 2); +//#endregion +//#region dist/date-fns/fp/intlFormatDistanceWithOptions.js +var _intlFormatDistanceWithOptions = convertToFP(intlFormatDistance$1, 3); +//#endregion +//#region dist/date-fns/isAfter.js +/** +* @name isAfter +* @category Common Helpers +* @summary Is the first date after the second one? +* +* @description +* Is the first date after the second one? +* +* @param date - The date that should be after the other one to return true +* @param dateToCompare - The date to compare with +* +* @returns The first date is after the second date +* +* @example +* // Is 10 July 1989 after 11 February 1987? +* const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) +* //=> true +*/ +function isAfter$1(date, dateToCompare) { + return +toDate$1(date) > +toDate$1(dateToCompare); +} +//#endregion +//#region dist/date-fns/fp/isAfter.js +var _isAfter = convertToFP(isAfter$1, 2); +//#endregion +//#region dist/date-fns/isBefore.js +/** +* @name isBefore +* @category Common Helpers +* @summary Is the first date before the second one? +* +* @description +* Is the first date before the second one? +* +* @param date - The date that should be before the other one to return true +* @param dateToCompare - The date to compare with +* +* @returns The first date is before the second date +* +* @example +* // Is 10 July 1989 before 11 February 1987? +* const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) +* //=> false +*/ +function isBefore$1(date, dateToCompare) { + return +toDate$1(date) < +toDate$1(dateToCompare); +} +//#endregion +//#region dist/date-fns/fp/isBefore.js +var _isBefore = convertToFP(isBefore$1, 2); +//#endregion +//#region dist/date-fns/fp/isDate.js +var _isDate = convertToFP(isDate$1, 1); +//#endregion +//#region dist/date-fns/isEqual.js +/** +* @name isEqual +* @category Common Helpers +* @summary Are the given dates equal? +* +* @description +* Are the given dates equal? +* +* @param dateLeft - The first date to compare +* @param dateRight - The second date to compare +* +* @returns The dates are equal +* +* @example +* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? +* const result = isEqual( +* new Date(2014, 6, 2, 6, 30, 45, 0), +* new Date(2014, 6, 2, 6, 30, 45, 500) +* ) +* //=> false +*/ +function isEqual$1(leftDate, rightDate) { + return +toDate$1(leftDate) === +toDate$1(rightDate); +} +//#endregion +//#region dist/date-fns/fp/isEqual.js +var _isEqual = convertToFP(isEqual$1, 2); +//#endregion +//#region dist/date-fns/isExists.js +/** +* @name isExists +* @category Common Helpers +* @summary Is the given date exists? +* +* @description +* Checks if the given arguments convert to an existing date. +* +* @param year - The year of the date to check +* @param month - The month of the date to check +* @param day - The day of the date to check +* +* @returns `true` if the date exists +* +* @example +* // For the valid date: +* const result = isExists(2018, 0, 31) +* //=> true +* +* @example +* // For the invalid date: +* const result = isExists(2018, 1, 31) +* //=> false +*/ +function isExists$1(year, month, day) { + var date = new Date(year, month, day); + return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; +} +//#endregion +//#region dist/date-fns/fp/isExists.js +var _isExists = convertToFP(isExists$1, 3); +//#endregion +//#region dist/date-fns/isFirstDayOfMonth.js +/** +* The {@link isFirstDayOfMonth} function options. +*/ +/** +* @name isFirstDayOfMonth +* @category Month Helpers +* @summary Is the given date the first day of a month? +* +* @description +* Is the given date the first day of a month? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is the first day of a month +* +* @example +* // Is 1 September 2014 the first day of a month? +* const result = isFirstDayOfMonth(new Date(2014, 8, 1)) +* //=> true +*/ +function isFirstDayOfMonth$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDate() === 1; +} +//#endregion +//#region dist/date-fns/fp/isFirstDayOfMonth.js +var _isFirstDayOfMonth = convertToFP(isFirstDayOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/isFirstDayOfMonthWithOptions.js +var _isFirstDayOfMonthWithOptions = convertToFP(isFirstDayOfMonth$1, 2); +//#endregion +//#region dist/date-fns/isFriday.js +/** +* The {@link isFriday} function options. +*/ +/** +* @name isFriday +* @category Weekday Helpers +* @summary Is the given date Friday? +* +* @description +* Is the given date Friday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Friday +* +* @example +* // Is 26 September 2014 Friday? +* const result = isFriday(new Date(2014, 8, 26)) +* //=> true +*/ +function isFriday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 5; +} +//#endregion +//#region dist/date-fns/fp/isFriday.js +var _isFriday = convertToFP(isFriday$1, 1); +//#endregion +//#region dist/date-fns/fp/isFridayWithOptions.js +var _isFridayWithOptions = convertToFP(isFriday$1, 2); +//#endregion +//#region dist/date-fns/fp/isLastDayOfMonth.js +var _isLastDayOfMonth = convertToFP(isLastDayOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/isLastDayOfMonthWithOptions.js +var _isLastDayOfMonthWithOptions = convertToFP(isLastDayOfMonth$1, 2); +//#endregion +//#region dist/date-fns/fp/isLeapYear.js +var _isLeapYear = convertToFP(isLeapYear$1, 1); +//#endregion +//#region dist/date-fns/fp/isLeapYearWithOptions.js +var _isLeapYearWithOptions = convertToFP(isLeapYear$1, 2); +//#endregion +//#region dist/date-fns/getDefaultOptions.js +/** +* @name getDefaultOptions +* @category Common Helpers +* @summary Get default options. +* @pure false +* +* @description +* Returns an object that contains defaults for +* `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` +* arguments for all functions. +* +* You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). +* +* @returns The default options +* +* @example +* const result = getDefaultOptions() +* //=> {} +* +* @example +* setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) +* const result = getDefaultOptions() +* //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } +*/ +function getDefaultOptions() { + return Object.assign({}, getDefaultOptions$1()); +} +//#endregion +//#region dist/date-fns/transpose.js +/** +* @name transpose +* @category Generic Helpers +* @summary Transpose the date to the given constructor. +* +* @description +* The function transposes the date to the given constructor. It helps you +* to transpose the date in the system time zone to say `UTCDate` or any other +* date extension. +* +* @typeParam InputDate - The input `Date` type derived from the passed argument. +* @typeParam ResultDate - The result `Date` type derived from the passed constructor. +* +* @param date - The date to use values from +* @param constructor - The date constructor to use +* +* @returns Date transposed to the given constructor +* +* @example +* // Create July 10, 2022 00:00 in locale time zone +* const date = new Date(2022, 6, 10) +* //=> 'Sun Jul 10 2022 00:00:00 GMT+0800 (Singapore Standard Time)' +* +* @example +* // Transpose the date to July 10, 2022 00:00 in UTC +* transpose(date, UTCDate) +* //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)' +*/ +function transpose$1(date, constructor) { + var date_ = isConstructor(constructor) ? new constructor(0) : constructFrom$1(constructor, 0); + date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate()); + date_.setHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); + return date_; +} +function isConstructor(constructor) {var _constructor$prototyp; + return typeof constructor === "function" && ((_constructor$prototyp = constructor.prototype) === null || _constructor$prototyp === void 0 ? void 0 : _constructor$prototyp.constructor) === constructor; +} +//#endregion +//#region dist/date-fns/parse/_lib/Setter.js +var TIMEZONE_UNIT_PRIORITY = 10; +var Setter = /*#__PURE__*/function () {function Setter() {_classCallCheck(this, Setter);_defineProperty(this, "subPriority", + 0);}return _createClass(Setter, [{ key: "validate", value: + function validate(_utcDate, _options) { + return true; + } }]);}(); + +var ValueSetter = /*#__PURE__*/function (_Setter) { + function ValueSetter(value, validateValue, setValue, priority, subPriority) {var _this;_classCallCheck(this, ValueSetter); + _this = _callSuper(this, ValueSetter); + _this.value = value; + _this.validateValue = validateValue; + _this.setValue = setValue; + _this.priority = priority; + if (subPriority) _this.subPriority = subPriority;return _this; + }_inherits(ValueSetter, _Setter);return _createClass(ValueSetter, [{ key: "validate", value: + function validate(date, options) { + return this.validateValue(date, this.value, options); + } }, { key: "set", value: + function set(date, flags, options) { + return this.setValue(date, flags, this.value, options); + } }]);}(Setter); + +var DateTimezoneSetter = /*#__PURE__*/function (_Setter2) { + + + function DateTimezoneSetter(context, reference) {var _this2;_classCallCheck(this, DateTimezoneSetter); + _this2 = _callSuper(this, DateTimezoneSetter);_defineProperty(_this2, "priority", TIMEZONE_UNIT_PRIORITY);_defineProperty(_this2, "subPriority", -1); + _this2.context = context || function (date) {return constructFrom$1(reference, date);};return _this2; + }_inherits(DateTimezoneSetter, _Setter2);return _createClass(DateTimezoneSetter, [{ key: "set", value: + function set(date, flags) { + if (flags.timestampIsSet) return date; + return constructFrom$1(date, transpose$1(date, this.context)); + } }]);}(Setter); + +//#endregion +//#region dist/date-fns/parse/_lib/Parser.js +var Parser = /*#__PURE__*/function () {function Parser() {_classCallCheck(this, Parser);}return _createClass(Parser, [{ key: "run", value: + function run(dateString, token, match, options) { + var result = this.parse(dateString, token, match, options); + if (!result) return null; + return { + setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), + rest: result.rest + }; + } }, { key: "validate", value: + function validate(_utcDate, _value, _options) { + return true; + } }]);}(); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/EraParser.js +var EraParser = /*#__PURE__*/function (_Parser) {function EraParser() {var _this3;_classCallCheck(this, EraParser);for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {args[_key3] = arguments[_key3];}_this3 = _callSuper(this, EraParser, [].concat(args));_defineProperty(_this3, "priority", + 140);_defineProperty(_this3, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "R", + "u", + "t", + "T"]);return _this3;}_inherits(EraParser, _Parser);return _createClass(EraParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "G":case "GG":case "GGG":return match.era(dateString, { width: "abbreviated" }) || match.era(dateString, { width: "narrow" });case "GGGGG":return match.era(dateString, { width: "narrow" });default:return match.era(dateString, { width: "wide" }) || match.era(dateString, { width: "abbreviated" }) || match.era(dateString, { width: "narrow" });}} }, { key: "set", value: function set(date, flags, value) {flags.era = value;date.setFullYear(value, 0, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/constants.js +var numericPatterns = { + month: /^(1[0-2]|0?\d)/, + date: /^(3[0-1]|[0-2]?\d)/, + dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, + week: /^(5[0-3]|[0-4]?\d)/, + hour23h: /^(2[0-3]|[0-1]?\d)/, + hour24h: /^(2[0-4]|[0-1]?\d)/, + hour11h: /^(1[0-1]|0?\d)/, + hour12h: /^(1[0-2]|0?\d)/, + minute: /^[0-5]?\d/, + second: /^[0-5]?\d/, + singleDigit: /^\d/, + twoDigits: /^\d{1,2}/, + threeDigits: /^\d{1,3}/, + fourDigits: /^\d{1,4}/, + anyDigitsSigned: /^-?\d+/, + singleDigitSigned: /^-?\d/, + twoDigitsSigned: /^-?\d{1,2}/, + threeDigitsSigned: /^-?\d{1,3}/, + fourDigitsSigned: /^-?\d{1,4}/ +}; +var timezonePatterns = { + basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, + basic: /^([+-])(\d{2})(\d{2})|Z/, + basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, + extended: /^([+-])(\d{2}):(\d{2})|Z/, + extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ +}; +//#endregion +//#region dist/date-fns/parse/_lib/utils.js +function mapValue(parseFnResult, mapFn) { + if (!parseFnResult) return parseFnResult; + return { + value: mapFn(parseFnResult.value), + rest: parseFnResult.rest + }; +} +function parseNumericPattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + if (!matchResult) return null; + return { + value: parseInt(matchResult[0], 10), + rest: dateString.slice(matchResult[0].length) + }; +} +function parseTimezonePattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + if (!matchResult) return null; + if (matchResult[0] === "Z") return { + value: 0, + rest: dateString.slice(1) + }; + var sign = matchResult[1] === "+" ? 1 : -1; + var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; + var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; + var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; + return { + value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond), + rest: dateString.slice(matchResult[0].length) + }; +} +function parseAnyDigitsSigned(dateString) { + return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString); +} +function parseNDigits(n, dateString) { + switch (n) { + case 1:return parseNumericPattern(numericPatterns.singleDigit, dateString); + case 2:return parseNumericPattern(numericPatterns.twoDigits, dateString); + case 3:return parseNumericPattern(numericPatterns.threeDigits, dateString); + case 4:return parseNumericPattern(numericPatterns.fourDigits, dateString); + default:return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString); + } +} +function parseNDigitsSigned(n, dateString) { + switch (n) { + case 1:return parseNumericPattern(numericPatterns.singleDigitSigned, dateString); + case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString); + case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString); + case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString); + default:return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString); + } +} +function dayPeriodEnumToHours(dayPeriod) { + switch (dayPeriod) { + case "morning":return 4; + case "evening":return 17; + case "pm": + case "noon": + case "afternoon":return 12; + default:return 0; + } +} +function normalizeTwoDigitYear(twoDigitYear, currentYear) { + var isCommonEra = currentYear > 0; + var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; + var result; + if (absCurrentYear <= 50) result = twoDigitYear || 100;else + { + var rangeEnd = absCurrentYear + 50; + var rangeEndCentury = Math.trunc(rangeEnd / 100) * 100; + var isPreviousCentury = twoDigitYear >= rangeEnd % 100; + result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); + } + return isCommonEra ? result : 1 - result; +} +function isLeapYearIndex$1(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/YearParser.js +var YearParser = /*#__PURE__*/function (_Parser2) {function YearParser() {var _this4;_classCallCheck(this, YearParser);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}_this4 = _callSuper(this, YearParser, [].concat(args));_defineProperty(_this4, "priority", + 130);_defineProperty(_this4, "incompatibleTokens", + [ + "Y", + "R", + "u", + "w", + "I", + "i", + "e", + "c", + "t", + "T"]);return _this4;}_inherits(YearParser, _Parser2);return _createClass(YearParser, [{ key: "parse", value: + + function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) {return { + year: year, + isTwoDigitYear: token === "yy" + };}; + switch (token) { + case "y":return mapValue(parseNDigits(4, dateString), valueCallback); + case "yo":return mapValue(match.ordinalNumber(dateString, { unit: "year" }), valueCallback); + default:return mapValue(parseNDigits(token.length, dateString), valueCallback); + } + } }, { key: "validate", value: + function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } }, { key: "set", value: + function set(date, flags, value) { + var currentYear = date.getFullYear(); + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); + date.setFullYear(normalizedTwoDigitYear, 0, 1); + date.setHours(0, 0, 0, 0); + return date; + } + var year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setFullYear(year, 0, 1); + date.setHours(0, 0, 0, 0); + return date; + } }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +var LocalWeekYearParser = /*#__PURE__*/function (_Parser3) {function LocalWeekYearParser() {var _this5;_classCallCheck(this, LocalWeekYearParser);for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}_this5 = _callSuper(this, LocalWeekYearParser, [].concat(args));_defineProperty(_this5, "priority", + 130);_defineProperty(_this5, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "Q", + "q", + "M", + "L", + "I", + "d", + "D", + "i", + "t", + "T"]);return _this5;}_inherits(LocalWeekYearParser, _Parser3);return _createClass(LocalWeekYearParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(year) {return { year: year, isTwoDigitYear: token === "YY" };};switch (token) {case "Y":return mapValue(parseNDigits(4, dateString), valueCallback);case "Yo":return mapValue(match.ordinalNumber(dateString, { unit: "year" }), valueCallback);default:return mapValue(parseNDigits(token.length, dateString), valueCallback);}} }, { key: "validate", value: function validate(_date, value) {return value.isTwoDigitYear || value.year > 0;} }, { key: "set", value: function set(date, flags, value, options) {var currentYear = getWeekYear$1(date, options);if (value.isTwoDigitYear) {var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);date.setFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);date.setHours(0, 0, 0, 0);return startOfWeek$1(date, options);}var year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;date.setFullYear(year, 0, options.firstWeekContainsDate);date.setHours(0, 0, 0, 0);return startOfWeek$1(date, options);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +var ISOWeekYearParser = /*#__PURE__*/function (_Parser4) {function ISOWeekYearParser() {var _this6;_classCallCheck(this, ISOWeekYearParser);for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}_this6 = _callSuper(this, ISOWeekYearParser, [].concat(args));_defineProperty(_this6, "priority", + 130);_defineProperty(_this6, "incompatibleTokens", + + + + + + + + + + + [ + "G", + "y", + "Y", + "u", + "Q", + "q", + "M", + "L", + "w", + "d", + "D", + "e", + "c", + "t", + "T"]);return _this6;}_inherits(ISOWeekYearParser, _Parser4);return _createClass(ISOWeekYearParser, [{ key: "parse", value: function parse(dateString, token) {if (token === "R") return parseNDigitsSigned(4, dateString);return parseNDigitsSigned(token.length, dateString);} }, { key: "set", value: function set(date, _flags, value) {var firstWeekOfYear = constructFrom$1(date, 0);firstWeekOfYear.setFullYear(value, 0, 4);firstWeekOfYear.setHours(0, 0, 0, 0);return startOfISOWeek$1(firstWeekOfYear);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ExtendedYearParser.js +var ExtendedYearParser = /*#__PURE__*/function (_Parser5) {function ExtendedYearParser() {var _this7;_classCallCheck(this, ExtendedYearParser);for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}_this7 = _callSuper(this, ExtendedYearParser, [].concat(args));_defineProperty(_this7, "priority", + 130);_defineProperty(_this7, "incompatibleTokens", + + + + + + + + + + [ + "G", + "y", + "Y", + "R", + "w", + "I", + "i", + "e", + "c", + "t", + "T"]);return _this7;}_inherits(ExtendedYearParser, _Parser5);return _createClass(ExtendedYearParser, [{ key: "parse", value: function parse(dateString, token) {if (token === "u") return parseNDigitsSigned(4, dateString);return parseNDigitsSigned(token.length, dateString);} }, { key: "set", value: function set(date, _flags, value) {date.setFullYear(value, 0, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/QuarterParser.js +var QuarterParser = /*#__PURE__*/function (_Parser6) {function QuarterParser() {var _this8;_classCallCheck(this, QuarterParser);for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}_this8 = _callSuper(this, QuarterParser, [].concat(args));_defineProperty(_this8, "priority", + 120);_defineProperty(_this8, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "M", + "L", + "w", + "I", + "d", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this8;}_inherits(QuarterParser, _Parser6);return _createClass(QuarterParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "Q":case "QQ":return parseNDigits(token.length, dateString);case "Qo":return match.ordinalNumber(dateString, { unit: "quarter" });case "QQQ":return match.quarter(dateString, { width: "abbreviated", context: "formatting" }) || match.quarter(dateString, { width: "narrow", context: "formatting" });case "QQQQQ":return match.quarter(dateString, { width: "narrow", context: "formatting" });default:return match.quarter(dateString, { width: "wide", context: "formatting" }) || match.quarter(dateString, { width: "abbreviated", context: "formatting" }) || match.quarter(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 4;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth((value - 1) * 3, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +var StandAloneQuarterParser = /*#__PURE__*/function (_Parser7) {function StandAloneQuarterParser() {var _this9;_classCallCheck(this, StandAloneQuarterParser);for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {args[_key9] = arguments[_key9];}_this9 = _callSuper(this, StandAloneQuarterParser, [].concat(args));_defineProperty(_this9, "priority", + 120);_defineProperty(_this9, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "Q", + "M", + "L", + "w", + "I", + "d", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this9;}_inherits(StandAloneQuarterParser, _Parser7);return _createClass(StandAloneQuarterParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "q":case "qq":return parseNDigits(token.length, dateString);case "qo":return match.ordinalNumber(dateString, { unit: "quarter" });case "qqq":return match.quarter(dateString, { width: "abbreviated", context: "standalone" }) || match.quarter(dateString, { width: "narrow", context: "standalone" });case "qqqqq":return match.quarter(dateString, { width: "narrow", context: "standalone" });default:return match.quarter(dateString, { width: "wide", context: "standalone" }) || match.quarter(dateString, { width: "abbreviated", context: "standalone" }) || match.quarter(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 4;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth((value - 1) * 3, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/MonthParser.js +var MonthParser = /*#__PURE__*/function (_Parser8) {function MonthParser() {var _this0;_classCallCheck(this, MonthParser);for (var _len0 = arguments.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {args[_key0] = arguments[_key0];}_this0 = _callSuper(this, MonthParser, [].concat(args));_defineProperty(_this0, "incompatibleTokens", + [ + "Y", + "R", + "q", + "Q", + "L", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);_defineProperty(_this0, "priority", + + 110);return _this0;}_inherits(MonthParser, _Parser8);return _createClass(MonthParser, [{ key: "parse", value: + function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) {return value - 1;}; + switch (token) { + case "M":return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback); + case "MM":return mapValue(parseNDigits(2, dateString), valueCallback); + case "Mo":return mapValue(match.ordinalNumber(dateString, { unit: "month" }), valueCallback); + case "MMM":return match.month(dateString, { + width: "abbreviated", + context: "formatting" + }) || match.month(dateString, { + width: "narrow", + context: "formatting" + }); + case "MMMMM":return match.month(dateString, { + width: "narrow", + context: "formatting" + }); + default:return match.month(dateString, { + width: "wide", + context: "formatting" + }) || match.month(dateString, { + width: "abbreviated", + context: "formatting" + }) || match.month(dateString, { + width: "narrow", + context: "formatting" + }); + } + } }, { key: "validate", value: + function validate(_date, value) { + return value >= 0 && value <= 11; + } }, { key: "set", value: + function set(date, _flags, value) { + date.setMonth(value, 1); + date.setHours(0, 0, 0, 0); + return date; + } }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +var StandAloneMonthParser = /*#__PURE__*/function (_Parser9) {function StandAloneMonthParser() {var _this1;_classCallCheck(this, StandAloneMonthParser);for (var _len1 = arguments.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {args[_key1] = arguments[_key1];}_this1 = _callSuper(this, StandAloneMonthParser, [].concat(args));_defineProperty(_this1, "priority", + 110);_defineProperty(_this1, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "M", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this1;}_inherits(StandAloneMonthParser, _Parser9);return _createClass(StandAloneMonthParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(value) {return value - 1;};switch (token) {case "L":return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback);case "LL":return mapValue(parseNDigits(2, dateString), valueCallback);case "Lo":return mapValue(match.ordinalNumber(dateString, { unit: "month" }), valueCallback);case "LLL":return match.month(dateString, { width: "abbreviated", context: "standalone" }) || match.month(dateString, { width: "narrow", context: "standalone" });case "LLLLL":return match.month(dateString, { width: "narrow", context: "standalone" });default:return match.month(dateString, { width: "wide", context: "standalone" }) || match.month(dateString, { width: "abbreviated", context: "standalone" }) || match.month(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 11;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth(value, 1);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setWeek.js +/** +* The {@link setWeek} function options. +*/ +/** +* @name setWeek +* @category Week Helpers +* @summary Set the local week to the given date. +* +* @description +* Set the local week to the given date, saving the weekday number. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param week - The week of the new date +* @param options - An object with options +* +* @returns The new date with the local week set +* +* @example +* // Set the 1st week to 2 January 2005 with default options: +* const result = setWeek(new Date(2005, 0, 2), 1) +* //=> Sun Dec 26 2004 00:00:00 +* +* @example +* // Set the 1st week to 2 January 2005, +* // if Monday is the first day of the week, +* // and the first week of the year always contains 4 January: +* const result = setWeek(new Date(2005, 0, 2), 1, { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Sun Jan 4 2004 00:00:00 +*/ +function setWeek$1(date, week, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = getWeek$1(date_, options) - week; + date_.setDate(date_.getDate() - diff * 7); + return toDate$1(date_, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalWeekParser.js +var LocalWeekParser = /*#__PURE__*/function (_Parser0) {function LocalWeekParser() {var _this10;_classCallCheck(this, LocalWeekParser);for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {args[_key10] = arguments[_key10];}_this10 = _callSuper(this, LocalWeekParser, [].concat(args));_defineProperty(_this10, "priority", + 100);_defineProperty(_this10, "incompatibleTokens", + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "i", + "t", + "T"]);return _this10;}_inherits(LocalWeekParser, _Parser0);return _createClass(LocalWeekParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "w":return parseNumericPattern(numericPatterns.week, dateString);case "wo":return match.ordinalNumber(dateString, { unit: "week" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 53;} }, { key: "set", value: function set(date, _flags, value, options) {return startOfWeek$1(setWeek$1(date, value, options), options);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setISOWeek.js +/** +* The {@link setISOWeek} function options. +*/ +/** +* @name setISOWeek +* @category ISO Week Helpers +* @summary Set the ISO week to the given date. +* +* @description +* Set the ISO week to the given date, saving the weekday number. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The `Date` type of the context function. +* +* @param date - The date to be changed +* @param week - The ISO week of the new date +* @param options - An object with options +* +* @returns The new date with the ISO week set +* +* @example +* // Set the 53rd ISO week to 7 August 2004: +* const result = setISOWeek(new Date(2004, 7, 7), 53) +* //=> Sat Jan 01 2005 00:00:00 +*/ +function setISOWeek$1(date, week, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = getISOWeek$1(_date, options) - week; + _date.setDate(_date.getDate() - diff * 7); + return _date; +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOWeekParser.js +var ISOWeekParser = /*#__PURE__*/function (_Parser1) {function ISOWeekParser() {var _this11;_classCallCheck(this, ISOWeekParser);for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {args[_key11] = arguments[_key11];}_this11 = _callSuper(this, ISOWeekParser, [].concat(args));_defineProperty(_this11, "priority", + 100);_defineProperty(_this11, "incompatibleTokens", + + + + + + + + + + + + + + [ + "y", + "Y", + "u", + "q", + "Q", + "M", + "L", + "w", + "d", + "D", + "e", + "c", + "t", + "T"]);return _this11;}_inherits(ISOWeekParser, _Parser1);return _createClass(ISOWeekParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "I":return parseNumericPattern(numericPatterns.week, dateString);case "Io":return match.ordinalNumber(dateString, { unit: "week" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 53;} }, { key: "set", value: function set(date, _flags, value) {return startOfISOWeek$1(setISOWeek$1(date, value));} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DateParser.js +var DAYS_IN_MONTH = [ +31, +28, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +var DAYS_IN_MONTH_LEAP_YEAR = [ +31, +29, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +var DateParser = /*#__PURE__*/function (_Parser10) {function DateParser() {var _this12;_classCallCheck(this, DateParser);for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {args[_key12] = arguments[_key12];}_this12 = _callSuper(this, DateParser, [].concat(args));_defineProperty(_this12, "priority", + 90);_defineProperty(_this12, "subPriority", + 1);_defineProperty(_this12, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "w", + "I", + "D", + "i", + "e", + "c", + "t", + "T"]);return _this12;}_inherits(DateParser, _Parser10);return _createClass(DateParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "d":return parseNumericPattern(numericPatterns.date, dateString);case "do":return match.ordinalNumber(dateString, { unit: "date" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(date, value) {var isLeapYear = isLeapYearIndex$1(date.getFullYear());var month = date.getMonth();if (isLeapYear) return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];else return value >= 1 && value <= DAYS_IN_MONTH[month];} }, { key: "set", value: function set(date, _flags, value) {date.setDate(value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayOfYearParser.js +var DayOfYearParser = /*#__PURE__*/function (_Parser11) {function DayOfYearParser() {var _this13;_classCallCheck(this, DayOfYearParser);for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {args[_key13] = arguments[_key13];}_this13 = _callSuper(this, DayOfYearParser, [].concat(args));_defineProperty(_this13, "priority", + 90);_defineProperty(_this13, "subpriority", + 1);_defineProperty(_this13, "incompatibleTokens", + + + + + + + + + + + + + + + + + + [ + "Y", + "R", + "q", + "Q", + "M", + "L", + "w", + "I", + "d", + "E", + "i", + "e", + "c", + "t", + "T"]);return _this13;}_inherits(DayOfYearParser, _Parser11);return _createClass(DayOfYearParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "D":case "DD":return parseNumericPattern(numericPatterns.dayOfYear, dateString);case "Do":return match.ordinalNumber(dateString, { unit: "date" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(date, value) {if (isLeapYearIndex$1(date.getFullYear())) return value >= 1 && value <= 366;else return value >= 1 && value <= 365;} }, { key: "set", value: function set(date, _flags, value) {date.setMonth(0, value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setDay.js +/** +* The {@link setDay} function options. +*/ +/** +* @name setDay +* @category Weekday Helpers +* @summary Set the day of the week to the given date. +* +* @description +* Set the day of the week to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param day - The day of the week of the new date +* @param options - An object with options. +* +* @returns The new date with the day of the week set +* +* @example +* // Set week day to Sunday, with the default weekStartsOn of Sunday: +* const result = setDay(new Date(2014, 8, 1), 0) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // Set week day to Sunday, with a weekStartsOn of Monday: +* const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function setDay$1(date, day, options) {var _ref28, _ref29, _ref30, _options$weekStartsOn6, _options$locale12, _defaultOptions$local9; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref28 = (_ref29 = (_ref30 = (_options$weekStartsOn6 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn6 !== void 0 ? _options$weekStartsOn6 : options === null || options === void 0 || (_options$locale12 = options.locale) === null || _options$locale12 === void 0 || (_options$locale12 = _options$locale12.options) === null || _options$locale12 === void 0 ? void 0 : _options$locale12.weekStartsOn) !== null && _ref30 !== void 0 ? _ref30 : defaultOptions.weekStartsOn) !== null && _ref29 !== void 0 ? _ref29 : (_defaultOptions$local9 = defaultOptions.locale) === null || _defaultOptions$local9 === void 0 || (_defaultOptions$local9 = _defaultOptions$local9.options) === null || _defaultOptions$local9 === void 0 ? void 0 : _defaultOptions$local9.weekStartsOn) !== null && _ref28 !== void 0 ? _ref28 : 0; + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var currentDay = date_.getDay(); + var dayIndex = (day % 7 + 7) % 7; + var delta = 7 - weekStartsOn; + return addDays$1(date_, day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7, options); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayParser.js +var DayParser = /*#__PURE__*/function (_Parser12) {function DayParser() {var _this14;_classCallCheck(this, DayParser);for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {args[_key14] = arguments[_key14];}_this14 = _callSuper(this, DayParser, [].concat(args));_defineProperty(_this14, "priority", + 90);_defineProperty(_this14, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "D", + "i", + "e", + "c", + "t", + "T"]);return _this14;}_inherits(DayParser, _Parser12);return _createClass(DayParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "E":case "EE":case "EEE":return match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });case "EEEEE":return match.day(dateString, { width: "narrow", context: "formatting" });case "EEEEEE":return match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });default:return match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = setDay$1(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/LocalDayParser.js +var LocalDayParser = /*#__PURE__*/function (_Parser13) {function LocalDayParser() {var _this15;_classCallCheck(this, LocalDayParser);for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {args[_key15] = arguments[_key15];}_this15 = _callSuper(this, LocalDayParser, [].concat(args));_defineProperty(_this15, "priority", + 90);_defineProperty(_this15, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "E", + "i", + "c", + "t", + "T"]);return _this15;}_inherits(LocalDayParser, _Parser13);return _createClass(LocalDayParser, [{ key: "parse", value: function parse(dateString, token, match, options) {var valueCallback = function valueCallback(value) {var wholeWeekDays = Math.floor((value - 1) / 7) * 7;return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;};switch (token) {case "e":case "ee":return mapValue(parseNDigits(token.length, dateString), valueCallback);case "eo":return mapValue(match.ordinalNumber(dateString, { unit: "day" }), valueCallback);case "eee":return match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });case "eeeee":return match.day(dateString, { width: "narrow", context: "formatting" });case "eeeeee":return match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });default:return match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = setDay$1(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser14) {function StandAloneLocalDayParser() {var _this16;_classCallCheck(this, StandAloneLocalDayParser);for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {args[_key16] = arguments[_key16];}_this16 = _callSuper(this, StandAloneLocalDayParser, [].concat(args));_defineProperty(_this16, "priority", + 90);_defineProperty(_this16, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "R", + "u", + "q", + "Q", + "M", + "L", + "I", + "d", + "D", + "E", + "i", + "e", + "t", + "T"]);return _this16;}_inherits(StandAloneLocalDayParser, _Parser14);return _createClass(StandAloneLocalDayParser, [{ key: "parse", value: function parse(dateString, token, match, options) {var valueCallback = function valueCallback(value) {var wholeWeekDays = Math.floor((value - 1) / 7) * 7;return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;};switch (token) {case "c":case "cc":return mapValue(parseNDigits(token.length, dateString), valueCallback);case "co":return mapValue(match.ordinalNumber(dateString, { unit: "day" }), valueCallback);case "ccc":return match.day(dateString, { width: "abbreviated", context: "standalone" }) || match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });case "ccccc":return match.day(dateString, { width: "narrow", context: "standalone" });case "cccccc":return match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });default:return match.day(dateString, { width: "wide", context: "standalone" }) || match.day(dateString, { width: "abbreviated", context: "standalone" }) || match.day(dateString, { width: "short", context: "standalone" }) || match.day(dateString, { width: "narrow", context: "standalone" });}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 6;} }, { key: "set", value: function set(date, _flags, value, options) {date = setDay$1(date, value, options);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/setISODay.js +/** +* The {@link setISODay} function options. +*/ +/** +* @name setISODay +* @category Weekday Helpers +* @summary Set the day of the ISO week to the given date. +* +* @description +* Set the day of the ISO week to the given date. +* ISO week starts with Monday. +* 7 is the index of Sunday, 1 is the index of Monday, etc. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param day - The day of the ISO week of the new date +* @param options - An object with options +* +* @returns The new date with the day of the ISO week set +* +* @example +* // Set Sunday to 1 September 2014: +* const result = setISODay(new Date(2014, 8, 1), 7) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function setISODay$1(date, day, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + return addDays$1(date_, day - getISODay$1(date_, options), options); +} +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISODayParser.js +var ISODayParser = /*#__PURE__*/function (_Parser15) {function ISODayParser() {var _this17;_classCallCheck(this, ISODayParser);for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {args[_key17] = arguments[_key17];}_this17 = _callSuper(this, ISODayParser, [].concat(args));_defineProperty(_this17, "priority", + 90);_defineProperty(_this17, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "y", + "Y", + "u", + "q", + "Q", + "M", + "L", + "w", + "d", + "D", + "E", + "e", + "c", + "t", + "T"]);return _this17;}_inherits(ISODayParser, _Parser15);return _createClass(ISODayParser, [{ key: "parse", value: function parse(dateString, token, match) {var valueCallback = function valueCallback(value) {if (value === 0) return 7;return value;};switch (token) {case "i":case "ii":return parseNDigits(token.length, dateString);case "io":return match.ordinalNumber(dateString, { unit: "day" });case "iii":return mapValue(match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);case "iiiii":return mapValue(match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);case "iiiiii":return mapValue(match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);default:return mapValue(match.day(dateString, { width: "wide", context: "formatting" }) || match.day(dateString, { width: "abbreviated", context: "formatting" }) || match.day(dateString, { width: "short", context: "formatting" }) || match.day(dateString, { width: "narrow", context: "formatting" }), valueCallback);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 7;} }, { key: "set", value: function set(date, _flags, value) {date = setISODay$1(date, value);date.setHours(0, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/AMPMParser.js +var AMPMParser = /*#__PURE__*/function (_Parser16) {function AMPMParser() {var _this18;_classCallCheck(this, AMPMParser);for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {args[_key18] = arguments[_key18];}_this18 = _callSuper(this, AMPMParser, [].concat(args));_defineProperty(_this18, "priority", + 80);_defineProperty(_this18, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "b", + "B", + "H", + "k", + "t", + "T"]);return _this18;}_inherits(AMPMParser, _Parser16);return _createClass(AMPMParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "a":case "aa":case "aaa":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "aaaaa":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +var AMPMMidnightParser = /*#__PURE__*/function (_Parser17) {function AMPMMidnightParser() {var _this19;_classCallCheck(this, AMPMMidnightParser);for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {args[_key19] = arguments[_key19];}_this19 = _callSuper(this, AMPMMidnightParser, [].concat(args));_defineProperty(_this19, "priority", + 80);_defineProperty(_this19, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "a", + "B", + "H", + "k", + "t", + "T"]);return _this19;}_inherits(AMPMMidnightParser, _Parser17);return _createClass(AMPMMidnightParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "b":case "bb":case "bbb":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "bbbbb":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/DayPeriodParser.js +var DayPeriodParser = /*#__PURE__*/function (_Parser18) {function DayPeriodParser() {var _this20;_classCallCheck(this, DayPeriodParser);for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {args[_key20] = arguments[_key20];}_this20 = _callSuper(this, DayPeriodParser, [].concat(args));_defineProperty(_this20, "priority", + 80);_defineProperty(_this20, "incompatibleTokens", + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + "a", + "b", + "t", + "T"]);return _this20;}_inherits(DayPeriodParser, _Parser18);return _createClass(DayPeriodParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "B":case "BB":case "BBB":return match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });case "BBBBB":return match.dayPeriod(dateString, { width: "narrow", context: "formatting" });default:return match.dayPeriod(dateString, { width: "wide", context: "formatting" }) || match.dayPeriod(dateString, { width: "abbreviated", context: "formatting" }) || match.dayPeriod(dateString, { width: "narrow", context: "formatting" });}} }, { key: "set", value: function set(date, _flags, value) {date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour1to12Parser.js +var Hour1to12Parser = /*#__PURE__*/function (_Parser19) {function Hour1to12Parser() {var _this21;_classCallCheck(this, Hour1to12Parser);for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {args[_key21] = arguments[_key21];}_this21 = _callSuper(this, Hour1to12Parser, [].concat(args));_defineProperty(_this21, "priority", + 70);_defineProperty(_this21, "incompatibleTokens", + + + + + + + + + + + + + + + + + + [ + "H", + "K", + "k", + "t", + "T"]);return _this21;}_inherits(Hour1to12Parser, _Parser19);return _createClass(Hour1to12Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "h":return parseNumericPattern(numericPatterns.hour12h, dateString);case "ho":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 12;} }, { key: "set", value: function set(date, _flags, value) {var isPM = date.getHours() >= 12;if (isPM && value < 12) date.setHours(value + 12, 0, 0, 0);else if (!isPM && value === 12) date.setHours(0, 0, 0, 0);else date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour0to23Parser.js +var Hour0to23Parser = /*#__PURE__*/function (_Parser20) {function Hour0to23Parser() {var _this22;_classCallCheck(this, Hour0to23Parser);for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {args[_key22] = arguments[_key22];}_this22 = _callSuper(this, Hour0to23Parser, [].concat(args));_defineProperty(_this22, "priority", + 70);_defineProperty(_this22, "incompatibleTokens", + + + + + + + + + + + + + + + [ + "a", + "b", + "h", + "K", + "k", + "t", + "T"]);return _this22;}_inherits(Hour0to23Parser, _Parser20);return _createClass(Hour0to23Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "H":return parseNumericPattern(numericPatterns.hour23h, dateString);case "Ho":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 23;} }, { key: "set", value: function set(date, _flags, value) {date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour0To11Parser.js +var Hour0To11Parser = /*#__PURE__*/function (_Parser21) {function Hour0To11Parser() {var _this23;_classCallCheck(this, Hour0To11Parser);for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {args[_key23] = arguments[_key23];}_this23 = _callSuper(this, Hour0To11Parser, [].concat(args));_defineProperty(_this23, "priority", + 70);_defineProperty(_this23, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "h", + "H", + "k", + "t", + "T"]);return _this23;}_inherits(Hour0To11Parser, _Parser21);return _createClass(Hour0To11Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "K":return parseNumericPattern(numericPatterns.hour11h, dateString);case "Ko":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 11;} }, { key: "set", value: function set(date, _flags, value) {if (date.getHours() >= 12 && value < 12) date.setHours(value + 12, 0, 0, 0);else date.setHours(value, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/Hour1To24Parser.js +var Hour1To24Parser = /*#__PURE__*/function (_Parser22) {function Hour1To24Parser() {var _this24;_classCallCheck(this, Hour1To24Parser);for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {args[_key24] = arguments[_key24];}_this24 = _callSuper(this, Hour1To24Parser, [].concat(args));_defineProperty(_this24, "priority", + 70);_defineProperty(_this24, "incompatibleTokens", + + + + + + + + + + + + + + + + [ + "a", + "b", + "h", + "H", + "K", + "t", + "T"]);return _this24;}_inherits(Hour1To24Parser, _Parser22);return _createClass(Hour1To24Parser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "k":return parseNumericPattern(numericPatterns.hour24h, dateString);case "ko":return match.ordinalNumber(dateString, { unit: "hour" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 1 && value <= 24;} }, { key: "set", value: function set(date, _flags, value) {var hours = value <= 24 ? value % 24 : value;date.setHours(hours, 0, 0, 0);return date;} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/MinuteParser.js +var MinuteParser = /*#__PURE__*/function (_Parser23) {function MinuteParser() {var _this25;_classCallCheck(this, MinuteParser);for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {args[_key25] = arguments[_key25];}_this25 = _callSuper(this, MinuteParser, [].concat(args));_defineProperty(_this25, "priority", + 60);_defineProperty(_this25, "incompatibleTokens", + + + + + + + + + + + + + + + ["t", "T"]);return _this25;}_inherits(MinuteParser, _Parser23);return _createClass(MinuteParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "m":return parseNumericPattern(numericPatterns.minute, dateString);case "mo":return match.ordinalNumber(dateString, { unit: "minute" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 59;} }, { key: "set", value: function set(date, _flags, value) {date.setMinutes(value, 0, 0);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/SecondParser.js +var SecondParser = /*#__PURE__*/function (_Parser24) {function SecondParser() {var _this26;_classCallCheck(this, SecondParser);for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {args[_key26] = arguments[_key26];}_this26 = _callSuper(this, SecondParser, [].concat(args));_defineProperty(_this26, "priority", + 50);_defineProperty(_this26, "incompatibleTokens", + + + + + + + + + + + + + + + ["t", "T"]);return _this26;}_inherits(SecondParser, _Parser24);return _createClass(SecondParser, [{ key: "parse", value: function parse(dateString, token, match) {switch (token) {case "s":return parseNumericPattern(numericPatterns.second, dateString);case "so":return match.ordinalNumber(dateString, { unit: "second" });default:return parseNDigits(token.length, dateString);}} }, { key: "validate", value: function validate(_date, value) {return value >= 0 && value <= 59;} }, { key: "set", value: function set(date, _flags, value) {date.setSeconds(value, 0);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +var FractionOfSecondParser = /*#__PURE__*/function (_Parser25) {function FractionOfSecondParser() {var _this27;_classCallCheck(this, FractionOfSecondParser);for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {args[_key27] = arguments[_key27];}_this27 = _callSuper(this, FractionOfSecondParser, [].concat(args));_defineProperty(_this27, "priority", + 30);_defineProperty(_this27, "incompatibleTokens", + + + + + + + + + ["t", "T"]);return _this27;}_inherits(FractionOfSecondParser, _Parser25);return _createClass(FractionOfSecondParser, [{ key: "parse", value: function parse(dateString, token) {var valueCallback = function valueCallback(value) {return Math.trunc(value * Math.pow(10, -token.length + 3));};return mapValue(parseNDigits(token.length, dateString), valueCallback);} }, { key: "set", value: function set(date, _flags, value) {date.setMilliseconds(value);return date;} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser26) {function ISOTimezoneWithZParser() {var _this28;_classCallCheck(this, ISOTimezoneWithZParser);for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {args[_key28] = arguments[_key28];}_this28 = _callSuper(this, ISOTimezoneWithZParser, [].concat(args));_defineProperty(_this28, "priority", + 10);_defineProperty(_this28, "incompatibleTokens", + + + + + + + + + + + + + + [ + "t", + "T", + "x"]);return _this28;}_inherits(ISOTimezoneWithZParser, _Parser26);return _createClass(ISOTimezoneWithZParser, [{ key: "parse", value: function parse(dateString, token) {switch (token) {case "X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);case "XX":return parseTimezonePattern(timezonePatterns.basic, dateString);case "XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);case "XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);default:return parseTimezonePattern(timezonePatterns.extended, dateString);}} }, { key: "set", value: function set(date, flags, value) {if (flags.timestampIsSet) return date;return constructFrom$1(date, date.getTime() - getTimezoneOffsetInMilliseconds(date) - value);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +var ISOTimezoneParser = /*#__PURE__*/function (_Parser27) {function ISOTimezoneParser() {var _this29;_classCallCheck(this, ISOTimezoneParser);for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {args[_key29] = arguments[_key29];}_this29 = _callSuper(this, ISOTimezoneParser, [].concat(args));_defineProperty(_this29, "priority", + 10);_defineProperty(_this29, "incompatibleTokens", + + + + + + + + + + + + + + [ + "t", + "T", + "X"]);return _this29;}_inherits(ISOTimezoneParser, _Parser27);return _createClass(ISOTimezoneParser, [{ key: "parse", value: function parse(dateString, token) {switch (token) {case "x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString);case "xx":return parseTimezonePattern(timezonePatterns.basic, dateString);case "xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString);case "xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString);default:return parseTimezonePattern(timezonePatterns.extended, dateString);}} }, { key: "set", value: function set(date, flags, value) {if (flags.timestampIsSet) return date;return constructFrom$1(date, date.getTime() - getTimezoneOffsetInMilliseconds(date) - value);} }]);}(Parser); + + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +var TimestampSecondsParser = /*#__PURE__*/function (_Parser28) {function TimestampSecondsParser() {var _this30;_classCallCheck(this, TimestampSecondsParser);for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {args[_key30] = arguments[_key30];}_this30 = _callSuper(this, TimestampSecondsParser, [].concat(args));_defineProperty(_this30, "priority", + 40);_defineProperty(_this30, "incompatibleTokens", + + + + + + + "*");return _this30;}_inherits(TimestampSecondsParser, _Parser28);return _createClass(TimestampSecondsParser, [{ key: "parse", value: function parse(dateString) {return parseAnyDigitsSigned(dateString);} }, { key: "set", value: function set(date, _flags, value) {return [constructFrom$1(date, value * 1e3), { timestampIsSet: true }];} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser29) {function TimestampMillisecondsParser() {var _this31;_classCallCheck(this, TimestampMillisecondsParser);for (var _len31 = arguments.length, args = new Array(_len31), _key31 = 0; _key31 < _len31; _key31++) {args[_key31] = arguments[_key31];}_this31 = _callSuper(this, TimestampMillisecondsParser, [].concat(args));_defineProperty(_this31, "priority", + 20);_defineProperty(_this31, "incompatibleTokens", + + + + + + + "*");return _this31;}_inherits(TimestampMillisecondsParser, _Parser29);return _createClass(TimestampMillisecondsParser, [{ key: "parse", value: function parse(dateString) {return parseAnyDigitsSigned(dateString);} }, { key: "set", value: function set(date, _flags, value) {return [constructFrom$1(date, value), { timestampIsSet: true }];} }]);}(Parser); + +//#endregion +//#region dist/date-fns/parse/_lib/parsers.js +var parsers = { + G: new EraParser(), + y: new YearParser(), + Y: new LocalWeekYearParser(), + R: new ISOWeekYearParser(), + u: new ExtendedYearParser(), + Q: new QuarterParser(), + q: new StandAloneQuarterParser(), + M: new MonthParser(), + L: new StandAloneMonthParser(), + w: new LocalWeekParser(), + I: new ISOWeekParser(), + d: new DateParser(), + D: new DayOfYearParser(), + E: new DayParser(), + e: new LocalDayParser(), + c: new StandAloneLocalDayParser(), + i: new ISODayParser(), + a: new AMPMParser(), + b: new AMPMMidnightParser(), + B: new DayPeriodParser(), + h: new Hour1to12Parser(), + H: new Hour0to23Parser(), + K: new Hour0To11Parser(), + k: new Hour1To24Parser(), + m: new MinuteParser(), + s: new SecondParser(), + S: new FractionOfSecondParser(), + X: new ISOTimezoneWithZParser(), + x: new ISOTimezoneParser(), + t: new TimestampSecondsParser(), + T: new TimestampMillisecondsParser() +}; +//#endregion +//#region dist/date-fns/parse.js +/** +* The {@link parse} function options. +*/ +var formattingTokensRegExp$1 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp$1 = /^'([^]*?)'?$/; +var doubleQuoteRegExp$1 = /''/g; +var notWhitespaceRegExp = /\S/; +var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/; +/** +* @name parse +* @category Common Helpers +* @summary Parse the date. +* +* @description +* Return the date parsed from string using the given format string. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters in the format string wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the format string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 5 below the table). +* +* Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited +* and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: +* +* ```javascript +* parse('23 AM', 'HH a', new Date()) +* //=> RangeError: The format string mustn't contain `HH` and `a` at the same time +* ``` +* +* See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true +* +* Accepted format string patterns: +* | Unit |Prior| Pattern | Result examples | Notes | +* |---------------------------------|-----|---------|-----------------------------------|-------| +* | Era | 140 | G..GGG | AD, BC | | +* | | | GGGG | Anno Domini, Before Christ | 2 | +* | | | GGGGG | A, B | | +* | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | +* | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | yy | 44, 01, 00, 17 | 4 | +* | | | yyy | 044, 001, 123, 999 | 4 | +* | | | yyyy | 0044, 0001, 1900, 2017 | 4 | +* | | | yyyyy | ... | 2,4 | +* | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | +* | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | YY | 44, 01, 00, 17 | 4,6 | +* | | | YYY | 044, 001, 123, 999 | 4 | +* | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | +* | | | YYYYY | ... | 2,4 | +* | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | +* | | | RR | -43, 01, 00, 17 | 4,5 | +* | | | RRR | -043, 001, 123, 999, -999 | 4,5 | +* | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | +* | | | RRRRR | ... | 2,4,5 | +* | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | +* | | | uu | -43, 01, 99, -99 | 4 | +* | | | uuu | -043, 001, 123, 999, -999 | 4 | +* | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | +* | | | uuuuu | ... | 2,4 | +* | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | +* | | | Qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | QQ | 01, 02, 03, 04 | | +* | | | QQQ | Q1, Q2, Q3, Q4 | | +* | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | +* | | | qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | qq | 01, 02, 03, 04 | | +* | | | qqq | Q1, Q2, Q3, Q4 | | +* | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | | qqqqq | 1, 2, 3, 4 | 3 | +* | Month (formatting) | 110 | M | 1, 2, ..., 12 | | +* | | | Mo | 1st, 2nd, ..., 12th | 5 | +* | | | MM | 01, 02, ..., 12 | | +* | | | MMM | Jan, Feb, ..., Dec | | +* | | | MMMM | January, February, ..., December | 2 | +* | | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | +* | | | Lo | 1st, 2nd, ..., 12th | 5 | +* | | | LL | 01, 02, ..., 12 | | +* | | | LLL | Jan, Feb, ..., Dec | | +* | | | LLLL | January, February, ..., December | 2 | +* | | | LLLLL | J, F, ..., D | | +* | Local week of year | 100 | w | 1, 2, ..., 53 | | +* | | | wo | 1st, 2nd, ..., 53th | 5 | +* | | | ww | 01, 02, ..., 53 | | +* | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | +* | | | Io | 1st, 2nd, ..., 53th | 5 | +* | | | II | 01, 02, ..., 53 | 5 | +* | Day of month | 90 | d | 1, 2, ..., 31 | | +* | | | do | 1st, 2nd, ..., 31st | 5 | +* | | | dd | 01, 02, ..., 31 | | +* | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | +* | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | +* | | | DD | 01, 02, ..., 365, 366 | 7 | +* | | | DDD | 001, 002, ..., 365, 366 | | +* | | | DDDD | ... | 2 | +* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | +* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | | EEEEE | M, T, W, T, F, S, S | | +* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | +* | | | io | 1st, 2nd, ..., 7th | 5 | +* | | | ii | 01, 02, ..., 07 | 5 | +* | | | iii | Mon, Tue, Wed, ..., Sun | 5 | +* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | +* | | | iiiii | M, T, W, T, F, S, S | 5 | +* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | +* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | +* | | | eo | 2nd, 3rd, ..., 1st | 5 | +* | | | ee | 02, 03, ..., 01 | | +* | | | eee | Mon, Tue, Wed, ..., Sun | | +* | | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | | eeeee | M, T, W, T, F, S, S | | +* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | +* | | | co | 2nd, 3rd, ..., 1st | 5 | +* | | | cc | 02, 03, ..., 01 | | +* | | | ccc | Mon, Tue, Wed, ..., Sun | | +* | | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | | ccccc | M, T, W, T, F, S, S | | +* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | 80 | a..aaa | AM, PM | | +* | | | aaaa | a.m., p.m. | 2 | +* | | | aaaaa | a, p | | +* | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | +* | | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | | bbbbb | a, p, n, mi | | +* | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | +* | | | BBBB | at night, in the morning, ... | 2 | +* | | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | +* | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | +* | | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | +* | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | +* | | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | +* | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | +* | | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | +* | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | +* | | | kk | 24, 01, 02, ..., 23 | | +* | Minute | 60 | m | 0, 1, ..., 59 | | +* | | | mo | 0th, 1st, ..., 59th | 5 | +* | | | mm | 00, 01, ..., 59 | | +* | Second | 50 | s | 0, 1, ..., 59 | | +* | | | so | 0th, 1st, ..., 59th | 5 | +* | | | ss | 00, 01, ..., 59 | | +* | Seconds timestamp | 40 | t | 512969520 | | +* | | | tt | ... | 2 | +* | Fraction of second | 30 | S | 0, 1, ..., 9 | | +* | | | SS | 00, 01, ..., 99 | | +* | | | SSS | 000, 001, ..., 999 | | +* | | | SSSS | ... | 2 | +* | Milliseconds timestamp | 20 | T | 512969520900 | | +* | | | TT | ... | 2 | +* | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | +* | | | XX | -0800, +0530, Z | | +* | | | XXX | -08:00, +05:30, Z | | +* | | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | +* | | | xx | -0800, +0530, +0000 | | +* | | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | | xxxx | -0800, +0530, +0000, +123456 | | +* | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Long localized date | NA | P | 05/29/1453 | 5,8 | +* | | | PP | May 29, 1453 | | +* | | | PPP | May 29th, 1453 | | +* | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | +* | Long localized time | NA | p | 12:00 AM | 5,8 | +* | | | pp | 12:00:00 AM | | +* | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | +* | | | PPpp | May 29, 1453, 12:00:00 AM | | +* | | | PPPpp | May 29th, 1453 at ... | | +* | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular. +* In `format` function, they will produce different result: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* `parse` will try to match both formatting and stand-alone units interchangeably. +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table: +* - for numerical units (`yyyyyyyy`) `parse` will try to match a number +* as wide as the sequence +* - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. +* These variations are marked with "2" in the last column of the table. +* +* 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 4. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: +* +* `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` +* +* `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` +* +* while `uu` will just assign the year as is: +* +* `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` +* +* `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) +* and [setWeekYear](https://date-fns.org/docs/setWeekYear)). +* +* 5. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based +* on the given locale. +* +* using `en-US` locale: `P` => `MM/dd/yyyy` +* using `en-US` locale: `p` => `hh:mm a` +* using `pt-BR` locale: `P` => `dd/MM/yyyy` +* using `pt-BR` locale: `p` => `HH:mm` +* +* Values will be assigned to the date in the descending order of its unit's priority. +* Units of an equal priority overwrite each other in the order of appearance. +* +* If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), +* the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. +* +* `referenceDate` must be passed for correct work of the function. +* If you're not sure which `referenceDate` to supply, create a new instance of Date: +* `parse('02/11/2014', 'MM/dd/yyyy', new Date())` +* In this case parsing will be done in the context of the current date. +* If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, +* then `Invalid Date` will be returned. +* +* The result may vary by locale. +* +* If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. +* +* If parsing failed, `Invalid Date` will be returned. +* Invalid Date is a Date, whose time value is NaN. +* Time value of Date: http://es5.github.io/#x15.9.1.1 +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dateStr - The string to parse +* @param formatStr - The string of tokens +* @param referenceDate - defines values missing from the parsed dateString +* @param options - An object with options. +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @returns The parsed date +* +* @throws `options.locale` must contain `match` property +* @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Parse 11 February 2014 from middle-endian format: +* var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) +* //=> Tue Feb 11 2014 00:00:00 +* +* @example +* // Parse 28th of February in Esperanto locale in the context of 2010 year: +* import eo from 'date-fns/locale/eo' +* var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { +* locale: eo +* }) +* //=> Sun Feb 28 2010 00:00:00 +*/ +function parse$1(dateStr, formatStr, referenceDate, options) {var _ref31, _options$locale13, _ref32, _ref33, _ref34, _options$firstWeekCon4, _options$locale14, _defaultOptions$local0, _ref35, _ref36, _ref37, _options$weekStartsOn7, _options$locale15, _defaultOptions$local1; + var invalidDate = function invalidDate() {return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || referenceDate, NaN);}; + var defaultOptions = getDefaultOptions(); + var locale = (_ref31 = (_options$locale13 = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale13 !== void 0 ? _options$locale13 : defaultOptions.locale) !== null && _ref31 !== void 0 ? _ref31 : enUS; + var firstWeekContainsDate = (_ref32 = (_ref33 = (_ref34 = (_options$firstWeekCon4 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon4 !== void 0 ? _options$firstWeekCon4 : options === null || options === void 0 || (_options$locale14 = options.locale) === null || _options$locale14 === void 0 || (_options$locale14 = _options$locale14.options) === null || _options$locale14 === void 0 ? void 0 : _options$locale14.firstWeekContainsDate) !== null && _ref34 !== void 0 ? _ref34 : defaultOptions.firstWeekContainsDate) !== null && _ref33 !== void 0 ? _ref33 : (_defaultOptions$local0 = defaultOptions.locale) === null || _defaultOptions$local0 === void 0 || (_defaultOptions$local0 = _defaultOptions$local0.options) === null || _defaultOptions$local0 === void 0 ? void 0 : _defaultOptions$local0.firstWeekContainsDate) !== null && _ref32 !== void 0 ? _ref32 : 1; + var weekStartsOn = (_ref35 = (_ref36 = (_ref37 = (_options$weekStartsOn7 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn7 !== void 0 ? _options$weekStartsOn7 : options === null || options === void 0 || (_options$locale15 = options.locale) === null || _options$locale15 === void 0 || (_options$locale15 = _options$locale15.options) === null || _options$locale15 === void 0 ? void 0 : _options$locale15.weekStartsOn) !== null && _ref37 !== void 0 ? _ref37 : defaultOptions.weekStartsOn) !== null && _ref36 !== void 0 ? _ref36 : (_defaultOptions$local1 = defaultOptions.locale) === null || _defaultOptions$local1 === void 0 || (_defaultOptions$local1 = _defaultOptions$local1.options) === null || _defaultOptions$local1 === void 0 ? void 0 : _defaultOptions$local1.weekStartsOn) !== null && _ref35 !== void 0 ? _ref35 : 0; + if (!formatStr) return dateStr ? invalidDate() : toDate$1(referenceDate, options === null || options === void 0 ? void 0 : options.in); + var subFnOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; + var setters = [new DateTimezoneSetter(options === null || options === void 0 ? void 0 : options.in, referenceDate)]; + var tokens = formatStr.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + if (firstCharacter in longFormatters) { + var longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + return substring; + }).join("").match(formattingTokensRegExp$1); + var usedTokens = [];var _iterator = _createForOfIteratorHelper( + tokens),_step;try {var _loop = function _loop() {var token = _step.value; + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) warnOrThrowProtectedError(token, formatStr, dateStr); + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) warnOrThrowProtectedError(token, formatStr, dateStr); + var firstCharacter = token[0]; + var parser = parsers[firstCharacter]; + if (parser) { + var incompatibleTokens = parser.incompatibleTokens; + if (Array.isArray(incompatibleTokens)) { + var incompatibleToken = usedTokens.find(function (usedToken) {return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter;}); + if (incompatibleToken) throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); + } else if (parser.incompatibleTokens === "*" && usedTokens.length > 0) throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); + usedTokens.push({ + token: firstCharacter, + fullToken: token + }); + var parseResult = parser.run(dateStr, token, locale.match, subFnOptions); + if (!parseResult) return { v: invalidDate() }; + setters.push(parseResult.setter); + dateStr = parseResult.rest; + } else { + if (firstCharacter.match(unescapedLatinCharacterRegExp$1)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + if (token === "''") token = "'";else + if (firstCharacter === "'") token = cleanEscapedString$1(token); + if (dateStr.indexOf(token) === 0) dateStr = dateStr.slice(token.length);else return { v: + invalidDate() }; + } + },_ret;for (_iterator.s(); !(_step = _iterator.n()).done;) {_ret = _loop();if (_ret) return _ret.v;}} catch (err) {_iterator.e(err);} finally {_iterator.f();} + if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) return invalidDate(); + var uniquePrioritySetters = setters.map(function (setter) {return setter.priority;}).sort(function (a, b) {return b - a;}).filter(function (priority, index, array) {return array.indexOf(priority) === index;}).map(function (priority) {return setters.filter(function (setter) {return setter.priority === priority;}).sort(function (a, b) {return b.subPriority - a.subPriority;});}).map(function (setterArray) {return setterArray[0];}); + var date = toDate$1(referenceDate, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date)) return invalidDate(); + var flags = {};var _iterator2 = _createForOfIteratorHelper( + uniquePrioritySetters),_step2;try {for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {var setter = _step2.value; + if (!setter.validate(date, subFnOptions)) return invalidDate(); + var result = setter.set(date, flags, subFnOptions); + if (Array.isArray(result)) { + date = result[0]; + Object.assign(flags, result[1]); + } else date = result; + }} catch (err) {_iterator2.e(err);} finally {_iterator2.f();} + return date; +} +function cleanEscapedString$1(input) { + return input.match(escapedStringRegExp$1)[1].replace(doubleQuoteRegExp$1, "'"); +} +//#endregion +//#region dist/date-fns/isMatch.js +/** +* The {@link isMatch} function options. +*/ +/** +* @name isMatch +* @category Common Helpers +* @summary validates the date string against given formats +* +* @description +* Return the true if given date is string correct against the given format else +* will return false. +* +* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters in the format string wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the format string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* with a few additions (see note 5 below the table). +* +* Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited +* and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: +* +* ```javascript +* isMatch('23 AM', 'HH a') +* //=> RangeError: The format string mustn't contain `HH` and `a` at the same time +* ``` +* +* See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true +* +* Accepted format string patterns: +* | Unit |Prior| Pattern | Result examples | Notes | +* |---------------------------------|-----|---------|-----------------------------------|-------| +* | Era | 140 | G..GGG | AD, BC | | +* | | | GGGG | Anno Domini, Before Christ | 2 | +* | | | GGGGG | A, B | | +* | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | +* | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | yy | 44, 01, 00, 17 | 4 | +* | | | yyy | 044, 001, 123, 999 | 4 | +* | | | yyyy | 0044, 0001, 1900, 2017 | 4 | +* | | | yyyyy | ... | 2,4 | +* | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | +* | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | +* | | | YY | 44, 01, 00, 17 | 4,6 | +* | | | YYY | 044, 001, 123, 999 | 4 | +* | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | +* | | | YYYYY | ... | 2,4 | +* | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | +* | | | RR | -43, 01, 00, 17 | 4,5 | +* | | | RRR | -043, 001, 123, 999, -999 | 4,5 | +* | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | +* | | | RRRRR | ... | 2,4,5 | +* | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | +* | | | uu | -43, 01, 99, -99 | 4 | +* | | | uuu | -043, 001, 123, 999, -999 | 4 | +* | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | +* | | | uuuuu | ... | 2,4 | +* | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | +* | | | Qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | QQ | 01, 02, 03, 04 | | +* | | | QQQ | Q1, Q2, Q3, Q4 | | +* | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | +* | | | QQQQQ | 1, 2, 3, 4 | 4 | +* | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | +* | | | qo | 1st, 2nd, 3rd, 4th | 5 | +* | | | qq | 01, 02, 03, 04 | | +* | | | qqq | Q1, Q2, Q3, Q4 | | +* | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | +* | | | qqqqq | 1, 2, 3, 4 | 3 | +* | Month (formatting) | 110 | M | 1, 2, ..., 12 | | +* | | | Mo | 1st, 2nd, ..., 12th | 5 | +* | | | MM | 01, 02, ..., 12 | | +* | | | MMM | Jan, Feb, ..., Dec | | +* | | | MMMM | January, February, ..., December | 2 | +* | | | MMMMM | J, F, ..., D | | +* | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | +* | | | Lo | 1st, 2nd, ..., 12th | 5 | +* | | | LL | 01, 02, ..., 12 | | +* | | | LLL | Jan, Feb, ..., Dec | | +* | | | LLLL | January, February, ..., December | 2 | +* | | | LLLLL | J, F, ..., D | | +* | Local week of year | 100 | w | 1, 2, ..., 53 | | +* | | | wo | 1st, 2nd, ..., 53th | 5 | +* | | | ww | 01, 02, ..., 53 | | +* | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | +* | | | Io | 1st, 2nd, ..., 53th | 5 | +* | | | II | 01, 02, ..., 53 | 5 | +* | Day of month | 90 | d | 1, 2, ..., 31 | | +* | | | do | 1st, 2nd, ..., 31st | 5 | +* | | | dd | 01, 02, ..., 31 | | +* | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | +* | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | +* | | | DD | 01, 02, ..., 365, 366 | 7 | +* | | | DDD | 001, 002, ..., 365, 366 | | +* | | | DDDD | ... | 2 | +* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | +* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | +* | | | EEEEE | M, T, W, T, F, S, S | | +* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | +* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | +* | | | io | 1st, 2nd, ..., 7th | 5 | +* | | | ii | 01, 02, ..., 07 | 5 | +* | | | iii | Mon, Tue, Wed, ..., Su | 5 | +* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | +* | | | iiiii | M, T, W, T, F, S, S | 5 | +* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | +* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | +* | | | eo | 2nd, 3rd, ..., 1st | 5 | +* | | | ee | 02, 03, ..., 01 | | +* | | | eee | Mon, Tue, Wed, ..., Su | | +* | | | eeee | Monday, Tuesday, ..., Sunday | 2 | +* | | | eeeee | M, T, W, T, F, S, S | | +* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | +* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | +* | | | co | 2nd, 3rd, ..., 1st | 5 | +* | | | cc | 02, 03, ..., 01 | | +* | | | ccc | Mon, Tue, Wed, ..., Su | | +* | | | cccc | Monday, Tuesday, ..., Sunday | 2 | +* | | | ccccc | M, T, W, T, F, S, S | | +* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | +* | AM, PM | 80 | a..aaa | AM, PM | | +* | | | aaaa | a.m., p.m. | 2 | +* | | | aaaaa | a, p | | +* | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | +* | | | bbbb | a.m., p.m., noon, midnight | 2 | +* | | | bbbbb | a, p, n, mi | | +* | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | +* | | | BBBB | at night, in the morning, ... | 2 | +* | | | BBBBB | at night, in the morning, ... | | +* | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | +* | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | +* | | | hh | 01, 02, ..., 11, 12 | | +* | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | +* | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | +* | | | HH | 00, 01, 02, ..., 23 | | +* | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | +* | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | +* | | | KK | 01, 02, ..., 11, 00 | | +* | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | +* | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | +* | | | kk | 24, 01, 02, ..., 23 | | +* | Minute | 60 | m | 0, 1, ..., 59 | | +* | | | mo | 0th, 1st, ..., 59th | 5 | +* | | | mm | 00, 01, ..., 59 | | +* | Second | 50 | s | 0, 1, ..., 59 | | +* | | | so | 0th, 1st, ..., 59th | 5 | +* | | | ss | 00, 01, ..., 59 | | +* | Seconds timestamp | 40 | t | 512969520 | | +* | | | tt | ... | 2 | +* | Fraction of second | 30 | S | 0, 1, ..., 9 | | +* | | | SS | 00, 01, ..., 99 | | +* | | | SSS | 000, 001, ..., 999 | | +* | | | SSSS | ... | 2 | +* | Milliseconds timestamp | 20 | T | 512969520900 | | +* | | | TT | ... | 2 | +* | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | +* | | | XX | -0800, +0530, Z | | +* | | | XXX | -08:00, +05:30, Z | | +* | | | XXXX | -0800, +0530, Z, +123456 | 2 | +* | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | +* | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | +* | | | xx | -0800, +0530, +0000 | | +* | | | xxx | -08:00, +05:30, +00:00 | 2 | +* | | | xxxx | -0800, +0530, +0000, +123456 | | +* | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | +* | Long localized date | NA | P | 05/29/1453 | 5,8 | +* | | | PP | May 29, 1453 | | +* | | | PPP | May 29th, 1453 | | +* | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | +* | Long localized time | NA | p | 12:00 AM | 5,8 | +* | | | pp | 12:00:00 AM | | +* | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | +* | | | PPpp | May 29, 1453, 12:00:00 AM | | +* | | | PPPpp | May 29th, 1453 at ... | | +* | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | +* Notes: +* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale +* are the same as "stand-alone" units, but are different in some languages. +* "Formatting" units are declined according to the rules of the language +* in the context of a date. "Stand-alone" units are always nominative singular. +* In `format` function, they will produce different result: +* +* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` +* +* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` +* +* `isMatch` will try to match both formatting and stand-alone units interchangeably. +* +* 2. Any sequence of the identical letters is a pattern, unless it is escaped by +* the single quote characters (see below). +* If the sequence is longer than listed in table: +* - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number +* as wide as the sequence +* - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. +* These variations are marked with "2" in the last column of the table. +* +* 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. +* These tokens represent the shortest form of the quarter. +* +* 4. The main difference between `y` and `u` patterns are B.C. years: +* +* | Year | `y` | `u` | +* |------|-----|-----| +* | AC 1 | 1 | 1 | +* | BC 1 | 1 | 0 | +* | BC 2 | 2 | -1 | +* +* Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: +* +* `isMatch('50', 'yy') //=> true` +* +* `isMatch('75', 'yy') //=> true` +* +* while `uu` will use the year as is: +* +* `isMatch('50', 'uu') //=> true` +* +* `isMatch('75', 'uu') //=> true` +* +* The same difference is true for local and ISO week-numbering years (`Y` and `R`), +* except local week-numbering years are dependent on `options.weekStartsOn` +* and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) +* and [setWeekYear](https://date-fns.org/docs/setWeekYear)). +* +* 5. These patterns are not in the Unicode Technical Standard #35: +* - `i`: ISO day of week +* - `I`: ISO week of year +* - `R`: ISO week-numbering year +* - `o`: ordinal number modifier +* - `P`: long localized date +* - `p`: long localized time +* +* 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. +* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. +* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based +* on the given locale. +* +* using `en-US` locale: `P` => `MM/dd/yyyy` +* using `en-US` locale: `p` => `hh:mm a` +* using `pt-BR` locale: `P` => `dd/MM/yyyy` +* using `pt-BR` locale: `p` => `HH:mm` +* +* Values will be checked in the descending order of its unit's priority. +* Units of an equal priority overwrite each other in the order of appearance. +* +* If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), +* the values will be taken from today's using `new Date()` date which works as a context of parsing. +* +* The result may vary by locale. +* +* If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. +* +* @param dateStr - The date string to verify +* @param format - The string of tokens +* @param options - An object with options. +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* @returns Is format string a match for date string? +* +* @throws `options.locale` must contain `match` property +* @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* @throws format string contains an unescaped latin alphabet character +* +* @example +* // Match 11 February 2014 from middle-endian format: +* const result = isMatch('02/11/2014', 'MM/dd/yyyy') +* //=> true +* +* @example +* // Match 28th of February in Esperanto locale in the context of 2010 year: +* import eo from 'date-fns/locale/eo' +* const result = isMatch('28-a de februaro', "do 'de' MMMM", { +* locale: eo +* }) +* //=> true +*/ +function isMatch$1(dateStr, formatStr, options) { + return isValid$1(parse$1(dateStr, formatStr, /* @__PURE__ */new Date(), options)); +} +//#endregion +//#region dist/date-fns/fp/isMatch.js +var _isMatch = convertToFP(isMatch$1, 2); +//#endregion +//#region dist/date-fns/fp/isMatchWithOptions.js +var _isMatchWithOptions = convertToFP(isMatch$1, 3); +//#endregion +//#region dist/date-fns/isMonday.js +/** +* The {@link isMonday} function options. +*/ +/** +* @name isMonday +* @category Weekday Helpers +* @summary Is the given date Monday? +* +* @description +* Is the given date Monday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Monday +* +* @example +* // Is 22 September 2014 Monday? +* const result = isMonday(new Date(2014, 8, 22)) +* //=> true +*/ +function isMonday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 1; +} +//#endregion +//#region dist/date-fns/fp/isMonday.js +var _isMonday = convertToFP(isMonday$1, 1); +//#endregion +//#region dist/date-fns/fp/isMondayWithOptions.js +var _isMondayWithOptions = convertToFP(isMonday$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameDay.js +var _isSameDay = convertToFP(isSameDay$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameDayWithOptions.js +var _isSameDayWithOptions = convertToFP(isSameDay$1, 3); +//#endregion +//#region dist/date-fns/startOfHour.js +/** +* The {@link startOfHour} function options. +*/ +/** +* @name startOfHour +* @category Hour Helpers +* @summary Return the start of an hour for the given date. +* +* @description +* Return the start of an hour for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of an hour +* +* @example +* // The start of an hour for 2 September 2014 11:55:00: +* const result = startOfHour(new Date(2014, 8, 2, 11, 55)) +* //=> Tue Sep 02 2014 11:00:00 +*/ +function startOfHour$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMinutes(0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameHour.js +/** +* The {@link isSameHour} function options. +*/ +/** +* @name isSameHour +* @category Hour Helpers +* @summary Are the given dates in the same hour (and same day)? +* +* @description +* Are the given dates in the same hour (and same day)? +* +* @param dateLeft - The first date to check +* @param dateRight - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same hour (and same day) +* +* @example +* // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? +* const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) +* //=> true +* +* @example +* // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? +* const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) +* //=> false +*/ +function isSameHour$1(dateLeft, dateRight, options) { + var _normalizeDates43 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, dateLeft, dateRight),_normalizeDates44 = _slicedToArray(_normalizeDates43, 2),dateLeft_ = _normalizeDates44[0],dateRight_ = _normalizeDates44[1]; + return +startOfHour$1(dateLeft_) === +startOfHour$1(dateRight_); +} +//#endregion +//#region dist/date-fns/fp/isSameHour.js +var _isSameHour = convertToFP(isSameHour$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameHourWithOptions.js +var _isSameHourWithOptions = convertToFP(isSameHour$1, 3); +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek$1(laterDate, earlierDate, options) { + var _normalizeDates45 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates46 = _slicedToArray(_normalizeDates45, 2),laterDate_ = _normalizeDates46[0],earlierDate_ = _normalizeDates46[1]; + return +startOfWeek$1(laterDate_, options) === +startOfWeek$1(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/isSameISOWeek.js +/** +* The {@link isSameISOWeek} function options. +*/ +/** +* @name isSameISOWeek +* @category ISO Week Helpers +* @summary Are the given dates in the same ISO week (and year)? +* +* @description +* Are the given dates in the same ISO week (and year)? +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same ISO week (and year) +* +* @example +* // Are 1 September 2014 and 7 September 2014 in the same ISO week? +* const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) +* //=> true +* +* @example +* // Are 1 September 2014 and 1 September 2015 in the same ISO week? +* const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) +* //=> false +*/ +function isSameISOWeek$1(laterDate, earlierDate, options) { + return isSameWeek$1(laterDate, earlierDate, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/fp/isSameISOWeek.js +var _isSameISOWeek = convertToFP(isSameISOWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameISOWeekWithOptions.js +var _isSameISOWeekWithOptions = convertToFP(isSameISOWeek$1, 3); +//#endregion +//#region dist/date-fns/isSameISOWeekYear.js +/** +* The {@link isSameISOWeekYear} function options. +*/ +/** +* @name isSameISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Are the given dates in the same ISO week-numbering year? +* +* @description +* Are the given dates in the same ISO week-numbering year? +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same ISO week-numbering year +* +* @example +* // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? +* const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) +* //=> true +*/ +function isSameISOWeekYear$1(laterDate, earlierDate, options) { + var _normalizeDates47 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates48 = _slicedToArray(_normalizeDates47, 2),laterDate_ = _normalizeDates48[0],earlierDate_ = _normalizeDates48[1]; + return +startOfISOWeekYear$1(laterDate_) === +startOfISOWeekYear$1(earlierDate_); +} +//#endregion +//#region dist/date-fns/fp/isSameISOWeekYear.js +var _isSameISOWeekYear = convertToFP(isSameISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameISOWeekYearWithOptions.js +var _isSameISOWeekYearWithOptions = convertToFP(isSameISOWeekYear$1, 3); +//#endregion +//#region dist/date-fns/startOfMinute.js +/** +* The {@link startOfMinute} function options. +*/ +/** +* @name startOfMinute +* @category Minute Helpers +* @summary Return the start of a minute for the given date. +* +* @description +* Return the start of a minute for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a minute +* +* @example +* // The start of a minute for 1 December 2014 22:15:45.400: +* const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:00 +*/ +function startOfMinute$1(date, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + date_.setSeconds(0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/isSameMinute.js +/** +* @name isSameMinute +* @category Minute Helpers +* @summary Are the given dates in the same minute (and hour and day)? +* +* @description +* Are the given dates in the same minute (and hour and day)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* +* @returns The dates are in the same minute (and hour and day) +* +* @example +* // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? +* const result = isSameMinute( +* new Date(2014, 8, 4, 6, 30), +* new Date(2014, 8, 4, 6, 30, 15) +* ) +* //=> true +* +* @example +* // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? +* const result = isSameMinute( +* new Date(2014, 8, 4, 6, 30), +* new Date(2014, 8, 5, 6, 30) +* ) +* //=> false +*/ +function isSameMinute$1(laterDate, earlierDate) { + return +startOfMinute$1(laterDate) === +startOfMinute$1(earlierDate); +} +//#endregion +//#region dist/date-fns/fp/isSameMinute.js +var _isSameMinute = convertToFP(isSameMinute$1, 2); +//#endregion +//#region dist/date-fns/isSameMonth.js +/** +* The {@link isSameMonth} function options. +*/ +/** +* @name isSameMonth +* @category Month Helpers +* @summary Are the given dates in the same month (and year)? +* +* @description +* Are the given dates in the same month (and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same month (and year) +* +* @example +* // Are 2 September 2014 and 25 September 2014 in the same month? +* const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) +* //=> true +* +* @example +* // Are 2 September 2014 and 25 September 2015 in the same month? +* const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) +* //=> false +*/ +function isSameMonth$1(laterDate, earlierDate, options) { + var _normalizeDates49 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates50 = _slicedToArray(_normalizeDates49, 2),laterDate_ = _normalizeDates50[0],earlierDate_ = _normalizeDates50[1]; + return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth(); +} +//#endregion +//#region dist/date-fns/fp/isSameMonth.js +var _isSameMonth = convertToFP(isSameMonth$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameMonthWithOptions.js +var _isSameMonthWithOptions = convertToFP(isSameMonth$1, 3); +//#endregion +//#region dist/date-fns/isSameQuarter.js +/** +* The {@link isSameQuarter} function options. +*/ +/** +* @name isSameQuarter +* @category Quarter Helpers +* @summary Are the given dates in the same quarter (and year)? +* +* @description +* Are the given dates in the same quarter (and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same quarter (and year) +* +* @example +* // Are 1 January 2014 and 8 March 2014 in the same quarter? +* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) +* //=> true +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same quarter? +* const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameQuarter$1(laterDate, earlierDate, options) { + var _normalizeDates51 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates52 = _slicedToArray(_normalizeDates51, 2),dateLeft_ = _normalizeDates52[0],dateRight_ = _normalizeDates52[1]; + return +startOfQuarter$1(dateLeft_) === +startOfQuarter$1(dateRight_); +} +//#endregion +//#region dist/date-fns/fp/isSameQuarter.js +var _isSameQuarter = convertToFP(isSameQuarter$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameQuarterWithOptions.js +var _isSameQuarterWithOptions = convertToFP(isSameQuarter$1, 3); +//#endregion +//#region dist/date-fns/startOfSecond.js +/** +* The {@link startOfSecond} function options. +*/ +/** +* @name startOfSecond +* @category Second Helpers +* @summary Return the start of a second for the given date. +* +* @description +* Return the start of a second for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The start of a second +* +* @example +* // The start of a second for 1 December 2014 22:15:45.400: +* const result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) +* //=> Mon Dec 01 2014 22:15:45.000 +*/ +function startOfSecond$1(date, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMilliseconds(0); + return date_; +} +//#endregion +//#region dist/date-fns/isSameSecond.js +/** +* @name isSameSecond +* @category Second Helpers +* @summary Are the given dates in the same second (and hour and day)? +* +* @description +* Are the given dates in the same second (and hour and day)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* +* @returns The dates are in the same second (and hour and day) +* +* @example +* // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 30, 15), +* new Date(2014, 8, 4, 6, 30, 15, 500) +* ) +* //=> true +* +* @example +* // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 0, 15), +* new Date(2014, 8, 4, 6, 1, 15) +* ) +* //=> false +* +* @example +* // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? +* const result = isSameSecond( +* new Date(2014, 8, 4, 6, 0, 15), +* new Date(2014, 8, 5, 6, 0, 15) +* ) +* //=> false +*/ +function isSameSecond$1(laterDate, earlierDate) { + return +startOfSecond$1(laterDate) === +startOfSecond$1(earlierDate); +} +//#endregion +//#region dist/date-fns/fp/isSameSecond.js +var _isSameSecond = convertToFP(isSameSecond$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameWeek.js +var _isSameWeek = convertToFP(isSameWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameWeekWithOptions.js +var _isSameWeekWithOptions = convertToFP(isSameWeek$1, 3); +//#endregion +//#region dist/date-fns/isSameYear.js +/** +* The {@link isSameYear} function options. +*/ +/** +* @name isSameYear +* @category Year Helpers +* @summary Are the given dates in the same year? +* +* @description +* Are the given dates in the same year? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same year +* +* @example +* // Are 2 September 2014 and 25 September 2014 in the same year? +* const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) +* //=> true +*/ +function isSameYear$1(laterDate, earlierDate, options) { + var _normalizeDates53 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates54 = _slicedToArray(_normalizeDates53, 2),laterDate_ = _normalizeDates54[0],earlierDate_ = _normalizeDates54[1]; + return laterDate_.getFullYear() === earlierDate_.getFullYear(); +} +//#endregion +//#region dist/date-fns/fp/isSameYear.js +var _isSameYear = convertToFP(isSameYear$1, 2); +//#endregion +//#region dist/date-fns/fp/isSameYearWithOptions.js +var _isSameYearWithOptions = convertToFP(isSameYear$1, 3); +//#endregion +//#region dist/date-fns/fp/isSaturday.js +var _isSaturday = convertToFP(isSaturday$1, 1); +//#endregion +//#region dist/date-fns/fp/isSaturdayWithOptions.js +var _isSaturdayWithOptions = convertToFP(isSaturday$1, 2); +//#endregion +//#region dist/date-fns/fp/isSunday.js +var _isSunday = convertToFP(isSunday$1, 1); +//#endregion +//#region dist/date-fns/fp/isSundayWithOptions.js +var _isSundayWithOptions = convertToFP(isSunday$1, 2); +//#endregion +//#region dist/date-fns/isThursday.js +/** +* The {@link isThursday} function options. +*/ +/** +* @name isThursday +* @category Weekday Helpers +* @summary Is the given date Thursday? +* +* @description +* Is the given date Thursday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Thursday +* +* @example +* // Is 25 September 2014 Thursday? +* const result = isThursday(new Date(2014, 8, 25)) +* //=> true +*/ +function isThursday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 4; +} +//#endregion +//#region dist/date-fns/fp/isThursday.js +var _isThursday = convertToFP(isThursday$1, 1); +//#endregion +//#region dist/date-fns/fp/isThursdayWithOptions.js +var _isThursdayWithOptions = convertToFP(isThursday$1, 2); +//#endregion +//#region dist/date-fns/isTuesday.js +/** +* The {@link isTuesday} function options. +*/ +/** +* @name isTuesday +* @category Weekday Helpers +* @summary Is the given date Tuesday? +* +* @description +* Is the given date Tuesday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Tuesday +* +* @example +* // Is 23 September 2014 Tuesday? +* const result = isTuesday(new Date(2014, 8, 23)) +* //=> true +*/ +function isTuesday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 2; +} +//#endregion +//#region dist/date-fns/fp/isTuesday.js +var _isTuesday = convertToFP(isTuesday$1, 1); +//#endregion +//#region dist/date-fns/fp/isTuesdayWithOptions.js +var _isTuesdayWithOptions = convertToFP(isTuesday$1, 2); +//#endregion +//#region dist/date-fns/fp/isValid.js +var _isValid = convertToFP(isValid$1, 1); +//#endregion +//#region dist/date-fns/isWednesday.js +/** +* The {@link isWednesday} function options. +*/ +/** +* @name isWednesday +* @category Weekday Helpers +* @summary Is the given date Wednesday? +* +* @description +* Is the given date Wednesday? +* +* @param date - The date to check +* @param options - An object with options +* +* @returns The date is Wednesday +* +* @example +* // Is 24 September 2014 Wednesday? +* const result = isWednesday(new Date(2014, 8, 24)) +* //=> true +*/ +function isWednesday$1(date, options) { + return toDate$1(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 3; +} +//#endregion +//#region dist/date-fns/fp/isWednesday.js +var _isWednesday = convertToFP(isWednesday$1, 1); +//#endregion +//#region dist/date-fns/fp/isWednesdayWithOptions.js +var _isWednesdayWithOptions = convertToFP(isWednesday$1, 2); +//#endregion +//#region dist/date-fns/fp/isWeekend.js +var _isWeekend = convertToFP(isWeekend$1, 1); +//#endregion +//#region dist/date-fns/fp/isWeekendWithOptions.js +var _isWeekendWithOptions = convertToFP(isWeekend$1, 2); +//#endregion +//#region dist/date-fns/isWithinInterval.js +/** +* The {@link isWithinInterval} function options. +*/ +/** +* @name isWithinInterval +* @category Interval Helpers +* @summary Is the given date within the interval? +* +* @description +* Is the given date within the interval? (Including start and end.) +* +* @param date - The date to check +* @param interval - The interval to check +* @param options - An object with options +* +* @returns The date is within the interval +* +* @example +* // For the date within the interval: +* isWithinInterval(new Date(2014, 0, 3), { +* start: new Date(2014, 0, 1), +* end: new Date(2014, 0, 7) +* }) +* // => true +* +* @example +* // For the date outside of the interval: +* isWithinInterval(new Date(2014, 0, 10), { +* start: new Date(2014, 0, 1), +* end: new Date(2014, 0, 7) +* }) +* // => false +* +* @example +* // For date equal to the interval start: +* isWithinInterval(date, { start, end: date }) +* // => true +* +* @example +* // For date equal to the interval end: +* isWithinInterval(date, { start: date, end }) +* // => true +*/ +function isWithinInterval$1(date, interval, options) { + var time = +toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var _sort9 = [+toDate$1(interval.start, options === null || options === void 0 ? void 0 : options.in), +toDate$1(interval.end, options === null || options === void 0 ? void 0 : options.in)].sort(function (a, b) {return a - b;}),_sort0 = _slicedToArray(_sort9, 2),startTime = _sort0[0],endTime = _sort0[1]; + return time >= startTime && time <= endTime; +} +//#endregion +//#region dist/date-fns/fp/isWithinInterval.js +var _isWithinInterval = convertToFP(isWithinInterval$1, 2); +//#endregion +//#region dist/date-fns/fp/isWithinIntervalWithOptions.js +var _isWithinIntervalWithOptions = convertToFP(isWithinInterval$1, 3); +//#endregion +//#region dist/date-fns/lastDayOfDecade.js +/** +* The {@link lastDayOfDecade} function options. +*/ +/** +* @name lastDayOfDecade +* @category Decade Helpers +* @summary Return the last day of a decade for the given date. +* +* @description +* Return the last day of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. +* +* @param date - The original date +* @param options - The options +* +* @returns The last day of a decade +* +* @example +* // The last day of a decade for 21 December 2012 21:12:00: +* const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) +* //=> Wed Dec 31 2019 00:00:00 +*/ +function lastDayOfDecade$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade + 1, 0, 0); + _date.setHours(0, 0, 0, 0); + return toDate$1(_date, options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/fp/lastDayOfDecade.js +var _lastDayOfDecade = convertToFP(lastDayOfDecade$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfDecadeWithOptions.js +var _lastDayOfDecadeWithOptions = convertToFP(lastDayOfDecade$1, 2); +//#endregion +//#region dist/date-fns/lastDayOfWeek.js +/** +* The {@link lastDayOfWeek} function options. +*/ +/** +* @name lastDayOfWeek +* @category Week Helpers +* @summary Return the last day of a week for the given date. +* +* @description +* Return the last day of a week for the given date. +* The result will be in the local timezone unless a context is specified. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a week +*/ +function lastDayOfWeek$1(date, options) {var _ref38, _ref39, _ref40, _options$weekStartsOn8, _options$locale16, _defaultOptions$local10; + var defaultOptions = getDefaultOptions$1(); + var weekStartsOn = (_ref38 = (_ref39 = (_ref40 = (_options$weekStartsOn8 = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn8 !== void 0 ? _options$weekStartsOn8 : options === null || options === void 0 || (_options$locale16 = options.locale) === null || _options$locale16 === void 0 || (_options$locale16 = _options$locale16.options) === null || _options$locale16 === void 0 ? void 0 : _options$locale16.weekStartsOn) !== null && _ref40 !== void 0 ? _ref40 : defaultOptions.weekStartsOn) !== null && _ref39 !== void 0 ? _ref39 : (_defaultOptions$local10 = defaultOptions.locale) === null || _defaultOptions$local10 === void 0 || (_defaultOptions$local10 = _defaultOptions$local10.options) === null || _defaultOptions$local10 === void 0 ? void 0 : _defaultOptions$local10.weekStartsOn) !== null && _ref38 !== void 0 ? _ref38 : 0; + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + _date.setHours(0, 0, 0, 0); + _date.setDate(_date.getDate() + diff); + return _date; +} +//#endregion +//#region dist/date-fns/lastDayOfISOWeek.js +/** +* The {@link lastDayOfISOWeek} function options. +*/ +/** +* @name lastDayOfISOWeek +* @category ISO Week Helpers +* @summary Return the last day of an ISO week for the given date. +* +* @description +* Return the last day of an ISO week for the given date. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of an ISO week +* +* @example +* // The last day of an ISO week for 2 September 2014 11:55:00: +* const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Sep 07 2014 00:00:00 +*/ +function lastDayOfISOWeek$1(date, options) { + return lastDayOfWeek$1(date, _objectSpread(_objectSpread({}, + options), {}, { + weekStartsOn: 1 }) + ); +} +//#endregion +//#region dist/date-fns/fp/lastDayOfISOWeek.js +var _lastDayOfISOWeek = convertToFP(lastDayOfISOWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfISOWeekWithOptions.js +var _lastDayOfISOWeekWithOptions = convertToFP(lastDayOfISOWeek$1, 2); +//#endregion +//#region dist/date-fns/lastDayOfISOWeekYear.js +/** +* The {@link lastDayOfISOWeekYear} function options. +*/ +/** +* @name lastDayOfISOWeekYear +* @category ISO Week-Numbering Year Helpers +* @summary Return the last day of an ISO week-numbering year for the given date. +* +* @description +* Return the last day of an ISO week-numbering year, +* which always starts 3 days before the year's first Thursday. +* The result will be in the local timezone. +* +* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The end of an ISO week-numbering year +* +* @example +* // The last day of an ISO week-numbering year for 2 July 2005: +* const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) +* //=> Sun Jan 01 2006 00:00:00 +*/ +function lastDayOfISOWeekYear$1(date, options) { + var year = getISOWeekYear$1(date, options); + var fourthOfJanuary = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date_ = startOfISOWeek$1(fourthOfJanuary, options); + date_.setDate(date_.getDate() - 1); + return date_; +} +//#endregion +//#region dist/date-fns/fp/lastDayOfISOWeekYear.js +var _lastDayOfISOWeekYear = convertToFP(lastDayOfISOWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfISOWeekYearWithOptions.js +var _lastDayOfISOWeekYearWithOptions = convertToFP(lastDayOfISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/lastDayOfMonth.js +var _lastDayOfMonth = convertToFP(lastDayOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfMonthWithOptions.js +var _lastDayOfMonthWithOptions = convertToFP(lastDayOfMonth$1, 2); +//#endregion +//#region dist/date-fns/lastDayOfQuarter.js +/** +* The {@link lastDayOfQuarter} function options. +*/ +/** +* @name lastDayOfQuarter +* @category Quarter Helpers +* @summary Return the last day of a year quarter for the given date. +* +* @description +* Return the last day of a year quarter for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - The options +* +* @returns The last day of a quarter +* +* @example +* // The last day of a quarter for 2 September 2014 11:55:00: +* const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function lastDayOfQuarter$1(date, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var currentMonth = date_.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date_.setMonth(month, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/fp/lastDayOfQuarter.js +var _lastDayOfQuarter = convertToFP(lastDayOfQuarter$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfQuarterWithOptions.js +var _lastDayOfQuarterWithOptions = convertToFP(lastDayOfQuarter$1, 2); +//#endregion +//#region dist/date-fns/fp/lastDayOfWeek.js +var _lastDayOfWeek = convertToFP(lastDayOfWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfWeekWithOptions.js +var _lastDayOfWeekWithOptions = convertToFP(lastDayOfWeek$1, 2); +//#endregion +//#region dist/date-fns/lastDayOfYear.js +/** +* The {@link lastDayOfYear} function options. +*/ +/** +* @name lastDayOfYear +* @category Year Helpers +* @summary Return the last day of a year for the given date. +* +* @description +* Return the last day of a year for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The last day of a year +* +* @example +* // The last day of a year for 2 September 2014 11:55:00: +* const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) +* //=> Wed Dec 31 2014 00:00:00 +*/ +function lastDayOfYear$1(date, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = date_.getFullYear(); + date_.setFullYear(year + 1, 0, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/fp/lastDayOfYear.js +var _lastDayOfYear = convertToFP(lastDayOfYear$1, 1); +//#endregion +//#region dist/date-fns/fp/lastDayOfYearWithOptions.js +var _lastDayOfYearWithOptions = convertToFP(lastDayOfYear$1, 2); +//#endregion +//#region dist/date-fns/lightFormat.js +var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** +* @private +*/ +/** +* @name lightFormat +* @category Common Helpers +* @summary Format the date. +* +* @description +* Return the formatted date string in the given format. Unlike `format`, +* `lightFormat` doesn't use locales and outputs date using the most popular tokens. +* +* > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. +* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md +* +* The characters wrapped between two single quotes characters (') are escaped. +* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. +* +* Format of the string is based on Unicode Technical Standard #35: +* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table +* +* Accepted patterns: +* | Unit | Pattern | Result examples | +* |---------------------------------|---------|-----------------------------------| +* | AM, PM | a..aaa | AM, PM | +* | | aaaa | a.m., p.m. | +* | | aaaaa | a, p | +* | Calendar year | y | 44, 1, 1900, 2017 | +* | | yy | 44, 01, 00, 17 | +* | | yyy | 044, 001, 000, 017 | +* | | yyyy | 0044, 0001, 1900, 2017 | +* | Month (formatting) | M | 1, 2, ..., 12 | +* | | MM | 01, 02, ..., 12 | +* | Day of month | d | 1, 2, ..., 31 | +* | | dd | 01, 02, ..., 31 | +* | Hour [1-12] | h | 1, 2, ..., 11, 12 | +* | | hh | 01, 02, ..., 11, 12 | +* | Hour [0-23] | H | 0, 1, 2, ..., 23 | +* | | HH | 00, 01, 02, ..., 23 | +* | Minute | m | 0, 1, ..., 59 | +* | | mm | 00, 01, ..., 59 | +* | Second | s | 0, 1, ..., 59 | +* | | ss | 00, 01, ..., 59 | +* | Fraction of second | S | 0, 1, ..., 9 | +* | | SS | 00, 01, ..., 99 | +* | | SSS | 000, 001, ..., 999 | +* | | SSSS | ... | +* +* @param date - The original date +* @param format - The string of tokens +* +* @returns The formatted date string +* +* @throws `Invalid time value` if the date is invalid +* @throws format string contains an unescaped latin alphabet character +* +* @example +* const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') +* //=> '2014-02-11' +*/ +function lightFormat$1(date, formatStr) { + var date_ = toDate$1(date); + if (!isValid$1(date_)) throw new RangeError("Invalid time value"); + var tokens = formatStr.match(formattingTokensRegExp); + if (!tokens) return ""; + return tokens.map(function (substring) { + if (substring === "''") return "'"; + var firstCharacter = substring[0]; + if (firstCharacter === "'") return cleanEscapedString(substring); + var formatter = lightFormatters[firstCharacter]; + if (formatter) return formatter(date_, substring); + if (firstCharacter.match(unescapedLatinCharacterRegExp)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"); + return substring; + }).join(""); +} +function cleanEscapedString(input) { + var matches = input.match(escapedStringRegExp); + if (!matches) return input; + return matches[1].replace(doubleQuoteRegExp, "'"); +} +//#endregion +//#region dist/date-fns/fp/lightFormat.js +var _lightFormat = convertToFP(lightFormat$1, 2); +//#endregion +//#region dist/date-fns/fp/max.js +var _max = convertToFP(max$1, 1); +//#endregion +//#region dist/date-fns/fp/maxWithOptions.js +var _maxWithOptions = convertToFP(max$1, 2); +//#endregion +//#region dist/date-fns/milliseconds.js +/** +* @name milliseconds +* @category Millisecond Helpers +* @summary +* Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. +* +* @description +* Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. +* +* One years equals 365.2425 days according to the formula: +* +* > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400. +* > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +* +* One month is a year divided by 12. +* +* @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added. +* +* @returns The milliseconds +* +* @example +* // 1 year in milliseconds +* milliseconds({ years: 1 }) +* //=> 31556952000 +* +* // 3 months in milliseconds +* milliseconds({ months: 3 }) +* //=> 7889238000 +*/ +function milliseconds$1(_ref41) {var years = _ref41.years,months = _ref41.months,weeks = _ref41.weeks,days = _ref41.days,hours = _ref41.hours,minutes = _ref41.minutes,seconds = _ref41.seconds; + var totalDays = 0; + if (years) totalDays += years * daysInYear; + if (months) totalDays += months * (daysInYear / 12); + if (weeks) totalDays += weeks * 7; + if (days) totalDays += days; + var totalSeconds = totalDays * 24 * 60 * 60; + if (hours) totalSeconds += hours * 60 * 60; + if (minutes) totalSeconds += minutes * 60; + if (seconds) totalSeconds += seconds; + return Math.trunc(totalSeconds * 1e3); +} +//#endregion +//#region dist/date-fns/fp/milliseconds.js +var _milliseconds2 = convertToFP(milliseconds$1, 1); +//#endregion +//#region dist/date-fns/millisecondsToHours.js +/** +* @name millisecondsToHours +* @category Conversion Helpers +* @summary Convert milliseconds to hours. +* +* @description +* Convert a number of milliseconds to a full number of hours. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in hours +* +* @example +* // Convert 7200000 milliseconds to hours: +* const result = millisecondsToHours(7200000) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToHours(7199999) +* //=> 1 +*/ +function millisecondsToHours$1(milliseconds) { + var hours = milliseconds / millisecondsInHour; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/fp/millisecondsToHours.js +var _millisecondsToHours = convertToFP(millisecondsToHours$1, 1); +//#endregion +//#region dist/date-fns/millisecondsToMinutes.js +/** +* @name millisecondsToMinutes +* @category Conversion Helpers +* @summary Convert milliseconds to minutes. +* +* @description +* Convert a number of milliseconds to a full number of minutes. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in minutes +* +* @example +* // Convert 60000 milliseconds to minutes: +* const result = millisecondsToMinutes(60000) +* //=> 1 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToMinutes(119999) +* //=> 1 +*/ +function millisecondsToMinutes$1(milliseconds) { + var minutes = milliseconds / millisecondsInMinute; + return Math.trunc(minutes); +} +//#endregion +//#region dist/date-fns/fp/millisecondsToMinutes.js +var _millisecondsToMinutes = convertToFP(millisecondsToMinutes$1, 1); +//#endregion +//#region dist/date-fns/millisecondsToSeconds.js +/** +* @name millisecondsToSeconds +* @category Conversion Helpers +* @summary Convert milliseconds to seconds. +* +* @description +* Convert a number of milliseconds to a full number of seconds. +* +* @param milliseconds - The number of milliseconds to be converted +* +* @returns The number of milliseconds converted in seconds +* +* @example +* // Convert 1000 milliseconds to seconds: +* const result = millisecondsToSeconds(1000) +* //=> 1 +* +* @example +* // It uses floor rounding: +* const result = millisecondsToSeconds(1999) +* //=> 1 +*/ +function millisecondsToSeconds$1(milliseconds) { + var seconds = milliseconds / millisecondsInSecond; + return Math.trunc(seconds); +} +//#endregion +//#region dist/date-fns/fp/millisecondsToSeconds.js +var _millisecondsToSeconds = convertToFP(millisecondsToSeconds$1, 1); +//#endregion +//#region dist/date-fns/fp/min.js +var _min = convertToFP(min$1, 1); +//#endregion +//#region dist/date-fns/fp/minWithOptions.js +var _minWithOptions = convertToFP(min$1, 2); +//#endregion +//#region dist/date-fns/minutesToHours.js +/** +* @name minutesToHours +* @category Conversion Helpers +* @summary Convert minutes to hours. +* +* @description +* Convert a number of minutes to a full number of hours. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in hours +* +* @example +* // Convert 140 minutes to hours: +* const result = minutesToHours(120) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = minutesToHours(179) +* //=> 2 +*/ +function minutesToHours$1(minutes) { + var hours = minutes / 60; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/fp/minutesToHours.js +var _minutesToHours = convertToFP(minutesToHours$1, 1); +//#endregion +//#region dist/date-fns/minutesToMilliseconds.js +/** +* @name minutesToMilliseconds +* @category Conversion Helpers +* @summary Convert minutes to milliseconds. +* +* @description +* Convert a number of minutes to a full number of milliseconds. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in milliseconds +* +* @example +* // Convert 2 minutes to milliseconds +* const result = minutesToMilliseconds(2) +* //=> 120000 +*/ +function minutesToMilliseconds$1(minutes) { + return Math.trunc(minutes * millisecondsInMinute); +} +//#endregion +//#region dist/date-fns/fp/minutesToMilliseconds.js +var _minutesToMilliseconds = convertToFP(minutesToMilliseconds$1, 1); +//#endregion +//#region dist/date-fns/minutesToSeconds.js +/** +* @name minutesToSeconds +* @category Conversion Helpers +* @summary Convert minutes to seconds. +* +* @description +* Convert a number of minutes to a full number of seconds. +* +* @param minutes - The number of minutes to be converted +* +* @returns The number of minutes converted in seconds +* +* @example +* // Convert 2 minutes to seconds +* const result = minutesToSeconds(2) +* //=> 120 +*/ +function minutesToSeconds$1(minutes) { + return Math.trunc(minutes * 60); +} +//#endregion +//#region dist/date-fns/fp/minutesToSeconds.js +var _minutesToSeconds = convertToFP(minutesToSeconds$1, 1); +//#endregion +//#region dist/date-fns/monthsToQuarters.js +/** +* @name monthsToQuarters +* @category Conversion Helpers +* @summary Convert number of months to quarters. +* +* @description +* Convert a number of months to a full number of quarters. +* +* @param months - The number of months to be converted. +* +* @returns The number of months converted in quarters +* +* @example +* // Convert 6 months to quarters: +* const result = monthsToQuarters(6) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = monthsToQuarters(7) +* //=> 2 +*/ +function monthsToQuarters$1(months) { + var quarters = months / 3; + return Math.trunc(quarters); +} +//#endregion +//#region dist/date-fns/fp/monthsToQuarters.js +var _monthsToQuarters = convertToFP(monthsToQuarters$1, 1); +//#endregion +//#region dist/date-fns/monthsToYears.js +/** +* @name monthsToYears +* @category Conversion Helpers +* @summary Convert number of months to years. +* +* @description +* Convert a number of months to a full number of years. +* +* @param months - The number of months to be converted +* +* @returns The number of months converted in years +* +* @example +* // Convert 36 months to years: +* const result = monthsToYears(36) +* //=> 3 +* +* // It uses floor rounding: +* const result = monthsToYears(40) +* //=> 3 +*/ +function monthsToYears$1(months) { + var years = months / 12; + return Math.trunc(years); +} +//#endregion +//#region dist/date-fns/fp/monthsToYears.js +var _monthsToYears = convertToFP(monthsToYears$1, 1); +//#endregion +//#region dist/date-fns/nextDay.js +/** +* The {@link nextDay} function options. +*/ +/** +* @name nextDay +* @category Weekday Helpers +* @summary When is the next day of the week? 0-6 the day of the week, 0 represents Sunday. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to check +* @param day - Day of the week +* @param options - An object with options +* +* @returns The date is the next day of the week +* +* @example +* // When is the next Monday after Mar, 20, 2020? +* const result = nextDay(new Date(2020, 2, 20), 1) +* //=> Mon Mar 23 2020 00:00:00 +* +* @example +* // When is the next Tuesday after Mar, 21, 2020? +* const result = nextDay(new Date(2020, 2, 21), 2) +* //=> Tue Mar 24 2020 00:00:00 +*/ +function nextDay$1(date, day, options) { + var delta = day - getDay$1(date, options); + if (delta <= 0) delta += 7; + return addDays$1(date, delta, options); +} +//#endregion +//#region dist/date-fns/fp/nextDay.js +var _nextDay = convertToFP(nextDay$1, 2); +//#endregion +//#region dist/date-fns/fp/nextDayWithOptions.js +var _nextDayWithOptions = convertToFP(nextDay$1, 3); +//#endregion +//#region dist/date-fns/nextFriday.js +/** +* The {@link nextFriday} function options. +*/ +/** +* @name nextFriday +* @category Weekday Helpers +* @summary When is the next Friday? +* +* @description +* When is the next Friday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Friday +* +* @example +* // When is the next Friday after Mar, 22, 2020? +* const result = nextFriday(new Date(2020, 2, 22)) +* //=> Fri Mar 27 2020 00:00:00 +*/ +function nextFriday$1(date, options) { + return nextDay$1(date, 5, options); +} +//#endregion +//#region dist/date-fns/fp/nextFriday.js +var _nextFriday = convertToFP(nextFriday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextFridayWithOptions.js +var _nextFridayWithOptions = convertToFP(nextFriday$1, 2); +//#endregion +//#region dist/date-fns/nextMonday.js +/** +* The {@link nextMonday} function options. +*/ +/** +* @name nextMonday +* @category Weekday Helpers +* @summary When is the next Monday? +* +* @description +* When is the next Monday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, returned from the context function if passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Monday +* +* @example +* // When is the next Monday after Mar, 22, 2020? +* const result = nextMonday(new Date(2020, 2, 22)) +* //=> Mon Mar 23 2020 00:00:00 +*/ +function nextMonday$1(date, options) { + return nextDay$1(date, 1, options); +} +//#endregion +//#region dist/date-fns/fp/nextMonday.js +var _nextMonday = convertToFP(nextMonday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextMondayWithOptions.js +var _nextMondayWithOptions = convertToFP(nextMonday$1, 2); +//#endregion +//#region dist/date-fns/nextSaturday.js +/** +* The {@link nextSaturday} function options. +*/ +/** +* @name nextSaturday +* @category Weekday Helpers +* @summary When is the next Saturday? +* +* @description +* When is the next Saturday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Saturday +* +* @example +* // When is the next Saturday after Mar, 22, 2020? +* const result = nextSaturday(new Date(2020, 2, 22)) +* //=> Sat Mar 28 2020 00:00:00 +*/ +function nextSaturday$1(date, options) { + return nextDay$1(date, 6, options); +} +//#endregion +//#region dist/date-fns/fp/nextSaturday.js +var _nextSaturday = convertToFP(nextSaturday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextSaturdayWithOptions.js +var _nextSaturdayWithOptions = convertToFP(nextSaturday$1, 2); +//#endregion +//#region dist/date-fns/nextSunday.js +/** +* The {@link nextSunday} function options. +*/ +/** +* @name nextSunday +* @category Weekday Helpers +* @summary When is the next Sunday? +* +* @description +* When is the next Sunday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned if a context is provided. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Sunday +* +* @example +* // When is the next Sunday after March 22, 2020? +* const result = nextSunday(new Date(2020, 2, 22)) +* //=> Sun Mar 29 2020 00:00:00 +*/ +function nextSunday$1(date, options) { + return nextDay$1(date, 0, options); +} +//#endregion +//#region dist/date-fns/fp/nextSunday.js +var _nextSunday = convertToFP(nextSunday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextSundayWithOptions.js +var _nextSundayWithOptions = convertToFP(nextSunday$1, 2); +//#endregion +//#region dist/date-fns/nextThursday.js +/** +* The {@link nextThursday} function options. +*/ +/** +* @name nextThursday +* @category Weekday Helpers +* @summary When is the next Thursday? +* +* @description +* When is the next Thursday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Thursday +* +* @example +* // When is the next Thursday after Mar, 22, 2020? +* const result = nextThursday(new Date(2020, 2, 22)) +* //=> Thur Mar 26 2020 00:00:00 +*/ +function nextThursday$1(date, options) { + return nextDay$1(date, 4, options); +} +//#endregion +//#region dist/date-fns/fp/nextThursday.js +var _nextThursday = convertToFP(nextThursday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextThursdayWithOptions.js +var _nextThursdayWithOptions = convertToFP(nextThursday$1, 2); +//#endregion +//#region dist/date-fns/nextTuesday.js +/** +* The {@link nextTuesday} function options. +*/ +/** +* @name nextTuesday +* @category Weekday Helpers +* @summary When is the next Tuesday? +* +* @description +* When is the next Tuesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Tuesday +* +* @example +* // When is the next Tuesday after Mar, 22, 2020? +* const result = nextTuesday(new Date(2020, 2, 22)) +* //=> Tue Mar 24 2020 00:00:00 +*/ +function nextTuesday$1(date, options) { + return nextDay$1(date, 2, options); +} +//#endregion +//#region dist/date-fns/fp/nextTuesday.js +var _nextTuesday = convertToFP(nextTuesday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextTuesdayWithOptions.js +var _nextTuesdayWithOptions = convertToFP(nextTuesday$1, 2); +//#endregion +//#region dist/date-fns/nextWednesday.js +/** +* The {@link nextWednesday} function options. +*/ +/** +* @name nextWednesday +* @category Weekday Helpers +* @summary When is the next Wednesday? +* +* @description +* When is the next Wednesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The next Wednesday +* +* @example +* // When is the next Wednesday after Mar, 22, 2020? +* const result = nextWednesday(new Date(2020, 2, 22)) +* //=> Wed Mar 25 2020 00:00:00 +*/ +function nextWednesday$1(date, options) { + return nextDay$1(date, 3, options); +} +//#endregion +//#region dist/date-fns/fp/nextWednesday.js +var _nextWednesday = convertToFP(nextWednesday$1, 1); +//#endregion +//#region dist/date-fns/fp/nextWednesdayWithOptions.js +var _nextWednesdayWithOptions = convertToFP(nextWednesday$1, 2); +//#endregion +//#region dist/date-fns/fp/parse.js +var _parse = convertToFP(parse$1, 3); +//#endregion +//#region dist/date-fns/parseISO.js +/** +* The {@link parseISO} function options. +*/ +/** +* @name parseISO +* @category Common Helpers +* @summary Parse ISO string +* +* @description +* Parse the given string in ISO 8601 format and return an instance of Date. +* +* Function accepts complete ISO 8601 formats as well as partial implementations. +* ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 +* +* If the argument isn't a string, the function cannot parse the string or +* the values are invalid, it returns Invalid Date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* @param options - An object with options +* +* @returns The parsed date in the local time zone +* +* @example +* // Convert string '2014-02-11T11:30:30' to date: +* const result = parseISO('2014-02-11T11:30:30') +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert string '+02014101' to date, +* // if the additional number of digits in the extended year format is 1: +* const result = parseISO('+02014101', { additionalDigits: 1 }) +* //=> Fri Apr 11 2014 00:00:00 +*/ +function parseISO$1(argument, options) {var _options$additionalDi; + var invalidDate = function invalidDate() {return constructFrom$1(options === null || options === void 0 ? void 0 : options.in, NaN);}; + var additionalDigits = (_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2; + var dateStrings = splitDateString(argument); + var date; + if (dateStrings.date) { + var parseYearResult = parseYear(dateStrings.date, additionalDigits); + date = parseDate(parseYearResult.restDateString, parseYearResult.year); + } + if (!date || isNaN(+date)) return invalidDate(); + var timestamp = +date; + var time = 0; + var offset; + if (dateStrings.time) { + time = parseTime(dateStrings.time); + if (isNaN(time)) return invalidDate(); + } + if (dateStrings.timezone) { + offset = parseTimezone(dateStrings.timezone); + if (isNaN(offset)) return invalidDate(); + } else { + var tmpDate = new Date(timestamp + time); + var result = toDate$1(0, options === null || options === void 0 ? void 0 : options.in); + result.setFullYear(tmpDate.getUTCFullYear(), tmpDate.getUTCMonth(), tmpDate.getUTCDate()); + result.setHours(tmpDate.getUTCHours(), tmpDate.getUTCMinutes(), tmpDate.getUTCSeconds(), tmpDate.getUTCMilliseconds()); + return result; + } + return toDate$1(timestamp + time + offset, options === null || options === void 0 ? void 0 : options.in); +} +var patterns = { + dateTimeDelimiter: /[T ]/, + timeZoneDelimiter: /[Z ]/i, + timezone: /([Z+-].*)$/ +}; +var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; +var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; +var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; +function splitDateString(dateString) { + var dateStrings = {}; + var array = dateString.split(patterns.dateTimeDelimiter); + var timeString; + if (array.length > 2) return dateStrings; + if (/:/.test(array[0])) timeString = array[0];else + { + dateStrings.date = array[0]; + timeString = array[1]; + if (patterns.timeZoneDelimiter.test(dateStrings.date)) { + dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; + timeString = dateString.substr(dateStrings.date.length, dateString.length); + } + } + if (timeString) { + var token = patterns.timezone.exec(timeString); + if (token) { + dateStrings.time = timeString.replace(token[1], ""); + dateStrings.timezone = token[1]; + } else dateStrings.time = timeString; + } + return dateStrings; +} +function parseYear(dateString, additionalDigits) { + var regex = new RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + additionalDigits) + "})|(\\d{2}|[+-]\\d{" + (2 + additionalDigits) + "})$)"); + var captures = dateString.match(regex); + if (!captures) return { + year: NaN, + restDateString: "" + }; + var year = captures[1] ? parseInt(captures[1]) : null; + var century = captures[2] ? parseInt(captures[2]) : null; + return { + year: century === null ? year : century * 100, + restDateString: dateString.slice((captures[1] || captures[2]).length) + }; +} +function parseDate(dateString, year) { + if (year === null) return /* @__PURE__ */new Date(NaN); + var captures = dateString.match(dateRegex); + if (!captures) return /* @__PURE__ */new Date(NaN); + var isWeekDate = !!captures[4]; + var dayOfYear = parseDateUnit(captures[1]); + var month = parseDateUnit(captures[2]) - 1; + var day = parseDateUnit(captures[3]); + var week = parseDateUnit(captures[4]); + var dayOfWeek = parseDateUnit(captures[5]) - 1; + if (isWeekDate) { + if (!validateWeekDate(year, week, dayOfWeek)) return /* @__PURE__ */new Date(NaN); + return dayOfISOWeekYear(year, week, dayOfWeek); + } else { + var date = /* @__PURE__ */new Date(0); + if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) return /* @__PURE__ */new Date(NaN); + date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); + return date; + } +} +function parseDateUnit(value) { + return value ? parseInt(value) : 1; +} +function parseTime(timeString) { + var captures = timeString.match(timeRegex); + if (!captures) return NaN; + var hours = parseTimeUnit(captures[1]); + var minutes = parseTimeUnit(captures[2]); + var seconds = parseTimeUnit(captures[3]); + if (!validateTime(hours, minutes, seconds)) return NaN; + return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1e3; +} +function parseTimeUnit(value) { + return value && parseFloat(value.replace(",", ".")) || 0; +} +function parseTimezone(timezoneString) { + if (timezoneString === "Z") return 0; + var captures = timezoneString.match(timezoneRegex); + if (!captures) return 0; + var sign = captures[1] === "+" ? -1 : 1; + var hours = parseInt(captures[2]); + var minutes = captures[3] && parseInt(captures[3]) || 0; + if (!validateTimezone(hours, minutes)) return NaN; + return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute); +} +function dayOfISOWeekYear(isoWeekYear, week, day) { + var date = /* @__PURE__ */new Date(0); + date.setUTCFullYear(isoWeekYear, 0, 4); + var fourthOfJanuaryDay = date.getUTCDay() || 7; + var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} +var daysInMonths = [ +31, +null, +31, +30, +31, +30, +31, +31, +30, +31, +30, +31]; + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} +function validateDate(year, month, date) { + return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); +} +function validateDayOfYearDate(year, dayOfYear) { + return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); +} +function validateWeekDate(_year, week, day) { + return week >= 1 && week <= 53 && day >= 0 && day <= 6; +} +function validateTime(hours, minutes, seconds) { + if (hours === 24) return minutes === 0 && seconds === 0; + return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; +} +function validateTimezone(_hours, minutes) { + return minutes >= 0 && minutes <= 59; +} +//#endregion +//#region dist/date-fns/fp/parseISO.js +var _parseISO = convertToFP(parseISO$1, 1); +//#endregion +//#region dist/date-fns/fp/parseISOWithOptions.js +var _parseISOWithOptions = convertToFP(parseISO$1, 2); +//#endregion +//#region dist/date-fns/parseJSON.js +/** +* The {@link parseJSON} function options. +*/ +/** +* Converts a complete ISO date string in UTC time, the typical format for transmitting +* a date in JSON, to a JavaScript `Date` instance. +* +* This is a minimal implementation for converting dates retrieved from a JSON API to +* a `Date` instance which can be used with other functions in the `date-fns` library. +* The following formats are supported: +* +* - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())` +* - `2000-03-15T05:20:10Z`: Without milliseconds +* - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages +* - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages +* - `2000-03-15T05:20:10+0000`: With a zero offset without a colon +* - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol +* - `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 +* - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting +* +* For convenience and ease of use these other input types are also supported +* via [toDate](https://date-fns.org/docs/toDate): +* +* - A `Date` instance will be cloned +* - A `number` will be treated as a timestamp +* +* Any other input type or invalid date strings will return an `Invalid Date`. +* +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param dateStr - A fully formed ISO8601 date string to convert +* @param options - An object with options +* +* @returns The parsed date in the local time zone +*/ +function parseJSON$1(dateStr, options) { + var parts = dateStr.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/); + if (!parts) return toDate$1(NaN, options === null || options === void 0 ? void 0 : options.in); + return toDate$1(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)), options === null || options === void 0 ? void 0 : options.in); +} +//#endregion +//#region dist/date-fns/fp/parseJSON.js +var _parseJSON = convertToFP(parseJSON$1, 1); +//#endregion +//#region dist/date-fns/fp/parseJSONWithOptions.js +var _parseJSONWithOptions = convertToFP(parseJSON$1, 2); +//#endregion +//#region dist/date-fns/fp/parseWithOptions.js +var _parseWithOptions = convertToFP(parse$1, 4); +//#endregion +//#region dist/date-fns/subDays.js +/** +* The {@link subDays} function options. +*/ +/** +* @name subDays +* @category Day Helpers +* @summary Subtract the specified number of days from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of days to be subtracted. +* @param options - An object with options +* +* @returns The new date with the days subtracted +* +* @example +* // Subtract 10 days from 1 September 2014: +* const result = subDays(new Date(2014, 8, 1), 10) +* //=> Fri Aug 22 2014 00:00:00 +*/ +function subDays$1(date, amount, options) { + return addDays$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/previousDay.js +/** +* The {@link previousDay} function options. +*/ +/** +* @name previousDay +* @category Weekday Helpers +* @summary When is the previous day of the week? +* +* @description +* When is the previous day of the week? 0-6 the day of the week, 0 represents Sunday. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to check +* @param day - The day of the week +* @param options - An object with options +* +* @returns The date is the previous day of week +* +* @example +* // When is the previous Monday before Mar, 20, 2020? +* const result = previousDay(new Date(2020, 2, 20), 1) +* //=> Mon Mar 16 2020 00:00:00 +* +* @example +* // When is the previous Tuesday before Mar, 21, 2020? +* const result = previousDay(new Date(2020, 2, 21), 2) +* //=> Tue Mar 17 2020 00:00:00 +*/ +function previousDay$1(date, day, options) { + var delta = getDay$1(date, options) - day; + if (delta <= 0) delta += 7; + return subDays$1(date, delta, options); +} +//#endregion +//#region dist/date-fns/fp/previousDay.js +var _previousDay = convertToFP(previousDay$1, 2); +//#endregion +//#region dist/date-fns/fp/previousDayWithOptions.js +var _previousDayWithOptions = convertToFP(previousDay$1, 3); +//#endregion +//#region dist/date-fns/previousFriday.js +/** +* The {@link previousFriday} function options. +*/ +/** +* @name previousFriday +* @category Weekday Helpers +* @summary When is the previous Friday? +* +* @description +* When is the previous Friday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Friday +* +* @example +* // When is the previous Friday before Jun, 19, 2021? +* const result = previousFriday(new Date(2021, 5, 19)) +* //=> Fri June 18 2021 00:00:00 +*/ +function previousFriday$1(date, options) { + return previousDay$1(date, 5, options); +} +//#endregion +//#region dist/date-fns/fp/previousFriday.js +var _previousFriday = convertToFP(previousFriday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousFridayWithOptions.js +var _previousFridayWithOptions = convertToFP(previousFriday$1, 2); +//#endregion +//#region dist/date-fns/previousMonday.js +/** +* The {@link previousMonday} function options. +*/ +/** +* @name previousMonday +* @category Weekday Helpers +* @summary When is the previous Monday? +* +* @description +* When is the previous Monday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Monday +* +* @example +* // When is the previous Monday before Jun, 18, 2021? +* const result = previousMonday(new Date(2021, 5, 18)) +* //=> Mon June 14 2021 00:00:00 +*/ +function previousMonday$1(date, options) { + return previousDay$1(date, 1, options); +} +//#endregion +//#region dist/date-fns/fp/previousMonday.js +var _previousMonday = convertToFP(previousMonday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousMondayWithOptions.js +var _previousMondayWithOptions = convertToFP(previousMonday$1, 2); +//#endregion +//#region dist/date-fns/previousSaturday.js +/** +* The {@link previousSaturday} function options. +*/ +/** +* @name previousSaturday +* @category Weekday Helpers +* @summary When is the previous Saturday? +* +* @description +* When is the previous Saturday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Saturday +* +* @example +* // When is the previous Saturday before Jun, 20, 2021? +* const result = previousSaturday(new Date(2021, 5, 20)) +* //=> Sat June 19 2021 00:00:00 +*/ +function previousSaturday$1(date, options) { + return previousDay$1(date, 6, options); +} +//#endregion +//#region dist/date-fns/fp/previousSaturday.js +var _previousSaturday = convertToFP(previousSaturday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousSaturdayWithOptions.js +var _previousSaturdayWithOptions = convertToFP(previousSaturday$1, 2); +//#endregion +//#region dist/date-fns/previousSunday.js +/** +* The {@link previousSunday} function options. +*/ +/** +* @name previousSunday +* @category Weekday Helpers +* @summary When is the previous Sunday? +* +* @description +* When is the previous Sunday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - The options +* +* @returns The previous Sunday +* +* @example +* // When is the previous Sunday before Jun, 21, 2021? +* const result = previousSunday(new Date(2021, 5, 21)) +* //=> Sun June 20 2021 00:00:00 +*/ +function previousSunday$1(date, options) { + return previousDay$1(date, 0, options); +} +//#endregion +//#region dist/date-fns/fp/previousSunday.js +var _previousSunday = convertToFP(previousSunday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousSundayWithOptions.js +var _previousSundayWithOptions = convertToFP(previousSunday$1, 2); +//#endregion +//#region dist/date-fns/previousThursday.js +/** +* The {@link previousThursday} function options. +*/ +/** +* @name previousThursday +* @category Weekday Helpers +* @summary When is the previous Thursday? +* +* @description +* When is the previous Thursday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Thursday +* +* @example +* // When is the previous Thursday before Jun, 18, 2021? +* const result = previousThursday(new Date(2021, 5, 18)) +* //=> Thu June 17 2021 00:00:00 +*/ +function previousThursday$1(date, options) { + return previousDay$1(date, 4, options); +} +//#endregion +//#region dist/date-fns/fp/previousThursday.js +var _previousThursday = convertToFP(previousThursday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousThursdayWithOptions.js +var _previousThursdayWithOptions = convertToFP(previousThursday$1, 2); +//#endregion +//#region dist/date-fns/previousTuesday.js +/** +* The {@link previousTuesday} function options. +*/ +/** +* @name previousTuesday +* @category Weekday Helpers +* @summary When is the previous Tuesday? +* +* @description +* When is the previous Tuesday? +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Tuesday +* +* @example +* // When is the previous Tuesday before Jun, 18, 2021? +* const result = previousTuesday(new Date(2021, 5, 18)) +* //=> Tue June 15 2021 00:00:00 +*/ +function previousTuesday$1(date, options) { + return previousDay$1(date, 2, options); +} +//#endregion +//#region dist/date-fns/fp/previousTuesday.js +var _previousTuesday = convertToFP(previousTuesday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousTuesdayWithOptions.js +var _previousTuesdayWithOptions = convertToFP(previousTuesday$1, 2); +//#endregion +//#region dist/date-fns/previousWednesday.js +/** +* The {@link previousWednesday} function options. +*/ +/** +* @name previousWednesday +* @category Weekday Helpers +* @summary When is the previous Wednesday? +* +* @description +* When is the previous Wednesday? +* +* @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to start counting from +* @param options - An object with options +* +* @returns The previous Wednesday +* +* @example +* // When is the previous Wednesday before Jun, 18, 2021? +* const result = previousWednesday(new Date(2021, 5, 18)) +* //=> Wed June 16 2021 00:00:00 +*/ +function previousWednesday$1(date, options) { + return previousDay$1(date, 3, options); +} +//#endregion +//#region dist/date-fns/fp/previousWednesday.js +var _previousWednesday = convertToFP(previousWednesday$1, 1); +//#endregion +//#region dist/date-fns/fp/previousWednesdayWithOptions.js +var _previousWednesdayWithOptions = convertToFP(previousWednesday$1, 2); +//#endregion +//#region dist/date-fns/quartersToMonths.js +/** +* @name quartersToMonths +* @category Conversion Helpers +* @summary Convert number of quarters to months. +* +* @description +* Convert a number of quarters to a full number of months. +* +* @param quarters - The number of quarters to be converted +* +* @returns The number of quarters converted in months +* +* @example +* // Convert 2 quarters to months +* const result = quartersToMonths(2) +* //=> 6 +*/ +function quartersToMonths$1(quarters) { + return Math.trunc(quarters * 3); +} +//#endregion +//#region dist/date-fns/fp/quartersToMonths.js +var _quartersToMonths = convertToFP(quartersToMonths$1, 1); +//#endregion +//#region dist/date-fns/quartersToYears.js +/** +* @name quartersToYears +* @category Conversion Helpers +* @summary Convert number of quarters to years. +* +* @description +* Convert a number of quarters to a full number of years. +* +* @param quarters - The number of quarters to be converted +* +* @returns The number of quarters converted in years +* +* @example +* // Convert 8 quarters to years +* const result = quartersToYears(8) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = quartersToYears(11) +* //=> 2 +*/ +function quartersToYears$1(quarters) { + var years = quarters / 4; + return Math.trunc(years); +} +//#endregion +//#region dist/date-fns/fp/quartersToYears.js +var _quartersToYears = convertToFP(quartersToYears$1, 1); +//#endregion +//#region dist/date-fns/roundToNearestHours.js +/** +* The {@link roundToNearestHours} function options. +*/ +/** +* @name roundToNearestHours +* @category Hour Helpers +* @summary Rounds the given date to the nearest hour +* +* @description +* Rounds the given date to the nearest hour (or number of hours). +* Rounds up when the given date is exactly between the nearest round hours. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to round +* @param options - An object with options. +* +* @returns The new date rounded to the closest hour +* +* @example +* // Round 10 July 2014 12:34:56 to nearest hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56)) +* //=> Thu Jul 10 2014 13:00:00 +* +* @example +* // Round 10 July 2014 12:34:56 to nearest half hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 6 }) +* //=> Thu Jul 10 2014 12:00:00 +* +* @example +* // Round 10 July 2014 12:34:56 to nearest half hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { nearestTo: 8 }) +* //=> Thu Jul 10 2014 16:00:00 +* +* @example +* // Floor (rounds down) 10 July 2014 12:34:56 to nearest hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 1, 23, 45), { roundingMethod: 'ceil' }) +* //=> Thu Jul 10 2014 02:00:00 +* +* @example +* // Ceil (rounds up) 10 July 2014 12:34:56 to nearest quarter hour: +* const result = roundToNearestHours(new Date(2014, 6, 10, 12, 34, 56), { roundingMethod: 'floor', nearestTo: 8 }) +* //=> Thu Jul 10 2014 08:00:00 +*/ +function roundToNearestHours$1(date, options) {var _options$nearestTo, _options$roundingMeth2; + var nearestTo = (_options$nearestTo = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1; + if (nearestTo < 1 || nearestTo > 12) return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var fractionalMinutes = date_.getMinutes() / 60; + var fractionalSeconds = date_.getSeconds() / 60 / 60; + var fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60 / 60; + var hours = date_.getHours() + fractionalMinutes + fractionalSeconds + fractionalMilliseconds; + var roundedHours = getRoundingMethod((_options$roundingMeth2 = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth2 !== void 0 ? _options$roundingMeth2 : "round")(hours / nearestTo) * nearestTo; + date_.setHours(roundedHours, 0, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/fp/roundToNearestHours.js +var _roundToNearestHours = convertToFP(roundToNearestHours$1, 1); +//#endregion +//#region dist/date-fns/fp/roundToNearestHoursWithOptions.js +var _roundToNearestHoursWithOptions = convertToFP(roundToNearestHours$1, 2); +//#endregion +//#region dist/date-fns/roundToNearestMinutes.js +/** +* The {@link roundToNearestMinutes} function options. +*/ +/** +* @name roundToNearestMinutes +* @category Minute Helpers +* @summary Rounds the given date to the nearest minute +* +* @description +* Rounds the given date to the nearest minute (or number of minutes). +* Rounds up when the given date is exactly between the nearest round minutes. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to round +* @param options - An object with options. +* +* @returns The new date rounded to the closest minute +* +* @example +* // Round 10 July 2014 12:12:34 to nearest minute: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) +* //=> Thu Jul 10 2014 12:13:00 +* +* @example +* // Round 10 July 2014 12:12:34 to nearest quarter hour: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 }) +* //=> Thu Jul 10 2014 12:15:00 +* +* @example +* // Floor (rounds down) 10 July 2014 12:12:34 to nearest minute: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'floor' }) +* //=> Thu Jul 10 2014 12:12:00 +* +* @example +* // Ceil (rounds up) 10 July 2014 12:12:34 to nearest half hour: +* const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { roundingMethod: 'ceil', nearestTo: 30 }) +* //=> Thu Jul 10 2014 12:30:00 +*/ +function roundToNearestMinutes$1(date, options) {var _options$nearestTo2, _options$roundingMeth3; + var nearestTo = (_options$nearestTo2 = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo2 !== void 0 ? _options$nearestTo2 : 1; + if (nearestTo < 1 || nearestTo > 30) return constructFrom$1(date, NaN); + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var fractionalSeconds = date_.getSeconds() / 60; + var fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60; + var minutes = date_.getMinutes() + fractionalSeconds + fractionalMilliseconds; + var roundedMinutes = getRoundingMethod((_options$roundingMeth3 = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth3 !== void 0 ? _options$roundingMeth3 : "round")(minutes / nearestTo) * nearestTo; + date_.setMinutes(roundedMinutes, 0, 0); + return date_; +} +//#endregion +//#region dist/date-fns/fp/roundToNearestMinutes.js +var _roundToNearestMinutes = convertToFP(roundToNearestMinutes$1, 1); +//#endregion +//#region dist/date-fns/fp/roundToNearestMinutesWithOptions.js +var _roundToNearestMinutesWithOptions = convertToFP(roundToNearestMinutes$1, 2); +//#endregion +//#region dist/date-fns/secondsToHours.js +/** +* @name secondsToHours +* @category Conversion Helpers +* @summary Convert seconds to hours. +* +* @description +* Convert a number of seconds to a full number of hours. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in hours +* +* @example +* // Convert 7200 seconds into hours +* const result = secondsToHours(7200) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = secondsToHours(7199) +* //=> 1 +*/ +function secondsToHours$1(seconds) { + var hours = seconds / secondsInHour; + return Math.trunc(hours); +} +//#endregion +//#region dist/date-fns/fp/secondsToHours.js +var _secondsToHours = convertToFP(secondsToHours$1, 1); +//#endregion +//#region dist/date-fns/secondsToMilliseconds.js +/** +* @name secondsToMilliseconds +* @category Conversion Helpers +* @summary Convert seconds to milliseconds. +* +* @description +* Convert a number of seconds to a full number of milliseconds. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in milliseconds +* +* @example +* // Convert 2 seconds into milliseconds +* const result = secondsToMilliseconds(2) +* //=> 2000 +*/ +function secondsToMilliseconds$1(seconds) { + return seconds * millisecondsInSecond; +} +//#endregion +//#region dist/date-fns/fp/secondsToMilliseconds.js +var _secondsToMilliseconds = convertToFP(secondsToMilliseconds$1, 1); +//#endregion +//#region dist/date-fns/secondsToMinutes.js +/** +* @name secondsToMinutes +* @category Conversion Helpers +* @summary Convert seconds to minutes. +* +* @description +* Convert a number of seconds to a full number of minutes. +* +* @param seconds - The number of seconds to be converted +* +* @returns The number of seconds converted in minutes +* +* @example +* // Convert 120 seconds into minutes +* const result = secondsToMinutes(120) +* //=> 2 +* +* @example +* // It uses floor rounding: +* const result = secondsToMinutes(119) +* //=> 1 +*/ +function secondsToMinutes$1(seconds) { + var minutes = seconds / 60; + return Math.trunc(minutes); +} +//#endregion +//#region dist/date-fns/fp/secondsToMinutes.js +var _secondsToMinutes = convertToFP(secondsToMinutes$1, 1); +//#endregion +//#region dist/date-fns/setMonth.js +/** +* The {@link setMonth} function options. +*/ +/** +* @name setMonth +* @category Month Helpers +* @summary Set the month to the given date. +* +* @description +* Set the month to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param month - The month index to set (0-11) +* @param options - The options +* +* @returns The new date with the month set +* +* @example +* // Set February to 1 September 2014: +* const result = setMonth(new Date(2014, 8, 1), 1) +* //=> Sat Feb 01 2014 00:00:00 +*/ +function setMonth$1(date, month, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var day = _date.getDate(); + var midMonth = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + midMonth.setFullYear(year, month, 15); + midMonth.setHours(0, 0, 0, 0); + var daysInMonth = getDaysInMonth$1(midMonth); + _date.setMonth(month, Math.min(day, daysInMonth)); + return _date; +} +//#endregion +//#region dist/date-fns/set.js +/** +* The {@link set} function options. +*/ +/** +* @name set +* @category Common Helpers +* @summary Set date values to a given date. +* +* @description +* Set date values to a given date. +* +* Sets time values to date from object `values`. +* A value is not set if it is undefined or null or doesn't exist in `values`. +* +* Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts +* to use native `Date#setX` methods. If you use this function, you may not want to include the +* other `setX` functions that date-fns provides if you are concerned about the bundle size. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param values - The date values to be set +* @param options - The options +* +* @returns The new date with options set +* +* @example +* // Transform 1 September 2014 into 20 October 2015 in a single line: +* const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) +* //=> Tue Oct 20 2015 00:00:00 +* +* @example +* // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: +* const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) +* //=> Mon Sep 01 2014 12:23:45 +*/ +function set$1(date, values, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+_date)) return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + if (values.year != null) _date.setFullYear(values.year); + if (values.month != null) _date = setMonth$1(_date, values.month); + if (values.date != null) _date.setDate(values.date); + if (values.hours != null) _date.setHours(values.hours); + if (values.minutes != null) _date.setMinutes(values.minutes); + if (values.seconds != null) _date.setSeconds(values.seconds); + if (values.milliseconds != null) _date.setMilliseconds(values.milliseconds); + return _date; +} +//#endregion +//#region dist/date-fns/fp/set.js +var _set = convertToFP(set$1, 2); +//#endregion +//#region dist/date-fns/setDate.js +/** +* The {@link setDate} function options. +*/ +/** +* @name setDate +* @category Day Helpers +* @summary Set the day of the month to the given date. +* +* @description +* Set the day of the month to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param dayOfMonth - The day of the month of the new date +* @param options - The options +* +* @returns The new date with the day of the month set +* +* @example +* // Set the 30th day of the month to 1 September 2014: +* const result = setDate(new Date(2014, 8, 1), 30) +* //=> Tue Sep 30 2014 00:00:00 +*/ +function setDate$1(date, dayOfMonth, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setDate(dayOfMonth); + return _date; +} +//#endregion +//#region dist/date-fns/fp/setDate.js +var _setDate = convertToFP(setDate$1, 2); +//#endregion +//#region dist/date-fns/fp/setDateWithOptions.js +var _setDateWithOptions = convertToFP(setDate$1, 3); +//#endregion +//#region dist/date-fns/fp/setDay.js +var _setDay = convertToFP(setDay$1, 2); +//#endregion +//#region dist/date-fns/setDayOfYear.js +/** +* The {@link setDayOfYear} function options. +*/ +/** +* @name setDayOfYear +* @category Day Helpers +* @summary Set the day of the year to the given date. +* +* @description +* Set the day of the year to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param dayOfYear - The day of the year of the new date +* @param options - An object with options +* +* @returns The new date with the day of the year set +* +* @example +* // Set the 2nd day of the year to 2 July 2014: +* const result = setDayOfYear(new Date(2014, 6, 2), 2) +* //=> Thu Jan 02 2014 00:00:00 +*/ +function setDayOfYear$1(date, dayOfYear, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMonth(0); + date_.setDate(dayOfYear); + return date_; +} +//#endregion +//#region dist/date-fns/fp/setDayOfYear.js +var _setDayOfYear = convertToFP(setDayOfYear$1, 2); +//#endregion +//#region dist/date-fns/fp/setDayOfYearWithOptions.js +var _setDayOfYearWithOptions = convertToFP(setDayOfYear$1, 3); +//#endregion +//#region dist/date-fns/fp/setDayWithOptions.js +var _setDayWithOptions = convertToFP(setDay$1, 3); +//#endregion +//#region dist/date-fns/setHours.js +/** +* The {@link setHours} function options. +*/ +/** +* @name setHours +* @category Hour Helpers +* @summary Set the hours to the given date. +* +* @description +* Set the hours to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param hours - The hours of the new date +* @param options - An object with options +* +* @returns The new date with the hours set +* +* @example +* // Set 4 hours to 1 September 2014 11:30:00: +* const result = setHours(new Date(2014, 8, 1, 11, 30), 4) +* //=> Mon Sep 01 2014 04:30:00 +*/ +function setHours$1(date, hours, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setHours(hours); + return _date; +} +//#endregion +//#region dist/date-fns/fp/setHours.js +var _setHours = convertToFP(setHours$1, 2); +//#endregion +//#region dist/date-fns/fp/setHoursWithOptions.js +var _setHoursWithOptions = convertToFP(setHours$1, 3); +//#endregion +//#region dist/date-fns/fp/setISODay.js +var _setISODay = convertToFP(setISODay$1, 2); +//#endregion +//#region dist/date-fns/fp/setISODayWithOptions.js +var _setISODayWithOptions = convertToFP(setISODay$1, 3); +//#endregion +//#region dist/date-fns/fp/setISOWeek.js +var _setISOWeek = convertToFP(setISOWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/setISOWeekWithOptions.js +var _setISOWeekWithOptions = convertToFP(setISOWeek$1, 3); +//#endregion +//#region dist/date-fns/fp/setISOWeekYear.js +var _setISOWeekYear = convertToFP(setISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/setISOWeekYearWithOptions.js +var _setISOWeekYearWithOptions = convertToFP(setISOWeekYear$1, 3); +//#endregion +//#region dist/date-fns/setMilliseconds.js +/** +* The {@link setMilliseconds} function options. +*/ +/** +* @name setMilliseconds +* @category Millisecond Helpers +* @summary Set the milliseconds to the given date. +* +* @description +* Set the milliseconds to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param milliseconds - The milliseconds of the new date +* @param options - The options +* +* @returns The new date with the milliseconds set +* +* @example +* // Set 300 milliseconds to 1 September 2014 11:30:40.500: +* const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) +* //=> Mon Sep 01 2014 11:30:40.300 +*/ +function setMilliseconds$1(date, milliseconds, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setMilliseconds(milliseconds); + return _date; +} +//#endregion +//#region dist/date-fns/fp/setMilliseconds.js +var _setMilliseconds = convertToFP(setMilliseconds$1, 2); +//#endregion +//#region dist/date-fns/fp/setMillisecondsWithOptions.js +var _setMillisecondsWithOptions = convertToFP(setMilliseconds$1, 3); +//#endregion +//#region dist/date-fns/setMinutes.js +/** +* The {@link setMinutes} function options. +*/ +/** +* @name setMinutes +* @category Minute Helpers +* @summary Set the minutes to the given date. +* +* @description +* Set the minutes to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, returned from the context function, or inferred from the arguments. +* +* @param date - The date to be changed +* @param minutes - The minutes of the new date +* @param options - An object with options +* +* @returns The new date with the minutes set +* +* @example +* // Set 45 minutes to 1 September 2014 11:30:40: +* const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) +* //=> Mon Sep 01 2014 11:45:40 +*/ +function setMinutes$1(date, minutes, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + date_.setMinutes(minutes); + return date_; +} +//#endregion +//#region dist/date-fns/fp/setMinutes.js +var _setMinutes = convertToFP(setMinutes$1, 2); +//#endregion +//#region dist/date-fns/fp/setMinutesWithOptions.js +var _setMinutesWithOptions = convertToFP(setMinutes$1, 3); +//#endregion +//#region dist/date-fns/fp/setMonth.js +var _setMonth = convertToFP(setMonth$1, 2); +//#endregion +//#region dist/date-fns/fp/setMonthWithOptions.js +var _setMonthWithOptions = convertToFP(setMonth$1, 3); +//#endregion +//#region dist/date-fns/setQuarter.js +/** +* The {@link setQuarter} function options. +*/ +/** +* @name setQuarter +* @category Quarter Helpers +* @summary Set the year quarter to the given date. +* +* @description +* Set the year quarter to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param quarter - The quarter of the new date +* @param options - The options +* +* @returns The new date with the quarter set +* +* @example +* // Set the 2nd quarter to 2 July 2014: +* const result = setQuarter(new Date(2014, 6, 2), 2) +* //=> Wed Apr 02 2014 00:00:00 +*/ +function setQuarter$1(date, quarter, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var diff = quarter - (Math.trunc(date_.getMonth() / 3) + 1); + return setMonth$1(date_, date_.getMonth() + diff * 3); +} +//#endregion +//#region dist/date-fns/fp/setQuarter.js +var _setQuarter = convertToFP(setQuarter$1, 2); +//#endregion +//#region dist/date-fns/fp/setQuarterWithOptions.js +var _setQuarterWithOptions = convertToFP(setQuarter$1, 3); +//#endregion +//#region dist/date-fns/setSeconds.js +/** +* The {@link setSeconds} function options. +*/ +/** +* @name setSeconds +* @category Second Helpers +* @summary Set the seconds to the given date, with context support. +* +* @description +* Set the seconds to the given date, with an optional context for time zone specification. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param seconds - The seconds of the new date +* @param options - An object with options +* +* @returns The new date with the seconds set +* +* @example +* // Set 45 seconds to 1 September 2014 11:30:40: +* const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) +* //=> Mon Sep 01 2014 11:30:45 +*/ +function setSeconds$1(date, seconds, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + _date.setSeconds(seconds); + return _date; +} +//#endregion +//#region dist/date-fns/fp/setSeconds.js +var _setSeconds = convertToFP(setSeconds$1, 2); +//#endregion +//#region dist/date-fns/fp/setSecondsWithOptions.js +var _setSecondsWithOptions = convertToFP(setSeconds$1, 3); +//#endregion +//#region dist/date-fns/fp/setWeek.js +var _setWeek = convertToFP(setWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/setWeekWithOptions.js +var _setWeekWithOptions = convertToFP(setWeek$1, 3); +//#endregion +//#region dist/date-fns/setWeekYear.js +/** +* The {@link setWeekYear} function options. +*/ +/** +* @name setWeekYear +* @category Week-Numbering Year Helpers +* @summary Set the local week-numbering year to the given date. +* +* @description +* Set the local week-numbering year to the given date, +* saving the week number and the weekday number. +* The exact calculation depends on the values of +* `options.weekStartsOn` (which is the index of the first day of the week) +* and `options.firstWeekContainsDate` (which is the day of January, which is always in +* the first week of the week-numbering year) +* +* Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param weekYear - The local week-numbering year of the new date +* @param options - An object with options +* +* @returns The new date with the local week-numbering year set +* +* @example +* // Set the local week-numbering year 2004 to 2 January 2010 with default options: +* const result = setWeekYear(new Date(2010, 0, 2), 2004) +* //=> Sat Jan 03 2004 00:00:00 +* +* @example +* // Set the local week-numbering year 2004 to 2 January 2010, +* // if Monday is the first day of week +* // and 4 January is always in the first week of the year: +* const result = setWeekYear(new Date(2010, 0, 2), 2004, { +* weekStartsOn: 1, +* firstWeekContainsDate: 4 +* }) +* //=> Sat Jan 01 2005 00:00:00 +*/ +function setWeekYear$1(date, weekYear, options) {var _ref42, _ref43, _ref44, _options$firstWeekCon5, _options$locale17, _defaultOptions$local11; + var defaultOptions = getDefaultOptions$1(); + var firstWeekContainsDate = (_ref42 = (_ref43 = (_ref44 = (_options$firstWeekCon5 = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon5 !== void 0 ? _options$firstWeekCon5 : options === null || options === void 0 || (_options$locale17 = options.locale) === null || _options$locale17 === void 0 || (_options$locale17 = _options$locale17.options) === null || _options$locale17 === void 0 ? void 0 : _options$locale17.firstWeekContainsDate) !== null && _ref44 !== void 0 ? _ref44 : defaultOptions.firstWeekContainsDate) !== null && _ref43 !== void 0 ? _ref43 : (_defaultOptions$local11 = defaultOptions.locale) === null || _defaultOptions$local11 === void 0 || (_defaultOptions$local11 = _defaultOptions$local11.options) === null || _defaultOptions$local11 === void 0 ? void 0 : _defaultOptions$local11.firstWeekContainsDate) !== null && _ref42 !== void 0 ? _ref42 : 1; + var diff = differenceInCalendarDays$1(toDate$1(date, options === null || options === void 0 ? void 0 : options.in), startOfWeekYear$1(date, options), options); + var firstWeek = constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, 0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date_ = startOfWeekYear$1(firstWeek, options); + date_.setDate(date_.getDate() + diff); + return date_; +} +//#endregion +//#region dist/date-fns/fp/setWeekYear.js +var _setWeekYear = convertToFP(setWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/setWeekYearWithOptions.js +var _setWeekYearWithOptions = convertToFP(setWeekYear$1, 3); +//#endregion +//#region dist/date-fns/fp/setWithOptions.js +var _setWithOptions = convertToFP(set$1, 3); +//#endregion +//#region dist/date-fns/setYear.js +/** +* The {@link setYear} function options. +*/ +/** +* @name setYear +* @category Year Helpers +* @summary Set the year to the given date. +* +* @description +* Set the year to the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param year - The year of the new date +* @param options - An object with options. +* +* @returns The new date with the year set +* +* @example +* // Set year 2013 to 1 September 2014: +* const result = setYear(new Date(2014, 8, 1), 2013) +* //=> Sun Sep 01 2013 00:00:00 +*/ +function setYear$1(date, year, options) { + var date_ = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + if (isNaN(+date_)) return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, NaN); + date_.setFullYear(year); + return date_; +} +//#endregion +//#region dist/date-fns/fp/setYear.js +var _setYear = convertToFP(setYear$1, 2); +//#endregion +//#region dist/date-fns/fp/setYearWithOptions.js +var _setYearWithOptions = convertToFP(setYear$1, 3); +//#endregion +//#region dist/date-fns/fp/startOfDay.js +var _startOfDay = convertToFP(startOfDay$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfDayWithOptions.js +var _startOfDayWithOptions = convertToFP(startOfDay$1, 2); +//#endregion +//#region dist/date-fns/startOfDecade.js +/** +* The {@link startOfDecade} options. +*/ +/** +* @name startOfDecade +* @category Decade Helpers +* @summary Return the start of a decade for the given date. +* +* @description +* Return the start of a decade for the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a decade +* +* @example +* // The start of a decade for 21 October 2015 00:00:00: +* const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) +* //=> Jan 01 2010 00:00:00 +*/ +function startOfDecade$1(date, options) { + var _date = toDate$1(date, options === null || options === void 0 ? void 0 : options.in); + var year = _date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + _date.setFullYear(decade, 0, 1); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/fp/startOfDecade.js +var _startOfDecade = convertToFP(startOfDecade$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfDecadeWithOptions.js +var _startOfDecadeWithOptions = convertToFP(startOfDecade$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfHour.js +var _startOfHour = convertToFP(startOfHour$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfHourWithOptions.js +var _startOfHourWithOptions = convertToFP(startOfHour$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfISOWeek.js +var _startOfISOWeek = convertToFP(startOfISOWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfISOWeekWithOptions.js +var _startOfISOWeekWithOptions = convertToFP(startOfISOWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfISOWeekYear.js +var _startOfISOWeekYear = convertToFP(startOfISOWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfISOWeekYearWithOptions.js +var _startOfISOWeekYearWithOptions = convertToFP(startOfISOWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfMinute.js +var _startOfMinute = convertToFP(startOfMinute$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfMinuteWithOptions.js +var _startOfMinuteWithOptions = convertToFP(startOfMinute$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfMonth.js +var _startOfMonth = convertToFP(startOfMonth$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfMonthWithOptions.js +var _startOfMonthWithOptions = convertToFP(startOfMonth$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfQuarter.js +var _startOfQuarter = convertToFP(startOfQuarter$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfQuarterWithOptions.js +var _startOfQuarterWithOptions = convertToFP(startOfQuarter$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfSecond.js +var _startOfSecond = convertToFP(startOfSecond$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfSecondWithOptions.js +var _startOfSecondWithOptions = convertToFP(startOfSecond$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfWeek.js +var _startOfWeek = convertToFP(startOfWeek$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfWeekWithOptions.js +var _startOfWeekWithOptions = convertToFP(startOfWeek$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfWeekYear.js +var _startOfWeekYear = convertToFP(startOfWeekYear$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfWeekYearWithOptions.js +var _startOfWeekYearWithOptions = convertToFP(startOfWeekYear$1, 2); +//#endregion +//#region dist/date-fns/fp/startOfYear.js +var _startOfYear = convertToFP(startOfYear$1, 1); +//#endregion +//#region dist/date-fns/fp/startOfYearWithOptions.js +var _startOfYearWithOptions = convertToFP(startOfYear$1, 2); +//#endregion +//#region dist/date-fns/subMonths.js +/** +* The subMonths function options. +*/ +/** +* @name subMonths +* @category Month Helpers +* @summary Subtract the specified number of months from the given date. +* +* @description +* Subtract the specified number of months from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of months to be subtracted. +* @param options - An object with options +* +* @returns The new date with the months subtracted +* +* @example +* // Subtract 5 months from 1 February 2015: +* const result = subMonths(new Date(2015, 1, 1), 5) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function subMonths$1(date, amount, options) { + return addMonths$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/sub.js +/** +* The {@link sub} function options. +*/ +/** +* @name sub +* @category Common Helpers +* @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. +* +* @description +* Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be subtracted +* @param options - An object with options +* +* | Key | Description | +* |---------|------------------------------------| +* | years | Amount of years to be subtracted | +* | months | Amount of months to be subtracted | +* | weeks | Amount of weeks to be subtracted | +* | days | Amount of days to be subtracted | +* | hours | Amount of hours to be subtracted | +* | minutes | Amount of minutes to be subtracted | +* | seconds | Amount of seconds to be subtracted | +* +* All values default to 0 +* +* @returns The new date with the seconds subtracted +* +* @example +* // Subtract the following duration from 15 June 2017 15:29:20 +* const result = sub(new Date(2017, 5, 15, 15, 29, 20), { +* years: 2, +* months: 9, +* weeks: 1, +* days: 7, +* hours: 5, +* minutes: 9, +* seconds: 30 +* }) +* //=> Mon Sep 1 2014 10:19:50 +*/ +function sub$1(date, duration, options) { + var _duration$years3 = duration.years,years = _duration$years3 === void 0 ? 0 : _duration$years3,_duration$months3 = duration.months,months = _duration$months3 === void 0 ? 0 : _duration$months3,_duration$weeks2 = duration.weeks,weeks = _duration$weeks2 === void 0 ? 0 : _duration$weeks2,_duration$days3 = duration.days,days = _duration$days3 === void 0 ? 0 : _duration$days3,_duration$hours3 = duration.hours,hours = _duration$hours3 === void 0 ? 0 : _duration$hours3,_duration$minutes3 = duration.minutes,minutes = _duration$minutes3 === void 0 ? 0 : _duration$minutes3,_duration$seconds3 = duration.seconds,seconds = _duration$seconds3 === void 0 ? 0 : _duration$seconds3; + var withoutDays = subDays$1(subMonths$1(date, months + years * 12, options), days + weeks * 7, options); + var msToSub = (seconds + (minutes + hours * 60) * 60) * 1e3; + return constructFrom$1((options === null || options === void 0 ? void 0 : options.in) || date, +withoutDays - msToSub); +} +//#endregion +//#region dist/date-fns/fp/sub.js +var _sub = convertToFP(sub$1, 2); +//#endregion +//#region dist/date-fns/subBusinessDays.js +/** +* The {@link subBusinessDays} function options. +*/ +/** +* @name subBusinessDays +* @category Day Helpers +* @summary Subtract the specified number of business days (mon - fri) from the given date. +* +* @description +* Subtract the specified number of business days (mon - fri) from the given date, ignoring weekends. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of business days to be subtracted. +* @param options - An object with options +* +* @returns The new date with the business days subtracted +* +* @example +* // Subtract 10 business days from 1 September 2014: +* const result = subBusinessDays(new Date(2014, 8, 1), 10) +* //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) +*/ +function subBusinessDays$1(date, amount, options) { + return addBusinessDays$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subBusinessDays.js +var _subBusinessDays = convertToFP(subBusinessDays$1, 2); +//#endregion +//#region dist/date-fns/fp/subBusinessDaysWithOptions.js +var _subBusinessDaysWithOptions = convertToFP(subBusinessDays$1, 3); +//#endregion +//#region dist/date-fns/fp/subDays.js +var _subDays = convertToFP(subDays$1, 2); +//#endregion +//#region dist/date-fns/fp/subDaysWithOptions.js +var _subDaysWithOptions = convertToFP(subDays$1, 3); +//#endregion +//#region dist/date-fns/subHours.js +/** +* The {@link subHours} function options. +*/ +/** +* @name subHours +* @category Hour Helpers +* @summary Subtract the specified number of hours from the given date. +* +* @description +* Subtract the specified number of hours from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of hours to be subtracted. +* @param options - The options +* +* @returns The new date with the hours subtracted +* +* @example +* // Subtract 2 hours from 11 July 2014 01:00:00: +* const result = subHours(new Date(2014, 6, 11, 1, 0), 2) +* //=> Thu Jul 10 2014 23:00:00 +*/ +function subHours$1(date, amount, options) { + return addHours$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subHours.js +var _subHours = convertToFP(subHours$1, 2); +//#endregion +//#region dist/date-fns/fp/subHoursWithOptions.js +var _subHoursWithOptions = convertToFP(subHours$1, 3); +//#endregion +//#region dist/date-fns/fp/subISOWeekYears.js +var _subISOWeekYears = convertToFP(subISOWeekYears$1, 2); +//#endregion +//#region dist/date-fns/fp/subISOWeekYearsWithOptions.js +var _subISOWeekYearsWithOptions = convertToFP(subISOWeekYears$1, 3); +//#endregion +//#region dist/date-fns/subMilliseconds.js +/** +* The {@link subMilliseconds} function options. +*/ +/** +* Subtract the specified number of milliseconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of milliseconds to be subtracted. +* @param options - An object with options +* +* @returns The new date with the milliseconds subtracted +*/ +function subMilliseconds$1(date, amount, options) { + return addMilliseconds$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subMilliseconds.js +var _subMilliseconds = convertToFP(subMilliseconds$1, 2); +//#endregion +//#region dist/date-fns/fp/subMillisecondsWithOptions.js +var _subMillisecondsWithOptions = convertToFP(subMilliseconds$1, 3); +//#endregion +//#region dist/date-fns/subMinutes.js +/** +* The {@link subMinutes} function options. +*/ +/** +* @name subMinutes +* @category Minute Helpers +* @summary Subtract the specified number of minutes from the given date. +* +* @description +* Subtract the specified number of minutes from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of minutes to be subtracted. +* @param options - An object with options +* +* @returns The new date with the minutes subtracted +* +* @example +* // Subtract 30 minutes from 10 July 2014 12:00:00: +* const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) +* //=> Thu Jul 10 2014 11:30:00 +*/ +function subMinutes$1(date, amount, options) { + return addMinutes$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subMinutes.js +var _subMinutes = convertToFP(subMinutes$1, 2); +//#endregion +//#region dist/date-fns/fp/subMinutesWithOptions.js +var _subMinutesWithOptions = convertToFP(subMinutes$1, 3); +//#endregion +//#region dist/date-fns/fp/subMonths.js +var _subMonths = convertToFP(subMonths$1, 2); +//#endregion +//#region dist/date-fns/fp/subMonthsWithOptions.js +var _subMonthsWithOptions = convertToFP(subMonths$1, 3); +//#endregion +//#region dist/date-fns/subQuarters.js +/** +* The {@link subQuarters} function options. +*/ +/** +* @name subQuarters +* @category Quarter Helpers +* @summary Subtract the specified number of year quarters from the given date. +* +* @description +* Subtract the specified number of year quarters from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of quarters to be subtracted. +* @param options - An object with options +* +* @returns The new date with the quarters subtracted +* +* @example +* // Subtract 3 quarters from 1 September 2014: +* const result = subQuarters(new Date(2014, 8, 1), 3) +* //=> Sun Dec 01 2013 00:00:00 +*/ +function subQuarters$1(date, amount, options) { + return addQuarters$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subQuarters.js +var _subQuarters = convertToFP(subQuarters$1, 2); +//#endregion +//#region dist/date-fns/fp/subQuartersWithOptions.js +var _subQuartersWithOptions = convertToFP(subQuarters$1, 3); +//#endregion +//#region dist/date-fns/subSeconds.js +/** +* The {@link subSeconds} function options. +*/ +/** +* Subtract the specified number of seconds from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of seconds to be subtracted. +* @param options - The options +* +* @returns The new date with the seconds subtracted +* +* @example +* // Subtract 30 seconds from 10 July 2014 12:45:00: +* const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) +* //=> Thu Jul 10 2014 12:44:30 +*/ +function subSeconds$1(date, amount, options) { + return addSeconds$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subSeconds.js +var _subSeconds = convertToFP(subSeconds$1, 2); +//#endregion +//#region dist/date-fns/fp/subSecondsWithOptions.js +var _subSecondsWithOptions = convertToFP(subSeconds$1, 3); +//#endregion +//#region dist/date-fns/subWeeks.js +/** +* The {@link subWeeks} function options. +*/ +/** +* @name subWeeks +* @category Week Helpers +* @summary Subtract the specified number of weeks from the given date. +* +* @description +* Subtract the specified number of weeks from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of weeks to be subtracted. +* @param options - An object with options +* +* @returns The new date with the weeks subtracted +* +* @example +* // Subtract 4 weeks from 1 September 2014: +* const result = subWeeks(new Date(2014, 8, 1), 4) +* //=> Mon Aug 04 2014 00:00:00 +*/ +function subWeeks$1(date, amount, options) { + return addWeeks$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subWeeks.js +var _subWeeks = convertToFP(subWeeks$1, 2); +//#endregion +//#region dist/date-fns/fp/subWeeksWithOptions.js +var _subWeeksWithOptions = convertToFP(subWeeks$1, 3); +//#endregion +//#region dist/date-fns/fp/subWithOptions.js +var _subWithOptions = convertToFP(sub$1, 3); +//#endregion +//#region dist/date-fns/subYears.js +/** +* The {@link subYears} function options. +*/ +/** +* @name subYears +* @category Year Helpers +* @summary Subtract the specified number of years from the given date. +* +* @description +* Subtract the specified number of years from the given date. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The date to be changed +* @param amount - The amount of years to be subtracted. +* @param options - An object with options +* +* @returns The new date with the years subtracted +* +* @example +* // Subtract 5 years from 1 September 2014: +* const result = subYears(new Date(2014, 8, 1), 5) +* //=> Tue Sep 01 2009 00:00:00 +*/ +function subYears$1(date, amount, options) { + return addYears$1(date, -amount, options); +} +//#endregion +//#region dist/date-fns/fp/subYears.js +var _subYears = convertToFP(subYears$1, 2); +//#endregion +//#region dist/date-fns/fp/subYearsWithOptions.js +var _subYearsWithOptions = convertToFP(subYears$1, 3); +//#endregion +//#region dist/date-fns/fp/toDate.js +var _toDate = convertToFP(toDate$1, 2); +//#endregion +//#region dist/date-fns/fp/transpose.js +var _transpose = convertToFP(transpose$1, 2); +//#endregion +//#region dist/date-fns/weeksToDays.js +/** +* @name weeksToDays +* @category Conversion Helpers +* @summary Convert weeks to days. +* +* @description +* Convert a number of weeks to a full number of days. +* +* @param weeks - The number of weeks to be converted +* +* @returns The number of weeks converted in days +* +* @example +* // Convert 2 weeks into days +* const result = weeksToDays(2) +* //=> 14 +*/ +function weeksToDays$1(weeks) { + return Math.trunc(weeks * 7); +} +//#endregion +//#region dist/date-fns/fp/weeksToDays.js +var _weeksToDays = convertToFP(weeksToDays$1, 1); +//#endregion +//#region dist/date-fns/yearsToDays.js +/** +* @name yearsToDays +* @category Conversion Helpers +* @summary Convert years to days. +* +* @description +* Convert a number of years to a full number of days. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in days +* +* @example +* // Convert 2 years into days +* const result = yearsToDays(2) +* //=> 730 +*/ +function yearsToDays$1(years) { + return Math.trunc(years * daysInYear); +} +//#endregion +//#region dist/date-fns/fp/yearsToDays.js +var _yearsToDays = convertToFP(yearsToDays$1, 1); +//#endregion +//#region dist/date-fns/yearsToMonths.js +/** +* @name yearsToMonths +* @category Conversion Helpers +* @summary Convert years to months. +* +* @description +* Convert a number of years to a full number of months. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in months +* +* @example +* // Convert 2 years into months +* const result = yearsToMonths(2) +* //=> 24 +*/ +function yearsToMonths$1(years) { + return Math.trunc(years * 12); +} +//#endregion +//#region dist/date-fns/fp/yearsToMonths.js +var _yearsToMonths = convertToFP(yearsToMonths$1, 1); +//#endregion +//#region dist/date-fns/yearsToQuarters.js +/** +* @name yearsToQuarters +* @category Conversion Helpers +* @summary Convert years to quarters. +* +* @description +* Convert a number of years to a full number of quarters. +* +* @param years - The number of years to be converted +* +* @returns The number of years converted in quarters +* +* @example +* // Convert 2 years to quarters +* const result = yearsToQuarters(2) +* //=> 8 +*/ +function yearsToQuarters$1(years) { + return Math.trunc(years * 4); +} +//#endregion +//#region dist/date-fns/fp/yearsToQuarters.js +var _yearsToQuarters = convertToFP(yearsToQuarters$1, 1); +//#endregion +//#region dist/date-fns/fp.js +var fp_exports = /* @__PURE__ */__exportAll({ + add: function add() {return _add;}, + addBusinessDays: function addBusinessDays() {return _addBusinessDays;}, + addBusinessDaysWithOptions: function addBusinessDaysWithOptions() {return _addBusinessDaysWithOptions;}, + addDays: function addDays() {return _addDays;}, + addDaysWithOptions: function addDaysWithOptions() {return _addDaysWithOptions;}, + addHours: function addHours() {return _addHours;}, + addHoursWithOptions: function addHoursWithOptions() {return _addHoursWithOptions;}, + addISOWeekYears: function addISOWeekYears() {return _addISOWeekYears;}, + addISOWeekYearsWithOptions: function addISOWeekYearsWithOptions() {return _addISOWeekYearsWithOptions;}, + addMilliseconds: function addMilliseconds() {return _addMilliseconds;}, + addMillisecondsWithOptions: function addMillisecondsWithOptions() {return _addMillisecondsWithOptions;}, + addMinutes: function addMinutes() {return _addMinutes;}, + addMinutesWithOptions: function addMinutesWithOptions() {return _addMinutesWithOptions;}, + addMonths: function addMonths() {return _addMonths;}, + addMonthsWithOptions: function addMonthsWithOptions() {return _addMonthsWithOptions;}, + addQuarters: function addQuarters() {return _addQuarters;}, + addQuartersWithOptions: function addQuartersWithOptions() {return _addQuartersWithOptions;}, + addSeconds: function addSeconds() {return _addSeconds;}, + addSecondsWithOptions: function addSecondsWithOptions() {return _addSecondsWithOptions;}, + addWeeks: function addWeeks() {return _addWeeks;}, + addWeeksWithOptions: function addWeeksWithOptions() {return _addWeeksWithOptions;}, + addWithOptions: function addWithOptions() {return _addWithOptions;}, + addYears: function addYears() {return _addYears;}, + addYearsWithOptions: function addYearsWithOptions() {return _addYearsWithOptions;}, + areIntervalsOverlapping: function areIntervalsOverlapping() {return _areIntervalsOverlapping;}, + areIntervalsOverlappingWithOptions: function areIntervalsOverlappingWithOptions() {return _areIntervalsOverlappingWithOptions;}, + clamp: function clamp() {return _clamp;}, + clampWithOptions: function clampWithOptions() {return _clampWithOptions;}, + closestIndexTo: function closestIndexTo() {return _closestIndexTo;}, + closestTo: function closestTo() {return _closestTo;}, + closestToWithOptions: function closestToWithOptions() {return _closestToWithOptions;}, + compareAsc: function compareAsc() {return _compareAsc;}, + compareDesc: function compareDesc() {return _compareDesc;}, + constructFrom: function constructFrom() {return _constructFrom;}, + daysToWeeks: function daysToWeeks() {return _daysToWeeks;}, + differenceInBusinessDays: function differenceInBusinessDays() {return _differenceInBusinessDays;}, + differenceInBusinessDaysWithOptions: function differenceInBusinessDaysWithOptions() {return _differenceInBusinessDaysWithOptions;}, + differenceInCalendarDays: function differenceInCalendarDays() {return _differenceInCalendarDays;}, + differenceInCalendarDaysWithOptions: function differenceInCalendarDaysWithOptions() {return _differenceInCalendarDaysWithOptions;}, + differenceInCalendarISOWeekYears: function differenceInCalendarISOWeekYears() {return _differenceInCalendarISOWeekYears;}, + differenceInCalendarISOWeekYearsWithOptions: function differenceInCalendarISOWeekYearsWithOptions() {return _differenceInCalendarISOWeekYearsWithOptions;}, + differenceInCalendarISOWeeks: function differenceInCalendarISOWeeks() {return _differenceInCalendarISOWeeks;}, + differenceInCalendarISOWeeksWithOptions: function differenceInCalendarISOWeeksWithOptions() {return _differenceInCalendarISOWeeksWithOptions;}, + differenceInCalendarMonths: function differenceInCalendarMonths() {return _differenceInCalendarMonths;}, + differenceInCalendarMonthsWithOptions: function differenceInCalendarMonthsWithOptions() {return _differenceInCalendarMonthsWithOptions;}, + differenceInCalendarQuarters: function differenceInCalendarQuarters() {return _differenceInCalendarQuarters;}, + differenceInCalendarQuartersWithOptions: function differenceInCalendarQuartersWithOptions() {return _differenceInCalendarQuartersWithOptions;}, + differenceInCalendarWeeks: function differenceInCalendarWeeks() {return _differenceInCalendarWeeks;}, + differenceInCalendarWeeksWithOptions: function differenceInCalendarWeeksWithOptions() {return _differenceInCalendarWeeksWithOptions;}, + differenceInCalendarYears: function differenceInCalendarYears() {return _differenceInCalendarYears;}, + differenceInCalendarYearsWithOptions: function differenceInCalendarYearsWithOptions() {return _differenceInCalendarYearsWithOptions;}, + differenceInDays: function differenceInDays() {return _differenceInDays;}, + differenceInDaysWithOptions: function differenceInDaysWithOptions() {return _differenceInDaysWithOptions;}, + differenceInHours: function differenceInHours() {return _differenceInHours;}, + differenceInHoursWithOptions: function differenceInHoursWithOptions() {return _differenceInHoursWithOptions;}, + differenceInISOWeekYears: function differenceInISOWeekYears() {return _differenceInISOWeekYears;}, + differenceInISOWeekYearsWithOptions: function differenceInISOWeekYearsWithOptions() {return _differenceInISOWeekYearsWithOptions;}, + differenceInMilliseconds: function differenceInMilliseconds() {return _differenceInMilliseconds;}, + differenceInMinutes: function differenceInMinutes() {return _differenceInMinutes;}, + differenceInMinutesWithOptions: function differenceInMinutesWithOptions() {return _differenceInMinutesWithOptions;}, + differenceInMonths: function differenceInMonths() {return _differenceInMonths;}, + differenceInMonthsWithOptions: function differenceInMonthsWithOptions() {return _differenceInMonthsWithOptions;}, + differenceInQuarters: function differenceInQuarters() {return _differenceInQuarters;}, + differenceInQuartersWithOptions: function differenceInQuartersWithOptions() {return _differenceInQuartersWithOptions;}, + differenceInSeconds: function differenceInSeconds() {return _differenceInSeconds;}, + differenceInSecondsWithOptions: function differenceInSecondsWithOptions() {return _differenceInSecondsWithOptions;}, + differenceInWeeks: function differenceInWeeks() {return _differenceInWeeks;}, + differenceInWeeksWithOptions: function differenceInWeeksWithOptions() {return _differenceInWeeksWithOptions;}, + differenceInYears: function differenceInYears() {return _differenceInYears;}, + differenceInYearsWithOptions: function differenceInYearsWithOptions() {return _differenceInYearsWithOptions;}, + eachDayOfInterval: function eachDayOfInterval() {return _eachDayOfInterval;}, + eachDayOfIntervalWithOptions: function eachDayOfIntervalWithOptions() {return _eachDayOfIntervalWithOptions;}, + eachHourOfInterval: function eachHourOfInterval() {return _eachHourOfInterval;}, + eachHourOfIntervalWithOptions: function eachHourOfIntervalWithOptions() {return _eachHourOfIntervalWithOptions;}, + eachMinuteOfInterval: function eachMinuteOfInterval() {return _eachMinuteOfInterval;}, + eachMinuteOfIntervalWithOptions: function eachMinuteOfIntervalWithOptions() {return _eachMinuteOfIntervalWithOptions;}, + eachMonthOfInterval: function eachMonthOfInterval() {return _eachMonthOfInterval;}, + eachMonthOfIntervalWithOptions: function eachMonthOfIntervalWithOptions() {return _eachMonthOfIntervalWithOptions;}, + eachQuarterOfInterval: function eachQuarterOfInterval() {return _eachQuarterOfInterval;}, + eachQuarterOfIntervalWithOptions: function eachQuarterOfIntervalWithOptions() {return _eachQuarterOfIntervalWithOptions;}, + eachWeekOfInterval: function eachWeekOfInterval() {return _eachWeekOfInterval;}, + eachWeekOfIntervalWithOptions: function eachWeekOfIntervalWithOptions() {return _eachWeekOfIntervalWithOptions;}, + eachWeekendOfInterval: function eachWeekendOfInterval() {return _eachWeekendOfInterval;}, + eachWeekendOfIntervalWithOptions: function eachWeekendOfIntervalWithOptions() {return _eachWeekendOfIntervalWithOptions;}, + eachWeekendOfMonth: function eachWeekendOfMonth() {return _eachWeekendOfMonth;}, + eachWeekendOfMonthWithOptions: function eachWeekendOfMonthWithOptions() {return _eachWeekendOfMonthWithOptions;}, + eachWeekendOfYear: function eachWeekendOfYear() {return _eachWeekendOfYear;}, + eachWeekendOfYearWithOptions: function eachWeekendOfYearWithOptions() {return _eachWeekendOfYearWithOptions;}, + eachYearOfInterval: function eachYearOfInterval() {return _eachYearOfInterval;}, + eachYearOfIntervalWithOptions: function eachYearOfIntervalWithOptions() {return _eachYearOfIntervalWithOptions;}, + endOfDay: function endOfDay() {return _endOfDay;}, + endOfDayWithOptions: function endOfDayWithOptions() {return _endOfDayWithOptions;}, + endOfDecade: function endOfDecade() {return _endOfDecade;}, + endOfDecadeWithOptions: function endOfDecadeWithOptions() {return _endOfDecadeWithOptions;}, + endOfHour: function endOfHour() {return _endOfHour;}, + endOfHourWithOptions: function endOfHourWithOptions() {return _endOfHourWithOptions;}, + endOfISOWeek: function endOfISOWeek() {return _endOfISOWeek;}, + endOfISOWeekWithOptions: function endOfISOWeekWithOptions() {return _endOfISOWeekWithOptions;}, + endOfISOWeekYear: function endOfISOWeekYear() {return _endOfISOWeekYear;}, + endOfISOWeekYearWithOptions: function endOfISOWeekYearWithOptions() {return _endOfISOWeekYearWithOptions;}, + endOfMinute: function endOfMinute() {return _endOfMinute;}, + endOfMinuteWithOptions: function endOfMinuteWithOptions() {return _endOfMinuteWithOptions;}, + endOfMonth: function endOfMonth() {return _endOfMonth;}, + endOfMonthWithOptions: function endOfMonthWithOptions() {return _endOfMonthWithOptions;}, + endOfQuarter: function endOfQuarter() {return _endOfQuarter;}, + endOfQuarterWithOptions: function endOfQuarterWithOptions() {return _endOfQuarterWithOptions;}, + endOfSecond: function endOfSecond() {return _endOfSecond;}, + endOfSecondWithOptions: function endOfSecondWithOptions() {return _endOfSecondWithOptions;}, + endOfWeek: function endOfWeek() {return _endOfWeek;}, + endOfWeekWithOptions: function endOfWeekWithOptions() {return _endOfWeekWithOptions;}, + endOfYear: function endOfYear() {return _endOfYear;}, + endOfYearWithOptions: function endOfYearWithOptions() {return _endOfYearWithOptions;}, + format: function format() {return _format;}, + formatDistance: function formatDistance() {return _formatDistance;}, + formatDistanceStrict: function formatDistanceStrict() {return _formatDistanceStrict;}, + formatDistanceStrictWithOptions: function formatDistanceStrictWithOptions() {return _formatDistanceStrictWithOptions;}, + formatDistanceWithOptions: function formatDistanceWithOptions() {return _formatDistanceWithOptions;}, + formatDuration: function formatDuration() {return _formatDuration;}, + formatDurationWithOptions: function formatDurationWithOptions() {return _formatDurationWithOptions;}, + formatISO: function formatISO() {return _formatISO;}, + formatISO9075: function formatISO9075() {return _formatISO2;}, + formatISO9075WithOptions: function formatISO9075WithOptions() {return _formatISO9075WithOptions;}, + formatISODuration: function formatISODuration() {return _formatISODuration;}, + formatISOWithOptions: function formatISOWithOptions() {return _formatISOWithOptions;}, + formatRFC3339: function formatRFC3339() {return _formatRFC;}, + formatRFC3339WithOptions: function formatRFC3339WithOptions() {return _formatRFC3339WithOptions;}, + formatRFC7231: function formatRFC7231() {return _formatRFC2;}, + formatRelative: function formatRelative() {return _formatRelative;}, + formatRelativeWithOptions: function formatRelativeWithOptions() {return _formatRelativeWithOptions;}, + formatWithOptions: function formatWithOptions() {return _formatWithOptions;}, + fromUnixTime: function fromUnixTime() {return _fromUnixTime;}, + fromUnixTimeWithOptions: function fromUnixTimeWithOptions() {return _fromUnixTimeWithOptions;}, + getDate: function getDate() {return _getDate;}, + getDateWithOptions: function getDateWithOptions() {return _getDateWithOptions;}, + getDay: function getDay() {return _getDay;}, + getDayOfYear: function getDayOfYear() {return _getDayOfYear;}, + getDayOfYearWithOptions: function getDayOfYearWithOptions() {return _getDayOfYearWithOptions;}, + getDayWithOptions: function getDayWithOptions() {return _getDayWithOptions;}, + getDaysInMonth: function getDaysInMonth() {return _getDaysInMonth;}, + getDaysInMonthWithOptions: function getDaysInMonthWithOptions() {return _getDaysInMonthWithOptions;}, + getDaysInYear: function getDaysInYear() {return _getDaysInYear;}, + getDaysInYearWithOptions: function getDaysInYearWithOptions() {return _getDaysInYearWithOptions;}, + getDecade: function getDecade() {return _getDecade;}, + getDecadeWithOptions: function getDecadeWithOptions() {return _getDecadeWithOptions;}, + getHours: function getHours() {return _getHours;}, + getHoursWithOptions: function getHoursWithOptions() {return _getHoursWithOptions;}, + getISODay: function getISODay() {return _getISODay;}, + getISODayWithOptions: function getISODayWithOptions() {return _getISODayWithOptions;}, + getISOWeek: function getISOWeek() {return _getISOWeek;}, + getISOWeekWithOptions: function getISOWeekWithOptions() {return _getISOWeekWithOptions;}, + getISOWeekYear: function getISOWeekYear() {return _getISOWeekYear;}, + getISOWeekYearWithOptions: function getISOWeekYearWithOptions() {return _getISOWeekYearWithOptions;}, + getISOWeeksInYear: function getISOWeeksInYear() {return _getISOWeeksInYear;}, + getISOWeeksInYearWithOptions: function getISOWeeksInYearWithOptions() {return _getISOWeeksInYearWithOptions;}, + getMilliseconds: function getMilliseconds() {return _getMilliseconds;}, + getMinutes: function getMinutes() {return _getMinutes;}, + getMinutesWithOptions: function getMinutesWithOptions() {return _getMinutesWithOptions;}, + getMonth: function getMonth() {return _getMonth;}, + getMonthWithOptions: function getMonthWithOptions() {return _getMonthWithOptions;}, + getOverlappingDaysInIntervals: function getOverlappingDaysInIntervals() {return _getOverlappingDaysInIntervals;}, + getQuarter: function getQuarter() {return _getQuarter;}, + getQuarterWithOptions: function getQuarterWithOptions() {return _getQuarterWithOptions;}, + getSeconds: function getSeconds() {return _getSeconds;}, + getTime: function getTime() {return _getTime;}, + getUnixTime: function getUnixTime() {return _getUnixTime;}, + getWeek: function getWeek() {return _getWeek;}, + getWeekOfMonth: function getWeekOfMonth() {return _getWeekOfMonth;}, + getWeekOfMonthWithOptions: function getWeekOfMonthWithOptions() {return _getWeekOfMonthWithOptions;}, + getWeekWithOptions: function getWeekWithOptions() {return _getWeekWithOptions;}, + getWeekYear: function getWeekYear() {return _getWeekYear;}, + getWeekYearWithOptions: function getWeekYearWithOptions() {return _getWeekYearWithOptions;}, + getWeeksInMonth: function getWeeksInMonth() {return _getWeeksInMonth;}, + getWeeksInMonthWithOptions: function getWeeksInMonthWithOptions() {return _getWeeksInMonthWithOptions;}, + getYear: function getYear() {return _getYear;}, + getYearWithOptions: function getYearWithOptions() {return _getYearWithOptions;}, + hoursToMilliseconds: function hoursToMilliseconds() {return _hoursToMilliseconds;}, + hoursToMinutes: function hoursToMinutes() {return _hoursToMinutes;}, + hoursToSeconds: function hoursToSeconds() {return _hoursToSeconds;}, + interval: function interval() {return _interval;}, + intervalToDuration: function intervalToDuration() {return _intervalToDuration;}, + intervalToDurationWithOptions: function intervalToDurationWithOptions() {return _intervalToDurationWithOptions;}, + intervalWithOptions: function intervalWithOptions() {return _intervalWithOptions;}, + intlFormat: function intlFormat() {return _intlFormat;}, + intlFormatDistance: function intlFormatDistance() {return _intlFormatDistance;}, + intlFormatDistanceWithOptions: function intlFormatDistanceWithOptions() {return _intlFormatDistanceWithOptions;}, + isAfter: function isAfter() {return _isAfter;}, + isBefore: function isBefore() {return _isBefore;}, + isDate: function isDate() {return _isDate;}, + isEqual: function isEqual() {return _isEqual;}, + isExists: function isExists() {return _isExists;}, + isFirstDayOfMonth: function isFirstDayOfMonth() {return _isFirstDayOfMonth;}, + isFirstDayOfMonthWithOptions: function isFirstDayOfMonthWithOptions() {return _isFirstDayOfMonthWithOptions;}, + isFriday: function isFriday() {return _isFriday;}, + isFridayWithOptions: function isFridayWithOptions() {return _isFridayWithOptions;}, + isLastDayOfMonth: function isLastDayOfMonth() {return _isLastDayOfMonth;}, + isLastDayOfMonthWithOptions: function isLastDayOfMonthWithOptions() {return _isLastDayOfMonthWithOptions;}, + isLeapYear: function isLeapYear() {return _isLeapYear;}, + isLeapYearWithOptions: function isLeapYearWithOptions() {return _isLeapYearWithOptions;}, + isMatch: function isMatch() {return _isMatch;}, + isMatchWithOptions: function isMatchWithOptions() {return _isMatchWithOptions;}, + isMonday: function isMonday() {return _isMonday;}, + isMondayWithOptions: function isMondayWithOptions() {return _isMondayWithOptions;}, + isSameDay: function isSameDay() {return _isSameDay;}, + isSameDayWithOptions: function isSameDayWithOptions() {return _isSameDayWithOptions;}, + isSameHour: function isSameHour() {return _isSameHour;}, + isSameHourWithOptions: function isSameHourWithOptions() {return _isSameHourWithOptions;}, + isSameISOWeek: function isSameISOWeek() {return _isSameISOWeek;}, + isSameISOWeekWithOptions: function isSameISOWeekWithOptions() {return _isSameISOWeekWithOptions;}, + isSameISOWeekYear: function isSameISOWeekYear() {return _isSameISOWeekYear;}, + isSameISOWeekYearWithOptions: function isSameISOWeekYearWithOptions() {return _isSameISOWeekYearWithOptions;}, + isSameMinute: function isSameMinute() {return _isSameMinute;}, + isSameMonth: function isSameMonth() {return _isSameMonth;}, + isSameMonthWithOptions: function isSameMonthWithOptions() {return _isSameMonthWithOptions;}, + isSameQuarter: function isSameQuarter() {return _isSameQuarter;}, + isSameQuarterWithOptions: function isSameQuarterWithOptions() {return _isSameQuarterWithOptions;}, + isSameSecond: function isSameSecond() {return _isSameSecond;}, + isSameWeek: function isSameWeek() {return _isSameWeek;}, + isSameWeekWithOptions: function isSameWeekWithOptions() {return _isSameWeekWithOptions;}, + isSameYear: function isSameYear() {return _isSameYear;}, + isSameYearWithOptions: function isSameYearWithOptions() {return _isSameYearWithOptions;}, + isSaturday: function isSaturday() {return _isSaturday;}, + isSaturdayWithOptions: function isSaturdayWithOptions() {return _isSaturdayWithOptions;}, + isSunday: function isSunday() {return _isSunday;}, + isSundayWithOptions: function isSundayWithOptions() {return _isSundayWithOptions;}, + isThursday: function isThursday() {return _isThursday;}, + isThursdayWithOptions: function isThursdayWithOptions() {return _isThursdayWithOptions;}, + isTuesday: function isTuesday() {return _isTuesday;}, + isTuesdayWithOptions: function isTuesdayWithOptions() {return _isTuesdayWithOptions;}, + isValid: function isValid() {return _isValid;}, + isWednesday: function isWednesday() {return _isWednesday;}, + isWednesdayWithOptions: function isWednesdayWithOptions() {return _isWednesdayWithOptions;}, + isWeekend: function isWeekend() {return _isWeekend;}, + isWeekendWithOptions: function isWeekendWithOptions() {return _isWeekendWithOptions;}, + isWithinInterval: function isWithinInterval() {return _isWithinInterval;}, + isWithinIntervalWithOptions: function isWithinIntervalWithOptions() {return _isWithinIntervalWithOptions;}, + lastDayOfDecade: function lastDayOfDecade() {return _lastDayOfDecade;}, + lastDayOfDecadeWithOptions: function lastDayOfDecadeWithOptions() {return _lastDayOfDecadeWithOptions;}, + lastDayOfISOWeek: function lastDayOfISOWeek() {return _lastDayOfISOWeek;}, + lastDayOfISOWeekWithOptions: function lastDayOfISOWeekWithOptions() {return _lastDayOfISOWeekWithOptions;}, + lastDayOfISOWeekYear: function lastDayOfISOWeekYear() {return _lastDayOfISOWeekYear;}, + lastDayOfISOWeekYearWithOptions: function lastDayOfISOWeekYearWithOptions() {return _lastDayOfISOWeekYearWithOptions;}, + lastDayOfMonth: function lastDayOfMonth() {return _lastDayOfMonth;}, + lastDayOfMonthWithOptions: function lastDayOfMonthWithOptions() {return _lastDayOfMonthWithOptions;}, + lastDayOfQuarter: function lastDayOfQuarter() {return _lastDayOfQuarter;}, + lastDayOfQuarterWithOptions: function lastDayOfQuarterWithOptions() {return _lastDayOfQuarterWithOptions;}, + lastDayOfWeek: function lastDayOfWeek() {return _lastDayOfWeek;}, + lastDayOfWeekWithOptions: function lastDayOfWeekWithOptions() {return _lastDayOfWeekWithOptions;}, + lastDayOfYear: function lastDayOfYear() {return _lastDayOfYear;}, + lastDayOfYearWithOptions: function lastDayOfYearWithOptions() {return _lastDayOfYearWithOptions;}, + lightFormat: function lightFormat() {return _lightFormat;}, + max: function max() {return _max;}, + maxWithOptions: function maxWithOptions() {return _maxWithOptions;}, + milliseconds: function milliseconds() {return _milliseconds2;}, + millisecondsToHours: function millisecondsToHours() {return _millisecondsToHours;}, + millisecondsToMinutes: function millisecondsToMinutes() {return _millisecondsToMinutes;}, + millisecondsToSeconds: function millisecondsToSeconds() {return _millisecondsToSeconds;}, + min: function min() {return _min;}, + minWithOptions: function minWithOptions() {return _minWithOptions;}, + minutesToHours: function minutesToHours() {return _minutesToHours;}, + minutesToMilliseconds: function minutesToMilliseconds() {return _minutesToMilliseconds;}, + minutesToSeconds: function minutesToSeconds() {return _minutesToSeconds;}, + monthsToQuarters: function monthsToQuarters() {return _monthsToQuarters;}, + monthsToYears: function monthsToYears() {return _monthsToYears;}, + nextDay: function nextDay() {return _nextDay;}, + nextDayWithOptions: function nextDayWithOptions() {return _nextDayWithOptions;}, + nextFriday: function nextFriday() {return _nextFriday;}, + nextFridayWithOptions: function nextFridayWithOptions() {return _nextFridayWithOptions;}, + nextMonday: function nextMonday() {return _nextMonday;}, + nextMondayWithOptions: function nextMondayWithOptions() {return _nextMondayWithOptions;}, + nextSaturday: function nextSaturday() {return _nextSaturday;}, + nextSaturdayWithOptions: function nextSaturdayWithOptions() {return _nextSaturdayWithOptions;}, + nextSunday: function nextSunday() {return _nextSunday;}, + nextSundayWithOptions: function nextSundayWithOptions() {return _nextSundayWithOptions;}, + nextThursday: function nextThursday() {return _nextThursday;}, + nextThursdayWithOptions: function nextThursdayWithOptions() {return _nextThursdayWithOptions;}, + nextTuesday: function nextTuesday() {return _nextTuesday;}, + nextTuesdayWithOptions: function nextTuesdayWithOptions() {return _nextTuesdayWithOptions;}, + nextWednesday: function nextWednesday() {return _nextWednesday;}, + nextWednesdayWithOptions: function nextWednesdayWithOptions() {return _nextWednesdayWithOptions;}, + parse: function parse() {return _parse;}, + parseISO: function parseISO() {return _parseISO;}, + parseISOWithOptions: function parseISOWithOptions() {return _parseISOWithOptions;}, + parseJSON: function parseJSON() {return _parseJSON;}, + parseJSONWithOptions: function parseJSONWithOptions() {return _parseJSONWithOptions;}, + parseWithOptions: function parseWithOptions() {return _parseWithOptions;}, + previousDay: function previousDay() {return _previousDay;}, + previousDayWithOptions: function previousDayWithOptions() {return _previousDayWithOptions;}, + previousFriday: function previousFriday() {return _previousFriday;}, + previousFridayWithOptions: function previousFridayWithOptions() {return _previousFridayWithOptions;}, + previousMonday: function previousMonday() {return _previousMonday;}, + previousMondayWithOptions: function previousMondayWithOptions() {return _previousMondayWithOptions;}, + previousSaturday: function previousSaturday() {return _previousSaturday;}, + previousSaturdayWithOptions: function previousSaturdayWithOptions() {return _previousSaturdayWithOptions;}, + previousSunday: function previousSunday() {return _previousSunday;}, + previousSundayWithOptions: function previousSundayWithOptions() {return _previousSundayWithOptions;}, + previousThursday: function previousThursday() {return _previousThursday;}, + previousThursdayWithOptions: function previousThursdayWithOptions() {return _previousThursdayWithOptions;}, + previousTuesday: function previousTuesday() {return _previousTuesday;}, + previousTuesdayWithOptions: function previousTuesdayWithOptions() {return _previousTuesdayWithOptions;}, + previousWednesday: function previousWednesday() {return _previousWednesday;}, + previousWednesdayWithOptions: function previousWednesdayWithOptions() {return _previousWednesdayWithOptions;}, + quartersToMonths: function quartersToMonths() {return _quartersToMonths;}, + quartersToYears: function quartersToYears() {return _quartersToYears;}, + roundToNearestHours: function roundToNearestHours() {return _roundToNearestHours;}, + roundToNearestHoursWithOptions: function roundToNearestHoursWithOptions() {return _roundToNearestHoursWithOptions;}, + roundToNearestMinutes: function roundToNearestMinutes() {return _roundToNearestMinutes;}, + roundToNearestMinutesWithOptions: function roundToNearestMinutesWithOptions() {return _roundToNearestMinutesWithOptions;}, + secondsToHours: function secondsToHours() {return _secondsToHours;}, + secondsToMilliseconds: function secondsToMilliseconds() {return _secondsToMilliseconds;}, + secondsToMinutes: function secondsToMinutes() {return _secondsToMinutes;}, + set: function set() {return _set;}, + setDate: function setDate() {return _setDate;}, + setDateWithOptions: function setDateWithOptions() {return _setDateWithOptions;}, + setDay: function setDay() {return _setDay;}, + setDayOfYear: function setDayOfYear() {return _setDayOfYear;}, + setDayOfYearWithOptions: function setDayOfYearWithOptions() {return _setDayOfYearWithOptions;}, + setDayWithOptions: function setDayWithOptions() {return _setDayWithOptions;}, + setHours: function setHours() {return _setHours;}, + setHoursWithOptions: function setHoursWithOptions() {return _setHoursWithOptions;}, + setISODay: function setISODay() {return _setISODay;}, + setISODayWithOptions: function setISODayWithOptions() {return _setISODayWithOptions;}, + setISOWeek: function setISOWeek() {return _setISOWeek;}, + setISOWeekWithOptions: function setISOWeekWithOptions() {return _setISOWeekWithOptions;}, + setISOWeekYear: function setISOWeekYear() {return _setISOWeekYear;}, + setISOWeekYearWithOptions: function setISOWeekYearWithOptions() {return _setISOWeekYearWithOptions;}, + setMilliseconds: function setMilliseconds() {return _setMilliseconds;}, + setMillisecondsWithOptions: function setMillisecondsWithOptions() {return _setMillisecondsWithOptions;}, + setMinutes: function setMinutes() {return _setMinutes;}, + setMinutesWithOptions: function setMinutesWithOptions() {return _setMinutesWithOptions;}, + setMonth: function setMonth() {return _setMonth;}, + setMonthWithOptions: function setMonthWithOptions() {return _setMonthWithOptions;}, + setQuarter: function setQuarter() {return _setQuarter;}, + setQuarterWithOptions: function setQuarterWithOptions() {return _setQuarterWithOptions;}, + setSeconds: function setSeconds() {return _setSeconds;}, + setSecondsWithOptions: function setSecondsWithOptions() {return _setSecondsWithOptions;}, + setWeek: function setWeek() {return _setWeek;}, + setWeekWithOptions: function setWeekWithOptions() {return _setWeekWithOptions;}, + setWeekYear: function setWeekYear() {return _setWeekYear;}, + setWeekYearWithOptions: function setWeekYearWithOptions() {return _setWeekYearWithOptions;}, + setWithOptions: function setWithOptions() {return _setWithOptions;}, + setYear: function setYear() {return _setYear;}, + setYearWithOptions: function setYearWithOptions() {return _setYearWithOptions;}, + startOfDay: function startOfDay() {return _startOfDay;}, + startOfDayWithOptions: function startOfDayWithOptions() {return _startOfDayWithOptions;}, + startOfDecade: function startOfDecade() {return _startOfDecade;}, + startOfDecadeWithOptions: function startOfDecadeWithOptions() {return _startOfDecadeWithOptions;}, + startOfHour: function startOfHour() {return _startOfHour;}, + startOfHourWithOptions: function startOfHourWithOptions() {return _startOfHourWithOptions;}, + startOfISOWeek: function startOfISOWeek() {return _startOfISOWeek;}, + startOfISOWeekWithOptions: function startOfISOWeekWithOptions() {return _startOfISOWeekWithOptions;}, + startOfISOWeekYear: function startOfISOWeekYear() {return _startOfISOWeekYear;}, + startOfISOWeekYearWithOptions: function startOfISOWeekYearWithOptions() {return _startOfISOWeekYearWithOptions;}, + startOfMinute: function startOfMinute() {return _startOfMinute;}, + startOfMinuteWithOptions: function startOfMinuteWithOptions() {return _startOfMinuteWithOptions;}, + startOfMonth: function startOfMonth() {return _startOfMonth;}, + startOfMonthWithOptions: function startOfMonthWithOptions() {return _startOfMonthWithOptions;}, + startOfQuarter: function startOfQuarter() {return _startOfQuarter;}, + startOfQuarterWithOptions: function startOfQuarterWithOptions() {return _startOfQuarterWithOptions;}, + startOfSecond: function startOfSecond() {return _startOfSecond;}, + startOfSecondWithOptions: function startOfSecondWithOptions() {return _startOfSecondWithOptions;}, + startOfWeek: function startOfWeek() {return _startOfWeek;}, + startOfWeekWithOptions: function startOfWeekWithOptions() {return _startOfWeekWithOptions;}, + startOfWeekYear: function startOfWeekYear() {return _startOfWeekYear;}, + startOfWeekYearWithOptions: function startOfWeekYearWithOptions() {return _startOfWeekYearWithOptions;}, + startOfYear: function startOfYear() {return _startOfYear;}, + startOfYearWithOptions: function startOfYearWithOptions() {return _startOfYearWithOptions;}, + sub: function sub() {return _sub;}, + subBusinessDays: function subBusinessDays() {return _subBusinessDays;}, + subBusinessDaysWithOptions: function subBusinessDaysWithOptions() {return _subBusinessDaysWithOptions;}, + subDays: function subDays() {return _subDays;}, + subDaysWithOptions: function subDaysWithOptions() {return _subDaysWithOptions;}, + subHours: function subHours() {return _subHours;}, + subHoursWithOptions: function subHoursWithOptions() {return _subHoursWithOptions;}, + subISOWeekYears: function subISOWeekYears() {return _subISOWeekYears;}, + subISOWeekYearsWithOptions: function subISOWeekYearsWithOptions() {return _subISOWeekYearsWithOptions;}, + subMilliseconds: function subMilliseconds() {return _subMilliseconds;}, + subMillisecondsWithOptions: function subMillisecondsWithOptions() {return _subMillisecondsWithOptions;}, + subMinutes: function subMinutes() {return _subMinutes;}, + subMinutesWithOptions: function subMinutesWithOptions() {return _subMinutesWithOptions;}, + subMonths: function subMonths() {return _subMonths;}, + subMonthsWithOptions: function subMonthsWithOptions() {return _subMonthsWithOptions;}, + subQuarters: function subQuarters() {return _subQuarters;}, + subQuartersWithOptions: function subQuartersWithOptions() {return _subQuartersWithOptions;}, + subSeconds: function subSeconds() {return _subSeconds;}, + subSecondsWithOptions: function subSecondsWithOptions() {return _subSecondsWithOptions;}, + subWeeks: function subWeeks() {return _subWeeks;}, + subWeeksWithOptions: function subWeeksWithOptions() {return _subWeeksWithOptions;}, + subWithOptions: function subWithOptions() {return _subWithOptions;}, + subYears: function subYears() {return _subYears;}, + subYearsWithOptions: function subYearsWithOptions() {return _subYearsWithOptions;}, + toDate: function toDate() {return _toDate;}, + transpose: function transpose() {return _transpose;}, + weeksToDays: function weeksToDays() {return _weeksToDays;}, + yearsToDays: function yearsToDays() {return _yearsToDays;}, + yearsToMonths: function yearsToMonths() {return _yearsToMonths;}, + yearsToQuarters: function yearsToQuarters() {return _yearsToQuarters;} +}); +//#endregion +//#region dist/date-fns/_entries/fp/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + fp: fp_exports }); + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/fp/cdn.min.js b/node_modules/date-fns/fp/cdn.min.js new file mode 100644 index 000000000..b795d3814 --- /dev/null +++ b/node_modules/date-fns/fp/cdn.min.js @@ -0,0 +1,4 @@ +(()=>{function e(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function t(e,t,r){return t=a(t),n(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function n(e,t){if(t&&(x(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return r(e)}function r(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function ve(e,t,n){var r=t.years,i=r===void 0?0:r,a=t.months,o=a===void 0?0:a,s=t.weeks,c=s===void 0?0:s,l=t.days,u=l===void 0?0:l,d=t.hours,f=d===void 0?0:d,p=t.minutes,m=p===void 0?0:p,h=t.seconds,g=h===void 0?0:h,_=T(e,n?.in),v=o||i?_e(_,o+i*12):_,y=u||c?E(v,u+c*7):v,ee=(g+(m+f*60)*60)*1e3;return w(n?.in||e,+y+ee)}function D(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n.length>=t?e.apply(void 0,te(n.slice(0,t).reverse())):function(){var r=[...arguments];return D(e,t,n.concat(r))}}var ye=D(ve,2);function be(e,t){return T(e,t?.in).getDay()===6}function xe(e,t){return T(e,t?.in).getDay()===0}function O(e,t){var n=T(e,t?.in).getDay();return n===0||n===6}function Se(e,t,n){var r=T(e,n?.in),i=O(r,n);if(isNaN(t))return w(n?.in,NaN);var a=r.getHours(),o=t<0?-1:1,s=Math.trunc(t/5);r.setDate(r.getDate()+s*7);for(var c=Math.abs(t%5);c>0;)r.setDate(r.getDate()+o),O(r,n)||--c;return i&&O(r,n)&&t!==0&&(be(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),xe(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}var Ce=D(Se,2),we=D(Se,3),Te=D(E,2),Ee=D(E,3);function De(e,t,n){return w(n?.in||e,+T(e)+t)}function Oe(e,t,n){return De(e,t*C,n)}var ke=D(Oe,2),Ae=D(Oe,3),je={};function k(){return je}function A(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=T(e,t?.in),s=o.getDay(),c=(s=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function N(e){var t=T(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function P(e){var t=[...arguments].slice(1),n=w.bind(null,e||t.find(function(e){return x(e)===`object`}));return t.map(n)}function Me(e,t){var n=T(e,t?.in);return n.setHours(0,0,0,0),n}function F(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=Me(i),s=Me(a),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/ue)}function I(e,t){var n=M(e,t),r=w(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),j(r)}function Ne(e,t,n){var r=T(e,n?.in),i=F(r,I(r,n)),a=w(n?.in||e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),r=I(a),r.setDate(r.getDate()+i),r}function Pe(e,t,n){return Ne(e,M(e,n)+t,n)}var Fe=D(Pe,2),Ie=D(Pe,3),Le=D(De,2),Re=D(De,3);function ze(e,t,n){var r=T(e,n?.in);return r.setTime(r.getTime()+t*S),r}var Be=D(ze,2),Ve=D(ze,3),He=D(_e,2),Ue=D(_e,3);function We(e,t,n){return _e(e,t*3,n)}var Ge=D(We,2),Ke=D(We,3);function qe(e,t,n){return De(e,t*1e3,n)}var Je=D(qe,2),Ye=D(qe,3);function Xe(e,t,n){return E(e,t*7,n)}var Ze=D(Xe,2),Qe=D(Xe,3),$e=D(ve,3);function et(e,t,n){return _e(e,t*12,n)}var tt=D(et,2),nt=D(et,3);function rt(e,t,n){var r=f([+T(e.start,n?.in),+T(e.end,n?.in)].sort(function(e,t){return e-t}),2),i=r[0],a=r[1],o=f([+T(t.start,n?.in),+T(t.end,n?.in)].sort(function(e,t){return e-t}),2),s=o[0],c=o[1];return n!=null&&n.inclusive?i<=c&&s<=a:it||isNaN(+t))&&(n=t)}),w(r,n||NaN)}function ct(e,t,n){var r=f(P(n?.in,e,t.start,t.end),3),i=r[0],a=r[1],o=r[2];return st([ot([i,a],n),o],n)}var lt=D(ct,2),ut=D(ct,3);function dt(e,t){var n=+T(e);if(isNaN(n))return NaN;var r,i;return t.forEach(function(e,t){var a=T(e);if(isNaN(+a)){r=NaN,i=NaN;return}var o=Math.abs(n-+a);(r==null||o0?1:n}var gt=D(L,2);function _t(e,t){var n=T(e)-+T(t);return n>0?-1:n<0?1:n}var vt=D(_t,2),yt=D(w,2);function bt(e){var t=Math.trunc(e/7);return t===0?0:t}var xt=D(bt,1);function St(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return+Me(i)==+Me(a)}function Ct(e){return e instanceof Date||x(e)===`object`&&Object.prototype.toString.call(e)===`[object Date]`}function R(e){return!(!Ct(e)&&typeof e!=`number`||isNaN(+T(e)))}function wt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];if(!R(i)||!R(a))return NaN;for(var o=F(i,a),s=o<0?-1:1,c=Math.trunc(o/7),l=c*5,u=E(a,c*7);!St(i,u);)l+=O(u,n)?0:s,u=E(u,s);return l===0?0:l}var Tt=D(wt,2),Et=D(wt,3),Dt=D(F,2),Ot=D(F,3);function kt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return M(i,n)-M(a,n)}var At=D(kt,2),jt=D(kt,3);function Mt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=j(i),s=j(a),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/le)}var Nt=D(Mt,2),Pt=D(Mt,3);function Ft(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=i.getFullYear()-a.getFullYear(),s=i.getMonth()-a.getMonth();return o*12+s}var It=D(Ft,2),Lt=D(Ft,3);function Rt(e,t){var n=T(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function zt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=i.getFullYear()-a.getFullYear(),s=Rt(i)-Rt(a);return o*4+s}var Bt=D(zt,2),Vt=D(zt,3);function Ht(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=A(i,n),s=A(a,n),c=+o-N(o),l=+s-N(s);return Math.round((c-l)/le)}var Ut=D(Ht,2),Wt=D(Ht,3);function Gt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return i.getFullYear()-a.getFullYear()}var Kt=D(Gt,2),qt=D(Gt,3);function Jt(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=Yt(i,a),s=Math.abs(F(i,a));i.setDate(i.getDate()-o*s);var c=o*(s-Number(Yt(i,a)===-o));return c===0?0:c}function Yt(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}var Xt=D(Jt,2),Zt=D(Jt,3);function z(e){return function(t){var n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Qt(e,t,n){var r=f(P(n?.in,e,t),2),i=(r[0]-+r[1])/C;return z(n?.roundingMethod)(i)}var $t=D(Qt,2),en=D(Qt,3);function tn(e,t,n){return Pe(e,-t,n)}function nn(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=L(i,a),s=Math.abs(kt(i,a,n)),c=tn(i,o*s,n),l=o*(s-Number(L(c,a)===-o));return l===0?0:l}var rn=D(nn,2),an=D(nn,3);function on(e,t){return T(e)-+T(t)}var sn=D(on,2);function cn(e,t,n){var r=on(e,t)/S;return z(n?.roundingMethod)(r)}var ln=D(cn,2),un=D(cn,3);function dn(e,t){var n=T(e,t?.in);return n.setHours(23,59,59,999),n}function fn(e,t){var n=T(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function pn(e,t){var n=T(e,t?.in);return+dn(n,t)==+fn(n,t)}function mn(e,t,n){var r=f(P(n?.in,e,e,t),3),i=r[0],a=r[1],o=r[2],s=L(a,o),c=Math.abs(Ft(a,o));if(c<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*c);var l=L(a,o)===-s;pn(i)&&c===1&&L(i,o)===1&&(l=!1);var u=s*(c-+l);return u===0?0:u}var hn=D(mn,2),gn=D(mn,3);function _n(e,t,n){var r=mn(e,t,n)/3;return z(n?.roundingMethod)(r)}var vn=D(_n,2),yn=D(_n,3);function B(e,t,n){var r=on(e,t)/1e3;return z(n?.roundingMethod)(r)}var bn=D(B,2),xn=D(B,3);function Sn(e,t,n){var r=Jt(e,t,n)/7;return z(n?.roundingMethod)(r)}var Cn=D(Sn,2),wn=D(Sn,3);function Tn(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1],o=L(i,a),s=Math.abs(Gt(i,a));i.setFullYear(1584),a.setFullYear(1584);var c=o*(s-+(L(i,a)===-o));return c===0?0:c}var En=D(Tn,2),Dn=D(Tn,3);function V(e,t){var n=f(P(e,t.start,t.end),2);return{start:n[0],end:n[1]}}function On(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return a?l.reverse():l}var kn=D(On,1),An=D(On,2);function jn(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setMinutes(0,0,0);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s.setHours(s.getHours()+c);return a?l.reverse():l}var Mn=D(jn,1),Nn=D(jn,2);function Pn(e,t){var n=V(t?.in,e),r=n.start,i=n.end;r.setSeconds(0,0);var a=+r>+i,o=a?+r:+i,s=a?i:r,c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s=ze(s,c);return a?l.reverse():l}var Fn=D(Pn,1),In=D(Pn,2);function Ln(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setDate(1);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s.setMonth(s.getMonth()+c);return a?l.reverse():l}var Rn=D(Ln,1),zn=D(Ln,2);function H(e,t){var n=T(e,t?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function Bn(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=a?+H(r):+H(i),s=H(a?i:r),c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s=We(s,c);return a?l.reverse():l}var Vn=D(Bn,1),Hn=D(Bn,2);function Un(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a=+r>+i,o=A(a?i:r,t),s=A(a?r:i,t);o.setHours(15),s.setHours(15);var c=+s.getTime(),l=o,u=t?.step??1;if(!u)return[];u<0&&(u=-u,a=!a);for(var d=[];+l<=c;)l.setHours(0),d.push(w(r,l)),l=Xe(l,u),l.setHours(15);return a?d.reverse():d}var Wn=D(Un,1),Gn=D(Un,2);function Kn(e,t){for(var n=V(t?.in,e),r=n.start,i=n.end,a=On({start:r,end:i},t),o=[],s=0;s+i,o=a?+r:+i,s=a?i:r;s.setHours(0,0,0,0),s.setMonth(0,1);var c=t?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);for(var l=[];+s<=o;)l.push(w(r,s)),s.setFullYear(s.getFullYear()+c);return a?l.reverse():l}var ar=D(ir,1),or=D(ir,2),sr=D(dn,1),cr=D(dn,2);function lr(e,t){var n=T(e,t?.in),r=n.getFullYear(),i=9+Math.floor(r/10)*10;return n.setFullYear(i,11,31),n.setHours(23,59,59,999),n}var ur=D(lr,1),dr=D(lr,2);function fr(e,t){var n=T(e,t?.in);return n.setMinutes(59,59,999),n}var pr=D(fr,1),mr=D(fr,2);function hr(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=T(e,t?.in),s=o.getDay(),c=(s0?`in `+r:r+` ago`:r};function zr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Br={date:zr({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:zr({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:zr({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Vr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Hr=function(e,t,n,r){return Vr[e]};function Ur(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var Wr={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Ur({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Ur({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:Ur({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Ur({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Ur({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function Gr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?qr(s,function(e){return e.test(o)}):Kr(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function Kr(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qr(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var Yr={code:`en-US`,formatDistance:Rr,formatLong:Br,formatRelative:Hr,localize:Wr,match:{ordinalNumber:Jr({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Gr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Gr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:Gr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Gr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Gr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Xr(e,t){var n=T(e,t?.in);return F(n,er(n))+1}function Zr(e,t){var n=T(e,t?.in),r=j(n)-+I(n);return Math.round(r/le)+1}function Qr(e,t){var n,r,i=T(e,t?.in),a=i.getFullYear(),o=k(),s=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??o.firstWeekContainsDate??((r=o.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,c=w(t?.in||e,0);c.setFullYear(a+1,0,s),c.setHours(0,0,0,0);var l=A(c,t),u=w(t?.in||e,0);u.setFullYear(a,0,s),u.setHours(0,0,0,0);var d=A(u,t);return+i>=+l?a+1:+i>=+d?a:a-1}function $r(e,t){var n,r,i=k(),a=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??i.firstWeekContainsDate??((r=i.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,o=Qr(e,t),s=w(t?.in||e,0);return s.setFullYear(o,0,a),s.setHours(0,0,0,0),A(s,t)}function ei(e,t){var n=T(e,t?.in),r=A(n,t)-+$r(n,t);return Math.round(r/le)+1}function U(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var W={y:function(e,t){var n=e.getFullYear(),r=n>0?n:1-n;return U(t===`yy`?r%100:r,t.length)},M:function(e,t){var n=e.getMonth();return t===`M`?String(n+1):U(n+1,2)},d:function(e,t){return U(e.getDate(),t.length)},a:function(e,t){var n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h:function(e,t){return U(e.getHours()%12||12,t.length)},H:function(e,t){return U(e.getHours(),t.length)},m:function(e,t){return U(e.getMinutes(),t.length)},s:function(e,t){return U(e.getSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getMilliseconds();return U(Math.trunc(r*10**(n-3)),t.length)}},ti={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},ni={G:function(e,t,n){var r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){var r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:`year`})}return W.y(e,t)},Y:function(e,t,n,r){var i=Qr(e,r),a=i>0?i:1-i;return t===`YY`?U(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):U(a,t.length)},R:function(e,t){return U(M(e),t.length)},u:function(e,t){return U(e.getFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return U(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){var r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return U(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){var r=e.getMonth();switch(t){case`M`:case`MM`:return W.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){var r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return U(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){var i=ei(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):U(i,t.length)},I:function(e,t,n){var r=Zr(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):U(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):W.d(e,t)},D:function(e,t,n){var r=Xr(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):U(r,t.length)},E:function(e,t,n){var r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){var i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return U(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){var i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return U(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){var r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return U(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){var r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){var r=e.getHours(),i=r===12?ti.noon:r===0?ti.midnight:r/12>=1?`pm`:`am`;switch(t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){var r=e.getHours(),i=r>=17?ti.evening:r>=12?ti.afternoon:r>=4?ti.morning:ti.night;switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){var r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:`hour`})}return W.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):W.H(e,t)},K:function(e,t,n){var r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):U(r,t.length)},k:function(e,t,n){var r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):U(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):W.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):W.s(e,t)},S:function(e,t){return W.S(e,t)},X:function(e,t,n){var r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return ii(r);case`XXXX`:case`XX`:return ai(r);default:return ai(r,`:`)}},x:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`x`:return ii(r);case`xxxx`:case`xx`:return ai(r);default:return ai(r,`:`)}},O:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+ri(r,`:`);default:return`GMT`+ai(r,`:`)}},z:function(e,t,n){var r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+ri(r,`:`);default:return`GMT`+ai(r,`:`)}},t:function(e,t,n){return U(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return U(+e,t.length)}};function ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+U(a,2)}function ii(e,t){return e%60==0?(e>0?`-`:`+`)+U(Math.abs(e)/60,2):ai(e,t)}function ai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e>0?`-`:`+`,r=Math.abs(e),i=U(Math.trunc(r/60),2),a=U(r%60,2);return n+i+t+a}var oi=function(e,t){switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},si=function(e,t){switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},ci={p:si,P:function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return oi(e,t);var a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,oi(r,t)).replace(`{{time}}`,si(i,t))}},li=/^D+$/,ui=/^Y+$/,di=[`D`,`DD`,`YY`,`YYYY`];function fi(e){return li.test(e)}function pi(e){return ui.test(e)}function mi(e,t,n){var r=hi(e,t,n);if(console.warn(r),di.includes(e))throw RangeError(r)}function hi(e,t,n){var r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var gi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vi=/^'([^]*?)'?$/,yi=/''/g,bi=/[a-zA-Z]/;function xi(e,t,n){var r,i,a,o,s=k(),c=n?.locale??s.locale??Yr,l=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((i=s.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,u=n?.weekStartsOn??(n==null||(a=n.locale)==null||(a=a.options)==null?void 0:a.weekStartsOn)??s.weekStartsOn??((o=s.locale)==null||(o=o.options)==null?void 0:o.weekStartsOn)??0,d=T(e,n?.in);if(!R(d))throw RangeError(`Invalid time value`);var f=t.match(_i).map(function(e){var t=e[0];if(t===`p`||t===`P`){var n=ci[t];return n(e,c.formatLong)}return e}).join(``).match(gi).map(function(e){if(e===`''`)return{isToken:!1,value:`'`};var t=e[0];if(t===`'`)return{isToken:!1,value:Si(e)};if(ni[t])return{isToken:!0,value:e};if(t.match(bi))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});c.localize.preprocessor&&(f=c.localize.preprocessor(d,f));var p={firstWeekContainsDate:l,weekStartsOn:u,locale:c};return f.map(function(r){if(!r.isToken)return r.value;var i=r.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&pi(i)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&fi(i))&&mi(i,t,String(e));var a=ni[i[0]];return a(d,i,c.localize,p)}).join(``)}function Si(e){var t=e.match(vi);return t?t[1].replace(yi,`'`):e}var Ci=D(xi,2);function wi(e,t,n){var r=k(),i=n?.locale??r.locale??Yr,a=2520,o=L(e,t);if(isNaN(o))throw RangeError(`Invalid time value`);var s=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),c=f(P.apply(void 0,[n?.in].concat(te(o>0?[t,e]:[e,t]))),2),l=c[0],u=c[1],d=B(u,l),p=(N(u)-N(l))/1e3,m=Math.round((d-p)/60),h;if(m<2)return n!=null&&n.includeSeconds?d<5?i.formatDistance(`lessThanXSeconds`,5,s):d<10?i.formatDistance(`lessThanXSeconds`,10,s):d<20?i.formatDistance(`lessThanXSeconds`,20,s):d<40?i.formatDistance(`halfAMinute`,0,s):d<60?i.formatDistance(`lessThanXMinutes`,1,s):i.formatDistance(`xMinutes`,1,s):m===0?i.formatDistance(`lessThanXMinutes`,1,s):i.formatDistance(`xMinutes`,m,s);if(m<45)return i.formatDistance(`xMinutes`,m,s);if(m<90)return i.formatDistance(`aboutXHours`,1,s);if(m<1440){var g=Math.round(m/60);return i.formatDistance(`aboutXHours`,g,s)}else if(m0?[t,e]:[e,t]))),2),c=s[0],l=s[1],u=z(n?.roundingMethod??`round`),d=l.getTime()-c.getTime(),p=d/S,m=(d-(N(l)-N(c)))/S,h=n?.unit,g=h||(p<1?`second`:p<60?`minute`:p<1440?`hour`:m<43200?`day`:m<525600?`month`:`year`);if(g===`second`){var _=u(d/1e3);return i.formatDistance(`xSeconds`,_,o)}else if(g===`minute`){var v=u(p);return i.formatDistance(`xMinutes`,v,o)}else if(g===`hour`){var y=u(p/60);return i.formatDistance(`xHours`,y,o)}else if(g===`day`){var ee=u(m/me);return i.formatDistance(`xDays`,ee,o)}else if(g===`month`){var ne=u(m/pe);return ne===12&&h!==`month`?i.formatDistance(`xYears`,1,o):i.formatDistance(`xMonths`,ne,o)}else{var b=u(m/fe);return i.formatDistance(`xYears`,b,o)}}var Di=D(Ei,2),Oi=D(Ei,3),ki=D(wi,3),Ai=[`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`];function ji(e,t){var n=k(),r=t?.locale??n.locale??Yr,i=t?.format??Ai,a=t?.zero??!1,o=t?.delimiter??` `;return r.formatDistance?i.reduce(function(t,n){var i=`x${n.replace(/(^.)/,function(e){return e.toUpperCase()})}`,o=e[n];return o!==void 0&&(a||e[n])?t.concat(r.formatDistance(i,o)):t},[]).join(o):``}var Mi=D(ji,1),Ni=D(ji,2);function Pi(e,t){var n=T(e,t?.in);if(isNaN(+n))throw RangeError(`Invalid time value`);var r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=``,s=r===`extended`?`-`:``,c=r===`extended`?`:`:``;if(i!==`time`){var l=U(n.getDate(),2),u=U(n.getMonth()+1,2);a=``.concat(U(n.getFullYear(),4),s,u,s,l)}if(i!==`date`){var d=n.getTimezoneOffset();if(d!==0){var f=Math.abs(d),p=U(Math.trunc(f/60),2),m=U(f%60,2);o=`${d<0?`+`:`-`}${p}:${m}`}else o=`Z`;var h=U(n.getHours(),2),g=U(n.getMinutes(),2),_=U(n.getSeconds(),2),v=a===``?``:`T`,y=[h,g,_].join(c);a=`${a}${v}${y}${o}`}return a}var Fi=D(Pi,1);function Ii(e,t){var n=T(e,t?.in);if(!R(n))throw RangeError(`Invalid time value`);var r=t?.format??`extended`,i=t?.representation??`complete`,a=``,o=r===`extended`?`-`:``,s=r===`extended`?`:`:``;if(i!==`time`){var c=U(n.getDate(),2),l=U(n.getMonth()+1,2);a=``.concat(U(n.getFullYear(),4),o,l,o,c)}if(i!==`date`){var u=U(n.getHours(),2),d=U(n.getMinutes(),2),f=U(n.getSeconds(),2);a=``.concat(a,a===``?``:` `,u,s,d,s,f)}return a}var Li=D(Ii,1),Ri=D(Ii,2);function zi(e){var t=e.years,n=t===void 0?0:t,r=e.months,i=r===void 0?0:r,a=e.days,o=a===void 0?0:a,s=e.hours,c=s===void 0?0:s,l=e.minutes,u=l===void 0?0:l,d=e.seconds;return`P${n}Y${i}M${o}DT${c}H${u}M${d===void 0?0:d}S`}var Bi=D(zi,1),Vi=D(Pi,2);function Hi(e,t){var n=T(e,t?.in);if(!R(n))throw RangeError(`Invalid time value`);var r=t?.fractionDigits??0,i=U(n.getDate(),2),a=U(n.getMonth()+1,2),o=n.getFullYear(),s=U(n.getHours(),2),c=U(n.getMinutes(),2),l=U(n.getSeconds(),2),u=``;if(r>0){var d=n.getMilliseconds();u=`.`+U(Math.trunc(d*10**(r-3)),r)}var f=``,p=n.getTimezoneOffset();if(p!==0){var m=Math.abs(p),h=U(Math.trunc(m/60),2),g=U(m%60,2);f=`${p<0?`+`:`-`}${h}:${g}`}else f=`Z`;return`${o}-${a}-${i}T${s}:${c}:${l}${u}${f}`}var Ui=D(Hi,1),Wi=D(Hi,2),Gi=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Ki=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function qi(e){var t=T(e);if(!R(t))throw RangeError(`Invalid time value`);return`${Gi[t.getUTCDay()]}, ${U(t.getUTCDate(),2)} ${Ki[t.getUTCMonth()]} ${t.getUTCFullYear()} ${U(t.getUTCHours(),2)}:${U(t.getUTCMinutes(),2)}:${U(t.getUTCSeconds(),2)} GMT`}var Ji=D(qi,1);function Yi(e,t,n){var r,i,a=f(P(n?.in,e,t),2),o=a[0],s=a[1],c=k(),l=n?.locale??c.locale??Yr,u=n?.weekStartsOn??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??c.weekStartsOn??((i=c.locale)==null||(i=i.options)==null?void 0:i.weekStartsOn)??0,d=F(o,s);if(isNaN(d))throw RangeError(`Invalid time value`);var p=d<-6?`other`:d<-1?`lastWeek`:d<0?`yesterday`:d<1?`today`:d<2?`tomorrow`:d<7?`nextWeek`:`other`;return xi(o,l.formatRelative(p,o,s,{locale:l,weekStartsOn:u}),{locale:l,weekStartsOn:u})}var Xi=D(Yi,2),Zi=D(Yi,3),Qi=D(xi,3);function $i(e,t){return T(e*1e3,t?.in)}var ea=D($i,1),ta=D($i,2);function na(e,t){return T(e,t?.in).getDate()}var ra=D(na,1),ia=D(na,2);function aa(e,t){return T(e,t?.in).getDay()}var oa=D(aa,1),sa=D(Xr,1),ca=D(Xr,2),la=D(aa,2);function ua(e,t){var n=T(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=w(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}var da=D(ua,1),fa=D(ua,2);function pa(e,t){var n=T(e,t?.in).getFullYear();return n%400==0||n%4==0&&n%100!=0}function ma(e,t){var n=T(e,t?.in);return Number.isNaN(+n)?NaN:pa(n)?366:365}var ha=D(ma,1),ga=D(ma,2);function _a(e,t){var n=T(e,t?.in).getFullYear();return Math.floor(n/10)*10}var va=D(_a,1),ya=D(_a,2);function ba(e,t){return T(e,t?.in).getHours()}var xa=D(ba,1),Sa=D(ba,2);function Ca(e,t){var n=T(e,t?.in).getDay();return n===0?7:n}var wa=D(Ca,1),Ta=D(Ca,2),Ea=D(Zr,1),Da=D(Zr,2),Oa=D(M,1),ka=D(M,2);function Aa(e,t){var n=I(e,t),r=I(Xe(n,60))-+n;return Math.round(r/le)}var ja=D(Aa,1),Ma=D(Aa,2);function Na(e){return T(e).getMilliseconds()}var Pa=D(Na,1);function Fa(e,t){return T(e,t?.in).getMinutes()}var Ia=D(Fa,1),La=D(Fa,2);function Ra(e,t){return T(e,t?.in).getMonth()}var za=D(Ra,1),Ba=D(Ra,2);function Va(e,t){var n=f([+T(e.start),+T(e.end)].sort(function(e,t){return e-t}),2),r=n[0],i=n[1],a=f([+T(t.start),+T(t.end)].sort(function(e,t){return e-t}),2),o=a[0],s=a[1];if(!(ri?i:s,d=u-N(u);return Math.ceil((d-l)/ue)}var Ha=D(Va,2),Ua=D(Rt,1),Wa=D(Rt,2);function Ga(e){return T(e).getSeconds()}var Ka=D(Ga,1);function qa(e){return+T(e)}var Ja=D(qa,1);function Ya(e){return Math.trunc(T(e)/1e3)}var Xa=D(Ya,1),Za=D(ei,1);function Qa(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=na(T(e,t?.in));if(isNaN(o))return NaN;var s=a-aa(Yn(e,t));s<=0&&(s+=7);var c=o-s;return Math.ceil(c/7)+1}var $a=D(Qa,1),eo=D(Qa,2),to=D(ei,2),no=D(Qr,1),ro=D(Qr,2);function io(e,t){var n=T(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),T(n,t?.in)}function ao(e,t){var n=T(e,t?.in);return Ht(io(n,t),Yn(n,t),t)+1}var oo=D(ao,1),so=D(ao,2);function co(e,t){return T(e,t?.in).getFullYear()}var lo=D(co,1),uo=D(co,2);function fo(e){return Math.trunc(e*C)}var po=D(fo,1);function mo(e){return Math.trunc(e*60)}var ho=D(mo,1);function go(e){return Math.trunc(e*he)}var _o=D(go,1);function vo(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];if(isNaN(+i))throw TypeError(`Start date is invalid`);if(isNaN(+a))throw TypeError(`End date is invalid`);if(n!=null&&n.assertPositive&&+i>+a)throw TypeError(`End date must be after start date`);return{start:i,end:a}}var yo=D(vo,2);function bo(e,t){var n=V(t?.in,e),r=n.start,i=n.end,a={},o=Tn(i,r);o&&(a.years=o);var s=ve(r,{years:a.years}),c=mn(i,s);c&&(a.months=c);var l=ve(s,{months:a.months}),u=Jt(i,l);u&&(a.days=u);var d=ve(l,{days:a.days}),f=Qt(i,d);f&&(a.hours=f);var p=ve(d,{hours:a.hours}),m=cn(i,p);m&&(a.minutes=m);var h=B(i,ve(p,{minutes:a.minutes}));return h&&(a.seconds=h),a}var xo=D(bo,1),So=D(bo,2),Co=D(vo,3);function wo(e,t,n){var r;return To(t)?r=t:n=t,new Intl.DateTimeFormat(n?.locale,r).format(T(e))}function To(e){return e!==void 0&&!(`locale`in e)}var Eo=D(wo,3);function Do(e,t,n){var r=0,i,a=f(P(n?.in,e,t),2),o=a[0],s=a[1];if(n!=null&&n.unit)i=n?.unit,i===`second`?r=B(o,s):i===`minute`?r=cn(o,s):i===`hour`?r=Qt(o,s):i===`day`?r=F(o,s):i===`week`?r=Ht(o,s):i===`month`?r=Ft(o,s):i===`quarter`?r=zt(o,s):i===`year`&&(r=Gt(o,s));else{var c=B(o,s);Math.abs(c)<60?(r=B(o,s),i=`second`):Math.abs(c)<3600?(r=cn(o,s),i=`minute`):Math.abs(c)<86400&&Math.abs(F(o,s))<1?(r=Qt(o,s),i=`hour`):Math.abs(c)<604800&&(r=F(o,s))&&Math.abs(r)<7?i=`day`:Math.abs(c)<2629746?(r=Ht(o,s),i=`week`):Math.abs(c)<7889238?(r=Ft(o,s),i=`month`):Math.abs(c)<31556952&&zt(o,s)<4?(r=zt(o,s),i=`quarter`):(r=Gt(o,s),i=`year`)}return new Intl.RelativeTimeFormat(n?.locale,_({numeric:`auto`},n)).format(r,i)}var Oo=D(Do,2),ko=D(Do,3);function Ao(e,t){return+T(e)>+T(t)}var jo=D(Ao,2);function Mo(e,t){return+T(e)<+T(t)}var No=D(Mo,2),Po=D(Ct,1);function Fo(e,t){return+T(e)==+T(t)}var Io=D(Fo,2);function Lo(e,t,n){var r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}var Ro=D(Lo,3);function zo(e,t){return T(e,t?.in).getDate()===1}var Bo=D(zo,1),Vo=D(zo,2);function Ho(e,t){return T(e,t?.in).getDay()===5}var Uo=D(Ho,1),Wo=D(Ho,2),Go=D(pn,1),Ko=D(pn,2),qo=D(pa,1),Jo=D(pa,2);function Yo(){return Object.assign({},k())}function Xo(e,t){var n=Zo(t)?new t(0):w(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Zo(e){return typeof e==`function`&&e.prototype?.constructor===e}var Qo=10,$o=function(){function e(){c(this,e),v(this,`subPriority`,0)}return u(e,[{key:`validate`,value:function(e,t){return!0}}])}(),es=function(e){function n(e,r,i,a,o){var s;return c(this,n),s=t(this,n),s.value=e,s.validateValue=r,s.setValue=i,s.priority=a,o&&(s.subPriority=o),s}return o(n,e),u(n,[{key:`validate`,value:function(e,t){return this.validateValue(e,this.value,t)}},{key:`set`,value:function(e,t,n){return this.setValue(e,t,this.value,n)}}])}($o),ts=function(e){function n(e,r){var i;return c(this,n),i=t(this,n),v(i,`priority`,Qo),v(i,`subPriority`,-1),i.context=e||function(e){return w(r,e)},i}return o(n,e),u(n,[{key:`set`,value:function(e,t){return t.timestampIsSet?e:w(e,Xo(e,this.context))}}])}($o),G=function(){function e(){c(this,e)}return u(e,[{key:`run`,value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new es(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:`validate`,value:function(e,t,n){return!0}}])}(),ns=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,140),v(e,`incompatibleTokens`,[`R`,`u`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}},{key:`set`,value:function(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}])}(G),K={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function J(e,t){return e&&{value:t(e.value),rest:e.rest}}function Y(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function X(e,t){var n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};var r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*C+a*S+o*de),rest:t.slice(n[0].length)}}function rs(e){return Y(K.anyDigitsSigned,e)}function Z(e,t){switch(e){case 1:return Y(K.singleDigit,t);case 2:return Y(K.twoDigits,t);case 3:return Y(K.threeDigits,t);case 4:return Y(K.fourDigits,t);default:return Y(RegExp(`^\\d{1,`+e+`}`),t)}}function is(e,t){switch(e){case 1:return Y(K.singleDigitSigned,t);case 2:return Y(K.twoDigitsSigned,t);case 3:return Y(K.threeDigitsSigned,t);case 4:return Y(K.fourDigitsSigned,t);default:return Y(RegExp(`^-?\\d{1,`+e+`}`),t)}}function as(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function os(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.trunc(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function ss(e){return e%400==0||e%4==0&&e%100!=0}var cs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,130),v(e,`incompatibleTokens`,[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`yy`}};switch(t){case`y`:return J(Z(4,e),r);case`yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n){var r=e.getFullYear();if(n.isTwoDigitYear){var i=os(n.year,r);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}var a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}])}(G),ls=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,130),v(e,`incompatibleTokens`,[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`YY`}};switch(t){case`Y`:return J(Z(4,e),r);case`Yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n,r){var i=Qr(e,r);if(n.isTwoDigitYear){var a=os(n.year,i);return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),A(e,r)}var o=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(o,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),A(e,r)}}])}(G),us=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,130),v(e,`incompatibleTokens`,[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return is(t===`R`?4:t.length,e)}},{key:`set`,value:function(e,t,n){var r=w(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),j(r)}}])}(G),ds=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,130),v(e,`incompatibleTokens`,[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return is(t===`u`?4:t.length,e)}},{key:`set`,value:function(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}])}(G),fs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,120),v(e,`incompatibleTokens`,[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`Q`:case`QQ`:return Z(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}])}(G),ps=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,120),v(e,`incompatibleTokens`,[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`q`:case`qq`:return Z(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}])}(G),ms=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),v(e,`priority`,110),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`M`:return J(Y(K.month,e),r);case`MM`:return J(Z(2,e),r);case`Mo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}])}(G),hs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,110),v(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`L`:return J(Y(K.month,e),r);case`LL`:return J(Z(2,e),r);case`Lo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}])}(G);function gs(e,t,n){var r=T(e,n?.in),i=ei(r,n)-t;return r.setDate(r.getDate()-i*7),T(r,n?.in)}var _s=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,100),v(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`w`:return Y(K.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n,r){return A(gs(e,n,r),r)}}])}(G);function vs(e,t,n){var r=T(e,n?.in),i=Zr(r,n)-t;return r.setDate(r.getDate()-i*7),r}var ys=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,100),v(e,`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`I`:return Y(K.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n){return j(vs(e,n))}}])}(G),bs=[31,28,31,30,31,30,31,31,30,31,30,31],xs=[31,29,31,30,31,30,31,31,30,31,30,31],Ss=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`subPriority`,1),v(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`d`:return Y(K.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){var n=ss(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=xs[r]:t>=1&&t<=bs[r]}},{key:`set`,value:function(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}])}(G),Cs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`subpriority`,1),v(e,`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`D`:case`DD`:return Y(K.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return ss(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:`set`,value:function(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}])}(G);function ws(e,t,n){var r,i,a=k(),o=n?.weekStartsOn??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((i=a.locale)==null||(i=i.options)==null?void 0:i.weekStartsOn)??0,s=T(e,n?.in),c=s.getDay(),l=(t%7+7)%7,u=7-o;return E(s,t<0||t>6?t-(c+u)%7:(l+u)%7-(c+u)%7,n)}var Ts=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`incompatibleTokens`,[`D`,`i`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=ws(e,n,r),e.setHours(0,0,0,0),e}}])}(G),Es=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return J(Z(t.length,e),i);case`eo`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=ws(e,n,r),e.setHours(0,0,0,0),e}}])}(G),Ds=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return J(Z(t.length,e),i);case`co`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=ws(e,n,r),e.setHours(0,0,0,0),e}}])}(G);function Os(e,t,n){var r=T(e,n?.in);return E(r,t-Ca(r,n),n)}var ks=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,90),v(e,`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){var r=function(e){return e===0?7:e};switch(t){case`i`:case`ii`:return Z(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return J(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return J(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return J(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return J(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=7}},{key:`set`,value:function(e,t,n){return e=Os(e,n),e.setHours(0,0,0,0),e}}])}(G),As=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,80),v(e,`incompatibleTokens`,[`b`,`B`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(as(n),0,0,0),e}}])}(G),js=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,80),v(e,`incompatibleTokens`,[`a`,`B`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(as(n),0,0,0),e}}])}(G),Ms=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,80),v(e,`incompatibleTokens`,[`a`,`b`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setHours(as(n),0,0,0),e}}])}(G),Ns=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,70),v(e,`incompatibleTokens`,[`H`,`K`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`h`:return Y(K.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=12}},{key:`set`,value:function(e,t,n){var r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}}])}(G),Ps=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,70),v(e,`incompatibleTokens`,[`a`,`b`,`h`,`K`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`H`:return Y(K.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=23}},{key:`set`,value:function(e,t,n){return e.setHours(n,0,0,0),e}}])}(G),Fs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,70),v(e,`incompatibleTokens`,[`h`,`H`,`k`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`K`:return Y(K.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}])}(G),Is=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,70),v(e,`incompatibleTokens`,[`a`,`b`,`h`,`H`,`K`,`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`k`:return Y(K.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=24}},{key:`set`,value:function(e,t,n){var r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}])}(G),Ls=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,60),v(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`m`:return Y(K.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setMinutes(n,0,0),e}}])}(G),Rs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,50),v(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t,n){switch(t){case`s`:return Y(K.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setSeconds(n,0),e}}])}(G),zs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,30),v(e,`incompatibleTokens`,[`t`,`T`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){return J(Z(t.length,e),function(e){return Math.trunc(e*10**(-t.length+3))})}},{key:`set`,value:function(e,t,n){return e.setMilliseconds(n),e}}])}(G),Bs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,10),v(e,`incompatibleTokens`,[`t`,`T`,`x`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){switch(t){case`X`:return X(q.basicOptionalMinutes,e);case`XX`:return X(q.basic,e);case`XXXX`:return X(q.basicOptionalSeconds,e);case`XXXXX`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:w(e,e.getTime()-N(e)-n)}}])}(G),Vs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,10),v(e,`incompatibleTokens`,[`t`,`T`,`X`]),e}return o(n,e),u(n,[{key:`parse`,value:function(e,t){switch(t){case`x`:return X(q.basicOptionalMinutes,e);case`xx`:return X(q.basic,e);case`xxxx`:return X(q.basicOptionalSeconds,e);case`xxxxx`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:w(e,e.getTime()-N(e)-n)}}])}(G),Hs=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,40),v(e,`incompatibleTokens`,`*`),e}return o(n,e),u(n,[{key:`parse`,value:function(e){return rs(e)}},{key:`set`,value:function(e,t,n){return[w(e,n*1e3),{timestampIsSet:!0}]}}])}(G),Us=function(e){function n(){var e;c(this,n);var r=[...arguments];return e=t(this,n,[].concat(r)),v(e,`priority`,20),v(e,`incompatibleTokens`,`*`),e}return o(n,e),u(n,[{key:`parse`,value:function(e){return rs(e)}},{key:`set`,value:function(e,t,n){return[w(e,n),{timestampIsSet:!0}]}}])}(G),Ws={G:new ns,y:new cs,Y:new ls,R:new us,u:new ds,Q:new fs,q:new ps,M:new ms,L:new hs,w:new _s,I:new ys,d:new Ss,D:new Cs,E:new Ts,e:new Es,c:new Ds,i:new ks,a:new As,b:new js,B:new Ms,h:new Ns,H:new Ps,K:new Fs,k:new Is,m:new Ls,s:new Rs,S:new zs,X:new Bs,x:new Vs,t:new Hs,T:new Us},Gs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ks=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qs=/^'([^]*?)'?$/,Js=/''/g,Ys=/\S/,Xs=/[a-zA-Z]/;function Zs(t,n,r,i){var a,o,s,c,l=function(){return w(i?.in||r,NaN)},u=Yo(),d=i?.locale??u.locale??Yr,f=i?.firstWeekContainsDate??(i==null||(a=i.locale)==null||(a=a.options)==null?void 0:a.firstWeekContainsDate)??u.firstWeekContainsDate??((o=u.locale)==null||(o=o.options)==null?void 0:o.firstWeekContainsDate)??1,p=i?.weekStartsOn??(i==null||(s=i.locale)==null||(s=s.options)==null?void 0:s.weekStartsOn)??u.weekStartsOn??((c=u.locale)==null||(c=c.options)==null?void 0:c.weekStartsOn)??0;if(!n)return t?l():T(r,i?.in);var m={firstWeekContainsDate:f,weekStartsOn:p,locale:d},h=[new ts(i?.in,r)],g=n.match(Ks).map(function(e){var t=e[0];if(t in ci){var n=ci[t];return n(e,d.formatLong)}return e}).join(``).match(Gs),_=[],v=e(g),y;try{var ee=function(){var e=y.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&pi(e)&&mi(e,n,t),!(i!=null&&i.useAdditionalDayOfYearTokens)&&fi(e)&&mi(e,n,t);var r=e[0],a=Ws[r];if(a){var o=a.incompatibleTokens;if(Array.isArray(o)){var s=_.find(function(e){return o.includes(e.token)||e.token===r});if(s)throw RangeError(`The format string mustn't contain \`${s.fullToken}\` and \`${e}\` at the same time`)}else if(a.incompatibleTokens===`*`&&_.length>0)throw RangeError(`The format string mustn't contain \`${e}\` and any other token at the same time`);_.push({token:r,fullToken:e});var c=a.run(t,e,d.match,m);if(!c)return{v:l()};h.push(c.setter),t=c.rest}else{if(r.match(Xs))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if(e===`''`?e=`'`:r===`'`&&(e=Qs(e)),t.indexOf(e)===0)t=t.slice(e.length);else return{v:l()}}},te;for(v.s();!(y=v.n()).done;)if(te=ee(),te)return te.v}catch(e){v.e(e)}finally{v.f()}if(t.length>0&&Ys.test(t))return l();var ne=h.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return h.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),b=T(r,i?.in);if(isNaN(+b))return l();var re={},ie=e(ne),ae;try{for(ie.s();!(ae=ie.n()).done;){var x=ae.value;if(!x.validate(b,m))return l();var oe=x.set(b,re,m);Array.isArray(oe)?(b=oe[0],Object.assign(re,oe[1])):b=oe}}catch(e){ie.e(e)}finally{ie.f()}return b}function Qs(e){return e.match(qs)[1].replace(Js,`'`)}function $s(e,t,n){return R(Zs(e,t,new Date,n))}var ec=D($s,2),tc=D($s,3);function nc(e,t){return T(e,t?.in).getDay()===1}var rc=D(nc,1),ic=D(nc,2),ac=D(St,2),oc=D(St,3);function sc(e,t){var n=T(e,t?.in);return n.setMinutes(0,0,0),n}function cc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return+sc(i)==+sc(a)}var lc=D(cc,2),uc=D(cc,3);function dc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return+A(i,n)==+A(a,n)}function fc(e,t,n){return dc(e,t,_(_({},n),{},{weekStartsOn:1}))}var pc=D(fc,2),mc=D(fc,3);function hc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return+I(i)==+I(a)}var gc=D(hc,2),_c=D(hc,3);function vc(e,t){var n=T(e,t?.in);return n.setSeconds(0,0),n}function yc(e,t){return+vc(e)==+vc(t)}var bc=D(yc,2);function xc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return i.getFullYear()===a.getFullYear()&&i.getMonth()===a.getMonth()}var Sc=D(xc,2),Cc=D(xc,3);function wc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return+H(i)==+H(a)}var Tc=D(wc,2),Ec=D(wc,3);function Dc(e,t){var n=T(e,t?.in);return n.setMilliseconds(0),n}function Oc(e,t){return+Dc(e)==+Dc(t)}var kc=D(Oc,2),Ac=D(dc,2),jc=D(dc,3);function Mc(e,t,n){var r=f(P(n?.in,e,t),2),i=r[0],a=r[1];return i.getFullYear()===a.getFullYear()}var Nc=D(Mc,2),Pc=D(Mc,3),Fc=D(be,1),Ic=D(be,2),Lc=D(xe,1),Rc=D(xe,2);function zc(e,t){return T(e,t?.in).getDay()===4}var Bc=D(zc,1),Vc=D(zc,2);function Hc(e,t){return T(e,t?.in).getDay()===2}var Uc=D(Hc,1),Wc=D(Hc,2),Gc=D(R,1);function Kc(e,t){return T(e,t?.in).getDay()===3}var qc=D(Kc,1),Jc=D(Kc,2),Yc=D(O,1),Xc=D(O,2);function Zc(e,t,n){var r=+T(e,n?.in),i=f([+T(t.start,n?.in),+T(t.end,n?.in)].sort(function(e,t){return e-t}),2),a=i[0],o=i[1];return r>=a&&r<=o}var Qc=D(Zc,2),$c=D(Zc,3);function el(e,t){var n=T(e,t?.in),r=n.getFullYear(),i=9+Math.floor(r/10)*10;return n.setFullYear(i+1,0,0),n.setHours(0,0,0,0),T(n,t?.in)}var tl=D(el,1),nl=D(el,2);function rl(e,t){var n,r,i=k(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=T(e,t?.in),s=o.getDay(),c=(s2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],bu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(bu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=bu.timezone.exec(r);i?(t.time=r.replace(i[1],``),t.timezone=i[1]):t.time=r}return t}function Tu(e,t){var n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Eu(e,t){if(t===null)return new Date(NaN);var n=e.match(xu);if(!n)return new Date(NaN);var r=!!n[4],i=Du(n[1]),a=Du(n[2])-1,o=Du(n[3]),s=Du(n[4]),c=Du(n[5])-1;if(r)return Iu(t,s,c)?ju(t,s,c):new Date(NaN);var l=new Date(0);return!Pu(t,a,o)||!Fu(t,i)?new Date(NaN):(l.setUTCFullYear(t,a,Math.max(i,o)),l)}function Du(e){return e?parseInt(e):1}function Ou(e){var t=e.match(Su);if(!t)return NaN;var n=ku(t[1]),r=ku(t[2]),i=ku(t[3]);return Lu(n,r,i)?n*C+r*S+i*1e3:NaN}function ku(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function Au(e){if(e===`Z`)return 0;var t=e.match(Cu);if(!t)return 0;var n=t[1]===`+`?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Ru(r,i)?n*(r*C+i*S):NaN}function ju(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Mu=[31,null,31,30,31,30,31,31,30,31,30,31];function Nu(e){return e%400==0||e%4==0&&e%100!=0}function Pu(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mu[t]||(Nu(e)?29:28))}function Fu(e,t){return t>=1&&t<=(Nu(e)?366:365)}function Iu(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Lu(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Ru(e,t){return t>=0&&t<=59}var zu=D(yu,1),Bu=D(yu,2);function Vu(e,t){var n=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return T(n?Date.UTC(+n[1],n[2]-1,+n[3],n[4]-(+n[9]||0)*(n[8]==`-`?-1:1),n[5]-(+n[10]||0)*(n[8]==`-`?-1:1),+n[6],+((n[7]||`0`)+`00`).substring(0,3)):NaN,t?.in)}var Hu=D(Vu,1),Uu=D(Vu,2),Wu=D(Zs,4);function Gu(e,t,n){return E(e,-t,n)}function $(e,t,n){var r=aa(e,n)-t;return r<=0&&(r+=7),Gu(e,r,n)}var Ku=D($,2),qu=D($,3);function Ju(e,t){return $(e,5,t)}var Yu=D(Ju,1),Xu=D(Ju,2);function Zu(e,t){return $(e,1,t)}var Qu=D(Zu,1),$u=D(Zu,2);function ed(e,t){return $(e,6,t)}var td=D(ed,1),nd=D(ed,2);function rd(e,t){return $(e,0,t)}var id=D(rd,1),ad=D(rd,2);function od(e,t){return $(e,4,t)}var sd=D(od,1),cd=D(od,2);function ld(e,t){return $(e,2,t)}var ud=D(ld,1),dd=D(ld,2);function fd(e,t){return $(e,3,t)}var pd=D(fd,1),md=D(fd,2);function hd(e){return Math.trunc(e*3)}var gd=D(hd,1);function _d(e){var t=e/4;return Math.trunc(t)}var vd=D(_d,1);function yd(e,t){var n=t?.nearestTo??1;if(n<1||n>12)return w(t?.in||e,NaN);var r=T(e,t?.in),i=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,s=r.getHours()+i+a+o,c=z(t?.roundingMethod??`round`)(s/n)*n;return r.setHours(c,0,0,0),r}var bd=D(yd,1),xd=D(yd,2);function Sd(e,t){var n=t?.nearestTo??1;if(n<1||n>30)return w(e,NaN);var r=T(e,t?.in),i=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+i+a,s=z(t?.roundingMethod??`round`)(o/n)*n;return r.setMinutes(s,0,0),r}var Cd=D(Sd,1),wd=D(Sd,2);function Td(e){var t=e/he;return Math.trunc(t)}var Ed=D(Td,1);function Dd(e){return e*de}var Od=D(Dd,1);function kd(e){var t=e/60;return Math.trunc(t)}var Ad=D(kd,1);function jd(e,t,n){var r=T(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=w(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);var s=ua(o);return r.setMonth(t,Math.min(a,s)),r}function Md(e,t,n){var r=T(e,n?.in);return isNaN(+r)?w(n?.in||e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=jd(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}var Nd=D(Md,2);function Pd(e,t,n){var r=T(e,n?.in);return r.setDate(t),r}var Fd=D(Pd,2),Id=D(Pd,3),Ld=D(ws,2);function Rd(e,t,n){var r=T(e,n?.in);return r.setMonth(0),r.setDate(t),r}var zd=D(Rd,2),Bd=D(Rd,3),Vd=D(ws,3);function Hd(e,t,n){var r=T(e,n?.in);return r.setHours(t),r}var Ud=D(Hd,2),Wd=D(Hd,3),Gd=D(Os,2),Kd=D(Os,3),qd=D(vs,2),Jd=D(vs,3),Yd=D(Ne,2),Xd=D(Ne,3);function Zd(e,t,n){var r=T(e,n?.in);return r.setMilliseconds(t),r}var Qd=D(Zd,2),$d=D(Zd,3);function ef(e,t,n){var r=T(e,n?.in);return r.setMinutes(t),r}var tf=D(ef,2),nf=D(ef,3),rf=D(jd,2),af=D(jd,3);function of(e,t,n){var r=T(e,n?.in),i=t-(Math.trunc(r.getMonth()/3)+1);return jd(r,r.getMonth()+i*3)}var sf=D(of,2),cf=D(of,3);function lf(e,t,n){var r=T(e,n?.in);return r.setSeconds(t),r}var uf=D(lf,2),df=D(lf,3),ff=D(gs,2),pf=D(gs,3);function mf(e,t,n){var r,i,a=k(),o=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??a.firstWeekContainsDate??((i=a.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,s=F(T(e,n?.in),$r(e,n),n),c=w(n?.in||e,0);c.setFullYear(t,0,o),c.setHours(0,0,0,0);var l=$r(c,n);return l.setDate(l.getDate()+s),l}var hf=D(mf,2),gf=D(mf,3),_f=D(Md,3);function vf(e,t,n){var r=T(e,n?.in);return isNaN(+r)?w(n?.in||e,NaN):(r.setFullYear(t),r)}var yf=D(vf,2),bf=D(vf,3),xf=D(Me,1),Sf=D(Me,2);function Cf(e,t){var n=T(e,t?.in),r=n.getFullYear(),i=Math.floor(r/10)*10;return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}var wf=D(Cf,1),Tf=D(Cf,2),Ef=D(sc,1),Df=D(sc,2),Of=D(j,1),kf=D(j,2),Af=D(I,1),jf=D(I,2),Mf=D(vc,1),Nf=D(vc,2),Pf=D(Yn,1),Ff=D(Yn,2),If=D(H,1),Lf=D(H,2),Rf=D(Dc,1),zf=D(Dc,2),Bf=D(A,1),Vf=D(A,2),Hf=D($r,1),Uf=D($r,2),Wf=D(er,1),Gf=D(er,2);function Kf(e,t,n){return _e(e,-t,n)}function qf(e,t,n){var r=t.years,i=r===void 0?0:r,a=t.months,o=a===void 0?0:a,s=t.weeks,c=s===void 0?0:s,l=t.days,u=l===void 0?0:l,d=t.hours,f=d===void 0?0:d,p=t.minutes,m=p===void 0?0:p,h=t.seconds,g=h===void 0?0:h,_=Gu(Kf(e,o+i*12,n),u+c*7,n),v=(g+(m+f*60)*60)*1e3;return w(n?.in||e,+_-v)}var Jf=D(qf,2);function Yf(e,t,n){return Se(e,-t,n)}var Xf=D(Yf,2),Zf=D(Yf,3),Qf=D(Gu,2),$f=D(Gu,3);function ep(e,t,n){return Oe(e,-t,n)}var tp=D(ep,2),np=D(ep,3),rp=D(tn,2),ip=D(tn,3);function ap(e,t,n){return De(e,-t,n)}var op=D(ap,2),sp=D(ap,3);function cp(e,t,n){return ze(e,-t,n)}var lp=D(cp,2),up=D(cp,3),dp=D(Kf,2),fp=D(Kf,3);function pp(e,t,n){return We(e,-t,n)}var mp=D(pp,2),hp=D(pp,3);function gp(e,t,n){return qe(e,-t,n)}var _p=D(gp,2),vp=D(gp,3);function yp(e,t,n){return Xe(e,-t,n)}var bp=D(yp,2),xp=D(yp,3),Sp=D(qf,3);function Cp(e,t,n){return et(e,-t,n)}var wp=D(Cp,2),Tp=D(Cp,3),Ep=D(T,2),Dp=D(Xo,2);function Op(e){return Math.trunc(e*7)}var kp=D(Op,1);function Ap(e){return Math.trunc(e*ce)}var jp=D(Ap,1);function Mp(e){return Math.trunc(e*12)}var Np=D(Mp,1);function Pp(e){return Math.trunc(e*4)}var Fp=D(Pp,1),Ip=se({add:function(){return ye},addBusinessDays:function(){return Ce},addBusinessDaysWithOptions:function(){return we},addDays:function(){return Te},addDaysWithOptions:function(){return Ee},addHours:function(){return ke},addHoursWithOptions:function(){return Ae},addISOWeekYears:function(){return Fe},addISOWeekYearsWithOptions:function(){return Ie},addMilliseconds:function(){return Le},addMillisecondsWithOptions:function(){return Re},addMinutes:function(){return Be},addMinutesWithOptions:function(){return Ve},addMonths:function(){return He},addMonthsWithOptions:function(){return Ue},addQuarters:function(){return Ge},addQuartersWithOptions:function(){return Ke},addSeconds:function(){return Je},addSecondsWithOptions:function(){return Ye},addWeeks:function(){return Ze},addWeeksWithOptions:function(){return Qe},addWithOptions:function(){return $e},addYears:function(){return tt},addYearsWithOptions:function(){return nt},areIntervalsOverlapping:function(){return it},areIntervalsOverlappingWithOptions:function(){return at},clamp:function(){return lt},clampWithOptions:function(){return ut},closestIndexTo:function(){return ft},closestTo:function(){return mt},closestToWithOptions:function(){return ht},compareAsc:function(){return gt},compareDesc:function(){return vt},constructFrom:function(){return yt},daysToWeeks:function(){return xt},differenceInBusinessDays:function(){return Tt},differenceInBusinessDaysWithOptions:function(){return Et},differenceInCalendarDays:function(){return Dt},differenceInCalendarDaysWithOptions:function(){return Ot},differenceInCalendarISOWeekYears:function(){return At},differenceInCalendarISOWeekYearsWithOptions:function(){return jt},differenceInCalendarISOWeeks:function(){return Nt},differenceInCalendarISOWeeksWithOptions:function(){return Pt},differenceInCalendarMonths:function(){return It},differenceInCalendarMonthsWithOptions:function(){return Lt},differenceInCalendarQuarters:function(){return Bt},differenceInCalendarQuartersWithOptions:function(){return Vt},differenceInCalendarWeeks:function(){return Ut},differenceInCalendarWeeksWithOptions:function(){return Wt},differenceInCalendarYears:function(){return Kt},differenceInCalendarYearsWithOptions:function(){return qt},differenceInDays:function(){return Xt},differenceInDaysWithOptions:function(){return Zt},differenceInHours:function(){return $t},differenceInHoursWithOptions:function(){return en},differenceInISOWeekYears:function(){return rn},differenceInISOWeekYearsWithOptions:function(){return an},differenceInMilliseconds:function(){return sn},differenceInMinutes:function(){return ln},differenceInMinutesWithOptions:function(){return un},differenceInMonths:function(){return hn},differenceInMonthsWithOptions:function(){return gn},differenceInQuarters:function(){return vn},differenceInQuartersWithOptions:function(){return yn},differenceInSeconds:function(){return bn},differenceInSecondsWithOptions:function(){return xn},differenceInWeeks:function(){return Cn},differenceInWeeksWithOptions:function(){return wn},differenceInYears:function(){return En},differenceInYearsWithOptions:function(){return Dn},eachDayOfInterval:function(){return kn},eachDayOfIntervalWithOptions:function(){return An},eachHourOfInterval:function(){return Mn},eachHourOfIntervalWithOptions:function(){return Nn},eachMinuteOfInterval:function(){return Fn},eachMinuteOfIntervalWithOptions:function(){return In},eachMonthOfInterval:function(){return Rn},eachMonthOfIntervalWithOptions:function(){return zn},eachQuarterOfInterval:function(){return Vn},eachQuarterOfIntervalWithOptions:function(){return Hn},eachWeekOfInterval:function(){return Wn},eachWeekOfIntervalWithOptions:function(){return Gn},eachWeekendOfInterval:function(){return qn},eachWeekendOfIntervalWithOptions:function(){return Jn},eachWeekendOfMonth:function(){return Zn},eachWeekendOfMonthWithOptions:function(){return Qn},eachWeekendOfYear:function(){return nr},eachWeekendOfYearWithOptions:function(){return rr},eachYearOfInterval:function(){return ar},eachYearOfIntervalWithOptions:function(){return or},endOfDay:function(){return sr},endOfDayWithOptions:function(){return cr},endOfDecade:function(){return ur},endOfDecadeWithOptions:function(){return dr},endOfHour:function(){return pr},endOfHourWithOptions:function(){return mr},endOfISOWeek:function(){return _r},endOfISOWeekWithOptions:function(){return vr},endOfISOWeekYear:function(){return br},endOfISOWeekYearWithOptions:function(){return xr},endOfMinute:function(){return Cr},endOfMinuteWithOptions:function(){return wr},endOfMonth:function(){return Tr},endOfMonthWithOptions:function(){return Er},endOfQuarter:function(){return Or},endOfQuarterWithOptions:function(){return kr},endOfSecond:function(){return jr},endOfSecondWithOptions:function(){return Mr},endOfWeek:function(){return Nr},endOfWeekWithOptions:function(){return Pr},endOfYear:function(){return Fr},endOfYearWithOptions:function(){return Ir},format:function(){return Ci},formatDistance:function(){return Ti},formatDistanceStrict:function(){return Di},formatDistanceStrictWithOptions:function(){return Oi},formatDistanceWithOptions:function(){return ki},formatDuration:function(){return Mi},formatDurationWithOptions:function(){return Ni},formatISO:function(){return Fi},formatISO9075:function(){return Li},formatISO9075WithOptions:function(){return Ri},formatISODuration:function(){return Bi},formatISOWithOptions:function(){return Vi},formatRFC3339:function(){return Ui},formatRFC3339WithOptions:function(){return Wi},formatRFC7231:function(){return Ji},formatRelative:function(){return Xi},formatRelativeWithOptions:function(){return Zi},formatWithOptions:function(){return Qi},fromUnixTime:function(){return ea},fromUnixTimeWithOptions:function(){return ta},getDate:function(){return ra},getDateWithOptions:function(){return ia},getDay:function(){return oa},getDayOfYear:function(){return sa},getDayOfYearWithOptions:function(){return ca},getDayWithOptions:function(){return la},getDaysInMonth:function(){return da},getDaysInMonthWithOptions:function(){return fa},getDaysInYear:function(){return ha},getDaysInYearWithOptions:function(){return ga},getDecade:function(){return va},getDecadeWithOptions:function(){return ya},getHours:function(){return xa},getHoursWithOptions:function(){return Sa},getISODay:function(){return wa},getISODayWithOptions:function(){return Ta},getISOWeek:function(){return Ea},getISOWeekWithOptions:function(){return Da},getISOWeekYear:function(){return Oa},getISOWeekYearWithOptions:function(){return ka},getISOWeeksInYear:function(){return ja},getISOWeeksInYearWithOptions:function(){return Ma},getMilliseconds:function(){return Pa},getMinutes:function(){return Ia},getMinutesWithOptions:function(){return La},getMonth:function(){return za},getMonthWithOptions:function(){return Ba},getOverlappingDaysInIntervals:function(){return Ha},getQuarter:function(){return Ua},getQuarterWithOptions:function(){return Wa},getSeconds:function(){return Ka},getTime:function(){return Ja},getUnixTime:function(){return Xa},getWeek:function(){return Za},getWeekOfMonth:function(){return $a},getWeekOfMonthWithOptions:function(){return eo},getWeekWithOptions:function(){return to},getWeekYear:function(){return no},getWeekYearWithOptions:function(){return ro},getWeeksInMonth:function(){return oo},getWeeksInMonthWithOptions:function(){return so},getYear:function(){return lo},getYearWithOptions:function(){return uo},hoursToMilliseconds:function(){return po},hoursToMinutes:function(){return ho},hoursToSeconds:function(){return _o},interval:function(){return yo},intervalToDuration:function(){return xo},intervalToDurationWithOptions:function(){return So},intervalWithOptions:function(){return Co},intlFormat:function(){return Eo},intlFormatDistance:function(){return Oo},intlFormatDistanceWithOptions:function(){return ko},isAfter:function(){return jo},isBefore:function(){return No},isDate:function(){return Po},isEqual:function(){return Io},isExists:function(){return Ro},isFirstDayOfMonth:function(){return Bo},isFirstDayOfMonthWithOptions:function(){return Vo},isFriday:function(){return Uo},isFridayWithOptions:function(){return Wo},isLastDayOfMonth:function(){return Go},isLastDayOfMonthWithOptions:function(){return Ko},isLeapYear:function(){return qo},isLeapYearWithOptions:function(){return Jo},isMatch:function(){return ec},isMatchWithOptions:function(){return tc},isMonday:function(){return rc},isMondayWithOptions:function(){return ic},isSameDay:function(){return ac},isSameDayWithOptions:function(){return oc},isSameHour:function(){return lc},isSameHourWithOptions:function(){return uc},isSameISOWeek:function(){return pc},isSameISOWeekWithOptions:function(){return mc},isSameISOWeekYear:function(){return gc},isSameISOWeekYearWithOptions:function(){return _c},isSameMinute:function(){return bc},isSameMonth:function(){return Sc},isSameMonthWithOptions:function(){return Cc},isSameQuarter:function(){return Tc},isSameQuarterWithOptions:function(){return Ec},isSameSecond:function(){return kc},isSameWeek:function(){return Ac},isSameWeekWithOptions:function(){return jc},isSameYear:function(){return Nc},isSameYearWithOptions:function(){return Pc},isSaturday:function(){return Fc},isSaturdayWithOptions:function(){return Ic},isSunday:function(){return Lc},isSundayWithOptions:function(){return Rc},isThursday:function(){return Bc},isThursdayWithOptions:function(){return Vc},isTuesday:function(){return Uc},isTuesdayWithOptions:function(){return Wc},isValid:function(){return Gc},isWednesday:function(){return qc},isWednesdayWithOptions:function(){return Jc},isWeekend:function(){return Yc},isWeekendWithOptions:function(){return Xc},isWithinInterval:function(){return Qc},isWithinIntervalWithOptions:function(){return $c},lastDayOfDecade:function(){return tl},lastDayOfDecadeWithOptions:function(){return nl},lastDayOfISOWeek:function(){return al},lastDayOfISOWeekWithOptions:function(){return ol},lastDayOfISOWeekYear:function(){return cl},lastDayOfISOWeekYearWithOptions:function(){return ll},lastDayOfMonth:function(){return ul},lastDayOfMonthWithOptions:function(){return dl},lastDayOfQuarter:function(){return pl},lastDayOfQuarterWithOptions:function(){return ml},lastDayOfWeek:function(){return hl},lastDayOfWeekWithOptions:function(){return gl},lastDayOfYear:function(){return vl},lastDayOfYearWithOptions:function(){return yl},lightFormat:function(){return El},max:function(){return Dl},maxWithOptions:function(){return Ol},milliseconds:function(){return Al},millisecondsToHours:function(){return Ml},millisecondsToMinutes:function(){return Pl},millisecondsToSeconds:function(){return Il},min:function(){return Ll},minWithOptions:function(){return Rl},minutesToHours:function(){return Bl},minutesToMilliseconds:function(){return Hl},minutesToSeconds:function(){return Wl},monthsToQuarters:function(){return Kl},monthsToYears:function(){return Jl},nextDay:function(){return Yl},nextDayWithOptions:function(){return Xl},nextFriday:function(){return Ql},nextFridayWithOptions:function(){return $l},nextMonday:function(){return tu},nextMondayWithOptions:function(){return nu},nextSaturday:function(){return iu},nextSaturdayWithOptions:function(){return au},nextSunday:function(){return su},nextSundayWithOptions:function(){return cu},nextThursday:function(){return uu},nextThursdayWithOptions:function(){return du},nextTuesday:function(){return pu},nextTuesdayWithOptions:function(){return mu},nextWednesday:function(){return gu},nextWednesdayWithOptions:function(){return _u},parse:function(){return vu},parseISO:function(){return zu},parseISOWithOptions:function(){return Bu},parseJSON:function(){return Hu},parseJSONWithOptions:function(){return Uu},parseWithOptions:function(){return Wu},previousDay:function(){return Ku},previousDayWithOptions:function(){return qu},previousFriday:function(){return Yu},previousFridayWithOptions:function(){return Xu},previousMonday:function(){return Qu},previousMondayWithOptions:function(){return $u},previousSaturday:function(){return td},previousSaturdayWithOptions:function(){return nd},previousSunday:function(){return id},previousSundayWithOptions:function(){return ad},previousThursday:function(){return sd},previousThursdayWithOptions:function(){return cd},previousTuesday:function(){return ud},previousTuesdayWithOptions:function(){return dd},previousWednesday:function(){return pd},previousWednesdayWithOptions:function(){return md},quartersToMonths:function(){return gd},quartersToYears:function(){return vd},roundToNearestHours:function(){return bd},roundToNearestHoursWithOptions:function(){return xd},roundToNearestMinutes:function(){return Cd},roundToNearestMinutesWithOptions:function(){return wd},secondsToHours:function(){return Ed},secondsToMilliseconds:function(){return Od},secondsToMinutes:function(){return Ad},set:function(){return Nd},setDate:function(){return Fd},setDateWithOptions:function(){return Id},setDay:function(){return Ld},setDayOfYear:function(){return zd},setDayOfYearWithOptions:function(){return Bd},setDayWithOptions:function(){return Vd},setHours:function(){return Ud},setHoursWithOptions:function(){return Wd},setISODay:function(){return Gd},setISODayWithOptions:function(){return Kd},setISOWeek:function(){return qd},setISOWeekWithOptions:function(){return Jd},setISOWeekYear:function(){return Yd},setISOWeekYearWithOptions:function(){return Xd},setMilliseconds:function(){return Qd},setMillisecondsWithOptions:function(){return $d},setMinutes:function(){return tf},setMinutesWithOptions:function(){return nf},setMonth:function(){return rf},setMonthWithOptions:function(){return af},setQuarter:function(){return sf},setQuarterWithOptions:function(){return cf},setSeconds:function(){return uf},setSecondsWithOptions:function(){return df},setWeek:function(){return ff},setWeekWithOptions:function(){return pf},setWeekYear:function(){return hf},setWeekYearWithOptions:function(){return gf},setWithOptions:function(){return _f},setYear:function(){return yf},setYearWithOptions:function(){return bf},startOfDay:function(){return xf},startOfDayWithOptions:function(){return Sf},startOfDecade:function(){return wf},startOfDecadeWithOptions:function(){return Tf},startOfHour:function(){return Ef},startOfHourWithOptions:function(){return Df},startOfISOWeek:function(){return Of},startOfISOWeekWithOptions:function(){return kf},startOfISOWeekYear:function(){return Af},startOfISOWeekYearWithOptions:function(){return jf},startOfMinute:function(){return Mf},startOfMinuteWithOptions:function(){return Nf},startOfMonth:function(){return Pf},startOfMonthWithOptions:function(){return Ff},startOfQuarter:function(){return If},startOfQuarterWithOptions:function(){return Lf},startOfSecond:function(){return Rf},startOfSecondWithOptions:function(){return zf},startOfWeek:function(){return Bf},startOfWeekWithOptions:function(){return Vf},startOfWeekYear:function(){return Hf},startOfWeekYearWithOptions:function(){return Uf},startOfYear:function(){return Wf},startOfYearWithOptions:function(){return Gf},sub:function(){return Jf},subBusinessDays:function(){return Xf},subBusinessDaysWithOptions:function(){return Zf},subDays:function(){return Qf},subDaysWithOptions:function(){return $f},subHours:function(){return tp},subHoursWithOptions:function(){return np},subISOWeekYears:function(){return rp},subISOWeekYearsWithOptions:function(){return ip},subMilliseconds:function(){return op},subMillisecondsWithOptions:function(){return sp},subMinutes:function(){return lp},subMinutesWithOptions:function(){return up},subMonths:function(){return dp},subMonthsWithOptions:function(){return fp},subQuarters:function(){return mp},subQuartersWithOptions:function(){return hp},subSeconds:function(){return _p},subSecondsWithOptions:function(){return vp},subWeeks:function(){return bp},subWeeksWithOptions:function(){return xp},subWithOptions:function(){return Sp},subYears:function(){return wp},subYearsWithOptions:function(){return Tp},toDate:function(){return Ep},transpose:function(){return Dp},weeksToDays:function(){return kp},yearsToDays:function(){return jp},yearsToMonths:function(){return Np},yearsToQuarters:function(){return Fp}});window.dateFns=_(_({},window.dateFns),{},{fp:Ip}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/fp/clamp.cjs b/node_modules/date-fns/fp/clamp.cjs new file mode 100644 index 000000000..cd2b84854 --- /dev/null +++ b/node_modules/date-fns/fp/clamp.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.clamp = void 0; + +var _index = require("../clamp.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const clamp = (exports.clamp = (0, _index2.convertToFP)(_index.clamp, 2)); diff --git a/node_modules/date-fns/fp/clamp.d.cts b/node_modules/date-fns/fp/clamp.d.cts new file mode 100644 index 000000000..187798bd3 --- /dev/null +++ b/node_modules/date-fns/fp/clamp.d.cts @@ -0,0 +1,8 @@ +export declare const clamp: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/clamp.d.ts b/node_modules/date-fns/fp/clamp.d.ts new file mode 100644 index 000000000..187798bd3 --- /dev/null +++ b/node_modules/date-fns/fp/clamp.d.ts @@ -0,0 +1,8 @@ +export declare const clamp: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/clamp.js b/node_modules/date-fns/fp/clamp.js new file mode 100644 index 000000000..0048178e6 --- /dev/null +++ b/node_modules/date-fns/fp/clamp.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { clamp as fn } from "../clamp.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const clamp = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default clamp; diff --git a/node_modules/date-fns/fp/clampWithOptions.cjs b/node_modules/date-fns/fp/clampWithOptions.cjs new file mode 100644 index 000000000..27b8c5ca5 --- /dev/null +++ b/node_modules/date-fns/fp/clampWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.clampWithOptions = void 0; + +var _index = require("../clamp.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const clampWithOptions = (exports.clampWithOptions = (0, _index2.convertToFP)( + _index.clamp, + 3, +)); diff --git a/node_modules/date-fns/fp/clampWithOptions.d.cts b/node_modules/date-fns/fp/clampWithOptions.d.cts new file mode 100644 index 000000000..5b13192c4 --- /dev/null +++ b/node_modules/date-fns/fp/clampWithOptions.d.cts @@ -0,0 +1,9 @@ +export declare const clampWithOptions: import("./types.ts").FPFn3< + Date, + import("../clamp.ts").ClampOptions | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/clampWithOptions.d.ts b/node_modules/date-fns/fp/clampWithOptions.d.ts new file mode 100644 index 000000000..5b13192c4 --- /dev/null +++ b/node_modules/date-fns/fp/clampWithOptions.d.ts @@ -0,0 +1,9 @@ +export declare const clampWithOptions: import("./types.ts").FPFn3< + Date, + import("../clamp.ts").ClampOptions | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/clampWithOptions.js b/node_modules/date-fns/fp/clampWithOptions.js new file mode 100644 index 000000000..eb424531e --- /dev/null +++ b/node_modules/date-fns/fp/clampWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { clamp as fn } from "../clamp.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const clampWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default clampWithOptions; diff --git a/node_modules/date-fns/fp/closestIndexTo.cjs b/node_modules/date-fns/fp/closestIndexTo.cjs new file mode 100644 index 000000000..deaa9574a --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.closestIndexTo = void 0; + +var _index = require("../closestIndexTo.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const closestIndexTo = (exports.closestIndexTo = (0, _index2.convertToFP)( + _index.closestIndexTo, + 2, +)); diff --git a/node_modules/date-fns/fp/closestIndexTo.d.cts b/node_modules/date-fns/fp/closestIndexTo.d.cts new file mode 100644 index 000000000..95988d37b --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo.d.cts @@ -0,0 +1,5 @@ +export declare const closestIndexTo: import("./types.ts").FPFn2< + number | undefined, + (string | number | Date)[], + string | number | Date +>; diff --git a/node_modules/date-fns/fp/closestIndexTo.d.ts b/node_modules/date-fns/fp/closestIndexTo.d.ts new file mode 100644 index 000000000..95988d37b --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo.d.ts @@ -0,0 +1,5 @@ +export declare const closestIndexTo: import("./types.ts").FPFn2< + number | undefined, + (string | number | Date)[], + string | number | Date +>; diff --git a/node_modules/date-fns/fp/closestIndexTo.js b/node_modules/date-fns/fp/closestIndexTo.js new file mode 100644 index 000000000..1af9b09a6 --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { closestIndexTo as fn } from "../closestIndexTo.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const closestIndexTo = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default closestIndexTo; diff --git a/node_modules/date-fns/fp/closestTo.cjs b/node_modules/date-fns/fp/closestTo.cjs new file mode 100644 index 000000000..10a166632 --- /dev/null +++ b/node_modules/date-fns/fp/closestTo.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.closestTo = void 0; + +var _index = require("../closestTo.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const closestTo = (exports.closestTo = (0, _index2.convertToFP)( + _index.closestTo, + 2, +)); diff --git a/node_modules/date-fns/fp/closestTo.d.cts b/node_modules/date-fns/fp/closestTo.d.cts new file mode 100644 index 000000000..db29de3fe --- /dev/null +++ b/node_modules/date-fns/fp/closestTo.d.cts @@ -0,0 +1,5 @@ +export declare const closestTo: import("./types.ts").FPFn2< + Date | undefined, + import("../fp.ts").DateArg[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/closestTo.d.ts b/node_modules/date-fns/fp/closestTo.d.ts new file mode 100644 index 000000000..db29de3fe --- /dev/null +++ b/node_modules/date-fns/fp/closestTo.d.ts @@ -0,0 +1,5 @@ +export declare const closestTo: import("./types.ts").FPFn2< + Date | undefined, + import("../fp.ts").DateArg[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/closestTo.js b/node_modules/date-fns/fp/closestTo.js new file mode 100644 index 000000000..61614d5b3 --- /dev/null +++ b/node_modules/date-fns/fp/closestTo.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { closestTo as fn } from "../closestTo.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const closestTo = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default closestTo; diff --git a/node_modules/date-fns/fp/closestToWithOptions.cjs b/node_modules/date-fns/fp/closestToWithOptions.cjs new file mode 100644 index 000000000..5dfbf30cc --- /dev/null +++ b/node_modules/date-fns/fp/closestToWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.closestToWithOptions = void 0; + +var _index = require("../closestTo.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const closestToWithOptions = (exports.closestToWithOptions = (0, +_index2.convertToFP)(_index.closestTo, 3)); diff --git a/node_modules/date-fns/fp/closestToWithOptions.d.cts b/node_modules/date-fns/fp/closestToWithOptions.d.cts new file mode 100644 index 000000000..e5051a719 --- /dev/null +++ b/node_modules/date-fns/fp/closestToWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const closestToWithOptions: import("./types.ts").FPFn3< + Date | undefined, + import("../closestTo.ts").ClosestToOptions | undefined, + import("../fp.ts").DateArg[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/closestToWithOptions.d.ts b/node_modules/date-fns/fp/closestToWithOptions.d.ts new file mode 100644 index 000000000..e5051a719 --- /dev/null +++ b/node_modules/date-fns/fp/closestToWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const closestToWithOptions: import("./types.ts").FPFn3< + Date | undefined, + import("../closestTo.ts").ClosestToOptions | undefined, + import("../fp.ts").DateArg[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/closestToWithOptions.js b/node_modules/date-fns/fp/closestToWithOptions.js new file mode 100644 index 000000000..f8542aa50 --- /dev/null +++ b/node_modules/date-fns/fp/closestToWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { closestTo as fn } from "../closestTo.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const closestToWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default closestToWithOptions; diff --git a/node_modules/date-fns/fp/compareAsc.cjs b/node_modules/date-fns/fp/compareAsc.cjs new file mode 100644 index 000000000..8bc73b18a --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.compareAsc = void 0; + +var _index = require("../compareAsc.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const compareAsc = (exports.compareAsc = (0, _index2.convertToFP)( + _index.compareAsc, + 2, +)); diff --git a/node_modules/date-fns/fp/compareAsc.d.cts b/node_modules/date-fns/fp/compareAsc.d.cts new file mode 100644 index 000000000..7f4417e4c --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc.d.cts @@ -0,0 +1,5 @@ +export declare const compareAsc: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareAsc.d.ts b/node_modules/date-fns/fp/compareAsc.d.ts new file mode 100644 index 000000000..7f4417e4c --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc.d.ts @@ -0,0 +1,5 @@ +export declare const compareAsc: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareAsc.js b/node_modules/date-fns/fp/compareAsc.js new file mode 100644 index 000000000..7387e5182 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { compareAsc as fn } from "../compareAsc.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const compareAsc = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default compareAsc; diff --git a/node_modules/date-fns/fp/compareDesc.cjs b/node_modules/date-fns/fp/compareDesc.cjs new file mode 100644 index 000000000..fcad031a9 --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.compareDesc = void 0; + +var _index = require("../compareDesc.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const compareDesc = (exports.compareDesc = (0, _index2.convertToFP)( + _index.compareDesc, + 2, +)); diff --git a/node_modules/date-fns/fp/compareDesc.d.cts b/node_modules/date-fns/fp/compareDesc.d.cts new file mode 100644 index 000000000..3beef6acc --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc.d.cts @@ -0,0 +1,5 @@ +export declare const compareDesc: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareDesc.d.ts b/node_modules/date-fns/fp/compareDesc.d.ts new file mode 100644 index 000000000..3beef6acc --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc.d.ts @@ -0,0 +1,5 @@ +export declare const compareDesc: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/compareDesc.js b/node_modules/date-fns/fp/compareDesc.js new file mode 100644 index 000000000..38fb726ba --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { compareDesc as fn } from "../compareDesc.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const compareDesc = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default compareDesc; diff --git a/node_modules/date-fns/fp/constructFrom.cjs b/node_modules/date-fns/fp/constructFrom.cjs new file mode 100644 index 000000000..1b106d1be --- /dev/null +++ b/node_modules/date-fns/fp/constructFrom.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.constructFrom = void 0; + +var _index = require("../constructFrom.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const constructFrom = (exports.constructFrom = (0, _index2.convertToFP)( + _index.constructFrom, + 2, +)); diff --git a/node_modules/date-fns/fp/constructFrom.d.cts b/node_modules/date-fns/fp/constructFrom.d.cts new file mode 100644 index 000000000..4f8c2873a --- /dev/null +++ b/node_modules/date-fns/fp/constructFrom.d.cts @@ -0,0 +1,9 @@ +export declare const constructFrom: import("./types.ts").FPFn2< + Date, + string | number | Date, + | import("../fp.ts").ContextFn + | import("../fp.ts").DateArg< + import("../fp.ts").ConstructableDate | Date + > + | undefined +>; diff --git a/node_modules/date-fns/fp/constructFrom.d.ts b/node_modules/date-fns/fp/constructFrom.d.ts new file mode 100644 index 000000000..4f8c2873a --- /dev/null +++ b/node_modules/date-fns/fp/constructFrom.d.ts @@ -0,0 +1,9 @@ +export declare const constructFrom: import("./types.ts").FPFn2< + Date, + string | number | Date, + | import("../fp.ts").ContextFn + | import("../fp.ts").DateArg< + import("../fp.ts").ConstructableDate | Date + > + | undefined +>; diff --git a/node_modules/date-fns/fp/constructFrom.js b/node_modules/date-fns/fp/constructFrom.js new file mode 100644 index 000000000..a016c1a56 --- /dev/null +++ b/node_modules/date-fns/fp/constructFrom.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { constructFrom as fn } from "../constructFrom.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const constructFrom = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default constructFrom; diff --git a/node_modules/date-fns/fp/daysToWeeks.cjs b/node_modules/date-fns/fp/daysToWeeks.cjs new file mode 100644 index 000000000..0c48c6da1 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.daysToWeeks = void 0; + +var _index = require("../daysToWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const daysToWeeks = (exports.daysToWeeks = (0, _index2.convertToFP)( + _index.daysToWeeks, + 1, +)); diff --git a/node_modules/date-fns/fp/daysToWeeks.d.cts b/node_modules/date-fns/fp/daysToWeeks.d.cts new file mode 100644 index 000000000..e3e413142 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks.d.cts @@ -0,0 +1 @@ +export declare const daysToWeeks: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/daysToWeeks.d.ts b/node_modules/date-fns/fp/daysToWeeks.d.ts new file mode 100644 index 000000000..e3e413142 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks.d.ts @@ -0,0 +1 @@ +export declare const daysToWeeks: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/daysToWeeks.js b/node_modules/date-fns/fp/daysToWeeks.js new file mode 100644 index 000000000..4e0c6b979 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { daysToWeeks as fn } from "../daysToWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const daysToWeeks = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default daysToWeeks; diff --git a/node_modules/date-fns/fp/differenceInBusinessDays.cjs b/node_modules/date-fns/fp/differenceInBusinessDays.cjs new file mode 100644 index 000000000..0403507a1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInBusinessDays = void 0; + +var _index = require("../differenceInBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInBusinessDays = (exports.differenceInBusinessDays = (0, +_index2.convertToFP)(_index.differenceInBusinessDays, 2)); diff --git a/node_modules/date-fns/fp/differenceInBusinessDays.d.cts b/node_modules/date-fns/fp/differenceInBusinessDays.d.cts new file mode 100644 index 000000000..6f62f036a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInBusinessDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInBusinessDays.d.ts b/node_modules/date-fns/fp/differenceInBusinessDays.d.ts new file mode 100644 index 000000000..6f62f036a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInBusinessDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInBusinessDays.js b/node_modules/date-fns/fp/differenceInBusinessDays.js new file mode 100644 index 000000000..479fbb035 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInBusinessDays as fn } from "../differenceInBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInBusinessDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInBusinessDays; diff --git a/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.cjs b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.cjs new file mode 100644 index 000000000..fdeb455e0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInBusinessDaysWithOptions = void 0; + +var _index = require("../differenceInBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInBusinessDaysWithOptions = + (exports.differenceInBusinessDaysWithOptions = (0, _index2.convertToFP)( + _index.differenceInBusinessDays, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.cts b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.cts new file mode 100644 index 000000000..684caeb01 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInBusinessDaysWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInBusinessDays.ts").DifferenceInBusinessDaysOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.ts b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.ts new file mode 100644 index 000000000..684caeb01 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInBusinessDaysWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInBusinessDays.ts").DifferenceInBusinessDaysOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.js b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.js new file mode 100644 index 000000000..4ed56e3a5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInBusinessDays as fn } from "../differenceInBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInBusinessDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInBusinessDaysWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarDays.cjs b/node_modules/date-fns/fp/differenceInCalendarDays.cjs new file mode 100644 index 000000000..7776f001a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarDays = void 0; + +var _index = require("../differenceInCalendarDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarDays = (exports.differenceInCalendarDays = (0, +_index2.convertToFP)(_index.differenceInCalendarDays, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarDays.d.cts b/node_modules/date-fns/fp/differenceInCalendarDays.d.cts new file mode 100644 index 000000000..3207ca8b8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarDays.d.ts b/node_modules/date-fns/fp/differenceInCalendarDays.d.ts new file mode 100644 index 000000000..3207ca8b8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarDays.js b/node_modules/date-fns/fp/differenceInCalendarDays.js new file mode 100644 index 000000000..d6d5cf343 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarDays as fn } from "../differenceInCalendarDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarDays; diff --git a/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.cjs new file mode 100644 index 000000000..305e176d0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarDaysWithOptions = void 0; + +var _index = require("../differenceInCalendarDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarDaysWithOptions = + (exports.differenceInCalendarDaysWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarDays, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.cts new file mode 100644 index 000000000..643485c73 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarDaysWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarDays.ts").DifferenceInCalendarDaysOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.ts new file mode 100644 index 000000000..643485c73 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarDaysWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarDays.ts").DifferenceInCalendarDaysOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.js new file mode 100644 index 000000000..f383ec2b1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarDays as fn } from "../differenceInCalendarDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarDaysWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.cjs b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.cjs new file mode 100644 index 000000000..428a73d4c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarISOWeekYears = void 0; + +var _index = require("../differenceInCalendarISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarISOWeekYears = + (exports.differenceInCalendarISOWeekYears = (0, _index2.convertToFP)( + _index.differenceInCalendarISOWeekYears, + 2, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.cts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.cts new file mode 100644 index 000000000..0e95d7d93 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarISOWeekYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.ts new file mode 100644 index 000000000..0e95d7d93 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarISOWeekYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.js b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.js new file mode 100644 index 000000000..7158aaa84 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarISOWeekYears as fn } from "../differenceInCalendarISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarISOWeekYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarISOWeekYears; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.cjs new file mode 100644 index 000000000..4e9a81b38 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.cjs @@ -0,0 +1,9 @@ +"use strict"; +exports.differenceInCalendarISOWeekYearsWithOptions = void 0; + +var _index = require("../differenceInCalendarISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarISOWeekYearsWithOptions = + (exports.differenceInCalendarISOWeekYearsWithOptions = (0, + _index2.convertToFP)(_index.differenceInCalendarISOWeekYears, 3)); diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.cts new file mode 100644 index 000000000..9318b4cca --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarISOWeekYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarISOWeekYears.ts").DifferenceInCalendarISOWeekYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.ts new file mode 100644 index 000000000..9318b4cca --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarISOWeekYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarISOWeekYears.ts").DifferenceInCalendarISOWeekYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.js new file mode 100644 index 000000000..01351dcc2 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarISOWeekYears as fn } from "../differenceInCalendarISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarISOWeekYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarISOWeekYearsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.cjs b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.cjs new file mode 100644 index 000000000..3f3c87ca7 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarISOWeeks = void 0; + +var _index = require("../differenceInCalendarISOWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarISOWeeks = (exports.differenceInCalendarISOWeeks = (0, +_index2.convertToFP)(_index.differenceInCalendarISOWeeks, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.cts b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.cts new file mode 100644 index 000000000..a87397897 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarISOWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.ts new file mode 100644 index 000000000..a87397897 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarISOWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks.js b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.js new file mode 100644 index 000000000..31e65c435 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarISOWeeks as fn } from "../differenceInCalendarISOWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarISOWeeks = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarISOWeeks; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.cjs new file mode 100644 index 000000000..f20fcfcf6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarISOWeeksWithOptions = void 0; + +var _index = require("../differenceInCalendarISOWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarISOWeeksWithOptions = + (exports.differenceInCalendarISOWeeksWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarISOWeeks, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.cts new file mode 100644 index 000000000..0b7699b60 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarISOWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarISOWeeks.ts").DifferenceInCalendarISOWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.ts new file mode 100644 index 000000000..0b7699b60 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarISOWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarISOWeeks.ts").DifferenceInCalendarISOWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.js new file mode 100644 index 000000000..1a69d5099 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeksWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarISOWeeks as fn } from "../differenceInCalendarISOWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarISOWeeksWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarISOWeeksWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths.cjs b/node_modules/date-fns/fp/differenceInCalendarMonths.cjs new file mode 100644 index 000000000..f7edc3311 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarMonths = void 0; + +var _index = require("../differenceInCalendarMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarMonths = (exports.differenceInCalendarMonths = (0, +_index2.convertToFP)(_index.differenceInCalendarMonths, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths.d.cts b/node_modules/date-fns/fp/differenceInCalendarMonths.d.cts new file mode 100644 index 000000000..b1dde7443 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarMonths: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths.d.ts b/node_modules/date-fns/fp/differenceInCalendarMonths.d.ts new file mode 100644 index 000000000..b1dde7443 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarMonths: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths.js b/node_modules/date-fns/fp/differenceInCalendarMonths.js new file mode 100644 index 000000000..88def7ff7 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarMonths as fn } from "../differenceInCalendarMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarMonths = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarMonths; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.cjs new file mode 100644 index 000000000..45b4fe8a9 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarMonthsWithOptions = void 0; + +var _index = require("../differenceInCalendarMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarMonthsWithOptions = + (exports.differenceInCalendarMonthsWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarMonths, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.cts new file mode 100644 index 000000000..753c78c3f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarMonthsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarMonths.ts").DifferenceInCalendarMonthsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.ts new file mode 100644 index 000000000..753c78c3f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarMonthsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarMonths.ts").DifferenceInCalendarMonthsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.js new file mode 100644 index 000000000..7dfc5a672 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonthsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarMonths as fn } from "../differenceInCalendarMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarMonthsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarMonthsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters.cjs b/node_modules/date-fns/fp/differenceInCalendarQuarters.cjs new file mode 100644 index 000000000..0fa1b5781 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarQuarters = void 0; + +var _index = require("../differenceInCalendarQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarQuarters = (exports.differenceInCalendarQuarters = (0, +_index2.convertToFP)(_index.differenceInCalendarQuarters, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters.d.cts b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.cts new file mode 100644 index 000000000..6db0d162a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarQuarters: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters.d.ts b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.ts new file mode 100644 index 000000000..6db0d162a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarQuarters: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters.js b/node_modules/date-fns/fp/differenceInCalendarQuarters.js new file mode 100644 index 000000000..59006b9d0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarQuarters as fn } from "../differenceInCalendarQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarQuarters = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarQuarters; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.cjs new file mode 100644 index 000000000..2ffd428dd --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarQuartersWithOptions = void 0; + +var _index = require("../differenceInCalendarQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarQuartersWithOptions = + (exports.differenceInCalendarQuartersWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarQuarters, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.cts new file mode 100644 index 000000000..e0aa6e8d4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarQuartersWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarQuarters.ts").DifferenceInCalendarQuartersOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.ts new file mode 100644 index 000000000..e0aa6e8d4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarQuartersWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarQuarters.ts").DifferenceInCalendarQuartersOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.js new file mode 100644 index 000000000..5231ca569 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuartersWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarQuarters as fn } from "../differenceInCalendarQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarQuartersWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarQuartersWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks.cjs b/node_modules/date-fns/fp/differenceInCalendarWeeks.cjs new file mode 100644 index 000000000..0cfb79b78 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarWeeks = void 0; + +var _index = require("../differenceInCalendarWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarWeeks = (exports.differenceInCalendarWeeks = (0, +_index2.convertToFP)(_index.differenceInCalendarWeeks, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks.d.cts b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.cts new file mode 100644 index 000000000..d0db5ec21 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks.d.ts b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.ts new file mode 100644 index 000000000..d0db5ec21 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks.js b/node_modules/date-fns/fp/differenceInCalendarWeeks.js new file mode 100644 index 000000000..64c6cc9f5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarWeeks as fn } from "../differenceInCalendarWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarWeeks = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarWeeks; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.cjs new file mode 100644 index 000000000..58dbd36e7 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarWeeksWithOptions = void 0; + +var _index = require("../differenceInCalendarWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarWeeksWithOptions = + (exports.differenceInCalendarWeeksWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarWeeks, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.cts new file mode 100644 index 000000000..982773e0f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarWeeks.ts").DifferenceInCalendarWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.ts new file mode 100644 index 000000000..982773e0f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarWeeks.ts").DifferenceInCalendarWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.js new file mode 100644 index 000000000..5fd4ae1ae --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarWeeks as fn } from "../differenceInCalendarWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarWeeksWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarWeeksWithOptions; diff --git a/node_modules/date-fns/fp/differenceInCalendarYears.cjs b/node_modules/date-fns/fp/differenceInCalendarYears.cjs new file mode 100644 index 000000000..a7dd32867 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInCalendarYears = void 0; + +var _index = require("../differenceInCalendarYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarYears = (exports.differenceInCalendarYears = (0, +_index2.convertToFP)(_index.differenceInCalendarYears, 2)); diff --git a/node_modules/date-fns/fp/differenceInCalendarYears.d.cts b/node_modules/date-fns/fp/differenceInCalendarYears.d.cts new file mode 100644 index 000000000..e17b4e855 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarYears.d.ts b/node_modules/date-fns/fp/differenceInCalendarYears.d.ts new file mode 100644 index 000000000..e17b4e855 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInCalendarYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarYears.js b/node_modules/date-fns/fp/differenceInCalendarYears.js new file mode 100644 index 000000000..3c8c09a50 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarYears as fn } from "../differenceInCalendarYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInCalendarYears; diff --git a/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.cjs b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.cjs new file mode 100644 index 000000000..258a4aaa0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInCalendarYearsWithOptions = void 0; + +var _index = require("../differenceInCalendarYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInCalendarYearsWithOptions = + (exports.differenceInCalendarYearsWithOptions = (0, _index2.convertToFP)( + _index.differenceInCalendarYears, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.cts new file mode 100644 index 000000000..1fe392577 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarYears.ts").DifferenceInCalendarYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.ts new file mode 100644 index 000000000..1fe392577 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInCalendarYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInCalendarYears.ts").DifferenceInCalendarYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.js b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.js new file mode 100644 index 000000000..38da94fa5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInCalendarYears as fn } from "../differenceInCalendarYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInCalendarYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInCalendarYearsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInDays.cjs b/node_modules/date-fns/fp/differenceInDays.cjs new file mode 100644 index 000000000..e193bb236 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.differenceInDays = void 0; + +var _index = require("../differenceInDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInDays = (exports.differenceInDays = (0, _index2.convertToFP)( + _index.differenceInDays, + 2, +)); diff --git a/node_modules/date-fns/fp/differenceInDays.d.cts b/node_modules/date-fns/fp/differenceInDays.d.cts new file mode 100644 index 000000000..6f885daa4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInDays.d.ts b/node_modules/date-fns/fp/differenceInDays.d.ts new file mode 100644 index 000000000..6f885daa4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInDays: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInDays.js b/node_modules/date-fns/fp/differenceInDays.js new file mode 100644 index 000000000..0d97a2226 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInDays as fn } from "../differenceInDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInDays; diff --git a/node_modules/date-fns/fp/differenceInDaysWithOptions.cjs b/node_modules/date-fns/fp/differenceInDaysWithOptions.cjs new file mode 100644 index 000000000..752c940f4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDaysWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInDaysWithOptions = void 0; + +var _index = require("../differenceInDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInDaysWithOptions = (exports.differenceInDaysWithOptions = (0, +_index2.convertToFP)(_index.differenceInDays, 3)); diff --git a/node_modules/date-fns/fp/differenceInDaysWithOptions.d.cts b/node_modules/date-fns/fp/differenceInDaysWithOptions.d.cts new file mode 100644 index 000000000..82bf3e2a5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDaysWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const differenceInDaysWithOptions: import("./types.ts").FPFn3< + number, + import("../differenceInDays.ts").DifferenceInDaysOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInDaysWithOptions.d.ts b/node_modules/date-fns/fp/differenceInDaysWithOptions.d.ts new file mode 100644 index 000000000..82bf3e2a5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDaysWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const differenceInDaysWithOptions: import("./types.ts").FPFn3< + number, + import("../differenceInDays.ts").DifferenceInDaysOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInDaysWithOptions.js b/node_modules/date-fns/fp/differenceInDaysWithOptions.js new file mode 100644 index 000000000..03aed3678 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInDays as fn } from "../differenceInDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInDaysWithOptions; diff --git a/node_modules/date-fns/fp/differenceInHours.cjs b/node_modules/date-fns/fp/differenceInHours.cjs new file mode 100644 index 000000000..d97f510c5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.differenceInHours = void 0; + +var _index = require("../differenceInHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInHours = (exports.differenceInHours = (0, _index2.convertToFP)( + _index.differenceInHours, + 2, +)); diff --git a/node_modules/date-fns/fp/differenceInHours.d.cts b/node_modules/date-fns/fp/differenceInHours.d.cts new file mode 100644 index 000000000..0a57719ef --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInHours: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHours.d.ts b/node_modules/date-fns/fp/differenceInHours.d.ts new file mode 100644 index 000000000..0a57719ef --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInHours: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHours.js b/node_modules/date-fns/fp/differenceInHours.js new file mode 100644 index 000000000..82628bc60 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInHours as fn } from "../differenceInHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInHours = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInHours; diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions.cjs b/node_modules/date-fns/fp/differenceInHoursWithOptions.cjs new file mode 100644 index 000000000..1e9362b20 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInHoursWithOptions = void 0; + +var _index = require("../differenceInHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInHoursWithOptions = (exports.differenceInHoursWithOptions = (0, +_index2.convertToFP)(_index.differenceInHours, 3)); diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions.d.cts b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.cts new file mode 100644 index 000000000..b52c845c1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInHoursWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInHours.ts").DifferenceInHoursOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions.d.ts b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.ts new file mode 100644 index 000000000..b52c845c1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInHoursWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInHours.ts").DifferenceInHoursOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions.js b/node_modules/date-fns/fp/differenceInHoursWithOptions.js new file mode 100644 index 000000000..746368f05 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInHours as fn } from "../differenceInHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInHoursWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInHoursWithOptions; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears.cjs b/node_modules/date-fns/fp/differenceInISOWeekYears.cjs new file mode 100644 index 000000000..d7e914cb9 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInISOWeekYears = void 0; + +var _index = require("../differenceInISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInISOWeekYears = (exports.differenceInISOWeekYears = (0, +_index2.convertToFP)(_index.differenceInISOWeekYears, 2)); diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears.d.cts b/node_modules/date-fns/fp/differenceInISOWeekYears.d.cts new file mode 100644 index 000000000..89041652d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInISOWeekYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears.d.ts b/node_modules/date-fns/fp/differenceInISOWeekYears.d.ts new file mode 100644 index 000000000..89041652d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInISOWeekYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears.js b/node_modules/date-fns/fp/differenceInISOWeekYears.js new file mode 100644 index 000000000..b4961f345 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInISOWeekYears as fn } from "../differenceInISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInISOWeekYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInISOWeekYears; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.cjs b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.cjs new file mode 100644 index 000000000..dc289d0d0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInISOWeekYearsWithOptions = void 0; + +var _index = require("../differenceInISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInISOWeekYearsWithOptions = + (exports.differenceInISOWeekYearsWithOptions = (0, _index2.convertToFP)( + _index.differenceInISOWeekYears, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.cts new file mode 100644 index 000000000..531f303ca --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInISOWeekYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInISOWeekYears.ts").DifferenceInISOWeekYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.ts new file mode 100644 index 000000000..531f303ca --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInISOWeekYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInISOWeekYears.ts").DifferenceInISOWeekYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.js b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.js new file mode 100644 index 000000000..d673a6250 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInISOWeekYears as fn } from "../differenceInISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInISOWeekYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInISOWeekYearsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInMilliseconds.cjs b/node_modules/date-fns/fp/differenceInMilliseconds.cjs new file mode 100644 index 000000000..b18b8dc44 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInMilliseconds = void 0; + +var _index = require("../differenceInMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInMilliseconds = (exports.differenceInMilliseconds = (0, +_index2.convertToFP)(_index.differenceInMilliseconds, 2)); diff --git a/node_modules/date-fns/fp/differenceInMilliseconds.d.cts b/node_modules/date-fns/fp/differenceInMilliseconds.d.cts new file mode 100644 index 000000000..67cb7d31c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInMilliseconds: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMilliseconds.d.ts b/node_modules/date-fns/fp/differenceInMilliseconds.d.ts new file mode 100644 index 000000000..67cb7d31c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInMilliseconds: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMilliseconds.js b/node_modules/date-fns/fp/differenceInMilliseconds.js new file mode 100644 index 000000000..deef03da0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInMilliseconds as fn } from "../differenceInMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInMilliseconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInMilliseconds; diff --git a/node_modules/date-fns/fp/differenceInMinutes.cjs b/node_modules/date-fns/fp/differenceInMinutes.cjs new file mode 100644 index 000000000..35d3dd851 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInMinutes = void 0; + +var _index = require("../differenceInMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInMinutes = (exports.differenceInMinutes = (0, +_index2.convertToFP)(_index.differenceInMinutes, 2)); diff --git a/node_modules/date-fns/fp/differenceInMinutes.d.cts b/node_modules/date-fns/fp/differenceInMinutes.d.cts new file mode 100644 index 000000000..8cdedf6fb --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInMinutes: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutes.d.ts b/node_modules/date-fns/fp/differenceInMinutes.d.ts new file mode 100644 index 000000000..8cdedf6fb --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInMinutes: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutes.js b/node_modules/date-fns/fp/differenceInMinutes.js new file mode 100644 index 000000000..5b63e5ea5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInMinutes as fn } from "../differenceInMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInMinutes = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInMinutes; diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions.cjs b/node_modules/date-fns/fp/differenceInMinutesWithOptions.cjs new file mode 100644 index 000000000..084496448 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInMinutesWithOptions = void 0; + +var _index = require("../differenceInMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInMinutesWithOptions = (exports.differenceInMinutesWithOptions = + (0, _index2.convertToFP)(_index.differenceInMinutes, 3)); diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.cts b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.cts new file mode 100644 index 000000000..23cce6440 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInMinutesWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInMinutes.ts").DifferenceInMinutesOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.ts b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.ts new file mode 100644 index 000000000..23cce6440 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInMinutesWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInMinutes.ts").DifferenceInMinutesOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions.js b/node_modules/date-fns/fp/differenceInMinutesWithOptions.js new file mode 100644 index 000000000..19df2af22 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInMinutes as fn } from "../differenceInMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInMinutesWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInMinutesWithOptions; diff --git a/node_modules/date-fns/fp/differenceInMonths.cjs b/node_modules/date-fns/fp/differenceInMonths.cjs new file mode 100644 index 000000000..44514579d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInMonths = void 0; + +var _index = require("../differenceInMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInMonths = (exports.differenceInMonths = (0, +_index2.convertToFP)(_index.differenceInMonths, 2)); diff --git a/node_modules/date-fns/fp/differenceInMonths.d.cts b/node_modules/date-fns/fp/differenceInMonths.d.cts new file mode 100644 index 000000000..4b8f1d581 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInMonths: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMonths.d.ts b/node_modules/date-fns/fp/differenceInMonths.d.ts new file mode 100644 index 000000000..4b8f1d581 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInMonths: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMonths.js b/node_modules/date-fns/fp/differenceInMonths.js new file mode 100644 index 000000000..8a0004f72 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInMonths as fn } from "../differenceInMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInMonths = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInMonths; diff --git a/node_modules/date-fns/fp/differenceInMonthsWithOptions.cjs b/node_modules/date-fns/fp/differenceInMonthsWithOptions.cjs new file mode 100644 index 000000000..0efd0d0dd --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonthsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInMonthsWithOptions = void 0; + +var _index = require("../differenceInMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInMonthsWithOptions = (exports.differenceInMonthsWithOptions = + (0, _index2.convertToFP)(_index.differenceInMonths, 3)); diff --git a/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.cts new file mode 100644 index 000000000..0ee7c27b0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInMonthsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInMonths.ts").DifferenceInMonthsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.ts new file mode 100644 index 000000000..0ee7c27b0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonthsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInMonthsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInMonths.ts").DifferenceInMonthsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInMonthsWithOptions.js b/node_modules/date-fns/fp/differenceInMonthsWithOptions.js new file mode 100644 index 000000000..af379daa8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonthsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInMonths as fn } from "../differenceInMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInMonthsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInMonthsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInQuarters.cjs b/node_modules/date-fns/fp/differenceInQuarters.cjs new file mode 100644 index 000000000..eae8c50d7 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInQuarters = void 0; + +var _index = require("../differenceInQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInQuarters = (exports.differenceInQuarters = (0, +_index2.convertToFP)(_index.differenceInQuarters, 2)); diff --git a/node_modules/date-fns/fp/differenceInQuarters.d.cts b/node_modules/date-fns/fp/differenceInQuarters.d.cts new file mode 100644 index 000000000..f4251d8c8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInQuarters: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuarters.d.ts b/node_modules/date-fns/fp/differenceInQuarters.d.ts new file mode 100644 index 000000000..f4251d8c8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInQuarters: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuarters.js b/node_modules/date-fns/fp/differenceInQuarters.js new file mode 100644 index 000000000..13e94b0c1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInQuarters as fn } from "../differenceInQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInQuarters = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInQuarters; diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions.cjs b/node_modules/date-fns/fp/differenceInQuartersWithOptions.cjs new file mode 100644 index 000000000..524eb8b09 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.differenceInQuartersWithOptions = void 0; + +var _index = require("../differenceInQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInQuartersWithOptions = + (exports.differenceInQuartersWithOptions = (0, _index2.convertToFP)( + _index.differenceInQuarters, + 3, + )); diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.cts b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.cts new file mode 100644 index 000000000..2c81d04b2 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInQuartersWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInQuarters.ts").DifferenceInQuartersOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.ts b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.ts new file mode 100644 index 000000000..2c81d04b2 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInQuartersWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInQuarters.ts").DifferenceInQuartersOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions.js b/node_modules/date-fns/fp/differenceInQuartersWithOptions.js new file mode 100644 index 000000000..8907140aa --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInQuarters as fn } from "../differenceInQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInQuartersWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInQuartersWithOptions; diff --git a/node_modules/date-fns/fp/differenceInSeconds.cjs b/node_modules/date-fns/fp/differenceInSeconds.cjs new file mode 100644 index 000000000..4432bf1be --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInSeconds = void 0; + +var _index = require("../differenceInSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInSeconds = (exports.differenceInSeconds = (0, +_index2.convertToFP)(_index.differenceInSeconds, 2)); diff --git a/node_modules/date-fns/fp/differenceInSeconds.d.cts b/node_modules/date-fns/fp/differenceInSeconds.d.cts new file mode 100644 index 000000000..ba2036fdb --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInSeconds: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSeconds.d.ts b/node_modules/date-fns/fp/differenceInSeconds.d.ts new file mode 100644 index 000000000..ba2036fdb --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInSeconds: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSeconds.js b/node_modules/date-fns/fp/differenceInSeconds.js new file mode 100644 index 000000000..2ae600801 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInSeconds as fn } from "../differenceInSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInSeconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInSeconds; diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions.cjs b/node_modules/date-fns/fp/differenceInSecondsWithOptions.cjs new file mode 100644 index 000000000..a090b7e67 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInSecondsWithOptions = void 0; + +var _index = require("../differenceInSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInSecondsWithOptions = (exports.differenceInSecondsWithOptions = + (0, _index2.convertToFP)(_index.differenceInSeconds, 3)); diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.cts new file mode 100644 index 000000000..74468a654 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInSecondsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInSeconds.ts").DifferenceInSecondsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.ts new file mode 100644 index 000000000..74468a654 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInSecondsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInSeconds.ts").DifferenceInSecondsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions.js b/node_modules/date-fns/fp/differenceInSecondsWithOptions.js new file mode 100644 index 000000000..506d109d1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInSeconds as fn } from "../differenceInSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInSecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInSecondsWithOptions; diff --git a/node_modules/date-fns/fp/differenceInWeeks.cjs b/node_modules/date-fns/fp/differenceInWeeks.cjs new file mode 100644 index 000000000..29e4ff70a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.differenceInWeeks = void 0; + +var _index = require("../differenceInWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInWeeks = (exports.differenceInWeeks = (0, _index2.convertToFP)( + _index.differenceInWeeks, + 2, +)); diff --git a/node_modules/date-fns/fp/differenceInWeeks.d.cts b/node_modules/date-fns/fp/differenceInWeeks.d.cts new file mode 100644 index 000000000..d5dd187b0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeks.d.ts b/node_modules/date-fns/fp/differenceInWeeks.d.ts new file mode 100644 index 000000000..d5dd187b0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInWeeks: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeks.js b/node_modules/date-fns/fp/differenceInWeeks.js new file mode 100644 index 000000000..7dfc39693 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInWeeks as fn } from "../differenceInWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInWeeks = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInWeeks; diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions.cjs b/node_modules/date-fns/fp/differenceInWeeksWithOptions.cjs new file mode 100644 index 000000000..cba7bb15c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInWeeksWithOptions = void 0; + +var _index = require("../differenceInWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInWeeksWithOptions = (exports.differenceInWeeksWithOptions = (0, +_index2.convertToFP)(_index.differenceInWeeks, 3)); diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.cts b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.cts new file mode 100644 index 000000000..e214facec --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInWeeks.ts").DifferenceInWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.ts b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.ts new file mode 100644 index 000000000..e214facec --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInWeeksWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInWeeks.ts").DifferenceInWeeksOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions.js b/node_modules/date-fns/fp/differenceInWeeksWithOptions.js new file mode 100644 index 000000000..3f86efb4c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInWeeks as fn } from "../differenceInWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInWeeksWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInWeeksWithOptions; diff --git a/node_modules/date-fns/fp/differenceInYears.cjs b/node_modules/date-fns/fp/differenceInYears.cjs new file mode 100644 index 000000000..e764fd74f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.differenceInYears = void 0; + +var _index = require("../differenceInYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInYears = (exports.differenceInYears = (0, _index2.convertToFP)( + _index.differenceInYears, + 2, +)); diff --git a/node_modules/date-fns/fp/differenceInYears.d.cts b/node_modules/date-fns/fp/differenceInYears.d.cts new file mode 100644 index 000000000..b94ca6a59 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears.d.cts @@ -0,0 +1,5 @@ +export declare const differenceInYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInYears.d.ts b/node_modules/date-fns/fp/differenceInYears.d.ts new file mode 100644 index 000000000..b94ca6a59 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears.d.ts @@ -0,0 +1,5 @@ +export declare const differenceInYears: import("./types.ts").FPFn2< + number, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInYears.js b/node_modules/date-fns/fp/differenceInYears.js new file mode 100644 index 000000000..5e447ac22 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInYears as fn } from "../differenceInYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default differenceInYears; diff --git a/node_modules/date-fns/fp/differenceInYearsWithOptions.cjs b/node_modules/date-fns/fp/differenceInYearsWithOptions.cjs new file mode 100644 index 000000000..ca74c1100 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYearsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.differenceInYearsWithOptions = void 0; + +var _index = require("../differenceInYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const differenceInYearsWithOptions = (exports.differenceInYearsWithOptions = (0, +_index2.convertToFP)(_index.differenceInYears, 3)); diff --git a/node_modules/date-fns/fp/differenceInYearsWithOptions.d.cts b/node_modules/date-fns/fp/differenceInYearsWithOptions.d.cts new file mode 100644 index 000000000..082a1107a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const differenceInYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInYears.ts").DifferenceInYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInYearsWithOptions.d.ts b/node_modules/date-fns/fp/differenceInYearsWithOptions.d.ts new file mode 100644 index 000000000..082a1107a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const differenceInYearsWithOptions: import("./types.ts").FPFn3< + number, + | import("../differenceInYears.ts").DifferenceInYearsOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/differenceInYearsWithOptions.js b/node_modules/date-fns/fp/differenceInYearsWithOptions.js new file mode 100644 index 000000000..43a9dbe66 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { differenceInYears as fn } from "../differenceInYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const differenceInYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default differenceInYearsWithOptions; diff --git a/node_modules/date-fns/fp/eachDayOfInterval.cjs b/node_modules/date-fns/fp/eachDayOfInterval.cjs new file mode 100644 index 000000000..664b137ce --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.eachDayOfInterval = void 0; + +var _index = require("../eachDayOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachDayOfInterval = (exports.eachDayOfInterval = (0, _index2.convertToFP)( + _index.eachDayOfInterval, + 1, +)); diff --git a/node_modules/date-fns/fp/eachDayOfInterval.d.cts b/node_modules/date-fns/fp/eachDayOfInterval.d.cts new file mode 100644 index 000000000..a359a1e0d --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachDayOfInterval: import("./types.ts").FPFn1< + import("../eachDayOfInterval.ts").EachDayOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachDayOfInterval.d.ts b/node_modules/date-fns/fp/eachDayOfInterval.d.ts new file mode 100644 index 000000000..a359a1e0d --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachDayOfInterval: import("./types.ts").FPFn1< + import("../eachDayOfInterval.ts").EachDayOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachDayOfInterval.js b/node_modules/date-fns/fp/eachDayOfInterval.js new file mode 100644 index 000000000..3fb135a1f --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachDayOfInterval as fn } from "../eachDayOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachDayOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachDayOfInterval; diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.cjs new file mode 100644 index 000000000..704cfb3c3 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachDayOfIntervalWithOptions = void 0; + +var _index = require("../eachDayOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachDayOfIntervalWithOptions = (exports.eachDayOfIntervalWithOptions = (0, +_index2.convertToFP)(_index.eachDayOfInterval, 2)); diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..3f40ca55e --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachDayOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachDayOfInterval.ts").EachDayOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..3f40ca55e --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachDayOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachDayOfInterval.ts").EachDayOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined + >, + | import("../eachDayOfInterval.ts").EachDayOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.js new file mode 100644 index 000000000..03836899b --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachDayOfInterval as fn } from "../eachDayOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachDayOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachDayOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachHourOfInterval.cjs b/node_modules/date-fns/fp/eachHourOfInterval.cjs new file mode 100644 index 000000000..df1d2ea59 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachHourOfInterval = void 0; + +var _index = require("../eachHourOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachHourOfInterval = (exports.eachHourOfInterval = (0, +_index2.convertToFP)(_index.eachHourOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachHourOfInterval.d.cts b/node_modules/date-fns/fp/eachHourOfInterval.d.cts new file mode 100644 index 000000000..dfe727596 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachHourOfInterval: import("./types.ts").FPFn1< + import("../eachHourOfInterval.ts").EachHourOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachHourOfInterval.d.ts b/node_modules/date-fns/fp/eachHourOfInterval.d.ts new file mode 100644 index 000000000..dfe727596 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachHourOfInterval: import("./types.ts").FPFn1< + import("../eachHourOfInterval.ts").EachHourOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachHourOfInterval.js b/node_modules/date-fns/fp/eachHourOfInterval.js new file mode 100644 index 000000000..e22bc1161 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachHourOfInterval as fn } from "../eachHourOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachHourOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachHourOfInterval; diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.cjs new file mode 100644 index 000000000..d4ff6ffca --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachHourOfIntervalWithOptions = void 0; + +var _index = require("../eachHourOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachHourOfIntervalWithOptions = (exports.eachHourOfIntervalWithOptions = + (0, _index2.convertToFP)(_index.eachHourOfInterval, 2)); diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..ab565b5f8 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachHourOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachHourOfInterval.ts").EachHourOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..ab565b5f8 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachHourOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachHourOfInterval.ts").EachHourOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined + >, + | import("../eachHourOfInterval.ts").EachHourOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.js new file mode 100644 index 000000000..fe6474fb4 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachHourOfInterval as fn } from "../eachHourOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachHourOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachHourOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval.cjs b/node_modules/date-fns/fp/eachMinuteOfInterval.cjs new file mode 100644 index 000000000..75d25ead5 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachMinuteOfInterval = void 0; + +var _index = require("../eachMinuteOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachMinuteOfInterval = (exports.eachMinuteOfInterval = (0, +_index2.convertToFP)(_index.eachMinuteOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval.d.cts b/node_modules/date-fns/fp/eachMinuteOfInterval.d.cts new file mode 100644 index 000000000..5317efcf0 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachMinuteOfInterval: import("./types.ts").FPFn1< + import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval.d.ts b/node_modules/date-fns/fp/eachMinuteOfInterval.d.ts new file mode 100644 index 000000000..5317efcf0 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachMinuteOfInterval: import("./types.ts").FPFn1< + import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval.js b/node_modules/date-fns/fp/eachMinuteOfInterval.js new file mode 100644 index 000000000..03039f769 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachMinuteOfInterval as fn } from "../eachMinuteOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachMinuteOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachMinuteOfInterval; diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.cjs new file mode 100644 index 000000000..42673a138 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.eachMinuteOfIntervalWithOptions = void 0; + +var _index = require("../eachMinuteOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachMinuteOfIntervalWithOptions = + (exports.eachMinuteOfIntervalWithOptions = (0, _index2.convertToFP)( + _index.eachMinuteOfInterval, + 2, + )); diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..72bd69b49 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachMinuteOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..72bd69b49 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachMinuteOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined + >, + | import("../eachMinuteOfInterval.ts").EachMinuteOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.js new file mode 100644 index 000000000..bbd7c245c --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachMinuteOfInterval as fn } from "../eachMinuteOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachMinuteOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachMinuteOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachMonthOfInterval.cjs b/node_modules/date-fns/fp/eachMonthOfInterval.cjs new file mode 100644 index 000000000..81ef8e026 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachMonthOfInterval = void 0; + +var _index = require("../eachMonthOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachMonthOfInterval = (exports.eachMonthOfInterval = (0, +_index2.convertToFP)(_index.eachMonthOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachMonthOfInterval.d.cts b/node_modules/date-fns/fp/eachMonthOfInterval.d.cts new file mode 100644 index 000000000..9baef5807 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachMonthOfInterval: import("./types.ts").FPFn1< + import("../eachMonthOfInterval.ts").EachMonthOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMonthOfInterval.d.ts b/node_modules/date-fns/fp/eachMonthOfInterval.d.ts new file mode 100644 index 000000000..9baef5807 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachMonthOfInterval: import("./types.ts").FPFn1< + import("../eachMonthOfInterval.ts").EachMonthOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMonthOfInterval.js b/node_modules/date-fns/fp/eachMonthOfInterval.js new file mode 100644 index 000000000..d36eb2c10 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachMonthOfInterval as fn } from "../eachMonthOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachMonthOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachMonthOfInterval; diff --git a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.cjs new file mode 100644 index 000000000..da44dc042 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachMonthOfIntervalWithOptions = void 0; + +var _index = require("../eachMonthOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachMonthOfIntervalWithOptions = (exports.eachMonthOfIntervalWithOptions = + (0, _index2.convertToFP)(_index.eachMonthOfInterval, 2)); diff --git a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..9d46d4461 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachMonthOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachMonthOfInterval.ts").EachMonthOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..9d46d4461 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachMonthOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachMonthOfInterval.ts").EachMonthOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined + >, + | import("../eachMonthOfInterval.ts").EachMonthOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.js new file mode 100644 index 000000000..b60b53cb3 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachMonthOfInterval as fn } from "../eachMonthOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachMonthOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachMonthOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval.cjs b/node_modules/date-fns/fp/eachQuarterOfInterval.cjs new file mode 100644 index 000000000..2bd64c304 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachQuarterOfInterval = void 0; + +var _index = require("../eachQuarterOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachQuarterOfInterval = (exports.eachQuarterOfInterval = (0, +_index2.convertToFP)(_index.eachQuarterOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval.d.cts b/node_modules/date-fns/fp/eachQuarterOfInterval.d.cts new file mode 100644 index 000000000..3400d0135 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachQuarterOfInterval: import("./types.ts").FPFn1< + import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval.d.ts b/node_modules/date-fns/fp/eachQuarterOfInterval.d.ts new file mode 100644 index 000000000..3400d0135 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachQuarterOfInterval: import("./types.ts").FPFn1< + import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval.js b/node_modules/date-fns/fp/eachQuarterOfInterval.js new file mode 100644 index 000000000..f236d4ce2 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachQuarterOfInterval as fn } from "../eachQuarterOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachQuarterOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachQuarterOfInterval; diff --git a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.cjs new file mode 100644 index 000000000..c909544a5 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.eachQuarterOfIntervalWithOptions = void 0; + +var _index = require("../eachQuarterOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachQuarterOfIntervalWithOptions = + (exports.eachQuarterOfIntervalWithOptions = (0, _index2.convertToFP)( + _index.eachQuarterOfInterval, + 2, + )); diff --git a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..bd2562135 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachQuarterOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..bd2562135 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachQuarterOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined + >, + | import("../eachQuarterOfInterval.ts").EachQuarterOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.js new file mode 100644 index 000000000..cf00f1658 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachQuarterOfInterval as fn } from "../eachQuarterOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachQuarterOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachQuarterOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachWeekOfInterval.cjs b/node_modules/date-fns/fp/eachWeekOfInterval.cjs new file mode 100644 index 000000000..cb28cd240 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekOfInterval = void 0; + +var _index = require("../eachWeekOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekOfInterval = (exports.eachWeekOfInterval = (0, +_index2.convertToFP)(_index.eachWeekOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachWeekOfInterval.d.cts b/node_modules/date-fns/fp/eachWeekOfInterval.d.cts new file mode 100644 index 000000000..0da96eec5 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachWeekOfInterval: import("./types.ts").FPFn1< + import("../eachWeekOfInterval.ts").EachWeekOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekOfInterval.d.ts b/node_modules/date-fns/fp/eachWeekOfInterval.d.ts new file mode 100644 index 000000000..0da96eec5 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachWeekOfInterval: import("./types.ts").FPFn1< + import("../eachWeekOfInterval.ts").EachWeekOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekOfInterval.js b/node_modules/date-fns/fp/eachWeekOfInterval.js new file mode 100644 index 000000000..980b267bb --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekOfInterval as fn } from "../eachWeekOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachWeekOfInterval; diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.cjs new file mode 100644 index 000000000..c034da52f --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekOfIntervalWithOptions = void 0; + +var _index = require("../eachWeekOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekOfIntervalWithOptions = (exports.eachWeekOfIntervalWithOptions = + (0, _index2.convertToFP)(_index.eachWeekOfInterval, 2)); diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..d73d99dc6 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachWeekOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachWeekOfInterval.ts").EachWeekOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..d73d99dc6 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachWeekOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachWeekOfInterval.ts").EachWeekOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined + >, + | import("../eachWeekOfInterval.ts").EachWeekOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.js new file mode 100644 index 000000000..0d480c5c5 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekOfInterval as fn } from "../eachWeekOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachWeekOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval.cjs b/node_modules/date-fns/fp/eachWeekendOfInterval.cjs new file mode 100644 index 000000000..b7d1bf73c --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekendOfInterval = void 0; + +var _index = require("../eachWeekendOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfInterval = (exports.eachWeekendOfInterval = (0, +_index2.convertToFP)(_index.eachWeekendOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval.d.cts b/node_modules/date-fns/fp/eachWeekendOfInterval.d.cts new file mode 100644 index 000000000..036617d32 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachWeekendOfInterval: import("./types.ts").FPFn1< + import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval.d.ts b/node_modules/date-fns/fp/eachWeekendOfInterval.d.ts new file mode 100644 index 000000000..036617d32 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachWeekendOfInterval: import("./types.ts").FPFn1< + import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval.js b/node_modules/date-fns/fp/eachWeekendOfInterval.js new file mode 100644 index 000000000..72728eb99 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfInterval as fn } from "../eachWeekendOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachWeekendOfInterval; diff --git a/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.cjs new file mode 100644 index 000000000..3be02a1dc --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.eachWeekendOfIntervalWithOptions = void 0; + +var _index = require("../eachWeekendOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfIntervalWithOptions = + (exports.eachWeekendOfIntervalWithOptions = (0, _index2.convertToFP)( + _index.eachWeekendOfInterval, + 2, + )); diff --git a/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..b4d2e40c7 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachWeekendOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..b4d2e40c7 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachWeekendOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined + >, + | import("../eachWeekendOfInterval.ts").EachWeekendOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.js new file mode 100644 index 000000000..367b7aece --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfInterval as fn } from "../eachWeekendOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachWeekendOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth.cjs b/node_modules/date-fns/fp/eachWeekendOfMonth.cjs new file mode 100644 index 000000000..32e892aca --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekendOfMonth = void 0; + +var _index = require("../eachWeekendOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfMonth = (exports.eachWeekendOfMonth = (0, +_index2.convertToFP)(_index.eachWeekendOfMonth, 1)); diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth.d.cts b/node_modules/date-fns/fp/eachWeekendOfMonth.d.cts new file mode 100644 index 000000000..519284177 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const eachWeekendOfMonth: import("./types.ts").FPFn1< + Date[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth.d.ts b/node_modules/date-fns/fp/eachWeekendOfMonth.d.ts new file mode 100644 index 000000000..519284177 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const eachWeekendOfMonth: import("./types.ts").FPFn1< + Date[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth.js b/node_modules/date-fns/fp/eachWeekendOfMonth.js new file mode 100644 index 000000000..2a51d0aca --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfMonth as fn } from "../eachWeekendOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachWeekendOfMonth; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.cjs b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.cjs new file mode 100644 index 000000000..049bc1761 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekendOfMonthWithOptions = void 0; + +var _index = require("../eachWeekendOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfMonthWithOptions = (exports.eachWeekendOfMonthWithOptions = + (0, _index2.convertToFP)(_index.eachWeekendOfMonth, 2)); diff --git a/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.cts new file mode 100644 index 000000000..2f628b8ae --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const eachWeekendOfMonthWithOptions: import("./types.ts").FPFn2< + Date[], + | import("../eachWeekendOfMonth.ts").EachWeekendOfMonthOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.ts new file mode 100644 index 000000000..2f628b8ae --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const eachWeekendOfMonthWithOptions: import("./types.ts").FPFn2< + Date[], + | import("../eachWeekendOfMonth.ts").EachWeekendOfMonthOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.js b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.js new file mode 100644 index 000000000..f69914442 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfMonth as fn } from "../eachWeekendOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachWeekendOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/eachWeekendOfYear.cjs b/node_modules/date-fns/fp/eachWeekendOfYear.cjs new file mode 100644 index 000000000..608937be5 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.eachWeekendOfYear = void 0; + +var _index = require("../eachWeekendOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfYear = (exports.eachWeekendOfYear = (0, _index2.convertToFP)( + _index.eachWeekendOfYear, + 1, +)); diff --git a/node_modules/date-fns/fp/eachWeekendOfYear.d.cts b/node_modules/date-fns/fp/eachWeekendOfYear.d.cts new file mode 100644 index 000000000..2bf739d27 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear.d.cts @@ -0,0 +1,4 @@ +export declare const eachWeekendOfYear: import("./types.ts").FPFn1< + Date[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfYear.d.ts b/node_modules/date-fns/fp/eachWeekendOfYear.d.ts new file mode 100644 index 000000000..2bf739d27 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear.d.ts @@ -0,0 +1,4 @@ +export declare const eachWeekendOfYear: import("./types.ts").FPFn1< + Date[], + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfYear.js b/node_modules/date-fns/fp/eachWeekendOfYear.js new file mode 100644 index 000000000..aa7976b2f --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfYear as fn } from "../eachWeekendOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachWeekendOfYear; diff --git a/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.cjs b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.cjs new file mode 100644 index 000000000..5ae42045f --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachWeekendOfYearWithOptions = void 0; + +var _index = require("../eachWeekendOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachWeekendOfYearWithOptions = (exports.eachWeekendOfYearWithOptions = (0, +_index2.convertToFP)(_index.eachWeekendOfYear, 2)); diff --git a/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.cts b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.cts new file mode 100644 index 000000000..e903715fc --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const eachWeekendOfYearWithOptions: import("./types.ts").FPFn2< + Date[], + | import("../eachWeekendOfYear.ts").EachWeekendOfYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.ts b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.ts new file mode 100644 index 000000000..e903715fc --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const eachWeekendOfYearWithOptions: import("./types.ts").FPFn2< + Date[], + | import("../eachWeekendOfYear.ts").EachWeekendOfYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.js b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.js new file mode 100644 index 000000000..93606c5e8 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachWeekendOfYear as fn } from "../eachWeekendOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachWeekendOfYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachWeekendOfYearWithOptions; diff --git a/node_modules/date-fns/fp/eachYearOfInterval.cjs b/node_modules/date-fns/fp/eachYearOfInterval.cjs new file mode 100644 index 000000000..4d754389e --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachYearOfInterval = void 0; + +var _index = require("../eachYearOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachYearOfInterval = (exports.eachYearOfInterval = (0, +_index2.convertToFP)(_index.eachYearOfInterval, 1)); diff --git a/node_modules/date-fns/fp/eachYearOfInterval.d.cts b/node_modules/date-fns/fp/eachYearOfInterval.d.cts new file mode 100644 index 000000000..2d9d127a0 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval.d.cts @@ -0,0 +1,14 @@ +export declare const eachYearOfInterval: import("./types.ts").FPFn1< + import("../eachYearOfInterval.ts").EachYearOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachYearOfInterval.d.ts b/node_modules/date-fns/fp/eachYearOfInterval.d.ts new file mode 100644 index 000000000..2d9d127a0 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval.d.ts @@ -0,0 +1,14 @@ +export declare const eachYearOfInterval: import("./types.ts").FPFn1< + import("../eachYearOfInterval.ts").EachYearOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachYearOfInterval.js b/node_modules/date-fns/fp/eachYearOfInterval.js new file mode 100644 index 000000000..23906dbe5 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachYearOfInterval as fn } from "../eachYearOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachYearOfInterval = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default eachYearOfInterval; diff --git a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.cjs b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.cjs new file mode 100644 index 000000000..baf052c89 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.eachYearOfIntervalWithOptions = void 0; + +var _index = require("../eachYearOfInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const eachYearOfIntervalWithOptions = (exports.eachYearOfIntervalWithOptions = + (0, _index2.convertToFP)(_index.eachYearOfInterval, 2)); diff --git a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.cts b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.cts new file mode 100644 index 000000000..179315ab1 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.cts @@ -0,0 +1,16 @@ +export declare const eachYearOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachYearOfInterval.ts").EachYearOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.ts b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.ts new file mode 100644 index 000000000..179315ab1 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.d.ts @@ -0,0 +1,16 @@ +export declare const eachYearOfIntervalWithOptions: import("./types.ts").FPFn2< + import("../eachYearOfInterval.ts").EachYearOfIntervalResult< + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined + >, + | import("../eachYearOfInterval.ts").EachYearOfIntervalOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.js b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.js new file mode 100644 index 000000000..b6e5fd3d6 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { eachYearOfInterval as fn } from "../eachYearOfInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const eachYearOfIntervalWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default eachYearOfIntervalWithOptions; diff --git a/node_modules/date-fns/fp/endOfDay.cjs b/node_modules/date-fns/fp/endOfDay.cjs new file mode 100644 index 000000000..222d92234 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfDay = void 0; + +var _index = require("../endOfDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfDay = (exports.endOfDay = (0, _index2.convertToFP)( + _index.endOfDay, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfDay.d.cts b/node_modules/date-fns/fp/endOfDay.d.cts new file mode 100644 index 000000000..813db3c3b --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay.d.cts @@ -0,0 +1,4 @@ +export declare const endOfDay: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDay.d.ts b/node_modules/date-fns/fp/endOfDay.d.ts new file mode 100644 index 000000000..813db3c3b --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay.d.ts @@ -0,0 +1,4 @@ +export declare const endOfDay: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDay.js b/node_modules/date-fns/fp/endOfDay.js new file mode 100644 index 000000000..aef25344d --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfDay as fn } from "../endOfDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfDay = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfDay; diff --git a/node_modules/date-fns/fp/endOfDayWithOptions.cjs b/node_modules/date-fns/fp/endOfDayWithOptions.cjs new file mode 100644 index 000000000..59a43a5b5 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfDayWithOptions = void 0; + +var _index = require("../endOfDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfDayWithOptions = (exports.endOfDayWithOptions = (0, +_index2.convertToFP)(_index.endOfDay, 2)); diff --git a/node_modules/date-fns/fp/endOfDayWithOptions.d.cts b/node_modules/date-fns/fp/endOfDayWithOptions.d.cts new file mode 100644 index 000000000..6634c568b --- /dev/null +++ b/node_modules/date-fns/fp/endOfDayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfDayWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfDay.ts").EndOfDayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDayWithOptions.d.ts b/node_modules/date-fns/fp/endOfDayWithOptions.d.ts new file mode 100644 index 000000000..6634c568b --- /dev/null +++ b/node_modules/date-fns/fp/endOfDayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfDayWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfDay.ts").EndOfDayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDayWithOptions.js b/node_modules/date-fns/fp/endOfDayWithOptions.js new file mode 100644 index 000000000..8bdfc1556 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfDay as fn } from "../endOfDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfDayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfDayWithOptions; diff --git a/node_modules/date-fns/fp/endOfDecade.cjs b/node_modules/date-fns/fp/endOfDecade.cjs new file mode 100644 index 000000000..a27abc97d --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfDecade = void 0; + +var _index = require("../endOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfDecade = (exports.endOfDecade = (0, _index2.convertToFP)( + _index.endOfDecade, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfDecade.d.cts b/node_modules/date-fns/fp/endOfDecade.d.cts new file mode 100644 index 000000000..2f8f589d8 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade.d.cts @@ -0,0 +1,4 @@ +export declare const endOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDecade.d.ts b/node_modules/date-fns/fp/endOfDecade.d.ts new file mode 100644 index 000000000..2f8f589d8 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade.d.ts @@ -0,0 +1,4 @@ +export declare const endOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDecade.js b/node_modules/date-fns/fp/endOfDecade.js new file mode 100644 index 000000000..52c425401 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfDecade as fn } from "../endOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfDecade = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfDecade; diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions.cjs b/node_modules/date-fns/fp/endOfDecadeWithOptions.cjs new file mode 100644 index 000000000..bf1ad9414 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfDecadeWithOptions = void 0; + +var _index = require("../endOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfDecadeWithOptions = (exports.endOfDecadeWithOptions = (0, +_index2.convertToFP)(_index.endOfDecade, 2)); diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions.d.cts b/node_modules/date-fns/fp/endOfDecadeWithOptions.d.cts new file mode 100644 index 000000000..f0edb2a41 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfDecade.ts").EndOfDecadeOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions.d.ts b/node_modules/date-fns/fp/endOfDecadeWithOptions.d.ts new file mode 100644 index 000000000..f0edb2a41 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfDecade.ts").EndOfDecadeOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions.js b/node_modules/date-fns/fp/endOfDecadeWithOptions.js new file mode 100644 index 000000000..12d638ec0 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfDecade as fn } from "../endOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfDecadeWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfDecadeWithOptions; diff --git a/node_modules/date-fns/fp/endOfHour.cjs b/node_modules/date-fns/fp/endOfHour.cjs new file mode 100644 index 000000000..19fdc1ae9 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfHour = void 0; + +var _index = require("../endOfHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfHour = (exports.endOfHour = (0, _index2.convertToFP)( + _index.endOfHour, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfHour.d.cts b/node_modules/date-fns/fp/endOfHour.d.cts new file mode 100644 index 000000000..c3db12ff6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour.d.cts @@ -0,0 +1,4 @@ +export declare const endOfHour: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfHour.d.ts b/node_modules/date-fns/fp/endOfHour.d.ts new file mode 100644 index 000000000..c3db12ff6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour.d.ts @@ -0,0 +1,4 @@ +export declare const endOfHour: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfHour.js b/node_modules/date-fns/fp/endOfHour.js new file mode 100644 index 000000000..b9a1dcddd --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfHour as fn } from "../endOfHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfHour = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfHour; diff --git a/node_modules/date-fns/fp/endOfHourWithOptions.cjs b/node_modules/date-fns/fp/endOfHourWithOptions.cjs new file mode 100644 index 000000000..23f3ec97c --- /dev/null +++ b/node_modules/date-fns/fp/endOfHourWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfHourWithOptions = void 0; + +var _index = require("../endOfHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfHourWithOptions = (exports.endOfHourWithOptions = (0, +_index2.convertToFP)(_index.endOfHour, 2)); diff --git a/node_modules/date-fns/fp/endOfHourWithOptions.d.cts b/node_modules/date-fns/fp/endOfHourWithOptions.d.cts new file mode 100644 index 000000000..5fbec9dcb --- /dev/null +++ b/node_modules/date-fns/fp/endOfHourWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfHourWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfHour.ts").EndOfHourOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfHourWithOptions.d.ts b/node_modules/date-fns/fp/endOfHourWithOptions.d.ts new file mode 100644 index 000000000..5fbec9dcb --- /dev/null +++ b/node_modules/date-fns/fp/endOfHourWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfHourWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfHour.ts").EndOfHourOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfHourWithOptions.js b/node_modules/date-fns/fp/endOfHourWithOptions.js new file mode 100644 index 000000000..526903335 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHourWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfHour as fn } from "../endOfHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfHourWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfHourWithOptions; diff --git a/node_modules/date-fns/fp/endOfISOWeek.cjs b/node_modules/date-fns/fp/endOfISOWeek.cjs new file mode 100644 index 000000000..67ac7710c --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfISOWeek = void 0; + +var _index = require("../endOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfISOWeek = (exports.endOfISOWeek = (0, _index2.convertToFP)( + _index.endOfISOWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfISOWeek.d.cts b/node_modules/date-fns/fp/endOfISOWeek.d.cts new file mode 100644 index 000000000..a44fa9328 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek.d.cts @@ -0,0 +1,4 @@ +export declare const endOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeek.d.ts b/node_modules/date-fns/fp/endOfISOWeek.d.ts new file mode 100644 index 000000000..a44fa9328 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek.d.ts @@ -0,0 +1,4 @@ +export declare const endOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeek.js b/node_modules/date-fns/fp/endOfISOWeek.js new file mode 100644 index 000000000..8bedbd8eb --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfISOWeek as fn } from "../endOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfISOWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfISOWeek; diff --git a/node_modules/date-fns/fp/endOfISOWeekWithOptions.cjs b/node_modules/date-fns/fp/endOfISOWeekWithOptions.cjs new file mode 100644 index 000000000..32e714f2c --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfISOWeekWithOptions = void 0; + +var _index = require("../endOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfISOWeekWithOptions = (exports.endOfISOWeekWithOptions = (0, +_index2.convertToFP)(_index.endOfISOWeek, 2)); diff --git a/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.cts new file mode 100644 index 000000000..d72342cc6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfISOWeek.ts").EndOfISOWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.ts new file mode 100644 index 000000000..d72342cc6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfISOWeek.ts").EndOfISOWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekWithOptions.js b/node_modules/date-fns/fp/endOfISOWeekWithOptions.js new file mode 100644 index 000000000..48a11188d --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfISOWeek as fn } from "../endOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfISOWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/endOfISOWeekYear.cjs b/node_modules/date-fns/fp/endOfISOWeekYear.cjs new file mode 100644 index 000000000..a25ab0973 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfISOWeekYear = void 0; + +var _index = require("../endOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfISOWeekYear = (exports.endOfISOWeekYear = (0, _index2.convertToFP)( + _index.endOfISOWeekYear, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfISOWeekYear.d.cts b/node_modules/date-fns/fp/endOfISOWeekYear.d.cts new file mode 100644 index 000000000..6484bb7e1 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const endOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekYear.d.ts b/node_modules/date-fns/fp/endOfISOWeekYear.d.ts new file mode 100644 index 000000000..6484bb7e1 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const endOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekYear.js b/node_modules/date-fns/fp/endOfISOWeekYear.js new file mode 100644 index 000000000..efe5b8061 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfISOWeekYear as fn } from "../endOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfISOWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfISOWeekYear; diff --git a/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..6a9c2c843 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfISOWeekYearWithOptions = void 0; + +var _index = require("../endOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfISOWeekYearWithOptions = (exports.endOfISOWeekYearWithOptions = (0, +_index2.convertToFP)(_index.endOfISOWeekYear, 2)); diff --git a/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..83f0c2c88 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const endOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../endOfISOWeekYear.ts").EndOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..83f0c2c88 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const endOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../endOfISOWeekYear.ts").EndOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.js b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.js new file mode 100644 index 000000000..c7cc0ac3f --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfISOWeekYear as fn } from "../endOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfISOWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/endOfMinute.cjs b/node_modules/date-fns/fp/endOfMinute.cjs new file mode 100644 index 000000000..4f6f0e55e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfMinute = void 0; + +var _index = require("../endOfMinute.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfMinute = (exports.endOfMinute = (0, _index2.convertToFP)( + _index.endOfMinute, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfMinute.d.cts b/node_modules/date-fns/fp/endOfMinute.d.cts new file mode 100644 index 000000000..c2e2c31d6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute.d.cts @@ -0,0 +1,4 @@ +export declare const endOfMinute: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMinute.d.ts b/node_modules/date-fns/fp/endOfMinute.d.ts new file mode 100644 index 000000000..c2e2c31d6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute.d.ts @@ -0,0 +1,4 @@ +export declare const endOfMinute: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMinute.js b/node_modules/date-fns/fp/endOfMinute.js new file mode 100644 index 000000000..56970a92b --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfMinute as fn } from "../endOfMinute.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfMinute = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfMinute; diff --git a/node_modules/date-fns/fp/endOfMinuteWithOptions.cjs b/node_modules/date-fns/fp/endOfMinuteWithOptions.cjs new file mode 100644 index 000000000..d497cccb7 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinuteWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfMinuteWithOptions = void 0; + +var _index = require("../endOfMinute.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfMinuteWithOptions = (exports.endOfMinuteWithOptions = (0, +_index2.convertToFP)(_index.endOfMinute, 2)); diff --git a/node_modules/date-fns/fp/endOfMinuteWithOptions.d.cts b/node_modules/date-fns/fp/endOfMinuteWithOptions.d.cts new file mode 100644 index 000000000..58724550e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinuteWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfMinuteWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfMinute.ts").EndOfMinuteOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMinuteWithOptions.d.ts b/node_modules/date-fns/fp/endOfMinuteWithOptions.d.ts new file mode 100644 index 000000000..58724550e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinuteWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfMinuteWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfMinute.ts").EndOfMinuteOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMinuteWithOptions.js b/node_modules/date-fns/fp/endOfMinuteWithOptions.js new file mode 100644 index 000000000..963134a4e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinuteWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfMinute as fn } from "../endOfMinute.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfMinuteWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfMinuteWithOptions; diff --git a/node_modules/date-fns/fp/endOfMonth.cjs b/node_modules/date-fns/fp/endOfMonth.cjs new file mode 100644 index 000000000..134d1ee39 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfMonth = void 0; + +var _index = require("../endOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfMonth = (exports.endOfMonth = (0, _index2.convertToFP)( + _index.endOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfMonth.d.cts b/node_modules/date-fns/fp/endOfMonth.d.cts new file mode 100644 index 000000000..feac4cb1d --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const endOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMonth.d.ts b/node_modules/date-fns/fp/endOfMonth.d.ts new file mode 100644 index 000000000..feac4cb1d --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const endOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMonth.js b/node_modules/date-fns/fp/endOfMonth.js new file mode 100644 index 000000000..d6f95ee53 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfMonth as fn } from "../endOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfMonth; diff --git a/node_modules/date-fns/fp/endOfMonthWithOptions.cjs b/node_modules/date-fns/fp/endOfMonthWithOptions.cjs new file mode 100644 index 000000000..e2f6d0adf --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfMonthWithOptions = void 0; + +var _index = require("../endOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfMonthWithOptions = (exports.endOfMonthWithOptions = (0, +_index2.convertToFP)(_index.endOfMonth, 2)); diff --git a/node_modules/date-fns/fp/endOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/endOfMonthWithOptions.d.cts new file mode 100644 index 000000000..718706c4d --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfMonth.ts").EndOfMonthOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/endOfMonthWithOptions.d.ts new file mode 100644 index 000000000..718706c4d --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfMonth.ts").EndOfMonthOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfMonthWithOptions.js b/node_modules/date-fns/fp/endOfMonthWithOptions.js new file mode 100644 index 000000000..d26579399 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfMonth as fn } from "../endOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/endOfQuarter.cjs b/node_modules/date-fns/fp/endOfQuarter.cjs new file mode 100644 index 000000000..5941151ef --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfQuarter = void 0; + +var _index = require("../endOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfQuarter = (exports.endOfQuarter = (0, _index2.convertToFP)( + _index.endOfQuarter, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfQuarter.d.cts b/node_modules/date-fns/fp/endOfQuarter.d.cts new file mode 100644 index 000000000..32c7320e2 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter.d.cts @@ -0,0 +1,4 @@ +export declare const endOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfQuarter.d.ts b/node_modules/date-fns/fp/endOfQuarter.d.ts new file mode 100644 index 000000000..32c7320e2 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter.d.ts @@ -0,0 +1,4 @@ +export declare const endOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfQuarter.js b/node_modules/date-fns/fp/endOfQuarter.js new file mode 100644 index 000000000..60ac16bc1 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfQuarter as fn } from "../endOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfQuarter = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfQuarter; diff --git a/node_modules/date-fns/fp/endOfQuarterWithOptions.cjs b/node_modules/date-fns/fp/endOfQuarterWithOptions.cjs new file mode 100644 index 000000000..fad63eb60 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfQuarterWithOptions = void 0; + +var _index = require("../endOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfQuarterWithOptions = (exports.endOfQuarterWithOptions = (0, +_index2.convertToFP)(_index.endOfQuarter, 2)); diff --git a/node_modules/date-fns/fp/endOfQuarterWithOptions.d.cts b/node_modules/date-fns/fp/endOfQuarterWithOptions.d.cts new file mode 100644 index 000000000..d3cf31dd2 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarterWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfQuarter.ts").EndOfQuarterOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfQuarterWithOptions.d.ts b/node_modules/date-fns/fp/endOfQuarterWithOptions.d.ts new file mode 100644 index 000000000..d3cf31dd2 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarterWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfQuarter.ts").EndOfQuarterOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfQuarterWithOptions.js b/node_modules/date-fns/fp/endOfQuarterWithOptions.js new file mode 100644 index 000000000..0cdce59ca --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfQuarter as fn } from "../endOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfQuarterWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfQuarterWithOptions; diff --git a/node_modules/date-fns/fp/endOfSecond.cjs b/node_modules/date-fns/fp/endOfSecond.cjs new file mode 100644 index 000000000..26eea678a --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfSecond = void 0; + +var _index = require("../endOfSecond.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfSecond = (exports.endOfSecond = (0, _index2.convertToFP)( + _index.endOfSecond, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfSecond.d.cts b/node_modules/date-fns/fp/endOfSecond.d.cts new file mode 100644 index 000000000..cc3ecdd74 --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond.d.cts @@ -0,0 +1,4 @@ +export declare const endOfSecond: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfSecond.d.ts b/node_modules/date-fns/fp/endOfSecond.d.ts new file mode 100644 index 000000000..cc3ecdd74 --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond.d.ts @@ -0,0 +1,4 @@ +export declare const endOfSecond: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfSecond.js b/node_modules/date-fns/fp/endOfSecond.js new file mode 100644 index 000000000..1cf6d418b --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfSecond as fn } from "../endOfSecond.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfSecond = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfSecond; diff --git a/node_modules/date-fns/fp/endOfSecondWithOptions.cjs b/node_modules/date-fns/fp/endOfSecondWithOptions.cjs new file mode 100644 index 000000000..1ba92de34 --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecondWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfSecondWithOptions = void 0; + +var _index = require("../endOfSecond.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfSecondWithOptions = (exports.endOfSecondWithOptions = (0, +_index2.convertToFP)(_index.endOfSecond, 2)); diff --git a/node_modules/date-fns/fp/endOfSecondWithOptions.d.cts b/node_modules/date-fns/fp/endOfSecondWithOptions.d.cts new file mode 100644 index 000000000..afde11dae --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecondWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfSecondWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfSecond.ts").EndOfSecondOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfSecondWithOptions.d.ts b/node_modules/date-fns/fp/endOfSecondWithOptions.d.ts new file mode 100644 index 000000000..afde11dae --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecondWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfSecondWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfSecond.ts").EndOfSecondOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfSecondWithOptions.js b/node_modules/date-fns/fp/endOfSecondWithOptions.js new file mode 100644 index 000000000..72b9adf4b --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecondWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfSecond as fn } from "../endOfSecond.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfSecondWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfSecondWithOptions; diff --git a/node_modules/date-fns/fp/endOfWeek.cjs b/node_modules/date-fns/fp/endOfWeek.cjs new file mode 100644 index 000000000..da4b42402 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfWeek = void 0; + +var _index = require("../endOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfWeek = (exports.endOfWeek = (0, _index2.convertToFP)( + _index.endOfWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfWeek.d.cts b/node_modules/date-fns/fp/endOfWeek.d.cts new file mode 100644 index 000000000..530f289c5 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek.d.cts @@ -0,0 +1,4 @@ +export declare const endOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfWeek.d.ts b/node_modules/date-fns/fp/endOfWeek.d.ts new file mode 100644 index 000000000..530f289c5 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek.d.ts @@ -0,0 +1,4 @@ +export declare const endOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfWeek.js b/node_modules/date-fns/fp/endOfWeek.js new file mode 100644 index 000000000..21965dfbe --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfWeek as fn } from "../endOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfWeek; diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions.cjs b/node_modules/date-fns/fp/endOfWeekWithOptions.cjs new file mode 100644 index 000000000..e3c59eff1 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfWeekWithOptions = void 0; + +var _index = require("../endOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfWeekWithOptions = (exports.endOfWeekWithOptions = (0, +_index2.convertToFP)(_index.endOfWeek, 2)); diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions.d.cts b/node_modules/date-fns/fp/endOfWeekWithOptions.d.cts new file mode 100644 index 000000000..60f664122 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfWeek.ts").EndOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions.d.ts b/node_modules/date-fns/fp/endOfWeekWithOptions.d.ts new file mode 100644 index 000000000..60f664122 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfWeek.ts").EndOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions.js b/node_modules/date-fns/fp/endOfWeekWithOptions.js new file mode 100644 index 000000000..32b7e843c --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfWeek as fn } from "../endOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfWeekWithOptions; diff --git a/node_modules/date-fns/fp/endOfYear.cjs b/node_modules/date-fns/fp/endOfYear.cjs new file mode 100644 index 000000000..efd640830 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.endOfYear = void 0; + +var _index = require("../endOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfYear = (exports.endOfYear = (0, _index2.convertToFP)( + _index.endOfYear, + 1, +)); diff --git a/node_modules/date-fns/fp/endOfYear.d.cts b/node_modules/date-fns/fp/endOfYear.d.cts new file mode 100644 index 000000000..017480a72 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear.d.cts @@ -0,0 +1,4 @@ +export declare const endOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfYear.d.ts b/node_modules/date-fns/fp/endOfYear.d.ts new file mode 100644 index 000000000..017480a72 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear.d.ts @@ -0,0 +1,4 @@ +export declare const endOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfYear.js b/node_modules/date-fns/fp/endOfYear.js new file mode 100644 index 000000000..32bd96685 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfYear as fn } from "../endOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default endOfYear; diff --git a/node_modules/date-fns/fp/endOfYearWithOptions.cjs b/node_modules/date-fns/fp/endOfYearWithOptions.cjs new file mode 100644 index 000000000..eadaa1edd --- /dev/null +++ b/node_modules/date-fns/fp/endOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.endOfYearWithOptions = void 0; + +var _index = require("../endOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const endOfYearWithOptions = (exports.endOfYearWithOptions = (0, +_index2.convertToFP)(_index.endOfYear, 2)); diff --git a/node_modules/date-fns/fp/endOfYearWithOptions.d.cts b/node_modules/date-fns/fp/endOfYearWithOptions.d.cts new file mode 100644 index 000000000..9b6061807 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const endOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfYear.ts").EndOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfYearWithOptions.d.ts b/node_modules/date-fns/fp/endOfYearWithOptions.d.ts new file mode 100644 index 000000000..9b6061807 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const endOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../endOfYear.ts").EndOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/endOfYearWithOptions.js b/node_modules/date-fns/fp/endOfYearWithOptions.js new file mode 100644 index 000000000..8c0ea91e0 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { endOfYear as fn } from "../endOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const endOfYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default endOfYearWithOptions; diff --git a/node_modules/date-fns/fp/format.cjs b/node_modules/date-fns/fp/format.cjs new file mode 100644 index 000000000..b7034ec14 --- /dev/null +++ b/node_modules/date-fns/fp/format.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.format = void 0; + +var _index = require("../format.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const format = (exports.format = (0, _index2.convertToFP)(_index.format, 2)); diff --git a/node_modules/date-fns/fp/format.d.cts b/node_modules/date-fns/fp/format.d.cts new file mode 100644 index 000000000..395446caa --- /dev/null +++ b/node_modules/date-fns/fp/format.d.cts @@ -0,0 +1,5 @@ +export declare const format: import("./types.ts").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/format.d.ts b/node_modules/date-fns/fp/format.d.ts new file mode 100644 index 000000000..395446caa --- /dev/null +++ b/node_modules/date-fns/fp/format.d.ts @@ -0,0 +1,5 @@ +export declare const format: import("./types.ts").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/format.js b/node_modules/date-fns/fp/format.js new file mode 100644 index 000000000..164698eb1 --- /dev/null +++ b/node_modules/date-fns/fp/format.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { format as fn } from "../format.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const format = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default format; diff --git a/node_modules/date-fns/fp/formatDistance.cjs b/node_modules/date-fns/fp/formatDistance.cjs new file mode 100644 index 000000000..e5a7732ed --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatDistance = void 0; + +var _index = require("../formatDistance.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDistance = (exports.formatDistance = (0, _index2.convertToFP)( + _index.formatDistance, + 2, +)); diff --git a/node_modules/date-fns/fp/formatDistance.d.cts b/node_modules/date-fns/fp/formatDistance.d.cts new file mode 100644 index 000000000..eab1a44ea --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance.d.cts @@ -0,0 +1,5 @@ +export declare const formatDistance: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistance.d.ts b/node_modules/date-fns/fp/formatDistance.d.ts new file mode 100644 index 000000000..eab1a44ea --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance.d.ts @@ -0,0 +1,5 @@ +export declare const formatDistance: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistance.js b/node_modules/date-fns/fp/formatDistance.js new file mode 100644 index 000000000..2b24ec1b0 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDistance as fn } from "../formatDistance.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDistance = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatDistance; diff --git a/node_modules/date-fns/fp/formatDistanceStrict.cjs b/node_modules/date-fns/fp/formatDistanceStrict.cjs new file mode 100644 index 000000000..3758f8728 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatDistanceStrict = void 0; + +var _index = require("../formatDistanceStrict.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDistanceStrict = (exports.formatDistanceStrict = (0, +_index2.convertToFP)(_index.formatDistanceStrict, 2)); diff --git a/node_modules/date-fns/fp/formatDistanceStrict.d.cts b/node_modules/date-fns/fp/formatDistanceStrict.d.cts new file mode 100644 index 000000000..69ecf88af --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict.d.cts @@ -0,0 +1,5 @@ +export declare const formatDistanceStrict: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrict.d.ts b/node_modules/date-fns/fp/formatDistanceStrict.d.ts new file mode 100644 index 000000000..69ecf88af --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict.d.ts @@ -0,0 +1,5 @@ +export declare const formatDistanceStrict: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrict.js b/node_modules/date-fns/fp/formatDistanceStrict.js new file mode 100644 index 000000000..00262e251 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDistanceStrict as fn } from "../formatDistanceStrict.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDistanceStrict = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatDistanceStrict; diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.cjs b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.cjs new file mode 100644 index 000000000..ce9d340aa --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.formatDistanceStrictWithOptions = void 0; + +var _index = require("../formatDistanceStrict.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDistanceStrictWithOptions = + (exports.formatDistanceStrictWithOptions = (0, _index2.convertToFP)( + _index.formatDistanceStrict, + 3, + )); diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.cts b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.cts new file mode 100644 index 000000000..b64863126 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const formatDistanceStrictWithOptions: import("./types.ts").FPFn3< + string, + | import("../formatDistanceStrict.ts").FormatDistanceStrictOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.ts b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.ts new file mode 100644 index 000000000..b64863126 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const formatDistanceStrictWithOptions: import("./types.ts").FPFn3< + string, + | import("../formatDistanceStrict.ts").FormatDistanceStrictOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions.js b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.js new file mode 100644 index 000000000..c46427af7 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDistanceStrict as fn } from "../formatDistanceStrict.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDistanceStrictWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default formatDistanceStrictWithOptions; diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions.cjs b/node_modules/date-fns/fp/formatDistanceWithOptions.cjs new file mode 100644 index 000000000..f101bf957 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatDistanceWithOptions = void 0; + +var _index = require("../formatDistance.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDistanceWithOptions = (exports.formatDistanceWithOptions = (0, +_index2.convertToFP)(_index.formatDistance, 3)); diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions.d.cts b/node_modules/date-fns/fp/formatDistanceWithOptions.d.cts new file mode 100644 index 000000000..2dbf2d631 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const formatDistanceWithOptions: import("./types.ts").FPFn3< + string, + import("../formatDistance.ts").FormatDistanceOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions.d.ts b/node_modules/date-fns/fp/formatDistanceWithOptions.d.ts new file mode 100644 index 000000000..2dbf2d631 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const formatDistanceWithOptions: import("./types.ts").FPFn3< + string, + import("../formatDistance.ts").FormatDistanceOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions.js b/node_modules/date-fns/fp/formatDistanceWithOptions.js new file mode 100644 index 000000000..09ae753c2 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDistance as fn } from "../formatDistance.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDistanceWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default formatDistanceWithOptions; diff --git a/node_modules/date-fns/fp/formatDuration.cjs b/node_modules/date-fns/fp/formatDuration.cjs new file mode 100644 index 000000000..deaf6c1bb --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatDuration = void 0; + +var _index = require("../formatDuration.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDuration = (exports.formatDuration = (0, _index2.convertToFP)( + _index.formatDuration, + 1, +)); diff --git a/node_modules/date-fns/fp/formatDuration.d.cts b/node_modules/date-fns/fp/formatDuration.d.cts new file mode 100644 index 000000000..efbd49b84 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration.d.cts @@ -0,0 +1,4 @@ +export declare const formatDuration: import("./types.ts").FPFn1< + string, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatDuration.d.ts b/node_modules/date-fns/fp/formatDuration.d.ts new file mode 100644 index 000000000..efbd49b84 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration.d.ts @@ -0,0 +1,4 @@ +export declare const formatDuration: import("./types.ts").FPFn1< + string, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatDuration.js b/node_modules/date-fns/fp/formatDuration.js new file mode 100644 index 000000000..4fef70e71 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDuration as fn } from "../formatDuration.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDuration = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatDuration; diff --git a/node_modules/date-fns/fp/formatDurationWithOptions.cjs b/node_modules/date-fns/fp/formatDurationWithOptions.cjs new file mode 100644 index 000000000..ad408d1c8 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatDurationWithOptions = void 0; + +var _index = require("../formatDuration.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatDurationWithOptions = (exports.formatDurationWithOptions = (0, +_index2.convertToFP)(_index.formatDuration, 2)); diff --git a/node_modules/date-fns/fp/formatDurationWithOptions.d.cts b/node_modules/date-fns/fp/formatDurationWithOptions.d.cts new file mode 100644 index 000000000..9027fdfa7 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const formatDurationWithOptions: import("./types.ts").FPFn2< + string, + import("../formatDuration.ts").FormatDurationOptions | undefined, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatDurationWithOptions.d.ts b/node_modules/date-fns/fp/formatDurationWithOptions.d.ts new file mode 100644 index 000000000..9027fdfa7 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const formatDurationWithOptions: import("./types.ts").FPFn2< + string, + import("../formatDuration.ts").FormatDurationOptions | undefined, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatDurationWithOptions.js b/node_modules/date-fns/fp/formatDurationWithOptions.js new file mode 100644 index 000000000..a40072b71 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatDuration as fn } from "../formatDuration.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatDurationWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatDurationWithOptions; diff --git a/node_modules/date-fns/fp/formatISO.cjs b/node_modules/date-fns/fp/formatISO.cjs new file mode 100644 index 000000000..f29426fc9 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatISO = void 0; + +var _index = require("../formatISO.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatISO = (exports.formatISO = (0, _index2.convertToFP)( + _index.formatISO, + 1, +)); diff --git a/node_modules/date-fns/fp/formatISO.d.cts b/node_modules/date-fns/fp/formatISO.d.cts new file mode 100644 index 000000000..6f15b77f3 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO.d.cts @@ -0,0 +1,4 @@ +export declare const formatISO: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO.d.ts b/node_modules/date-fns/fp/formatISO.d.ts new file mode 100644 index 000000000..6f15b77f3 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO.d.ts @@ -0,0 +1,4 @@ +export declare const formatISO: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO.js b/node_modules/date-fns/fp/formatISO.js new file mode 100644 index 000000000..e0df4671a --- /dev/null +++ b/node_modules/date-fns/fp/formatISO.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatISO as fn } from "../formatISO.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatISO = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatISO; diff --git a/node_modules/date-fns/fp/formatISO9075.cjs b/node_modules/date-fns/fp/formatISO9075.cjs new file mode 100644 index 000000000..0d57728dc --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatISO9075 = void 0; + +var _index = require("../formatISO9075.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatISO9075 = (exports.formatISO9075 = (0, _index2.convertToFP)( + _index.formatISO9075, + 1, +)); diff --git a/node_modules/date-fns/fp/formatISO9075.d.cts b/node_modules/date-fns/fp/formatISO9075.d.cts new file mode 100644 index 000000000..f501cdcdf --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075.d.cts @@ -0,0 +1,4 @@ +export declare const formatISO9075: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075.d.ts b/node_modules/date-fns/fp/formatISO9075.d.ts new file mode 100644 index 000000000..f501cdcdf --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075.d.ts @@ -0,0 +1,4 @@ +export declare const formatISO9075: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075.js b/node_modules/date-fns/fp/formatISO9075.js new file mode 100644 index 000000000..d0306f6a7 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatISO9075 as fn } from "../formatISO9075.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatISO9075 = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatISO9075; diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions.cjs b/node_modules/date-fns/fp/formatISO9075WithOptions.cjs new file mode 100644 index 000000000..dcd1aba90 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatISO9075WithOptions = void 0; + +var _index = require("../formatISO9075.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatISO9075WithOptions = (exports.formatISO9075WithOptions = (0, +_index2.convertToFP)(_index.formatISO9075, 2)); diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions.d.cts b/node_modules/date-fns/fp/formatISO9075WithOptions.d.cts new file mode 100644 index 000000000..7eca3827e --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const formatISO9075WithOptions: import("./types.ts").FPFn2< + string, + import("../formatISO9075.ts").FormatISO9075Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions.d.ts b/node_modules/date-fns/fp/formatISO9075WithOptions.d.ts new file mode 100644 index 000000000..7eca3827e --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const formatISO9075WithOptions: import("./types.ts").FPFn2< + string, + import("../formatISO9075.ts").FormatISO9075Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions.js b/node_modules/date-fns/fp/formatISO9075WithOptions.js new file mode 100644 index 000000000..070952fb6 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatISO9075 as fn } from "../formatISO9075.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatISO9075WithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatISO9075WithOptions; diff --git a/node_modules/date-fns/fp/formatISODuration.cjs b/node_modules/date-fns/fp/formatISODuration.cjs new file mode 100644 index 000000000..86b654105 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatISODuration = void 0; + +var _index = require("../formatISODuration.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatISODuration = (exports.formatISODuration = (0, _index2.convertToFP)( + _index.formatISODuration, + 1, +)); diff --git a/node_modules/date-fns/fp/formatISODuration.d.cts b/node_modules/date-fns/fp/formatISODuration.d.cts new file mode 100644 index 000000000..e9e8b7334 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration.d.cts @@ -0,0 +1,4 @@ +export declare const formatISODuration: import("./types.ts").FPFn1< + string, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatISODuration.d.ts b/node_modules/date-fns/fp/formatISODuration.d.ts new file mode 100644 index 000000000..e9e8b7334 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration.d.ts @@ -0,0 +1,4 @@ +export declare const formatISODuration: import("./types.ts").FPFn1< + string, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/formatISODuration.js b/node_modules/date-fns/fp/formatISODuration.js new file mode 100644 index 000000000..08e99a7e4 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatISODuration as fn } from "../formatISODuration.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatISODuration = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatISODuration; diff --git a/node_modules/date-fns/fp/formatISOWithOptions.cjs b/node_modules/date-fns/fp/formatISOWithOptions.cjs new file mode 100644 index 000000000..dcc3274b3 --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatISOWithOptions = void 0; + +var _index = require("../formatISO.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatISOWithOptions = (exports.formatISOWithOptions = (0, +_index2.convertToFP)(_index.formatISO, 2)); diff --git a/node_modules/date-fns/fp/formatISOWithOptions.d.cts b/node_modules/date-fns/fp/formatISOWithOptions.d.cts new file mode 100644 index 000000000..969aaf31a --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const formatISOWithOptions: import("./types.ts").FPFn2< + string, + import("../formatISO.ts").FormatISOOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISOWithOptions.d.ts b/node_modules/date-fns/fp/formatISOWithOptions.d.ts new file mode 100644 index 000000000..969aaf31a --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const formatISOWithOptions: import("./types.ts").FPFn2< + string, + import("../formatISO.ts").FormatISOOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatISOWithOptions.js b/node_modules/date-fns/fp/formatISOWithOptions.js new file mode 100644 index 000000000..2f014d224 --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatISO as fn } from "../formatISO.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatISOWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatISOWithOptions; diff --git a/node_modules/date-fns/fp/formatRFC3339.cjs b/node_modules/date-fns/fp/formatRFC3339.cjs new file mode 100644 index 000000000..85ec51594 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatRFC3339 = void 0; + +var _index = require("../formatRFC3339.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatRFC3339 = (exports.formatRFC3339 = (0, _index2.convertToFP)( + _index.formatRFC3339, + 1, +)); diff --git a/node_modules/date-fns/fp/formatRFC3339.d.cts b/node_modules/date-fns/fp/formatRFC3339.d.cts new file mode 100644 index 000000000..24b77e0a1 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339.d.cts @@ -0,0 +1,4 @@ +export declare const formatRFC3339: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339.d.ts b/node_modules/date-fns/fp/formatRFC3339.d.ts new file mode 100644 index 000000000..24b77e0a1 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339.d.ts @@ -0,0 +1,4 @@ +export declare const formatRFC3339: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339.js b/node_modules/date-fns/fp/formatRFC3339.js new file mode 100644 index 000000000..816d51bb3 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatRFC3339 as fn } from "../formatRFC3339.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatRFC3339 = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatRFC3339; diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions.cjs b/node_modules/date-fns/fp/formatRFC3339WithOptions.cjs new file mode 100644 index 000000000..83a77d11d --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatRFC3339WithOptions = void 0; + +var _index = require("../formatRFC3339.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatRFC3339WithOptions = (exports.formatRFC3339WithOptions = (0, +_index2.convertToFP)(_index.formatRFC3339, 2)); diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions.d.cts b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.cts new file mode 100644 index 000000000..90e028216 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const formatRFC3339WithOptions: import("./types.ts").FPFn2< + string, + import("../formatRFC3339.ts").FormatRFC3339Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions.d.ts b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.ts new file mode 100644 index 000000000..90e028216 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const formatRFC3339WithOptions: import("./types.ts").FPFn2< + string, + import("../formatRFC3339.ts").FormatRFC3339Options | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions.js b/node_modules/date-fns/fp/formatRFC3339WithOptions.js new file mode 100644 index 000000000..4639791c8 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatRFC3339 as fn } from "../formatRFC3339.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatRFC3339WithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatRFC3339WithOptions; diff --git a/node_modules/date-fns/fp/formatRFC7231.cjs b/node_modules/date-fns/fp/formatRFC7231.cjs new file mode 100644 index 000000000..149818fcd --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatRFC7231 = void 0; + +var _index = require("../formatRFC7231.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatRFC7231 = (exports.formatRFC7231 = (0, _index2.convertToFP)( + _index.formatRFC7231, + 1, +)); diff --git a/node_modules/date-fns/fp/formatRFC7231.d.cts b/node_modules/date-fns/fp/formatRFC7231.d.cts new file mode 100644 index 000000000..3bd0919ef --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231.d.cts @@ -0,0 +1,4 @@ +export declare const formatRFC7231: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC7231.d.ts b/node_modules/date-fns/fp/formatRFC7231.d.ts new file mode 100644 index 000000000..3bd0919ef --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231.d.ts @@ -0,0 +1,4 @@ +export declare const formatRFC7231: import("./types.ts").FPFn1< + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRFC7231.js b/node_modules/date-fns/fp/formatRFC7231.js new file mode 100644 index 000000000..ff00ddbd3 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatRFC7231 as fn } from "../formatRFC7231.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatRFC7231 = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default formatRFC7231; diff --git a/node_modules/date-fns/fp/formatRelative.cjs b/node_modules/date-fns/fp/formatRelative.cjs new file mode 100644 index 000000000..882cbab0b --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatRelative = void 0; + +var _index = require("../formatRelative.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatRelative = (exports.formatRelative = (0, _index2.convertToFP)( + _index.formatRelative, + 2, +)); diff --git a/node_modules/date-fns/fp/formatRelative.d.cts b/node_modules/date-fns/fp/formatRelative.d.cts new file mode 100644 index 000000000..3bb049424 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative.d.cts @@ -0,0 +1,5 @@ +export declare const formatRelative: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelative.d.ts b/node_modules/date-fns/fp/formatRelative.d.ts new file mode 100644 index 000000000..3bb049424 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative.d.ts @@ -0,0 +1,5 @@ +export declare const formatRelative: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelative.js b/node_modules/date-fns/fp/formatRelative.js new file mode 100644 index 000000000..d1485aca9 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatRelative as fn } from "../formatRelative.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatRelative = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default formatRelative; diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions.cjs b/node_modules/date-fns/fp/formatRelativeWithOptions.cjs new file mode 100644 index 000000000..18ce775ed --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.formatRelativeWithOptions = void 0; + +var _index = require("../formatRelative.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatRelativeWithOptions = (exports.formatRelativeWithOptions = (0, +_index2.convertToFP)(_index.formatRelative, 3)); diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions.d.cts b/node_modules/date-fns/fp/formatRelativeWithOptions.d.cts new file mode 100644 index 000000000..0ada2cdfd --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const formatRelativeWithOptions: import("./types.ts").FPFn3< + string, + import("../formatRelative.ts").FormatRelativeOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions.d.ts b/node_modules/date-fns/fp/formatRelativeWithOptions.d.ts new file mode 100644 index 000000000..0ada2cdfd --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const formatRelativeWithOptions: import("./types.ts").FPFn3< + string, + import("../formatRelative.ts").FormatRelativeOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions.js b/node_modules/date-fns/fp/formatRelativeWithOptions.js new file mode 100644 index 000000000..cbd956973 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { formatRelative as fn } from "../formatRelative.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatRelativeWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default formatRelativeWithOptions; diff --git a/node_modules/date-fns/fp/formatWithOptions.cjs b/node_modules/date-fns/fp/formatWithOptions.cjs new file mode 100644 index 000000000..6b5ce1846 --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.formatWithOptions = void 0; + +var _index = require("../format.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const formatWithOptions = (exports.formatWithOptions = (0, _index2.convertToFP)( + _index.format, + 3, +)); diff --git a/node_modules/date-fns/fp/formatWithOptions.d.cts b/node_modules/date-fns/fp/formatWithOptions.d.cts new file mode 100644 index 000000000..5e6e8e8fa --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const formatWithOptions: import("./types.ts").FPFn3< + string, + import("../format.ts").FormatOptions | undefined, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatWithOptions.d.ts b/node_modules/date-fns/fp/formatWithOptions.d.ts new file mode 100644 index 000000000..5e6e8e8fa --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const formatWithOptions: import("./types.ts").FPFn3< + string, + import("../format.ts").FormatOptions | undefined, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/formatWithOptions.js b/node_modules/date-fns/fp/formatWithOptions.js new file mode 100644 index 000000000..15b1fa075 --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { format as fn } from "../format.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const formatWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default formatWithOptions; diff --git a/node_modules/date-fns/fp/fromUnixTime.cjs b/node_modules/date-fns/fp/fromUnixTime.cjs new file mode 100644 index 000000000..d35742ae7 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.fromUnixTime = void 0; + +var _index = require("../fromUnixTime.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const fromUnixTime = (exports.fromUnixTime = (0, _index2.convertToFP)( + _index.fromUnixTime, + 1, +)); diff --git a/node_modules/date-fns/fp/fromUnixTime.d.cts b/node_modules/date-fns/fp/fromUnixTime.d.cts new file mode 100644 index 000000000..8942a3bad --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime.d.cts @@ -0,0 +1 @@ +export declare const fromUnixTime: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/fromUnixTime.d.ts b/node_modules/date-fns/fp/fromUnixTime.d.ts new file mode 100644 index 000000000..8942a3bad --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime.d.ts @@ -0,0 +1 @@ +export declare const fromUnixTime: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/fromUnixTime.js b/node_modules/date-fns/fp/fromUnixTime.js new file mode 100644 index 000000000..d09077379 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { fromUnixTime as fn } from "../fromUnixTime.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const fromUnixTime = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default fromUnixTime; diff --git a/node_modules/date-fns/fp/fromUnixTimeWithOptions.cjs b/node_modules/date-fns/fp/fromUnixTimeWithOptions.cjs new file mode 100644 index 000000000..3c7df32d2 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTimeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.fromUnixTimeWithOptions = void 0; + +var _index = require("../fromUnixTime.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const fromUnixTimeWithOptions = (exports.fromUnixTimeWithOptions = (0, +_index2.convertToFP)(_index.fromUnixTime, 2)); diff --git a/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.cts b/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.cts new file mode 100644 index 000000000..1acf19c40 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const fromUnixTimeWithOptions: import("./types.ts").FPFn2< + Date, + import("../fromUnixTime.ts").FromUnixTimeOptions | undefined, + number +>; diff --git a/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.ts b/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.ts new file mode 100644 index 000000000..1acf19c40 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTimeWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const fromUnixTimeWithOptions: import("./types.ts").FPFn2< + Date, + import("../fromUnixTime.ts").FromUnixTimeOptions | undefined, + number +>; diff --git a/node_modules/date-fns/fp/fromUnixTimeWithOptions.js b/node_modules/date-fns/fp/fromUnixTimeWithOptions.js new file mode 100644 index 000000000..06807907e --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTimeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { fromUnixTime as fn } from "../fromUnixTime.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const fromUnixTimeWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default fromUnixTimeWithOptions; diff --git a/node_modules/date-fns/fp/getDate.cjs b/node_modules/date-fns/fp/getDate.cjs new file mode 100644 index 000000000..a20f3f290 --- /dev/null +++ b/node_modules/date-fns/fp/getDate.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.getDate = void 0; + +var _index = require("../getDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDate = (exports.getDate = (0, _index2.convertToFP)(_index.getDate, 1)); diff --git a/node_modules/date-fns/fp/getDate.d.cts b/node_modules/date-fns/fp/getDate.d.cts new file mode 100644 index 000000000..0e321abfc --- /dev/null +++ b/node_modules/date-fns/fp/getDate.d.cts @@ -0,0 +1,4 @@ +export declare const getDate: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDate.d.ts b/node_modules/date-fns/fp/getDate.d.ts new file mode 100644 index 000000000..0e321abfc --- /dev/null +++ b/node_modules/date-fns/fp/getDate.d.ts @@ -0,0 +1,4 @@ +export declare const getDate: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDate.js b/node_modules/date-fns/fp/getDate.js new file mode 100644 index 000000000..a1ddedea9 --- /dev/null +++ b/node_modules/date-fns/fp/getDate.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDate as fn } from "../getDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDate = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDate; diff --git a/node_modules/date-fns/fp/getDateWithOptions.cjs b/node_modules/date-fns/fp/getDateWithOptions.cjs new file mode 100644 index 000000000..de89f6122 --- /dev/null +++ b/node_modules/date-fns/fp/getDateWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getDateWithOptions = void 0; + +var _index = require("../getDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDateWithOptions = (exports.getDateWithOptions = (0, +_index2.convertToFP)(_index.getDate, 2)); diff --git a/node_modules/date-fns/fp/getDateWithOptions.d.cts b/node_modules/date-fns/fp/getDateWithOptions.d.cts new file mode 100644 index 000000000..774eae679 --- /dev/null +++ b/node_modules/date-fns/fp/getDateWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDateWithOptions: import("./types.ts").FPFn2< + number, + import("../getDate.ts").GetDateOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDateWithOptions.d.ts b/node_modules/date-fns/fp/getDateWithOptions.d.ts new file mode 100644 index 000000000..774eae679 --- /dev/null +++ b/node_modules/date-fns/fp/getDateWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDateWithOptions: import("./types.ts").FPFn2< + number, + import("../getDate.ts").GetDateOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDateWithOptions.js b/node_modules/date-fns/fp/getDateWithOptions.js new file mode 100644 index 000000000..aa5b2bbcc --- /dev/null +++ b/node_modules/date-fns/fp/getDateWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDate as fn } from "../getDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDateWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDateWithOptions; diff --git a/node_modules/date-fns/fp/getDay.cjs b/node_modules/date-fns/fp/getDay.cjs new file mode 100644 index 000000000..93998782a --- /dev/null +++ b/node_modules/date-fns/fp/getDay.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.getDay = void 0; + +var _index = require("../getDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDay = (exports.getDay = (0, _index2.convertToFP)(_index.getDay, 1)); diff --git a/node_modules/date-fns/fp/getDay.d.cts b/node_modules/date-fns/fp/getDay.d.cts new file mode 100644 index 000000000..0744c09ac --- /dev/null +++ b/node_modules/date-fns/fp/getDay.d.cts @@ -0,0 +1,4 @@ +export declare const getDay: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDay.d.ts b/node_modules/date-fns/fp/getDay.d.ts new file mode 100644 index 000000000..0744c09ac --- /dev/null +++ b/node_modules/date-fns/fp/getDay.d.ts @@ -0,0 +1,4 @@ +export declare const getDay: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDay.js b/node_modules/date-fns/fp/getDay.js new file mode 100644 index 000000000..444f34747 --- /dev/null +++ b/node_modules/date-fns/fp/getDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDay as fn } from "../getDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDay = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDay; diff --git a/node_modules/date-fns/fp/getDayOfYear.cjs b/node_modules/date-fns/fp/getDayOfYear.cjs new file mode 100644 index 000000000..31ae19239 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getDayOfYear = void 0; + +var _index = require("../getDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDayOfYear = (exports.getDayOfYear = (0, _index2.convertToFP)( + _index.getDayOfYear, + 1, +)); diff --git a/node_modules/date-fns/fp/getDayOfYear.d.cts b/node_modules/date-fns/fp/getDayOfYear.d.cts new file mode 100644 index 000000000..50d6c6979 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear.d.cts @@ -0,0 +1,4 @@ +export declare const getDayOfYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayOfYear.d.ts b/node_modules/date-fns/fp/getDayOfYear.d.ts new file mode 100644 index 000000000..50d6c6979 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear.d.ts @@ -0,0 +1,4 @@ +export declare const getDayOfYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayOfYear.js b/node_modules/date-fns/fp/getDayOfYear.js new file mode 100644 index 000000000..8fe71543e --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDayOfYear as fn } from "../getDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDayOfYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDayOfYear; diff --git a/node_modules/date-fns/fp/getDayOfYearWithOptions.cjs b/node_modules/date-fns/fp/getDayOfYearWithOptions.cjs new file mode 100644 index 000000000..93f7eb244 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getDayOfYearWithOptions = void 0; + +var _index = require("../getDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDayOfYearWithOptions = (exports.getDayOfYearWithOptions = (0, +_index2.convertToFP)(_index.getDayOfYear, 2)); diff --git a/node_modules/date-fns/fp/getDayOfYearWithOptions.d.cts b/node_modules/date-fns/fp/getDayOfYearWithOptions.d.cts new file mode 100644 index 000000000..fc69a3fce --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDayOfYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getDayOfYear.ts").GetDayOfYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayOfYearWithOptions.d.ts b/node_modules/date-fns/fp/getDayOfYearWithOptions.d.ts new file mode 100644 index 000000000..fc69a3fce --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDayOfYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getDayOfYear.ts").GetDayOfYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayOfYearWithOptions.js b/node_modules/date-fns/fp/getDayOfYearWithOptions.js new file mode 100644 index 000000000..d502e324d --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDayOfYear as fn } from "../getDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDayOfYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDayOfYearWithOptions; diff --git a/node_modules/date-fns/fp/getDayWithOptions.cjs b/node_modules/date-fns/fp/getDayWithOptions.cjs new file mode 100644 index 000000000..9f439aff6 --- /dev/null +++ b/node_modules/date-fns/fp/getDayWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getDayWithOptions = void 0; + +var _index = require("../getDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDayWithOptions = (exports.getDayWithOptions = (0, _index2.convertToFP)( + _index.getDay, + 2, +)); diff --git a/node_modules/date-fns/fp/getDayWithOptions.d.cts b/node_modules/date-fns/fp/getDayWithOptions.d.cts new file mode 100644 index 000000000..0392f11ea --- /dev/null +++ b/node_modules/date-fns/fp/getDayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDayWithOptions: import("./types.ts").FPFn2< + number, + import("../getDay.ts").GetDayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayWithOptions.d.ts b/node_modules/date-fns/fp/getDayWithOptions.d.ts new file mode 100644 index 000000000..0392f11ea --- /dev/null +++ b/node_modules/date-fns/fp/getDayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDayWithOptions: import("./types.ts").FPFn2< + number, + import("../getDay.ts").GetDayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDayWithOptions.js b/node_modules/date-fns/fp/getDayWithOptions.js new file mode 100644 index 000000000..c3f0ca52d --- /dev/null +++ b/node_modules/date-fns/fp/getDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDay as fn } from "../getDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDayWithOptions; diff --git a/node_modules/date-fns/fp/getDaysInMonth.cjs b/node_modules/date-fns/fp/getDaysInMonth.cjs new file mode 100644 index 000000000..0178a4490 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getDaysInMonth = void 0; + +var _index = require("../getDaysInMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDaysInMonth = (exports.getDaysInMonth = (0, _index2.convertToFP)( + _index.getDaysInMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/getDaysInMonth.d.cts b/node_modules/date-fns/fp/getDaysInMonth.d.cts new file mode 100644 index 000000000..e9b58fa6a --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth.d.cts @@ -0,0 +1,4 @@ +export declare const getDaysInMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInMonth.d.ts b/node_modules/date-fns/fp/getDaysInMonth.d.ts new file mode 100644 index 000000000..e9b58fa6a --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth.d.ts @@ -0,0 +1,4 @@ +export declare const getDaysInMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInMonth.js b/node_modules/date-fns/fp/getDaysInMonth.js new file mode 100644 index 000000000..adfce8f87 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDaysInMonth as fn } from "../getDaysInMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDaysInMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDaysInMonth; diff --git a/node_modules/date-fns/fp/getDaysInMonthWithOptions.cjs b/node_modules/date-fns/fp/getDaysInMonthWithOptions.cjs new file mode 100644 index 000000000..851c78aec --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getDaysInMonthWithOptions = void 0; + +var _index = require("../getDaysInMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDaysInMonthWithOptions = (exports.getDaysInMonthWithOptions = (0, +_index2.convertToFP)(_index.getDaysInMonth, 2)); diff --git a/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.cts b/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.cts new file mode 100644 index 000000000..aef1cb6db --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDaysInMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getDaysInMonth.ts").GetDaysInMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.ts b/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.ts new file mode 100644 index 000000000..aef1cb6db --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDaysInMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getDaysInMonth.ts").GetDaysInMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInMonthWithOptions.js b/node_modules/date-fns/fp/getDaysInMonthWithOptions.js new file mode 100644 index 000000000..f1d1d4322 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDaysInMonth as fn } from "../getDaysInMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDaysInMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDaysInMonthWithOptions; diff --git a/node_modules/date-fns/fp/getDaysInYear.cjs b/node_modules/date-fns/fp/getDaysInYear.cjs new file mode 100644 index 000000000..abb8cc8f2 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getDaysInYear = void 0; + +var _index = require("../getDaysInYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDaysInYear = (exports.getDaysInYear = (0, _index2.convertToFP)( + _index.getDaysInYear, + 1, +)); diff --git a/node_modules/date-fns/fp/getDaysInYear.d.cts b/node_modules/date-fns/fp/getDaysInYear.d.cts new file mode 100644 index 000000000..1045a866e --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear.d.cts @@ -0,0 +1,4 @@ +export declare const getDaysInYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInYear.d.ts b/node_modules/date-fns/fp/getDaysInYear.d.ts new file mode 100644 index 000000000..1045a866e --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear.d.ts @@ -0,0 +1,4 @@ +export declare const getDaysInYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInYear.js b/node_modules/date-fns/fp/getDaysInYear.js new file mode 100644 index 000000000..9d8555094 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDaysInYear as fn } from "../getDaysInYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDaysInYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDaysInYear; diff --git a/node_modules/date-fns/fp/getDaysInYearWithOptions.cjs b/node_modules/date-fns/fp/getDaysInYearWithOptions.cjs new file mode 100644 index 000000000..36e9c4d33 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getDaysInYearWithOptions = void 0; + +var _index = require("../getDaysInYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDaysInYearWithOptions = (exports.getDaysInYearWithOptions = (0, +_index2.convertToFP)(_index.getDaysInYear, 2)); diff --git a/node_modules/date-fns/fp/getDaysInYearWithOptions.d.cts b/node_modules/date-fns/fp/getDaysInYearWithOptions.d.cts new file mode 100644 index 000000000..013c4ae6a --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDaysInYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getDaysInYear.ts").GetDaysInYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInYearWithOptions.d.ts b/node_modules/date-fns/fp/getDaysInYearWithOptions.d.ts new file mode 100644 index 000000000..013c4ae6a --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDaysInYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getDaysInYear.ts").GetDaysInYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDaysInYearWithOptions.js b/node_modules/date-fns/fp/getDaysInYearWithOptions.js new file mode 100644 index 000000000..1869d466a --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDaysInYear as fn } from "../getDaysInYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDaysInYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDaysInYearWithOptions; diff --git a/node_modules/date-fns/fp/getDecade.cjs b/node_modules/date-fns/fp/getDecade.cjs new file mode 100644 index 000000000..35d78501c --- /dev/null +++ b/node_modules/date-fns/fp/getDecade.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getDecade = void 0; + +var _index = require("../getDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDecade = (exports.getDecade = (0, _index2.convertToFP)( + _index.getDecade, + 1, +)); diff --git a/node_modules/date-fns/fp/getDecade.d.cts b/node_modules/date-fns/fp/getDecade.d.cts new file mode 100644 index 000000000..a6fee55b9 --- /dev/null +++ b/node_modules/date-fns/fp/getDecade.d.cts @@ -0,0 +1,4 @@ +export declare const getDecade: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDecade.d.ts b/node_modules/date-fns/fp/getDecade.d.ts new file mode 100644 index 000000000..a6fee55b9 --- /dev/null +++ b/node_modules/date-fns/fp/getDecade.d.ts @@ -0,0 +1,4 @@ +export declare const getDecade: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDecade.js b/node_modules/date-fns/fp/getDecade.js new file mode 100644 index 000000000..ff1fbf02a --- /dev/null +++ b/node_modules/date-fns/fp/getDecade.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDecade as fn } from "../getDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDecade = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getDecade; diff --git a/node_modules/date-fns/fp/getDecadeWithOptions.cjs b/node_modules/date-fns/fp/getDecadeWithOptions.cjs new file mode 100644 index 000000000..3461c0906 --- /dev/null +++ b/node_modules/date-fns/fp/getDecadeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getDecadeWithOptions = void 0; + +var _index = require("../getDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getDecadeWithOptions = (exports.getDecadeWithOptions = (0, +_index2.convertToFP)(_index.getDecade, 2)); diff --git a/node_modules/date-fns/fp/getDecadeWithOptions.d.cts b/node_modules/date-fns/fp/getDecadeWithOptions.d.cts new file mode 100644 index 000000000..e9421053f --- /dev/null +++ b/node_modules/date-fns/fp/getDecadeWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getDecadeWithOptions: import("./types.ts").FPFn2< + number, + import("../getDecade.ts").GetDecadeOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDecadeWithOptions.d.ts b/node_modules/date-fns/fp/getDecadeWithOptions.d.ts new file mode 100644 index 000000000..e9421053f --- /dev/null +++ b/node_modules/date-fns/fp/getDecadeWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getDecadeWithOptions: import("./types.ts").FPFn2< + number, + import("../getDecade.ts").GetDecadeOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getDecadeWithOptions.js b/node_modules/date-fns/fp/getDecadeWithOptions.js new file mode 100644 index 000000000..da7dc2e2c --- /dev/null +++ b/node_modules/date-fns/fp/getDecadeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getDecade as fn } from "../getDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getDecadeWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getDecadeWithOptions; diff --git a/node_modules/date-fns/fp/getHours.cjs b/node_modules/date-fns/fp/getHours.cjs new file mode 100644 index 000000000..b00fac408 --- /dev/null +++ b/node_modules/date-fns/fp/getHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getHours = void 0; + +var _index = require("../getHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getHours = (exports.getHours = (0, _index2.convertToFP)( + _index.getHours, + 1, +)); diff --git a/node_modules/date-fns/fp/getHours.d.cts b/node_modules/date-fns/fp/getHours.d.cts new file mode 100644 index 000000000..65efcf95b --- /dev/null +++ b/node_modules/date-fns/fp/getHours.d.cts @@ -0,0 +1,4 @@ +export declare const getHours: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getHours.d.ts b/node_modules/date-fns/fp/getHours.d.ts new file mode 100644 index 000000000..65efcf95b --- /dev/null +++ b/node_modules/date-fns/fp/getHours.d.ts @@ -0,0 +1,4 @@ +export declare const getHours: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getHours.js b/node_modules/date-fns/fp/getHours.js new file mode 100644 index 000000000..c3d686a5f --- /dev/null +++ b/node_modules/date-fns/fp/getHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getHours as fn } from "../getHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getHours = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getHours; diff --git a/node_modules/date-fns/fp/getHoursWithOptions.cjs b/node_modules/date-fns/fp/getHoursWithOptions.cjs new file mode 100644 index 000000000..026f614db --- /dev/null +++ b/node_modules/date-fns/fp/getHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getHoursWithOptions = void 0; + +var _index = require("../getHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getHoursWithOptions = (exports.getHoursWithOptions = (0, +_index2.convertToFP)(_index.getHours, 2)); diff --git a/node_modules/date-fns/fp/getHoursWithOptions.d.cts b/node_modules/date-fns/fp/getHoursWithOptions.d.cts new file mode 100644 index 000000000..e090fe28f --- /dev/null +++ b/node_modules/date-fns/fp/getHoursWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getHoursWithOptions: import("./types.ts").FPFn2< + number, + import("../getHours.ts").GetHoursOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getHoursWithOptions.d.ts b/node_modules/date-fns/fp/getHoursWithOptions.d.ts new file mode 100644 index 000000000..e090fe28f --- /dev/null +++ b/node_modules/date-fns/fp/getHoursWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getHoursWithOptions: import("./types.ts").FPFn2< + number, + import("../getHours.ts").GetHoursOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getHoursWithOptions.js b/node_modules/date-fns/fp/getHoursWithOptions.js new file mode 100644 index 000000000..fb9244230 --- /dev/null +++ b/node_modules/date-fns/fp/getHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getHours as fn } from "../getHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getHoursWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getHoursWithOptions; diff --git a/node_modules/date-fns/fp/getISODay.cjs b/node_modules/date-fns/fp/getISODay.cjs new file mode 100644 index 000000000..679eff855 --- /dev/null +++ b/node_modules/date-fns/fp/getISODay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getISODay = void 0; + +var _index = require("../getISODay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISODay = (exports.getISODay = (0, _index2.convertToFP)( + _index.getISODay, + 1, +)); diff --git a/node_modules/date-fns/fp/getISODay.d.cts b/node_modules/date-fns/fp/getISODay.d.cts new file mode 100644 index 000000000..a57e571f5 --- /dev/null +++ b/node_modules/date-fns/fp/getISODay.d.cts @@ -0,0 +1,4 @@ +export declare const getISODay: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISODay.d.ts b/node_modules/date-fns/fp/getISODay.d.ts new file mode 100644 index 000000000..a57e571f5 --- /dev/null +++ b/node_modules/date-fns/fp/getISODay.d.ts @@ -0,0 +1,4 @@ +export declare const getISODay: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISODay.js b/node_modules/date-fns/fp/getISODay.js new file mode 100644 index 000000000..ecd7e64f4 --- /dev/null +++ b/node_modules/date-fns/fp/getISODay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISODay as fn } from "../getISODay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISODay = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getISODay; diff --git a/node_modules/date-fns/fp/getISODayWithOptions.cjs b/node_modules/date-fns/fp/getISODayWithOptions.cjs new file mode 100644 index 000000000..a9334d6f6 --- /dev/null +++ b/node_modules/date-fns/fp/getISODayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getISODayWithOptions = void 0; + +var _index = require("../getISODay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISODayWithOptions = (exports.getISODayWithOptions = (0, +_index2.convertToFP)(_index.getISODay, 2)); diff --git a/node_modules/date-fns/fp/getISODayWithOptions.d.cts b/node_modules/date-fns/fp/getISODayWithOptions.d.cts new file mode 100644 index 000000000..254504fa4 --- /dev/null +++ b/node_modules/date-fns/fp/getISODayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getISODayWithOptions: import("./types.ts").FPFn2< + number, + import("../getISODay.ts").GetISODayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISODayWithOptions.d.ts b/node_modules/date-fns/fp/getISODayWithOptions.d.ts new file mode 100644 index 000000000..254504fa4 --- /dev/null +++ b/node_modules/date-fns/fp/getISODayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getISODayWithOptions: import("./types.ts").FPFn2< + number, + import("../getISODay.ts").GetISODayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISODayWithOptions.js b/node_modules/date-fns/fp/getISODayWithOptions.js new file mode 100644 index 000000000..019165543 --- /dev/null +++ b/node_modules/date-fns/fp/getISODayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISODay as fn } from "../getISODay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISODayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getISODayWithOptions; diff --git a/node_modules/date-fns/fp/getISOWeek.cjs b/node_modules/date-fns/fp/getISOWeek.cjs new file mode 100644 index 000000000..364c38ead --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getISOWeek = void 0; + +var _index = require("../getISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeek = (exports.getISOWeek = (0, _index2.convertToFP)( + _index.getISOWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/getISOWeek.d.cts b/node_modules/date-fns/fp/getISOWeek.d.cts new file mode 100644 index 000000000..d6e478c2c --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek.d.cts @@ -0,0 +1,4 @@ +export declare const getISOWeek: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeek.d.ts b/node_modules/date-fns/fp/getISOWeek.d.ts new file mode 100644 index 000000000..d6e478c2c --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek.d.ts @@ -0,0 +1,4 @@ +export declare const getISOWeek: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeek.js b/node_modules/date-fns/fp/getISOWeek.js new file mode 100644 index 000000000..7f1a31e53 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeek as fn } from "../getISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getISOWeek; diff --git a/node_modules/date-fns/fp/getISOWeekWithOptions.cjs b/node_modules/date-fns/fp/getISOWeekWithOptions.cjs new file mode 100644 index 000000000..63b0b5670 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getISOWeekWithOptions = void 0; + +var _index = require("../getISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeekWithOptions = (exports.getISOWeekWithOptions = (0, +_index2.convertToFP)(_index.getISOWeek, 2)); diff --git a/node_modules/date-fns/fp/getISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/getISOWeekWithOptions.d.cts new file mode 100644 index 000000000..34eb9b381 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getISOWeekWithOptions: import("./types.ts").FPFn2< + number, + import("../getISOWeek.ts").GetISOWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/getISOWeekWithOptions.d.ts new file mode 100644 index 000000000..34eb9b381 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getISOWeekWithOptions: import("./types.ts").FPFn2< + number, + import("../getISOWeek.ts").GetISOWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekWithOptions.js b/node_modules/date-fns/fp/getISOWeekWithOptions.js new file mode 100644 index 000000000..de01e80ff --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeek as fn } from "../getISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/getISOWeekYear.cjs b/node_modules/date-fns/fp/getISOWeekYear.cjs new file mode 100644 index 000000000..70cbf1f6c --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getISOWeekYear = void 0; + +var _index = require("../getISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeekYear = (exports.getISOWeekYear = (0, _index2.convertToFP)( + _index.getISOWeekYear, + 1, +)); diff --git a/node_modules/date-fns/fp/getISOWeekYear.d.cts b/node_modules/date-fns/fp/getISOWeekYear.d.cts new file mode 100644 index 000000000..6365183e3 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const getISOWeekYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekYear.d.ts b/node_modules/date-fns/fp/getISOWeekYear.d.ts new file mode 100644 index 000000000..6365183e3 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const getISOWeekYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekYear.js b/node_modules/date-fns/fp/getISOWeekYear.js new file mode 100644 index 000000000..38e7033e9 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeekYear as fn } from "../getISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getISOWeekYear; diff --git a/node_modules/date-fns/fp/getISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/getISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..ae8327efe --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getISOWeekYearWithOptions = void 0; + +var _index = require("../getISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeekYearWithOptions = (exports.getISOWeekYearWithOptions = (0, +_index2.convertToFP)(_index.getISOWeekYear, 2)); diff --git a/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..76dab244a --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getISOWeekYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getISOWeekYear.ts").GetISOWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..76dab244a --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getISOWeekYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getISOWeekYear.ts").GetISOWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeekYearWithOptions.js b/node_modules/date-fns/fp/getISOWeekYearWithOptions.js new file mode 100644 index 000000000..cd7f22724 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeekYear as fn } from "../getISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/getISOWeeksInYear.cjs b/node_modules/date-fns/fp/getISOWeeksInYear.cjs new file mode 100644 index 000000000..2c30368e9 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getISOWeeksInYear = void 0; + +var _index = require("../getISOWeeksInYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeeksInYear = (exports.getISOWeeksInYear = (0, _index2.convertToFP)( + _index.getISOWeeksInYear, + 1, +)); diff --git a/node_modules/date-fns/fp/getISOWeeksInYear.d.cts b/node_modules/date-fns/fp/getISOWeeksInYear.d.cts new file mode 100644 index 000000000..6357a1517 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear.d.cts @@ -0,0 +1,4 @@ +export declare const getISOWeeksInYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeeksInYear.d.ts b/node_modules/date-fns/fp/getISOWeeksInYear.d.ts new file mode 100644 index 000000000..6357a1517 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear.d.ts @@ -0,0 +1,4 @@ +export declare const getISOWeeksInYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeeksInYear.js b/node_modules/date-fns/fp/getISOWeeksInYear.js new file mode 100644 index 000000000..97150477d --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeeksInYear as fn } from "../getISOWeeksInYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeeksInYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getISOWeeksInYear; diff --git a/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.cjs b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.cjs new file mode 100644 index 000000000..d57aec38e --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getISOWeeksInYearWithOptions = void 0; + +var _index = require("../getISOWeeksInYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getISOWeeksInYearWithOptions = (exports.getISOWeeksInYearWithOptions = (0, +_index2.convertToFP)(_index.getISOWeeksInYear, 2)); diff --git a/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.cts b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.cts new file mode 100644 index 000000000..f1699ef08 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const getISOWeeksInYearWithOptions: import("./types.ts").FPFn2< + number, + | import("../getISOWeeksInYear.ts").GetISOWeeksInYearOptions + | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.ts b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.ts new file mode 100644 index 000000000..f1699ef08 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const getISOWeeksInYearWithOptions: import("./types.ts").FPFn2< + number, + | import("../getISOWeeksInYear.ts").GetISOWeeksInYearOptions + | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.js b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.js new file mode 100644 index 000000000..cf8bfe8fa --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getISOWeeksInYear as fn } from "../getISOWeeksInYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getISOWeeksInYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getISOWeeksInYearWithOptions; diff --git a/node_modules/date-fns/fp/getMilliseconds.cjs b/node_modules/date-fns/fp/getMilliseconds.cjs new file mode 100644 index 000000000..92f657213 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getMilliseconds = void 0; + +var _index = require("../getMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getMilliseconds = (exports.getMilliseconds = (0, _index2.convertToFP)( + _index.getMilliseconds, + 1, +)); diff --git a/node_modules/date-fns/fp/getMilliseconds.d.cts b/node_modules/date-fns/fp/getMilliseconds.d.cts new file mode 100644 index 000000000..de72a5888 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds.d.cts @@ -0,0 +1,4 @@ +export declare const getMilliseconds: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMilliseconds.d.ts b/node_modules/date-fns/fp/getMilliseconds.d.ts new file mode 100644 index 000000000..de72a5888 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds.d.ts @@ -0,0 +1,4 @@ +export declare const getMilliseconds: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMilliseconds.js b/node_modules/date-fns/fp/getMilliseconds.js new file mode 100644 index 000000000..2a6d3a737 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getMilliseconds as fn } from "../getMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getMilliseconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getMilliseconds; diff --git a/node_modules/date-fns/fp/getMinutes.cjs b/node_modules/date-fns/fp/getMinutes.cjs new file mode 100644 index 000000000..04378f1ad --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getMinutes = void 0; + +var _index = require("../getMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getMinutes = (exports.getMinutes = (0, _index2.convertToFP)( + _index.getMinutes, + 1, +)); diff --git a/node_modules/date-fns/fp/getMinutes.d.cts b/node_modules/date-fns/fp/getMinutes.d.cts new file mode 100644 index 000000000..45ebaa8e4 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes.d.cts @@ -0,0 +1,4 @@ +export declare const getMinutes: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMinutes.d.ts b/node_modules/date-fns/fp/getMinutes.d.ts new file mode 100644 index 000000000..45ebaa8e4 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes.d.ts @@ -0,0 +1,4 @@ +export declare const getMinutes: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMinutes.js b/node_modules/date-fns/fp/getMinutes.js new file mode 100644 index 000000000..d6b172e4a --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getMinutes as fn } from "../getMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getMinutes = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getMinutes; diff --git a/node_modules/date-fns/fp/getMinutesWithOptions.cjs b/node_modules/date-fns/fp/getMinutesWithOptions.cjs new file mode 100644 index 000000000..5c8c5aee3 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutesWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getMinutesWithOptions = void 0; + +var _index = require("../getMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getMinutesWithOptions = (exports.getMinutesWithOptions = (0, +_index2.convertToFP)(_index.getMinutes, 2)); diff --git a/node_modules/date-fns/fp/getMinutesWithOptions.d.cts b/node_modules/date-fns/fp/getMinutesWithOptions.d.cts new file mode 100644 index 000000000..418cfb86c --- /dev/null +++ b/node_modules/date-fns/fp/getMinutesWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getMinutesWithOptions: import("./types.ts").FPFn2< + number, + import("../getMinutes.ts").GetMinutesOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMinutesWithOptions.d.ts b/node_modules/date-fns/fp/getMinutesWithOptions.d.ts new file mode 100644 index 000000000..418cfb86c --- /dev/null +++ b/node_modules/date-fns/fp/getMinutesWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getMinutesWithOptions: import("./types.ts").FPFn2< + number, + import("../getMinutes.ts").GetMinutesOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMinutesWithOptions.js b/node_modules/date-fns/fp/getMinutesWithOptions.js new file mode 100644 index 000000000..a9dfa1634 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getMinutes as fn } from "../getMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getMinutesWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getMinutesWithOptions; diff --git a/node_modules/date-fns/fp/getMonth.cjs b/node_modules/date-fns/fp/getMonth.cjs new file mode 100644 index 000000000..ebbf1e41c --- /dev/null +++ b/node_modules/date-fns/fp/getMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getMonth = void 0; + +var _index = require("../getMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getMonth = (exports.getMonth = (0, _index2.convertToFP)( + _index.getMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/getMonth.d.cts b/node_modules/date-fns/fp/getMonth.d.cts new file mode 100644 index 000000000..b5074942a --- /dev/null +++ b/node_modules/date-fns/fp/getMonth.d.cts @@ -0,0 +1,4 @@ +export declare const getMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMonth.d.ts b/node_modules/date-fns/fp/getMonth.d.ts new file mode 100644 index 000000000..b5074942a --- /dev/null +++ b/node_modules/date-fns/fp/getMonth.d.ts @@ -0,0 +1,4 @@ +export declare const getMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMonth.js b/node_modules/date-fns/fp/getMonth.js new file mode 100644 index 000000000..48130d356 --- /dev/null +++ b/node_modules/date-fns/fp/getMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getMonth as fn } from "../getMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getMonth; diff --git a/node_modules/date-fns/fp/getMonthWithOptions.cjs b/node_modules/date-fns/fp/getMonthWithOptions.cjs new file mode 100644 index 000000000..226853c14 --- /dev/null +++ b/node_modules/date-fns/fp/getMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getMonthWithOptions = void 0; + +var _index = require("../getMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getMonthWithOptions = (exports.getMonthWithOptions = (0, +_index2.convertToFP)(_index.getMonth, 2)); diff --git a/node_modules/date-fns/fp/getMonthWithOptions.d.cts b/node_modules/date-fns/fp/getMonthWithOptions.d.cts new file mode 100644 index 000000000..7ee6d4d35 --- /dev/null +++ b/node_modules/date-fns/fp/getMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getMonth.ts").GetMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMonthWithOptions.d.ts b/node_modules/date-fns/fp/getMonthWithOptions.d.ts new file mode 100644 index 000000000..7ee6d4d35 --- /dev/null +++ b/node_modules/date-fns/fp/getMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getMonth.ts").GetMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getMonthWithOptions.js b/node_modules/date-fns/fp/getMonthWithOptions.js new file mode 100644 index 000000000..bba375b47 --- /dev/null +++ b/node_modules/date-fns/fp/getMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getMonth as fn } from "../getMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getMonthWithOptions; diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.cjs b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.cjs new file mode 100644 index 000000000..4d7371152 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getOverlappingDaysInIntervals = void 0; + +var _index = require("../getOverlappingDaysInIntervals.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getOverlappingDaysInIntervals = (exports.getOverlappingDaysInIntervals = + (0, _index2.convertToFP)(_index.getOverlappingDaysInIntervals, 2)); diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.cts b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.cts new file mode 100644 index 000000000..57dbae071 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.cts @@ -0,0 +1,11 @@ +export declare const getOverlappingDaysInIntervals: import("./types.ts").FPFn2< + number, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.ts b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.ts new file mode 100644 index 000000000..57dbae071 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.d.ts @@ -0,0 +1,11 @@ +export declare const getOverlappingDaysInIntervals: import("./types.ts").FPFn2< + number, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals.js b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.js new file mode 100644 index 000000000..678b337e5 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getOverlappingDaysInIntervals as fn } from "../getOverlappingDaysInIntervals.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getOverlappingDaysInIntervals = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getOverlappingDaysInIntervals; diff --git a/node_modules/date-fns/fp/getQuarter.cjs b/node_modules/date-fns/fp/getQuarter.cjs new file mode 100644 index 000000000..95112629b --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getQuarter = void 0; + +var _index = require("../getQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getQuarter = (exports.getQuarter = (0, _index2.convertToFP)( + _index.getQuarter, + 1, +)); diff --git a/node_modules/date-fns/fp/getQuarter.d.cts b/node_modules/date-fns/fp/getQuarter.d.cts new file mode 100644 index 000000000..6a05ea5ff --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter.d.cts @@ -0,0 +1,4 @@ +export declare const getQuarter: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getQuarter.d.ts b/node_modules/date-fns/fp/getQuarter.d.ts new file mode 100644 index 000000000..6a05ea5ff --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter.d.ts @@ -0,0 +1,4 @@ +export declare const getQuarter: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getQuarter.js b/node_modules/date-fns/fp/getQuarter.js new file mode 100644 index 000000000..121861dd3 --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getQuarter as fn } from "../getQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getQuarter = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getQuarter; diff --git a/node_modules/date-fns/fp/getQuarterWithOptions.cjs b/node_modules/date-fns/fp/getQuarterWithOptions.cjs new file mode 100644 index 000000000..6fa90ec1b --- /dev/null +++ b/node_modules/date-fns/fp/getQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getQuarterWithOptions = void 0; + +var _index = require("../getQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getQuarterWithOptions = (exports.getQuarterWithOptions = (0, +_index2.convertToFP)(_index.getQuarter, 2)); diff --git a/node_modules/date-fns/fp/getQuarterWithOptions.d.cts b/node_modules/date-fns/fp/getQuarterWithOptions.d.cts new file mode 100644 index 000000000..e97e9b57b --- /dev/null +++ b/node_modules/date-fns/fp/getQuarterWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getQuarterWithOptions: import("./types.ts").FPFn2< + number, + import("../getQuarter.ts").GetQuarterOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getQuarterWithOptions.d.ts b/node_modules/date-fns/fp/getQuarterWithOptions.d.ts new file mode 100644 index 000000000..e97e9b57b --- /dev/null +++ b/node_modules/date-fns/fp/getQuarterWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getQuarterWithOptions: import("./types.ts").FPFn2< + number, + import("../getQuarter.ts").GetQuarterOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getQuarterWithOptions.js b/node_modules/date-fns/fp/getQuarterWithOptions.js new file mode 100644 index 000000000..c9a6638e0 --- /dev/null +++ b/node_modules/date-fns/fp/getQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getQuarter as fn } from "../getQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getQuarterWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getQuarterWithOptions; diff --git a/node_modules/date-fns/fp/getSeconds.cjs b/node_modules/date-fns/fp/getSeconds.cjs new file mode 100644 index 000000000..d38f39ce9 --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getSeconds = void 0; + +var _index = require("../getSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getSeconds = (exports.getSeconds = (0, _index2.convertToFP)( + _index.getSeconds, + 1, +)); diff --git a/node_modules/date-fns/fp/getSeconds.d.cts b/node_modules/date-fns/fp/getSeconds.d.cts new file mode 100644 index 000000000..e1b335025 --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds.d.cts @@ -0,0 +1,4 @@ +export declare const getSeconds: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getSeconds.d.ts b/node_modules/date-fns/fp/getSeconds.d.ts new file mode 100644 index 000000000..e1b335025 --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds.d.ts @@ -0,0 +1,4 @@ +export declare const getSeconds: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getSeconds.js b/node_modules/date-fns/fp/getSeconds.js new file mode 100644 index 000000000..ad69b1b2b --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getSeconds as fn } from "../getSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getSeconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getSeconds; diff --git a/node_modules/date-fns/fp/getTime.cjs b/node_modules/date-fns/fp/getTime.cjs new file mode 100644 index 000000000..96753d0e6 --- /dev/null +++ b/node_modules/date-fns/fp/getTime.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.getTime = void 0; + +var _index = require("../getTime.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getTime = (exports.getTime = (0, _index2.convertToFP)(_index.getTime, 1)); diff --git a/node_modules/date-fns/fp/getTime.d.cts b/node_modules/date-fns/fp/getTime.d.cts new file mode 100644 index 000000000..414ee3d0f --- /dev/null +++ b/node_modules/date-fns/fp/getTime.d.cts @@ -0,0 +1,4 @@ +export declare const getTime: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getTime.d.ts b/node_modules/date-fns/fp/getTime.d.ts new file mode 100644 index 000000000..414ee3d0f --- /dev/null +++ b/node_modules/date-fns/fp/getTime.d.ts @@ -0,0 +1,4 @@ +export declare const getTime: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getTime.js b/node_modules/date-fns/fp/getTime.js new file mode 100644 index 000000000..fe2e28e08 --- /dev/null +++ b/node_modules/date-fns/fp/getTime.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getTime as fn } from "../getTime.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getTime = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getTime; diff --git a/node_modules/date-fns/fp/getUnixTime.cjs b/node_modules/date-fns/fp/getUnixTime.cjs new file mode 100644 index 000000000..3e7b93ce6 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getUnixTime = void 0; + +var _index = require("../getUnixTime.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getUnixTime = (exports.getUnixTime = (0, _index2.convertToFP)( + _index.getUnixTime, + 1, +)); diff --git a/node_modules/date-fns/fp/getUnixTime.d.cts b/node_modules/date-fns/fp/getUnixTime.d.cts new file mode 100644 index 000000000..4c9ecadb6 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime.d.cts @@ -0,0 +1,4 @@ +export declare const getUnixTime: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getUnixTime.d.ts b/node_modules/date-fns/fp/getUnixTime.d.ts new file mode 100644 index 000000000..4c9ecadb6 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime.d.ts @@ -0,0 +1,4 @@ +export declare const getUnixTime: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getUnixTime.js b/node_modules/date-fns/fp/getUnixTime.js new file mode 100644 index 000000000..f8b01874b --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getUnixTime as fn } from "../getUnixTime.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getUnixTime = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getUnixTime; diff --git a/node_modules/date-fns/fp/getWeek.cjs b/node_modules/date-fns/fp/getWeek.cjs new file mode 100644 index 000000000..97ea38553 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.getWeek = void 0; + +var _index = require("../getWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeek = (exports.getWeek = (0, _index2.convertToFP)(_index.getWeek, 1)); diff --git a/node_modules/date-fns/fp/getWeek.d.cts b/node_modules/date-fns/fp/getWeek.d.cts new file mode 100644 index 000000000..e3a7d69b5 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek.d.cts @@ -0,0 +1,4 @@ +export declare const getWeek: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeek.d.ts b/node_modules/date-fns/fp/getWeek.d.ts new file mode 100644 index 000000000..e3a7d69b5 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek.d.ts @@ -0,0 +1,4 @@ +export declare const getWeek: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeek.js b/node_modules/date-fns/fp/getWeek.js new file mode 100644 index 000000000..367aadae1 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeek as fn } from "../getWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getWeek; diff --git a/node_modules/date-fns/fp/getWeekOfMonth.cjs b/node_modules/date-fns/fp/getWeekOfMonth.cjs new file mode 100644 index 000000000..616f8e072 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getWeekOfMonth = void 0; + +var _index = require("../getWeekOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeekOfMonth = (exports.getWeekOfMonth = (0, _index2.convertToFP)( + _index.getWeekOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/getWeekOfMonth.d.cts b/node_modules/date-fns/fp/getWeekOfMonth.d.cts new file mode 100644 index 000000000..bd8065c95 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const getWeekOfMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonth.d.ts b/node_modules/date-fns/fp/getWeekOfMonth.d.ts new file mode 100644 index 000000000..bd8065c95 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const getWeekOfMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonth.js b/node_modules/date-fns/fp/getWeekOfMonth.js new file mode 100644 index 000000000..fb3d9200c --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeekOfMonth as fn } from "../getWeekOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeekOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getWeekOfMonth; diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.cjs b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.cjs new file mode 100644 index 000000000..6edbe8b76 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getWeekOfMonthWithOptions = void 0; + +var _index = require("../getWeekOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeekOfMonthWithOptions = (exports.getWeekOfMonthWithOptions = (0, +_index2.convertToFP)(_index.getWeekOfMonth, 2)); diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.cts new file mode 100644 index 000000000..01b53c7cd --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getWeekOfMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeekOfMonth.ts").GetWeekOfMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.ts new file mode 100644 index 000000000..01b53c7cd --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getWeekOfMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeekOfMonth.ts").GetWeekOfMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions.js b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.js new file mode 100644 index 000000000..59881ac4f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeekOfMonth as fn } from "../getWeekOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeekOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getWeekOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/getWeekWithOptions.cjs b/node_modules/date-fns/fp/getWeekWithOptions.cjs new file mode 100644 index 000000000..7f2c24221 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getWeekWithOptions = void 0; + +var _index = require("../getWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeekWithOptions = (exports.getWeekWithOptions = (0, +_index2.convertToFP)(_index.getWeek, 2)); diff --git a/node_modules/date-fns/fp/getWeekWithOptions.d.cts b/node_modules/date-fns/fp/getWeekWithOptions.d.cts new file mode 100644 index 000000000..f44c4a9af --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getWeekWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeek.ts").GetWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekWithOptions.d.ts b/node_modules/date-fns/fp/getWeekWithOptions.d.ts new file mode 100644 index 000000000..f44c4a9af --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getWeekWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeek.ts").GetWeekOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekWithOptions.js b/node_modules/date-fns/fp/getWeekWithOptions.js new file mode 100644 index 000000000..982b6a8bb --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeek as fn } from "../getWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getWeekWithOptions; diff --git a/node_modules/date-fns/fp/getWeekYear.cjs b/node_modules/date-fns/fp/getWeekYear.cjs new file mode 100644 index 000000000..d0685d9a7 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getWeekYear = void 0; + +var _index = require("../getWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeekYear = (exports.getWeekYear = (0, _index2.convertToFP)( + _index.getWeekYear, + 1, +)); diff --git a/node_modules/date-fns/fp/getWeekYear.d.cts b/node_modules/date-fns/fp/getWeekYear.d.cts new file mode 100644 index 000000000..e0e2680a1 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const getWeekYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYear.d.ts b/node_modules/date-fns/fp/getWeekYear.d.ts new file mode 100644 index 000000000..e0e2680a1 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const getWeekYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYear.js b/node_modules/date-fns/fp/getWeekYear.js new file mode 100644 index 000000000..a405a9d41 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeekYear as fn } from "../getWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getWeekYear; diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions.cjs b/node_modules/date-fns/fp/getWeekYearWithOptions.cjs new file mode 100644 index 000000000..2fc189b84 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getWeekYearWithOptions = void 0; + +var _index = require("../getWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeekYearWithOptions = (exports.getWeekYearWithOptions = (0, +_index2.convertToFP)(_index.getWeekYear, 2)); diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/getWeekYearWithOptions.d.cts new file mode 100644 index 000000000..f9b589bd6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getWeekYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeekYear.ts").GetWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/getWeekYearWithOptions.d.ts new file mode 100644 index 000000000..f9b589bd6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getWeekYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeekYear.ts").GetWeekYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions.js b/node_modules/date-fns/fp/getWeekYearWithOptions.js new file mode 100644 index 000000000..96bd46d1f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeekYear as fn } from "../getWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/getWeeksInMonth.cjs b/node_modules/date-fns/fp/getWeeksInMonth.cjs new file mode 100644 index 000000000..76c37f33f --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.getWeeksInMonth = void 0; + +var _index = require("../getWeeksInMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeeksInMonth = (exports.getWeeksInMonth = (0, _index2.convertToFP)( + _index.getWeeksInMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/getWeeksInMonth.d.cts b/node_modules/date-fns/fp/getWeeksInMonth.d.cts new file mode 100644 index 000000000..98961e243 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth.d.cts @@ -0,0 +1,4 @@ +export declare const getWeeksInMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonth.d.ts b/node_modules/date-fns/fp/getWeeksInMonth.d.ts new file mode 100644 index 000000000..98961e243 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth.d.ts @@ -0,0 +1,4 @@ +export declare const getWeeksInMonth: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonth.js b/node_modules/date-fns/fp/getWeeksInMonth.js new file mode 100644 index 000000000..1a9febdb5 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeeksInMonth as fn } from "../getWeeksInMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeeksInMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getWeeksInMonth; diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.cjs b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.cjs new file mode 100644 index 000000000..3ce7c1ee3 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getWeeksInMonthWithOptions = void 0; + +var _index = require("../getWeeksInMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getWeeksInMonthWithOptions = (exports.getWeeksInMonthWithOptions = (0, +_index2.convertToFP)(_index.getWeeksInMonth, 2)); diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.cts b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.cts new file mode 100644 index 000000000..4bb5dfba6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getWeeksInMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeeksInMonth.ts").GetWeeksInMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.ts b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.ts new file mode 100644 index 000000000..4bb5dfba6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getWeeksInMonthWithOptions: import("./types.ts").FPFn2< + number, + import("../getWeeksInMonth.ts").GetWeeksInMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions.js b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.js new file mode 100644 index 000000000..8a95cd698 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getWeeksInMonth as fn } from "../getWeeksInMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getWeeksInMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getWeeksInMonthWithOptions; diff --git a/node_modules/date-fns/fp/getYear.cjs b/node_modules/date-fns/fp/getYear.cjs new file mode 100644 index 000000000..f6bef787b --- /dev/null +++ b/node_modules/date-fns/fp/getYear.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.getYear = void 0; + +var _index = require("../getYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getYear = (exports.getYear = (0, _index2.convertToFP)(_index.getYear, 1)); diff --git a/node_modules/date-fns/fp/getYear.d.cts b/node_modules/date-fns/fp/getYear.d.cts new file mode 100644 index 000000000..d98387a0b --- /dev/null +++ b/node_modules/date-fns/fp/getYear.d.cts @@ -0,0 +1,4 @@ +export declare const getYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getYear.d.ts b/node_modules/date-fns/fp/getYear.d.ts new file mode 100644 index 000000000..d98387a0b --- /dev/null +++ b/node_modules/date-fns/fp/getYear.d.ts @@ -0,0 +1,4 @@ +export declare const getYear: import("./types.ts").FPFn1< + number, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getYear.js b/node_modules/date-fns/fp/getYear.js new file mode 100644 index 000000000..c587bd35d --- /dev/null +++ b/node_modules/date-fns/fp/getYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getYear as fn } from "../getYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default getYear; diff --git a/node_modules/date-fns/fp/getYearWithOptions.cjs b/node_modules/date-fns/fp/getYearWithOptions.cjs new file mode 100644 index 000000000..4151cfe0d --- /dev/null +++ b/node_modules/date-fns/fp/getYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.getYearWithOptions = void 0; + +var _index = require("../getYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const getYearWithOptions = (exports.getYearWithOptions = (0, +_index2.convertToFP)(_index.getYear, 2)); diff --git a/node_modules/date-fns/fp/getYearWithOptions.d.cts b/node_modules/date-fns/fp/getYearWithOptions.d.cts new file mode 100644 index 000000000..ad0f0e32f --- /dev/null +++ b/node_modules/date-fns/fp/getYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const getYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getYear.ts").GetYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getYearWithOptions.d.ts b/node_modules/date-fns/fp/getYearWithOptions.d.ts new file mode 100644 index 000000000..ad0f0e32f --- /dev/null +++ b/node_modules/date-fns/fp/getYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const getYearWithOptions: import("./types.ts").FPFn2< + number, + import("../getYear.ts").GetYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/getYearWithOptions.js b/node_modules/date-fns/fp/getYearWithOptions.js new file mode 100644 index 000000000..a5d47d606 --- /dev/null +++ b/node_modules/date-fns/fp/getYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { getYear as fn } from "../getYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const getYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default getYearWithOptions; diff --git a/node_modules/date-fns/fp/hoursToMilliseconds.cjs b/node_modules/date-fns/fp/hoursToMilliseconds.cjs new file mode 100644 index 000000000..9dcad4230 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.hoursToMilliseconds = void 0; + +var _index = require("../hoursToMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const hoursToMilliseconds = (exports.hoursToMilliseconds = (0, +_index2.convertToFP)(_index.hoursToMilliseconds, 1)); diff --git a/node_modules/date-fns/fp/hoursToMilliseconds.d.cts b/node_modules/date-fns/fp/hoursToMilliseconds.d.cts new file mode 100644 index 000000000..cf85535b5 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds.d.cts @@ -0,0 +1,4 @@ +export declare const hoursToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToMilliseconds.d.ts b/node_modules/date-fns/fp/hoursToMilliseconds.d.ts new file mode 100644 index 000000000..cf85535b5 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds.d.ts @@ -0,0 +1,4 @@ +export declare const hoursToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToMilliseconds.js b/node_modules/date-fns/fp/hoursToMilliseconds.js new file mode 100644 index 000000000..0154526d3 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { hoursToMilliseconds as fn } from "../hoursToMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const hoursToMilliseconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default hoursToMilliseconds; diff --git a/node_modules/date-fns/fp/hoursToMinutes.cjs b/node_modules/date-fns/fp/hoursToMinutes.cjs new file mode 100644 index 000000000..f015a29d8 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.hoursToMinutes = void 0; + +var _index = require("../hoursToMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const hoursToMinutes = (exports.hoursToMinutes = (0, _index2.convertToFP)( + _index.hoursToMinutes, + 1, +)); diff --git a/node_modules/date-fns/fp/hoursToMinutes.d.cts b/node_modules/date-fns/fp/hoursToMinutes.d.cts new file mode 100644 index 000000000..8fc935f45 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes.d.cts @@ -0,0 +1,4 @@ +export declare const hoursToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToMinutes.d.ts b/node_modules/date-fns/fp/hoursToMinutes.d.ts new file mode 100644 index 000000000..8fc935f45 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes.d.ts @@ -0,0 +1,4 @@ +export declare const hoursToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToMinutes.js b/node_modules/date-fns/fp/hoursToMinutes.js new file mode 100644 index 000000000..0e95e89cd --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { hoursToMinutes as fn } from "../hoursToMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const hoursToMinutes = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default hoursToMinutes; diff --git a/node_modules/date-fns/fp/hoursToSeconds.cjs b/node_modules/date-fns/fp/hoursToSeconds.cjs new file mode 100644 index 000000000..d19ac8d3b --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.hoursToSeconds = void 0; + +var _index = require("../hoursToSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const hoursToSeconds = (exports.hoursToSeconds = (0, _index2.convertToFP)( + _index.hoursToSeconds, + 1, +)); diff --git a/node_modules/date-fns/fp/hoursToSeconds.d.cts b/node_modules/date-fns/fp/hoursToSeconds.d.cts new file mode 100644 index 000000000..b6a62c193 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds.d.cts @@ -0,0 +1,4 @@ +export declare const hoursToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToSeconds.d.ts b/node_modules/date-fns/fp/hoursToSeconds.d.ts new file mode 100644 index 000000000..b6a62c193 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds.d.ts @@ -0,0 +1,4 @@ +export declare const hoursToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/hoursToSeconds.js b/node_modules/date-fns/fp/hoursToSeconds.js new file mode 100644 index 000000000..96fd1afbc --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { hoursToSeconds as fn } from "../hoursToSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const hoursToSeconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default hoursToSeconds; diff --git a/node_modules/date-fns/fp/interval.cjs b/node_modules/date-fns/fp/interval.cjs new file mode 100644 index 000000000..c25780cac --- /dev/null +++ b/node_modules/date-fns/fp/interval.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.interval = void 0; + +var _index = require("../interval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const interval = (exports.interval = (0, _index2.convertToFP)( + _index.interval, + 2, +)); diff --git a/node_modules/date-fns/fp/interval.d.cts b/node_modules/date-fns/fp/interval.d.cts new file mode 100644 index 000000000..d5b91174f --- /dev/null +++ b/node_modules/date-fns/fp/interval.d.cts @@ -0,0 +1,9 @@ +export declare const interval: import("./types.ts").FPFn2< + import("../interval.ts").IntervalResult< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg, + import("../interval.ts").IntervalOptions | undefined + >, + import("../fp.ts").DateArg, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/interval.d.ts b/node_modules/date-fns/fp/interval.d.ts new file mode 100644 index 000000000..d5b91174f --- /dev/null +++ b/node_modules/date-fns/fp/interval.d.ts @@ -0,0 +1,9 @@ +export declare const interval: import("./types.ts").FPFn2< + import("../interval.ts").IntervalResult< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg, + import("../interval.ts").IntervalOptions | undefined + >, + import("../fp.ts").DateArg, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/interval.js b/node_modules/date-fns/fp/interval.js new file mode 100644 index 000000000..c9e04d893 --- /dev/null +++ b/node_modules/date-fns/fp/interval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { interval as fn } from "../interval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const interval = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default interval; diff --git a/node_modules/date-fns/fp/intervalToDuration.cjs b/node_modules/date-fns/fp/intervalToDuration.cjs new file mode 100644 index 000000000..ec3670834 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.intervalToDuration = void 0; + +var _index = require("../intervalToDuration.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intervalToDuration = (exports.intervalToDuration = (0, +_index2.convertToFP)(_index.intervalToDuration, 1)); diff --git a/node_modules/date-fns/fp/intervalToDuration.d.cts b/node_modules/date-fns/fp/intervalToDuration.d.cts new file mode 100644 index 000000000..fc4d42023 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration.d.cts @@ -0,0 +1,7 @@ +export declare const intervalToDuration: import("./types.ts").FPFn1< + import("../fp.ts").Duration, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/intervalToDuration.d.ts b/node_modules/date-fns/fp/intervalToDuration.d.ts new file mode 100644 index 000000000..fc4d42023 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration.d.ts @@ -0,0 +1,7 @@ +export declare const intervalToDuration: import("./types.ts").FPFn1< + import("../fp.ts").Duration, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/intervalToDuration.js b/node_modules/date-fns/fp/intervalToDuration.js new file mode 100644 index 000000000..f5944b8f2 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { intervalToDuration as fn } from "../intervalToDuration.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intervalToDuration = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default intervalToDuration; diff --git a/node_modules/date-fns/fp/intervalToDurationWithOptions.cjs b/node_modules/date-fns/fp/intervalToDurationWithOptions.cjs new file mode 100644 index 000000000..143c8ce59 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDurationWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.intervalToDurationWithOptions = void 0; + +var _index = require("../intervalToDuration.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intervalToDurationWithOptions = (exports.intervalToDurationWithOptions = + (0, _index2.convertToFP)(_index.intervalToDuration, 2)); diff --git a/node_modules/date-fns/fp/intervalToDurationWithOptions.d.cts b/node_modules/date-fns/fp/intervalToDurationWithOptions.d.cts new file mode 100644 index 000000000..6f2324e4f --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDurationWithOptions.d.cts @@ -0,0 +1,9 @@ +export declare const intervalToDurationWithOptions: import("./types.ts").FPFn2< + import("../fp.ts").Duration, + | import("../intervalToDuration.ts").IntervalToDurationOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/intervalToDurationWithOptions.d.ts b/node_modules/date-fns/fp/intervalToDurationWithOptions.d.ts new file mode 100644 index 000000000..6f2324e4f --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDurationWithOptions.d.ts @@ -0,0 +1,9 @@ +export declare const intervalToDurationWithOptions: import("./types.ts").FPFn2< + import("../fp.ts").Duration, + | import("../intervalToDuration.ts").IntervalToDurationOptions + | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + > +>; diff --git a/node_modules/date-fns/fp/intervalToDurationWithOptions.js b/node_modules/date-fns/fp/intervalToDurationWithOptions.js new file mode 100644 index 000000000..afdaf72ed --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDurationWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { intervalToDuration as fn } from "../intervalToDuration.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intervalToDurationWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default intervalToDurationWithOptions; diff --git a/node_modules/date-fns/fp/intervalWithOptions.cjs b/node_modules/date-fns/fp/intervalWithOptions.cjs new file mode 100644 index 000000000..e386744aa --- /dev/null +++ b/node_modules/date-fns/fp/intervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.intervalWithOptions = void 0; + +var _index = require("../interval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intervalWithOptions = (exports.intervalWithOptions = (0, +_index2.convertToFP)(_index.interval, 3)); diff --git a/node_modules/date-fns/fp/intervalWithOptions.d.cts b/node_modules/date-fns/fp/intervalWithOptions.d.cts new file mode 100644 index 000000000..f1ec5a6e4 --- /dev/null +++ b/node_modules/date-fns/fp/intervalWithOptions.d.cts @@ -0,0 +1,10 @@ +export declare const intervalWithOptions: import("./types.ts").FPFn3< + import("../interval.ts").IntervalResult< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg, + import("../interval.ts").IntervalOptions | undefined + >, + import("../interval.ts").IntervalOptions | undefined, + import("../fp.ts").DateArg, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/intervalWithOptions.d.ts b/node_modules/date-fns/fp/intervalWithOptions.d.ts new file mode 100644 index 000000000..f1ec5a6e4 --- /dev/null +++ b/node_modules/date-fns/fp/intervalWithOptions.d.ts @@ -0,0 +1,10 @@ +export declare const intervalWithOptions: import("./types.ts").FPFn3< + import("../interval.ts").IntervalResult< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg, + import("../interval.ts").IntervalOptions | undefined + >, + import("../interval.ts").IntervalOptions | undefined, + import("../fp.ts").DateArg, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/intervalWithOptions.js b/node_modules/date-fns/fp/intervalWithOptions.js new file mode 100644 index 000000000..47abda32a --- /dev/null +++ b/node_modules/date-fns/fp/intervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { interval as fn } from "../interval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intervalWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default intervalWithOptions; diff --git a/node_modules/date-fns/fp/intlFormat.cjs b/node_modules/date-fns/fp/intlFormat.cjs new file mode 100644 index 000000000..623d1effe --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.intlFormat = void 0; + +var _index = require("../intlFormat.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intlFormat = (exports.intlFormat = (0, _index2.convertToFP)( + _index.intlFormat, + 3, +)); diff --git a/node_modules/date-fns/fp/intlFormat.d.cts b/node_modules/date-fns/fp/intlFormat.d.cts new file mode 100644 index 000000000..eff967e84 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat.d.cts @@ -0,0 +1,6 @@ +export declare const intlFormat: import("./types.ts").FPFn3< + string, + import("../intlFormat.ts").IntlFormatLocaleOptions, + Intl.DateTimeFormatOptions, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormat.d.ts b/node_modules/date-fns/fp/intlFormat.d.ts new file mode 100644 index 000000000..eff967e84 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat.d.ts @@ -0,0 +1,6 @@ +export declare const intlFormat: import("./types.ts").FPFn3< + string, + import("../intlFormat.ts").IntlFormatLocaleOptions, + Intl.DateTimeFormatOptions, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormat.js b/node_modules/date-fns/fp/intlFormat.js new file mode 100644 index 000000000..e55ee0d96 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { intlFormat as fn } from "../intlFormat.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intlFormat = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default intlFormat; diff --git a/node_modules/date-fns/fp/intlFormatDistance.cjs b/node_modules/date-fns/fp/intlFormatDistance.cjs new file mode 100644 index 000000000..069ce5bd4 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.intlFormatDistance = void 0; + +var _index = require("../intlFormatDistance.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intlFormatDistance = (exports.intlFormatDistance = (0, +_index2.convertToFP)(_index.intlFormatDistance, 2)); diff --git a/node_modules/date-fns/fp/intlFormatDistance.d.cts b/node_modules/date-fns/fp/intlFormatDistance.d.cts new file mode 100644 index 000000000..5689d30f6 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance.d.cts @@ -0,0 +1,5 @@ +export declare const intlFormatDistance: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistance.d.ts b/node_modules/date-fns/fp/intlFormatDistance.d.ts new file mode 100644 index 000000000..5689d30f6 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance.d.ts @@ -0,0 +1,5 @@ +export declare const intlFormatDistance: import("./types.ts").FPFn2< + string, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistance.js b/node_modules/date-fns/fp/intlFormatDistance.js new file mode 100644 index 000000000..61719aee1 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { intlFormatDistance as fn } from "../intlFormatDistance.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intlFormatDistance = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default intlFormatDistance; diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.cjs b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.cjs new file mode 100644 index 000000000..aa27f4483 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.intlFormatDistanceWithOptions = void 0; + +var _index = require("../intlFormatDistance.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const intlFormatDistanceWithOptions = (exports.intlFormatDistanceWithOptions = + (0, _index2.convertToFP)(_index.intlFormatDistance, 3)); diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.cts b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.cts new file mode 100644 index 000000000..c4e59b42b --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const intlFormatDistanceWithOptions: import("./types.ts").FPFn3< + string, + | import("../intlFormatDistance.ts").IntlFormatDistanceOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.ts b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.ts new file mode 100644 index 000000000..c4e59b42b --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const intlFormatDistanceWithOptions: import("./types.ts").FPFn3< + string, + | import("../intlFormatDistance.ts").IntlFormatDistanceOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions.js b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.js new file mode 100644 index 000000000..36a988495 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { intlFormatDistance as fn } from "../intlFormatDistance.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const intlFormatDistanceWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default intlFormatDistanceWithOptions; diff --git a/node_modules/date-fns/fp/isAfter.cjs b/node_modules/date-fns/fp/isAfter.cjs new file mode 100644 index 000000000..870031dea --- /dev/null +++ b/node_modules/date-fns/fp/isAfter.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.isAfter = void 0; + +var _index = require("../isAfter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isAfter = (exports.isAfter = (0, _index2.convertToFP)(_index.isAfter, 2)); diff --git a/node_modules/date-fns/fp/isAfter.d.cts b/node_modules/date-fns/fp/isAfter.d.cts new file mode 100644 index 000000000..55081c6fa --- /dev/null +++ b/node_modules/date-fns/fp/isAfter.d.cts @@ -0,0 +1,5 @@ +export declare const isAfter: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isAfter.d.ts b/node_modules/date-fns/fp/isAfter.d.ts new file mode 100644 index 000000000..55081c6fa --- /dev/null +++ b/node_modules/date-fns/fp/isAfter.d.ts @@ -0,0 +1,5 @@ +export declare const isAfter: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isAfter.js b/node_modules/date-fns/fp/isAfter.js new file mode 100644 index 000000000..fab757601 --- /dev/null +++ b/node_modules/date-fns/fp/isAfter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isAfter as fn } from "../isAfter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isAfter = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isAfter; diff --git a/node_modules/date-fns/fp/isBefore.cjs b/node_modules/date-fns/fp/isBefore.cjs new file mode 100644 index 000000000..fe4df1776 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isBefore = void 0; + +var _index = require("../isBefore.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isBefore = (exports.isBefore = (0, _index2.convertToFP)( + _index.isBefore, + 2, +)); diff --git a/node_modules/date-fns/fp/isBefore.d.cts b/node_modules/date-fns/fp/isBefore.d.cts new file mode 100644 index 000000000..45ef0de98 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore.d.cts @@ -0,0 +1,5 @@ +export declare const isBefore: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isBefore.d.ts b/node_modules/date-fns/fp/isBefore.d.ts new file mode 100644 index 000000000..45ef0de98 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore.d.ts @@ -0,0 +1,5 @@ +export declare const isBefore: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isBefore.js b/node_modules/date-fns/fp/isBefore.js new file mode 100644 index 000000000..69667a919 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isBefore as fn } from "../isBefore.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isBefore = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isBefore; diff --git a/node_modules/date-fns/fp/isDate.cjs b/node_modules/date-fns/fp/isDate.cjs new file mode 100644 index 000000000..6789cb780 --- /dev/null +++ b/node_modules/date-fns/fp/isDate.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.isDate = void 0; + +var _index = require("../isDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isDate = (exports.isDate = (0, _index2.convertToFP)(_index.isDate, 1)); diff --git a/node_modules/date-fns/fp/isDate.d.cts b/node_modules/date-fns/fp/isDate.d.cts new file mode 100644 index 000000000..b2d8f5a30 --- /dev/null +++ b/node_modules/date-fns/fp/isDate.d.cts @@ -0,0 +1 @@ +export declare const isDate: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/isDate.d.ts b/node_modules/date-fns/fp/isDate.d.ts new file mode 100644 index 000000000..b2d8f5a30 --- /dev/null +++ b/node_modules/date-fns/fp/isDate.d.ts @@ -0,0 +1 @@ +export declare const isDate: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/isDate.js b/node_modules/date-fns/fp/isDate.js new file mode 100644 index 000000000..8233ec492 --- /dev/null +++ b/node_modules/date-fns/fp/isDate.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isDate as fn } from "../isDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isDate = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isDate; diff --git a/node_modules/date-fns/fp/isEqual.cjs b/node_modules/date-fns/fp/isEqual.cjs new file mode 100644 index 000000000..1795170f5 --- /dev/null +++ b/node_modules/date-fns/fp/isEqual.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.isEqual = void 0; + +var _index = require("../isEqual.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isEqual = (exports.isEqual = (0, _index2.convertToFP)(_index.isEqual, 2)); diff --git a/node_modules/date-fns/fp/isEqual.d.cts b/node_modules/date-fns/fp/isEqual.d.cts new file mode 100644 index 000000000..62c0fe4ad --- /dev/null +++ b/node_modules/date-fns/fp/isEqual.d.cts @@ -0,0 +1,5 @@ +export declare const isEqual: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isEqual.d.ts b/node_modules/date-fns/fp/isEqual.d.ts new file mode 100644 index 000000000..62c0fe4ad --- /dev/null +++ b/node_modules/date-fns/fp/isEqual.d.ts @@ -0,0 +1,5 @@ +export declare const isEqual: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isEqual.js b/node_modules/date-fns/fp/isEqual.js new file mode 100644 index 000000000..c0b7efdbf --- /dev/null +++ b/node_modules/date-fns/fp/isEqual.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isEqual as fn } from "../isEqual.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isEqual = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isEqual; diff --git a/node_modules/date-fns/fp/isExists.cjs b/node_modules/date-fns/fp/isExists.cjs new file mode 100644 index 000000000..1e43bb0dc --- /dev/null +++ b/node_modules/date-fns/fp/isExists.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isExists = void 0; + +var _index = require("../isExists.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isExists = (exports.isExists = (0, _index2.convertToFP)( + _index.isExists, + 3, +)); diff --git a/node_modules/date-fns/fp/isExists.d.cts b/node_modules/date-fns/fp/isExists.d.cts new file mode 100644 index 000000000..0e45dddc1 --- /dev/null +++ b/node_modules/date-fns/fp/isExists.d.cts @@ -0,0 +1,6 @@ +export declare const isExists: import("./types.ts").FPFn3< + boolean, + number, + number, + number +>; diff --git a/node_modules/date-fns/fp/isExists.d.ts b/node_modules/date-fns/fp/isExists.d.ts new file mode 100644 index 000000000..0e45dddc1 --- /dev/null +++ b/node_modules/date-fns/fp/isExists.d.ts @@ -0,0 +1,6 @@ +export declare const isExists: import("./types.ts").FPFn3< + boolean, + number, + number, + number +>; diff --git a/node_modules/date-fns/fp/isExists.js b/node_modules/date-fns/fp/isExists.js new file mode 100644 index 000000000..850c8f88b --- /dev/null +++ b/node_modules/date-fns/fp/isExists.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isExists as fn } from "../isExists.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isExists = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isExists; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth.cjs b/node_modules/date-fns/fp/isFirstDayOfMonth.cjs new file mode 100644 index 000000000..6d8322e30 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isFirstDayOfMonth = void 0; + +var _index = require("../isFirstDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isFirstDayOfMonth = (exports.isFirstDayOfMonth = (0, _index2.convertToFP)( + _index.isFirstDayOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth.d.cts b/node_modules/date-fns/fp/isFirstDayOfMonth.d.cts new file mode 100644 index 000000000..35be77e6e --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const isFirstDayOfMonth: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth.d.ts b/node_modules/date-fns/fp/isFirstDayOfMonth.d.ts new file mode 100644 index 000000000..35be77e6e --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const isFirstDayOfMonth: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth.js b/node_modules/date-fns/fp/isFirstDayOfMonth.js new file mode 100644 index 000000000..65c402088 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isFirstDayOfMonth as fn } from "../isFirstDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isFirstDayOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isFirstDayOfMonth; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.cjs b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.cjs new file mode 100644 index 000000000..37c386108 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isFirstDayOfMonthWithOptions = void 0; + +var _index = require("../isFirstDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isFirstDayOfMonthWithOptions = (exports.isFirstDayOfMonthWithOptions = (0, +_index2.convertToFP)(_index.isFirstDayOfMonth, 2)); diff --git a/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.cts new file mode 100644 index 000000000..5c0fdb304 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isFirstDayOfMonthWithOptions: import("./types.ts").FPFn2< + boolean, + | import("../isFirstDayOfMonth.ts").IsFirstDayOfMonthOptions + | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.ts new file mode 100644 index 000000000..5c0fdb304 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isFirstDayOfMonthWithOptions: import("./types.ts").FPFn2< + boolean, + | import("../isFirstDayOfMonth.ts").IsFirstDayOfMonthOptions + | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.js b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.js new file mode 100644 index 000000000..a598ec21c --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isFirstDayOfMonth as fn } from "../isFirstDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isFirstDayOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isFirstDayOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/isFriday.cjs b/node_modules/date-fns/fp/isFriday.cjs new file mode 100644 index 000000000..dd3a00fdc --- /dev/null +++ b/node_modules/date-fns/fp/isFriday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isFriday = void 0; + +var _index = require("../isFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isFriday = (exports.isFriday = (0, _index2.convertToFP)( + _index.isFriday, + 1, +)); diff --git a/node_modules/date-fns/fp/isFriday.d.cts b/node_modules/date-fns/fp/isFriday.d.cts new file mode 100644 index 000000000..9ecada8e6 --- /dev/null +++ b/node_modules/date-fns/fp/isFriday.d.cts @@ -0,0 +1,4 @@ +export declare const isFriday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFriday.d.ts b/node_modules/date-fns/fp/isFriday.d.ts new file mode 100644 index 000000000..9ecada8e6 --- /dev/null +++ b/node_modules/date-fns/fp/isFriday.d.ts @@ -0,0 +1,4 @@ +export declare const isFriday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFriday.js b/node_modules/date-fns/fp/isFriday.js new file mode 100644 index 000000000..073e1f58d --- /dev/null +++ b/node_modules/date-fns/fp/isFriday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isFriday as fn } from "../isFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isFriday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isFriday; diff --git a/node_modules/date-fns/fp/isFridayWithOptions.cjs b/node_modules/date-fns/fp/isFridayWithOptions.cjs new file mode 100644 index 000000000..904b7c7ac --- /dev/null +++ b/node_modules/date-fns/fp/isFridayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isFridayWithOptions = void 0; + +var _index = require("../isFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isFridayWithOptions = (exports.isFridayWithOptions = (0, +_index2.convertToFP)(_index.isFriday, 2)); diff --git a/node_modules/date-fns/fp/isFridayWithOptions.d.cts b/node_modules/date-fns/fp/isFridayWithOptions.d.cts new file mode 100644 index 000000000..9b1678706 --- /dev/null +++ b/node_modules/date-fns/fp/isFridayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isFridayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isFriday.ts").IsFridayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFridayWithOptions.d.ts b/node_modules/date-fns/fp/isFridayWithOptions.d.ts new file mode 100644 index 000000000..9b1678706 --- /dev/null +++ b/node_modules/date-fns/fp/isFridayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isFridayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isFriday.ts").IsFridayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isFridayWithOptions.js b/node_modules/date-fns/fp/isFridayWithOptions.js new file mode 100644 index 000000000..8a3bf2ad7 --- /dev/null +++ b/node_modules/date-fns/fp/isFridayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isFriday as fn } from "../isFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isFridayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isFridayWithOptions; diff --git a/node_modules/date-fns/fp/isLastDayOfMonth.cjs b/node_modules/date-fns/fp/isLastDayOfMonth.cjs new file mode 100644 index 000000000..9345e0fdd --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isLastDayOfMonth = void 0; + +var _index = require("../isLastDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isLastDayOfMonth = (exports.isLastDayOfMonth = (0, _index2.convertToFP)( + _index.isLastDayOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/isLastDayOfMonth.d.cts b/node_modules/date-fns/fp/isLastDayOfMonth.d.cts new file mode 100644 index 000000000..a6c446286 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const isLastDayOfMonth: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLastDayOfMonth.d.ts b/node_modules/date-fns/fp/isLastDayOfMonth.d.ts new file mode 100644 index 000000000..a6c446286 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const isLastDayOfMonth: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLastDayOfMonth.js b/node_modules/date-fns/fp/isLastDayOfMonth.js new file mode 100644 index 000000000..c746e5300 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isLastDayOfMonth as fn } from "../isLastDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isLastDayOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isLastDayOfMonth; diff --git a/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.cjs b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.cjs new file mode 100644 index 000000000..551f02672 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isLastDayOfMonthWithOptions = void 0; + +var _index = require("../isLastDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isLastDayOfMonthWithOptions = (exports.isLastDayOfMonthWithOptions = (0, +_index2.convertToFP)(_index.isLastDayOfMonth, 2)); diff --git a/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.cts new file mode 100644 index 000000000..bb6ad6405 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isLastDayOfMonthWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isLastDayOfMonth.ts").IsLastDayOfMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.ts new file mode 100644 index 000000000..bb6ad6405 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isLastDayOfMonthWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isLastDayOfMonth.ts").IsLastDayOfMonthOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.js b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.js new file mode 100644 index 000000000..c8ebbe5d9 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isLastDayOfMonth as fn } from "../isLastDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isLastDayOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isLastDayOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/isLeapYear.cjs b/node_modules/date-fns/fp/isLeapYear.cjs new file mode 100644 index 000000000..7c992ff4c --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isLeapYear = void 0; + +var _index = require("../isLeapYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isLeapYear = (exports.isLeapYear = (0, _index2.convertToFP)( + _index.isLeapYear, + 1, +)); diff --git a/node_modules/date-fns/fp/isLeapYear.d.cts b/node_modules/date-fns/fp/isLeapYear.d.cts new file mode 100644 index 000000000..be60c86d6 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear.d.cts @@ -0,0 +1,4 @@ +export declare const isLeapYear: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLeapYear.d.ts b/node_modules/date-fns/fp/isLeapYear.d.ts new file mode 100644 index 000000000..be60c86d6 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear.d.ts @@ -0,0 +1,4 @@ +export declare const isLeapYear: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLeapYear.js b/node_modules/date-fns/fp/isLeapYear.js new file mode 100644 index 000000000..a577969c8 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isLeapYear as fn } from "../isLeapYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isLeapYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isLeapYear; diff --git a/node_modules/date-fns/fp/isLeapYearWithOptions.cjs b/node_modules/date-fns/fp/isLeapYearWithOptions.cjs new file mode 100644 index 000000000..6b1048e94 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isLeapYearWithOptions = void 0; + +var _index = require("../isLeapYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isLeapYearWithOptions = (exports.isLeapYearWithOptions = (0, +_index2.convertToFP)(_index.isLeapYear, 2)); diff --git a/node_modules/date-fns/fp/isLeapYearWithOptions.d.cts b/node_modules/date-fns/fp/isLeapYearWithOptions.d.cts new file mode 100644 index 000000000..1c514f0d4 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isLeapYearWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isLeapYear.ts").IsLeapYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLeapYearWithOptions.d.ts b/node_modules/date-fns/fp/isLeapYearWithOptions.d.ts new file mode 100644 index 000000000..1c514f0d4 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isLeapYearWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isLeapYear.ts").IsLeapYearOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isLeapYearWithOptions.js b/node_modules/date-fns/fp/isLeapYearWithOptions.js new file mode 100644 index 000000000..75a232f29 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isLeapYear as fn } from "../isLeapYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isLeapYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isLeapYearWithOptions; diff --git a/node_modules/date-fns/fp/isMatch.cjs b/node_modules/date-fns/fp/isMatch.cjs new file mode 100644 index 000000000..e0f03a40f --- /dev/null +++ b/node_modules/date-fns/fp/isMatch.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.isMatch = void 0; + +var _index = require("../isMatch.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isMatch = (exports.isMatch = (0, _index2.convertToFP)(_index.isMatch, 2)); diff --git a/node_modules/date-fns/fp/isMatch.d.cts b/node_modules/date-fns/fp/isMatch.d.cts new file mode 100644 index 000000000..163206003 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch.d.cts @@ -0,0 +1,5 @@ +export declare const isMatch: import("./types.ts").FPFn2< + boolean, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMatch.d.ts b/node_modules/date-fns/fp/isMatch.d.ts new file mode 100644 index 000000000..163206003 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch.d.ts @@ -0,0 +1,5 @@ +export declare const isMatch: import("./types.ts").FPFn2< + boolean, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMatch.js b/node_modules/date-fns/fp/isMatch.js new file mode 100644 index 000000000..3103be608 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isMatch as fn } from "../isMatch.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isMatch = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isMatch; diff --git a/node_modules/date-fns/fp/isMatchWithOptions.cjs b/node_modules/date-fns/fp/isMatchWithOptions.cjs new file mode 100644 index 000000000..f614c3f9f --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isMatchWithOptions = void 0; + +var _index = require("../isMatch.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isMatchWithOptions = (exports.isMatchWithOptions = (0, +_index2.convertToFP)(_index.isMatch, 3)); diff --git a/node_modules/date-fns/fp/isMatchWithOptions.d.cts b/node_modules/date-fns/fp/isMatchWithOptions.d.cts new file mode 100644 index 000000000..533a83d27 --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isMatchWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isMatch.ts").IsMatchOptions | undefined, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMatchWithOptions.d.ts b/node_modules/date-fns/fp/isMatchWithOptions.d.ts new file mode 100644 index 000000000..533a83d27 --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isMatchWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isMatch.ts").IsMatchOptions | undefined, + string, + string +>; diff --git a/node_modules/date-fns/fp/isMatchWithOptions.js b/node_modules/date-fns/fp/isMatchWithOptions.js new file mode 100644 index 000000000..516f19213 --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isMatch as fn } from "../isMatch.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isMatchWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isMatchWithOptions; diff --git a/node_modules/date-fns/fp/isMonday.cjs b/node_modules/date-fns/fp/isMonday.cjs new file mode 100644 index 000000000..678d380ba --- /dev/null +++ b/node_modules/date-fns/fp/isMonday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isMonday = void 0; + +var _index = require("../isMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isMonday = (exports.isMonday = (0, _index2.convertToFP)( + _index.isMonday, + 1, +)); diff --git a/node_modules/date-fns/fp/isMonday.d.cts b/node_modules/date-fns/fp/isMonday.d.cts new file mode 100644 index 000000000..2aa882627 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday.d.cts @@ -0,0 +1,4 @@ +export declare const isMonday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isMonday.d.ts b/node_modules/date-fns/fp/isMonday.d.ts new file mode 100644 index 000000000..2aa882627 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday.d.ts @@ -0,0 +1,4 @@ +export declare const isMonday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isMonday.js b/node_modules/date-fns/fp/isMonday.js new file mode 100644 index 000000000..3b6798a27 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isMonday as fn } from "../isMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isMonday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isMonday; diff --git a/node_modules/date-fns/fp/isMondayWithOptions.cjs b/node_modules/date-fns/fp/isMondayWithOptions.cjs new file mode 100644 index 000000000..f677a160f --- /dev/null +++ b/node_modules/date-fns/fp/isMondayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isMondayWithOptions = void 0; + +var _index = require("../isMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isMondayWithOptions = (exports.isMondayWithOptions = (0, +_index2.convertToFP)(_index.isMonday, 2)); diff --git a/node_modules/date-fns/fp/isMondayWithOptions.d.cts b/node_modules/date-fns/fp/isMondayWithOptions.d.cts new file mode 100644 index 000000000..1aa26c05c --- /dev/null +++ b/node_modules/date-fns/fp/isMondayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isMondayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isMonday.ts").IsMondayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isMondayWithOptions.d.ts b/node_modules/date-fns/fp/isMondayWithOptions.d.ts new file mode 100644 index 000000000..1aa26c05c --- /dev/null +++ b/node_modules/date-fns/fp/isMondayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isMondayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isMonday.ts").IsMondayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isMondayWithOptions.js b/node_modules/date-fns/fp/isMondayWithOptions.js new file mode 100644 index 000000000..f7d420a39 --- /dev/null +++ b/node_modules/date-fns/fp/isMondayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isMonday as fn } from "../isMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isMondayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isMondayWithOptions; diff --git a/node_modules/date-fns/fp/isSameDay.cjs b/node_modules/date-fns/fp/isSameDay.cjs new file mode 100644 index 000000000..931e79d64 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameDay = void 0; + +var _index = require("../isSameDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameDay = (exports.isSameDay = (0, _index2.convertToFP)( + _index.isSameDay, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameDay.d.cts b/node_modules/date-fns/fp/isSameDay.d.cts new file mode 100644 index 000000000..072eda7bd --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay.d.cts @@ -0,0 +1,5 @@ +export declare const isSameDay: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameDay.d.ts b/node_modules/date-fns/fp/isSameDay.d.ts new file mode 100644 index 000000000..072eda7bd --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay.d.ts @@ -0,0 +1,5 @@ +export declare const isSameDay: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameDay.js b/node_modules/date-fns/fp/isSameDay.js new file mode 100644 index 000000000..931de2d71 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameDay as fn } from "../isSameDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameDay = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameDay; diff --git a/node_modules/date-fns/fp/isSameDayWithOptions.cjs b/node_modules/date-fns/fp/isSameDayWithOptions.cjs new file mode 100644 index 000000000..37a3f7323 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameDayWithOptions = void 0; + +var _index = require("../isSameDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameDayWithOptions = (exports.isSameDayWithOptions = (0, +_index2.convertToFP)(_index.isSameDay, 3)); diff --git a/node_modules/date-fns/fp/isSameDayWithOptions.d.cts b/node_modules/date-fns/fp/isSameDayWithOptions.d.cts new file mode 100644 index 000000000..5b5420043 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameDayWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameDay.ts").IsSameDayOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameDayWithOptions.d.ts b/node_modules/date-fns/fp/isSameDayWithOptions.d.ts new file mode 100644 index 000000000..5b5420043 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameDayWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameDay.ts").IsSameDayOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameDayWithOptions.js b/node_modules/date-fns/fp/isSameDayWithOptions.js new file mode 100644 index 000000000..23aaedb29 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameDay as fn } from "../isSameDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameDayWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameDayWithOptions; diff --git a/node_modules/date-fns/fp/isSameHour.cjs b/node_modules/date-fns/fp/isSameHour.cjs new file mode 100644 index 000000000..ac3c5a739 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameHour = void 0; + +var _index = require("../isSameHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameHour = (exports.isSameHour = (0, _index2.convertToFP)( + _index.isSameHour, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameHour.d.cts b/node_modules/date-fns/fp/isSameHour.d.cts new file mode 100644 index 000000000..ddac4d209 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour.d.cts @@ -0,0 +1,5 @@ +export declare const isSameHour: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameHour.d.ts b/node_modules/date-fns/fp/isSameHour.d.ts new file mode 100644 index 000000000..ddac4d209 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour.d.ts @@ -0,0 +1,5 @@ +export declare const isSameHour: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameHour.js b/node_modules/date-fns/fp/isSameHour.js new file mode 100644 index 000000000..cdae1e924 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameHour as fn } from "../isSameHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameHour = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameHour; diff --git a/node_modules/date-fns/fp/isSameHourWithOptions.cjs b/node_modules/date-fns/fp/isSameHourWithOptions.cjs new file mode 100644 index 000000000..6aaf2f5e0 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHourWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameHourWithOptions = void 0; + +var _index = require("../isSameHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameHourWithOptions = (exports.isSameHourWithOptions = (0, +_index2.convertToFP)(_index.isSameHour, 3)); diff --git a/node_modules/date-fns/fp/isSameHourWithOptions.d.cts b/node_modules/date-fns/fp/isSameHourWithOptions.d.cts new file mode 100644 index 000000000..93a63dfa5 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHourWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameHourWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameHour.ts").IsSameHourOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameHourWithOptions.d.ts b/node_modules/date-fns/fp/isSameHourWithOptions.d.ts new file mode 100644 index 000000000..93a63dfa5 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHourWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameHourWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameHour.ts").IsSameHourOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameHourWithOptions.js b/node_modules/date-fns/fp/isSameHourWithOptions.js new file mode 100644 index 000000000..3f72c59c0 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHourWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameHour as fn } from "../isSameHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameHourWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameHourWithOptions; diff --git a/node_modules/date-fns/fp/isSameISOWeek.cjs b/node_modules/date-fns/fp/isSameISOWeek.cjs new file mode 100644 index 000000000..6fa18626f --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameISOWeek = void 0; + +var _index = require("../isSameISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameISOWeek = (exports.isSameISOWeek = (0, _index2.convertToFP)( + _index.isSameISOWeek, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameISOWeek.d.cts b/node_modules/date-fns/fp/isSameISOWeek.d.cts new file mode 100644 index 000000000..90cb88f00 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek.d.cts @@ -0,0 +1,5 @@ +export declare const isSameISOWeek: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeek.d.ts b/node_modules/date-fns/fp/isSameISOWeek.d.ts new file mode 100644 index 000000000..90cb88f00 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek.d.ts @@ -0,0 +1,5 @@ +export declare const isSameISOWeek: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeek.js b/node_modules/date-fns/fp/isSameISOWeek.js new file mode 100644 index 000000000..77447c9ae --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameISOWeek as fn } from "../isSameISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameISOWeek = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameISOWeek; diff --git a/node_modules/date-fns/fp/isSameISOWeekWithOptions.cjs b/node_modules/date-fns/fp/isSameISOWeekWithOptions.cjs new file mode 100644 index 000000000..887527464 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameISOWeekWithOptions = void 0; + +var _index = require("../isSameISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameISOWeekWithOptions = (exports.isSameISOWeekWithOptions = (0, +_index2.convertToFP)(_index.isSameISOWeek, 3)); diff --git a/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.cts new file mode 100644 index 000000000..b77c0e6a0 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameISOWeekWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameISOWeek.ts").IsSameISOWeekOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.ts new file mode 100644 index 000000000..b77c0e6a0 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameISOWeekWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameISOWeek.ts").IsSameISOWeekOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekWithOptions.js b/node_modules/date-fns/fp/isSameISOWeekWithOptions.js new file mode 100644 index 000000000..f20d354bd --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameISOWeek as fn } from "../isSameISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameISOWeekWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/isSameISOWeekYear.cjs b/node_modules/date-fns/fp/isSameISOWeekYear.cjs new file mode 100644 index 000000000..918aaece8 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameISOWeekYear = void 0; + +var _index = require("../isSameISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameISOWeekYear = (exports.isSameISOWeekYear = (0, _index2.convertToFP)( + _index.isSameISOWeekYear, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameISOWeekYear.d.cts b/node_modules/date-fns/fp/isSameISOWeekYear.d.cts new file mode 100644 index 000000000..9ee1766c6 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear.d.cts @@ -0,0 +1,5 @@ +export declare const isSameISOWeekYear: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekYear.d.ts b/node_modules/date-fns/fp/isSameISOWeekYear.d.ts new file mode 100644 index 000000000..9ee1766c6 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear.d.ts @@ -0,0 +1,5 @@ +export declare const isSameISOWeekYear: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekYear.js b/node_modules/date-fns/fp/isSameISOWeekYear.js new file mode 100644 index 000000000..69204f166 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameISOWeekYear as fn } from "../isSameISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameISOWeekYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameISOWeekYear; diff --git a/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..cf3655d50 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameISOWeekYearWithOptions = void 0; + +var _index = require("../isSameISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameISOWeekYearWithOptions = (exports.isSameISOWeekYearWithOptions = (0, +_index2.convertToFP)(_index.isSameISOWeekYear, 3)); diff --git a/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..e2ea9169a --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const isSameISOWeekYearWithOptions: import("./types.ts").FPFn3< + boolean, + | import("../isSameISOWeekYear.ts").IsSameISOWeekYearOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..e2ea9169a --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const isSameISOWeekYearWithOptions: import("./types.ts").FPFn3< + boolean, + | import("../isSameISOWeekYear.ts").IsSameISOWeekYearOptions + | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.js b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.js new file mode 100644 index 000000000..932de1330 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameISOWeekYear as fn } from "../isSameISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameISOWeekYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/isSameMinute.cjs b/node_modules/date-fns/fp/isSameMinute.cjs new file mode 100644 index 000000000..8c7da0a71 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameMinute = void 0; + +var _index = require("../isSameMinute.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameMinute = (exports.isSameMinute = (0, _index2.convertToFP)( + _index.isSameMinute, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameMinute.d.cts b/node_modules/date-fns/fp/isSameMinute.d.cts new file mode 100644 index 000000000..fe0d2c02b --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute.d.cts @@ -0,0 +1,5 @@ +export declare const isSameMinute: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMinute.d.ts b/node_modules/date-fns/fp/isSameMinute.d.ts new file mode 100644 index 000000000..fe0d2c02b --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute.d.ts @@ -0,0 +1,5 @@ +export declare const isSameMinute: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMinute.js b/node_modules/date-fns/fp/isSameMinute.js new file mode 100644 index 000000000..9d4780012 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameMinute as fn } from "../isSameMinute.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameMinute = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameMinute; diff --git a/node_modules/date-fns/fp/isSameMonth.cjs b/node_modules/date-fns/fp/isSameMonth.cjs new file mode 100644 index 000000000..a5305fa14 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameMonth = void 0; + +var _index = require("../isSameMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameMonth = (exports.isSameMonth = (0, _index2.convertToFP)( + _index.isSameMonth, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameMonth.d.cts b/node_modules/date-fns/fp/isSameMonth.d.cts new file mode 100644 index 000000000..cc8253cac --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth.d.cts @@ -0,0 +1,5 @@ +export declare const isSameMonth: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMonth.d.ts b/node_modules/date-fns/fp/isSameMonth.d.ts new file mode 100644 index 000000000..cc8253cac --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth.d.ts @@ -0,0 +1,5 @@ +export declare const isSameMonth: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMonth.js b/node_modules/date-fns/fp/isSameMonth.js new file mode 100644 index 000000000..fb6716a5f --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameMonth as fn } from "../isSameMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameMonth = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameMonth; diff --git a/node_modules/date-fns/fp/isSameMonthWithOptions.cjs b/node_modules/date-fns/fp/isSameMonthWithOptions.cjs new file mode 100644 index 000000000..b36df233d --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameMonthWithOptions = void 0; + +var _index = require("../isSameMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameMonthWithOptions = (exports.isSameMonthWithOptions = (0, +_index2.convertToFP)(_index.isSameMonth, 3)); diff --git a/node_modules/date-fns/fp/isSameMonthWithOptions.d.cts b/node_modules/date-fns/fp/isSameMonthWithOptions.d.cts new file mode 100644 index 000000000..733a815e1 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonthWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameMonthWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameMonth.ts").IsSameMonthOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMonthWithOptions.d.ts b/node_modules/date-fns/fp/isSameMonthWithOptions.d.ts new file mode 100644 index 000000000..733a815e1 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonthWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameMonthWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameMonth.ts").IsSameMonthOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameMonthWithOptions.js b/node_modules/date-fns/fp/isSameMonthWithOptions.js new file mode 100644 index 000000000..b170ab3b4 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameMonth as fn } from "../isSameMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameMonthWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameMonthWithOptions; diff --git a/node_modules/date-fns/fp/isSameQuarter.cjs b/node_modules/date-fns/fp/isSameQuarter.cjs new file mode 100644 index 000000000..6c5fbb64d --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameQuarter = void 0; + +var _index = require("../isSameQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameQuarter = (exports.isSameQuarter = (0, _index2.convertToFP)( + _index.isSameQuarter, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameQuarter.d.cts b/node_modules/date-fns/fp/isSameQuarter.d.cts new file mode 100644 index 000000000..680be32cb --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter.d.cts @@ -0,0 +1,5 @@ +export declare const isSameQuarter: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameQuarter.d.ts b/node_modules/date-fns/fp/isSameQuarter.d.ts new file mode 100644 index 000000000..680be32cb --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter.d.ts @@ -0,0 +1,5 @@ +export declare const isSameQuarter: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameQuarter.js b/node_modules/date-fns/fp/isSameQuarter.js new file mode 100644 index 000000000..563304e55 --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameQuarter as fn } from "../isSameQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameQuarter = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameQuarter; diff --git a/node_modules/date-fns/fp/isSameQuarterWithOptions.cjs b/node_modules/date-fns/fp/isSameQuarterWithOptions.cjs new file mode 100644 index 000000000..356cfa585 --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameQuarterWithOptions = void 0; + +var _index = require("../isSameQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameQuarterWithOptions = (exports.isSameQuarterWithOptions = (0, +_index2.convertToFP)(_index.isSameQuarter, 3)); diff --git a/node_modules/date-fns/fp/isSameQuarterWithOptions.d.cts b/node_modules/date-fns/fp/isSameQuarterWithOptions.d.cts new file mode 100644 index 000000000..eef30d16e --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarterWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameQuarterWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameQuarter.ts").IsSameQuarterOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameQuarterWithOptions.d.ts b/node_modules/date-fns/fp/isSameQuarterWithOptions.d.ts new file mode 100644 index 000000000..eef30d16e --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarterWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameQuarterWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameQuarter.ts").IsSameQuarterOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameQuarterWithOptions.js b/node_modules/date-fns/fp/isSameQuarterWithOptions.js new file mode 100644 index 000000000..001421107 --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameQuarter as fn } from "../isSameQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameQuarterWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameQuarterWithOptions; diff --git a/node_modules/date-fns/fp/isSameSecond.cjs b/node_modules/date-fns/fp/isSameSecond.cjs new file mode 100644 index 000000000..144cedbc6 --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameSecond = void 0; + +var _index = require("../isSameSecond.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameSecond = (exports.isSameSecond = (0, _index2.convertToFP)( + _index.isSameSecond, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameSecond.d.cts b/node_modules/date-fns/fp/isSameSecond.d.cts new file mode 100644 index 000000000..aef9f746c --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond.d.cts @@ -0,0 +1,5 @@ +export declare const isSameSecond: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameSecond.d.ts b/node_modules/date-fns/fp/isSameSecond.d.ts new file mode 100644 index 000000000..aef9f746c --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond.d.ts @@ -0,0 +1,5 @@ +export declare const isSameSecond: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameSecond.js b/node_modules/date-fns/fp/isSameSecond.js new file mode 100644 index 000000000..2ae64bdd3 --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameSecond as fn } from "../isSameSecond.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameSecond = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameSecond; diff --git a/node_modules/date-fns/fp/isSameWeek.cjs b/node_modules/date-fns/fp/isSameWeek.cjs new file mode 100644 index 000000000..e1317a72b --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameWeek = void 0; + +var _index = require("../isSameWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameWeek = (exports.isSameWeek = (0, _index2.convertToFP)( + _index.isSameWeek, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameWeek.d.cts b/node_modules/date-fns/fp/isSameWeek.d.cts new file mode 100644 index 000000000..765235301 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek.d.cts @@ -0,0 +1,5 @@ +export declare const isSameWeek: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeek.d.ts b/node_modules/date-fns/fp/isSameWeek.d.ts new file mode 100644 index 000000000..765235301 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek.d.ts @@ -0,0 +1,5 @@ +export declare const isSameWeek: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeek.js b/node_modules/date-fns/fp/isSameWeek.js new file mode 100644 index 000000000..1657081b1 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameWeek as fn } from "../isSameWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameWeek = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameWeek; diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions.cjs b/node_modules/date-fns/fp/isSameWeekWithOptions.cjs new file mode 100644 index 000000000..1cf0d22da --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameWeekWithOptions = void 0; + +var _index = require("../isSameWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameWeekWithOptions = (exports.isSameWeekWithOptions = (0, +_index2.convertToFP)(_index.isSameWeek, 3)); diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions.d.cts b/node_modules/date-fns/fp/isSameWeekWithOptions.d.cts new file mode 100644 index 000000000..4f0e67df8 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameWeekWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameWeek.ts").IsSameWeekOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions.d.ts b/node_modules/date-fns/fp/isSameWeekWithOptions.d.ts new file mode 100644 index 000000000..4f0e67df8 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameWeekWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameWeek.ts").IsSameWeekOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions.js b/node_modules/date-fns/fp/isSameWeekWithOptions.js new file mode 100644 index 000000000..63e4072fd --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameWeek as fn } from "../isSameWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameWeekWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameWeekWithOptions; diff --git a/node_modules/date-fns/fp/isSameYear.cjs b/node_modules/date-fns/fp/isSameYear.cjs new file mode 100644 index 000000000..e7b332290 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSameYear = void 0; + +var _index = require("../isSameYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameYear = (exports.isSameYear = (0, _index2.convertToFP)( + _index.isSameYear, + 2, +)); diff --git a/node_modules/date-fns/fp/isSameYear.d.cts b/node_modules/date-fns/fp/isSameYear.d.cts new file mode 100644 index 000000000..7cf970f29 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear.d.cts @@ -0,0 +1,5 @@ +export declare const isSameYear: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameYear.d.ts b/node_modules/date-fns/fp/isSameYear.d.ts new file mode 100644 index 000000000..7cf970f29 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear.d.ts @@ -0,0 +1,5 @@ +export declare const isSameYear: import("./types.ts").FPFn2< + boolean, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameYear.js b/node_modules/date-fns/fp/isSameYear.js new file mode 100644 index 000000000..3632a0397 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameYear as fn } from "../isSameYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSameYear; diff --git a/node_modules/date-fns/fp/isSameYearWithOptions.cjs b/node_modules/date-fns/fp/isSameYearWithOptions.cjs new file mode 100644 index 000000000..c9509ba8d --- /dev/null +++ b/node_modules/date-fns/fp/isSameYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSameYearWithOptions = void 0; + +var _index = require("../isSameYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSameYearWithOptions = (exports.isSameYearWithOptions = (0, +_index2.convertToFP)(_index.isSameYear, 3)); diff --git a/node_modules/date-fns/fp/isSameYearWithOptions.d.cts b/node_modules/date-fns/fp/isSameYearWithOptions.d.cts new file mode 100644 index 000000000..bec625f81 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const isSameYearWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameYear.ts").IsSameYearOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameYearWithOptions.d.ts b/node_modules/date-fns/fp/isSameYearWithOptions.d.ts new file mode 100644 index 000000000..bec625f81 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const isSameYearWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isSameYear.ts").IsSameYearOptions | undefined, + string | number | Date, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSameYearWithOptions.js b/node_modules/date-fns/fp/isSameYearWithOptions.js new file mode 100644 index 000000000..cc0448722 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSameYear as fn } from "../isSameYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSameYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isSameYearWithOptions; diff --git a/node_modules/date-fns/fp/isSaturday.cjs b/node_modules/date-fns/fp/isSaturday.cjs new file mode 100644 index 000000000..4d99874e8 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSaturday = void 0; + +var _index = require("../isSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSaturday = (exports.isSaturday = (0, _index2.convertToFP)( + _index.isSaturday, + 1, +)); diff --git a/node_modules/date-fns/fp/isSaturday.d.cts b/node_modules/date-fns/fp/isSaturday.d.cts new file mode 100644 index 000000000..41e1e120a --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday.d.cts @@ -0,0 +1,4 @@ +export declare const isSaturday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSaturday.d.ts b/node_modules/date-fns/fp/isSaturday.d.ts new file mode 100644 index 000000000..41e1e120a --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday.d.ts @@ -0,0 +1,4 @@ +export declare const isSaturday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSaturday.js b/node_modules/date-fns/fp/isSaturday.js new file mode 100644 index 000000000..803639984 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSaturday as fn } from "../isSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSaturday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isSaturday; diff --git a/node_modules/date-fns/fp/isSaturdayWithOptions.cjs b/node_modules/date-fns/fp/isSaturdayWithOptions.cjs new file mode 100644 index 000000000..71b138fac --- /dev/null +++ b/node_modules/date-fns/fp/isSaturdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSaturdayWithOptions = void 0; + +var _index = require("../isSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSaturdayWithOptions = (exports.isSaturdayWithOptions = (0, +_index2.convertToFP)(_index.isSaturday, 2)); diff --git a/node_modules/date-fns/fp/isSaturdayWithOptions.d.cts b/node_modules/date-fns/fp/isSaturdayWithOptions.d.cts new file mode 100644 index 000000000..3bf3063d1 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isSaturdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isSaturday.ts").IsSaturdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSaturdayWithOptions.d.ts b/node_modules/date-fns/fp/isSaturdayWithOptions.d.ts new file mode 100644 index 000000000..3bf3063d1 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isSaturdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isSaturday.ts").IsSaturdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSaturdayWithOptions.js b/node_modules/date-fns/fp/isSaturdayWithOptions.js new file mode 100644 index 000000000..a62514b21 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSaturday as fn } from "../isSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSaturdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSaturdayWithOptions; diff --git a/node_modules/date-fns/fp/isSunday.cjs b/node_modules/date-fns/fp/isSunday.cjs new file mode 100644 index 000000000..22aac3b2b --- /dev/null +++ b/node_modules/date-fns/fp/isSunday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isSunday = void 0; + +var _index = require("../isSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSunday = (exports.isSunday = (0, _index2.convertToFP)( + _index.isSunday, + 1, +)); diff --git a/node_modules/date-fns/fp/isSunday.d.cts b/node_modules/date-fns/fp/isSunday.d.cts new file mode 100644 index 000000000..6e98738db --- /dev/null +++ b/node_modules/date-fns/fp/isSunday.d.cts @@ -0,0 +1,4 @@ +export declare const isSunday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSunday.d.ts b/node_modules/date-fns/fp/isSunday.d.ts new file mode 100644 index 000000000..6e98738db --- /dev/null +++ b/node_modules/date-fns/fp/isSunday.d.ts @@ -0,0 +1,4 @@ +export declare const isSunday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSunday.js b/node_modules/date-fns/fp/isSunday.js new file mode 100644 index 000000000..8b8b11439 --- /dev/null +++ b/node_modules/date-fns/fp/isSunday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSunday as fn } from "../isSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSunday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isSunday; diff --git a/node_modules/date-fns/fp/isSundayWithOptions.cjs b/node_modules/date-fns/fp/isSundayWithOptions.cjs new file mode 100644 index 000000000..f8697c827 --- /dev/null +++ b/node_modules/date-fns/fp/isSundayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isSundayWithOptions = void 0; + +var _index = require("../isSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isSundayWithOptions = (exports.isSundayWithOptions = (0, +_index2.convertToFP)(_index.isSunday, 2)); diff --git a/node_modules/date-fns/fp/isSundayWithOptions.d.cts b/node_modules/date-fns/fp/isSundayWithOptions.d.cts new file mode 100644 index 000000000..5a598ab8a --- /dev/null +++ b/node_modules/date-fns/fp/isSundayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isSundayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isSunday.ts").IsSundayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSundayWithOptions.d.ts b/node_modules/date-fns/fp/isSundayWithOptions.d.ts new file mode 100644 index 000000000..5a598ab8a --- /dev/null +++ b/node_modules/date-fns/fp/isSundayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isSundayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isSunday.ts").IsSundayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isSundayWithOptions.js b/node_modules/date-fns/fp/isSundayWithOptions.js new file mode 100644 index 000000000..669554dc0 --- /dev/null +++ b/node_modules/date-fns/fp/isSundayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isSunday as fn } from "../isSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isSundayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isSundayWithOptions; diff --git a/node_modules/date-fns/fp/isThursday.cjs b/node_modules/date-fns/fp/isThursday.cjs new file mode 100644 index 000000000..9342387e7 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isThursday = void 0; + +var _index = require("../isThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isThursday = (exports.isThursday = (0, _index2.convertToFP)( + _index.isThursday, + 1, +)); diff --git a/node_modules/date-fns/fp/isThursday.d.cts b/node_modules/date-fns/fp/isThursday.d.cts new file mode 100644 index 000000000..429f97dd5 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday.d.cts @@ -0,0 +1,4 @@ +export declare const isThursday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isThursday.d.ts b/node_modules/date-fns/fp/isThursday.d.ts new file mode 100644 index 000000000..429f97dd5 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday.d.ts @@ -0,0 +1,4 @@ +export declare const isThursday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isThursday.js b/node_modules/date-fns/fp/isThursday.js new file mode 100644 index 000000000..ad062a7a2 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isThursday as fn } from "../isThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isThursday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isThursday; diff --git a/node_modules/date-fns/fp/isThursdayWithOptions.cjs b/node_modules/date-fns/fp/isThursdayWithOptions.cjs new file mode 100644 index 000000000..10cb4ffcf --- /dev/null +++ b/node_modules/date-fns/fp/isThursdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isThursdayWithOptions = void 0; + +var _index = require("../isThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isThursdayWithOptions = (exports.isThursdayWithOptions = (0, +_index2.convertToFP)(_index.isThursday, 2)); diff --git a/node_modules/date-fns/fp/isThursdayWithOptions.d.cts b/node_modules/date-fns/fp/isThursdayWithOptions.d.cts new file mode 100644 index 000000000..be70442aa --- /dev/null +++ b/node_modules/date-fns/fp/isThursdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isThursdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isThursday.ts").IsThursdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isThursdayWithOptions.d.ts b/node_modules/date-fns/fp/isThursdayWithOptions.d.ts new file mode 100644 index 000000000..be70442aa --- /dev/null +++ b/node_modules/date-fns/fp/isThursdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isThursdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isThursday.ts").IsThursdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isThursdayWithOptions.js b/node_modules/date-fns/fp/isThursdayWithOptions.js new file mode 100644 index 000000000..ebafc5a3f --- /dev/null +++ b/node_modules/date-fns/fp/isThursdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isThursday as fn } from "../isThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isThursdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isThursdayWithOptions; diff --git a/node_modules/date-fns/fp/isTuesday.cjs b/node_modules/date-fns/fp/isTuesday.cjs new file mode 100644 index 000000000..3ea1c3b48 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isTuesday = void 0; + +var _index = require("../isTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isTuesday = (exports.isTuesday = (0, _index2.convertToFP)( + _index.isTuesday, + 1, +)); diff --git a/node_modules/date-fns/fp/isTuesday.d.cts b/node_modules/date-fns/fp/isTuesday.d.cts new file mode 100644 index 000000000..44d14011c --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday.d.cts @@ -0,0 +1,4 @@ +export declare const isTuesday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isTuesday.d.ts b/node_modules/date-fns/fp/isTuesday.d.ts new file mode 100644 index 000000000..44d14011c --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday.d.ts @@ -0,0 +1,4 @@ +export declare const isTuesday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isTuesday.js b/node_modules/date-fns/fp/isTuesday.js new file mode 100644 index 000000000..35aff5c1e --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isTuesday as fn } from "../isTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isTuesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isTuesday; diff --git a/node_modules/date-fns/fp/isTuesdayWithOptions.cjs b/node_modules/date-fns/fp/isTuesdayWithOptions.cjs new file mode 100644 index 000000000..7db918b01 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isTuesdayWithOptions = void 0; + +var _index = require("../isTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isTuesdayWithOptions = (exports.isTuesdayWithOptions = (0, +_index2.convertToFP)(_index.isTuesday, 2)); diff --git a/node_modules/date-fns/fp/isTuesdayWithOptions.d.cts b/node_modules/date-fns/fp/isTuesdayWithOptions.d.cts new file mode 100644 index 000000000..c70343699 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isTuesdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isTuesday.ts").IsTuesdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isTuesdayWithOptions.d.ts b/node_modules/date-fns/fp/isTuesdayWithOptions.d.ts new file mode 100644 index 000000000..c70343699 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isTuesdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isTuesday.ts").IsTuesdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isTuesdayWithOptions.js b/node_modules/date-fns/fp/isTuesdayWithOptions.js new file mode 100644 index 000000000..ad8ae6225 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isTuesday as fn } from "../isTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isTuesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isTuesdayWithOptions; diff --git a/node_modules/date-fns/fp/isValid.cjs b/node_modules/date-fns/fp/isValid.cjs new file mode 100644 index 000000000..5dbfc8d4c --- /dev/null +++ b/node_modules/date-fns/fp/isValid.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.isValid = void 0; + +var _index = require("../isValid.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isValid = (exports.isValid = (0, _index2.convertToFP)(_index.isValid, 1)); diff --git a/node_modules/date-fns/fp/isValid.d.cts b/node_modules/date-fns/fp/isValid.d.cts new file mode 100644 index 000000000..320b14c2e --- /dev/null +++ b/node_modules/date-fns/fp/isValid.d.cts @@ -0,0 +1 @@ +export declare const isValid: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/isValid.d.ts b/node_modules/date-fns/fp/isValid.d.ts new file mode 100644 index 000000000..320b14c2e --- /dev/null +++ b/node_modules/date-fns/fp/isValid.d.ts @@ -0,0 +1 @@ +export declare const isValid: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/isValid.js b/node_modules/date-fns/fp/isValid.js new file mode 100644 index 000000000..2d2501b42 --- /dev/null +++ b/node_modules/date-fns/fp/isValid.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isValid as fn } from "../isValid.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isValid = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isValid; diff --git a/node_modules/date-fns/fp/isWednesday.cjs b/node_modules/date-fns/fp/isWednesday.cjs new file mode 100644 index 000000000..201f7f450 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isWednesday = void 0; + +var _index = require("../isWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWednesday = (exports.isWednesday = (0, _index2.convertToFP)( + _index.isWednesday, + 1, +)); diff --git a/node_modules/date-fns/fp/isWednesday.d.cts b/node_modules/date-fns/fp/isWednesday.d.cts new file mode 100644 index 000000000..567ada7fc --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday.d.cts @@ -0,0 +1,4 @@ +export declare const isWednesday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWednesday.d.ts b/node_modules/date-fns/fp/isWednesday.d.ts new file mode 100644 index 000000000..567ada7fc --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday.d.ts @@ -0,0 +1,4 @@ +export declare const isWednesday: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWednesday.js b/node_modules/date-fns/fp/isWednesday.js new file mode 100644 index 000000000..c047eedbd --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWednesday as fn } from "../isWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWednesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isWednesday; diff --git a/node_modules/date-fns/fp/isWednesdayWithOptions.cjs b/node_modules/date-fns/fp/isWednesdayWithOptions.cjs new file mode 100644 index 000000000..121b15d3d --- /dev/null +++ b/node_modules/date-fns/fp/isWednesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isWednesdayWithOptions = void 0; + +var _index = require("../isWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWednesdayWithOptions = (exports.isWednesdayWithOptions = (0, +_index2.convertToFP)(_index.isWednesday, 2)); diff --git a/node_modules/date-fns/fp/isWednesdayWithOptions.d.cts b/node_modules/date-fns/fp/isWednesdayWithOptions.d.cts new file mode 100644 index 000000000..a62a03093 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isWednesdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isWednesday.ts").IsWednesdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWednesdayWithOptions.d.ts b/node_modules/date-fns/fp/isWednesdayWithOptions.d.ts new file mode 100644 index 000000000..a62a03093 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isWednesdayWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isWednesday.ts").IsWednesdayOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWednesdayWithOptions.js b/node_modules/date-fns/fp/isWednesdayWithOptions.js new file mode 100644 index 000000000..a0aa7b9ee --- /dev/null +++ b/node_modules/date-fns/fp/isWednesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWednesday as fn } from "../isWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWednesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isWednesdayWithOptions; diff --git a/node_modules/date-fns/fp/isWeekend.cjs b/node_modules/date-fns/fp/isWeekend.cjs new file mode 100644 index 000000000..e1c707289 --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isWeekend = void 0; + +var _index = require("../isWeekend.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWeekend = (exports.isWeekend = (0, _index2.convertToFP)( + _index.isWeekend, + 1, +)); diff --git a/node_modules/date-fns/fp/isWeekend.d.cts b/node_modules/date-fns/fp/isWeekend.d.cts new file mode 100644 index 000000000..214e802ce --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend.d.cts @@ -0,0 +1,4 @@ +export declare const isWeekend: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWeekend.d.ts b/node_modules/date-fns/fp/isWeekend.d.ts new file mode 100644 index 000000000..214e802ce --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend.d.ts @@ -0,0 +1,4 @@ +export declare const isWeekend: import("./types.ts").FPFn1< + boolean, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWeekend.js b/node_modules/date-fns/fp/isWeekend.js new file mode 100644 index 000000000..f21687c0a --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWeekend as fn } from "../isWeekend.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWeekend = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default isWeekend; diff --git a/node_modules/date-fns/fp/isWeekendWithOptions.cjs b/node_modules/date-fns/fp/isWeekendWithOptions.cjs new file mode 100644 index 000000000..19bb13211 --- /dev/null +++ b/node_modules/date-fns/fp/isWeekendWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isWeekendWithOptions = void 0; + +var _index = require("../isWeekend.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWeekendWithOptions = (exports.isWeekendWithOptions = (0, +_index2.convertToFP)(_index.isWeekend, 2)); diff --git a/node_modules/date-fns/fp/isWeekendWithOptions.d.cts b/node_modules/date-fns/fp/isWeekendWithOptions.d.cts new file mode 100644 index 000000000..0414d4eaf --- /dev/null +++ b/node_modules/date-fns/fp/isWeekendWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const isWeekendWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isWeekend.ts").IsWeekendOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWeekendWithOptions.d.ts b/node_modules/date-fns/fp/isWeekendWithOptions.d.ts new file mode 100644 index 000000000..0414d4eaf --- /dev/null +++ b/node_modules/date-fns/fp/isWeekendWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const isWeekendWithOptions: import("./types.ts").FPFn2< + boolean, + import("../isWeekend.ts").IsWeekendOptions | undefined, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWeekendWithOptions.js b/node_modules/date-fns/fp/isWeekendWithOptions.js new file mode 100644 index 000000000..ace9604c2 --- /dev/null +++ b/node_modules/date-fns/fp/isWeekendWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWeekend as fn } from "../isWeekend.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWeekendWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isWeekendWithOptions; diff --git a/node_modules/date-fns/fp/isWithinInterval.cjs b/node_modules/date-fns/fp/isWithinInterval.cjs new file mode 100644 index 000000000..91fa4209e --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.isWithinInterval = void 0; + +var _index = require("../isWithinInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWithinInterval = (exports.isWithinInterval = (0, _index2.convertToFP)( + _index.isWithinInterval, + 2, +)); diff --git a/node_modules/date-fns/fp/isWithinInterval.d.cts b/node_modules/date-fns/fp/isWithinInterval.d.cts new file mode 100644 index 000000000..66ee16553 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval.d.cts @@ -0,0 +1,8 @@ +export declare const isWithinInterval: import("./types.ts").FPFn2< + boolean, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWithinInterval.d.ts b/node_modules/date-fns/fp/isWithinInterval.d.ts new file mode 100644 index 000000000..66ee16553 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval.d.ts @@ -0,0 +1,8 @@ +export declare const isWithinInterval: import("./types.ts").FPFn2< + boolean, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWithinInterval.js b/node_modules/date-fns/fp/isWithinInterval.js new file mode 100644 index 000000000..2759bd041 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWithinInterval as fn } from "../isWithinInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWithinInterval = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default isWithinInterval; diff --git a/node_modules/date-fns/fp/isWithinIntervalWithOptions.cjs b/node_modules/date-fns/fp/isWithinIntervalWithOptions.cjs new file mode 100644 index 000000000..c7a36442c --- /dev/null +++ b/node_modules/date-fns/fp/isWithinIntervalWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.isWithinIntervalWithOptions = void 0; + +var _index = require("../isWithinInterval.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const isWithinIntervalWithOptions = (exports.isWithinIntervalWithOptions = (0, +_index2.convertToFP)(_index.isWithinInterval, 3)); diff --git a/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.cts b/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.cts new file mode 100644 index 000000000..8226613f4 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.cts @@ -0,0 +1,9 @@ +export declare const isWithinIntervalWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isWithinInterval.ts").IsWithinIntervalOptions | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.ts b/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.ts new file mode 100644 index 000000000..8226613f4 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinIntervalWithOptions.d.ts @@ -0,0 +1,9 @@ +export declare const isWithinIntervalWithOptions: import("./types.ts").FPFn3< + boolean, + import("../isWithinInterval.ts").IsWithinIntervalOptions | undefined, + import("../fp.ts").Interval< + import("../fp.ts").DateArg, + import("../fp.ts").DateArg + >, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/isWithinIntervalWithOptions.js b/node_modules/date-fns/fp/isWithinIntervalWithOptions.js new file mode 100644 index 000000000..2135024eb --- /dev/null +++ b/node_modules/date-fns/fp/isWithinIntervalWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { isWithinInterval as fn } from "../isWithinInterval.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const isWithinIntervalWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default isWithinIntervalWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfDecade.cjs b/node_modules/date-fns/fp/lastDayOfDecade.cjs new file mode 100644 index 000000000..f4bc415f5 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfDecade = void 0; + +var _index = require("../lastDayOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfDecade = (exports.lastDayOfDecade = (0, _index2.convertToFP)( + _index.lastDayOfDecade, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfDecade.d.cts b/node_modules/date-fns/fp/lastDayOfDecade.d.cts new file mode 100644 index 000000000..c328c2009 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfDecade.d.ts b/node_modules/date-fns/fp/lastDayOfDecade.d.ts new file mode 100644 index 000000000..c328c2009 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfDecade.js b/node_modules/date-fns/fp/lastDayOfDecade.js new file mode 100644 index 000000000..eec0303f8 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfDecade as fn } from "../lastDayOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfDecade = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfDecade; diff --git a/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.cjs new file mode 100644 index 000000000..192de3b73 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfDecadeWithOptions = void 0; + +var _index = require("../lastDayOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfDecadeWithOptions = (exports.lastDayOfDecadeWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfDecade, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.cts new file mode 100644 index 000000000..1a5c4ecba --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const lastDayOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfDecade.ts").LastDayOfDecadeOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.ts new file mode 100644 index 000000000..1a5c4ecba --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const lastDayOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfDecade.ts").LastDayOfDecadeOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.js b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.js new file mode 100644 index 000000000..67f73e552 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecadeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfDecade as fn } from "../lastDayOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfDecadeWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfDecadeWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek.cjs b/node_modules/date-fns/fp/lastDayOfISOWeek.cjs new file mode 100644 index 000000000..094740edd --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfISOWeek = void 0; + +var _index = require("../lastDayOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfISOWeek = (exports.lastDayOfISOWeek = (0, _index2.convertToFP)( + _index.lastDayOfISOWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek.d.cts b/node_modules/date-fns/fp/lastDayOfISOWeek.d.cts new file mode 100644 index 000000000..62844d229 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeek.d.ts new file mode 100644 index 000000000..62844d229 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek.js b/node_modules/date-fns/fp/lastDayOfISOWeek.js new file mode 100644 index 000000000..80bd5a5b5 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfISOWeek as fn } from "../lastDayOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfISOWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfISOWeek; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.cjs new file mode 100644 index 000000000..dde6bbb34 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfISOWeekWithOptions = void 0; + +var _index = require("../lastDayOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfISOWeekWithOptions = (exports.lastDayOfISOWeekWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfISOWeek, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.cts new file mode 100644 index 000000000..7972a1ed8 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const lastDayOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfISOWeek.ts").LastDayOfISOWeekOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.ts new file mode 100644 index 000000000..7972a1ed8 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const lastDayOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfISOWeek.ts").LastDayOfISOWeekOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.js b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.js new file mode 100644 index 000000000..bf60b0db4 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfISOWeek as fn } from "../lastDayOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfISOWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear.cjs b/node_modules/date-fns/fp/lastDayOfISOWeekYear.cjs new file mode 100644 index 000000000..ddc3c6bf8 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfISOWeekYear = void 0; + +var _index = require("../lastDayOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfISOWeekYear = (exports.lastDayOfISOWeekYear = (0, +_index2.convertToFP)(_index.lastDayOfISOWeekYear, 1)); diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.cts b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.cts new file mode 100644 index 000000000..5f0b7314d --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.ts new file mode 100644 index 000000000..5f0b7314d --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear.js b/node_modules/date-fns/fp/lastDayOfISOWeekYear.js new file mode 100644 index 000000000..a1417ce8c --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfISOWeekYear as fn } from "../lastDayOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfISOWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfISOWeekYear; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..cc5d1144b --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.lastDayOfISOWeekYearWithOptions = void 0; + +var _index = require("../lastDayOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfISOWeekYearWithOptions = + (exports.lastDayOfISOWeekYearWithOptions = (0, _index2.convertToFP)( + _index.lastDayOfISOWeekYear, + 2, + )); diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..8b5ef25f1 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const lastDayOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfISOWeekYear.ts").LastDayOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..8b5ef25f1 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const lastDayOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfISOWeekYear.ts").LastDayOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.js b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.js new file mode 100644 index 000000000..a589c623b --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfISOWeekYear as fn } from "../lastDayOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfISOWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfMonth.cjs b/node_modules/date-fns/fp/lastDayOfMonth.cjs new file mode 100644 index 000000000..f8dbfd367 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfMonth = void 0; + +var _index = require("../lastDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfMonth = (exports.lastDayOfMonth = (0, _index2.convertToFP)( + _index.lastDayOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfMonth.d.cts b/node_modules/date-fns/fp/lastDayOfMonth.d.cts new file mode 100644 index 000000000..38d504754 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfMonth.d.ts b/node_modules/date-fns/fp/lastDayOfMonth.d.ts new file mode 100644 index 000000000..38d504754 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfMonth.js b/node_modules/date-fns/fp/lastDayOfMonth.js new file mode 100644 index 000000000..776c938c1 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfMonth as fn } from "../lastDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfMonth; diff --git a/node_modules/date-fns/fp/lastDayOfMonthWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.cjs new file mode 100644 index 000000000..7a9094bab --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfMonthWithOptions = void 0; + +var _index = require("../lastDayOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfMonthWithOptions = (exports.lastDayOfMonthWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfMonth, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.cts new file mode 100644 index 000000000..51f68c75a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const lastDayOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfMonth.ts").LastDayOfMonthOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.ts new file mode 100644 index 000000000..51f68c75a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const lastDayOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfMonth.ts").LastDayOfMonthOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfMonthWithOptions.js b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.js new file mode 100644 index 000000000..368c1b051 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfMonth as fn } from "../lastDayOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfQuarter.cjs b/node_modules/date-fns/fp/lastDayOfQuarter.cjs new file mode 100644 index 000000000..325474e2e --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfQuarter = void 0; + +var _index = require("../lastDayOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfQuarter = (exports.lastDayOfQuarter = (0, _index2.convertToFP)( + _index.lastDayOfQuarter, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfQuarter.d.cts b/node_modules/date-fns/fp/lastDayOfQuarter.d.cts new file mode 100644 index 000000000..16d869f84 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfQuarter.d.ts b/node_modules/date-fns/fp/lastDayOfQuarter.d.ts new file mode 100644 index 000000000..16d869f84 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfQuarter.js b/node_modules/date-fns/fp/lastDayOfQuarter.js new file mode 100644 index 000000000..0b102b6d0 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfQuarter as fn } from "../lastDayOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfQuarter = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfQuarter; diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.cjs new file mode 100644 index 000000000..c8b26a8a2 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfQuarterWithOptions = void 0; + +var _index = require("../lastDayOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfQuarterWithOptions = (exports.lastDayOfQuarterWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfQuarter, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.cts new file mode 100644 index 000000000..81f88a045 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const lastDayOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfQuarter.ts").LastDayOfQuarterOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.ts new file mode 100644 index 000000000..81f88a045 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const lastDayOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + | import("../lastDayOfQuarter.ts").LastDayOfQuarterOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.js b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.js new file mode 100644 index 000000000..6dbc8031c --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfQuarter as fn } from "../lastDayOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfQuarterWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfQuarterWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfWeek.cjs b/node_modules/date-fns/fp/lastDayOfWeek.cjs new file mode 100644 index 000000000..f899899f4 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfWeek = void 0; + +var _index = require("../lastDayOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfWeek = (exports.lastDayOfWeek = (0, _index2.convertToFP)( + _index.lastDayOfWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfWeek.d.cts b/node_modules/date-fns/fp/lastDayOfWeek.d.cts new file mode 100644 index 000000000..22d22813d --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeek.d.ts b/node_modules/date-fns/fp/lastDayOfWeek.d.ts new file mode 100644 index 000000000..22d22813d --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeek.js b/node_modules/date-fns/fp/lastDayOfWeek.js new file mode 100644 index 000000000..455094d36 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfWeek as fn } from "../lastDayOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfWeek; diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.cjs new file mode 100644 index 000000000..8aeb60c12 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfWeekWithOptions = void 0; + +var _index = require("../lastDayOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfWeekWithOptions = (exports.lastDayOfWeekWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfWeek, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.cts new file mode 100644 index 000000000..c7120f44f --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const lastDayOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../lastDayOfWeek.ts").LastDayOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.ts new file mode 100644 index 000000000..c7120f44f --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const lastDayOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../lastDayOfWeek.ts").LastDayOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions.js b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.js new file mode 100644 index 000000000..70988e5d1 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfWeek as fn } from "../lastDayOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfWeekWithOptions; diff --git a/node_modules/date-fns/fp/lastDayOfYear.cjs b/node_modules/date-fns/fp/lastDayOfYear.cjs new file mode 100644 index 000000000..663a78bfc --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lastDayOfYear = void 0; + +var _index = require("../lastDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfYear = (exports.lastDayOfYear = (0, _index2.convertToFP)( + _index.lastDayOfYear, + 1, +)); diff --git a/node_modules/date-fns/fp/lastDayOfYear.d.cts b/node_modules/date-fns/fp/lastDayOfYear.d.cts new file mode 100644 index 000000000..a194a1850 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear.d.cts @@ -0,0 +1,4 @@ +export declare const lastDayOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfYear.d.ts b/node_modules/date-fns/fp/lastDayOfYear.d.ts new file mode 100644 index 000000000..a194a1850 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear.d.ts @@ -0,0 +1,4 @@ +export declare const lastDayOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfYear.js b/node_modules/date-fns/fp/lastDayOfYear.js new file mode 100644 index 000000000..3a0d83e11 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfYear as fn } from "../lastDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default lastDayOfYear; diff --git a/node_modules/date-fns/fp/lastDayOfYearWithOptions.cjs b/node_modules/date-fns/fp/lastDayOfYearWithOptions.cjs new file mode 100644 index 000000000..a92c404c7 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.lastDayOfYearWithOptions = void 0; + +var _index = require("../lastDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lastDayOfYearWithOptions = (exports.lastDayOfYearWithOptions = (0, +_index2.convertToFP)(_index.lastDayOfYear, 2)); diff --git a/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.cts b/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.cts new file mode 100644 index 000000000..17a85c03a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const lastDayOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../lastDayOfYear.ts").LastDayOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.ts b/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.ts new file mode 100644 index 000000000..17a85c03a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const lastDayOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../lastDayOfYear.ts").LastDayOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/lastDayOfYearWithOptions.js b/node_modules/date-fns/fp/lastDayOfYearWithOptions.js new file mode 100644 index 000000000..ae41e7587 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lastDayOfYear as fn } from "../lastDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lastDayOfYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lastDayOfYearWithOptions; diff --git a/node_modules/date-fns/fp/lightFormat.cjs b/node_modules/date-fns/fp/lightFormat.cjs new file mode 100644 index 000000000..4e9964bc9 --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.lightFormat = void 0; + +var _index = require("../lightFormat.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const lightFormat = (exports.lightFormat = (0, _index2.convertToFP)( + _index.lightFormat, + 2, +)); diff --git a/node_modules/date-fns/fp/lightFormat.d.cts b/node_modules/date-fns/fp/lightFormat.d.cts new file mode 100644 index 000000000..cd35ba9c1 --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat.d.cts @@ -0,0 +1,5 @@ +export declare const lightFormat: import("./types.ts").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lightFormat.d.ts b/node_modules/date-fns/fp/lightFormat.d.ts new file mode 100644 index 000000000..cd35ba9c1 --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat.d.ts @@ -0,0 +1,5 @@ +export declare const lightFormat: import("./types.ts").FPFn2< + string, + string, + string | number | Date +>; diff --git a/node_modules/date-fns/fp/lightFormat.js b/node_modules/date-fns/fp/lightFormat.js new file mode 100644 index 000000000..2acdc6f0b --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { lightFormat as fn } from "../lightFormat.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const lightFormat = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default lightFormat; diff --git a/node_modules/date-fns/fp/max.cjs b/node_modules/date-fns/fp/max.cjs new file mode 100644 index 000000000..7bc4fe1f9 --- /dev/null +++ b/node_modules/date-fns/fp/max.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.max = void 0; + +var _index = require("../max.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const max = (exports.max = (0, _index2.convertToFP)(_index.max, 1)); diff --git a/node_modules/date-fns/fp/max.d.cts b/node_modules/date-fns/fp/max.d.cts new file mode 100644 index 000000000..150f37ab8 --- /dev/null +++ b/node_modules/date-fns/fp/max.d.cts @@ -0,0 +1,4 @@ +export declare const max: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/max.d.ts b/node_modules/date-fns/fp/max.d.ts new file mode 100644 index 000000000..150f37ab8 --- /dev/null +++ b/node_modules/date-fns/fp/max.d.ts @@ -0,0 +1,4 @@ +export declare const max: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/max.js b/node_modules/date-fns/fp/max.js new file mode 100644 index 000000000..4a833e934 --- /dev/null +++ b/node_modules/date-fns/fp/max.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { max as fn } from "../max.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const max = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default max; diff --git a/node_modules/date-fns/fp/maxWithOptions.cjs b/node_modules/date-fns/fp/maxWithOptions.cjs new file mode 100644 index 000000000..983911fd1 --- /dev/null +++ b/node_modules/date-fns/fp/maxWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.maxWithOptions = void 0; + +var _index = require("../max.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const maxWithOptions = (exports.maxWithOptions = (0, _index2.convertToFP)( + _index.max, + 2, +)); diff --git a/node_modules/date-fns/fp/maxWithOptions.d.cts b/node_modules/date-fns/fp/maxWithOptions.d.cts new file mode 100644 index 000000000..5ae2158e3 --- /dev/null +++ b/node_modules/date-fns/fp/maxWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const maxWithOptions: import("./types.ts").FPFn2< + Date, + import("../max.ts").MaxOptions | undefined, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/maxWithOptions.d.ts b/node_modules/date-fns/fp/maxWithOptions.d.ts new file mode 100644 index 000000000..5ae2158e3 --- /dev/null +++ b/node_modules/date-fns/fp/maxWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const maxWithOptions: import("./types.ts").FPFn2< + Date, + import("../max.ts").MaxOptions | undefined, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/maxWithOptions.js b/node_modules/date-fns/fp/maxWithOptions.js new file mode 100644 index 000000000..585f9d10c --- /dev/null +++ b/node_modules/date-fns/fp/maxWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { max as fn } from "../max.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const maxWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default maxWithOptions; diff --git a/node_modules/date-fns/fp/milliseconds.cjs b/node_modules/date-fns/fp/milliseconds.cjs new file mode 100644 index 000000000..b9b96d4f1 --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.milliseconds = void 0; + +var _index = require("../milliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const milliseconds = (exports.milliseconds = (0, _index2.convertToFP)( + _index.milliseconds, + 1, +)); diff --git a/node_modules/date-fns/fp/milliseconds.d.cts b/node_modules/date-fns/fp/milliseconds.d.cts new file mode 100644 index 000000000..72663bbb0 --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds.d.cts @@ -0,0 +1,4 @@ +export declare const milliseconds: import("./types.ts").FPFn1< + number, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/milliseconds.d.ts b/node_modules/date-fns/fp/milliseconds.d.ts new file mode 100644 index 000000000..72663bbb0 --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds.d.ts @@ -0,0 +1,4 @@ +export declare const milliseconds: import("./types.ts").FPFn1< + number, + import("../fp.ts").Duration +>; diff --git a/node_modules/date-fns/fp/milliseconds.js b/node_modules/date-fns/fp/milliseconds.js new file mode 100644 index 000000000..74c16001d --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { milliseconds as fn } from "../milliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const milliseconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default milliseconds; diff --git a/node_modules/date-fns/fp/millisecondsToHours.cjs b/node_modules/date-fns/fp/millisecondsToHours.cjs new file mode 100644 index 000000000..039534d75 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.millisecondsToHours = void 0; + +var _index = require("../millisecondsToHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const millisecondsToHours = (exports.millisecondsToHours = (0, +_index2.convertToFP)(_index.millisecondsToHours, 1)); diff --git a/node_modules/date-fns/fp/millisecondsToHours.d.cts b/node_modules/date-fns/fp/millisecondsToHours.d.cts new file mode 100644 index 000000000..74dbf3c2d --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours.d.cts @@ -0,0 +1,4 @@ +export declare const millisecondsToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToHours.d.ts b/node_modules/date-fns/fp/millisecondsToHours.d.ts new file mode 100644 index 000000000..74dbf3c2d --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours.d.ts @@ -0,0 +1,4 @@ +export declare const millisecondsToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToHours.js b/node_modules/date-fns/fp/millisecondsToHours.js new file mode 100644 index 000000000..45b411d85 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { millisecondsToHours as fn } from "../millisecondsToHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const millisecondsToHours = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default millisecondsToHours; diff --git a/node_modules/date-fns/fp/millisecondsToMinutes.cjs b/node_modules/date-fns/fp/millisecondsToMinutes.cjs new file mode 100644 index 000000000..b4872b05f --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.millisecondsToMinutes = void 0; + +var _index = require("../millisecondsToMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const millisecondsToMinutes = (exports.millisecondsToMinutes = (0, +_index2.convertToFP)(_index.millisecondsToMinutes, 1)); diff --git a/node_modules/date-fns/fp/millisecondsToMinutes.d.cts b/node_modules/date-fns/fp/millisecondsToMinutes.d.cts new file mode 100644 index 000000000..1bb20a46b --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes.d.cts @@ -0,0 +1,4 @@ +export declare const millisecondsToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToMinutes.d.ts b/node_modules/date-fns/fp/millisecondsToMinutes.d.ts new file mode 100644 index 000000000..1bb20a46b --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes.d.ts @@ -0,0 +1,4 @@ +export declare const millisecondsToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToMinutes.js b/node_modules/date-fns/fp/millisecondsToMinutes.js new file mode 100644 index 000000000..4a383b525 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { millisecondsToMinutes as fn } from "../millisecondsToMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const millisecondsToMinutes = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default millisecondsToMinutes; diff --git a/node_modules/date-fns/fp/millisecondsToSeconds.cjs b/node_modules/date-fns/fp/millisecondsToSeconds.cjs new file mode 100644 index 000000000..587c93cdc --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.millisecondsToSeconds = void 0; + +var _index = require("../millisecondsToSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const millisecondsToSeconds = (exports.millisecondsToSeconds = (0, +_index2.convertToFP)(_index.millisecondsToSeconds, 1)); diff --git a/node_modules/date-fns/fp/millisecondsToSeconds.d.cts b/node_modules/date-fns/fp/millisecondsToSeconds.d.cts new file mode 100644 index 000000000..3c745087c --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds.d.cts @@ -0,0 +1,4 @@ +export declare const millisecondsToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToSeconds.d.ts b/node_modules/date-fns/fp/millisecondsToSeconds.d.ts new file mode 100644 index 000000000..3c745087c --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds.d.ts @@ -0,0 +1,4 @@ +export declare const millisecondsToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/millisecondsToSeconds.js b/node_modules/date-fns/fp/millisecondsToSeconds.js new file mode 100644 index 000000000..72056126e --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { millisecondsToSeconds as fn } from "../millisecondsToSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const millisecondsToSeconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default millisecondsToSeconds; diff --git a/node_modules/date-fns/fp/min.cjs b/node_modules/date-fns/fp/min.cjs new file mode 100644 index 000000000..aa77bc664 --- /dev/null +++ b/node_modules/date-fns/fp/min.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.min = void 0; + +var _index = require("../min.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const min = (exports.min = (0, _index2.convertToFP)(_index.min, 1)); diff --git a/node_modules/date-fns/fp/min.d.cts b/node_modules/date-fns/fp/min.d.cts new file mode 100644 index 000000000..d5a5f540a --- /dev/null +++ b/node_modules/date-fns/fp/min.d.cts @@ -0,0 +1,4 @@ +export declare const min: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/min.d.ts b/node_modules/date-fns/fp/min.d.ts new file mode 100644 index 000000000..d5a5f540a --- /dev/null +++ b/node_modules/date-fns/fp/min.d.ts @@ -0,0 +1,4 @@ +export declare const min: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/min.js b/node_modules/date-fns/fp/min.js new file mode 100644 index 000000000..26817ef78 --- /dev/null +++ b/node_modules/date-fns/fp/min.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { min as fn } from "../min.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const min = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default min; diff --git a/node_modules/date-fns/fp/minWithOptions.cjs b/node_modules/date-fns/fp/minWithOptions.cjs new file mode 100644 index 000000000..802c44869 --- /dev/null +++ b/node_modules/date-fns/fp/minWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.minWithOptions = void 0; + +var _index = require("../min.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const minWithOptions = (exports.minWithOptions = (0, _index2.convertToFP)( + _index.min, + 2, +)); diff --git a/node_modules/date-fns/fp/minWithOptions.d.cts b/node_modules/date-fns/fp/minWithOptions.d.cts new file mode 100644 index 000000000..3245a26b8 --- /dev/null +++ b/node_modules/date-fns/fp/minWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const minWithOptions: import("./types.ts").FPFn2< + Date, + import("../min.ts").MinOptions | undefined, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/minWithOptions.d.ts b/node_modules/date-fns/fp/minWithOptions.d.ts new file mode 100644 index 000000000..3245a26b8 --- /dev/null +++ b/node_modules/date-fns/fp/minWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const minWithOptions: import("./types.ts").FPFn2< + Date, + import("../min.ts").MinOptions | undefined, + import("../fp.ts").DateArg[] +>; diff --git a/node_modules/date-fns/fp/minWithOptions.js b/node_modules/date-fns/fp/minWithOptions.js new file mode 100644 index 000000000..4d29c9907 --- /dev/null +++ b/node_modules/date-fns/fp/minWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { min as fn } from "../min.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const minWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default minWithOptions; diff --git a/node_modules/date-fns/fp/minutesToHours.cjs b/node_modules/date-fns/fp/minutesToHours.cjs new file mode 100644 index 000000000..a1ff33562 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.minutesToHours = void 0; + +var _index = require("../minutesToHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const minutesToHours = (exports.minutesToHours = (0, _index2.convertToFP)( + _index.minutesToHours, + 1, +)); diff --git a/node_modules/date-fns/fp/minutesToHours.d.cts b/node_modules/date-fns/fp/minutesToHours.d.cts new file mode 100644 index 000000000..fbb21461b --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours.d.cts @@ -0,0 +1,4 @@ +export declare const minutesToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToHours.d.ts b/node_modules/date-fns/fp/minutesToHours.d.ts new file mode 100644 index 000000000..fbb21461b --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours.d.ts @@ -0,0 +1,4 @@ +export declare const minutesToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToHours.js b/node_modules/date-fns/fp/minutesToHours.js new file mode 100644 index 000000000..8be456b7d --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { minutesToHours as fn } from "../minutesToHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const minutesToHours = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default minutesToHours; diff --git a/node_modules/date-fns/fp/minutesToMilliseconds.cjs b/node_modules/date-fns/fp/minutesToMilliseconds.cjs new file mode 100644 index 000000000..5e5d82bb0 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.minutesToMilliseconds = void 0; + +var _index = require("../minutesToMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const minutesToMilliseconds = (exports.minutesToMilliseconds = (0, +_index2.convertToFP)(_index.minutesToMilliseconds, 1)); diff --git a/node_modules/date-fns/fp/minutesToMilliseconds.d.cts b/node_modules/date-fns/fp/minutesToMilliseconds.d.cts new file mode 100644 index 000000000..2375dcfbb --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds.d.cts @@ -0,0 +1,4 @@ +export declare const minutesToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToMilliseconds.d.ts b/node_modules/date-fns/fp/minutesToMilliseconds.d.ts new file mode 100644 index 000000000..2375dcfbb --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds.d.ts @@ -0,0 +1,4 @@ +export declare const minutesToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToMilliseconds.js b/node_modules/date-fns/fp/minutesToMilliseconds.js new file mode 100644 index 000000000..809a8f4ff --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { minutesToMilliseconds as fn } from "../minutesToMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const minutesToMilliseconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default minutesToMilliseconds; diff --git a/node_modules/date-fns/fp/minutesToSeconds.cjs b/node_modules/date-fns/fp/minutesToSeconds.cjs new file mode 100644 index 000000000..566ff4d4e --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.minutesToSeconds = void 0; + +var _index = require("../minutesToSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const minutesToSeconds = (exports.minutesToSeconds = (0, _index2.convertToFP)( + _index.minutesToSeconds, + 1, +)); diff --git a/node_modules/date-fns/fp/minutesToSeconds.d.cts b/node_modules/date-fns/fp/minutesToSeconds.d.cts new file mode 100644 index 000000000..2a7c0236b --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds.d.cts @@ -0,0 +1,4 @@ +export declare const minutesToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToSeconds.d.ts b/node_modules/date-fns/fp/minutesToSeconds.d.ts new file mode 100644 index 000000000..2a7c0236b --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds.d.ts @@ -0,0 +1,4 @@ +export declare const minutesToSeconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/minutesToSeconds.js b/node_modules/date-fns/fp/minutesToSeconds.js new file mode 100644 index 000000000..ac373cb03 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { minutesToSeconds as fn } from "../minutesToSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const minutesToSeconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default minutesToSeconds; diff --git a/node_modules/date-fns/fp/monthsToQuarters.cjs b/node_modules/date-fns/fp/monthsToQuarters.cjs new file mode 100644 index 000000000..47877e0bc --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.monthsToQuarters = void 0; + +var _index = require("../monthsToQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const monthsToQuarters = (exports.monthsToQuarters = (0, _index2.convertToFP)( + _index.monthsToQuarters, + 1, +)); diff --git a/node_modules/date-fns/fp/monthsToQuarters.d.cts b/node_modules/date-fns/fp/monthsToQuarters.d.cts new file mode 100644 index 000000000..c7de93144 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters.d.cts @@ -0,0 +1,4 @@ +export declare const monthsToQuarters: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/monthsToQuarters.d.ts b/node_modules/date-fns/fp/monthsToQuarters.d.ts new file mode 100644 index 000000000..c7de93144 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters.d.ts @@ -0,0 +1,4 @@ +export declare const monthsToQuarters: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/monthsToQuarters.js b/node_modules/date-fns/fp/monthsToQuarters.js new file mode 100644 index 000000000..fe353a96a --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { monthsToQuarters as fn } from "../monthsToQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const monthsToQuarters = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default monthsToQuarters; diff --git a/node_modules/date-fns/fp/monthsToYears.cjs b/node_modules/date-fns/fp/monthsToYears.cjs new file mode 100644 index 000000000..eed4b03d6 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.monthsToYears = void 0; + +var _index = require("../monthsToYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const monthsToYears = (exports.monthsToYears = (0, _index2.convertToFP)( + _index.monthsToYears, + 1, +)); diff --git a/node_modules/date-fns/fp/monthsToYears.d.cts b/node_modules/date-fns/fp/monthsToYears.d.cts new file mode 100644 index 000000000..c5e0b35f6 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears.d.cts @@ -0,0 +1 @@ +export declare const monthsToYears: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/monthsToYears.d.ts b/node_modules/date-fns/fp/monthsToYears.d.ts new file mode 100644 index 000000000..c5e0b35f6 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears.d.ts @@ -0,0 +1 @@ +export declare const monthsToYears: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/monthsToYears.js b/node_modules/date-fns/fp/monthsToYears.js new file mode 100644 index 000000000..fd8d4563f --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { monthsToYears as fn } from "../monthsToYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const monthsToYears = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default monthsToYears; diff --git a/node_modules/date-fns/fp/nextDay.cjs b/node_modules/date-fns/fp/nextDay.cjs new file mode 100644 index 000000000..5c4b3e197 --- /dev/null +++ b/node_modules/date-fns/fp/nextDay.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.nextDay = void 0; + +var _index = require("../nextDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextDay = (exports.nextDay = (0, _index2.convertToFP)(_index.nextDay, 2)); diff --git a/node_modules/date-fns/fp/nextDay.d.cts b/node_modules/date-fns/fp/nextDay.d.cts new file mode 100644 index 000000000..9915b6c71 --- /dev/null +++ b/node_modules/date-fns/fp/nextDay.d.cts @@ -0,0 +1,5 @@ +export declare const nextDay: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextDay.d.ts b/node_modules/date-fns/fp/nextDay.d.ts new file mode 100644 index 000000000..9915b6c71 --- /dev/null +++ b/node_modules/date-fns/fp/nextDay.d.ts @@ -0,0 +1,5 @@ +export declare const nextDay: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextDay.js b/node_modules/date-fns/fp/nextDay.js new file mode 100644 index 000000000..8fc6f1bad --- /dev/null +++ b/node_modules/date-fns/fp/nextDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextDay as fn } from "../nextDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextDay = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextDay; diff --git a/node_modules/date-fns/fp/nextDayWithOptions.cjs b/node_modules/date-fns/fp/nextDayWithOptions.cjs new file mode 100644 index 000000000..ee5518d08 --- /dev/null +++ b/node_modules/date-fns/fp/nextDayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextDayWithOptions = void 0; + +var _index = require("../nextDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextDayWithOptions = (exports.nextDayWithOptions = (0, +_index2.convertToFP)(_index.nextDay, 3)); diff --git a/node_modules/date-fns/fp/nextDayWithOptions.d.cts b/node_modules/date-fns/fp/nextDayWithOptions.d.cts new file mode 100644 index 000000000..4991261cf --- /dev/null +++ b/node_modules/date-fns/fp/nextDayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const nextDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../nextDay.ts").NextDayOptions | undefined, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextDayWithOptions.d.ts b/node_modules/date-fns/fp/nextDayWithOptions.d.ts new file mode 100644 index 000000000..4991261cf --- /dev/null +++ b/node_modules/date-fns/fp/nextDayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const nextDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../nextDay.ts").NextDayOptions | undefined, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextDayWithOptions.js b/node_modules/date-fns/fp/nextDayWithOptions.js new file mode 100644 index 000000000..50a45560c --- /dev/null +++ b/node_modules/date-fns/fp/nextDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextDay as fn } from "../nextDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextDayWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default nextDayWithOptions; diff --git a/node_modules/date-fns/fp/nextFriday.cjs b/node_modules/date-fns/fp/nextFriday.cjs new file mode 100644 index 000000000..a947ac80f --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextFriday = void 0; + +var _index = require("../nextFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextFriday = (exports.nextFriday = (0, _index2.convertToFP)( + _index.nextFriday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextFriday.d.cts b/node_modules/date-fns/fp/nextFriday.d.cts new file mode 100644 index 000000000..22ef38065 --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday.d.cts @@ -0,0 +1,4 @@ +export declare const nextFriday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextFriday.d.ts b/node_modules/date-fns/fp/nextFriday.d.ts new file mode 100644 index 000000000..22ef38065 --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday.d.ts @@ -0,0 +1,4 @@ +export declare const nextFriday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextFriday.js b/node_modules/date-fns/fp/nextFriday.js new file mode 100644 index 000000000..90fad22e7 --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextFriday as fn } from "../nextFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextFriday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextFriday; diff --git a/node_modules/date-fns/fp/nextFridayWithOptions.cjs b/node_modules/date-fns/fp/nextFridayWithOptions.cjs new file mode 100644 index 000000000..ecee298ba --- /dev/null +++ b/node_modules/date-fns/fp/nextFridayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextFridayWithOptions = void 0; + +var _index = require("../nextFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextFridayWithOptions = (exports.nextFridayWithOptions = (0, +_index2.convertToFP)(_index.nextFriday, 2)); diff --git a/node_modules/date-fns/fp/nextFridayWithOptions.d.cts b/node_modules/date-fns/fp/nextFridayWithOptions.d.cts new file mode 100644 index 000000000..c8465e463 --- /dev/null +++ b/node_modules/date-fns/fp/nextFridayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextFridayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextFriday.ts").NextFridayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextFridayWithOptions.d.ts b/node_modules/date-fns/fp/nextFridayWithOptions.d.ts new file mode 100644 index 000000000..c8465e463 --- /dev/null +++ b/node_modules/date-fns/fp/nextFridayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextFridayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextFriday.ts").NextFridayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextFridayWithOptions.js b/node_modules/date-fns/fp/nextFridayWithOptions.js new file mode 100644 index 000000000..3db6e3c86 --- /dev/null +++ b/node_modules/date-fns/fp/nextFridayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextFriday as fn } from "../nextFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextFridayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextFridayWithOptions; diff --git a/node_modules/date-fns/fp/nextMonday.cjs b/node_modules/date-fns/fp/nextMonday.cjs new file mode 100644 index 000000000..2b2d3dac9 --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextMonday = void 0; + +var _index = require("../nextMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextMonday = (exports.nextMonday = (0, _index2.convertToFP)( + _index.nextMonday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextMonday.d.cts b/node_modules/date-fns/fp/nextMonday.d.cts new file mode 100644 index 000000000..de3fa68fb --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday.d.cts @@ -0,0 +1,4 @@ +export declare const nextMonday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextMonday.d.ts b/node_modules/date-fns/fp/nextMonday.d.ts new file mode 100644 index 000000000..de3fa68fb --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday.d.ts @@ -0,0 +1,4 @@ +export declare const nextMonday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextMonday.js b/node_modules/date-fns/fp/nextMonday.js new file mode 100644 index 000000000..89fbce03a --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextMonday as fn } from "../nextMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextMonday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextMonday; diff --git a/node_modules/date-fns/fp/nextMondayWithOptions.cjs b/node_modules/date-fns/fp/nextMondayWithOptions.cjs new file mode 100644 index 000000000..72a4acedf --- /dev/null +++ b/node_modules/date-fns/fp/nextMondayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextMondayWithOptions = void 0; + +var _index = require("../nextMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextMondayWithOptions = (exports.nextMondayWithOptions = (0, +_index2.convertToFP)(_index.nextMonday, 2)); diff --git a/node_modules/date-fns/fp/nextMondayWithOptions.d.cts b/node_modules/date-fns/fp/nextMondayWithOptions.d.cts new file mode 100644 index 000000000..d588ed8d4 --- /dev/null +++ b/node_modules/date-fns/fp/nextMondayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextMondayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextMonday.ts").NextMondayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextMondayWithOptions.d.ts b/node_modules/date-fns/fp/nextMondayWithOptions.d.ts new file mode 100644 index 000000000..d588ed8d4 --- /dev/null +++ b/node_modules/date-fns/fp/nextMondayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextMondayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextMonday.ts").NextMondayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextMondayWithOptions.js b/node_modules/date-fns/fp/nextMondayWithOptions.js new file mode 100644 index 000000000..d24b4da67 --- /dev/null +++ b/node_modules/date-fns/fp/nextMondayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextMonday as fn } from "../nextMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextMondayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextMondayWithOptions; diff --git a/node_modules/date-fns/fp/nextSaturday.cjs b/node_modules/date-fns/fp/nextSaturday.cjs new file mode 100644 index 000000000..830c74b7e --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextSaturday = void 0; + +var _index = require("../nextSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextSaturday = (exports.nextSaturday = (0, _index2.convertToFP)( + _index.nextSaturday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextSaturday.d.cts b/node_modules/date-fns/fp/nextSaturday.d.cts new file mode 100644 index 000000000..451bd47a3 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday.d.cts @@ -0,0 +1,4 @@ +export declare const nextSaturday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSaturday.d.ts b/node_modules/date-fns/fp/nextSaturday.d.ts new file mode 100644 index 000000000..451bd47a3 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday.d.ts @@ -0,0 +1,4 @@ +export declare const nextSaturday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSaturday.js b/node_modules/date-fns/fp/nextSaturday.js new file mode 100644 index 000000000..def88c859 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextSaturday as fn } from "../nextSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextSaturday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextSaturday; diff --git a/node_modules/date-fns/fp/nextSaturdayWithOptions.cjs b/node_modules/date-fns/fp/nextSaturdayWithOptions.cjs new file mode 100644 index 000000000..b9b3710ce --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextSaturdayWithOptions = void 0; + +var _index = require("../nextSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextSaturdayWithOptions = (exports.nextSaturdayWithOptions = (0, +_index2.convertToFP)(_index.nextSaturday, 2)); diff --git a/node_modules/date-fns/fp/nextSaturdayWithOptions.d.cts b/node_modules/date-fns/fp/nextSaturdayWithOptions.d.cts new file mode 100644 index 000000000..f029b2050 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextSaturdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextSaturday.ts").NextSaturdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSaturdayWithOptions.d.ts b/node_modules/date-fns/fp/nextSaturdayWithOptions.d.ts new file mode 100644 index 000000000..f029b2050 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextSaturdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextSaturday.ts").NextSaturdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSaturdayWithOptions.js b/node_modules/date-fns/fp/nextSaturdayWithOptions.js new file mode 100644 index 000000000..f783c7510 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextSaturday as fn } from "../nextSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextSaturdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextSaturdayWithOptions; diff --git a/node_modules/date-fns/fp/nextSunday.cjs b/node_modules/date-fns/fp/nextSunday.cjs new file mode 100644 index 000000000..d34556e65 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextSunday = void 0; + +var _index = require("../nextSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextSunday = (exports.nextSunday = (0, _index2.convertToFP)( + _index.nextSunday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextSunday.d.cts b/node_modules/date-fns/fp/nextSunday.d.cts new file mode 100644 index 000000000..a1daafb67 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday.d.cts @@ -0,0 +1,4 @@ +export declare const nextSunday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSunday.d.ts b/node_modules/date-fns/fp/nextSunday.d.ts new file mode 100644 index 000000000..a1daafb67 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday.d.ts @@ -0,0 +1,4 @@ +export declare const nextSunday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSunday.js b/node_modules/date-fns/fp/nextSunday.js new file mode 100644 index 000000000..618228432 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextSunday as fn } from "../nextSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextSunday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextSunday; diff --git a/node_modules/date-fns/fp/nextSundayWithOptions.cjs b/node_modules/date-fns/fp/nextSundayWithOptions.cjs new file mode 100644 index 000000000..15047e671 --- /dev/null +++ b/node_modules/date-fns/fp/nextSundayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextSundayWithOptions = void 0; + +var _index = require("../nextSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextSundayWithOptions = (exports.nextSundayWithOptions = (0, +_index2.convertToFP)(_index.nextSunday, 2)); diff --git a/node_modules/date-fns/fp/nextSundayWithOptions.d.cts b/node_modules/date-fns/fp/nextSundayWithOptions.d.cts new file mode 100644 index 000000000..c1e764e03 --- /dev/null +++ b/node_modules/date-fns/fp/nextSundayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextSundayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextSunday.ts").NextSundayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSundayWithOptions.d.ts b/node_modules/date-fns/fp/nextSundayWithOptions.d.ts new file mode 100644 index 000000000..c1e764e03 --- /dev/null +++ b/node_modules/date-fns/fp/nextSundayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextSundayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextSunday.ts").NextSundayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextSundayWithOptions.js b/node_modules/date-fns/fp/nextSundayWithOptions.js new file mode 100644 index 000000000..924779964 --- /dev/null +++ b/node_modules/date-fns/fp/nextSundayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextSunday as fn } from "../nextSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextSundayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextSundayWithOptions; diff --git a/node_modules/date-fns/fp/nextThursday.cjs b/node_modules/date-fns/fp/nextThursday.cjs new file mode 100644 index 000000000..ae490cff3 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextThursday = void 0; + +var _index = require("../nextThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextThursday = (exports.nextThursday = (0, _index2.convertToFP)( + _index.nextThursday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextThursday.d.cts b/node_modules/date-fns/fp/nextThursday.d.cts new file mode 100644 index 000000000..554d81b46 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday.d.cts @@ -0,0 +1,4 @@ +export declare const nextThursday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextThursday.d.ts b/node_modules/date-fns/fp/nextThursday.d.ts new file mode 100644 index 000000000..554d81b46 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday.d.ts @@ -0,0 +1,4 @@ +export declare const nextThursday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextThursday.js b/node_modules/date-fns/fp/nextThursday.js new file mode 100644 index 000000000..ec7655367 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextThursday as fn } from "../nextThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextThursday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextThursday; diff --git a/node_modules/date-fns/fp/nextThursdayWithOptions.cjs b/node_modules/date-fns/fp/nextThursdayWithOptions.cjs new file mode 100644 index 000000000..c9679e597 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextThursdayWithOptions = void 0; + +var _index = require("../nextThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextThursdayWithOptions = (exports.nextThursdayWithOptions = (0, +_index2.convertToFP)(_index.nextThursday, 2)); diff --git a/node_modules/date-fns/fp/nextThursdayWithOptions.d.cts b/node_modules/date-fns/fp/nextThursdayWithOptions.d.cts new file mode 100644 index 000000000..4463661cd --- /dev/null +++ b/node_modules/date-fns/fp/nextThursdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextThursdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextThursday.ts").NextThursdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextThursdayWithOptions.d.ts b/node_modules/date-fns/fp/nextThursdayWithOptions.d.ts new file mode 100644 index 000000000..4463661cd --- /dev/null +++ b/node_modules/date-fns/fp/nextThursdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextThursdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextThursday.ts").NextThursdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextThursdayWithOptions.js b/node_modules/date-fns/fp/nextThursdayWithOptions.js new file mode 100644 index 000000000..5b7d89ee6 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextThursday as fn } from "../nextThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextThursdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextThursdayWithOptions; diff --git a/node_modules/date-fns/fp/nextTuesday.cjs b/node_modules/date-fns/fp/nextTuesday.cjs new file mode 100644 index 000000000..9b38f7dfe --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextTuesday = void 0; + +var _index = require("../nextTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextTuesday = (exports.nextTuesday = (0, _index2.convertToFP)( + _index.nextTuesday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextTuesday.d.cts b/node_modules/date-fns/fp/nextTuesday.d.cts new file mode 100644 index 000000000..73629cbf0 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday.d.cts @@ -0,0 +1,4 @@ +export declare const nextTuesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextTuesday.d.ts b/node_modules/date-fns/fp/nextTuesday.d.ts new file mode 100644 index 000000000..73629cbf0 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday.d.ts @@ -0,0 +1,4 @@ +export declare const nextTuesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextTuesday.js b/node_modules/date-fns/fp/nextTuesday.js new file mode 100644 index 000000000..d6a950a98 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextTuesday as fn } from "../nextTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextTuesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextTuesday; diff --git a/node_modules/date-fns/fp/nextTuesdayWithOptions.cjs b/node_modules/date-fns/fp/nextTuesdayWithOptions.cjs new file mode 100644 index 000000000..1cc27035d --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextTuesdayWithOptions = void 0; + +var _index = require("../nextTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextTuesdayWithOptions = (exports.nextTuesdayWithOptions = (0, +_index2.convertToFP)(_index.nextTuesday, 2)); diff --git a/node_modules/date-fns/fp/nextTuesdayWithOptions.d.cts b/node_modules/date-fns/fp/nextTuesdayWithOptions.d.cts new file mode 100644 index 000000000..632b551d4 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextTuesdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextTuesday.ts").NextTuesdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextTuesdayWithOptions.d.ts b/node_modules/date-fns/fp/nextTuesdayWithOptions.d.ts new file mode 100644 index 000000000..632b551d4 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextTuesdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextTuesday.ts").NextTuesdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextTuesdayWithOptions.js b/node_modules/date-fns/fp/nextTuesdayWithOptions.js new file mode 100644 index 000000000..53d7d05eb --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextTuesday as fn } from "../nextTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextTuesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextTuesdayWithOptions; diff --git a/node_modules/date-fns/fp/nextWednesday.cjs b/node_modules/date-fns/fp/nextWednesday.cjs new file mode 100644 index 000000000..a0ec9e08f --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.nextWednesday = void 0; + +var _index = require("../nextWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextWednesday = (exports.nextWednesday = (0, _index2.convertToFP)( + _index.nextWednesday, + 1, +)); diff --git a/node_modules/date-fns/fp/nextWednesday.d.cts b/node_modules/date-fns/fp/nextWednesday.d.cts new file mode 100644 index 000000000..af9e6cf94 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday.d.cts @@ -0,0 +1,4 @@ +export declare const nextWednesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextWednesday.d.ts b/node_modules/date-fns/fp/nextWednesday.d.ts new file mode 100644 index 000000000..af9e6cf94 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday.d.ts @@ -0,0 +1,4 @@ +export declare const nextWednesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextWednesday.js b/node_modules/date-fns/fp/nextWednesday.js new file mode 100644 index 000000000..3eabbbf2d --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextWednesday as fn } from "../nextWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextWednesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default nextWednesday; diff --git a/node_modules/date-fns/fp/nextWednesdayWithOptions.cjs b/node_modules/date-fns/fp/nextWednesdayWithOptions.cjs new file mode 100644 index 000000000..f79798d22 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.nextWednesdayWithOptions = void 0; + +var _index = require("../nextWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const nextWednesdayWithOptions = (exports.nextWednesdayWithOptions = (0, +_index2.convertToFP)(_index.nextWednesday, 2)); diff --git a/node_modules/date-fns/fp/nextWednesdayWithOptions.d.cts b/node_modules/date-fns/fp/nextWednesdayWithOptions.d.cts new file mode 100644 index 000000000..261051d49 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesdayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const nextWednesdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextWednesday.ts").NextWednesdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextWednesdayWithOptions.d.ts b/node_modules/date-fns/fp/nextWednesdayWithOptions.d.ts new file mode 100644 index 000000000..261051d49 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesdayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const nextWednesdayWithOptions: import("./types.ts").FPFn2< + Date, + import("../nextWednesday.ts").NextWednesdayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/nextWednesdayWithOptions.js b/node_modules/date-fns/fp/nextWednesdayWithOptions.js new file mode 100644 index 000000000..9302ccb7a --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { nextWednesday as fn } from "../nextWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const nextWednesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default nextWednesdayWithOptions; diff --git a/node_modules/date-fns/fp/parse.cjs b/node_modules/date-fns/fp/parse.cjs new file mode 100644 index 000000000..d4ea3e542 --- /dev/null +++ b/node_modules/date-fns/fp/parse.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.parse = void 0; + +var _index = require("../parse.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parse = (exports.parse = (0, _index2.convertToFP)(_index.parse, 3)); diff --git a/node_modules/date-fns/fp/parse.d.cts b/node_modules/date-fns/fp/parse.d.cts new file mode 100644 index 000000000..365979596 --- /dev/null +++ b/node_modules/date-fns/fp/parse.d.cts @@ -0,0 +1,6 @@ +export declare const parse: import("./types.ts").FPFn3< + Date, + import("../fp.ts").DateArg, + string, + string +>; diff --git a/node_modules/date-fns/fp/parse.d.ts b/node_modules/date-fns/fp/parse.d.ts new file mode 100644 index 000000000..365979596 --- /dev/null +++ b/node_modules/date-fns/fp/parse.d.ts @@ -0,0 +1,6 @@ +export declare const parse: import("./types.ts").FPFn3< + Date, + import("../fp.ts").DateArg, + string, + string +>; diff --git a/node_modules/date-fns/fp/parse.js b/node_modules/date-fns/fp/parse.js new file mode 100644 index 000000000..56080849f --- /dev/null +++ b/node_modules/date-fns/fp/parse.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parse as fn } from "../parse.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parse = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default parse; diff --git a/node_modules/date-fns/fp/parseISO.cjs b/node_modules/date-fns/fp/parseISO.cjs new file mode 100644 index 000000000..beb0587f2 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.parseISO = void 0; + +var _index = require("../parseISO.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parseISO = (exports.parseISO = (0, _index2.convertToFP)( + _index.parseISO, + 1, +)); diff --git a/node_modules/date-fns/fp/parseISO.d.cts b/node_modules/date-fns/fp/parseISO.d.cts new file mode 100644 index 000000000..5de70c5e9 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO.d.cts @@ -0,0 +1 @@ +export declare const parseISO: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/parseISO.d.ts b/node_modules/date-fns/fp/parseISO.d.ts new file mode 100644 index 000000000..5de70c5e9 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO.d.ts @@ -0,0 +1 @@ +export declare const parseISO: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/parseISO.js b/node_modules/date-fns/fp/parseISO.js new file mode 100644 index 000000000..c36d0d23c --- /dev/null +++ b/node_modules/date-fns/fp/parseISO.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parseISO as fn } from "../parseISO.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parseISO = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default parseISO; diff --git a/node_modules/date-fns/fp/parseISOWithOptions.cjs b/node_modules/date-fns/fp/parseISOWithOptions.cjs new file mode 100644 index 000000000..9d15628fe --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.parseISOWithOptions = void 0; + +var _index = require("../parseISO.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parseISOWithOptions = (exports.parseISOWithOptions = (0, +_index2.convertToFP)(_index.parseISO, 2)); diff --git a/node_modules/date-fns/fp/parseISOWithOptions.d.cts b/node_modules/date-fns/fp/parseISOWithOptions.d.cts new file mode 100644 index 000000000..14eeca07c --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const parseISOWithOptions: import("./types.ts").FPFn2< + Date, + import("../parseISO.ts").ParseISOOptions | undefined, + string +>; diff --git a/node_modules/date-fns/fp/parseISOWithOptions.d.ts b/node_modules/date-fns/fp/parseISOWithOptions.d.ts new file mode 100644 index 000000000..14eeca07c --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const parseISOWithOptions: import("./types.ts").FPFn2< + Date, + import("../parseISO.ts").ParseISOOptions | undefined, + string +>; diff --git a/node_modules/date-fns/fp/parseISOWithOptions.js b/node_modules/date-fns/fp/parseISOWithOptions.js new file mode 100644 index 000000000..700bf269b --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parseISO as fn } from "../parseISO.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parseISOWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default parseISOWithOptions; diff --git a/node_modules/date-fns/fp/parseJSON.cjs b/node_modules/date-fns/fp/parseJSON.cjs new file mode 100644 index 000000000..b78b1db06 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.parseJSON = void 0; + +var _index = require("../parseJSON.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parseJSON = (exports.parseJSON = (0, _index2.convertToFP)( + _index.parseJSON, + 1, +)); diff --git a/node_modules/date-fns/fp/parseJSON.d.cts b/node_modules/date-fns/fp/parseJSON.d.cts new file mode 100644 index 000000000..ece355360 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON.d.cts @@ -0,0 +1 @@ +export declare const parseJSON: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/parseJSON.d.ts b/node_modules/date-fns/fp/parseJSON.d.ts new file mode 100644 index 000000000..ece355360 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON.d.ts @@ -0,0 +1 @@ +export declare const parseJSON: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/parseJSON.js b/node_modules/date-fns/fp/parseJSON.js new file mode 100644 index 000000000..33616aae9 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parseJSON as fn } from "../parseJSON.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parseJSON = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default parseJSON; diff --git a/node_modules/date-fns/fp/parseJSONWithOptions.cjs b/node_modules/date-fns/fp/parseJSONWithOptions.cjs new file mode 100644 index 000000000..7fcbe0832 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSONWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.parseJSONWithOptions = void 0; + +var _index = require("../parseJSON.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parseJSONWithOptions = (exports.parseJSONWithOptions = (0, +_index2.convertToFP)(_index.parseJSON, 2)); diff --git a/node_modules/date-fns/fp/parseJSONWithOptions.d.cts b/node_modules/date-fns/fp/parseJSONWithOptions.d.cts new file mode 100644 index 000000000..8d5edcdc2 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSONWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const parseJSONWithOptions: import("./types.ts").FPFn2< + Date, + import("../parseJSON.ts").ParseJSONOptions | undefined, + string +>; diff --git a/node_modules/date-fns/fp/parseJSONWithOptions.d.ts b/node_modules/date-fns/fp/parseJSONWithOptions.d.ts new file mode 100644 index 000000000..8d5edcdc2 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSONWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const parseJSONWithOptions: import("./types.ts").FPFn2< + Date, + import("../parseJSON.ts").ParseJSONOptions | undefined, + string +>; diff --git a/node_modules/date-fns/fp/parseJSONWithOptions.js b/node_modules/date-fns/fp/parseJSONWithOptions.js new file mode 100644 index 000000000..e58857eee --- /dev/null +++ b/node_modules/date-fns/fp/parseJSONWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parseJSON as fn } from "../parseJSON.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parseJSONWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default parseJSONWithOptions; diff --git a/node_modules/date-fns/fp/parseWithOptions.cjs b/node_modules/date-fns/fp/parseWithOptions.cjs new file mode 100644 index 000000000..5d9da90ab --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.parseWithOptions = void 0; + +var _index = require("../parse.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const parseWithOptions = (exports.parseWithOptions = (0, _index2.convertToFP)( + _index.parse, + 4, +)); diff --git a/node_modules/date-fns/fp/parseWithOptions.d.cts b/node_modules/date-fns/fp/parseWithOptions.d.cts new file mode 100644 index 000000000..cda5aefc8 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const parseWithOptions: import("./types.ts").FPFn4< + Date, + import("../parse.ts").ParseOptions | undefined, + import("../fp.ts").DateArg, + string, + string +>; diff --git a/node_modules/date-fns/fp/parseWithOptions.d.ts b/node_modules/date-fns/fp/parseWithOptions.d.ts new file mode 100644 index 000000000..cda5aefc8 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const parseWithOptions: import("./types.ts").FPFn4< + Date, + import("../parse.ts").ParseOptions | undefined, + import("../fp.ts").DateArg, + string, + string +>; diff --git a/node_modules/date-fns/fp/parseWithOptions.js b/node_modules/date-fns/fp/parseWithOptions.js new file mode 100644 index 000000000..24b06225c --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { parse as fn } from "../parse.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const parseWithOptions = convertToFP(fn, 4); + +// Fallback for modularized imports: +export default parseWithOptions; diff --git a/node_modules/date-fns/fp/previousDay.cjs b/node_modules/date-fns/fp/previousDay.cjs new file mode 100644 index 000000000..718bceb04 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousDay = void 0; + +var _index = require("../previousDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousDay = (exports.previousDay = (0, _index2.convertToFP)( + _index.previousDay, + 2, +)); diff --git a/node_modules/date-fns/fp/previousDay.d.cts b/node_modules/date-fns/fp/previousDay.d.cts new file mode 100644 index 000000000..ad2fbb819 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay.d.cts @@ -0,0 +1,5 @@ +export declare const previousDay: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousDay.d.ts b/node_modules/date-fns/fp/previousDay.d.ts new file mode 100644 index 000000000..ad2fbb819 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay.d.ts @@ -0,0 +1,5 @@ +export declare const previousDay: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousDay.js b/node_modules/date-fns/fp/previousDay.js new file mode 100644 index 000000000..b7c66581d --- /dev/null +++ b/node_modules/date-fns/fp/previousDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousDay as fn } from "../previousDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousDay = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousDay; diff --git a/node_modules/date-fns/fp/previousDayWithOptions.cjs b/node_modules/date-fns/fp/previousDayWithOptions.cjs new file mode 100644 index 000000000..c99171ac1 --- /dev/null +++ b/node_modules/date-fns/fp/previousDayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousDayWithOptions = void 0; + +var _index = require("../previousDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousDayWithOptions = (exports.previousDayWithOptions = (0, +_index2.convertToFP)(_index.previousDay, 3)); diff --git a/node_modules/date-fns/fp/previousDayWithOptions.d.cts b/node_modules/date-fns/fp/previousDayWithOptions.d.cts new file mode 100644 index 000000000..d4051cecd --- /dev/null +++ b/node_modules/date-fns/fp/previousDayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../previousDay.ts").PreviousDayOptions | undefined, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousDayWithOptions.d.ts b/node_modules/date-fns/fp/previousDayWithOptions.d.ts new file mode 100644 index 000000000..d4051cecd --- /dev/null +++ b/node_modules/date-fns/fp/previousDayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../previousDay.ts").PreviousDayOptions | undefined, + import("../fp.ts").Day, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousDayWithOptions.js b/node_modules/date-fns/fp/previousDayWithOptions.js new file mode 100644 index 000000000..6c91eeb39 --- /dev/null +++ b/node_modules/date-fns/fp/previousDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousDay as fn } from "../previousDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousDayWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default previousDayWithOptions; diff --git a/node_modules/date-fns/fp/previousFriday.cjs b/node_modules/date-fns/fp/previousFriday.cjs new file mode 100644 index 000000000..07b8c92e1 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousFriday = void 0; + +var _index = require("../previousFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousFriday = (exports.previousFriday = (0, _index2.convertToFP)( + _index.previousFriday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousFriday.d.cts b/node_modules/date-fns/fp/previousFriday.d.cts new file mode 100644 index 000000000..eefb75c51 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday.d.cts @@ -0,0 +1,4 @@ +export declare const previousFriday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousFriday.d.ts b/node_modules/date-fns/fp/previousFriday.d.ts new file mode 100644 index 000000000..eefb75c51 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday.d.ts @@ -0,0 +1,4 @@ +export declare const previousFriday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousFriday.js b/node_modules/date-fns/fp/previousFriday.js new file mode 100644 index 000000000..e1ee92e58 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousFriday as fn } from "../previousFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousFriday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousFriday; diff --git a/node_modules/date-fns/fp/previousFridayWithOptions.cjs b/node_modules/date-fns/fp/previousFridayWithOptions.cjs new file mode 100644 index 000000000..0c3961d96 --- /dev/null +++ b/node_modules/date-fns/fp/previousFridayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousFridayWithOptions = void 0; + +var _index = require("../previousFriday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousFridayWithOptions = (exports.previousFridayWithOptions = (0, +_index2.convertToFP)(_index.previousFriday, 2)); diff --git a/node_modules/date-fns/fp/previousFridayWithOptions.d.cts b/node_modules/date-fns/fp/previousFridayWithOptions.d.cts new file mode 100644 index 000000000..278eb7fe8 --- /dev/null +++ b/node_modules/date-fns/fp/previousFridayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousFridayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousFriday.ts").PreviousFridayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousFridayWithOptions.d.ts b/node_modules/date-fns/fp/previousFridayWithOptions.d.ts new file mode 100644 index 000000000..278eb7fe8 --- /dev/null +++ b/node_modules/date-fns/fp/previousFridayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousFridayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousFriday.ts").PreviousFridayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousFridayWithOptions.js b/node_modules/date-fns/fp/previousFridayWithOptions.js new file mode 100644 index 000000000..a36a7013b --- /dev/null +++ b/node_modules/date-fns/fp/previousFridayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousFriday as fn } from "../previousFriday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousFridayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousFridayWithOptions; diff --git a/node_modules/date-fns/fp/previousMonday.cjs b/node_modules/date-fns/fp/previousMonday.cjs new file mode 100644 index 000000000..7fb6bf64b --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousMonday = void 0; + +var _index = require("../previousMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousMonday = (exports.previousMonday = (0, _index2.convertToFP)( + _index.previousMonday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousMonday.d.cts b/node_modules/date-fns/fp/previousMonday.d.cts new file mode 100644 index 000000000..f220e3a1c --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday.d.cts @@ -0,0 +1,4 @@ +export declare const previousMonday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousMonday.d.ts b/node_modules/date-fns/fp/previousMonday.d.ts new file mode 100644 index 000000000..f220e3a1c --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday.d.ts @@ -0,0 +1,4 @@ +export declare const previousMonday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousMonday.js b/node_modules/date-fns/fp/previousMonday.js new file mode 100644 index 000000000..a4070cc8a --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousMonday as fn } from "../previousMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousMonday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousMonday; diff --git a/node_modules/date-fns/fp/previousMondayWithOptions.cjs b/node_modules/date-fns/fp/previousMondayWithOptions.cjs new file mode 100644 index 000000000..1cd0acf69 --- /dev/null +++ b/node_modules/date-fns/fp/previousMondayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousMondayWithOptions = void 0; + +var _index = require("../previousMonday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousMondayWithOptions = (exports.previousMondayWithOptions = (0, +_index2.convertToFP)(_index.previousMonday, 2)); diff --git a/node_modules/date-fns/fp/previousMondayWithOptions.d.cts b/node_modules/date-fns/fp/previousMondayWithOptions.d.cts new file mode 100644 index 000000000..e82fbe840 --- /dev/null +++ b/node_modules/date-fns/fp/previousMondayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousMondayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousMonday.ts").PreviousMondayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousMondayWithOptions.d.ts b/node_modules/date-fns/fp/previousMondayWithOptions.d.ts new file mode 100644 index 000000000..e82fbe840 --- /dev/null +++ b/node_modules/date-fns/fp/previousMondayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousMondayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousMonday.ts").PreviousMondayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousMondayWithOptions.js b/node_modules/date-fns/fp/previousMondayWithOptions.js new file mode 100644 index 000000000..db1060cfa --- /dev/null +++ b/node_modules/date-fns/fp/previousMondayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousMonday as fn } from "../previousMonday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousMondayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousMondayWithOptions; diff --git a/node_modules/date-fns/fp/previousSaturday.cjs b/node_modules/date-fns/fp/previousSaturday.cjs new file mode 100644 index 000000000..aabe040db --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousSaturday = void 0; + +var _index = require("../previousSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousSaturday = (exports.previousSaturday = (0, _index2.convertToFP)( + _index.previousSaturday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousSaturday.d.cts b/node_modules/date-fns/fp/previousSaturday.d.cts new file mode 100644 index 000000000..246c9bda6 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday.d.cts @@ -0,0 +1,4 @@ +export declare const previousSaturday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSaturday.d.ts b/node_modules/date-fns/fp/previousSaturday.d.ts new file mode 100644 index 000000000..246c9bda6 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday.d.ts @@ -0,0 +1,4 @@ +export declare const previousSaturday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSaturday.js b/node_modules/date-fns/fp/previousSaturday.js new file mode 100644 index 000000000..99697de2c --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousSaturday as fn } from "../previousSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousSaturday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousSaturday; diff --git a/node_modules/date-fns/fp/previousSaturdayWithOptions.cjs b/node_modules/date-fns/fp/previousSaturdayWithOptions.cjs new file mode 100644 index 000000000..12422e2f4 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousSaturdayWithOptions = void 0; + +var _index = require("../previousSaturday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousSaturdayWithOptions = (exports.previousSaturdayWithOptions = (0, +_index2.convertToFP)(_index.previousSaturday, 2)); diff --git a/node_modules/date-fns/fp/previousSaturdayWithOptions.d.cts b/node_modules/date-fns/fp/previousSaturdayWithOptions.d.cts new file mode 100644 index 000000000..160e3979e --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturdayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousSaturdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousSaturday.ts").PreviousSaturdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSaturdayWithOptions.d.ts b/node_modules/date-fns/fp/previousSaturdayWithOptions.d.ts new file mode 100644 index 000000000..160e3979e --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturdayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousSaturdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousSaturday.ts").PreviousSaturdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSaturdayWithOptions.js b/node_modules/date-fns/fp/previousSaturdayWithOptions.js new file mode 100644 index 000000000..51974f312 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousSaturday as fn } from "../previousSaturday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousSaturdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousSaturdayWithOptions; diff --git a/node_modules/date-fns/fp/previousSunday.cjs b/node_modules/date-fns/fp/previousSunday.cjs new file mode 100644 index 000000000..1300bfd28 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousSunday = void 0; + +var _index = require("../previousSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousSunday = (exports.previousSunday = (0, _index2.convertToFP)( + _index.previousSunday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousSunday.d.cts b/node_modules/date-fns/fp/previousSunday.d.cts new file mode 100644 index 000000000..15929f565 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday.d.cts @@ -0,0 +1,4 @@ +export declare const previousSunday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSunday.d.ts b/node_modules/date-fns/fp/previousSunday.d.ts new file mode 100644 index 000000000..15929f565 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday.d.ts @@ -0,0 +1,4 @@ +export declare const previousSunday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSunday.js b/node_modules/date-fns/fp/previousSunday.js new file mode 100644 index 000000000..602199238 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousSunday as fn } from "../previousSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousSunday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousSunday; diff --git a/node_modules/date-fns/fp/previousSundayWithOptions.cjs b/node_modules/date-fns/fp/previousSundayWithOptions.cjs new file mode 100644 index 000000000..a3b803fcc --- /dev/null +++ b/node_modules/date-fns/fp/previousSundayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousSundayWithOptions = void 0; + +var _index = require("../previousSunday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousSundayWithOptions = (exports.previousSundayWithOptions = (0, +_index2.convertToFP)(_index.previousSunday, 2)); diff --git a/node_modules/date-fns/fp/previousSundayWithOptions.d.cts b/node_modules/date-fns/fp/previousSundayWithOptions.d.cts new file mode 100644 index 000000000..aaeaf87a8 --- /dev/null +++ b/node_modules/date-fns/fp/previousSundayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousSundayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousSunday.ts").PreviousSundayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSundayWithOptions.d.ts b/node_modules/date-fns/fp/previousSundayWithOptions.d.ts new file mode 100644 index 000000000..aaeaf87a8 --- /dev/null +++ b/node_modules/date-fns/fp/previousSundayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousSundayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousSunday.ts").PreviousSundayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousSundayWithOptions.js b/node_modules/date-fns/fp/previousSundayWithOptions.js new file mode 100644 index 000000000..7617542d8 --- /dev/null +++ b/node_modules/date-fns/fp/previousSundayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousSunday as fn } from "../previousSunday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousSundayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousSundayWithOptions; diff --git a/node_modules/date-fns/fp/previousThursday.cjs b/node_modules/date-fns/fp/previousThursday.cjs new file mode 100644 index 000000000..75b80daab --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousThursday = void 0; + +var _index = require("../previousThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousThursday = (exports.previousThursday = (0, _index2.convertToFP)( + _index.previousThursday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousThursday.d.cts b/node_modules/date-fns/fp/previousThursday.d.cts new file mode 100644 index 000000000..8121402ae --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday.d.cts @@ -0,0 +1,4 @@ +export declare const previousThursday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousThursday.d.ts b/node_modules/date-fns/fp/previousThursday.d.ts new file mode 100644 index 000000000..8121402ae --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday.d.ts @@ -0,0 +1,4 @@ +export declare const previousThursday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousThursday.js b/node_modules/date-fns/fp/previousThursday.js new file mode 100644 index 000000000..5c4ddbeeb --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousThursday as fn } from "../previousThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousThursday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousThursday; diff --git a/node_modules/date-fns/fp/previousThursdayWithOptions.cjs b/node_modules/date-fns/fp/previousThursdayWithOptions.cjs new file mode 100644 index 000000000..b5c728f88 --- /dev/null +++ b/node_modules/date-fns/fp/previousThursdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousThursdayWithOptions = void 0; + +var _index = require("../previousThursday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousThursdayWithOptions = (exports.previousThursdayWithOptions = (0, +_index2.convertToFP)(_index.previousThursday, 2)); diff --git a/node_modules/date-fns/fp/previousThursdayWithOptions.d.cts b/node_modules/date-fns/fp/previousThursdayWithOptions.d.cts new file mode 100644 index 000000000..49f1ccd7d --- /dev/null +++ b/node_modules/date-fns/fp/previousThursdayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousThursdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousThursday.ts").PreviousThursdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousThursdayWithOptions.d.ts b/node_modules/date-fns/fp/previousThursdayWithOptions.d.ts new file mode 100644 index 000000000..49f1ccd7d --- /dev/null +++ b/node_modules/date-fns/fp/previousThursdayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousThursdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousThursday.ts").PreviousThursdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousThursdayWithOptions.js b/node_modules/date-fns/fp/previousThursdayWithOptions.js new file mode 100644 index 000000000..10e96b9d8 --- /dev/null +++ b/node_modules/date-fns/fp/previousThursdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousThursday as fn } from "../previousThursday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousThursdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousThursdayWithOptions; diff --git a/node_modules/date-fns/fp/previousTuesday.cjs b/node_modules/date-fns/fp/previousTuesday.cjs new file mode 100644 index 000000000..3181f013d --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousTuesday = void 0; + +var _index = require("../previousTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousTuesday = (exports.previousTuesday = (0, _index2.convertToFP)( + _index.previousTuesday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousTuesday.d.cts b/node_modules/date-fns/fp/previousTuesday.d.cts new file mode 100644 index 000000000..5baf575eb --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday.d.cts @@ -0,0 +1,4 @@ +export declare const previousTuesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousTuesday.d.ts b/node_modules/date-fns/fp/previousTuesday.d.ts new file mode 100644 index 000000000..5baf575eb --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday.d.ts @@ -0,0 +1,4 @@ +export declare const previousTuesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousTuesday.js b/node_modules/date-fns/fp/previousTuesday.js new file mode 100644 index 000000000..d0fad07eb --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousTuesday as fn } from "../previousTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousTuesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousTuesday; diff --git a/node_modules/date-fns/fp/previousTuesdayWithOptions.cjs b/node_modules/date-fns/fp/previousTuesdayWithOptions.cjs new file mode 100644 index 000000000..aa9c47748 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousTuesdayWithOptions = void 0; + +var _index = require("../previousTuesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousTuesdayWithOptions = (exports.previousTuesdayWithOptions = (0, +_index2.convertToFP)(_index.previousTuesday, 2)); diff --git a/node_modules/date-fns/fp/previousTuesdayWithOptions.d.cts b/node_modules/date-fns/fp/previousTuesdayWithOptions.d.cts new file mode 100644 index 000000000..4eb1d9af6 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesdayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousTuesdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousTuesday.ts").PreviousTuesdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousTuesdayWithOptions.d.ts b/node_modules/date-fns/fp/previousTuesdayWithOptions.d.ts new file mode 100644 index 000000000..4eb1d9af6 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesdayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousTuesdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousTuesday.ts").PreviousTuesdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousTuesdayWithOptions.js b/node_modules/date-fns/fp/previousTuesdayWithOptions.js new file mode 100644 index 000000000..fe82e7344 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousTuesday as fn } from "../previousTuesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousTuesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousTuesdayWithOptions; diff --git a/node_modules/date-fns/fp/previousWednesday.cjs b/node_modules/date-fns/fp/previousWednesday.cjs new file mode 100644 index 000000000..9203ec0d9 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.previousWednesday = void 0; + +var _index = require("../previousWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousWednesday = (exports.previousWednesday = (0, _index2.convertToFP)( + _index.previousWednesday, + 1, +)); diff --git a/node_modules/date-fns/fp/previousWednesday.d.cts b/node_modules/date-fns/fp/previousWednesday.d.cts new file mode 100644 index 000000000..a7192ec9e --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday.d.cts @@ -0,0 +1,4 @@ +export declare const previousWednesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousWednesday.d.ts b/node_modules/date-fns/fp/previousWednesday.d.ts new file mode 100644 index 000000000..a7192ec9e --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday.d.ts @@ -0,0 +1,4 @@ +export declare const previousWednesday: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousWednesday.js b/node_modules/date-fns/fp/previousWednesday.js new file mode 100644 index 000000000..ed2bf012a --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousWednesday as fn } from "../previousWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousWednesday = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default previousWednesday; diff --git a/node_modules/date-fns/fp/previousWednesdayWithOptions.cjs b/node_modules/date-fns/fp/previousWednesdayWithOptions.cjs new file mode 100644 index 000000000..0adca9a59 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesdayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.previousWednesdayWithOptions = void 0; + +var _index = require("../previousWednesday.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const previousWednesdayWithOptions = (exports.previousWednesdayWithOptions = (0, +_index2.convertToFP)(_index.previousWednesday, 2)); diff --git a/node_modules/date-fns/fp/previousWednesdayWithOptions.d.cts b/node_modules/date-fns/fp/previousWednesdayWithOptions.d.cts new file mode 100644 index 000000000..55373b600 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesdayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const previousWednesdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousWednesday.ts").PreviousWednesdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousWednesdayWithOptions.d.ts b/node_modules/date-fns/fp/previousWednesdayWithOptions.d.ts new file mode 100644 index 000000000..55373b600 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesdayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const previousWednesdayWithOptions: import("./types.ts").FPFn2< + Date, + | import("../previousWednesday.ts").PreviousWednesdayOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/previousWednesdayWithOptions.js b/node_modules/date-fns/fp/previousWednesdayWithOptions.js new file mode 100644 index 000000000..1a26d71a7 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesdayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { previousWednesday as fn } from "../previousWednesday.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const previousWednesdayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default previousWednesdayWithOptions; diff --git a/node_modules/date-fns/fp/quartersToMonths.cjs b/node_modules/date-fns/fp/quartersToMonths.cjs new file mode 100644 index 000000000..dea4cffd9 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.quartersToMonths = void 0; + +var _index = require("../quartersToMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const quartersToMonths = (exports.quartersToMonths = (0, _index2.convertToFP)( + _index.quartersToMonths, + 1, +)); diff --git a/node_modules/date-fns/fp/quartersToMonths.d.cts b/node_modules/date-fns/fp/quartersToMonths.d.cts new file mode 100644 index 000000000..47032589a --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths.d.cts @@ -0,0 +1,4 @@ +export declare const quartersToMonths: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/quartersToMonths.d.ts b/node_modules/date-fns/fp/quartersToMonths.d.ts new file mode 100644 index 000000000..47032589a --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths.d.ts @@ -0,0 +1,4 @@ +export declare const quartersToMonths: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/quartersToMonths.js b/node_modules/date-fns/fp/quartersToMonths.js new file mode 100644 index 000000000..083049e16 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { quartersToMonths as fn } from "../quartersToMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const quartersToMonths = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default quartersToMonths; diff --git a/node_modules/date-fns/fp/quartersToYears.cjs b/node_modules/date-fns/fp/quartersToYears.cjs new file mode 100644 index 000000000..c68d89aa8 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.quartersToYears = void 0; + +var _index = require("../quartersToYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const quartersToYears = (exports.quartersToYears = (0, _index2.convertToFP)( + _index.quartersToYears, + 1, +)); diff --git a/node_modules/date-fns/fp/quartersToYears.d.cts b/node_modules/date-fns/fp/quartersToYears.d.cts new file mode 100644 index 000000000..1f6dd99e1 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears.d.cts @@ -0,0 +1,4 @@ +export declare const quartersToYears: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/quartersToYears.d.ts b/node_modules/date-fns/fp/quartersToYears.d.ts new file mode 100644 index 000000000..1f6dd99e1 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears.d.ts @@ -0,0 +1,4 @@ +export declare const quartersToYears: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/quartersToYears.js b/node_modules/date-fns/fp/quartersToYears.js new file mode 100644 index 000000000..152d5743a --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { quartersToYears as fn } from "../quartersToYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const quartersToYears = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default quartersToYears; diff --git a/node_modules/date-fns/fp/roundToNearestHours.cjs b/node_modules/date-fns/fp/roundToNearestHours.cjs new file mode 100644 index 000000000..1c66eeb16 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHours.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.roundToNearestHours = void 0; + +var _index = require("../roundToNearestHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const roundToNearestHours = (exports.roundToNearestHours = (0, +_index2.convertToFP)(_index.roundToNearestHours, 1)); diff --git a/node_modules/date-fns/fp/roundToNearestHours.d.cts b/node_modules/date-fns/fp/roundToNearestHours.d.cts new file mode 100644 index 000000000..f83b73cff --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHours.d.cts @@ -0,0 +1,4 @@ +export declare const roundToNearestHours: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestHours.d.ts b/node_modules/date-fns/fp/roundToNearestHours.d.ts new file mode 100644 index 000000000..f83b73cff --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHours.d.ts @@ -0,0 +1,4 @@ +export declare const roundToNearestHours: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestHours.js b/node_modules/date-fns/fp/roundToNearestHours.js new file mode 100644 index 000000000..c7fd1cd97 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { roundToNearestHours as fn } from "../roundToNearestHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const roundToNearestHours = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default roundToNearestHours; diff --git a/node_modules/date-fns/fp/roundToNearestHoursWithOptions.cjs b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.cjs new file mode 100644 index 000000000..1f17c7233 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.roundToNearestHoursWithOptions = void 0; + +var _index = require("../roundToNearestHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const roundToNearestHoursWithOptions = (exports.roundToNearestHoursWithOptions = + (0, _index2.convertToFP)(_index.roundToNearestHours, 2)); diff --git a/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.cts b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.cts new file mode 100644 index 000000000..98cb8acf8 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const roundToNearestHoursWithOptions: import("./types.ts").FPFn2< + Date, + | import("../roundToNearestHours.ts").RoundToNearestHoursOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.ts b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.ts new file mode 100644 index 000000000..98cb8acf8 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const roundToNearestHoursWithOptions: import("./types.ts").FPFn2< + Date, + | import("../roundToNearestHours.ts").RoundToNearestHoursOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestHoursWithOptions.js b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.js new file mode 100644 index 000000000..897edc6ac --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { roundToNearestHours as fn } from "../roundToNearestHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const roundToNearestHoursWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default roundToNearestHoursWithOptions; diff --git a/node_modules/date-fns/fp/roundToNearestMinutes.cjs b/node_modules/date-fns/fp/roundToNearestMinutes.cjs new file mode 100644 index 000000000..046d36f14 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.roundToNearestMinutes = void 0; + +var _index = require("../roundToNearestMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const roundToNearestMinutes = (exports.roundToNearestMinutes = (0, +_index2.convertToFP)(_index.roundToNearestMinutes, 1)); diff --git a/node_modules/date-fns/fp/roundToNearestMinutes.d.cts b/node_modules/date-fns/fp/roundToNearestMinutes.d.cts new file mode 100644 index 000000000..ba28de022 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes.d.cts @@ -0,0 +1,4 @@ +export declare const roundToNearestMinutes: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutes.d.ts b/node_modules/date-fns/fp/roundToNearestMinutes.d.ts new file mode 100644 index 000000000..ba28de022 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes.d.ts @@ -0,0 +1,4 @@ +export declare const roundToNearestMinutes: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutes.js b/node_modules/date-fns/fp/roundToNearestMinutes.js new file mode 100644 index 000000000..9878bc7ea --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { roundToNearestMinutes as fn } from "../roundToNearestMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const roundToNearestMinutes = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default roundToNearestMinutes; diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.cjs b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.cjs new file mode 100644 index 000000000..9f8f69988 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.roundToNearestMinutesWithOptions = void 0; + +var _index = require("../roundToNearestMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const roundToNearestMinutesWithOptions = + (exports.roundToNearestMinutesWithOptions = (0, _index2.convertToFP)( + _index.roundToNearestMinutes, + 2, + )); diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.cts b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.cts new file mode 100644 index 000000000..e7c2e011e --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const roundToNearestMinutesWithOptions: import("./types.ts").FPFn2< + Date, + | import("../roundToNearestMinutes.ts").RoundToNearestMinutesOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.ts b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.ts new file mode 100644 index 000000000..e7c2e011e --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const roundToNearestMinutesWithOptions: import("./types.ts").FPFn2< + Date, + | import("../roundToNearestMinutes.ts").RoundToNearestMinutesOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.js b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.js new file mode 100644 index 000000000..7b15827d0 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { roundToNearestMinutes as fn } from "../roundToNearestMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const roundToNearestMinutesWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default roundToNearestMinutesWithOptions; diff --git a/node_modules/date-fns/fp/secondsToHours.cjs b/node_modules/date-fns/fp/secondsToHours.cjs new file mode 100644 index 000000000..964c3a674 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.secondsToHours = void 0; + +var _index = require("../secondsToHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const secondsToHours = (exports.secondsToHours = (0, _index2.convertToFP)( + _index.secondsToHours, + 1, +)); diff --git a/node_modules/date-fns/fp/secondsToHours.d.cts b/node_modules/date-fns/fp/secondsToHours.d.cts new file mode 100644 index 000000000..9fe40ffe5 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours.d.cts @@ -0,0 +1,4 @@ +export declare const secondsToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToHours.d.ts b/node_modules/date-fns/fp/secondsToHours.d.ts new file mode 100644 index 000000000..9fe40ffe5 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours.d.ts @@ -0,0 +1,4 @@ +export declare const secondsToHours: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToHours.js b/node_modules/date-fns/fp/secondsToHours.js new file mode 100644 index 000000000..678dd3cb3 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { secondsToHours as fn } from "../secondsToHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const secondsToHours = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default secondsToHours; diff --git a/node_modules/date-fns/fp/secondsToMilliseconds.cjs b/node_modules/date-fns/fp/secondsToMilliseconds.cjs new file mode 100644 index 000000000..08b889c4a --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.secondsToMilliseconds = void 0; + +var _index = require("../secondsToMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const secondsToMilliseconds = (exports.secondsToMilliseconds = (0, +_index2.convertToFP)(_index.secondsToMilliseconds, 1)); diff --git a/node_modules/date-fns/fp/secondsToMilliseconds.d.cts b/node_modules/date-fns/fp/secondsToMilliseconds.d.cts new file mode 100644 index 000000000..a82801435 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds.d.cts @@ -0,0 +1,4 @@ +export declare const secondsToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToMilliseconds.d.ts b/node_modules/date-fns/fp/secondsToMilliseconds.d.ts new file mode 100644 index 000000000..a82801435 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds.d.ts @@ -0,0 +1,4 @@ +export declare const secondsToMilliseconds: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToMilliseconds.js b/node_modules/date-fns/fp/secondsToMilliseconds.js new file mode 100644 index 000000000..cfcfe948d --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { secondsToMilliseconds as fn } from "../secondsToMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const secondsToMilliseconds = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default secondsToMilliseconds; diff --git a/node_modules/date-fns/fp/secondsToMinutes.cjs b/node_modules/date-fns/fp/secondsToMinutes.cjs new file mode 100644 index 000000000..933616637 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.secondsToMinutes = void 0; + +var _index = require("../secondsToMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const secondsToMinutes = (exports.secondsToMinutes = (0, _index2.convertToFP)( + _index.secondsToMinutes, + 1, +)); diff --git a/node_modules/date-fns/fp/secondsToMinutes.d.cts b/node_modules/date-fns/fp/secondsToMinutes.d.cts new file mode 100644 index 000000000..7323f26a5 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes.d.cts @@ -0,0 +1,4 @@ +export declare const secondsToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToMinutes.d.ts b/node_modules/date-fns/fp/secondsToMinutes.d.ts new file mode 100644 index 000000000..7323f26a5 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes.d.ts @@ -0,0 +1,4 @@ +export declare const secondsToMinutes: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/secondsToMinutes.js b/node_modules/date-fns/fp/secondsToMinutes.js new file mode 100644 index 000000000..a2f22758f --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { secondsToMinutes as fn } from "../secondsToMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const secondsToMinutes = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default secondsToMinutes; diff --git a/node_modules/date-fns/fp/set.cjs b/node_modules/date-fns/fp/set.cjs new file mode 100644 index 000000000..d97ad73b6 --- /dev/null +++ b/node_modules/date-fns/fp/set.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.set = void 0; + +var _index = require("../set.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const set = (exports.set = (0, _index2.convertToFP)(_index.set, 2)); diff --git a/node_modules/date-fns/fp/set.d.cts b/node_modules/date-fns/fp/set.d.cts new file mode 100644 index 000000000..c60ccc6d1 --- /dev/null +++ b/node_modules/date-fns/fp/set.d.cts @@ -0,0 +1,5 @@ +export declare const set: import("./types.ts").FPFn2< + Date, + import("../fp.ts").DateValues, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/set.d.ts b/node_modules/date-fns/fp/set.d.ts new file mode 100644 index 000000000..c60ccc6d1 --- /dev/null +++ b/node_modules/date-fns/fp/set.d.ts @@ -0,0 +1,5 @@ +export declare const set: import("./types.ts").FPFn2< + Date, + import("../fp.ts").DateValues, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/set.js b/node_modules/date-fns/fp/set.js new file mode 100644 index 000000000..eae46a65f --- /dev/null +++ b/node_modules/date-fns/fp/set.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { set as fn } from "../set.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const set = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default set; diff --git a/node_modules/date-fns/fp/setDate.cjs b/node_modules/date-fns/fp/setDate.cjs new file mode 100644 index 000000000..d3769154b --- /dev/null +++ b/node_modules/date-fns/fp/setDate.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.setDate = void 0; + +var _index = require("../setDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDate = (exports.setDate = (0, _index2.convertToFP)(_index.setDate, 2)); diff --git a/node_modules/date-fns/fp/setDate.d.cts b/node_modules/date-fns/fp/setDate.d.cts new file mode 100644 index 000000000..dd84d1dbf --- /dev/null +++ b/node_modules/date-fns/fp/setDate.d.cts @@ -0,0 +1,5 @@ +export declare const setDate: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDate.d.ts b/node_modules/date-fns/fp/setDate.d.ts new file mode 100644 index 000000000..dd84d1dbf --- /dev/null +++ b/node_modules/date-fns/fp/setDate.d.ts @@ -0,0 +1,5 @@ +export declare const setDate: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDate.js b/node_modules/date-fns/fp/setDate.js new file mode 100644 index 000000000..c7d45fd12 --- /dev/null +++ b/node_modules/date-fns/fp/setDate.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDate as fn } from "../setDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDate = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setDate; diff --git a/node_modules/date-fns/fp/setDateWithOptions.cjs b/node_modules/date-fns/fp/setDateWithOptions.cjs new file mode 100644 index 000000000..1dbbd54e0 --- /dev/null +++ b/node_modules/date-fns/fp/setDateWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setDateWithOptions = void 0; + +var _index = require("../setDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDateWithOptions = (exports.setDateWithOptions = (0, +_index2.convertToFP)(_index.setDate, 3)); diff --git a/node_modules/date-fns/fp/setDateWithOptions.d.cts b/node_modules/date-fns/fp/setDateWithOptions.d.cts new file mode 100644 index 000000000..a16d0a74f --- /dev/null +++ b/node_modules/date-fns/fp/setDateWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setDateWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDate.ts").SetDateOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDateWithOptions.d.ts b/node_modules/date-fns/fp/setDateWithOptions.d.ts new file mode 100644 index 000000000..a16d0a74f --- /dev/null +++ b/node_modules/date-fns/fp/setDateWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setDateWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDate.ts").SetDateOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDateWithOptions.js b/node_modules/date-fns/fp/setDateWithOptions.js new file mode 100644 index 000000000..1c06868fa --- /dev/null +++ b/node_modules/date-fns/fp/setDateWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDate as fn } from "../setDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDateWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setDateWithOptions; diff --git a/node_modules/date-fns/fp/setDay.cjs b/node_modules/date-fns/fp/setDay.cjs new file mode 100644 index 000000000..2a5fbf650 --- /dev/null +++ b/node_modules/date-fns/fp/setDay.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.setDay = void 0; + +var _index = require("../setDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDay = (exports.setDay = (0, _index2.convertToFP)(_index.setDay, 2)); diff --git a/node_modules/date-fns/fp/setDay.d.cts b/node_modules/date-fns/fp/setDay.d.cts new file mode 100644 index 000000000..c96ae3de4 --- /dev/null +++ b/node_modules/date-fns/fp/setDay.d.cts @@ -0,0 +1,5 @@ +export declare const setDay: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDay.d.ts b/node_modules/date-fns/fp/setDay.d.ts new file mode 100644 index 000000000..c96ae3de4 --- /dev/null +++ b/node_modules/date-fns/fp/setDay.d.ts @@ -0,0 +1,5 @@ +export declare const setDay: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDay.js b/node_modules/date-fns/fp/setDay.js new file mode 100644 index 000000000..82d6d88ad --- /dev/null +++ b/node_modules/date-fns/fp/setDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDay as fn } from "../setDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDay = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setDay; diff --git a/node_modules/date-fns/fp/setDayOfYear.cjs b/node_modules/date-fns/fp/setDayOfYear.cjs new file mode 100644 index 000000000..6b417c068 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setDayOfYear = void 0; + +var _index = require("../setDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDayOfYear = (exports.setDayOfYear = (0, _index2.convertToFP)( + _index.setDayOfYear, + 2, +)); diff --git a/node_modules/date-fns/fp/setDayOfYear.d.cts b/node_modules/date-fns/fp/setDayOfYear.d.cts new file mode 100644 index 000000000..bb5cda385 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear.d.cts @@ -0,0 +1,5 @@ +export declare const setDayOfYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayOfYear.d.ts b/node_modules/date-fns/fp/setDayOfYear.d.ts new file mode 100644 index 000000000..bb5cda385 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear.d.ts @@ -0,0 +1,5 @@ +export declare const setDayOfYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayOfYear.js b/node_modules/date-fns/fp/setDayOfYear.js new file mode 100644 index 000000000..3859d43df --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDayOfYear as fn } from "../setDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDayOfYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setDayOfYear; diff --git a/node_modules/date-fns/fp/setDayOfYearWithOptions.cjs b/node_modules/date-fns/fp/setDayOfYearWithOptions.cjs new file mode 100644 index 000000000..8bf09490a --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setDayOfYearWithOptions = void 0; + +var _index = require("../setDayOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDayOfYearWithOptions = (exports.setDayOfYearWithOptions = (0, +_index2.convertToFP)(_index.setDayOfYear, 3)); diff --git a/node_modules/date-fns/fp/setDayOfYearWithOptions.d.cts b/node_modules/date-fns/fp/setDayOfYearWithOptions.d.cts new file mode 100644 index 000000000..f23113971 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setDayOfYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDayOfYear.ts").SetDayOfYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayOfYearWithOptions.d.ts b/node_modules/date-fns/fp/setDayOfYearWithOptions.d.ts new file mode 100644 index 000000000..f23113971 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setDayOfYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDayOfYear.ts").SetDayOfYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayOfYearWithOptions.js b/node_modules/date-fns/fp/setDayOfYearWithOptions.js new file mode 100644 index 000000000..c411a7d28 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDayOfYear as fn } from "../setDayOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDayOfYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setDayOfYearWithOptions; diff --git a/node_modules/date-fns/fp/setDayWithOptions.cjs b/node_modules/date-fns/fp/setDayWithOptions.cjs new file mode 100644 index 000000000..d129dc963 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setDayWithOptions = void 0; + +var _index = require("../setDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setDayWithOptions = (exports.setDayWithOptions = (0, _index2.convertToFP)( + _index.setDay, + 3, +)); diff --git a/node_modules/date-fns/fp/setDayWithOptions.d.cts b/node_modules/date-fns/fp/setDayWithOptions.d.cts new file mode 100644 index 000000000..428fea141 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDay.ts").SetDayOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayWithOptions.d.ts b/node_modules/date-fns/fp/setDayWithOptions.d.ts new file mode 100644 index 000000000..428fea141 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setDayWithOptions: import("./types.ts").FPFn3< + Date, + import("../setDay.ts").SetDayOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setDayWithOptions.js b/node_modules/date-fns/fp/setDayWithOptions.js new file mode 100644 index 000000000..ac2d97b73 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setDay as fn } from "../setDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setDayWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setDayWithOptions; diff --git a/node_modules/date-fns/fp/setHours.cjs b/node_modules/date-fns/fp/setHours.cjs new file mode 100644 index 000000000..7526a6eb9 --- /dev/null +++ b/node_modules/date-fns/fp/setHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setHours = void 0; + +var _index = require("../setHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setHours = (exports.setHours = (0, _index2.convertToFP)( + _index.setHours, + 2, +)); diff --git a/node_modules/date-fns/fp/setHours.d.cts b/node_modules/date-fns/fp/setHours.d.cts new file mode 100644 index 000000000..c41a70928 --- /dev/null +++ b/node_modules/date-fns/fp/setHours.d.cts @@ -0,0 +1,5 @@ +export declare const setHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setHours.d.ts b/node_modules/date-fns/fp/setHours.d.ts new file mode 100644 index 000000000..c41a70928 --- /dev/null +++ b/node_modules/date-fns/fp/setHours.d.ts @@ -0,0 +1,5 @@ +export declare const setHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setHours.js b/node_modules/date-fns/fp/setHours.js new file mode 100644 index 000000000..b1c8df7ba --- /dev/null +++ b/node_modules/date-fns/fp/setHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setHours as fn } from "../setHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setHours = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setHours; diff --git a/node_modules/date-fns/fp/setHoursWithOptions.cjs b/node_modules/date-fns/fp/setHoursWithOptions.cjs new file mode 100644 index 000000000..3adc3f216 --- /dev/null +++ b/node_modules/date-fns/fp/setHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setHoursWithOptions = void 0; + +var _index = require("../setHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setHoursWithOptions = (exports.setHoursWithOptions = (0, +_index2.convertToFP)(_index.setHours, 3)); diff --git a/node_modules/date-fns/fp/setHoursWithOptions.d.cts b/node_modules/date-fns/fp/setHoursWithOptions.d.cts new file mode 100644 index 000000000..cc01be565 --- /dev/null +++ b/node_modules/date-fns/fp/setHoursWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../setHours.ts").SetHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setHoursWithOptions.d.ts b/node_modules/date-fns/fp/setHoursWithOptions.d.ts new file mode 100644 index 000000000..cc01be565 --- /dev/null +++ b/node_modules/date-fns/fp/setHoursWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../setHours.ts").SetHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setHoursWithOptions.js b/node_modules/date-fns/fp/setHoursWithOptions.js new file mode 100644 index 000000000..96b241db3 --- /dev/null +++ b/node_modules/date-fns/fp/setHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setHours as fn } from "../setHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setHoursWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setHoursWithOptions; diff --git a/node_modules/date-fns/fp/setISODay.cjs b/node_modules/date-fns/fp/setISODay.cjs new file mode 100644 index 000000000..d80ee56a4 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setISODay = void 0; + +var _index = require("../setISODay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISODay = (exports.setISODay = (0, _index2.convertToFP)( + _index.setISODay, + 2, +)); diff --git a/node_modules/date-fns/fp/setISODay.d.cts b/node_modules/date-fns/fp/setISODay.d.cts new file mode 100644 index 000000000..b9051fcc0 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay.d.cts @@ -0,0 +1,5 @@ +export declare const setISODay: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISODay.d.ts b/node_modules/date-fns/fp/setISODay.d.ts new file mode 100644 index 000000000..b9051fcc0 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay.d.ts @@ -0,0 +1,5 @@ +export declare const setISODay: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISODay.js b/node_modules/date-fns/fp/setISODay.js new file mode 100644 index 000000000..d065e3814 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISODay as fn } from "../setISODay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISODay = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setISODay; diff --git a/node_modules/date-fns/fp/setISODayWithOptions.cjs b/node_modules/date-fns/fp/setISODayWithOptions.cjs new file mode 100644 index 000000000..d6a952861 --- /dev/null +++ b/node_modules/date-fns/fp/setISODayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setISODayWithOptions = void 0; + +var _index = require("../setISODay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISODayWithOptions = (exports.setISODayWithOptions = (0, +_index2.convertToFP)(_index.setISODay, 3)); diff --git a/node_modules/date-fns/fp/setISODayWithOptions.d.cts b/node_modules/date-fns/fp/setISODayWithOptions.d.cts new file mode 100644 index 000000000..2f26e0780 --- /dev/null +++ b/node_modules/date-fns/fp/setISODayWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setISODayWithOptions: import("./types.ts").FPFn3< + Date, + import("../setISODay.ts").SetISODayOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISODayWithOptions.d.ts b/node_modules/date-fns/fp/setISODayWithOptions.d.ts new file mode 100644 index 000000000..2f26e0780 --- /dev/null +++ b/node_modules/date-fns/fp/setISODayWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setISODayWithOptions: import("./types.ts").FPFn3< + Date, + import("../setISODay.ts").SetISODayOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISODayWithOptions.js b/node_modules/date-fns/fp/setISODayWithOptions.js new file mode 100644 index 000000000..368968681 --- /dev/null +++ b/node_modules/date-fns/fp/setISODayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISODay as fn } from "../setISODay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISODayWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setISODayWithOptions; diff --git a/node_modules/date-fns/fp/setISOWeek.cjs b/node_modules/date-fns/fp/setISOWeek.cjs new file mode 100644 index 000000000..9833a568d --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setISOWeek = void 0; + +var _index = require("../setISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISOWeek = (exports.setISOWeek = (0, _index2.convertToFP)( + _index.setISOWeek, + 2, +)); diff --git a/node_modules/date-fns/fp/setISOWeek.d.cts b/node_modules/date-fns/fp/setISOWeek.d.cts new file mode 100644 index 000000000..607f3cdb6 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek.d.cts @@ -0,0 +1,5 @@ +export declare const setISOWeek: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeek.d.ts b/node_modules/date-fns/fp/setISOWeek.d.ts new file mode 100644 index 000000000..607f3cdb6 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek.d.ts @@ -0,0 +1,5 @@ +export declare const setISOWeek: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeek.js b/node_modules/date-fns/fp/setISOWeek.js new file mode 100644 index 000000000..b730c3bfc --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISOWeek as fn } from "../setISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISOWeek = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setISOWeek; diff --git a/node_modules/date-fns/fp/setISOWeekWithOptions.cjs b/node_modules/date-fns/fp/setISOWeekWithOptions.cjs new file mode 100644 index 000000000..10835b682 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setISOWeekWithOptions = void 0; + +var _index = require("../setISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISOWeekWithOptions = (exports.setISOWeekWithOptions = (0, +_index2.convertToFP)(_index.setISOWeek, 3)); diff --git a/node_modules/date-fns/fp/setISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/setISOWeekWithOptions.d.cts new file mode 100644 index 000000000..2f4613c76 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setISOWeekWithOptions: import("./types.ts").FPFn3< + Date, + import("../setISOWeek.ts").SetISOWeekOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/setISOWeekWithOptions.d.ts new file mode 100644 index 000000000..2f4613c76 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setISOWeekWithOptions: import("./types.ts").FPFn3< + Date, + import("../setISOWeek.ts").SetISOWeekOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekWithOptions.js b/node_modules/date-fns/fp/setISOWeekWithOptions.js new file mode 100644 index 000000000..5e2772aba --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISOWeek as fn } from "../setISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISOWeekWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/setISOWeekYear.cjs b/node_modules/date-fns/fp/setISOWeekYear.cjs new file mode 100644 index 000000000..207a757e5 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setISOWeekYear = void 0; + +var _index = require("../setISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISOWeekYear = (exports.setISOWeekYear = (0, _index2.convertToFP)( + _index.setISOWeekYear, + 2, +)); diff --git a/node_modules/date-fns/fp/setISOWeekYear.d.cts b/node_modules/date-fns/fp/setISOWeekYear.d.cts new file mode 100644 index 000000000..132385050 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear.d.cts @@ -0,0 +1,5 @@ +export declare const setISOWeekYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekYear.d.ts b/node_modules/date-fns/fp/setISOWeekYear.d.ts new file mode 100644 index 000000000..132385050 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear.d.ts @@ -0,0 +1,5 @@ +export declare const setISOWeekYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekYear.js b/node_modules/date-fns/fp/setISOWeekYear.js new file mode 100644 index 000000000..2437c7c9a --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISOWeekYear as fn } from "../setISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISOWeekYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setISOWeekYear; diff --git a/node_modules/date-fns/fp/setISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/setISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..f53d10c13 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setISOWeekYearWithOptions = void 0; + +var _index = require("../setISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setISOWeekYearWithOptions = (exports.setISOWeekYearWithOptions = (0, +_index2.convertToFP)(_index.setISOWeekYear, 3)); diff --git a/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..adea62be0 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const setISOWeekYearWithOptions: import("./types.ts").FPFn3< + Date, + | import("../setISOWeekYear.ts").SetISOWeekYearOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..adea62be0 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYearWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const setISOWeekYearWithOptions: import("./types.ts").FPFn3< + Date, + | import("../setISOWeekYear.ts").SetISOWeekYearOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setISOWeekYearWithOptions.js b/node_modules/date-fns/fp/setISOWeekYearWithOptions.js new file mode 100644 index 000000000..e3987c7c1 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setISOWeekYear as fn } from "../setISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setISOWeekYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/setMilliseconds.cjs b/node_modules/date-fns/fp/setMilliseconds.cjs new file mode 100644 index 000000000..38f142ed6 --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setMilliseconds = void 0; + +var _index = require("../setMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMilliseconds = (exports.setMilliseconds = (0, _index2.convertToFP)( + _index.setMilliseconds, + 2, +)); diff --git a/node_modules/date-fns/fp/setMilliseconds.d.cts b/node_modules/date-fns/fp/setMilliseconds.d.cts new file mode 100644 index 000000000..e5be05ffc --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds.d.cts @@ -0,0 +1,5 @@ +export declare const setMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMilliseconds.d.ts b/node_modules/date-fns/fp/setMilliseconds.d.ts new file mode 100644 index 000000000..e5be05ffc --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds.d.ts @@ -0,0 +1,5 @@ +export declare const setMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMilliseconds.js b/node_modules/date-fns/fp/setMilliseconds.js new file mode 100644 index 000000000..9a5690749 --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMilliseconds as fn } from "../setMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMilliseconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setMilliseconds; diff --git a/node_modules/date-fns/fp/setMillisecondsWithOptions.cjs b/node_modules/date-fns/fp/setMillisecondsWithOptions.cjs new file mode 100644 index 000000000..d171eea98 --- /dev/null +++ b/node_modules/date-fns/fp/setMillisecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setMillisecondsWithOptions = void 0; + +var _index = require("../setMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMillisecondsWithOptions = (exports.setMillisecondsWithOptions = (0, +_index2.convertToFP)(_index.setMilliseconds, 3)); diff --git a/node_modules/date-fns/fp/setMillisecondsWithOptions.d.cts b/node_modules/date-fns/fp/setMillisecondsWithOptions.d.cts new file mode 100644 index 000000000..9a6aaa7f9 --- /dev/null +++ b/node_modules/date-fns/fp/setMillisecondsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const setMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../setMilliseconds.ts").SetMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMillisecondsWithOptions.d.ts b/node_modules/date-fns/fp/setMillisecondsWithOptions.d.ts new file mode 100644 index 000000000..9a6aaa7f9 --- /dev/null +++ b/node_modules/date-fns/fp/setMillisecondsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const setMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../setMilliseconds.ts").SetMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMillisecondsWithOptions.js b/node_modules/date-fns/fp/setMillisecondsWithOptions.js new file mode 100644 index 000000000..1c71d062f --- /dev/null +++ b/node_modules/date-fns/fp/setMillisecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMilliseconds as fn } from "../setMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMillisecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setMillisecondsWithOptions; diff --git a/node_modules/date-fns/fp/setMinutes.cjs b/node_modules/date-fns/fp/setMinutes.cjs new file mode 100644 index 000000000..ca8e2ed59 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setMinutes = void 0; + +var _index = require("../setMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMinutes = (exports.setMinutes = (0, _index2.convertToFP)( + _index.setMinutes, + 2, +)); diff --git a/node_modules/date-fns/fp/setMinutes.d.cts b/node_modules/date-fns/fp/setMinutes.d.cts new file mode 100644 index 000000000..ccb7e8b5e --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes.d.cts @@ -0,0 +1,5 @@ +export declare const setMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMinutes.d.ts b/node_modules/date-fns/fp/setMinutes.d.ts new file mode 100644 index 000000000..ccb7e8b5e --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes.d.ts @@ -0,0 +1,5 @@ +export declare const setMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMinutes.js b/node_modules/date-fns/fp/setMinutes.js new file mode 100644 index 000000000..81301d6e6 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMinutes as fn } from "../setMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMinutes = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setMinutes; diff --git a/node_modules/date-fns/fp/setMinutesWithOptions.cjs b/node_modules/date-fns/fp/setMinutesWithOptions.cjs new file mode 100644 index 000000000..621076779 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutesWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setMinutesWithOptions = void 0; + +var _index = require("../setMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMinutesWithOptions = (exports.setMinutesWithOptions = (0, +_index2.convertToFP)(_index.setMinutes, 3)); diff --git a/node_modules/date-fns/fp/setMinutesWithOptions.d.cts b/node_modules/date-fns/fp/setMinutesWithOptions.d.cts new file mode 100644 index 000000000..65bb6973c --- /dev/null +++ b/node_modules/date-fns/fp/setMinutesWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../setMinutes.ts").SetMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMinutesWithOptions.d.ts b/node_modules/date-fns/fp/setMinutesWithOptions.d.ts new file mode 100644 index 000000000..65bb6973c --- /dev/null +++ b/node_modules/date-fns/fp/setMinutesWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../setMinutes.ts").SetMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMinutesWithOptions.js b/node_modules/date-fns/fp/setMinutesWithOptions.js new file mode 100644 index 000000000..7b39ff876 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMinutes as fn } from "../setMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMinutesWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setMinutesWithOptions; diff --git a/node_modules/date-fns/fp/setMonth.cjs b/node_modules/date-fns/fp/setMonth.cjs new file mode 100644 index 000000000..a08a23c0e --- /dev/null +++ b/node_modules/date-fns/fp/setMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setMonth = void 0; + +var _index = require("../setMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMonth = (exports.setMonth = (0, _index2.convertToFP)( + _index.setMonth, + 2, +)); diff --git a/node_modules/date-fns/fp/setMonth.d.cts b/node_modules/date-fns/fp/setMonth.d.cts new file mode 100644 index 000000000..177beb31a --- /dev/null +++ b/node_modules/date-fns/fp/setMonth.d.cts @@ -0,0 +1,5 @@ +export declare const setMonth: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMonth.d.ts b/node_modules/date-fns/fp/setMonth.d.ts new file mode 100644 index 000000000..177beb31a --- /dev/null +++ b/node_modules/date-fns/fp/setMonth.d.ts @@ -0,0 +1,5 @@ +export declare const setMonth: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMonth.js b/node_modules/date-fns/fp/setMonth.js new file mode 100644 index 000000000..09ec6e1c4 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMonth as fn } from "../setMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMonth = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setMonth; diff --git a/node_modules/date-fns/fp/setMonthWithOptions.cjs b/node_modules/date-fns/fp/setMonthWithOptions.cjs new file mode 100644 index 000000000..e21748b1c --- /dev/null +++ b/node_modules/date-fns/fp/setMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setMonthWithOptions = void 0; + +var _index = require("../setMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setMonthWithOptions = (exports.setMonthWithOptions = (0, +_index2.convertToFP)(_index.setMonth, 3)); diff --git a/node_modules/date-fns/fp/setMonthWithOptions.d.cts b/node_modules/date-fns/fp/setMonthWithOptions.d.cts new file mode 100644 index 000000000..83ea0d99d --- /dev/null +++ b/node_modules/date-fns/fp/setMonthWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setMonthWithOptions: import("./types.ts").FPFn3< + Date, + import("../setMonth.ts").SetMonthOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMonthWithOptions.d.ts b/node_modules/date-fns/fp/setMonthWithOptions.d.ts new file mode 100644 index 000000000..83ea0d99d --- /dev/null +++ b/node_modules/date-fns/fp/setMonthWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setMonthWithOptions: import("./types.ts").FPFn3< + Date, + import("../setMonth.ts").SetMonthOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setMonthWithOptions.js b/node_modules/date-fns/fp/setMonthWithOptions.js new file mode 100644 index 000000000..22ab48c53 --- /dev/null +++ b/node_modules/date-fns/fp/setMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setMonth as fn } from "../setMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setMonthWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setMonthWithOptions; diff --git a/node_modules/date-fns/fp/setQuarter.cjs b/node_modules/date-fns/fp/setQuarter.cjs new file mode 100644 index 000000000..d862a6102 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setQuarter = void 0; + +var _index = require("../setQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setQuarter = (exports.setQuarter = (0, _index2.convertToFP)( + _index.setQuarter, + 2, +)); diff --git a/node_modules/date-fns/fp/setQuarter.d.cts b/node_modules/date-fns/fp/setQuarter.d.cts new file mode 100644 index 000000000..4c8bb52a3 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter.d.cts @@ -0,0 +1,5 @@ +export declare const setQuarter: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setQuarter.d.ts b/node_modules/date-fns/fp/setQuarter.d.ts new file mode 100644 index 000000000..4c8bb52a3 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter.d.ts @@ -0,0 +1,5 @@ +export declare const setQuarter: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setQuarter.js b/node_modules/date-fns/fp/setQuarter.js new file mode 100644 index 000000000..fae099e01 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setQuarter as fn } from "../setQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setQuarter = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setQuarter; diff --git a/node_modules/date-fns/fp/setQuarterWithOptions.cjs b/node_modules/date-fns/fp/setQuarterWithOptions.cjs new file mode 100644 index 000000000..e94106c0c --- /dev/null +++ b/node_modules/date-fns/fp/setQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setQuarterWithOptions = void 0; + +var _index = require("../setQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setQuarterWithOptions = (exports.setQuarterWithOptions = (0, +_index2.convertToFP)(_index.setQuarter, 3)); diff --git a/node_modules/date-fns/fp/setQuarterWithOptions.d.cts b/node_modules/date-fns/fp/setQuarterWithOptions.d.cts new file mode 100644 index 000000000..f13a5aa7b --- /dev/null +++ b/node_modules/date-fns/fp/setQuarterWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setQuarterWithOptions: import("./types.ts").FPFn3< + Date, + import("../setQuarter.ts").SetQuarterOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setQuarterWithOptions.d.ts b/node_modules/date-fns/fp/setQuarterWithOptions.d.ts new file mode 100644 index 000000000..f13a5aa7b --- /dev/null +++ b/node_modules/date-fns/fp/setQuarterWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setQuarterWithOptions: import("./types.ts").FPFn3< + Date, + import("../setQuarter.ts").SetQuarterOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setQuarterWithOptions.js b/node_modules/date-fns/fp/setQuarterWithOptions.js new file mode 100644 index 000000000..11d4f87c1 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setQuarter as fn } from "../setQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setQuarterWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setQuarterWithOptions; diff --git a/node_modules/date-fns/fp/setSeconds.cjs b/node_modules/date-fns/fp/setSeconds.cjs new file mode 100644 index 000000000..505397013 --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setSeconds = void 0; + +var _index = require("../setSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setSeconds = (exports.setSeconds = (0, _index2.convertToFP)( + _index.setSeconds, + 2, +)); diff --git a/node_modules/date-fns/fp/setSeconds.d.cts b/node_modules/date-fns/fp/setSeconds.d.cts new file mode 100644 index 000000000..a643513ea --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds.d.cts @@ -0,0 +1,5 @@ +export declare const setSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setSeconds.d.ts b/node_modules/date-fns/fp/setSeconds.d.ts new file mode 100644 index 000000000..a643513ea --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds.d.ts @@ -0,0 +1,5 @@ +export declare const setSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setSeconds.js b/node_modules/date-fns/fp/setSeconds.js new file mode 100644 index 000000000..656554f9f --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setSeconds as fn } from "../setSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setSeconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setSeconds; diff --git a/node_modules/date-fns/fp/setSecondsWithOptions.cjs b/node_modules/date-fns/fp/setSecondsWithOptions.cjs new file mode 100644 index 000000000..2d6ee8b33 --- /dev/null +++ b/node_modules/date-fns/fp/setSecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setSecondsWithOptions = void 0; + +var _index = require("../setSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setSecondsWithOptions = (exports.setSecondsWithOptions = (0, +_index2.convertToFP)(_index.setSeconds, 3)); diff --git a/node_modules/date-fns/fp/setSecondsWithOptions.d.cts b/node_modules/date-fns/fp/setSecondsWithOptions.d.cts new file mode 100644 index 000000000..cca3e403e --- /dev/null +++ b/node_modules/date-fns/fp/setSecondsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../setSeconds.ts").SetSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setSecondsWithOptions.d.ts b/node_modules/date-fns/fp/setSecondsWithOptions.d.ts new file mode 100644 index 000000000..cca3e403e --- /dev/null +++ b/node_modules/date-fns/fp/setSecondsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../setSeconds.ts").SetSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setSecondsWithOptions.js b/node_modules/date-fns/fp/setSecondsWithOptions.js new file mode 100644 index 000000000..471fee766 --- /dev/null +++ b/node_modules/date-fns/fp/setSecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setSeconds as fn } from "../setSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setSecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setSecondsWithOptions; diff --git a/node_modules/date-fns/fp/setWeek.cjs b/node_modules/date-fns/fp/setWeek.cjs new file mode 100644 index 000000000..373a56a5e --- /dev/null +++ b/node_modules/date-fns/fp/setWeek.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.setWeek = void 0; + +var _index = require("../setWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setWeek = (exports.setWeek = (0, _index2.convertToFP)(_index.setWeek, 2)); diff --git a/node_modules/date-fns/fp/setWeek.d.cts b/node_modules/date-fns/fp/setWeek.d.cts new file mode 100644 index 000000000..7d32dab2b --- /dev/null +++ b/node_modules/date-fns/fp/setWeek.d.cts @@ -0,0 +1,5 @@ +export declare const setWeek: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeek.d.ts b/node_modules/date-fns/fp/setWeek.d.ts new file mode 100644 index 000000000..7d32dab2b --- /dev/null +++ b/node_modules/date-fns/fp/setWeek.d.ts @@ -0,0 +1,5 @@ +export declare const setWeek: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeek.js b/node_modules/date-fns/fp/setWeek.js new file mode 100644 index 000000000..b5bd9fee0 --- /dev/null +++ b/node_modules/date-fns/fp/setWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setWeek as fn } from "../setWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setWeek = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setWeek; diff --git a/node_modules/date-fns/fp/setWeekWithOptions.cjs b/node_modules/date-fns/fp/setWeekWithOptions.cjs new file mode 100644 index 000000000..c7556bc4a --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setWeekWithOptions = void 0; + +var _index = require("../setWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setWeekWithOptions = (exports.setWeekWithOptions = (0, +_index2.convertToFP)(_index.setWeek, 3)); diff --git a/node_modules/date-fns/fp/setWeekWithOptions.d.cts b/node_modules/date-fns/fp/setWeekWithOptions.d.cts new file mode 100644 index 000000000..686bf9b07 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setWeekWithOptions: import("./types.ts").FPFn3< + Date, + import("../setWeek.ts").SetWeekOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekWithOptions.d.ts b/node_modules/date-fns/fp/setWeekWithOptions.d.ts new file mode 100644 index 000000000..686bf9b07 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setWeekWithOptions: import("./types.ts").FPFn3< + Date, + import("../setWeek.ts").SetWeekOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekWithOptions.js b/node_modules/date-fns/fp/setWeekWithOptions.js new file mode 100644 index 000000000..a96064836 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setWeek as fn } from "../setWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setWeekWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setWeekWithOptions; diff --git a/node_modules/date-fns/fp/setWeekYear.cjs b/node_modules/date-fns/fp/setWeekYear.cjs new file mode 100644 index 000000000..fb66f5499 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setWeekYear = void 0; + +var _index = require("../setWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setWeekYear = (exports.setWeekYear = (0, _index2.convertToFP)( + _index.setWeekYear, + 2, +)); diff --git a/node_modules/date-fns/fp/setWeekYear.d.cts b/node_modules/date-fns/fp/setWeekYear.d.cts new file mode 100644 index 000000000..58739ccaf --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear.d.cts @@ -0,0 +1,5 @@ +export declare const setWeekYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekYear.d.ts b/node_modules/date-fns/fp/setWeekYear.d.ts new file mode 100644 index 000000000..58739ccaf --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear.d.ts @@ -0,0 +1,5 @@ +export declare const setWeekYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekYear.js b/node_modules/date-fns/fp/setWeekYear.js new file mode 100644 index 000000000..64be677f0 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setWeekYear as fn } from "../setWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setWeekYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setWeekYear; diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions.cjs b/node_modules/date-fns/fp/setWeekYearWithOptions.cjs new file mode 100644 index 000000000..620338e0e --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setWeekYearWithOptions = void 0; + +var _index = require("../setWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setWeekYearWithOptions = (exports.setWeekYearWithOptions = (0, +_index2.convertToFP)(_index.setWeekYear, 3)); diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/setWeekYearWithOptions.d.cts new file mode 100644 index 000000000..5683992d6 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setWeekYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setWeekYear.ts").SetWeekYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/setWeekYearWithOptions.d.ts new file mode 100644 index 000000000..5683992d6 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setWeekYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setWeekYear.ts").SetWeekYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions.js b/node_modules/date-fns/fp/setWeekYearWithOptions.js new file mode 100644 index 000000000..a99d7dd6e --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setWeekYear as fn } from "../setWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setWeekYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/setWithOptions.cjs b/node_modules/date-fns/fp/setWithOptions.cjs new file mode 100644 index 000000000..edc057e50 --- /dev/null +++ b/node_modules/date-fns/fp/setWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.setWithOptions = void 0; + +var _index = require("../set.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setWithOptions = (exports.setWithOptions = (0, _index2.convertToFP)( + _index.set, + 3, +)); diff --git a/node_modules/date-fns/fp/setWithOptions.d.cts b/node_modules/date-fns/fp/setWithOptions.d.cts new file mode 100644 index 000000000..03b56f9b0 --- /dev/null +++ b/node_modules/date-fns/fp/setWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setWithOptions: import("./types.ts").FPFn3< + Date, + import("../set.ts").SetOptions | undefined, + import("../fp.ts").DateValues, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWithOptions.d.ts b/node_modules/date-fns/fp/setWithOptions.d.ts new file mode 100644 index 000000000..03b56f9b0 --- /dev/null +++ b/node_modules/date-fns/fp/setWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setWithOptions: import("./types.ts").FPFn3< + Date, + import("../set.ts").SetOptions | undefined, + import("../fp.ts").DateValues, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setWithOptions.js b/node_modules/date-fns/fp/setWithOptions.js new file mode 100644 index 000000000..0f0c66375 --- /dev/null +++ b/node_modules/date-fns/fp/setWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { set as fn } from "../set.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setWithOptions; diff --git a/node_modules/date-fns/fp/setYear.cjs b/node_modules/date-fns/fp/setYear.cjs new file mode 100644 index 000000000..10a773803 --- /dev/null +++ b/node_modules/date-fns/fp/setYear.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.setYear = void 0; + +var _index = require("../setYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setYear = (exports.setYear = (0, _index2.convertToFP)(_index.setYear, 2)); diff --git a/node_modules/date-fns/fp/setYear.d.cts b/node_modules/date-fns/fp/setYear.d.cts new file mode 100644 index 000000000..db0909955 --- /dev/null +++ b/node_modules/date-fns/fp/setYear.d.cts @@ -0,0 +1,5 @@ +export declare const setYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setYear.d.ts b/node_modules/date-fns/fp/setYear.d.ts new file mode 100644 index 000000000..db0909955 --- /dev/null +++ b/node_modules/date-fns/fp/setYear.d.ts @@ -0,0 +1,5 @@ +export declare const setYear: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setYear.js b/node_modules/date-fns/fp/setYear.js new file mode 100644 index 000000000..203c9c344 --- /dev/null +++ b/node_modules/date-fns/fp/setYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setYear as fn } from "../setYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setYear = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default setYear; diff --git a/node_modules/date-fns/fp/setYearWithOptions.cjs b/node_modules/date-fns/fp/setYearWithOptions.cjs new file mode 100644 index 000000000..cd1902612 --- /dev/null +++ b/node_modules/date-fns/fp/setYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.setYearWithOptions = void 0; + +var _index = require("../setYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const setYearWithOptions = (exports.setYearWithOptions = (0, +_index2.convertToFP)(_index.setYear, 3)); diff --git a/node_modules/date-fns/fp/setYearWithOptions.d.cts b/node_modules/date-fns/fp/setYearWithOptions.d.cts new file mode 100644 index 000000000..d635bcdc2 --- /dev/null +++ b/node_modules/date-fns/fp/setYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const setYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setYear.ts").SetYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setYearWithOptions.d.ts b/node_modules/date-fns/fp/setYearWithOptions.d.ts new file mode 100644 index 000000000..d635bcdc2 --- /dev/null +++ b/node_modules/date-fns/fp/setYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const setYearWithOptions: import("./types.ts").FPFn3< + Date, + import("../setYear.ts").SetYearOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/setYearWithOptions.js b/node_modules/date-fns/fp/setYearWithOptions.js new file mode 100644 index 000000000..042bf16da --- /dev/null +++ b/node_modules/date-fns/fp/setYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { setYear as fn } from "../setYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const setYearWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default setYearWithOptions; diff --git a/node_modules/date-fns/fp/startOfDay.cjs b/node_modules/date-fns/fp/startOfDay.cjs new file mode 100644 index 000000000..a89a303cc --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfDay = void 0; + +var _index = require("../startOfDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfDay = (exports.startOfDay = (0, _index2.convertToFP)( + _index.startOfDay, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfDay.d.cts b/node_modules/date-fns/fp/startOfDay.d.cts new file mode 100644 index 000000000..1e3db60bf --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay.d.cts @@ -0,0 +1,4 @@ +export declare const startOfDay: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDay.d.ts b/node_modules/date-fns/fp/startOfDay.d.ts new file mode 100644 index 000000000..1e3db60bf --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay.d.ts @@ -0,0 +1,4 @@ +export declare const startOfDay: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDay.js b/node_modules/date-fns/fp/startOfDay.js new file mode 100644 index 000000000..488becc17 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfDay as fn } from "../startOfDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfDay = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfDay; diff --git a/node_modules/date-fns/fp/startOfDayWithOptions.cjs b/node_modules/date-fns/fp/startOfDayWithOptions.cjs new file mode 100644 index 000000000..286e42d55 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDayWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfDayWithOptions = void 0; + +var _index = require("../startOfDay.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfDayWithOptions = (exports.startOfDayWithOptions = (0, +_index2.convertToFP)(_index.startOfDay, 2)); diff --git a/node_modules/date-fns/fp/startOfDayWithOptions.d.cts b/node_modules/date-fns/fp/startOfDayWithOptions.d.cts new file mode 100644 index 000000000..47e7cbf2c --- /dev/null +++ b/node_modules/date-fns/fp/startOfDayWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfDayWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfDay.ts").StartOfDayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDayWithOptions.d.ts b/node_modules/date-fns/fp/startOfDayWithOptions.d.ts new file mode 100644 index 000000000..47e7cbf2c --- /dev/null +++ b/node_modules/date-fns/fp/startOfDayWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfDayWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfDay.ts").StartOfDayOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDayWithOptions.js b/node_modules/date-fns/fp/startOfDayWithOptions.js new file mode 100644 index 000000000..e45bc508d --- /dev/null +++ b/node_modules/date-fns/fp/startOfDayWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfDay as fn } from "../startOfDay.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfDayWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfDayWithOptions; diff --git a/node_modules/date-fns/fp/startOfDecade.cjs b/node_modules/date-fns/fp/startOfDecade.cjs new file mode 100644 index 000000000..3d0c1d6a6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfDecade = void 0; + +var _index = require("../startOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfDecade = (exports.startOfDecade = (0, _index2.convertToFP)( + _index.startOfDecade, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfDecade.d.cts b/node_modules/date-fns/fp/startOfDecade.d.cts new file mode 100644 index 000000000..bca265a8a --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade.d.cts @@ -0,0 +1,4 @@ +export declare const startOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDecade.d.ts b/node_modules/date-fns/fp/startOfDecade.d.ts new file mode 100644 index 000000000..bca265a8a --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade.d.ts @@ -0,0 +1,4 @@ +export declare const startOfDecade: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDecade.js b/node_modules/date-fns/fp/startOfDecade.js new file mode 100644 index 000000000..80c963405 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfDecade as fn } from "../startOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfDecade = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfDecade; diff --git a/node_modules/date-fns/fp/startOfDecadeWithOptions.cjs b/node_modules/date-fns/fp/startOfDecadeWithOptions.cjs new file mode 100644 index 000000000..4b2661785 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecadeWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfDecadeWithOptions = void 0; + +var _index = require("../startOfDecade.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfDecadeWithOptions = (exports.startOfDecadeWithOptions = (0, +_index2.convertToFP)(_index.startOfDecade, 2)); diff --git a/node_modules/date-fns/fp/startOfDecadeWithOptions.d.cts b/node_modules/date-fns/fp/startOfDecadeWithOptions.d.cts new file mode 100644 index 000000000..0599d8b57 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecadeWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfDecade.ts").StartOfDecadeOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDecadeWithOptions.d.ts b/node_modules/date-fns/fp/startOfDecadeWithOptions.d.ts new file mode 100644 index 000000000..0599d8b57 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecadeWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfDecadeWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfDecade.ts").StartOfDecadeOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfDecadeWithOptions.js b/node_modules/date-fns/fp/startOfDecadeWithOptions.js new file mode 100644 index 000000000..3e593d160 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecadeWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfDecade as fn } from "../startOfDecade.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfDecadeWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfDecadeWithOptions; diff --git a/node_modules/date-fns/fp/startOfHour.cjs b/node_modules/date-fns/fp/startOfHour.cjs new file mode 100644 index 000000000..3ce88980a --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfHour = void 0; + +var _index = require("../startOfHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfHour = (exports.startOfHour = (0, _index2.convertToFP)( + _index.startOfHour, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfHour.d.cts b/node_modules/date-fns/fp/startOfHour.d.cts new file mode 100644 index 000000000..7794c84c5 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour.d.cts @@ -0,0 +1,4 @@ +export declare const startOfHour: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfHour.d.ts b/node_modules/date-fns/fp/startOfHour.d.ts new file mode 100644 index 000000000..7794c84c5 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour.d.ts @@ -0,0 +1,4 @@ +export declare const startOfHour: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfHour.js b/node_modules/date-fns/fp/startOfHour.js new file mode 100644 index 000000000..d249aa239 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfHour as fn } from "../startOfHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfHour = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfHour; diff --git a/node_modules/date-fns/fp/startOfHourWithOptions.cjs b/node_modules/date-fns/fp/startOfHourWithOptions.cjs new file mode 100644 index 000000000..420e88343 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHourWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfHourWithOptions = void 0; + +var _index = require("../startOfHour.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfHourWithOptions = (exports.startOfHourWithOptions = (0, +_index2.convertToFP)(_index.startOfHour, 2)); diff --git a/node_modules/date-fns/fp/startOfHourWithOptions.d.cts b/node_modules/date-fns/fp/startOfHourWithOptions.d.cts new file mode 100644 index 000000000..6f6341982 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHourWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfHourWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfHour.ts").StartOfHourOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfHourWithOptions.d.ts b/node_modules/date-fns/fp/startOfHourWithOptions.d.ts new file mode 100644 index 000000000..6f6341982 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHourWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfHourWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfHour.ts").StartOfHourOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfHourWithOptions.js b/node_modules/date-fns/fp/startOfHourWithOptions.js new file mode 100644 index 000000000..ae8695d66 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHourWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfHour as fn } from "../startOfHour.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfHourWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfHourWithOptions; diff --git a/node_modules/date-fns/fp/startOfISOWeek.cjs b/node_modules/date-fns/fp/startOfISOWeek.cjs new file mode 100644 index 000000000..ea08b67be --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfISOWeek = void 0; + +var _index = require("../startOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfISOWeek = (exports.startOfISOWeek = (0, _index2.convertToFP)( + _index.startOfISOWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfISOWeek.d.cts b/node_modules/date-fns/fp/startOfISOWeek.d.cts new file mode 100644 index 000000000..2f2f96ec4 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek.d.cts @@ -0,0 +1,4 @@ +export declare const startOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeek.d.ts b/node_modules/date-fns/fp/startOfISOWeek.d.ts new file mode 100644 index 000000000..2f2f96ec4 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek.d.ts @@ -0,0 +1,4 @@ +export declare const startOfISOWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeek.js b/node_modules/date-fns/fp/startOfISOWeek.js new file mode 100644 index 000000000..05e80a39e --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfISOWeek as fn } from "../startOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfISOWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfISOWeek; diff --git a/node_modules/date-fns/fp/startOfISOWeekWithOptions.cjs b/node_modules/date-fns/fp/startOfISOWeekWithOptions.cjs new file mode 100644 index 000000000..a17688ce8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfISOWeekWithOptions = void 0; + +var _index = require("../startOfISOWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfISOWeekWithOptions = (exports.startOfISOWeekWithOptions = (0, +_index2.convertToFP)(_index.startOfISOWeek, 2)); diff --git a/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.cts b/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.cts new file mode 100644 index 000000000..8df2481d7 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const startOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfISOWeek.ts").StartOfISOWeekOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.ts b/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.ts new file mode 100644 index 000000000..8df2481d7 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const startOfISOWeekWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfISOWeek.ts").StartOfISOWeekOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekWithOptions.js b/node_modules/date-fns/fp/startOfISOWeekWithOptions.js new file mode 100644 index 000000000..bb529f8d7 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfISOWeek as fn } from "../startOfISOWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfISOWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfISOWeekWithOptions; diff --git a/node_modules/date-fns/fp/startOfISOWeekYear.cjs b/node_modules/date-fns/fp/startOfISOWeekYear.cjs new file mode 100644 index 000000000..b60b92ef8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfISOWeekYear = void 0; + +var _index = require("../startOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfISOWeekYear = (exports.startOfISOWeekYear = (0, +_index2.convertToFP)(_index.startOfISOWeekYear, 1)); diff --git a/node_modules/date-fns/fp/startOfISOWeekYear.d.cts b/node_modules/date-fns/fp/startOfISOWeekYear.d.cts new file mode 100644 index 000000000..2fec2bf51 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const startOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekYear.d.ts b/node_modules/date-fns/fp/startOfISOWeekYear.d.ts new file mode 100644 index 000000000..2fec2bf51 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const startOfISOWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekYear.js b/node_modules/date-fns/fp/startOfISOWeekYear.js new file mode 100644 index 000000000..76f896a1d --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfISOWeekYear as fn } from "../startOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfISOWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfISOWeekYear; diff --git a/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.cjs b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.cjs new file mode 100644 index 000000000..edf8bc8fb --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfISOWeekYearWithOptions = void 0; + +var _index = require("../startOfISOWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfISOWeekYearWithOptions = (exports.startOfISOWeekYearWithOptions = + (0, _index2.convertToFP)(_index.startOfISOWeekYear, 2)); diff --git a/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.cts new file mode 100644 index 000000000..e1171c838 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const startOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfISOWeekYear.ts").StartOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.ts new file mode 100644 index 000000000..e1171c838 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const startOfISOWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfISOWeekYear.ts").StartOfISOWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.js b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.js new file mode 100644 index 000000000..69f990200 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfISOWeekYear as fn } from "../startOfISOWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfISOWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfISOWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/startOfMinute.cjs b/node_modules/date-fns/fp/startOfMinute.cjs new file mode 100644 index 000000000..b160d37da --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfMinute = void 0; + +var _index = require("../startOfMinute.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfMinute = (exports.startOfMinute = (0, _index2.convertToFP)( + _index.startOfMinute, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfMinute.d.cts b/node_modules/date-fns/fp/startOfMinute.d.cts new file mode 100644 index 000000000..8843726b9 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute.d.cts @@ -0,0 +1,4 @@ +export declare const startOfMinute: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMinute.d.ts b/node_modules/date-fns/fp/startOfMinute.d.ts new file mode 100644 index 000000000..8843726b9 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute.d.ts @@ -0,0 +1,4 @@ +export declare const startOfMinute: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMinute.js b/node_modules/date-fns/fp/startOfMinute.js new file mode 100644 index 000000000..9c42ab593 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfMinute as fn } from "../startOfMinute.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfMinute = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfMinute; diff --git a/node_modules/date-fns/fp/startOfMinuteWithOptions.cjs b/node_modules/date-fns/fp/startOfMinuteWithOptions.cjs new file mode 100644 index 000000000..d3a71fd5f --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinuteWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfMinuteWithOptions = void 0; + +var _index = require("../startOfMinute.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfMinuteWithOptions = (exports.startOfMinuteWithOptions = (0, +_index2.convertToFP)(_index.startOfMinute, 2)); diff --git a/node_modules/date-fns/fp/startOfMinuteWithOptions.d.cts b/node_modules/date-fns/fp/startOfMinuteWithOptions.d.cts new file mode 100644 index 000000000..de4cb0cd2 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinuteWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfMinuteWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfMinute.ts").StartOfMinuteOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMinuteWithOptions.d.ts b/node_modules/date-fns/fp/startOfMinuteWithOptions.d.ts new file mode 100644 index 000000000..de4cb0cd2 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinuteWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfMinuteWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfMinute.ts").StartOfMinuteOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMinuteWithOptions.js b/node_modules/date-fns/fp/startOfMinuteWithOptions.js new file mode 100644 index 000000000..3fb61e494 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinuteWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfMinute as fn } from "../startOfMinute.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfMinuteWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfMinuteWithOptions; diff --git a/node_modules/date-fns/fp/startOfMonth.cjs b/node_modules/date-fns/fp/startOfMonth.cjs new file mode 100644 index 000000000..0b1d39ffb --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfMonth = void 0; + +var _index = require("../startOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfMonth = (exports.startOfMonth = (0, _index2.convertToFP)( + _index.startOfMonth, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfMonth.d.cts b/node_modules/date-fns/fp/startOfMonth.d.cts new file mode 100644 index 000000000..d6cf5975a --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth.d.cts @@ -0,0 +1,4 @@ +export declare const startOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMonth.d.ts b/node_modules/date-fns/fp/startOfMonth.d.ts new file mode 100644 index 000000000..d6cf5975a --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth.d.ts @@ -0,0 +1,4 @@ +export declare const startOfMonth: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMonth.js b/node_modules/date-fns/fp/startOfMonth.js new file mode 100644 index 000000000..deb245be8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfMonth as fn } from "../startOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfMonth = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfMonth; diff --git a/node_modules/date-fns/fp/startOfMonthWithOptions.cjs b/node_modules/date-fns/fp/startOfMonthWithOptions.cjs new file mode 100644 index 000000000..918c07fc2 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonthWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfMonthWithOptions = void 0; + +var _index = require("../startOfMonth.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfMonthWithOptions = (exports.startOfMonthWithOptions = (0, +_index2.convertToFP)(_index.startOfMonth, 2)); diff --git a/node_modules/date-fns/fp/startOfMonthWithOptions.d.cts b/node_modules/date-fns/fp/startOfMonthWithOptions.d.cts new file mode 100644 index 000000000..36c4a1875 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonthWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfMonth.ts").StartOfMonthOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMonthWithOptions.d.ts b/node_modules/date-fns/fp/startOfMonthWithOptions.d.ts new file mode 100644 index 000000000..36c4a1875 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonthWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfMonthWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfMonth.ts").StartOfMonthOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfMonthWithOptions.js b/node_modules/date-fns/fp/startOfMonthWithOptions.js new file mode 100644 index 000000000..9d27b586c --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonthWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfMonth as fn } from "../startOfMonth.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfMonthWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfMonthWithOptions; diff --git a/node_modules/date-fns/fp/startOfQuarter.cjs b/node_modules/date-fns/fp/startOfQuarter.cjs new file mode 100644 index 000000000..b54a37fca --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfQuarter = void 0; + +var _index = require("../startOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfQuarter = (exports.startOfQuarter = (0, _index2.convertToFP)( + _index.startOfQuarter, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfQuarter.d.cts b/node_modules/date-fns/fp/startOfQuarter.d.cts new file mode 100644 index 000000000..7e58e5ec3 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter.d.cts @@ -0,0 +1,4 @@ +export declare const startOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfQuarter.d.ts b/node_modules/date-fns/fp/startOfQuarter.d.ts new file mode 100644 index 000000000..7e58e5ec3 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter.d.ts @@ -0,0 +1,4 @@ +export declare const startOfQuarter: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfQuarter.js b/node_modules/date-fns/fp/startOfQuarter.js new file mode 100644 index 000000000..ba2431474 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfQuarter as fn } from "../startOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfQuarter = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfQuarter; diff --git a/node_modules/date-fns/fp/startOfQuarterWithOptions.cjs b/node_modules/date-fns/fp/startOfQuarterWithOptions.cjs new file mode 100644 index 000000000..d497bff48 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarterWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfQuarterWithOptions = void 0; + +var _index = require("../startOfQuarter.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfQuarterWithOptions = (exports.startOfQuarterWithOptions = (0, +_index2.convertToFP)(_index.startOfQuarter, 2)); diff --git a/node_modules/date-fns/fp/startOfQuarterWithOptions.d.cts b/node_modules/date-fns/fp/startOfQuarterWithOptions.d.cts new file mode 100644 index 000000000..65eeeeadd --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarterWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const startOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfQuarter.ts").StartOfQuarterOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfQuarterWithOptions.d.ts b/node_modules/date-fns/fp/startOfQuarterWithOptions.d.ts new file mode 100644 index 000000000..65eeeeadd --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarterWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const startOfQuarterWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfQuarter.ts").StartOfQuarterOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfQuarterWithOptions.js b/node_modules/date-fns/fp/startOfQuarterWithOptions.js new file mode 100644 index 000000000..39b4b7c66 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarterWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfQuarter as fn } from "../startOfQuarter.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfQuarterWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfQuarterWithOptions; diff --git a/node_modules/date-fns/fp/startOfSecond.cjs b/node_modules/date-fns/fp/startOfSecond.cjs new file mode 100644 index 000000000..b1fb89636 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfSecond = void 0; + +var _index = require("../startOfSecond.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfSecond = (exports.startOfSecond = (0, _index2.convertToFP)( + _index.startOfSecond, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfSecond.d.cts b/node_modules/date-fns/fp/startOfSecond.d.cts new file mode 100644 index 000000000..6e226d3fd --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond.d.cts @@ -0,0 +1,4 @@ +export declare const startOfSecond: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfSecond.d.ts b/node_modules/date-fns/fp/startOfSecond.d.ts new file mode 100644 index 000000000..6e226d3fd --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond.d.ts @@ -0,0 +1,4 @@ +export declare const startOfSecond: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfSecond.js b/node_modules/date-fns/fp/startOfSecond.js new file mode 100644 index 000000000..be5349545 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfSecond as fn } from "../startOfSecond.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfSecond = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfSecond; diff --git a/node_modules/date-fns/fp/startOfSecondWithOptions.cjs b/node_modules/date-fns/fp/startOfSecondWithOptions.cjs new file mode 100644 index 000000000..75e0add84 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecondWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfSecondWithOptions = void 0; + +var _index = require("../startOfSecond.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfSecondWithOptions = (exports.startOfSecondWithOptions = (0, +_index2.convertToFP)(_index.startOfSecond, 2)); diff --git a/node_modules/date-fns/fp/startOfSecondWithOptions.d.cts b/node_modules/date-fns/fp/startOfSecondWithOptions.d.cts new file mode 100644 index 000000000..491047945 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecondWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfSecondWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfSecond.ts").StartOfSecondOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfSecondWithOptions.d.ts b/node_modules/date-fns/fp/startOfSecondWithOptions.d.ts new file mode 100644 index 000000000..491047945 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecondWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfSecondWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfSecond.ts").StartOfSecondOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfSecondWithOptions.js b/node_modules/date-fns/fp/startOfSecondWithOptions.js new file mode 100644 index 000000000..9f08f89fb --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecondWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfSecond as fn } from "../startOfSecond.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfSecondWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfSecondWithOptions; diff --git a/node_modules/date-fns/fp/startOfWeek.cjs b/node_modules/date-fns/fp/startOfWeek.cjs new file mode 100644 index 000000000..3d0e92321 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfWeek = void 0; + +var _index = require("../startOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfWeek = (exports.startOfWeek = (0, _index2.convertToFP)( + _index.startOfWeek, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfWeek.d.cts b/node_modules/date-fns/fp/startOfWeek.d.cts new file mode 100644 index 000000000..31ce8a710 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek.d.cts @@ -0,0 +1,4 @@ +export declare const startOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeek.d.ts b/node_modules/date-fns/fp/startOfWeek.d.ts new file mode 100644 index 000000000..31ce8a710 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek.d.ts @@ -0,0 +1,4 @@ +export declare const startOfWeek: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeek.js b/node_modules/date-fns/fp/startOfWeek.js new file mode 100644 index 000000000..ef2591dc6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfWeek as fn } from "../startOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfWeek = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfWeek; diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions.cjs b/node_modules/date-fns/fp/startOfWeekWithOptions.cjs new file mode 100644 index 000000000..9eeaf7f41 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfWeekWithOptions = void 0; + +var _index = require("../startOfWeek.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfWeekWithOptions = (exports.startOfWeekWithOptions = (0, +_index2.convertToFP)(_index.startOfWeek, 2)); diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions.d.cts b/node_modules/date-fns/fp/startOfWeekWithOptions.d.cts new file mode 100644 index 000000000..31a82e58f --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfWeek.ts").StartOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions.d.ts b/node_modules/date-fns/fp/startOfWeekWithOptions.d.ts new file mode 100644 index 000000000..31a82e58f --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfWeekWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfWeek.ts").StartOfWeekOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions.js b/node_modules/date-fns/fp/startOfWeekWithOptions.js new file mode 100644 index 000000000..697fcd94e --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfWeek as fn } from "../startOfWeek.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfWeekWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfWeekWithOptions; diff --git a/node_modules/date-fns/fp/startOfWeekYear.cjs b/node_modules/date-fns/fp/startOfWeekYear.cjs new file mode 100644 index 000000000..b277949c6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfWeekYear = void 0; + +var _index = require("../startOfWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfWeekYear = (exports.startOfWeekYear = (0, _index2.convertToFP)( + _index.startOfWeekYear, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfWeekYear.d.cts b/node_modules/date-fns/fp/startOfWeekYear.d.cts new file mode 100644 index 000000000..c09fb571f --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear.d.cts @@ -0,0 +1,4 @@ +export declare const startOfWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekYear.d.ts b/node_modules/date-fns/fp/startOfWeekYear.d.ts new file mode 100644 index 000000000..c09fb571f --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear.d.ts @@ -0,0 +1,4 @@ +export declare const startOfWeekYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekYear.js b/node_modules/date-fns/fp/startOfWeekYear.js new file mode 100644 index 000000000..f0cb4daaa --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfWeekYear as fn } from "../startOfWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfWeekYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfWeekYear; diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions.cjs b/node_modules/date-fns/fp/startOfWeekYearWithOptions.cjs new file mode 100644 index 000000000..c7ac82573 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfWeekYearWithOptions = void 0; + +var _index = require("../startOfWeekYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfWeekYearWithOptions = (exports.startOfWeekYearWithOptions = (0, +_index2.convertToFP)(_index.startOfWeekYear, 2)); diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.cts b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.cts new file mode 100644 index 000000000..ad3f690f4 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const startOfWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfWeekYear.ts").StartOfWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.ts b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.ts new file mode 100644 index 000000000..ad3f690f4 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const startOfWeekYearWithOptions: import("./types.ts").FPFn2< + Date, + | import("../startOfWeekYear.ts").StartOfWeekYearOptions + | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions.js b/node_modules/date-fns/fp/startOfWeekYearWithOptions.js new file mode 100644 index 000000000..0ba57bc2e --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfWeekYear as fn } from "../startOfWeekYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfWeekYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfWeekYearWithOptions; diff --git a/node_modules/date-fns/fp/startOfYear.cjs b/node_modules/date-fns/fp/startOfYear.cjs new file mode 100644 index 000000000..1966ec684 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.startOfYear = void 0; + +var _index = require("../startOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfYear = (exports.startOfYear = (0, _index2.convertToFP)( + _index.startOfYear, + 1, +)); diff --git a/node_modules/date-fns/fp/startOfYear.d.cts b/node_modules/date-fns/fp/startOfYear.d.cts new file mode 100644 index 000000000..fdf26d9f8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear.d.cts @@ -0,0 +1,4 @@ +export declare const startOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfYear.d.ts b/node_modules/date-fns/fp/startOfYear.d.ts new file mode 100644 index 000000000..fdf26d9f8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear.d.ts @@ -0,0 +1,4 @@ +export declare const startOfYear: import("./types.ts").FPFn1< + Date, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfYear.js b/node_modules/date-fns/fp/startOfYear.js new file mode 100644 index 000000000..b5873f7a8 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfYear as fn } from "../startOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfYear = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default startOfYear; diff --git a/node_modules/date-fns/fp/startOfYearWithOptions.cjs b/node_modules/date-fns/fp/startOfYearWithOptions.cjs new file mode 100644 index 000000000..5e3083b87 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYearWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.startOfYearWithOptions = void 0; + +var _index = require("../startOfYear.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const startOfYearWithOptions = (exports.startOfYearWithOptions = (0, +_index2.convertToFP)(_index.startOfYear, 2)); diff --git a/node_modules/date-fns/fp/startOfYearWithOptions.d.cts b/node_modules/date-fns/fp/startOfYearWithOptions.d.cts new file mode 100644 index 000000000..0e1f51125 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYearWithOptions.d.cts @@ -0,0 +1,5 @@ +export declare const startOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfYear.ts").StartOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfYearWithOptions.d.ts b/node_modules/date-fns/fp/startOfYearWithOptions.d.ts new file mode 100644 index 000000000..0e1f51125 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYearWithOptions.d.ts @@ -0,0 +1,5 @@ +export declare const startOfYearWithOptions: import("./types.ts").FPFn2< + Date, + import("../startOfYear.ts").StartOfYearOptions | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/startOfYearWithOptions.js b/node_modules/date-fns/fp/startOfYearWithOptions.js new file mode 100644 index 000000000..a4c9286a5 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYearWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { startOfYear as fn } from "../startOfYear.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const startOfYearWithOptions = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default startOfYearWithOptions; diff --git a/node_modules/date-fns/fp/sub.cjs b/node_modules/date-fns/fp/sub.cjs new file mode 100644 index 000000000..9cd8aca6f --- /dev/null +++ b/node_modules/date-fns/fp/sub.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.sub = void 0; + +var _index = require("../sub.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const sub = (exports.sub = (0, _index2.convertToFP)(_index.sub, 2)); diff --git a/node_modules/date-fns/fp/sub.d.cts b/node_modules/date-fns/fp/sub.d.cts new file mode 100644 index 000000000..b39e8ef5b --- /dev/null +++ b/node_modules/date-fns/fp/sub.d.cts @@ -0,0 +1,5 @@ +export declare const sub: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/sub.d.ts b/node_modules/date-fns/fp/sub.d.ts new file mode 100644 index 000000000..b39e8ef5b --- /dev/null +++ b/node_modules/date-fns/fp/sub.d.ts @@ -0,0 +1,5 @@ +export declare const sub: import("./types.ts").FPFn2< + Date, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/sub.js b/node_modules/date-fns/fp/sub.js new file mode 100644 index 000000000..c76fa8ac3 --- /dev/null +++ b/node_modules/date-fns/fp/sub.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { sub as fn } from "../sub.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const sub = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default sub; diff --git a/node_modules/date-fns/fp/subBusinessDays.cjs b/node_modules/date-fns/fp/subBusinessDays.cjs new file mode 100644 index 000000000..8b002b6ae --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subBusinessDays = void 0; + +var _index = require("../subBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subBusinessDays = (exports.subBusinessDays = (0, _index2.convertToFP)( + _index.subBusinessDays, + 2, +)); diff --git a/node_modules/date-fns/fp/subBusinessDays.d.cts b/node_modules/date-fns/fp/subBusinessDays.d.cts new file mode 100644 index 000000000..86c94abe2 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays.d.cts @@ -0,0 +1,5 @@ +export declare const subBusinessDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subBusinessDays.d.ts b/node_modules/date-fns/fp/subBusinessDays.d.ts new file mode 100644 index 000000000..86c94abe2 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays.d.ts @@ -0,0 +1,5 @@ +export declare const subBusinessDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subBusinessDays.js b/node_modules/date-fns/fp/subBusinessDays.js new file mode 100644 index 000000000..1a9d3e996 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subBusinessDays as fn } from "../subBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subBusinessDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subBusinessDays; diff --git a/node_modules/date-fns/fp/subBusinessDaysWithOptions.cjs b/node_modules/date-fns/fp/subBusinessDaysWithOptions.cjs new file mode 100644 index 000000000..4b39fb16e --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDaysWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subBusinessDaysWithOptions = void 0; + +var _index = require("../subBusinessDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subBusinessDaysWithOptions = (exports.subBusinessDaysWithOptions = (0, +_index2.convertToFP)(_index.subBusinessDays, 3)); diff --git a/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.cts b/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.cts new file mode 100644 index 000000000..7af899efb --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const subBusinessDaysWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subBusinessDays.ts").SubBusinessDaysOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.ts b/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.ts new file mode 100644 index 000000000..7af899efb --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDaysWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const subBusinessDaysWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subBusinessDays.ts").SubBusinessDaysOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subBusinessDaysWithOptions.js b/node_modules/date-fns/fp/subBusinessDaysWithOptions.js new file mode 100644 index 000000000..09399296f --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subBusinessDays as fn } from "../subBusinessDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subBusinessDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subBusinessDaysWithOptions; diff --git a/node_modules/date-fns/fp/subDays.cjs b/node_modules/date-fns/fp/subDays.cjs new file mode 100644 index 000000000..383e22feb --- /dev/null +++ b/node_modules/date-fns/fp/subDays.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.subDays = void 0; + +var _index = require("../subDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subDays = (exports.subDays = (0, _index2.convertToFP)(_index.subDays, 2)); diff --git a/node_modules/date-fns/fp/subDays.d.cts b/node_modules/date-fns/fp/subDays.d.cts new file mode 100644 index 000000000..0180df9e7 --- /dev/null +++ b/node_modules/date-fns/fp/subDays.d.cts @@ -0,0 +1,5 @@ +export declare const subDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subDays.d.ts b/node_modules/date-fns/fp/subDays.d.ts new file mode 100644 index 000000000..0180df9e7 --- /dev/null +++ b/node_modules/date-fns/fp/subDays.d.ts @@ -0,0 +1,5 @@ +export declare const subDays: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subDays.js b/node_modules/date-fns/fp/subDays.js new file mode 100644 index 000000000..8f361d76d --- /dev/null +++ b/node_modules/date-fns/fp/subDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subDays as fn } from "../subDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subDays = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subDays; diff --git a/node_modules/date-fns/fp/subDaysWithOptions.cjs b/node_modules/date-fns/fp/subDaysWithOptions.cjs new file mode 100644 index 000000000..45ed5342f --- /dev/null +++ b/node_modules/date-fns/fp/subDaysWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subDaysWithOptions = void 0; + +var _index = require("../subDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subDaysWithOptions = (exports.subDaysWithOptions = (0, +_index2.convertToFP)(_index.subDays, 3)); diff --git a/node_modules/date-fns/fp/subDaysWithOptions.d.cts b/node_modules/date-fns/fp/subDaysWithOptions.d.cts new file mode 100644 index 000000000..e1407ca98 --- /dev/null +++ b/node_modules/date-fns/fp/subDaysWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subDaysWithOptions: import("./types.ts").FPFn3< + Date, + import("../subDays.ts").SubDaysOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subDaysWithOptions.d.ts b/node_modules/date-fns/fp/subDaysWithOptions.d.ts new file mode 100644 index 000000000..e1407ca98 --- /dev/null +++ b/node_modules/date-fns/fp/subDaysWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subDaysWithOptions: import("./types.ts").FPFn3< + Date, + import("../subDays.ts").SubDaysOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subDaysWithOptions.js b/node_modules/date-fns/fp/subDaysWithOptions.js new file mode 100644 index 000000000..7d80b859c --- /dev/null +++ b/node_modules/date-fns/fp/subDaysWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subDays as fn } from "../subDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subDaysWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subDaysWithOptions; diff --git a/node_modules/date-fns/fp/subHours.cjs b/node_modules/date-fns/fp/subHours.cjs new file mode 100644 index 000000000..3c00fa1a5 --- /dev/null +++ b/node_modules/date-fns/fp/subHours.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subHours = void 0; + +var _index = require("../subHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subHours = (exports.subHours = (0, _index2.convertToFP)( + _index.subHours, + 2, +)); diff --git a/node_modules/date-fns/fp/subHours.d.cts b/node_modules/date-fns/fp/subHours.d.cts new file mode 100644 index 000000000..432ab6758 --- /dev/null +++ b/node_modules/date-fns/fp/subHours.d.cts @@ -0,0 +1,5 @@ +export declare const subHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subHours.d.ts b/node_modules/date-fns/fp/subHours.d.ts new file mode 100644 index 000000000..432ab6758 --- /dev/null +++ b/node_modules/date-fns/fp/subHours.d.ts @@ -0,0 +1,5 @@ +export declare const subHours: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subHours.js b/node_modules/date-fns/fp/subHours.js new file mode 100644 index 000000000..fc8abd12d --- /dev/null +++ b/node_modules/date-fns/fp/subHours.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subHours as fn } from "../subHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subHours = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subHours; diff --git a/node_modules/date-fns/fp/subHoursWithOptions.cjs b/node_modules/date-fns/fp/subHoursWithOptions.cjs new file mode 100644 index 000000000..0ff47ab5d --- /dev/null +++ b/node_modules/date-fns/fp/subHoursWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subHoursWithOptions = void 0; + +var _index = require("../subHours.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subHoursWithOptions = (exports.subHoursWithOptions = (0, +_index2.convertToFP)(_index.subHours, 3)); diff --git a/node_modules/date-fns/fp/subHoursWithOptions.d.cts b/node_modules/date-fns/fp/subHoursWithOptions.d.cts new file mode 100644 index 000000000..163dcc572 --- /dev/null +++ b/node_modules/date-fns/fp/subHoursWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../subHours.ts").SubHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subHoursWithOptions.d.ts b/node_modules/date-fns/fp/subHoursWithOptions.d.ts new file mode 100644 index 000000000..163dcc572 --- /dev/null +++ b/node_modules/date-fns/fp/subHoursWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subHoursWithOptions: import("./types.ts").FPFn3< + Date, + import("../subHours.ts").SubHoursOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subHoursWithOptions.js b/node_modules/date-fns/fp/subHoursWithOptions.js new file mode 100644 index 000000000..d03cd483b --- /dev/null +++ b/node_modules/date-fns/fp/subHoursWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subHours as fn } from "../subHours.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subHoursWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subHoursWithOptions; diff --git a/node_modules/date-fns/fp/subISOWeekYears.cjs b/node_modules/date-fns/fp/subISOWeekYears.cjs new file mode 100644 index 000000000..7ee70499d --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subISOWeekYears = void 0; + +var _index = require("../subISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subISOWeekYears = (exports.subISOWeekYears = (0, _index2.convertToFP)( + _index.subISOWeekYears, + 2, +)); diff --git a/node_modules/date-fns/fp/subISOWeekYears.d.cts b/node_modules/date-fns/fp/subISOWeekYears.d.cts new file mode 100644 index 000000000..dc8a33033 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears.d.cts @@ -0,0 +1,5 @@ +export declare const subISOWeekYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subISOWeekYears.d.ts b/node_modules/date-fns/fp/subISOWeekYears.d.ts new file mode 100644 index 000000000..dc8a33033 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears.d.ts @@ -0,0 +1,5 @@ +export declare const subISOWeekYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subISOWeekYears.js b/node_modules/date-fns/fp/subISOWeekYears.js new file mode 100644 index 000000000..189115420 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subISOWeekYears as fn } from "../subISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subISOWeekYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subISOWeekYears; diff --git a/node_modules/date-fns/fp/subISOWeekYearsWithOptions.cjs b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.cjs new file mode 100644 index 000000000..1af807973 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subISOWeekYearsWithOptions = void 0; + +var _index = require("../subISOWeekYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subISOWeekYearsWithOptions = (exports.subISOWeekYearsWithOptions = (0, +_index2.convertToFP)(_index.subISOWeekYears, 3)); diff --git a/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.cts b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.cts new file mode 100644 index 000000000..09797d04c --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const subISOWeekYearsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subISOWeekYears.ts").SubISOWeekYearsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.ts b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.ts new file mode 100644 index 000000000..09797d04c --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const subISOWeekYearsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subISOWeekYears.ts").SubISOWeekYearsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subISOWeekYearsWithOptions.js b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.js new file mode 100644 index 000000000..980d117b5 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subISOWeekYears as fn } from "../subISOWeekYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subISOWeekYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subISOWeekYearsWithOptions; diff --git a/node_modules/date-fns/fp/subMilliseconds.cjs b/node_modules/date-fns/fp/subMilliseconds.cjs new file mode 100644 index 000000000..14f4f49d3 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subMilliseconds = void 0; + +var _index = require("../subMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMilliseconds = (exports.subMilliseconds = (0, _index2.convertToFP)( + _index.subMilliseconds, + 2, +)); diff --git a/node_modules/date-fns/fp/subMilliseconds.d.cts b/node_modules/date-fns/fp/subMilliseconds.d.cts new file mode 100644 index 000000000..6da1fb90b --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds.d.cts @@ -0,0 +1,5 @@ +export declare const subMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMilliseconds.d.ts b/node_modules/date-fns/fp/subMilliseconds.d.ts new file mode 100644 index 000000000..6da1fb90b --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds.d.ts @@ -0,0 +1,5 @@ +export declare const subMilliseconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMilliseconds.js b/node_modules/date-fns/fp/subMilliseconds.js new file mode 100644 index 000000000..0ffdd2211 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMilliseconds as fn } from "../subMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMilliseconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subMilliseconds; diff --git a/node_modules/date-fns/fp/subMillisecondsWithOptions.cjs b/node_modules/date-fns/fp/subMillisecondsWithOptions.cjs new file mode 100644 index 000000000..c73aabd3f --- /dev/null +++ b/node_modules/date-fns/fp/subMillisecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subMillisecondsWithOptions = void 0; + +var _index = require("../subMilliseconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMillisecondsWithOptions = (exports.subMillisecondsWithOptions = (0, +_index2.convertToFP)(_index.subMilliseconds, 3)); diff --git a/node_modules/date-fns/fp/subMillisecondsWithOptions.d.cts b/node_modules/date-fns/fp/subMillisecondsWithOptions.d.cts new file mode 100644 index 000000000..6980950df --- /dev/null +++ b/node_modules/date-fns/fp/subMillisecondsWithOptions.d.cts @@ -0,0 +1,7 @@ +export declare const subMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subMilliseconds.ts").SubMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMillisecondsWithOptions.d.ts b/node_modules/date-fns/fp/subMillisecondsWithOptions.d.ts new file mode 100644 index 000000000..6980950df --- /dev/null +++ b/node_modules/date-fns/fp/subMillisecondsWithOptions.d.ts @@ -0,0 +1,7 @@ +export declare const subMillisecondsWithOptions: import("./types.ts").FPFn3< + Date, + | import("../subMilliseconds.ts").SubMillisecondsOptions + | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMillisecondsWithOptions.js b/node_modules/date-fns/fp/subMillisecondsWithOptions.js new file mode 100644 index 000000000..df3a7aa8c --- /dev/null +++ b/node_modules/date-fns/fp/subMillisecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMilliseconds as fn } from "../subMilliseconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMillisecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subMillisecondsWithOptions; diff --git a/node_modules/date-fns/fp/subMinutes.cjs b/node_modules/date-fns/fp/subMinutes.cjs new file mode 100644 index 000000000..b5734a1d9 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subMinutes = void 0; + +var _index = require("../subMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMinutes = (exports.subMinutes = (0, _index2.convertToFP)( + _index.subMinutes, + 2, +)); diff --git a/node_modules/date-fns/fp/subMinutes.d.cts b/node_modules/date-fns/fp/subMinutes.d.cts new file mode 100644 index 000000000..618545cb8 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes.d.cts @@ -0,0 +1,5 @@ +export declare const subMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMinutes.d.ts b/node_modules/date-fns/fp/subMinutes.d.ts new file mode 100644 index 000000000..618545cb8 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes.d.ts @@ -0,0 +1,5 @@ +export declare const subMinutes: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMinutes.js b/node_modules/date-fns/fp/subMinutes.js new file mode 100644 index 000000000..d8ba20304 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMinutes as fn } from "../subMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMinutes = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subMinutes; diff --git a/node_modules/date-fns/fp/subMinutesWithOptions.cjs b/node_modules/date-fns/fp/subMinutesWithOptions.cjs new file mode 100644 index 000000000..b6fd7c5df --- /dev/null +++ b/node_modules/date-fns/fp/subMinutesWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subMinutesWithOptions = void 0; + +var _index = require("../subMinutes.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMinutesWithOptions = (exports.subMinutesWithOptions = (0, +_index2.convertToFP)(_index.subMinutes, 3)); diff --git a/node_modules/date-fns/fp/subMinutesWithOptions.d.cts b/node_modules/date-fns/fp/subMinutesWithOptions.d.cts new file mode 100644 index 000000000..9bba541bf --- /dev/null +++ b/node_modules/date-fns/fp/subMinutesWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../subMinutes.ts").SubMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMinutesWithOptions.d.ts b/node_modules/date-fns/fp/subMinutesWithOptions.d.ts new file mode 100644 index 000000000..9bba541bf --- /dev/null +++ b/node_modules/date-fns/fp/subMinutesWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subMinutesWithOptions: import("./types.ts").FPFn3< + Date, + import("../subMinutes.ts").SubMinutesOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMinutesWithOptions.js b/node_modules/date-fns/fp/subMinutesWithOptions.js new file mode 100644 index 000000000..9ec15dada --- /dev/null +++ b/node_modules/date-fns/fp/subMinutesWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMinutes as fn } from "../subMinutes.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMinutesWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subMinutesWithOptions; diff --git a/node_modules/date-fns/fp/subMonths.cjs b/node_modules/date-fns/fp/subMonths.cjs new file mode 100644 index 000000000..2c815f78a --- /dev/null +++ b/node_modules/date-fns/fp/subMonths.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subMonths = void 0; + +var _index = require("../subMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMonths = (exports.subMonths = (0, _index2.convertToFP)( + _index.subMonths, + 2, +)); diff --git a/node_modules/date-fns/fp/subMonths.d.cts b/node_modules/date-fns/fp/subMonths.d.cts new file mode 100644 index 000000000..2e04955e2 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths.d.cts @@ -0,0 +1,5 @@ +export declare const subMonths: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMonths.d.ts b/node_modules/date-fns/fp/subMonths.d.ts new file mode 100644 index 000000000..2e04955e2 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths.d.ts @@ -0,0 +1,5 @@ +export declare const subMonths: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMonths.js b/node_modules/date-fns/fp/subMonths.js new file mode 100644 index 000000000..6c77f14df --- /dev/null +++ b/node_modules/date-fns/fp/subMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMonths as fn } from "../subMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMonths = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subMonths; diff --git a/node_modules/date-fns/fp/subMonthsWithOptions.cjs b/node_modules/date-fns/fp/subMonthsWithOptions.cjs new file mode 100644 index 000000000..4ddf24b8a --- /dev/null +++ b/node_modules/date-fns/fp/subMonthsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subMonthsWithOptions = void 0; + +var _index = require("../subMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subMonthsWithOptions = (exports.subMonthsWithOptions = (0, +_index2.convertToFP)(_index.subMonths, 3)); diff --git a/node_modules/date-fns/fp/subMonthsWithOptions.d.cts b/node_modules/date-fns/fp/subMonthsWithOptions.d.cts new file mode 100644 index 000000000..c3948d77b --- /dev/null +++ b/node_modules/date-fns/fp/subMonthsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subMonthsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subMonths.ts").SubMonthsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMonthsWithOptions.d.ts b/node_modules/date-fns/fp/subMonthsWithOptions.d.ts new file mode 100644 index 000000000..c3948d77b --- /dev/null +++ b/node_modules/date-fns/fp/subMonthsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subMonthsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subMonths.ts").SubMonthsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subMonthsWithOptions.js b/node_modules/date-fns/fp/subMonthsWithOptions.js new file mode 100644 index 000000000..216f94e59 --- /dev/null +++ b/node_modules/date-fns/fp/subMonthsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subMonths as fn } from "../subMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subMonthsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subMonthsWithOptions; diff --git a/node_modules/date-fns/fp/subQuarters.cjs b/node_modules/date-fns/fp/subQuarters.cjs new file mode 100644 index 000000000..9f00d0cf4 --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subQuarters = void 0; + +var _index = require("../subQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subQuarters = (exports.subQuarters = (0, _index2.convertToFP)( + _index.subQuarters, + 2, +)); diff --git a/node_modules/date-fns/fp/subQuarters.d.cts b/node_modules/date-fns/fp/subQuarters.d.cts new file mode 100644 index 000000000..aa99d1364 --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters.d.cts @@ -0,0 +1,5 @@ +export declare const subQuarters: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subQuarters.d.ts b/node_modules/date-fns/fp/subQuarters.d.ts new file mode 100644 index 000000000..aa99d1364 --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters.d.ts @@ -0,0 +1,5 @@ +export declare const subQuarters: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subQuarters.js b/node_modules/date-fns/fp/subQuarters.js new file mode 100644 index 000000000..29608739c --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subQuarters as fn } from "../subQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subQuarters = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subQuarters; diff --git a/node_modules/date-fns/fp/subQuartersWithOptions.cjs b/node_modules/date-fns/fp/subQuartersWithOptions.cjs new file mode 100644 index 000000000..e735cacb3 --- /dev/null +++ b/node_modules/date-fns/fp/subQuartersWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subQuartersWithOptions = void 0; + +var _index = require("../subQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subQuartersWithOptions = (exports.subQuartersWithOptions = (0, +_index2.convertToFP)(_index.subQuarters, 3)); diff --git a/node_modules/date-fns/fp/subQuartersWithOptions.d.cts b/node_modules/date-fns/fp/subQuartersWithOptions.d.cts new file mode 100644 index 000000000..bb5de5ee1 --- /dev/null +++ b/node_modules/date-fns/fp/subQuartersWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subQuartersWithOptions: import("./types.ts").FPFn3< + Date, + import("../subQuarters.ts").SubQuartersOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subQuartersWithOptions.d.ts b/node_modules/date-fns/fp/subQuartersWithOptions.d.ts new file mode 100644 index 000000000..bb5de5ee1 --- /dev/null +++ b/node_modules/date-fns/fp/subQuartersWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subQuartersWithOptions: import("./types.ts").FPFn3< + Date, + import("../subQuarters.ts").SubQuartersOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subQuartersWithOptions.js b/node_modules/date-fns/fp/subQuartersWithOptions.js new file mode 100644 index 000000000..eaa850a1d --- /dev/null +++ b/node_modules/date-fns/fp/subQuartersWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subQuarters as fn } from "../subQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subQuartersWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subQuartersWithOptions; diff --git a/node_modules/date-fns/fp/subSeconds.cjs b/node_modules/date-fns/fp/subSeconds.cjs new file mode 100644 index 000000000..31ff14690 --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subSeconds = void 0; + +var _index = require("../subSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subSeconds = (exports.subSeconds = (0, _index2.convertToFP)( + _index.subSeconds, + 2, +)); diff --git a/node_modules/date-fns/fp/subSeconds.d.cts b/node_modules/date-fns/fp/subSeconds.d.cts new file mode 100644 index 000000000..97ac5ac3a --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds.d.cts @@ -0,0 +1,5 @@ +export declare const subSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subSeconds.d.ts b/node_modules/date-fns/fp/subSeconds.d.ts new file mode 100644 index 000000000..97ac5ac3a --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds.d.ts @@ -0,0 +1,5 @@ +export declare const subSeconds: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subSeconds.js b/node_modules/date-fns/fp/subSeconds.js new file mode 100644 index 000000000..84e508934 --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subSeconds as fn } from "../subSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subSeconds = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subSeconds; diff --git a/node_modules/date-fns/fp/subSecondsWithOptions.cjs b/node_modules/date-fns/fp/subSecondsWithOptions.cjs new file mode 100644 index 000000000..b3b044f63 --- /dev/null +++ b/node_modules/date-fns/fp/subSecondsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subSecondsWithOptions = void 0; + +var _index = require("../subSeconds.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subSecondsWithOptions = (exports.subSecondsWithOptions = (0, +_index2.convertToFP)(_index.subSeconds, 3)); diff --git a/node_modules/date-fns/fp/subSecondsWithOptions.d.cts b/node_modules/date-fns/fp/subSecondsWithOptions.d.cts new file mode 100644 index 000000000..6771e0feb --- /dev/null +++ b/node_modules/date-fns/fp/subSecondsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subSeconds.ts").SubSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subSecondsWithOptions.d.ts b/node_modules/date-fns/fp/subSecondsWithOptions.d.ts new file mode 100644 index 000000000..6771e0feb --- /dev/null +++ b/node_modules/date-fns/fp/subSecondsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subSecondsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subSeconds.ts").SubSecondsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subSecondsWithOptions.js b/node_modules/date-fns/fp/subSecondsWithOptions.js new file mode 100644 index 000000000..7588c2072 --- /dev/null +++ b/node_modules/date-fns/fp/subSecondsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subSeconds as fn } from "../subSeconds.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subSecondsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subSecondsWithOptions; diff --git a/node_modules/date-fns/fp/subWeeks.cjs b/node_modules/date-fns/fp/subWeeks.cjs new file mode 100644 index 000000000..c1f117e76 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subWeeks = void 0; + +var _index = require("../subWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subWeeks = (exports.subWeeks = (0, _index2.convertToFP)( + _index.subWeeks, + 2, +)); diff --git a/node_modules/date-fns/fp/subWeeks.d.cts b/node_modules/date-fns/fp/subWeeks.d.cts new file mode 100644 index 000000000..11bf0f82b --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks.d.cts @@ -0,0 +1,5 @@ +export declare const subWeeks: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWeeks.d.ts b/node_modules/date-fns/fp/subWeeks.d.ts new file mode 100644 index 000000000..11bf0f82b --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks.d.ts @@ -0,0 +1,5 @@ +export declare const subWeeks: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWeeks.js b/node_modules/date-fns/fp/subWeeks.js new file mode 100644 index 000000000..9e7396cfc --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subWeeks as fn } from "../subWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subWeeks = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subWeeks; diff --git a/node_modules/date-fns/fp/subWeeksWithOptions.cjs b/node_modules/date-fns/fp/subWeeksWithOptions.cjs new file mode 100644 index 000000000..af829fb49 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeksWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subWeeksWithOptions = void 0; + +var _index = require("../subWeeks.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subWeeksWithOptions = (exports.subWeeksWithOptions = (0, +_index2.convertToFP)(_index.subWeeks, 3)); diff --git a/node_modules/date-fns/fp/subWeeksWithOptions.d.cts b/node_modules/date-fns/fp/subWeeksWithOptions.d.cts new file mode 100644 index 000000000..398f82687 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeksWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subWeeksWithOptions: import("./types.ts").FPFn3< + Date, + import("../subWeeks.ts").SubWeeksOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWeeksWithOptions.d.ts b/node_modules/date-fns/fp/subWeeksWithOptions.d.ts new file mode 100644 index 000000000..398f82687 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeksWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subWeeksWithOptions: import("./types.ts").FPFn3< + Date, + import("../subWeeks.ts").SubWeeksOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWeeksWithOptions.js b/node_modules/date-fns/fp/subWeeksWithOptions.js new file mode 100644 index 000000000..af51a9db6 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeksWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subWeeks as fn } from "../subWeeks.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subWeeksWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subWeeksWithOptions; diff --git a/node_modules/date-fns/fp/subWithOptions.cjs b/node_modules/date-fns/fp/subWithOptions.cjs new file mode 100644 index 000000000..a83c3d213 --- /dev/null +++ b/node_modules/date-fns/fp/subWithOptions.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subWithOptions = void 0; + +var _index = require("../sub.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subWithOptions = (exports.subWithOptions = (0, _index2.convertToFP)( + _index.sub, + 3, +)); diff --git a/node_modules/date-fns/fp/subWithOptions.d.cts b/node_modules/date-fns/fp/subWithOptions.d.cts new file mode 100644 index 000000000..383f0eab6 --- /dev/null +++ b/node_modules/date-fns/fp/subWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subWithOptions: import("./types.ts").FPFn3< + Date, + import("../sub.ts").SubOptions | undefined, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWithOptions.d.ts b/node_modules/date-fns/fp/subWithOptions.d.ts new file mode 100644 index 000000000..383f0eab6 --- /dev/null +++ b/node_modules/date-fns/fp/subWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subWithOptions: import("./types.ts").FPFn3< + Date, + import("../sub.ts").SubOptions | undefined, + import("../fp.ts").Duration, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subWithOptions.js b/node_modules/date-fns/fp/subWithOptions.js new file mode 100644 index 000000000..fbd667f19 --- /dev/null +++ b/node_modules/date-fns/fp/subWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { sub as fn } from "../sub.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subWithOptions; diff --git a/node_modules/date-fns/fp/subYears.cjs b/node_modules/date-fns/fp/subYears.cjs new file mode 100644 index 000000000..ff96c5d06 --- /dev/null +++ b/node_modules/date-fns/fp/subYears.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.subYears = void 0; + +var _index = require("../subYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subYears = (exports.subYears = (0, _index2.convertToFP)( + _index.subYears, + 2, +)); diff --git a/node_modules/date-fns/fp/subYears.d.cts b/node_modules/date-fns/fp/subYears.d.cts new file mode 100644 index 000000000..5a39e6fd8 --- /dev/null +++ b/node_modules/date-fns/fp/subYears.d.cts @@ -0,0 +1,5 @@ +export declare const subYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subYears.d.ts b/node_modules/date-fns/fp/subYears.d.ts new file mode 100644 index 000000000..5a39e6fd8 --- /dev/null +++ b/node_modules/date-fns/fp/subYears.d.ts @@ -0,0 +1,5 @@ +export declare const subYears: import("./types.ts").FPFn2< + Date, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subYears.js b/node_modules/date-fns/fp/subYears.js new file mode 100644 index 000000000..908bc1b94 --- /dev/null +++ b/node_modules/date-fns/fp/subYears.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subYears as fn } from "../subYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subYears = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default subYears; diff --git a/node_modules/date-fns/fp/subYearsWithOptions.cjs b/node_modules/date-fns/fp/subYearsWithOptions.cjs new file mode 100644 index 000000000..b301d08c3 --- /dev/null +++ b/node_modules/date-fns/fp/subYearsWithOptions.cjs @@ -0,0 +1,8 @@ +"use strict"; +exports.subYearsWithOptions = void 0; + +var _index = require("../subYears.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const subYearsWithOptions = (exports.subYearsWithOptions = (0, +_index2.convertToFP)(_index.subYears, 3)); diff --git a/node_modules/date-fns/fp/subYearsWithOptions.d.cts b/node_modules/date-fns/fp/subYearsWithOptions.d.cts new file mode 100644 index 000000000..55fce74e4 --- /dev/null +++ b/node_modules/date-fns/fp/subYearsWithOptions.d.cts @@ -0,0 +1,6 @@ +export declare const subYearsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subYears.ts").SubYearsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subYearsWithOptions.d.ts b/node_modules/date-fns/fp/subYearsWithOptions.d.ts new file mode 100644 index 000000000..55fce74e4 --- /dev/null +++ b/node_modules/date-fns/fp/subYearsWithOptions.d.ts @@ -0,0 +1,6 @@ +export declare const subYearsWithOptions: import("./types.ts").FPFn3< + Date, + import("../subYears.ts").SubYearsOptions | undefined, + number, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/subYearsWithOptions.js b/node_modules/date-fns/fp/subYearsWithOptions.js new file mode 100644 index 000000000..7eee41d5a --- /dev/null +++ b/node_modules/date-fns/fp/subYearsWithOptions.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { subYears as fn } from "../subYears.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const subYearsWithOptions = convertToFP(fn, 3); + +// Fallback for modularized imports: +export default subYearsWithOptions; diff --git a/node_modules/date-fns/fp/toDate.cjs b/node_modules/date-fns/fp/toDate.cjs new file mode 100644 index 000000000..7b42fb8a8 --- /dev/null +++ b/node_modules/date-fns/fp/toDate.cjs @@ -0,0 +1,7 @@ +"use strict"; +exports.toDate = void 0; + +var _index = require("../toDate.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const toDate = (exports.toDate = (0, _index2.convertToFP)(_index.toDate, 2)); diff --git a/node_modules/date-fns/fp/toDate.d.cts b/node_modules/date-fns/fp/toDate.d.cts new file mode 100644 index 000000000..d20e5a7c9 --- /dev/null +++ b/node_modules/date-fns/fp/toDate.d.cts @@ -0,0 +1,5 @@ +export declare const toDate: import("./types.ts").FPFn2< + Date, + import("../fp.ts").ContextFn | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/toDate.d.ts b/node_modules/date-fns/fp/toDate.d.ts new file mode 100644 index 000000000..d20e5a7c9 --- /dev/null +++ b/node_modules/date-fns/fp/toDate.d.ts @@ -0,0 +1,5 @@ +export declare const toDate: import("./types.ts").FPFn2< + Date, + import("../fp.ts").ContextFn | undefined, + import("../fp.ts").DateArg +>; diff --git a/node_modules/date-fns/fp/toDate.js b/node_modules/date-fns/fp/toDate.js new file mode 100644 index 000000000..8b3525e94 --- /dev/null +++ b/node_modules/date-fns/fp/toDate.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { toDate as fn } from "../toDate.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const toDate = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default toDate; diff --git a/node_modules/date-fns/fp/transpose.cjs b/node_modules/date-fns/fp/transpose.cjs new file mode 100644 index 000000000..019ce5d8e --- /dev/null +++ b/node_modules/date-fns/fp/transpose.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.transpose = void 0; + +var _index = require("../transpose.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const transpose = (exports.transpose = (0, _index2.convertToFP)( + _index.transpose, + 2, +)); diff --git a/node_modules/date-fns/fp/transpose.d.cts b/node_modules/date-fns/fp/transpose.d.cts new file mode 100644 index 000000000..33a8d129d --- /dev/null +++ b/node_modules/date-fns/fp/transpose.d.cts @@ -0,0 +1,7 @@ +export declare const transpose: import("./types.ts").FPFn2< + Date, + | import("../fp.ts").ContextFn + | Date + | import("../fp.ts").GenericDateConstructor, + Date +>; diff --git a/node_modules/date-fns/fp/transpose.d.ts b/node_modules/date-fns/fp/transpose.d.ts new file mode 100644 index 000000000..33a8d129d --- /dev/null +++ b/node_modules/date-fns/fp/transpose.d.ts @@ -0,0 +1,7 @@ +export declare const transpose: import("./types.ts").FPFn2< + Date, + | import("../fp.ts").ContextFn + | Date + | import("../fp.ts").GenericDateConstructor, + Date +>; diff --git a/node_modules/date-fns/fp/transpose.js b/node_modules/date-fns/fp/transpose.js new file mode 100644 index 000000000..5a1840652 --- /dev/null +++ b/node_modules/date-fns/fp/transpose.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { transpose as fn } from "../transpose.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const transpose = convertToFP(fn, 2); + +// Fallback for modularized imports: +export default transpose; diff --git a/node_modules/date-fns/fp/types.cjs b/node_modules/date-fns/fp/types.cjs new file mode 100644 index 000000000..3918c74e4 --- /dev/null +++ b/node_modules/date-fns/fp/types.cjs @@ -0,0 +1 @@ +"use strict"; diff --git a/node_modules/date-fns/fp/types.d.cts b/node_modules/date-fns/fp/types.d.cts new file mode 100644 index 000000000..68c6fd87f --- /dev/null +++ b/node_modules/date-fns/fp/types.d.cts @@ -0,0 +1,114 @@ +/** + * The type of a function that can be converted to FP. + */ +export type FPFnInput = (...args: any[]) => any; +/** + * The supported arity type. + */ +export type FPArity = 1 | 2 | 3 | 4; +/** + * FP function interface. It infers the arity of the function and returns the + * corresponding FP function interface. + */ +export type FPFn = Arity extends 4 + ? FPFn4< + ReturnType, + Parameters[3], + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 3 + ? FPFn3< + ReturnType, + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 2 + ? FPFn2, Parameters[1], Parameters[0]> + : Arity extends 1 + ? FPFn1, Parameters[0]> + : never; +/** + * FP function interface with 1 arguments. + */ +export interface FPFn1 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn1; + /** + * Returns the result of the function call. + */ + (arg: Arg): Result; +} +/** + * FP function interface with 2 arguments. + */ +export interface FPFn2 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 3 arguments. + */ +export interface FPFn3 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 4 arguments. + */ +export interface FPFn4 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn4; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} diff --git a/node_modules/date-fns/fp/types.d.ts b/node_modules/date-fns/fp/types.d.ts new file mode 100644 index 000000000..68c6fd87f --- /dev/null +++ b/node_modules/date-fns/fp/types.d.ts @@ -0,0 +1,114 @@ +/** + * The type of a function that can be converted to FP. + */ +export type FPFnInput = (...args: any[]) => any; +/** + * The supported arity type. + */ +export type FPArity = 1 | 2 | 3 | 4; +/** + * FP function interface. It infers the arity of the function and returns the + * corresponding FP function interface. + */ +export type FPFn = Arity extends 4 + ? FPFn4< + ReturnType, + Parameters[3], + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 3 + ? FPFn3< + ReturnType, + Parameters[2], + Parameters[1], + Parameters[0] + > + : Arity extends 2 + ? FPFn2, Parameters[1], Parameters[0]> + : Arity extends 1 + ? FPFn1, Parameters[0]> + : never; +/** + * FP function interface with 1 arguments. + */ +export interface FPFn1 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn1; + /** + * Returns the result of the function call. + */ + (arg: Arg): Result; +} +/** + * FP function interface with 2 arguments. + */ +export interface FPFn2 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 3 arguments. + */ +export interface FPFn3 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} +/** + * FP function interface with 4 arguments. + */ +export interface FPFn4 { + /** + * Curried version of the function. Returns itself. + */ + (): FPFn4; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4): FPFn3; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3): FPFn2; + /** + * Curried version of the function. Returns a function that accepts the rest + * arguments. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2): FPFn1; + /** + * Returns the result of the function call. + */ + (arg4: Arg4, arg3: Arg3, arg2: Arg2, arg1: Arg1): Result; +} diff --git a/node_modules/date-fns/fp/types.js b/node_modules/date-fns/fp/types.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/date-fns/fp/types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/date-fns/fp/weeksToDays.cjs b/node_modules/date-fns/fp/weeksToDays.cjs new file mode 100644 index 000000000..13b040557 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.weeksToDays = void 0; + +var _index = require("../weeksToDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const weeksToDays = (exports.weeksToDays = (0, _index2.convertToFP)( + _index.weeksToDays, + 1, +)); diff --git a/node_modules/date-fns/fp/weeksToDays.d.cts b/node_modules/date-fns/fp/weeksToDays.d.cts new file mode 100644 index 000000000..c59f36ab3 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays.d.cts @@ -0,0 +1 @@ +export declare const weeksToDays: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/weeksToDays.d.ts b/node_modules/date-fns/fp/weeksToDays.d.ts new file mode 100644 index 000000000..c59f36ab3 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays.d.ts @@ -0,0 +1 @@ +export declare const weeksToDays: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/weeksToDays.js b/node_modules/date-fns/fp/weeksToDays.js new file mode 100644 index 000000000..d9ce6ec2e --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { weeksToDays as fn } from "../weeksToDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const weeksToDays = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default weeksToDays; diff --git a/node_modules/date-fns/fp/yearsToDays.cjs b/node_modules/date-fns/fp/yearsToDays.cjs new file mode 100644 index 000000000..9ac116b12 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToDays.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.yearsToDays = void 0; + +var _index = require("../yearsToDays.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const yearsToDays = (exports.yearsToDays = (0, _index2.convertToFP)( + _index.yearsToDays, + 1, +)); diff --git a/node_modules/date-fns/fp/yearsToDays.d.cts b/node_modules/date-fns/fp/yearsToDays.d.cts new file mode 100644 index 000000000..f14bfb24b --- /dev/null +++ b/node_modules/date-fns/fp/yearsToDays.d.cts @@ -0,0 +1 @@ +export declare const yearsToDays: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToDays.d.ts b/node_modules/date-fns/fp/yearsToDays.d.ts new file mode 100644 index 000000000..f14bfb24b --- /dev/null +++ b/node_modules/date-fns/fp/yearsToDays.d.ts @@ -0,0 +1 @@ +export declare const yearsToDays: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToDays.js b/node_modules/date-fns/fp/yearsToDays.js new file mode 100644 index 000000000..0fb0f2b17 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToDays.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { yearsToDays as fn } from "../yearsToDays.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const yearsToDays = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default yearsToDays; diff --git a/node_modules/date-fns/fp/yearsToMonths.cjs b/node_modules/date-fns/fp/yearsToMonths.cjs new file mode 100644 index 000000000..e2131e04d --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.yearsToMonths = void 0; + +var _index = require("../yearsToMonths.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const yearsToMonths = (exports.yearsToMonths = (0, _index2.convertToFP)( + _index.yearsToMonths, + 1, +)); diff --git a/node_modules/date-fns/fp/yearsToMonths.d.cts b/node_modules/date-fns/fp/yearsToMonths.d.cts new file mode 100644 index 000000000..1899d4546 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths.d.cts @@ -0,0 +1 @@ +export declare const yearsToMonths: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToMonths.d.ts b/node_modules/date-fns/fp/yearsToMonths.d.ts new file mode 100644 index 000000000..1899d4546 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths.d.ts @@ -0,0 +1 @@ +export declare const yearsToMonths: import("./types.ts").FPFn1; diff --git a/node_modules/date-fns/fp/yearsToMonths.js b/node_modules/date-fns/fp/yearsToMonths.js new file mode 100644 index 000000000..59f35cb96 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { yearsToMonths as fn } from "../yearsToMonths.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const yearsToMonths = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default yearsToMonths; diff --git a/node_modules/date-fns/fp/yearsToQuarters.cjs b/node_modules/date-fns/fp/yearsToQuarters.cjs new file mode 100644 index 000000000..89adc8029 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters.cjs @@ -0,0 +1,10 @@ +"use strict"; +exports.yearsToQuarters = void 0; + +var _index = require("../yearsToQuarters.cjs"); +var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +const yearsToQuarters = (exports.yearsToQuarters = (0, _index2.convertToFP)( + _index.yearsToQuarters, + 1, +)); diff --git a/node_modules/date-fns/fp/yearsToQuarters.d.cts b/node_modules/date-fns/fp/yearsToQuarters.d.cts new file mode 100644 index 000000000..1c691409d --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters.d.cts @@ -0,0 +1,4 @@ +export declare const yearsToQuarters: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/yearsToQuarters.d.ts b/node_modules/date-fns/fp/yearsToQuarters.d.ts new file mode 100644 index 000000000..1c691409d --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters.d.ts @@ -0,0 +1,4 @@ +export declare const yearsToQuarters: import("./types.ts").FPFn1< + number, + number +>; diff --git a/node_modules/date-fns/fp/yearsToQuarters.js b/node_modules/date-fns/fp/yearsToQuarters.js new file mode 100644 index 000000000..9900974c8 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters.js @@ -0,0 +1,9 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. + +import { yearsToQuarters as fn } from "../yearsToQuarters.js"; +import { convertToFP } from "./_lib/convertToFP.js"; + +export const yearsToQuarters = convertToFP(fn, 1); + +// Fallback for modularized imports: +export default yearsToQuarters; diff --git a/node_modules/date-fns/fromUnixTime.cjs b/node_modules/date-fns/fromUnixTime.cjs new file mode 100644 index 000000000..5bc8b7950 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.fromUnixTime = fromUnixTime; +var _index = require("./toDate.cjs"); + +/** + * The {@link fromUnixTime} function options. + */ + +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param unixTime - The given Unix timestamp (in seconds) + * @param options - An object with options. Allows to pass a context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The date + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +function fromUnixTime(unixTime, options) { + return (0, _index.toDate)(unixTime * 1000, options?.in); +} diff --git a/node_modules/date-fns/fromUnixTime.d.cts b/node_modules/date-fns/fromUnixTime.d.cts new file mode 100644 index 000000000..4c7ed2240 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link fromUnixTime} function options. + */ +export interface FromUnixTimeOptions + extends ContextOptions {} +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param unixTime - The given Unix timestamp (in seconds) + * @param options - An object with options. Allows to pass a context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The date + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +export declare function fromUnixTime( + unixTime: number, + options?: FromUnixTimeOptions | undefined, +): DateType; diff --git a/node_modules/date-fns/fromUnixTime.d.ts b/node_modules/date-fns/fromUnixTime.d.ts new file mode 100644 index 000000000..4c7ed2240 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions } from "./types.ts"; +/** + * The {@link fromUnixTime} function options. + */ +export interface FromUnixTimeOptions + extends ContextOptions {} +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param unixTime - The given Unix timestamp (in seconds) + * @param options - An object with options. Allows to pass a context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The date + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +export declare function fromUnixTime( + unixTime: number, + options?: FromUnixTimeOptions | undefined, +): DateType; diff --git a/node_modules/date-fns/fromUnixTime.js b/node_modules/date-fns/fromUnixTime.js new file mode 100644 index 000000000..08e2fde00 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime.js @@ -0,0 +1,32 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link fromUnixTime} function options. + */ + +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param unixTime - The given Unix timestamp (in seconds) + * @param options - An object with options. Allows to pass a context. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * + * @returns The date + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +export function fromUnixTime(unixTime, options) { + return toDate(unixTime * 1000, options?.in); +} + +// Fallback for modularized imports: +export default fromUnixTime; diff --git a/node_modules/date-fns/getDate.cjs b/node_modules/date-fns/getDate.cjs new file mode 100644 index 000000000..2e9dae039 --- /dev/null +++ b/node_modules/date-fns/getDate.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getDate = getDate; +var _index = require("./toDate.cjs"); + +/** + * The {@link getDate} function options. + */ + +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The day of month + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +function getDate(date, options) { + return (0, _index.toDate)(date, options?.in).getDate(); +} diff --git a/node_modules/date-fns/getDate.d.cts b/node_modules/date-fns/getDate.d.cts new file mode 100644 index 000000000..4f7abe6bc --- /dev/null +++ b/node_modules/date-fns/getDate.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDate} function options. + */ +export interface GetDateOptions extends ContextOptions {} +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The day of month + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +export declare function getDate( + date: DateArg & {}, + options?: GetDateOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDate.d.ts b/node_modules/date-fns/getDate.d.ts new file mode 100644 index 000000000..4f7abe6bc --- /dev/null +++ b/node_modules/date-fns/getDate.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDate} function options. + */ +export interface GetDateOptions extends ContextOptions {} +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The day of month + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +export declare function getDate( + date: DateArg & {}, + options?: GetDateOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDate.js b/node_modules/date-fns/getDate.js new file mode 100644 index 000000000..0261cb361 --- /dev/null +++ b/node_modules/date-fns/getDate.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getDate} function options. + */ + +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The day of month + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +export function getDate(date, options) { + return toDate(date, options?.in).getDate(); +} + +// Fallback for modularized imports: +export default getDate; diff --git a/node_modules/date-fns/getDay.cjs b/node_modules/date-fns/getDay.cjs new file mode 100644 index 000000000..be9839216 --- /dev/null +++ b/node_modules/date-fns/getDay.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getDay = getDay; +var _index = require("./toDate.cjs"); + +/** + * The {@link getDay} function options. + */ + +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of week, 0 represents Sunday + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +function getDay(date, options) { + return (0, _index.toDate)(date, options?.in).getDay(); +} diff --git a/node_modules/date-fns/getDay.d.cts b/node_modules/date-fns/getDay.d.cts new file mode 100644 index 000000000..fe0f92888 --- /dev/null +++ b/node_modules/date-fns/getDay.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDay} function options. + */ +export interface GetDayOptions extends ContextOptions {} +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of week, 0 represents Sunday + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +export declare function getDay( + date: DateArg & {}, + options?: GetDayOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDay.d.ts b/node_modules/date-fns/getDay.d.ts new file mode 100644 index 000000000..fe0f92888 --- /dev/null +++ b/node_modules/date-fns/getDay.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDay} function options. + */ +export interface GetDayOptions extends ContextOptions {} +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of week, 0 represents Sunday + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +export declare function getDay( + date: DateArg & {}, + options?: GetDayOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDay.js b/node_modules/date-fns/getDay.js new file mode 100644 index 000000000..8f00e3a25 --- /dev/null +++ b/node_modules/date-fns/getDay.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getDay} function options. + */ + +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of week, 0 represents Sunday + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +export function getDay(date, options) { + return toDate(date, options?.in).getDay(); +} + +// Fallback for modularized imports: +export default getDay; diff --git a/node_modules/date-fns/getDayOfYear.cjs b/node_modules/date-fns/getDayOfYear.cjs new file mode 100644 index 000000000..02deca7a5 --- /dev/null +++ b/node_modules/date-fns/getDayOfYear.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.getDayOfYear = getDayOfYear; +var _index = require("./differenceInCalendarDays.cjs"); +var _index2 = require("./startOfYear.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * The {@link getDayOfYear} function options. + */ + +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of year + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +function getDayOfYear(date, options) { + const _date = (0, _index3.toDate)(date, options?.in); + const diff = (0, _index.differenceInCalendarDays)( + _date, + (0, _index2.startOfYear)(_date), + ); + const dayOfYear = diff + 1; + return dayOfYear; +} diff --git a/node_modules/date-fns/getDayOfYear.d.cts b/node_modules/date-fns/getDayOfYear.d.cts new file mode 100644 index 000000000..e8e1ebeec --- /dev/null +++ b/node_modules/date-fns/getDayOfYear.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDayOfYear} function options. + */ +export interface GetDayOfYearOptions extends ContextOptions {} +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of year + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +export declare function getDayOfYear( + date: DateArg & {}, + options?: GetDayOfYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDayOfYear.d.ts b/node_modules/date-fns/getDayOfYear.d.ts new file mode 100644 index 000000000..e8e1ebeec --- /dev/null +++ b/node_modules/date-fns/getDayOfYear.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDayOfYear} function options. + */ +export interface GetDayOfYearOptions extends ContextOptions {} +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of year + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +export declare function getDayOfYear( + date: DateArg & {}, + options?: GetDayOfYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDayOfYear.js b/node_modules/date-fns/getDayOfYear.js new file mode 100644 index 000000000..6ca39fca6 --- /dev/null +++ b/node_modules/date-fns/getDayOfYear.js @@ -0,0 +1,35 @@ +import { differenceInCalendarDays } from "./differenceInCalendarDays.js"; +import { startOfYear } from "./startOfYear.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getDayOfYear} function options. + */ + +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The day of year + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +export function getDayOfYear(date, options) { + const _date = toDate(date, options?.in); + const diff = differenceInCalendarDays(_date, startOfYear(_date)); + const dayOfYear = diff + 1; + return dayOfYear; +} + +// Fallback for modularized imports: +export default getDayOfYear; diff --git a/node_modules/date-fns/getDaysInMonth.cjs b/node_modules/date-fns/getDaysInMonth.cjs new file mode 100644 index 000000000..e3f980c29 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth.cjs @@ -0,0 +1,36 @@ +"use strict"; +exports.getDaysInMonth = getDaysInMonth; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link getDaysInMonth} function options. + */ + +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date, considering the context if provided. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a month + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +function getDaysInMonth(date, options) { + const _date = (0, _index2.toDate)(date, options?.in); + const year = _date.getFullYear(); + const monthIndex = _date.getMonth(); + const lastDayOfMonth = (0, _index.constructFrom)(_date, 0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} diff --git a/node_modules/date-fns/getDaysInMonth.d.cts b/node_modules/date-fns/getDaysInMonth.d.cts new file mode 100644 index 000000000..5432e3a09 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDaysInMonth} function options. + */ +export interface GetDaysInMonthOptions extends ContextOptions {} +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date, considering the context if provided. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a month + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +export declare function getDaysInMonth( + date: DateArg & {}, + options?: GetDaysInMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDaysInMonth.d.ts b/node_modules/date-fns/getDaysInMonth.d.ts new file mode 100644 index 000000000..5432e3a09 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDaysInMonth} function options. + */ +export interface GetDaysInMonthOptions extends ContextOptions {} +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date, considering the context if provided. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a month + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +export declare function getDaysInMonth( + date: DateArg & {}, + options?: GetDaysInMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDaysInMonth.js b/node_modules/date-fns/getDaysInMonth.js new file mode 100644 index 000000000..55afc3745 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth.js @@ -0,0 +1,37 @@ +import { constructFrom } from "./constructFrom.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getDaysInMonth} function options. + */ + +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date, considering the context if provided. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a month + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +export function getDaysInMonth(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + const monthIndex = _date.getMonth(); + const lastDayOfMonth = constructFrom(_date, 0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} + +// Fallback for modularized imports: +export default getDaysInMonth; diff --git a/node_modules/date-fns/getDaysInYear.cjs b/node_modules/date-fns/getDaysInYear.cjs new file mode 100644 index 000000000..a7a58671c --- /dev/null +++ b/node_modules/date-fns/getDaysInYear.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.getDaysInYear = getDaysInYear; +var _index = require("./isLeapYear.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link getDaysInYear} function options. + */ + +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a year + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +function getDaysInYear(date, options) { + const _date = (0, _index2.toDate)(date, options?.in); + if (Number.isNaN(+_date)) return NaN; + return (0, _index.isLeapYear)(_date) ? 366 : 365; +} diff --git a/node_modules/date-fns/getDaysInYear.d.cts b/node_modules/date-fns/getDaysInYear.d.cts new file mode 100644 index 000000000..3b4a390cc --- /dev/null +++ b/node_modules/date-fns/getDaysInYear.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDaysInYear} function options. + */ +export interface GetDaysInYearOptions extends ContextOptions {} +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a year + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +export declare function getDaysInYear( + date: DateArg & {}, + options?: GetDaysInYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDaysInYear.d.ts b/node_modules/date-fns/getDaysInYear.d.ts new file mode 100644 index 000000000..3b4a390cc --- /dev/null +++ b/node_modules/date-fns/getDaysInYear.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDaysInYear} function options. + */ +export interface GetDaysInYearOptions extends ContextOptions {} +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a year + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +export declare function getDaysInYear( + date: DateArg & {}, + options?: GetDaysInYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDaysInYear.js b/node_modules/date-fns/getDaysInYear.js new file mode 100644 index 000000000..736422000 --- /dev/null +++ b/node_modules/date-fns/getDaysInYear.js @@ -0,0 +1,33 @@ +import { isLeapYear } from "./isLeapYear.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getDaysInYear} function options. + */ + +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of days in a year + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +export function getDaysInYear(date, options) { + const _date = toDate(date, options?.in); + if (Number.isNaN(+_date)) return NaN; + return isLeapYear(_date) ? 366 : 365; +} + +// Fallback for modularized imports: +export default getDaysInYear; diff --git a/node_modules/date-fns/getDecade.cjs b/node_modules/date-fns/getDecade.cjs new file mode 100644 index 000000000..09a411b87 --- /dev/null +++ b/node_modules/date-fns/getDecade.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.getDecade = getDecade; +var _index = require("./toDate.cjs"); + +/** + * The {@link getDecade} function options. + */ + +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year of decade + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +function getDecade(date, options) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. + const _date = (0, _index.toDate)(date, options?.in); + const year = _date.getFullYear(); + const decade = Math.floor(year / 10) * 10; + return decade; +} diff --git a/node_modules/date-fns/getDecade.d.cts b/node_modules/date-fns/getDecade.d.cts new file mode 100644 index 000000000..e059853f4 --- /dev/null +++ b/node_modules/date-fns/getDecade.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDecade} function options. + */ +export interface GetDecadeOptions extends ContextOptions {} +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year of decade + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +export declare function getDecade( + date: DateArg & {}, + options?: GetDecadeOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDecade.d.ts b/node_modules/date-fns/getDecade.d.ts new file mode 100644 index 000000000..e059853f4 --- /dev/null +++ b/node_modules/date-fns/getDecade.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getDecade} function options. + */ +export interface GetDecadeOptions extends ContextOptions {} +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year of decade + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +export declare function getDecade( + date: DateArg & {}, + options?: GetDecadeOptions | undefined, +): number; diff --git a/node_modules/date-fns/getDecade.js b/node_modules/date-fns/getDecade.js new file mode 100644 index 000000000..2d01fb00d --- /dev/null +++ b/node_modules/date-fns/getDecade.js @@ -0,0 +1,36 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getDecade} function options. + */ + +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year of decade + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +export function getDecade(date, options) { + // TODO: Switch to more technical definition in of decades that start with 1 + // end with 0. I.e. 2001-2010 instead of current 2000-2009. It's a breaking + // change, so it can only be done in 4.0. + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + const decade = Math.floor(year / 10) * 10; + return decade; +} + +// Fallback for modularized imports: +export default getDecade; diff --git a/node_modules/date-fns/getDefaultOptions.cjs b/node_modules/date-fns/getDefaultOptions.cjs new file mode 100644 index 000000000..2d1481cb9 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.getDefaultOptions = getDefaultOptions; +var _index = require("./_lib/defaultOptions.cjs"); + +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). + * + * @returns The default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +function getDefaultOptions() { + return Object.assign({}, (0, _index.getDefaultOptions)()); +} diff --git a/node_modules/date-fns/getDefaultOptions.d.cts b/node_modules/date-fns/getDefaultOptions.d.cts new file mode 100644 index 000000000..121df4da8 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions.d.cts @@ -0,0 +1,26 @@ +import type { DefaultOptions } from "./_lib/defaultOptions.ts"; +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). + * + * @returns The default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +export declare function getDefaultOptions(): DefaultOptions; diff --git a/node_modules/date-fns/getDefaultOptions.d.ts b/node_modules/date-fns/getDefaultOptions.d.ts new file mode 100644 index 000000000..121df4da8 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions.d.ts @@ -0,0 +1,26 @@ +import type { DefaultOptions } from "./_lib/defaultOptions.ts"; +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). + * + * @returns The default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +export declare function getDefaultOptions(): DefaultOptions; diff --git a/node_modules/date-fns/getDefaultOptions.js b/node_modules/date-fns/getDefaultOptions.js new file mode 100644 index 000000000..dc265097d --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions.js @@ -0,0 +1,32 @@ +import { getDefaultOptions as getInternalDefaultOptions } from "./_lib/defaultOptions.js"; + +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions). + * + * @returns The default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +export function getDefaultOptions() { + return Object.assign({}, getInternalDefaultOptions()); +} + +// Fallback for modularized imports: +export default getDefaultOptions; diff --git a/node_modules/date-fns/getHours.cjs b/node_modules/date-fns/getHours.cjs new file mode 100644 index 000000000..56b236971 --- /dev/null +++ b/node_modules/date-fns/getHours.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getHours = getHours; +var _index = require("./toDate.cjs"); + +/** + * The {@link getHours} function options. + */ + +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The hours + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +function getHours(date, options) { + return (0, _index.toDate)(date, options?.in).getHours(); +} diff --git a/node_modules/date-fns/getHours.d.cts b/node_modules/date-fns/getHours.d.cts new file mode 100644 index 000000000..7c728a056 --- /dev/null +++ b/node_modules/date-fns/getHours.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getHours} function options. + */ +export interface GetHoursOptions extends ContextOptions {} +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The hours + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +export declare function getHours( + date: DateArg & {}, + options?: GetHoursOptions | undefined, +): number; diff --git a/node_modules/date-fns/getHours.d.ts b/node_modules/date-fns/getHours.d.ts new file mode 100644 index 000000000..7c728a056 --- /dev/null +++ b/node_modules/date-fns/getHours.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getHours} function options. + */ +export interface GetHoursOptions extends ContextOptions {} +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The hours + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +export declare function getHours( + date: DateArg & {}, + options?: GetHoursOptions | undefined, +): number; diff --git a/node_modules/date-fns/getHours.js b/node_modules/date-fns/getHours.js new file mode 100644 index 000000000..9ac006f54 --- /dev/null +++ b/node_modules/date-fns/getHours.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getHours} function options. + */ + +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The hours + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +export function getHours(date, options) { + return toDate(date, options?.in).getHours(); +} + +// Fallback for modularized imports: +export default getHours; diff --git a/node_modules/date-fns/getISODay.cjs b/node_modules/date-fns/getISODay.cjs new file mode 100644 index 000000000..dfd9515e1 --- /dev/null +++ b/node_modules/date-fns/getISODay.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.getISODay = getISODay; +var _index = require("./toDate.cjs"); + +/** + * The {@link getISODay} function options. + */ + +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The day of ISO week + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +function getISODay(date, options) { + const day = (0, _index.toDate)(date, options?.in).getDay(); + return day === 0 ? 7 : day; +} diff --git a/node_modules/date-fns/getISODay.d.cts b/node_modules/date-fns/getISODay.d.cts new file mode 100644 index 000000000..894315bb7 --- /dev/null +++ b/node_modules/date-fns/getISODay.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISODay} function options. + */ +export interface GetISODayOptions extends ContextOptions {} +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The day of ISO week + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +export declare function getISODay( + date: DateArg & {}, + options?: GetISODayOptions, +): number; diff --git a/node_modules/date-fns/getISODay.d.ts b/node_modules/date-fns/getISODay.d.ts new file mode 100644 index 000000000..894315bb7 --- /dev/null +++ b/node_modules/date-fns/getISODay.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISODay} function options. + */ +export interface GetISODayOptions extends ContextOptions {} +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The day of ISO week + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +export declare function getISODay( + date: DateArg & {}, + options?: GetISODayOptions, +): number; diff --git a/node_modules/date-fns/getISODay.js b/node_modules/date-fns/getISODay.js new file mode 100644 index 000000000..435ce01cd --- /dev/null +++ b/node_modules/date-fns/getISODay.js @@ -0,0 +1,34 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getISODay} function options. + */ + +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The day of ISO week + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +export function getISODay(date, options) { + const day = toDate(date, options?.in).getDay(); + return day === 0 ? 7 : day; +} + +// Fallback for modularized imports: +export default getISODay; diff --git a/node_modules/date-fns/getISOWeek.cjs b/node_modules/date-fns/getISOWeek.cjs new file mode 100644 index 000000000..4c14c2cc9 --- /dev/null +++ b/node_modules/date-fns/getISOWeek.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.getISOWeek = getISOWeek; +var _index = require("./constants.cjs"); +var _index2 = require("./startOfISOWeek.cjs"); +var _index3 = require("./startOfISOWeekYear.cjs"); +var _index4 = require("./toDate.cjs"); + +/** + * The {@link getISOWeek} function options. + */ + +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - The options + * + * @returns The ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +function getISOWeek(date, options) { + const _date = (0, _index4.toDate)(date, options?.in); + const diff = + +(0, _index2.startOfISOWeek)(_date) - + +(0, _index3.startOfISOWeekYear)(_date); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / _index.millisecondsInWeek) + 1; +} diff --git a/node_modules/date-fns/getISOWeek.d.cts b/node_modules/date-fns/getISOWeek.d.cts new file mode 100644 index 000000000..2445dac89 --- /dev/null +++ b/node_modules/date-fns/getISOWeek.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeek} function options. + */ +export interface GetISOWeekOptions extends ContextOptions {} +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - The options + * + * @returns The ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +export declare function getISOWeek( + date: DateArg & {}, + options?: GetISOWeekOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeek.d.ts b/node_modules/date-fns/getISOWeek.d.ts new file mode 100644 index 000000000..2445dac89 --- /dev/null +++ b/node_modules/date-fns/getISOWeek.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeek} function options. + */ +export interface GetISOWeekOptions extends ContextOptions {} +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - The options + * + * @returns The ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +export declare function getISOWeek( + date: DateArg & {}, + options?: GetISOWeekOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeek.js b/node_modules/date-fns/getISOWeek.js new file mode 100644 index 000000000..debec3811 --- /dev/null +++ b/node_modules/date-fns/getISOWeek.js @@ -0,0 +1,41 @@ +import { millisecondsInWeek } from "./constants.js"; +import { startOfISOWeek } from "./startOfISOWeek.js"; +import { startOfISOWeekYear } from "./startOfISOWeekYear.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getISOWeek} function options. + */ + +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - The options + * + * @returns The ISO week + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ +export function getISOWeek(date, options) { + const _date = toDate(date, options?.in); + const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / millisecondsInWeek) + 1; +} + +// Fallback for modularized imports: +export default getISOWeek; diff --git a/node_modules/date-fns/getISOWeekYear.cjs b/node_modules/date-fns/getISOWeekYear.cjs new file mode 100644 index 000000000..d764f7b69 --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear.cjs @@ -0,0 +1,56 @@ +"use strict"; +exports.getISOWeekYear = getISOWeekYear; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./startOfISOWeek.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * The {@link getISOWeekYear} function options. + */ + +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * + * @returns The ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +function getISOWeekYear(date, options) { + const _date = (0, _index3.toDate)(date, options?.in); + const year = _date.getFullYear(); + + const fourthOfJanuaryOfNextYear = (0, _index.constructFrom)(_date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + const startOfNextYear = (0, _index2.startOfISOWeek)( + fourthOfJanuaryOfNextYear, + ); + + const fourthOfJanuaryOfThisYear = (0, _index.constructFrom)(_date, 0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + const startOfThisYear = (0, _index2.startOfISOWeek)( + fourthOfJanuaryOfThisYear, + ); + + if (_date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (_date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} diff --git a/node_modules/date-fns/getISOWeekYear.d.cts b/node_modules/date-fns/getISOWeekYear.d.cts new file mode 100644 index 000000000..60c29624b --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeekYear} function options. + */ +export interface GetISOWeekYearOptions extends ContextOptions {} +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * + * @returns The ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +export declare function getISOWeekYear( + date: DateArg & {}, + options?: GetISOWeekYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeekYear.d.ts b/node_modules/date-fns/getISOWeekYear.d.ts new file mode 100644 index 000000000..60c29624b --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeekYear} function options. + */ +export interface GetISOWeekYearOptions extends ContextOptions {} +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * + * @returns The ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +export declare function getISOWeekYear( + date: DateArg & {}, + options?: GetISOWeekYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeekYear.js b/node_modules/date-fns/getISOWeekYear.js new file mode 100644 index 000000000..e603b566e --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear.js @@ -0,0 +1,53 @@ +import { constructFrom } from "./constructFrom.js"; +import { startOfISOWeek } from "./startOfISOWeek.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getISOWeekYear} function options. + */ + +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * + * @returns The ISO week-numbering year + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +export function getISOWeekYear(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + + const fourthOfJanuaryOfNextYear = constructFrom(_date, 0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear); + + const fourthOfJanuaryOfThisYear = constructFrom(_date, 0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear); + + if (_date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (_date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} + +// Fallback for modularized imports: +export default getISOWeekYear; diff --git a/node_modules/date-fns/getISOWeeksInYear.cjs b/node_modules/date-fns/getISOWeeksInYear.cjs new file mode 100644 index 000000000..36b7e8a5a --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.getISOWeeksInYear = getISOWeeksInYear; +var _index = require("./addWeeks.cjs"); +var _index2 = require("./constants.cjs"); +var _index3 = require("./startOfISOWeekYear.cjs"); + +/** + * The {@link getISOWeeksInYear} function options. + */ + +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of ISO weeks in a year + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ +function getISOWeeksInYear(date, options) { + const thisYear = (0, _index3.startOfISOWeekYear)(date, options); + const nextYear = (0, _index3.startOfISOWeekYear)( + (0, _index.addWeeks)(thisYear, 60), + ); + const diff = +nextYear - +thisYear; + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / _index2.millisecondsInWeek); +} diff --git a/node_modules/date-fns/getISOWeeksInYear.d.cts b/node_modules/date-fns/getISOWeeksInYear.d.cts new file mode 100644 index 000000000..a955ee8ab --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeeksInYear} function options. + */ +export interface GetISOWeeksInYearOptions extends ContextOptions {} +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of ISO weeks in a year + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ +export declare function getISOWeeksInYear( + date: DateArg & {}, + options?: GetISOWeeksInYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeeksInYear.d.ts b/node_modules/date-fns/getISOWeeksInYear.d.ts new file mode 100644 index 000000000..a955ee8ab --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getISOWeeksInYear} function options. + */ +export interface GetISOWeeksInYearOptions extends ContextOptions {} +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of ISO weeks in a year + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ +export declare function getISOWeeksInYear( + date: DateArg & {}, + options?: GetISOWeeksInYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getISOWeeksInYear.js b/node_modules/date-fns/getISOWeeksInYear.js new file mode 100644 index 000000000..536334cca --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear.js @@ -0,0 +1,41 @@ +import { addWeeks } from "./addWeeks.js"; +import { millisecondsInWeek } from "./constants.js"; +import { startOfISOWeekYear } from "./startOfISOWeekYear.js"; + +/** + * The {@link getISOWeeksInYear} function options. + */ + +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The given date + * @param options - An object with options + * + * @returns The number of ISO weeks in a year + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ +export function getISOWeeksInYear(date, options) { + const thisYear = startOfISOWeekYear(date, options); + const nextYear = startOfISOWeekYear(addWeeks(thisYear, 60)); + const diff = +nextYear - +thisYear; + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / millisecondsInWeek); +} + +// Fallback for modularized imports: +export default getISOWeeksInYear; diff --git a/node_modules/date-fns/getMilliseconds.cjs b/node_modules/date-fns/getMilliseconds.cjs new file mode 100644 index 000000000..22ba8e03e --- /dev/null +++ b/node_modules/date-fns/getMilliseconds.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.getMilliseconds = getMilliseconds; +var _index = require("./toDate.cjs"); + +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param date - The given date + * + * @returns The milliseconds + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +function getMilliseconds(date) { + return (0, _index.toDate)(date).getMilliseconds(); +} diff --git a/node_modules/date-fns/getMilliseconds.d.cts b/node_modules/date-fns/getMilliseconds.d.cts new file mode 100644 index 000000000..872cd4e70 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds.d.cts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param date - The given date + * + * @returns The milliseconds + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +export declare function getMilliseconds(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getMilliseconds.d.ts b/node_modules/date-fns/getMilliseconds.d.ts new file mode 100644 index 000000000..872cd4e70 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds.d.ts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param date - The given date + * + * @returns The milliseconds + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +export declare function getMilliseconds(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getMilliseconds.js b/node_modules/date-fns/getMilliseconds.js new file mode 100644 index 000000000..9f70e7dc3 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds.js @@ -0,0 +1,25 @@ +import { toDate } from "./toDate.js"; + +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param date - The given date + * + * @returns The milliseconds + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +export function getMilliseconds(date) { + return toDate(date).getMilliseconds(); +} + +// Fallback for modularized imports: +export default getMilliseconds; diff --git a/node_modules/date-fns/getMinutes.cjs b/node_modules/date-fns/getMinutes.cjs new file mode 100644 index 000000000..567f67df6 --- /dev/null +++ b/node_modules/date-fns/getMinutes.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getMinutes = getMinutes; +var _index = require("./toDate.cjs"); + +/** + * The {@link getMinutes} function options. + */ + +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The minutes + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +function getMinutes(date, options) { + return (0, _index.toDate)(date, options?.in).getMinutes(); +} diff --git a/node_modules/date-fns/getMinutes.d.cts b/node_modules/date-fns/getMinutes.d.cts new file mode 100644 index 000000000..d5ddd2049 --- /dev/null +++ b/node_modules/date-fns/getMinutes.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getMinutes} function options. + */ +export interface GetMinutesOptions extends ContextOptions {} +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The minutes + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +export declare function getMinutes( + date: DateArg & {}, + options?: GetMinutesOptions | undefined, +): number; diff --git a/node_modules/date-fns/getMinutes.d.ts b/node_modules/date-fns/getMinutes.d.ts new file mode 100644 index 000000000..d5ddd2049 --- /dev/null +++ b/node_modules/date-fns/getMinutes.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getMinutes} function options. + */ +export interface GetMinutesOptions extends ContextOptions {} +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The minutes + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +export declare function getMinutes( + date: DateArg & {}, + options?: GetMinutesOptions | undefined, +): number; diff --git a/node_modules/date-fns/getMinutes.js b/node_modules/date-fns/getMinutes.js new file mode 100644 index 000000000..0b54b5174 --- /dev/null +++ b/node_modules/date-fns/getMinutes.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getMinutes} function options. + */ + +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param date - The given date + * @param options - The options + * + * @returns The minutes + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +export function getMinutes(date, options) { + return toDate(date, options?.in).getMinutes(); +} + +// Fallback for modularized imports: +export default getMinutes; diff --git a/node_modules/date-fns/getMonth.cjs b/node_modules/date-fns/getMonth.cjs new file mode 100644 index 000000000..aa697ca5c --- /dev/null +++ b/node_modules/date-fns/getMonth.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getMonth = getMonth; +var _index = require("./toDate.cjs"); + +/** + * The {@link getMonth} function options. + */ + +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The month index (0-11) + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +function getMonth(date, options) { + return (0, _index.toDate)(date, options?.in).getMonth(); +} diff --git a/node_modules/date-fns/getMonth.d.cts b/node_modules/date-fns/getMonth.d.cts new file mode 100644 index 000000000..2637b1923 --- /dev/null +++ b/node_modules/date-fns/getMonth.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getMonth} function options. + */ +export interface GetMonthOptions extends ContextOptions {} +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The month index (0-11) + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +export declare function getMonth( + date: DateArg & {}, + options?: GetMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getMonth.d.ts b/node_modules/date-fns/getMonth.d.ts new file mode 100644 index 000000000..2637b1923 --- /dev/null +++ b/node_modules/date-fns/getMonth.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getMonth} function options. + */ +export interface GetMonthOptions extends ContextOptions {} +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The month index (0-11) + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +export declare function getMonth( + date: DateArg & {}, + options?: GetMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getMonth.js b/node_modules/date-fns/getMonth.js new file mode 100644 index 000000000..ec0a7716c --- /dev/null +++ b/node_modules/date-fns/getMonth.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getMonth} function options. + */ + +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The month index (0-11) + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +export function getMonth(date, options) { + return toDate(date, options?.in).getMonth(); +} + +// Fallback for modularized imports: +export default getMonth; diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.cjs b/node_modules/date-fns/getOverlappingDaysInIntervals.cjs new file mode 100644 index 000000000..ca4a1bdb5 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.cjs @@ -0,0 +1,67 @@ +"use strict"; +exports.getOverlappingDaysInIntervals = getOverlappingDaysInIntervals; +var _index = require("./_lib/getTimezoneOffsetInMilliseconds.cjs"); +var _index2 = require("./constants.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - An object with options + * + * @returns The number of days that overlap in two time intervals + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ + +function getOverlappingDaysInIntervals(intervalLeft, intervalRight) { + const [leftStart, leftEnd] = [ + +(0, _index3.toDate)(intervalLeft.start), + +(0, _index3.toDate)(intervalLeft.end), + ].sort((a, b) => a - b); + const [rightStart, rightEnd] = [ + +(0, _index3.toDate)(intervalRight.start), + +(0, _index3.toDate)(intervalRight.end), + ].sort((a, b) => a - b); + + // Prevent NaN result if intervals don't overlap at all. + const isOverlapping = leftStart < rightEnd && rightStart < leftEnd; + if (!isOverlapping) return 0; + + // Remove the timezone offset to negate the DST effect on calculations. + const overlapLeft = rightStart < leftStart ? leftStart : rightStart; + const left = + overlapLeft - (0, _index.getTimezoneOffsetInMilliseconds)(overlapLeft); + const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + const right = + overlapRight - (0, _index.getTimezoneOffsetInMilliseconds)(overlapRight); + + // Ceil the number to include partial days too. + return Math.ceil((right - left) / _index2.millisecondsInDay); +} diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.d.cts b/node_modules/date-fns/getOverlappingDaysInIntervals.d.cts new file mode 100644 index 000000000..763acc1da --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.d.cts @@ -0,0 +1,40 @@ +import type { Interval } from "./types.ts"; +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - An object with options + * + * @returns The number of days that overlap in two time intervals + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ +export declare function getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval, +): number; diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts b/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts new file mode 100644 index 000000000..763acc1da --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.d.ts @@ -0,0 +1,40 @@ +import type { Interval } from "./types.ts"; +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - An object with options + * + * @returns The number of days that overlap in two time intervals + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ +export declare function getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval, +): number; diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals.js b/node_modules/date-fns/getOverlappingDaysInIntervals.js new file mode 100644 index 000000000..18a039824 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals.js @@ -0,0 +1,66 @@ +import { getTimezoneOffsetInMilliseconds } from "./_lib/getTimezoneOffsetInMilliseconds.js"; +import { millisecondsInDay } from "./constants.js"; +import { toDate } from "./toDate.js"; + +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals. It uses the time + * between dates to calculate the number of days, rounding it up to include + * partial days. + * + * Two equal 0-length intervals will result in 0. Two equal 1ms intervals will + * result in 1. + * + * @param intervalLeft - The first interval to compare. + * @param intervalRight - The second interval to compare. + * @param options - An object with options + * + * @returns The number of days that overlap in two time intervals + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ + +export function getOverlappingDaysInIntervals(intervalLeft, intervalRight) { + const [leftStart, leftEnd] = [ + +toDate(intervalLeft.start), + +toDate(intervalLeft.end), + ].sort((a, b) => a - b); + const [rightStart, rightEnd] = [ + +toDate(intervalRight.start), + +toDate(intervalRight.end), + ].sort((a, b) => a - b); + + // Prevent NaN result if intervals don't overlap at all. + const isOverlapping = leftStart < rightEnd && rightStart < leftEnd; + if (!isOverlapping) return 0; + + // Remove the timezone offset to negate the DST effect on calculations. + const overlapLeft = rightStart < leftStart ? leftStart : rightStart; + const left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft); + const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; + const right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight); + + // Ceil the number to include partial days too. + return Math.ceil((right - left) / millisecondsInDay); +} + +// Fallback for modularized imports: +export default getOverlappingDaysInIntervals; diff --git a/node_modules/date-fns/getQuarter.cjs b/node_modules/date-fns/getQuarter.cjs new file mode 100644 index 000000000..9320e197b --- /dev/null +++ b/node_modules/date-fns/getQuarter.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.getQuarter = getQuarter; +var _index = require("./toDate.cjs"); + +/** + * The {@link getQuarter} function options. + */ + +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The quarter + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)); + * //=> 3 + */ +function getQuarter(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const quarter = Math.trunc(_date.getMonth() / 3) + 1; + return quarter; +} diff --git a/node_modules/date-fns/getQuarter.d.cts b/node_modules/date-fns/getQuarter.d.cts new file mode 100644 index 000000000..b245f89fe --- /dev/null +++ b/node_modules/date-fns/getQuarter.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getQuarter} function options. + */ +export interface GetQuarterOptions extends ContextOptions {} +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The quarter + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)); + * //=> 3 + */ +export declare function getQuarter( + date: DateArg & {}, + options?: GetQuarterOptions | undefined, +): number; diff --git a/node_modules/date-fns/getQuarter.d.ts b/node_modules/date-fns/getQuarter.d.ts new file mode 100644 index 000000000..b245f89fe --- /dev/null +++ b/node_modules/date-fns/getQuarter.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getQuarter} function options. + */ +export interface GetQuarterOptions extends ContextOptions {} +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The quarter + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)); + * //=> 3 + */ +export declare function getQuarter( + date: DateArg & {}, + options?: GetQuarterOptions | undefined, +): number; diff --git a/node_modules/date-fns/getQuarter.js b/node_modules/date-fns/getQuarter.js new file mode 100644 index 000000000..edb9d8d05 --- /dev/null +++ b/node_modules/date-fns/getQuarter.js @@ -0,0 +1,32 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getQuarter} function options. + */ + +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The quarter + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)); + * //=> 3 + */ +export function getQuarter(date, options) { + const _date = toDate(date, options?.in); + const quarter = Math.trunc(_date.getMonth() / 3) + 1; + return quarter; +} + +// Fallback for modularized imports: +export default getQuarter; diff --git a/node_modules/date-fns/getSeconds.cjs b/node_modules/date-fns/getSeconds.cjs new file mode 100644 index 000000000..8c546eaa1 --- /dev/null +++ b/node_modules/date-fns/getSeconds.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.getSeconds = getSeconds; +var _index = require("./toDate.cjs"); + +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param date - The given date + * + * @returns The seconds + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +function getSeconds(date) { + return (0, _index.toDate)(date).getSeconds(); +} diff --git a/node_modules/date-fns/getSeconds.d.cts b/node_modules/date-fns/getSeconds.d.cts new file mode 100644 index 000000000..b6298dd1f --- /dev/null +++ b/node_modules/date-fns/getSeconds.d.cts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param date - The given date + * + * @returns The seconds + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +export declare function getSeconds(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getSeconds.d.ts b/node_modules/date-fns/getSeconds.d.ts new file mode 100644 index 000000000..b6298dd1f --- /dev/null +++ b/node_modules/date-fns/getSeconds.d.ts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param date - The given date + * + * @returns The seconds + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +export declare function getSeconds(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getSeconds.js b/node_modules/date-fns/getSeconds.js new file mode 100644 index 000000000..7b4a2bde7 --- /dev/null +++ b/node_modules/date-fns/getSeconds.js @@ -0,0 +1,25 @@ +import { toDate } from "./toDate.js"; + +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param date - The given date + * + * @returns The seconds + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +export function getSeconds(date) { + return toDate(date).getSeconds(); +} + +// Fallback for modularized imports: +export default getSeconds; diff --git a/node_modules/date-fns/getTime.cjs b/node_modules/date-fns/getTime.cjs new file mode 100644 index 000000000..ef5d8fdc7 --- /dev/null +++ b/node_modules/date-fns/getTime.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.getTime = getTime; +var _index = require("./toDate.cjs"); + +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +function getTime(date) { + return +(0, _index.toDate)(date); +} diff --git a/node_modules/date-fns/getTime.d.cts b/node_modules/date-fns/getTime.d.cts new file mode 100644 index 000000000..b373f66fa --- /dev/null +++ b/node_modules/date-fns/getTime.d.cts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +export declare function getTime(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getTime.d.ts b/node_modules/date-fns/getTime.d.ts new file mode 100644 index 000000000..b373f66fa --- /dev/null +++ b/node_modules/date-fns/getTime.d.ts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +export declare function getTime(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getTime.js b/node_modules/date-fns/getTime.js new file mode 100644 index 000000000..e7a3aa82f --- /dev/null +++ b/node_modules/date-fns/getTime.js @@ -0,0 +1,25 @@ +import { toDate } from "./toDate.js"; + +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +export function getTime(date) { + return +toDate(date); +} + +// Fallback for modularized imports: +export default getTime; diff --git a/node_modules/date-fns/getUnixTime.cjs b/node_modules/date-fns/getUnixTime.cjs new file mode 100644 index 000000000..3b82d9b3a --- /dev/null +++ b/node_modules/date-fns/getUnixTime.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.getUnixTime = getUnixTime; +var _index = require("./toDate.cjs"); + +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +function getUnixTime(date) { + return Math.trunc(+(0, _index.toDate)(date) / 1000); +} diff --git a/node_modules/date-fns/getUnixTime.d.cts b/node_modules/date-fns/getUnixTime.d.cts new file mode 100644 index 000000000..25c0e08d2 --- /dev/null +++ b/node_modules/date-fns/getUnixTime.d.cts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +export declare function getUnixTime(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getUnixTime.d.ts b/node_modules/date-fns/getUnixTime.d.ts new file mode 100644 index 000000000..25c0e08d2 --- /dev/null +++ b/node_modules/date-fns/getUnixTime.d.ts @@ -0,0 +1,19 @@ +import type { DateArg } from "./types.ts"; +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +export declare function getUnixTime(date: DateArg & {}): number; diff --git a/node_modules/date-fns/getUnixTime.js b/node_modules/date-fns/getUnixTime.js new file mode 100644 index 000000000..f7e54327b --- /dev/null +++ b/node_modules/date-fns/getUnixTime.js @@ -0,0 +1,25 @@ +import { toDate } from "./toDate.js"; + +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param date - The given date + * + * @returns The timestamp + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +export function getUnixTime(date) { + return Math.trunc(+toDate(date) / 1000); +} + +// Fallback for modularized imports: +export default getUnixTime; diff --git a/node_modules/date-fns/getWeek.cjs b/node_modules/date-fns/getWeek.cjs new file mode 100644 index 000000000..02b82243d --- /dev/null +++ b/node_modules/date-fns/getWeek.cjs @@ -0,0 +1,56 @@ +"use strict"; +exports.getWeek = getWeek; +var _index = require("./constants.cjs"); +var _index2 = require("./startOfWeek.cjs"); +var _index3 = require("./startOfWeekYear.cjs"); +var _index4 = require("./toDate.cjs"); + +/** + * The {@link getWeek} function options. + */ + +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options + * + * @returns The week + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * @example + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ +function getWeek(date, options) { + const _date = (0, _index4.toDate)(date, options?.in); + const diff = + +(0, _index2.startOfWeek)(_date, options) - + +(0, _index3.startOfWeekYear)(_date, options); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / _index.millisecondsInWeek) + 1; +} diff --git a/node_modules/date-fns/getWeek.d.cts b/node_modules/date-fns/getWeek.d.cts new file mode 100644 index 000000000..0d73155a2 --- /dev/null +++ b/node_modules/date-fns/getWeek.d.cts @@ -0,0 +1,53 @@ +import type { + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeek} function options. + */ +export interface GetWeekOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions, + ContextOptions {} +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options + * + * @returns The week + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * @example + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ +export declare function getWeek( + date: DateArg & {}, + options?: GetWeekOptions | undefined, +): number; diff --git a/node_modules/date-fns/getWeek.d.ts b/node_modules/date-fns/getWeek.d.ts new file mode 100644 index 000000000..0d73155a2 --- /dev/null +++ b/node_modules/date-fns/getWeek.d.ts @@ -0,0 +1,53 @@ +import type { + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeek} function options. + */ +export interface GetWeekOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions, + ContextOptions {} +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options + * + * @returns The week + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * @example + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ +export declare function getWeek( + date: DateArg & {}, + options?: GetWeekOptions | undefined, +): number; diff --git a/node_modules/date-fns/getWeek.js b/node_modules/date-fns/getWeek.js new file mode 100644 index 000000000..5b2aa11e5 --- /dev/null +++ b/node_modules/date-fns/getWeek.js @@ -0,0 +1,55 @@ +import { millisecondsInWeek } from "./constants.js"; +import { startOfWeek } from "./startOfWeek.js"; +import { startOfWeekYear } from "./startOfWeekYear.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getWeek} function options. + */ + +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options + * + * @returns The week + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * @example + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ +export function getWeek(date, options) { + const _date = toDate(date, options?.in); + const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options); + + // Round the number of weeks to the nearest integer because the number of + // milliseconds in a week is not constant (e.g. it's different in the week of + // the daylight saving time clock shift). + return Math.round(diff / millisecondsInWeek) + 1; +} + +// Fallback for modularized imports: +export default getWeek; diff --git a/node_modules/date-fns/getWeekOfMonth.cjs b/node_modules/date-fns/getWeekOfMonth.cjs new file mode 100644 index 000000000..e260e4847 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth.cjs @@ -0,0 +1,54 @@ +"use strict"; +exports.getWeekOfMonth = getWeekOfMonth; +var _index = require("./_lib/defaultOptions.cjs"); +var _index2 = require("./getDate.cjs"); +var _index3 = require("./getDay.cjs"); +var _index4 = require("./startOfMonth.cjs"); +var _index5 = require("./toDate.cjs"); + +/** + * The {@link getWeekOfMonth} function options. + */ + +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The week of month + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +function getWeekOfMonth(date, options) { + const defaultOptions = (0, _index.getDefaultOptions)(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const currentDayOfMonth = (0, _index2.getDate)( + (0, _index5.toDate)(date, options?.in), + ); + if (isNaN(currentDayOfMonth)) return NaN; + + const startWeekDay = (0, _index3.getDay)( + (0, _index4.startOfMonth)(date, options), + ); + + let lastDayOfFirstWeek = weekStartsOn - startWeekDay; + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + + const remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} diff --git a/node_modules/date-fns/getWeekOfMonth.d.cts b/node_modules/date-fns/getWeekOfMonth.d.cts new file mode 100644 index 000000000..d6053b590 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth.d.cts @@ -0,0 +1,35 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeekOfMonth} function options. + */ +export interface GetWeekOfMonthOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The week of month + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +export declare function getWeekOfMonth( + date: DateArg & {}, + options?: GetWeekOfMonthOptions, +): number; diff --git a/node_modules/date-fns/getWeekOfMonth.d.ts b/node_modules/date-fns/getWeekOfMonth.d.ts new file mode 100644 index 000000000..d6053b590 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth.d.ts @@ -0,0 +1,35 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeekOfMonth} function options. + */ +export interface GetWeekOfMonthOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The week of month + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +export declare function getWeekOfMonth( + date: DateArg & {}, + options?: GetWeekOfMonthOptions, +): number; diff --git a/node_modules/date-fns/getWeekOfMonth.js b/node_modules/date-fns/getWeekOfMonth.js new file mode 100644 index 000000000..ce0d14ec8 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth.js @@ -0,0 +1,51 @@ +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { getDate } from "./getDate.js"; +import { getDay } from "./getDay.js"; +import { startOfMonth } from "./startOfMonth.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getWeekOfMonth} function options. + */ + +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The week of month + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +export function getWeekOfMonth(date, options) { + const defaultOptions = getDefaultOptions(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const currentDayOfMonth = getDate(toDate(date, options?.in)); + if (isNaN(currentDayOfMonth)) return NaN; + + const startWeekDay = getDay(startOfMonth(date, options)); + + let lastDayOfFirstWeek = weekStartsOn - startWeekDay; + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + + const remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} + +// Fallback for modularized imports: +export default getWeekOfMonth; diff --git a/node_modules/date-fns/getWeekYear.cjs b/node_modules/date-fns/getWeekYear.cjs new file mode 100644 index 000000000..041f8ffca --- /dev/null +++ b/node_modules/date-fns/getWeekYear.cjs @@ -0,0 +1,87 @@ +"use strict"; +exports.getWeekYear = getWeekYear; +var _index = require("./_lib/defaultOptions.cjs"); +var _index2 = require("./constructFrom.cjs"); +var _index3 = require("./startOfWeek.cjs"); +var _index4 = require("./toDate.cjs"); + +/** + * The {@link getWeekYear} function options. + */ + +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The local week-numbering year + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +function getWeekYear(date, options) { + const _date = (0, _index4.toDate)(date, options?.in); + const year = _date.getFullYear(); + + const defaultOptions = (0, _index.getDefaultOptions)(); + const firstWeekContainsDate = + options?.firstWeekContainsDate ?? + options?.locale?.options?.firstWeekContainsDate ?? + defaultOptions.firstWeekContainsDate ?? + defaultOptions.locale?.options?.firstWeekContainsDate ?? + 1; + + const firstWeekOfNextYear = (0, _index2.constructFrom)( + options?.in || date, + 0, + ); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + const startOfNextYear = (0, _index3.startOfWeek)( + firstWeekOfNextYear, + options, + ); + + const firstWeekOfThisYear = (0, _index2.constructFrom)( + options?.in || date, + 0, + ); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + const startOfThisYear = (0, _index3.startOfWeek)( + firstWeekOfThisYear, + options, + ); + + if (+_date >= +startOfNextYear) { + return year + 1; + } else if (+_date >= +startOfThisYear) { + return year; + } else { + return year - 1; + } +} diff --git a/node_modules/date-fns/getWeekYear.d.cts b/node_modules/date-fns/getWeekYear.d.cts new file mode 100644 index 000000000..d891348e3 --- /dev/null +++ b/node_modules/date-fns/getWeekYear.d.cts @@ -0,0 +1,53 @@ +import type { + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeekYear} function options. + */ +export interface GetWeekYearOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions, + ContextOptions {} +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The local week-numbering year + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +export declare function getWeekYear( + date: DateArg & {}, + options?: GetWeekYearOptions, +): number; diff --git a/node_modules/date-fns/getWeekYear.d.ts b/node_modules/date-fns/getWeekYear.d.ts new file mode 100644 index 000000000..d891348e3 --- /dev/null +++ b/node_modules/date-fns/getWeekYear.d.ts @@ -0,0 +1,53 @@ +import type { + ContextOptions, + DateArg, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeekYear} function options. + */ +export interface GetWeekYearOptions + extends LocalizedOptions<"options">, + WeekOptions, + FirstWeekContainsDateOptions, + ContextOptions {} +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The local week-numbering year + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +export declare function getWeekYear( + date: DateArg & {}, + options?: GetWeekYearOptions, +): number; diff --git a/node_modules/date-fns/getWeekYear.js b/node_modules/date-fns/getWeekYear.js new file mode 100644 index 000000000..f37c953d8 --- /dev/null +++ b/node_modules/date-fns/getWeekYear.js @@ -0,0 +1,76 @@ +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { constructFrom } from "./constructFrom.js"; +import { startOfWeek } from "./startOfWeek.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getWeekYear} function options. + */ + +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The local week-numbering year + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +export function getWeekYear(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + + const defaultOptions = getDefaultOptions(); + const firstWeekContainsDate = + options?.firstWeekContainsDate ?? + options?.locale?.options?.firstWeekContainsDate ?? + defaultOptions.firstWeekContainsDate ?? + defaultOptions.locale?.options?.firstWeekContainsDate ?? + 1; + + const firstWeekOfNextYear = constructFrom(options?.in || date, 0); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + const startOfNextYear = startOfWeek(firstWeekOfNextYear, options); + + const firstWeekOfThisYear = constructFrom(options?.in || date, 0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + const startOfThisYear = startOfWeek(firstWeekOfThisYear, options); + + if (+_date >= +startOfNextYear) { + return year + 1; + } else if (+_date >= +startOfThisYear) { + return year; + } else { + return year - 1; + } +} + +// Fallback for modularized imports: +export default getWeekYear; diff --git a/node_modules/date-fns/getWeeksInMonth.cjs b/node_modules/date-fns/getWeeksInMonth.cjs new file mode 100644 index 000000000..9f561d724 --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.getWeeksInMonth = getWeeksInMonth; +var _index = require("./differenceInCalendarWeeks.cjs"); +var _index2 = require("./lastDayOfMonth.cjs"); +var _index3 = require("./startOfMonth.cjs"); +var _index4 = require("./toDate.cjs"); + +/** + * The {@link getWeeksInMonth} function options. + */ + +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +function getWeeksInMonth(date, options) { + const contextDate = (0, _index4.toDate)(date, options?.in); + return ( + (0, _index.differenceInCalendarWeeks)( + (0, _index2.lastDayOfMonth)(contextDate, options), + (0, _index3.startOfMonth)(contextDate, options), + options, + ) + 1 + ); +} diff --git a/node_modules/date-fns/getWeeksInMonth.d.cts b/node_modules/date-fns/getWeeksInMonth.d.cts new file mode 100644 index 000000000..fc6c7a52d --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth.d.cts @@ -0,0 +1,41 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeeksInMonth} function options. + */ +export interface GetWeeksInMonthOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +export declare function getWeeksInMonth( + date: DateArg & {}, + options?: GetWeeksInMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getWeeksInMonth.d.ts b/node_modules/date-fns/getWeeksInMonth.d.ts new file mode 100644 index 000000000..fc6c7a52d --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth.d.ts @@ -0,0 +1,41 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link getWeeksInMonth} function options. + */ +export interface GetWeeksInMonthOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +export declare function getWeeksInMonth( + date: DateArg & {}, + options?: GetWeeksInMonthOptions | undefined, +): number; diff --git a/node_modules/date-fns/getWeeksInMonth.js b/node_modules/date-fns/getWeeksInMonth.js new file mode 100644 index 000000000..bf77a0e90 --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth.js @@ -0,0 +1,46 @@ +import { differenceInCalendarWeeks } from "./differenceInCalendarWeeks.js"; +import { lastDayOfMonth } from "./lastDayOfMonth.js"; +import { startOfMonth } from "./startOfMonth.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link getWeeksInMonth} function options. + */ + +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param date - The given date + * @param options - An object with options. + * + * @returns The number of calendar weeks + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +export function getWeeksInMonth(date, options) { + const contextDate = toDate(date, options?.in); + return ( + differenceInCalendarWeeks( + lastDayOfMonth(contextDate, options), + startOfMonth(contextDate, options), + options, + ) + 1 + ); +} + +// Fallback for modularized imports: +export default getWeeksInMonth; diff --git a/node_modules/date-fns/getYear.cjs b/node_modules/date-fns/getYear.cjs new file mode 100644 index 000000000..29a214568 --- /dev/null +++ b/node_modules/date-fns/getYear.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.getYear = getYear; +var _index = require("./toDate.cjs"); + +/** + * The {@link getYear} function options. + */ + +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +function getYear(date, options) { + return (0, _index.toDate)(date, options?.in).getFullYear(); +} diff --git a/node_modules/date-fns/getYear.d.cts b/node_modules/date-fns/getYear.d.cts new file mode 100644 index 000000000..2e6daaade --- /dev/null +++ b/node_modules/date-fns/getYear.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getYear} function options. + */ +export interface GetYearOptions extends ContextOptions {} +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +export declare function getYear( + date: DateArg & {}, + options?: GetYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getYear.d.ts b/node_modules/date-fns/getYear.d.ts new file mode 100644 index 000000000..2e6daaade --- /dev/null +++ b/node_modules/date-fns/getYear.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link getYear} function options. + */ +export interface GetYearOptions extends ContextOptions {} +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +export declare function getYear( + date: DateArg & {}, + options?: GetYearOptions | undefined, +): number; diff --git a/node_modules/date-fns/getYear.js b/node_modules/date-fns/getYear.js new file mode 100644 index 000000000..cd56e0209 --- /dev/null +++ b/node_modules/date-fns/getYear.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link getYear} function options. + */ + +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param date - The given date + * @param options - An object with options + * + * @returns The year + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +export function getYear(date, options) { + return toDate(date, options?.in).getFullYear(); +} + +// Fallback for modularized imports: +export default getYear; diff --git a/node_modules/date-fns/hoursToMilliseconds.cjs b/node_modules/date-fns/hoursToMilliseconds.cjs new file mode 100644 index 000000000..83940c585 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.hoursToMilliseconds = hoursToMilliseconds; +var _index = require("./constants.cjs"); + +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted to milliseconds + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +function hoursToMilliseconds(hours) { + return Math.trunc(hours * _index.millisecondsInHour); +} diff --git a/node_modules/date-fns/hoursToMilliseconds.d.cts b/node_modules/date-fns/hoursToMilliseconds.d.cts new file mode 100644 index 000000000..6edaf8689 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds.d.cts @@ -0,0 +1,18 @@ +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted to milliseconds + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +export declare function hoursToMilliseconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToMilliseconds.d.ts b/node_modules/date-fns/hoursToMilliseconds.d.ts new file mode 100644 index 000000000..6edaf8689 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds.d.ts @@ -0,0 +1,18 @@ +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted to milliseconds + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +export declare function hoursToMilliseconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToMilliseconds.js b/node_modules/date-fns/hoursToMilliseconds.js new file mode 100644 index 000000000..bcb524f79 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds.js @@ -0,0 +1,25 @@ +import { millisecondsInHour } from "./constants.js"; + +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted to milliseconds + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +export function hoursToMilliseconds(hours) { + return Math.trunc(hours * millisecondsInHour); +} + +// Fallback for modularized imports: +export default hoursToMilliseconds; diff --git a/node_modules/date-fns/hoursToMinutes.cjs b/node_modules/date-fns/hoursToMinutes.cjs new file mode 100644 index 000000000..184d1b204 --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.hoursToMinutes = hoursToMinutes; +var _index = require("./constants.cjs"); + +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted in minutes + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +function hoursToMinutes(hours) { + return Math.trunc(hours * _index.minutesInHour); +} diff --git a/node_modules/date-fns/hoursToMinutes.d.cts b/node_modules/date-fns/hoursToMinutes.d.cts new file mode 100644 index 000000000..de189a5dd --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes.d.cts @@ -0,0 +1,18 @@ +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted in minutes + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +export declare function hoursToMinutes(hours: number): number; diff --git a/node_modules/date-fns/hoursToMinutes.d.ts b/node_modules/date-fns/hoursToMinutes.d.ts new file mode 100644 index 000000000..de189a5dd --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes.d.ts @@ -0,0 +1,18 @@ +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted in minutes + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +export declare function hoursToMinutes(hours: number): number; diff --git a/node_modules/date-fns/hoursToMinutes.js b/node_modules/date-fns/hoursToMinutes.js new file mode 100644 index 000000000..9a7d53dbb --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes.js @@ -0,0 +1,25 @@ +import { minutesInHour } from "./constants.js"; + +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param hours - number of hours to be converted + * + * @returns The number of hours converted in minutes + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +export function hoursToMinutes(hours) { + return Math.trunc(hours * minutesInHour); +} + +// Fallback for modularized imports: +export default hoursToMinutes; diff --git a/node_modules/date-fns/hoursToSeconds.cjs b/node_modules/date-fns/hoursToSeconds.cjs new file mode 100644 index 000000000..a84ac6f45 --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds.cjs @@ -0,0 +1,24 @@ +"use strict"; +exports.hoursToSeconds = hoursToSeconds; +var _index = require("./constants.cjs"); + +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param hours - The number of hours to be converted + * + * @returns The number of hours converted in seconds + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +function hoursToSeconds(hours) { + return Math.trunc(hours * _index.secondsInHour); +} diff --git a/node_modules/date-fns/hoursToSeconds.d.cts b/node_modules/date-fns/hoursToSeconds.d.cts new file mode 100644 index 000000000..691471ede --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds.d.cts @@ -0,0 +1,18 @@ +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param hours - The number of hours to be converted + * + * @returns The number of hours converted in seconds + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +export declare function hoursToSeconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToSeconds.d.ts b/node_modules/date-fns/hoursToSeconds.d.ts new file mode 100644 index 000000000..691471ede --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds.d.ts @@ -0,0 +1,18 @@ +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param hours - The number of hours to be converted + * + * @returns The number of hours converted in seconds + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +export declare function hoursToSeconds(hours: number): number; diff --git a/node_modules/date-fns/hoursToSeconds.js b/node_modules/date-fns/hoursToSeconds.js new file mode 100644 index 000000000..68b13e412 --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds.js @@ -0,0 +1,25 @@ +import { secondsInHour } from "./constants.js"; + +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param hours - The number of hours to be converted + * + * @returns The number of hours converted in seconds + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +export function hoursToSeconds(hours) { + return Math.trunc(hours * secondsInHour); +} + +// Fallback for modularized imports: +export default hoursToSeconds; diff --git a/node_modules/date-fns/index.cjs b/node_modules/date-fns/index.cjs new file mode 100644 index 000000000..3b86bb915 --- /dev/null +++ b/node_modules/date-fns/index.cjs @@ -0,0 +1,2697 @@ +"use strict"; + +var _index = require("./add.cjs"); +Object.keys(_index).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index[key]; + }, + }); +}); +var _index2 = require("./addBusinessDays.cjs"); +Object.keys(_index2).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index2[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index2[key]; + }, + }); +}); +var _index3 = require("./addDays.cjs"); +Object.keys(_index3).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index3[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index3[key]; + }, + }); +}); +var _index4 = require("./addHours.cjs"); +Object.keys(_index4).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index4[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index4[key]; + }, + }); +}); +var _index5 = require("./addISOWeekYears.cjs"); +Object.keys(_index5).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index5[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index5[key]; + }, + }); +}); +var _index6 = require("./addMilliseconds.cjs"); +Object.keys(_index6).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index6[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index6[key]; + }, + }); +}); +var _index7 = require("./addMinutes.cjs"); +Object.keys(_index7).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index7[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index7[key]; + }, + }); +}); +var _index8 = require("./addMonths.cjs"); +Object.keys(_index8).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index8[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index8[key]; + }, + }); +}); +var _index9 = require("./addQuarters.cjs"); +Object.keys(_index9).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index9[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index9[key]; + }, + }); +}); +var _index0 = require("./addSeconds.cjs"); +Object.keys(_index0).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index0[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index0[key]; + }, + }); +}); +var _index1 = require("./addWeeks.cjs"); +Object.keys(_index1).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index1[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index1[key]; + }, + }); +}); +var _index10 = require("./addYears.cjs"); +Object.keys(_index10).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index10[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index10[key]; + }, + }); +}); +var _index11 = require("./areIntervalsOverlapping.cjs"); +Object.keys(_index11).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index11[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index11[key]; + }, + }); +}); +var _index12 = require("./clamp.cjs"); +Object.keys(_index12).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index12[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index12[key]; + }, + }); +}); +var _index13 = require("./closestIndexTo.cjs"); +Object.keys(_index13).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index13[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index13[key]; + }, + }); +}); +var _index14 = require("./closestTo.cjs"); +Object.keys(_index14).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index14[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index14[key]; + }, + }); +}); +var _index15 = require("./compareAsc.cjs"); +Object.keys(_index15).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index15[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index15[key]; + }, + }); +}); +var _index16 = require("./compareDesc.cjs"); +Object.keys(_index16).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index16[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index16[key]; + }, + }); +}); +var _index17 = require("./constructFrom.cjs"); +Object.keys(_index17).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index17[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index17[key]; + }, + }); +}); +var _index18 = require("./constructNow.cjs"); +Object.keys(_index18).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index18[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index18[key]; + }, + }); +}); +var _index19 = require("./daysToWeeks.cjs"); +Object.keys(_index19).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index19[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index19[key]; + }, + }); +}); +var _index20 = require("./differenceInBusinessDays.cjs"); +Object.keys(_index20).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index20[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index20[key]; + }, + }); +}); +var _index21 = require("./differenceInCalendarDays.cjs"); +Object.keys(_index21).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index21[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index21[key]; + }, + }); +}); +var _index22 = require("./differenceInCalendarISOWeekYears.cjs"); +Object.keys(_index22).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index22[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index22[key]; + }, + }); +}); +var _index23 = require("./differenceInCalendarISOWeeks.cjs"); +Object.keys(_index23).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index23[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index23[key]; + }, + }); +}); +var _index24 = require("./differenceInCalendarMonths.cjs"); +Object.keys(_index24).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index24[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index24[key]; + }, + }); +}); +var _index25 = require("./differenceInCalendarQuarters.cjs"); +Object.keys(_index25).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index25[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index25[key]; + }, + }); +}); +var _index26 = require("./differenceInCalendarWeeks.cjs"); +Object.keys(_index26).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index26[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index26[key]; + }, + }); +}); +var _index27 = require("./differenceInCalendarYears.cjs"); +Object.keys(_index27).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index27[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index27[key]; + }, + }); +}); +var _index28 = require("./differenceInDays.cjs"); +Object.keys(_index28).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index28[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index28[key]; + }, + }); +}); +var _index29 = require("./differenceInHours.cjs"); +Object.keys(_index29).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index29[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index29[key]; + }, + }); +}); +var _index30 = require("./differenceInISOWeekYears.cjs"); +Object.keys(_index30).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index30[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index30[key]; + }, + }); +}); +var _index31 = require("./differenceInMilliseconds.cjs"); +Object.keys(_index31).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index31[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index31[key]; + }, + }); +}); +var _index32 = require("./differenceInMinutes.cjs"); +Object.keys(_index32).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index32[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index32[key]; + }, + }); +}); +var _index33 = require("./differenceInMonths.cjs"); +Object.keys(_index33).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index33[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index33[key]; + }, + }); +}); +var _index34 = require("./differenceInQuarters.cjs"); +Object.keys(_index34).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index34[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index34[key]; + }, + }); +}); +var _index35 = require("./differenceInSeconds.cjs"); +Object.keys(_index35).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index35[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index35[key]; + }, + }); +}); +var _index36 = require("./differenceInWeeks.cjs"); +Object.keys(_index36).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index36[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index36[key]; + }, + }); +}); +var _index37 = require("./differenceInYears.cjs"); +Object.keys(_index37).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index37[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index37[key]; + }, + }); +}); +var _index38 = require("./eachDayOfInterval.cjs"); +Object.keys(_index38).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index38[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index38[key]; + }, + }); +}); +var _index39 = require("./eachHourOfInterval.cjs"); +Object.keys(_index39).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index39[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index39[key]; + }, + }); +}); +var _index40 = require("./eachMinuteOfInterval.cjs"); +Object.keys(_index40).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index40[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index40[key]; + }, + }); +}); +var _index41 = require("./eachMonthOfInterval.cjs"); +Object.keys(_index41).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index41[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index41[key]; + }, + }); +}); +var _index42 = require("./eachQuarterOfInterval.cjs"); +Object.keys(_index42).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index42[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index42[key]; + }, + }); +}); +var _index43 = require("./eachWeekOfInterval.cjs"); +Object.keys(_index43).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index43[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index43[key]; + }, + }); +}); +var _index44 = require("./eachWeekendOfInterval.cjs"); +Object.keys(_index44).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index44[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index44[key]; + }, + }); +}); +var _index45 = require("./eachWeekendOfMonth.cjs"); +Object.keys(_index45).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index45[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index45[key]; + }, + }); +}); +var _index46 = require("./eachWeekendOfYear.cjs"); +Object.keys(_index46).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index46[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index46[key]; + }, + }); +}); +var _index47 = require("./eachYearOfInterval.cjs"); +Object.keys(_index47).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index47[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index47[key]; + }, + }); +}); +var _index48 = require("./endOfDay.cjs"); +Object.keys(_index48).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index48[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index48[key]; + }, + }); +}); +var _index49 = require("./endOfDecade.cjs"); +Object.keys(_index49).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index49[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index49[key]; + }, + }); +}); +var _index50 = require("./endOfHour.cjs"); +Object.keys(_index50).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index50[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index50[key]; + }, + }); +}); +var _index51 = require("./endOfISOWeek.cjs"); +Object.keys(_index51).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index51[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index51[key]; + }, + }); +}); +var _index52 = require("./endOfISOWeekYear.cjs"); +Object.keys(_index52).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index52[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index52[key]; + }, + }); +}); +var _index53 = require("./endOfMinute.cjs"); +Object.keys(_index53).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index53[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index53[key]; + }, + }); +}); +var _index54 = require("./endOfMonth.cjs"); +Object.keys(_index54).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index54[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index54[key]; + }, + }); +}); +var _index55 = require("./endOfQuarter.cjs"); +Object.keys(_index55).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index55[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index55[key]; + }, + }); +}); +var _index56 = require("./endOfSecond.cjs"); +Object.keys(_index56).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index56[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index56[key]; + }, + }); +}); +var _index57 = require("./endOfToday.cjs"); +Object.keys(_index57).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index57[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index57[key]; + }, + }); +}); +var _index58 = require("./endOfTomorrow.cjs"); +Object.keys(_index58).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index58[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index58[key]; + }, + }); +}); +var _index59 = require("./endOfWeek.cjs"); +Object.keys(_index59).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index59[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index59[key]; + }, + }); +}); +var _index60 = require("./endOfYear.cjs"); +Object.keys(_index60).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index60[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index60[key]; + }, + }); +}); +var _index61 = require("./endOfYesterday.cjs"); +Object.keys(_index61).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index61[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index61[key]; + }, + }); +}); +var _index62 = require("./format.cjs"); +Object.keys(_index62).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index62[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index62[key]; + }, + }); +}); +var _index63 = require("./formatDistance.cjs"); +Object.keys(_index63).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index63[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index63[key]; + }, + }); +}); +var _index64 = require("./formatDistanceStrict.cjs"); +Object.keys(_index64).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index64[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index64[key]; + }, + }); +}); +var _index65 = require("./formatDistanceToNow.cjs"); +Object.keys(_index65).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index65[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index65[key]; + }, + }); +}); +var _index66 = require("./formatDistanceToNowStrict.cjs"); +Object.keys(_index66).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index66[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index66[key]; + }, + }); +}); +var _index67 = require("./formatDuration.cjs"); +Object.keys(_index67).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index67[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index67[key]; + }, + }); +}); +var _index68 = require("./formatISO.cjs"); +Object.keys(_index68).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index68[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index68[key]; + }, + }); +}); +var _index69 = require("./formatISO9075.cjs"); +Object.keys(_index69).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index69[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index69[key]; + }, + }); +}); +var _index70 = require("./formatISODuration.cjs"); +Object.keys(_index70).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index70[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index70[key]; + }, + }); +}); +var _index71 = require("./formatRFC3339.cjs"); +Object.keys(_index71).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index71[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index71[key]; + }, + }); +}); +var _index72 = require("./formatRFC7231.cjs"); +Object.keys(_index72).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index72[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index72[key]; + }, + }); +}); +var _index73 = require("./formatRelative.cjs"); +Object.keys(_index73).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index73[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index73[key]; + }, + }); +}); +var _index74 = require("./fromUnixTime.cjs"); +Object.keys(_index74).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index74[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index74[key]; + }, + }); +}); +var _index75 = require("./getDate.cjs"); +Object.keys(_index75).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index75[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index75[key]; + }, + }); +}); +var _index76 = require("./getDay.cjs"); +Object.keys(_index76).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index76[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index76[key]; + }, + }); +}); +var _index77 = require("./getDayOfYear.cjs"); +Object.keys(_index77).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index77[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index77[key]; + }, + }); +}); +var _index78 = require("./getDaysInMonth.cjs"); +Object.keys(_index78).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index78[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index78[key]; + }, + }); +}); +var _index79 = require("./getDaysInYear.cjs"); +Object.keys(_index79).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index79[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index79[key]; + }, + }); +}); +var _index80 = require("./getDecade.cjs"); +Object.keys(_index80).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index80[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index80[key]; + }, + }); +}); +var _index81 = require("./getDefaultOptions.cjs"); +Object.keys(_index81).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index81[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index81[key]; + }, + }); +}); +var _index82 = require("./getHours.cjs"); +Object.keys(_index82).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index82[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index82[key]; + }, + }); +}); +var _index83 = require("./getISODay.cjs"); +Object.keys(_index83).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index83[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index83[key]; + }, + }); +}); +var _index84 = require("./getISOWeek.cjs"); +Object.keys(_index84).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index84[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index84[key]; + }, + }); +}); +var _index85 = require("./getISOWeekYear.cjs"); +Object.keys(_index85).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index85[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index85[key]; + }, + }); +}); +var _index86 = require("./getISOWeeksInYear.cjs"); +Object.keys(_index86).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index86[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index86[key]; + }, + }); +}); +var _index87 = require("./getMilliseconds.cjs"); +Object.keys(_index87).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index87[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index87[key]; + }, + }); +}); +var _index88 = require("./getMinutes.cjs"); +Object.keys(_index88).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index88[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index88[key]; + }, + }); +}); +var _index89 = require("./getMonth.cjs"); +Object.keys(_index89).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index89[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index89[key]; + }, + }); +}); +var _index90 = require("./getOverlappingDaysInIntervals.cjs"); +Object.keys(_index90).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index90[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index90[key]; + }, + }); +}); +var _index91 = require("./getQuarter.cjs"); +Object.keys(_index91).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index91[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index91[key]; + }, + }); +}); +var _index92 = require("./getSeconds.cjs"); +Object.keys(_index92).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index92[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index92[key]; + }, + }); +}); +var _index93 = require("./getTime.cjs"); +Object.keys(_index93).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index93[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index93[key]; + }, + }); +}); +var _index94 = require("./getUnixTime.cjs"); +Object.keys(_index94).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index94[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index94[key]; + }, + }); +}); +var _index95 = require("./getWeek.cjs"); +Object.keys(_index95).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index95[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index95[key]; + }, + }); +}); +var _index96 = require("./getWeekOfMonth.cjs"); +Object.keys(_index96).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index96[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index96[key]; + }, + }); +}); +var _index97 = require("./getWeekYear.cjs"); +Object.keys(_index97).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index97[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index97[key]; + }, + }); +}); +var _index98 = require("./getWeeksInMonth.cjs"); +Object.keys(_index98).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index98[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index98[key]; + }, + }); +}); +var _index99 = require("./getYear.cjs"); +Object.keys(_index99).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index99[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index99[key]; + }, + }); +}); +var _index100 = require("./hoursToMilliseconds.cjs"); +Object.keys(_index100).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index100[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index100[key]; + }, + }); +}); +var _index101 = require("./hoursToMinutes.cjs"); +Object.keys(_index101).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index101[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index101[key]; + }, + }); +}); +var _index102 = require("./hoursToSeconds.cjs"); +Object.keys(_index102).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index102[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index102[key]; + }, + }); +}); +var _index103 = require("./interval.cjs"); +Object.keys(_index103).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index103[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index103[key]; + }, + }); +}); +var _index104 = require("./intervalToDuration.cjs"); +Object.keys(_index104).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index104[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index104[key]; + }, + }); +}); +var _index105 = require("./intlFormat.cjs"); +Object.keys(_index105).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index105[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index105[key]; + }, + }); +}); +var _index106 = require("./intlFormatDistance.cjs"); +Object.keys(_index106).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index106[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index106[key]; + }, + }); +}); +var _index107 = require("./isAfter.cjs"); +Object.keys(_index107).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index107[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index107[key]; + }, + }); +}); +var _index108 = require("./isBefore.cjs"); +Object.keys(_index108).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index108[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index108[key]; + }, + }); +}); +var _index109 = require("./isDate.cjs"); +Object.keys(_index109).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index109[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index109[key]; + }, + }); +}); +var _index110 = require("./isEqual.cjs"); +Object.keys(_index110).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index110[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index110[key]; + }, + }); +}); +var _index111 = require("./isExists.cjs"); +Object.keys(_index111).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index111[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index111[key]; + }, + }); +}); +var _index112 = require("./isFirstDayOfMonth.cjs"); +Object.keys(_index112).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index112[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index112[key]; + }, + }); +}); +var _index113 = require("./isFriday.cjs"); +Object.keys(_index113).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index113[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index113[key]; + }, + }); +}); +var _index114 = require("./isFuture.cjs"); +Object.keys(_index114).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index114[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index114[key]; + }, + }); +}); +var _index115 = require("./isLastDayOfMonth.cjs"); +Object.keys(_index115).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index115[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index115[key]; + }, + }); +}); +var _index116 = require("./isLeapYear.cjs"); +Object.keys(_index116).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index116[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index116[key]; + }, + }); +}); +var _index117 = require("./isMatch.cjs"); +Object.keys(_index117).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index117[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index117[key]; + }, + }); +}); +var _index118 = require("./isMonday.cjs"); +Object.keys(_index118).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index118[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index118[key]; + }, + }); +}); +var _index119 = require("./isPast.cjs"); +Object.keys(_index119).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index119[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index119[key]; + }, + }); +}); +var _index120 = require("./isSameDay.cjs"); +Object.keys(_index120).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index120[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index120[key]; + }, + }); +}); +var _index121 = require("./isSameHour.cjs"); +Object.keys(_index121).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index121[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index121[key]; + }, + }); +}); +var _index122 = require("./isSameISOWeek.cjs"); +Object.keys(_index122).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index122[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index122[key]; + }, + }); +}); +var _index123 = require("./isSameISOWeekYear.cjs"); +Object.keys(_index123).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index123[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index123[key]; + }, + }); +}); +var _index124 = require("./isSameMinute.cjs"); +Object.keys(_index124).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index124[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index124[key]; + }, + }); +}); +var _index125 = require("./isSameMonth.cjs"); +Object.keys(_index125).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index125[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index125[key]; + }, + }); +}); +var _index126 = require("./isSameQuarter.cjs"); +Object.keys(_index126).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index126[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index126[key]; + }, + }); +}); +var _index127 = require("./isSameSecond.cjs"); +Object.keys(_index127).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index127[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index127[key]; + }, + }); +}); +var _index128 = require("./isSameWeek.cjs"); +Object.keys(_index128).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index128[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index128[key]; + }, + }); +}); +var _index129 = require("./isSameYear.cjs"); +Object.keys(_index129).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index129[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index129[key]; + }, + }); +}); +var _index130 = require("./isSaturday.cjs"); +Object.keys(_index130).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index130[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index130[key]; + }, + }); +}); +var _index131 = require("./isSunday.cjs"); +Object.keys(_index131).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index131[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index131[key]; + }, + }); +}); +var _index132 = require("./isThisHour.cjs"); +Object.keys(_index132).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index132[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index132[key]; + }, + }); +}); +var _index133 = require("./isThisISOWeek.cjs"); +Object.keys(_index133).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index133[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index133[key]; + }, + }); +}); +var _index134 = require("./isThisMinute.cjs"); +Object.keys(_index134).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index134[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index134[key]; + }, + }); +}); +var _index135 = require("./isThisMonth.cjs"); +Object.keys(_index135).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index135[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index135[key]; + }, + }); +}); +var _index136 = require("./isThisQuarter.cjs"); +Object.keys(_index136).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index136[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index136[key]; + }, + }); +}); +var _index137 = require("./isThisSecond.cjs"); +Object.keys(_index137).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index137[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index137[key]; + }, + }); +}); +var _index138 = require("./isThisWeek.cjs"); +Object.keys(_index138).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index138[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index138[key]; + }, + }); +}); +var _index139 = require("./isThisYear.cjs"); +Object.keys(_index139).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index139[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index139[key]; + }, + }); +}); +var _index140 = require("./isThursday.cjs"); +Object.keys(_index140).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index140[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index140[key]; + }, + }); +}); +var _index141 = require("./isToday.cjs"); +Object.keys(_index141).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index141[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index141[key]; + }, + }); +}); +var _index142 = require("./isTomorrow.cjs"); +Object.keys(_index142).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index142[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index142[key]; + }, + }); +}); +var _index143 = require("./isTuesday.cjs"); +Object.keys(_index143).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index143[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index143[key]; + }, + }); +}); +var _index144 = require("./isValid.cjs"); +Object.keys(_index144).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index144[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index144[key]; + }, + }); +}); +var _index145 = require("./isWednesday.cjs"); +Object.keys(_index145).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index145[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index145[key]; + }, + }); +}); +var _index146 = require("./isWeekend.cjs"); +Object.keys(_index146).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index146[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index146[key]; + }, + }); +}); +var _index147 = require("./isWithinInterval.cjs"); +Object.keys(_index147).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index147[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index147[key]; + }, + }); +}); +var _index148 = require("./isYesterday.cjs"); +Object.keys(_index148).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index148[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index148[key]; + }, + }); +}); +var _index149 = require("./lastDayOfDecade.cjs"); +Object.keys(_index149).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index149[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index149[key]; + }, + }); +}); +var _index150 = require("./lastDayOfISOWeek.cjs"); +Object.keys(_index150).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index150[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index150[key]; + }, + }); +}); +var _index151 = require("./lastDayOfISOWeekYear.cjs"); +Object.keys(_index151).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index151[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index151[key]; + }, + }); +}); +var _index152 = require("./lastDayOfMonth.cjs"); +Object.keys(_index152).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index152[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index152[key]; + }, + }); +}); +var _index153 = require("./lastDayOfQuarter.cjs"); +Object.keys(_index153).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index153[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index153[key]; + }, + }); +}); +var _index154 = require("./lastDayOfWeek.cjs"); +Object.keys(_index154).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index154[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index154[key]; + }, + }); +}); +var _index155 = require("./lastDayOfYear.cjs"); +Object.keys(_index155).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index155[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index155[key]; + }, + }); +}); +var _index156 = require("./lightFormat.cjs"); +Object.keys(_index156).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index156[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index156[key]; + }, + }); +}); +var _index157 = require("./max.cjs"); +Object.keys(_index157).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index157[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index157[key]; + }, + }); +}); +var _index158 = require("./milliseconds.cjs"); +Object.keys(_index158).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index158[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index158[key]; + }, + }); +}); +var _index159 = require("./millisecondsToHours.cjs"); +Object.keys(_index159).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index159[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index159[key]; + }, + }); +}); +var _index160 = require("./millisecondsToMinutes.cjs"); +Object.keys(_index160).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index160[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index160[key]; + }, + }); +}); +var _index161 = require("./millisecondsToSeconds.cjs"); +Object.keys(_index161).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index161[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index161[key]; + }, + }); +}); +var _index162 = require("./min.cjs"); +Object.keys(_index162).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index162[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index162[key]; + }, + }); +}); +var _index163 = require("./minutesToHours.cjs"); +Object.keys(_index163).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index163[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index163[key]; + }, + }); +}); +var _index164 = require("./minutesToMilliseconds.cjs"); +Object.keys(_index164).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index164[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index164[key]; + }, + }); +}); +var _index165 = require("./minutesToSeconds.cjs"); +Object.keys(_index165).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index165[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index165[key]; + }, + }); +}); +var _index166 = require("./monthsToQuarters.cjs"); +Object.keys(_index166).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index166[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index166[key]; + }, + }); +}); +var _index167 = require("./monthsToYears.cjs"); +Object.keys(_index167).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index167[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index167[key]; + }, + }); +}); +var _index168 = require("./nextDay.cjs"); +Object.keys(_index168).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index168[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index168[key]; + }, + }); +}); +var _index169 = require("./nextFriday.cjs"); +Object.keys(_index169).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index169[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index169[key]; + }, + }); +}); +var _index170 = require("./nextMonday.cjs"); +Object.keys(_index170).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index170[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index170[key]; + }, + }); +}); +var _index171 = require("./nextSaturday.cjs"); +Object.keys(_index171).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index171[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index171[key]; + }, + }); +}); +var _index172 = require("./nextSunday.cjs"); +Object.keys(_index172).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index172[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index172[key]; + }, + }); +}); +var _index173 = require("./nextThursday.cjs"); +Object.keys(_index173).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index173[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index173[key]; + }, + }); +}); +var _index174 = require("./nextTuesday.cjs"); +Object.keys(_index174).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index174[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index174[key]; + }, + }); +}); +var _index175 = require("./nextWednesday.cjs"); +Object.keys(_index175).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index175[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index175[key]; + }, + }); +}); +var _index176 = require("./parse.cjs"); +Object.keys(_index176).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index176[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index176[key]; + }, + }); +}); +var _index177 = require("./parseISO.cjs"); +Object.keys(_index177).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index177[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index177[key]; + }, + }); +}); +var _index178 = require("./parseJSON.cjs"); +Object.keys(_index178).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index178[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index178[key]; + }, + }); +}); +var _index179 = require("./previousDay.cjs"); +Object.keys(_index179).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index179[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index179[key]; + }, + }); +}); +var _index180 = require("./previousFriday.cjs"); +Object.keys(_index180).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index180[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index180[key]; + }, + }); +}); +var _index181 = require("./previousMonday.cjs"); +Object.keys(_index181).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index181[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index181[key]; + }, + }); +}); +var _index182 = require("./previousSaturday.cjs"); +Object.keys(_index182).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index182[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index182[key]; + }, + }); +}); +var _index183 = require("./previousSunday.cjs"); +Object.keys(_index183).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index183[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index183[key]; + }, + }); +}); +var _index184 = require("./previousThursday.cjs"); +Object.keys(_index184).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index184[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index184[key]; + }, + }); +}); +var _index185 = require("./previousTuesday.cjs"); +Object.keys(_index185).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index185[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index185[key]; + }, + }); +}); +var _index186 = require("./previousWednesday.cjs"); +Object.keys(_index186).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index186[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index186[key]; + }, + }); +}); +var _index187 = require("./quartersToMonths.cjs"); +Object.keys(_index187).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index187[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index187[key]; + }, + }); +}); +var _index188 = require("./quartersToYears.cjs"); +Object.keys(_index188).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index188[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index188[key]; + }, + }); +}); +var _index189 = require("./roundToNearestHours.cjs"); +Object.keys(_index189).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index189[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index189[key]; + }, + }); +}); +var _index190 = require("./roundToNearestMinutes.cjs"); +Object.keys(_index190).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index190[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index190[key]; + }, + }); +}); +var _index191 = require("./secondsToHours.cjs"); +Object.keys(_index191).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index191[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index191[key]; + }, + }); +}); +var _index192 = require("./secondsToMilliseconds.cjs"); +Object.keys(_index192).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index192[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index192[key]; + }, + }); +}); +var _index193 = require("./secondsToMinutes.cjs"); +Object.keys(_index193).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index193[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index193[key]; + }, + }); +}); +var _index194 = require("./set.cjs"); +Object.keys(_index194).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index194[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index194[key]; + }, + }); +}); +var _index195 = require("./setDate.cjs"); +Object.keys(_index195).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index195[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index195[key]; + }, + }); +}); +var _index196 = require("./setDay.cjs"); +Object.keys(_index196).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index196[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index196[key]; + }, + }); +}); +var _index197 = require("./setDayOfYear.cjs"); +Object.keys(_index197).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index197[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index197[key]; + }, + }); +}); +var _index198 = require("./setDefaultOptions.cjs"); +Object.keys(_index198).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index198[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index198[key]; + }, + }); +}); +var _index199 = require("./setHours.cjs"); +Object.keys(_index199).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index199[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index199[key]; + }, + }); +}); +var _index200 = require("./setISODay.cjs"); +Object.keys(_index200).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index200[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index200[key]; + }, + }); +}); +var _index201 = require("./setISOWeek.cjs"); +Object.keys(_index201).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index201[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index201[key]; + }, + }); +}); +var _index202 = require("./setISOWeekYear.cjs"); +Object.keys(_index202).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index202[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index202[key]; + }, + }); +}); +var _index203 = require("./setMilliseconds.cjs"); +Object.keys(_index203).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index203[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index203[key]; + }, + }); +}); +var _index204 = require("./setMinutes.cjs"); +Object.keys(_index204).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index204[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index204[key]; + }, + }); +}); +var _index205 = require("./setMonth.cjs"); +Object.keys(_index205).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index205[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index205[key]; + }, + }); +}); +var _index206 = require("./setQuarter.cjs"); +Object.keys(_index206).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index206[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index206[key]; + }, + }); +}); +var _index207 = require("./setSeconds.cjs"); +Object.keys(_index207).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index207[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index207[key]; + }, + }); +}); +var _index208 = require("./setWeek.cjs"); +Object.keys(_index208).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index208[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index208[key]; + }, + }); +}); +var _index209 = require("./setWeekYear.cjs"); +Object.keys(_index209).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index209[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index209[key]; + }, + }); +}); +var _index210 = require("./setYear.cjs"); +Object.keys(_index210).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index210[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index210[key]; + }, + }); +}); +var _index211 = require("./startOfDay.cjs"); +Object.keys(_index211).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index211[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index211[key]; + }, + }); +}); +var _index212 = require("./startOfDecade.cjs"); +Object.keys(_index212).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index212[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index212[key]; + }, + }); +}); +var _index213 = require("./startOfHour.cjs"); +Object.keys(_index213).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index213[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index213[key]; + }, + }); +}); +var _index214 = require("./startOfISOWeek.cjs"); +Object.keys(_index214).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index214[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index214[key]; + }, + }); +}); +var _index215 = require("./startOfISOWeekYear.cjs"); +Object.keys(_index215).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index215[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index215[key]; + }, + }); +}); +var _index216 = require("./startOfMinute.cjs"); +Object.keys(_index216).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index216[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index216[key]; + }, + }); +}); +var _index217 = require("./startOfMonth.cjs"); +Object.keys(_index217).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index217[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index217[key]; + }, + }); +}); +var _index218 = require("./startOfQuarter.cjs"); +Object.keys(_index218).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index218[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index218[key]; + }, + }); +}); +var _index219 = require("./startOfSecond.cjs"); +Object.keys(_index219).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index219[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index219[key]; + }, + }); +}); +var _index220 = require("./startOfToday.cjs"); +Object.keys(_index220).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index220[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index220[key]; + }, + }); +}); +var _index221 = require("./startOfTomorrow.cjs"); +Object.keys(_index221).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index221[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index221[key]; + }, + }); +}); +var _index222 = require("./startOfWeek.cjs"); +Object.keys(_index222).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index222[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index222[key]; + }, + }); +}); +var _index223 = require("./startOfWeekYear.cjs"); +Object.keys(_index223).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index223[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index223[key]; + }, + }); +}); +var _index224 = require("./startOfYear.cjs"); +Object.keys(_index224).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index224[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index224[key]; + }, + }); +}); +var _index225 = require("./startOfYesterday.cjs"); +Object.keys(_index225).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index225[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index225[key]; + }, + }); +}); +var _index226 = require("./sub.cjs"); +Object.keys(_index226).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index226[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index226[key]; + }, + }); +}); +var _index227 = require("./subBusinessDays.cjs"); +Object.keys(_index227).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index227[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index227[key]; + }, + }); +}); +var _index228 = require("./subDays.cjs"); +Object.keys(_index228).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index228[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index228[key]; + }, + }); +}); +var _index229 = require("./subHours.cjs"); +Object.keys(_index229).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index229[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index229[key]; + }, + }); +}); +var _index230 = require("./subISOWeekYears.cjs"); +Object.keys(_index230).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index230[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index230[key]; + }, + }); +}); +var _index231 = require("./subMilliseconds.cjs"); +Object.keys(_index231).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index231[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index231[key]; + }, + }); +}); +var _index232 = require("./subMinutes.cjs"); +Object.keys(_index232).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index232[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index232[key]; + }, + }); +}); +var _index233 = require("./subMonths.cjs"); +Object.keys(_index233).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index233[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index233[key]; + }, + }); +}); +var _index234 = require("./subQuarters.cjs"); +Object.keys(_index234).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index234[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index234[key]; + }, + }); +}); +var _index235 = require("./subSeconds.cjs"); +Object.keys(_index235).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index235[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index235[key]; + }, + }); +}); +var _index236 = require("./subWeeks.cjs"); +Object.keys(_index236).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index236[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index236[key]; + }, + }); +}); +var _index237 = require("./subYears.cjs"); +Object.keys(_index237).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index237[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index237[key]; + }, + }); +}); +var _index238 = require("./toDate.cjs"); +Object.keys(_index238).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index238[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index238[key]; + }, + }); +}); +var _index239 = require("./transpose.cjs"); +Object.keys(_index239).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index239[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index239[key]; + }, + }); +}); +var _index240 = require("./weeksToDays.cjs"); +Object.keys(_index240).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index240[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index240[key]; + }, + }); +}); +var _index241 = require("./yearsToDays.cjs"); +Object.keys(_index241).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index241[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index241[key]; + }, + }); +}); +var _index242 = require("./yearsToMonths.cjs"); +Object.keys(_index242).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index242[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index242[key]; + }, + }); +}); +var _index243 = require("./yearsToQuarters.cjs"); +Object.keys(_index243).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index243[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index243[key]; + }, + }); +}); diff --git a/node_modules/date-fns/index.d.cts b/node_modules/date-fns/index.d.cts new file mode 100644 index 000000000..04561494a --- /dev/null +++ b/node_modules/date-fns/index.d.cts @@ -0,0 +1,246 @@ +export * from "./add.ts"; +export * from "./addBusinessDays.ts"; +export * from "./addDays.ts"; +export * from "./addHours.ts"; +export * from "./addISOWeekYears.ts"; +export * from "./addMilliseconds.ts"; +export * from "./addMinutes.ts"; +export * from "./addMonths.ts"; +export * from "./addQuarters.ts"; +export * from "./addSeconds.ts"; +export * from "./addWeeks.ts"; +export * from "./addYears.ts"; +export * from "./areIntervalsOverlapping.ts"; +export * from "./clamp.ts"; +export * from "./closestIndexTo.ts"; +export * from "./closestTo.ts"; +export * from "./compareAsc.ts"; +export * from "./compareDesc.ts"; +export * from "./constructFrom.ts"; +export * from "./constructNow.ts"; +export * from "./daysToWeeks.ts"; +export * from "./differenceInBusinessDays.ts"; +export * from "./differenceInCalendarDays.ts"; +export * from "./differenceInCalendarISOWeekYears.ts"; +export * from "./differenceInCalendarISOWeeks.ts"; +export * from "./differenceInCalendarMonths.ts"; +export * from "./differenceInCalendarQuarters.ts"; +export * from "./differenceInCalendarWeeks.ts"; +export * from "./differenceInCalendarYears.ts"; +export * from "./differenceInDays.ts"; +export * from "./differenceInHours.ts"; +export * from "./differenceInISOWeekYears.ts"; +export * from "./differenceInMilliseconds.ts"; +export * from "./differenceInMinutes.ts"; +export * from "./differenceInMonths.ts"; +export * from "./differenceInQuarters.ts"; +export * from "./differenceInSeconds.ts"; +export * from "./differenceInWeeks.ts"; +export * from "./differenceInYears.ts"; +export * from "./eachDayOfInterval.ts"; +export * from "./eachHourOfInterval.ts"; +export * from "./eachMinuteOfInterval.ts"; +export * from "./eachMonthOfInterval.ts"; +export * from "./eachQuarterOfInterval.ts"; +export * from "./eachWeekOfInterval.ts"; +export * from "./eachWeekendOfInterval.ts"; +export * from "./eachWeekendOfMonth.ts"; +export * from "./eachWeekendOfYear.ts"; +export * from "./eachYearOfInterval.ts"; +export * from "./endOfDay.ts"; +export * from "./endOfDecade.ts"; +export * from "./endOfHour.ts"; +export * from "./endOfISOWeek.ts"; +export * from "./endOfISOWeekYear.ts"; +export * from "./endOfMinute.ts"; +export * from "./endOfMonth.ts"; +export * from "./endOfQuarter.ts"; +export * from "./endOfSecond.ts"; +export * from "./endOfToday.ts"; +export * from "./endOfTomorrow.ts"; +export * from "./endOfWeek.ts"; +export * from "./endOfYear.ts"; +export * from "./endOfYesterday.ts"; +export * from "./format.ts"; +export * from "./formatDistance.ts"; +export * from "./formatDistanceStrict.ts"; +export * from "./formatDistanceToNow.ts"; +export * from "./formatDistanceToNowStrict.ts"; +export * from "./formatDuration.ts"; +export * from "./formatISO.ts"; +export * from "./formatISO9075.ts"; +export * from "./formatISODuration.ts"; +export * from "./formatRFC3339.ts"; +export * from "./formatRFC7231.ts"; +export * from "./formatRelative.ts"; +export * from "./fromUnixTime.ts"; +export * from "./getDate.ts"; +export * from "./getDay.ts"; +export * from "./getDayOfYear.ts"; +export * from "./getDaysInMonth.ts"; +export * from "./getDaysInYear.ts"; +export * from "./getDecade.ts"; +export * from "./getDefaultOptions.ts"; +export * from "./getHours.ts"; +export * from "./getISODay.ts"; +export * from "./getISOWeek.ts"; +export * from "./getISOWeekYear.ts"; +export * from "./getISOWeeksInYear.ts"; +export * from "./getMilliseconds.ts"; +export * from "./getMinutes.ts"; +export * from "./getMonth.ts"; +export * from "./getOverlappingDaysInIntervals.ts"; +export * from "./getQuarter.ts"; +export * from "./getSeconds.ts"; +export * from "./getTime.ts"; +export * from "./getUnixTime.ts"; +export * from "./getWeek.ts"; +export * from "./getWeekOfMonth.ts"; +export * from "./getWeekYear.ts"; +export * from "./getWeeksInMonth.ts"; +export * from "./getYear.ts"; +export * from "./hoursToMilliseconds.ts"; +export * from "./hoursToMinutes.ts"; +export * from "./hoursToSeconds.ts"; +export * from "./interval.ts"; +export * from "./intervalToDuration.ts"; +export * from "./intlFormat.ts"; +export * from "./intlFormatDistance.ts"; +export * from "./isAfter.ts"; +export * from "./isBefore.ts"; +export * from "./isDate.ts"; +export * from "./isEqual.ts"; +export * from "./isExists.ts"; +export * from "./isFirstDayOfMonth.ts"; +export * from "./isFriday.ts"; +export * from "./isFuture.ts"; +export * from "./isLastDayOfMonth.ts"; +export * from "./isLeapYear.ts"; +export * from "./isMatch.ts"; +export * from "./isMonday.ts"; +export * from "./isPast.ts"; +export * from "./isSameDay.ts"; +export * from "./isSameHour.ts"; +export * from "./isSameISOWeek.ts"; +export * from "./isSameISOWeekYear.ts"; +export * from "./isSameMinute.ts"; +export * from "./isSameMonth.ts"; +export * from "./isSameQuarter.ts"; +export * from "./isSameSecond.ts"; +export * from "./isSameWeek.ts"; +export * from "./isSameYear.ts"; +export * from "./isSaturday.ts"; +export * from "./isSunday.ts"; +export * from "./isThisHour.ts"; +export * from "./isThisISOWeek.ts"; +export * from "./isThisMinute.ts"; +export * from "./isThisMonth.ts"; +export * from "./isThisQuarter.ts"; +export * from "./isThisSecond.ts"; +export * from "./isThisWeek.ts"; +export * from "./isThisYear.ts"; +export * from "./isThursday.ts"; +export * from "./isToday.ts"; +export * from "./isTomorrow.ts"; +export * from "./isTuesday.ts"; +export * from "./isValid.ts"; +export * from "./isWednesday.ts"; +export * from "./isWeekend.ts"; +export * from "./isWithinInterval.ts"; +export * from "./isYesterday.ts"; +export * from "./lastDayOfDecade.ts"; +export * from "./lastDayOfISOWeek.ts"; +export * from "./lastDayOfISOWeekYear.ts"; +export * from "./lastDayOfMonth.ts"; +export * from "./lastDayOfQuarter.ts"; +export * from "./lastDayOfWeek.ts"; +export * from "./lastDayOfYear.ts"; +export * from "./lightFormat.ts"; +export * from "./max.ts"; +export * from "./milliseconds.ts"; +export * from "./millisecondsToHours.ts"; +export * from "./millisecondsToMinutes.ts"; +export * from "./millisecondsToSeconds.ts"; +export * from "./min.ts"; +export * from "./minutesToHours.ts"; +export * from "./minutesToMilliseconds.ts"; +export * from "./minutesToSeconds.ts"; +export * from "./monthsToQuarters.ts"; +export * from "./monthsToYears.ts"; +export * from "./nextDay.ts"; +export * from "./nextFriday.ts"; +export * from "./nextMonday.ts"; +export * from "./nextSaturday.ts"; +export * from "./nextSunday.ts"; +export * from "./nextThursday.ts"; +export * from "./nextTuesday.ts"; +export * from "./nextWednesday.ts"; +export * from "./parse.ts"; +export * from "./parseISO.ts"; +export * from "./parseJSON.ts"; +export * from "./previousDay.ts"; +export * from "./previousFriday.ts"; +export * from "./previousMonday.ts"; +export * from "./previousSaturday.ts"; +export * from "./previousSunday.ts"; +export * from "./previousThursday.ts"; +export * from "./previousTuesday.ts"; +export * from "./previousWednesday.ts"; +export * from "./quartersToMonths.ts"; +export * from "./quartersToYears.ts"; +export * from "./roundToNearestHours.ts"; +export * from "./roundToNearestMinutes.ts"; +export * from "./secondsToHours.ts"; +export * from "./secondsToMilliseconds.ts"; +export * from "./secondsToMinutes.ts"; +export * from "./set.ts"; +export * from "./setDate.ts"; +export * from "./setDay.ts"; +export * from "./setDayOfYear.ts"; +export * from "./setDefaultOptions.ts"; +export * from "./setHours.ts"; +export * from "./setISODay.ts"; +export * from "./setISOWeek.ts"; +export * from "./setISOWeekYear.ts"; +export * from "./setMilliseconds.ts"; +export * from "./setMinutes.ts"; +export * from "./setMonth.ts"; +export * from "./setQuarter.ts"; +export * from "./setSeconds.ts"; +export * from "./setWeek.ts"; +export * from "./setWeekYear.ts"; +export * from "./setYear.ts"; +export * from "./startOfDay.ts"; +export * from "./startOfDecade.ts"; +export * from "./startOfHour.ts"; +export * from "./startOfISOWeek.ts"; +export * from "./startOfISOWeekYear.ts"; +export * from "./startOfMinute.ts"; +export * from "./startOfMonth.ts"; +export * from "./startOfQuarter.ts"; +export * from "./startOfSecond.ts"; +export * from "./startOfToday.ts"; +export * from "./startOfTomorrow.ts"; +export * from "./startOfWeek.ts"; +export * from "./startOfWeekYear.ts"; +export * from "./startOfYear.ts"; +export * from "./startOfYesterday.ts"; +export * from "./sub.ts"; +export * from "./subBusinessDays.ts"; +export * from "./subDays.ts"; +export * from "./subHours.ts"; +export * from "./subISOWeekYears.ts"; +export * from "./subMilliseconds.ts"; +export * from "./subMinutes.ts"; +export * from "./subMonths.ts"; +export * from "./subQuarters.ts"; +export * from "./subSeconds.ts"; +export * from "./subWeeks.ts"; +export * from "./subYears.ts"; +export * from "./toDate.ts"; +export * from "./transpose.ts"; +export * from "./weeksToDays.ts"; +export * from "./yearsToDays.ts"; +export * from "./yearsToMonths.ts"; +export * from "./yearsToQuarters.ts"; +export type * from "./types.ts"; diff --git a/node_modules/date-fns/index.d.ts b/node_modules/date-fns/index.d.ts new file mode 100644 index 000000000..04561494a --- /dev/null +++ b/node_modules/date-fns/index.d.ts @@ -0,0 +1,246 @@ +export * from "./add.ts"; +export * from "./addBusinessDays.ts"; +export * from "./addDays.ts"; +export * from "./addHours.ts"; +export * from "./addISOWeekYears.ts"; +export * from "./addMilliseconds.ts"; +export * from "./addMinutes.ts"; +export * from "./addMonths.ts"; +export * from "./addQuarters.ts"; +export * from "./addSeconds.ts"; +export * from "./addWeeks.ts"; +export * from "./addYears.ts"; +export * from "./areIntervalsOverlapping.ts"; +export * from "./clamp.ts"; +export * from "./closestIndexTo.ts"; +export * from "./closestTo.ts"; +export * from "./compareAsc.ts"; +export * from "./compareDesc.ts"; +export * from "./constructFrom.ts"; +export * from "./constructNow.ts"; +export * from "./daysToWeeks.ts"; +export * from "./differenceInBusinessDays.ts"; +export * from "./differenceInCalendarDays.ts"; +export * from "./differenceInCalendarISOWeekYears.ts"; +export * from "./differenceInCalendarISOWeeks.ts"; +export * from "./differenceInCalendarMonths.ts"; +export * from "./differenceInCalendarQuarters.ts"; +export * from "./differenceInCalendarWeeks.ts"; +export * from "./differenceInCalendarYears.ts"; +export * from "./differenceInDays.ts"; +export * from "./differenceInHours.ts"; +export * from "./differenceInISOWeekYears.ts"; +export * from "./differenceInMilliseconds.ts"; +export * from "./differenceInMinutes.ts"; +export * from "./differenceInMonths.ts"; +export * from "./differenceInQuarters.ts"; +export * from "./differenceInSeconds.ts"; +export * from "./differenceInWeeks.ts"; +export * from "./differenceInYears.ts"; +export * from "./eachDayOfInterval.ts"; +export * from "./eachHourOfInterval.ts"; +export * from "./eachMinuteOfInterval.ts"; +export * from "./eachMonthOfInterval.ts"; +export * from "./eachQuarterOfInterval.ts"; +export * from "./eachWeekOfInterval.ts"; +export * from "./eachWeekendOfInterval.ts"; +export * from "./eachWeekendOfMonth.ts"; +export * from "./eachWeekendOfYear.ts"; +export * from "./eachYearOfInterval.ts"; +export * from "./endOfDay.ts"; +export * from "./endOfDecade.ts"; +export * from "./endOfHour.ts"; +export * from "./endOfISOWeek.ts"; +export * from "./endOfISOWeekYear.ts"; +export * from "./endOfMinute.ts"; +export * from "./endOfMonth.ts"; +export * from "./endOfQuarter.ts"; +export * from "./endOfSecond.ts"; +export * from "./endOfToday.ts"; +export * from "./endOfTomorrow.ts"; +export * from "./endOfWeek.ts"; +export * from "./endOfYear.ts"; +export * from "./endOfYesterday.ts"; +export * from "./format.ts"; +export * from "./formatDistance.ts"; +export * from "./formatDistanceStrict.ts"; +export * from "./formatDistanceToNow.ts"; +export * from "./formatDistanceToNowStrict.ts"; +export * from "./formatDuration.ts"; +export * from "./formatISO.ts"; +export * from "./formatISO9075.ts"; +export * from "./formatISODuration.ts"; +export * from "./formatRFC3339.ts"; +export * from "./formatRFC7231.ts"; +export * from "./formatRelative.ts"; +export * from "./fromUnixTime.ts"; +export * from "./getDate.ts"; +export * from "./getDay.ts"; +export * from "./getDayOfYear.ts"; +export * from "./getDaysInMonth.ts"; +export * from "./getDaysInYear.ts"; +export * from "./getDecade.ts"; +export * from "./getDefaultOptions.ts"; +export * from "./getHours.ts"; +export * from "./getISODay.ts"; +export * from "./getISOWeek.ts"; +export * from "./getISOWeekYear.ts"; +export * from "./getISOWeeksInYear.ts"; +export * from "./getMilliseconds.ts"; +export * from "./getMinutes.ts"; +export * from "./getMonth.ts"; +export * from "./getOverlappingDaysInIntervals.ts"; +export * from "./getQuarter.ts"; +export * from "./getSeconds.ts"; +export * from "./getTime.ts"; +export * from "./getUnixTime.ts"; +export * from "./getWeek.ts"; +export * from "./getWeekOfMonth.ts"; +export * from "./getWeekYear.ts"; +export * from "./getWeeksInMonth.ts"; +export * from "./getYear.ts"; +export * from "./hoursToMilliseconds.ts"; +export * from "./hoursToMinutes.ts"; +export * from "./hoursToSeconds.ts"; +export * from "./interval.ts"; +export * from "./intervalToDuration.ts"; +export * from "./intlFormat.ts"; +export * from "./intlFormatDistance.ts"; +export * from "./isAfter.ts"; +export * from "./isBefore.ts"; +export * from "./isDate.ts"; +export * from "./isEqual.ts"; +export * from "./isExists.ts"; +export * from "./isFirstDayOfMonth.ts"; +export * from "./isFriday.ts"; +export * from "./isFuture.ts"; +export * from "./isLastDayOfMonth.ts"; +export * from "./isLeapYear.ts"; +export * from "./isMatch.ts"; +export * from "./isMonday.ts"; +export * from "./isPast.ts"; +export * from "./isSameDay.ts"; +export * from "./isSameHour.ts"; +export * from "./isSameISOWeek.ts"; +export * from "./isSameISOWeekYear.ts"; +export * from "./isSameMinute.ts"; +export * from "./isSameMonth.ts"; +export * from "./isSameQuarter.ts"; +export * from "./isSameSecond.ts"; +export * from "./isSameWeek.ts"; +export * from "./isSameYear.ts"; +export * from "./isSaturday.ts"; +export * from "./isSunday.ts"; +export * from "./isThisHour.ts"; +export * from "./isThisISOWeek.ts"; +export * from "./isThisMinute.ts"; +export * from "./isThisMonth.ts"; +export * from "./isThisQuarter.ts"; +export * from "./isThisSecond.ts"; +export * from "./isThisWeek.ts"; +export * from "./isThisYear.ts"; +export * from "./isThursday.ts"; +export * from "./isToday.ts"; +export * from "./isTomorrow.ts"; +export * from "./isTuesday.ts"; +export * from "./isValid.ts"; +export * from "./isWednesday.ts"; +export * from "./isWeekend.ts"; +export * from "./isWithinInterval.ts"; +export * from "./isYesterday.ts"; +export * from "./lastDayOfDecade.ts"; +export * from "./lastDayOfISOWeek.ts"; +export * from "./lastDayOfISOWeekYear.ts"; +export * from "./lastDayOfMonth.ts"; +export * from "./lastDayOfQuarter.ts"; +export * from "./lastDayOfWeek.ts"; +export * from "./lastDayOfYear.ts"; +export * from "./lightFormat.ts"; +export * from "./max.ts"; +export * from "./milliseconds.ts"; +export * from "./millisecondsToHours.ts"; +export * from "./millisecondsToMinutes.ts"; +export * from "./millisecondsToSeconds.ts"; +export * from "./min.ts"; +export * from "./minutesToHours.ts"; +export * from "./minutesToMilliseconds.ts"; +export * from "./minutesToSeconds.ts"; +export * from "./monthsToQuarters.ts"; +export * from "./monthsToYears.ts"; +export * from "./nextDay.ts"; +export * from "./nextFriday.ts"; +export * from "./nextMonday.ts"; +export * from "./nextSaturday.ts"; +export * from "./nextSunday.ts"; +export * from "./nextThursday.ts"; +export * from "./nextTuesday.ts"; +export * from "./nextWednesday.ts"; +export * from "./parse.ts"; +export * from "./parseISO.ts"; +export * from "./parseJSON.ts"; +export * from "./previousDay.ts"; +export * from "./previousFriday.ts"; +export * from "./previousMonday.ts"; +export * from "./previousSaturday.ts"; +export * from "./previousSunday.ts"; +export * from "./previousThursday.ts"; +export * from "./previousTuesday.ts"; +export * from "./previousWednesday.ts"; +export * from "./quartersToMonths.ts"; +export * from "./quartersToYears.ts"; +export * from "./roundToNearestHours.ts"; +export * from "./roundToNearestMinutes.ts"; +export * from "./secondsToHours.ts"; +export * from "./secondsToMilliseconds.ts"; +export * from "./secondsToMinutes.ts"; +export * from "./set.ts"; +export * from "./setDate.ts"; +export * from "./setDay.ts"; +export * from "./setDayOfYear.ts"; +export * from "./setDefaultOptions.ts"; +export * from "./setHours.ts"; +export * from "./setISODay.ts"; +export * from "./setISOWeek.ts"; +export * from "./setISOWeekYear.ts"; +export * from "./setMilliseconds.ts"; +export * from "./setMinutes.ts"; +export * from "./setMonth.ts"; +export * from "./setQuarter.ts"; +export * from "./setSeconds.ts"; +export * from "./setWeek.ts"; +export * from "./setWeekYear.ts"; +export * from "./setYear.ts"; +export * from "./startOfDay.ts"; +export * from "./startOfDecade.ts"; +export * from "./startOfHour.ts"; +export * from "./startOfISOWeek.ts"; +export * from "./startOfISOWeekYear.ts"; +export * from "./startOfMinute.ts"; +export * from "./startOfMonth.ts"; +export * from "./startOfQuarter.ts"; +export * from "./startOfSecond.ts"; +export * from "./startOfToday.ts"; +export * from "./startOfTomorrow.ts"; +export * from "./startOfWeek.ts"; +export * from "./startOfWeekYear.ts"; +export * from "./startOfYear.ts"; +export * from "./startOfYesterday.ts"; +export * from "./sub.ts"; +export * from "./subBusinessDays.ts"; +export * from "./subDays.ts"; +export * from "./subHours.ts"; +export * from "./subISOWeekYears.ts"; +export * from "./subMilliseconds.ts"; +export * from "./subMinutes.ts"; +export * from "./subMonths.ts"; +export * from "./subQuarters.ts"; +export * from "./subSeconds.ts"; +export * from "./subWeeks.ts"; +export * from "./subYears.ts"; +export * from "./toDate.ts"; +export * from "./transpose.ts"; +export * from "./weeksToDays.ts"; +export * from "./yearsToDays.ts"; +export * from "./yearsToMonths.ts"; +export * from "./yearsToQuarters.ts"; +export type * from "./types.ts"; diff --git a/node_modules/date-fns/index.js b/node_modules/date-fns/index.js new file mode 100644 index 000000000..ce51cfc56 --- /dev/null +++ b/node_modules/date-fns/index.js @@ -0,0 +1,247 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. + +export * from "./add.js"; +export * from "./addBusinessDays.js"; +export * from "./addDays.js"; +export * from "./addHours.js"; +export * from "./addISOWeekYears.js"; +export * from "./addMilliseconds.js"; +export * from "./addMinutes.js"; +export * from "./addMonths.js"; +export * from "./addQuarters.js"; +export * from "./addSeconds.js"; +export * from "./addWeeks.js"; +export * from "./addYears.js"; +export * from "./areIntervalsOverlapping.js"; +export * from "./clamp.js"; +export * from "./closestIndexTo.js"; +export * from "./closestTo.js"; +export * from "./compareAsc.js"; +export * from "./compareDesc.js"; +export * from "./constructFrom.js"; +export * from "./constructNow.js"; +export * from "./daysToWeeks.js"; +export * from "./differenceInBusinessDays.js"; +export * from "./differenceInCalendarDays.js"; +export * from "./differenceInCalendarISOWeekYears.js"; +export * from "./differenceInCalendarISOWeeks.js"; +export * from "./differenceInCalendarMonths.js"; +export * from "./differenceInCalendarQuarters.js"; +export * from "./differenceInCalendarWeeks.js"; +export * from "./differenceInCalendarYears.js"; +export * from "./differenceInDays.js"; +export * from "./differenceInHours.js"; +export * from "./differenceInISOWeekYears.js"; +export * from "./differenceInMilliseconds.js"; +export * from "./differenceInMinutes.js"; +export * from "./differenceInMonths.js"; +export * from "./differenceInQuarters.js"; +export * from "./differenceInSeconds.js"; +export * from "./differenceInWeeks.js"; +export * from "./differenceInYears.js"; +export * from "./eachDayOfInterval.js"; +export * from "./eachHourOfInterval.js"; +export * from "./eachMinuteOfInterval.js"; +export * from "./eachMonthOfInterval.js"; +export * from "./eachQuarterOfInterval.js"; +export * from "./eachWeekOfInterval.js"; +export * from "./eachWeekendOfInterval.js"; +export * from "./eachWeekendOfMonth.js"; +export * from "./eachWeekendOfYear.js"; +export * from "./eachYearOfInterval.js"; +export * from "./endOfDay.js"; +export * from "./endOfDecade.js"; +export * from "./endOfHour.js"; +export * from "./endOfISOWeek.js"; +export * from "./endOfISOWeekYear.js"; +export * from "./endOfMinute.js"; +export * from "./endOfMonth.js"; +export * from "./endOfQuarter.js"; +export * from "./endOfSecond.js"; +export * from "./endOfToday.js"; +export * from "./endOfTomorrow.js"; +export * from "./endOfWeek.js"; +export * from "./endOfYear.js"; +export * from "./endOfYesterday.js"; +export * from "./format.js"; +export * from "./formatDistance.js"; +export * from "./formatDistanceStrict.js"; +export * from "./formatDistanceToNow.js"; +export * from "./formatDistanceToNowStrict.js"; +export * from "./formatDuration.js"; +export * from "./formatISO.js"; +export * from "./formatISO9075.js"; +export * from "./formatISODuration.js"; +export * from "./formatRFC3339.js"; +export * from "./formatRFC7231.js"; +export * from "./formatRelative.js"; +export * from "./fromUnixTime.js"; +export * from "./getDate.js"; +export * from "./getDay.js"; +export * from "./getDayOfYear.js"; +export * from "./getDaysInMonth.js"; +export * from "./getDaysInYear.js"; +export * from "./getDecade.js"; +export * from "./getDefaultOptions.js"; +export * from "./getHours.js"; +export * from "./getISODay.js"; +export * from "./getISOWeek.js"; +export * from "./getISOWeekYear.js"; +export * from "./getISOWeeksInYear.js"; +export * from "./getMilliseconds.js"; +export * from "./getMinutes.js"; +export * from "./getMonth.js"; +export * from "./getOverlappingDaysInIntervals.js"; +export * from "./getQuarter.js"; +export * from "./getSeconds.js"; +export * from "./getTime.js"; +export * from "./getUnixTime.js"; +export * from "./getWeek.js"; +export * from "./getWeekOfMonth.js"; +export * from "./getWeekYear.js"; +export * from "./getWeeksInMonth.js"; +export * from "./getYear.js"; +export * from "./hoursToMilliseconds.js"; +export * from "./hoursToMinutes.js"; +export * from "./hoursToSeconds.js"; +export * from "./interval.js"; +export * from "./intervalToDuration.js"; +export * from "./intlFormat.js"; +export * from "./intlFormatDistance.js"; +export * from "./isAfter.js"; +export * from "./isBefore.js"; +export * from "./isDate.js"; +export * from "./isEqual.js"; +export * from "./isExists.js"; +export * from "./isFirstDayOfMonth.js"; +export * from "./isFriday.js"; +export * from "./isFuture.js"; +export * from "./isLastDayOfMonth.js"; +export * from "./isLeapYear.js"; +export * from "./isMatch.js"; +export * from "./isMonday.js"; +export * from "./isPast.js"; +export * from "./isSameDay.js"; +export * from "./isSameHour.js"; +export * from "./isSameISOWeek.js"; +export * from "./isSameISOWeekYear.js"; +export * from "./isSameMinute.js"; +export * from "./isSameMonth.js"; +export * from "./isSameQuarter.js"; +export * from "./isSameSecond.js"; +export * from "./isSameWeek.js"; +export * from "./isSameYear.js"; +export * from "./isSaturday.js"; +export * from "./isSunday.js"; +export * from "./isThisHour.js"; +export * from "./isThisISOWeek.js"; +export * from "./isThisMinute.js"; +export * from "./isThisMonth.js"; +export * from "./isThisQuarter.js"; +export * from "./isThisSecond.js"; +export * from "./isThisWeek.js"; +export * from "./isThisYear.js"; +export * from "./isThursday.js"; +export * from "./isToday.js"; +export * from "./isTomorrow.js"; +export * from "./isTuesday.js"; +export * from "./isValid.js"; +export * from "./isWednesday.js"; +export * from "./isWeekend.js"; +export * from "./isWithinInterval.js"; +export * from "./isYesterday.js"; +export * from "./lastDayOfDecade.js"; +export * from "./lastDayOfISOWeek.js"; +export * from "./lastDayOfISOWeekYear.js"; +export * from "./lastDayOfMonth.js"; +export * from "./lastDayOfQuarter.js"; +export * from "./lastDayOfWeek.js"; +export * from "./lastDayOfYear.js"; +export * from "./lightFormat.js"; +export * from "./max.js"; +export * from "./milliseconds.js"; +export * from "./millisecondsToHours.js"; +export * from "./millisecondsToMinutes.js"; +export * from "./millisecondsToSeconds.js"; +export * from "./min.js"; +export * from "./minutesToHours.js"; +export * from "./minutesToMilliseconds.js"; +export * from "./minutesToSeconds.js"; +export * from "./monthsToQuarters.js"; +export * from "./monthsToYears.js"; +export * from "./nextDay.js"; +export * from "./nextFriday.js"; +export * from "./nextMonday.js"; +export * from "./nextSaturday.js"; +export * from "./nextSunday.js"; +export * from "./nextThursday.js"; +export * from "./nextTuesday.js"; +export * from "./nextWednesday.js"; +export * from "./parse.js"; +export * from "./parseISO.js"; +export * from "./parseJSON.js"; +export * from "./previousDay.js"; +export * from "./previousFriday.js"; +export * from "./previousMonday.js"; +export * from "./previousSaturday.js"; +export * from "./previousSunday.js"; +export * from "./previousThursday.js"; +export * from "./previousTuesday.js"; +export * from "./previousWednesday.js"; +export * from "./quartersToMonths.js"; +export * from "./quartersToYears.js"; +export * from "./roundToNearestHours.js"; +export * from "./roundToNearestMinutes.js"; +export * from "./secondsToHours.js"; +export * from "./secondsToMilliseconds.js"; +export * from "./secondsToMinutes.js"; +export * from "./set.js"; +export * from "./setDate.js"; +export * from "./setDay.js"; +export * from "./setDayOfYear.js"; +export * from "./setDefaultOptions.js"; +export * from "./setHours.js"; +export * from "./setISODay.js"; +export * from "./setISOWeek.js"; +export * from "./setISOWeekYear.js"; +export * from "./setMilliseconds.js"; +export * from "./setMinutes.js"; +export * from "./setMonth.js"; +export * from "./setQuarter.js"; +export * from "./setSeconds.js"; +export * from "./setWeek.js"; +export * from "./setWeekYear.js"; +export * from "./setYear.js"; +export * from "./startOfDay.js"; +export * from "./startOfDecade.js"; +export * from "./startOfHour.js"; +export * from "./startOfISOWeek.js"; +export * from "./startOfISOWeekYear.js"; +export * from "./startOfMinute.js"; +export * from "./startOfMonth.js"; +export * from "./startOfQuarter.js"; +export * from "./startOfSecond.js"; +export * from "./startOfToday.js"; +export * from "./startOfTomorrow.js"; +export * from "./startOfWeek.js"; +export * from "./startOfWeekYear.js"; +export * from "./startOfYear.js"; +export * from "./startOfYesterday.js"; +export * from "./sub.js"; +export * from "./subBusinessDays.js"; +export * from "./subDays.js"; +export * from "./subHours.js"; +export * from "./subISOWeekYears.js"; +export * from "./subMilliseconds.js"; +export * from "./subMinutes.js"; +export * from "./subMonths.js"; +export * from "./subQuarters.js"; +export * from "./subSeconds.js"; +export * from "./subWeeks.js"; +export * from "./subYears.js"; +export * from "./toDate.js"; +export * from "./transpose.js"; +export * from "./weeksToDays.js"; +export * from "./yearsToDays.js"; +export * from "./yearsToMonths.js"; +export * from "./yearsToQuarters.js"; diff --git a/node_modules/date-fns/interval.cjs b/node_modules/date-fns/interval.cjs new file mode 100644 index 000000000..a1deb1829 --- /dev/null +++ b/node_modules/date-fns/interval.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.interval = interval; +var _index = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link interval} function options. + */ + +/** + * The {@link interval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the start argument, + * then the end interval date. If a context function is passed, it uses the context + * function return type. + */ + +/** + * @name interval + * @category Interval Helpers + * @summary Creates an interval object and validates its values. + * + * @description + * Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. + * + * @typeParam StartDate - Start date type. + * @typeParam EndDate - End date type. + * @typeParam Options - Options type. + * + * @param start - The start of the interval. + * @param end - The end of the interval. + * @param options - The options object. + * + * @throws `Start date is invalid` when `start` is invalid. + * @throws `End date is invalid` when `end` is invalid. + * @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. + * + * @returns The normalized and validated interval object. + */ +function interval(start, end, options) { + const [_start, _end] = (0, _index.normalizeDates)(options?.in, start, end); + + if (isNaN(+_start)) throw new TypeError("Start date is invalid"); + if (isNaN(+_end)) throw new TypeError("End date is invalid"); + + if (options?.assertPositive && +_start > +_end) + throw new TypeError("End date must be after start date"); + + return { start: _start, end: _end }; +} diff --git a/node_modules/date-fns/interval.d.cts b/node_modules/date-fns/interval.d.cts new file mode 100644 index 000000000..3dbd7809d --- /dev/null +++ b/node_modules/date-fns/interval.d.cts @@ -0,0 +1,59 @@ +import type { ContextOptions, DateArg, NormalizedInterval } from "./types.ts"; +/** + * The {@link interval} function options. + */ +export interface IntervalOptions + extends ContextOptions { + /** Asserts that the interval is positive (start is after the end). */ + assertPositive?: boolean; +} +/** + * The {@link interval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the start argument, + * then the end interval date. If a context function is passed, it uses the context + * function return type. + */ +export type IntervalResult< + StartDate extends DateArg, + EndDate extends DateArg, + Options extends IntervalOptions | undefined = undefined, +> = NormalizedInterval< + Options extends IntervalOptions + ? DateType + : StartDate extends Date + ? StartDate + : EndDate extends Date + ? EndDate + : Date +>; +/** + * @name interval + * @category Interval Helpers + * @summary Creates an interval object and validates its values. + * + * @description + * Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. + * + * @typeParam StartDate - Start date type. + * @typeParam EndDate - End date type. + * @typeParam Options - Options type. + * + * @param start - The start of the interval. + * @param end - The end of the interval. + * @param options - The options object. + * + * @throws `Start date is invalid` when `start` is invalid. + * @throws `End date is invalid` when `end` is invalid. + * @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. + * + * @returns The normalized and validated interval object. + */ +export declare function interval< + StartDate extends DateArg, + EndDate extends DateArg, + Options extends IntervalOptions | undefined = undefined, +>( + start: StartDate, + end: EndDate, + options?: Options, +): IntervalResult; diff --git a/node_modules/date-fns/interval.d.ts b/node_modules/date-fns/interval.d.ts new file mode 100644 index 000000000..3dbd7809d --- /dev/null +++ b/node_modules/date-fns/interval.d.ts @@ -0,0 +1,59 @@ +import type { ContextOptions, DateArg, NormalizedInterval } from "./types.ts"; +/** + * The {@link interval} function options. + */ +export interface IntervalOptions + extends ContextOptions { + /** Asserts that the interval is positive (start is after the end). */ + assertPositive?: boolean; +} +/** + * The {@link interval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the start argument, + * then the end interval date. If a context function is passed, it uses the context + * function return type. + */ +export type IntervalResult< + StartDate extends DateArg, + EndDate extends DateArg, + Options extends IntervalOptions | undefined = undefined, +> = NormalizedInterval< + Options extends IntervalOptions + ? DateType + : StartDate extends Date + ? StartDate + : EndDate extends Date + ? EndDate + : Date +>; +/** + * @name interval + * @category Interval Helpers + * @summary Creates an interval object and validates its values. + * + * @description + * Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. + * + * @typeParam StartDate - Start date type. + * @typeParam EndDate - End date type. + * @typeParam Options - Options type. + * + * @param start - The start of the interval. + * @param end - The end of the interval. + * @param options - The options object. + * + * @throws `Start date is invalid` when `start` is invalid. + * @throws `End date is invalid` when `end` is invalid. + * @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. + * + * @returns The normalized and validated interval object. + */ +export declare function interval< + StartDate extends DateArg, + EndDate extends DateArg, + Options extends IntervalOptions | undefined = undefined, +>( + start: StartDate, + end: EndDate, + options?: Options, +): IntervalResult; diff --git a/node_modules/date-fns/interval.js b/node_modules/date-fns/interval.js new file mode 100644 index 000000000..dd9d8a7bc --- /dev/null +++ b/node_modules/date-fns/interval.js @@ -0,0 +1,49 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link interval} function options. + */ + +/** + * The {@link interval} function result type. It resolves the proper data type. + * It uses the first argument date object type, starting from the start argument, + * then the end interval date. If a context function is passed, it uses the context + * function return type. + */ + +/** + * @name interval + * @category Interval Helpers + * @summary Creates an interval object and validates its values. + * + * @description + * Creates a normalized interval object and validates its values. If the interval is invalid, an exception is thrown. + * + * @typeParam StartDate - Start date type. + * @typeParam EndDate - End date type. + * @typeParam Options - Options type. + * + * @param start - The start of the interval. + * @param end - The end of the interval. + * @param options - The options object. + * + * @throws `Start date is invalid` when `start` is invalid. + * @throws `End date is invalid` when `end` is invalid. + * @throws `End date must be after start date` when end is before `start` and `options.assertPositive` is true. + * + * @returns The normalized and validated interval object. + */ +export function interval(start, end, options) { + const [_start, _end] = normalizeDates(options?.in, start, end); + + if (isNaN(+_start)) throw new TypeError("Start date is invalid"); + if (isNaN(+_end)) throw new TypeError("End date is invalid"); + + if (options?.assertPositive && +_start > +_end) + throw new TypeError("End date must be after start date"); + + return { start: _start, end: _end }; +} + +// Fallback for modularized imports: +export default interval; diff --git a/node_modules/date-fns/intervalToDuration.cjs b/node_modules/date-fns/intervalToDuration.cjs new file mode 100644 index 000000000..47065753e --- /dev/null +++ b/node_modules/date-fns/intervalToDuration.cjs @@ -0,0 +1,73 @@ +"use strict"; +exports.intervalToDuration = intervalToDuration; +var _index = require("./_lib/normalizeInterval.cjs"); +var _index2 = require("./add.cjs"); +var _index3 = require("./differenceInDays.cjs"); +var _index4 = require("./differenceInHours.cjs"); +var _index5 = require("./differenceInMinutes.cjs"); +var _index6 = require("./differenceInMonths.cjs"); +var _index7 = require("./differenceInSeconds.cjs"); +var _index8 = require("./differenceInYears.cjs"); + +/** + * The {@link intervalToDuration} function options. + */ + +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert an interval object to a duration object. + * + * @param interval - The interval to convert to duration + * @param options - The context options + * + * @returns The duration object + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }); + * //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +function intervalToDuration(interval, options) { + const { start, end } = (0, _index.normalizeInterval)(options?.in, interval); + const duration = {}; + + const years = (0, _index8.differenceInYears)(end, start); + if (years) duration.years = years; + + const remainingMonths = (0, _index2.add)(start, { years: duration.years }); + const months = (0, _index6.differenceInMonths)(end, remainingMonths); + if (months) duration.months = months; + + const remainingDays = (0, _index2.add)(remainingMonths, { + months: duration.months, + }); + const days = (0, _index3.differenceInDays)(end, remainingDays); + if (days) duration.days = days; + + const remainingHours = (0, _index2.add)(remainingDays, { + days: duration.days, + }); + const hours = (0, _index4.differenceInHours)(end, remainingHours); + if (hours) duration.hours = hours; + + const remainingMinutes = (0, _index2.add)(remainingHours, { + hours: duration.hours, + }); + const minutes = (0, _index5.differenceInMinutes)(end, remainingMinutes); + if (minutes) duration.minutes = minutes; + + const remainingSeconds = (0, _index2.add)(remainingMinutes, { + minutes: duration.minutes, + }); + const seconds = (0, _index7.differenceInSeconds)(end, remainingSeconds); + if (seconds) duration.seconds = seconds; + + return duration; +} diff --git a/node_modules/date-fns/intervalToDuration.d.cts b/node_modules/date-fns/intervalToDuration.d.cts new file mode 100644 index 000000000..84f433588 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions, Duration, Interval } from "./types.ts"; +/** + * The {@link intervalToDuration} function options. + */ +export interface IntervalToDurationOptions extends ContextOptions {} +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert an interval object to a duration object. + * + * @param interval - The interval to convert to duration + * @param options - The context options + * + * @returns The duration object + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }); + * //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +export declare function intervalToDuration( + interval: Interval, + options?: IntervalToDurationOptions | undefined, +): Duration; diff --git a/node_modules/date-fns/intervalToDuration.d.ts b/node_modules/date-fns/intervalToDuration.d.ts new file mode 100644 index 000000000..84f433588 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions, Duration, Interval } from "./types.ts"; +/** + * The {@link intervalToDuration} function options. + */ +export interface IntervalToDurationOptions extends ContextOptions {} +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert an interval object to a duration object. + * + * @param interval - The interval to convert to duration + * @param options - The context options + * + * @returns The duration object + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }); + * //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +export declare function intervalToDuration( + interval: Interval, + options?: IntervalToDurationOptions | undefined, +): Duration; diff --git a/node_modules/date-fns/intervalToDuration.js b/node_modules/date-fns/intervalToDuration.js new file mode 100644 index 000000000..29026b475 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration.js @@ -0,0 +1,66 @@ +import { normalizeInterval } from "./_lib/normalizeInterval.js"; +import { add } from "./add.js"; +import { differenceInDays } from "./differenceInDays.js"; +import { differenceInHours } from "./differenceInHours.js"; +import { differenceInMinutes } from "./differenceInMinutes.js"; +import { differenceInMonths } from "./differenceInMonths.js"; +import { differenceInSeconds } from "./differenceInSeconds.js"; +import { differenceInYears } from "./differenceInYears.js"; + +/** + * The {@link intervalToDuration} function options. + */ + +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert an interval object to a duration object. + * + * @param interval - The interval to convert to duration + * @param options - The context options + * + * @returns The duration object + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }); + * //=> { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +export function intervalToDuration(interval, options) { + const { start, end } = normalizeInterval(options?.in, interval); + const duration = {}; + + const years = differenceInYears(end, start); + if (years) duration.years = years; + + const remainingMonths = add(start, { years: duration.years }); + const months = differenceInMonths(end, remainingMonths); + if (months) duration.months = months; + + const remainingDays = add(remainingMonths, { months: duration.months }); + const days = differenceInDays(end, remainingDays); + if (days) duration.days = days; + + const remainingHours = add(remainingDays, { days: duration.days }); + const hours = differenceInHours(end, remainingHours); + if (hours) duration.hours = hours; + + const remainingMinutes = add(remainingHours, { hours: duration.hours }); + const minutes = differenceInMinutes(end, remainingMinutes); + if (minutes) duration.minutes = minutes; + + const remainingSeconds = add(remainingMinutes, { minutes: duration.minutes }); + const seconds = differenceInSeconds(end, remainingSeconds); + if (seconds) duration.seconds = seconds; + + return duration; +} + +// Fallback for modularized imports: +export default intervalToDuration; diff --git a/node_modules/date-fns/intlFormat.cjs b/node_modules/date-fns/intlFormat.cjs new file mode 100644 index 000000000..76ad905d0 --- /dev/null +++ b/node_modules/date-fns/intlFormat.cjs @@ -0,0 +1,120 @@ +"use strict"; +exports.intlFormat = intlFormat; +var _index = require("./toDate.cjs"); + +/** + * The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * @deprecated + * + * [TODO] Remove in v4 + */ + +/** + * The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) + */ + +/** + * The locale options. + */ + +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param date - The date to format + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ + +/** + * @param date - The date to format + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + */ + +/** + * @param date - The date to format + * @param formatOptions - The format options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + */ + +/** + * @param date - The date to format + * @param formatOptions - The format options + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + */ + +function intlFormat(date, formatOrLocale, localeOptions) { + let formatOptions; + + if (isFormatOptions(formatOrLocale)) { + formatOptions = formatOrLocale; + } else { + localeOptions = formatOrLocale; + } + + return new Intl.DateTimeFormat(localeOptions?.locale, formatOptions).format( + (0, _index.toDate)(date), + ); +} + +function isFormatOptions(opts) { + return opts !== undefined && !("locale" in opts); +} diff --git a/node_modules/date-fns/intlFormat.d.cts b/node_modules/date-fns/intlFormat.d.cts new file mode 100644 index 000000000..4e13dcc5f --- /dev/null +++ b/node_modules/date-fns/intlFormat.d.cts @@ -0,0 +1,113 @@ +import type { DateArg, MaybeArray } from "./types.ts"; +/** + * The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * @deprecated + * + * [TODO] Remove in v4 + */ +export type IntlFormatLocale = Intl.ResolvedDateTimeFormatOptions["locale"]; +/** + * The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) + */ +export type IntlFormatFormatOptions = Intl.DateTimeFormatOptions; +/** + * The locale options. + */ +export interface IntlFormatLocaleOptions { + /** The locales to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale: MaybeArray; +} +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param date - The date to format + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ +export declare function intlFormat(date: DateArg & {}): string; +/** + * @param date - The date to format + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + */ +export declare function intlFormat( + date: DateArg & {}, + localeOptions: IntlFormatLocaleOptions, +): string; +/** + * @param date - The date to format + * @param formatOptions - The format options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + */ +export declare function intlFormat( + date: DateArg & {}, + formatOptions: IntlFormatFormatOptions, +): string; +/** + * @param date - The date to format + * @param formatOptions - The format options + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + */ +export declare function intlFormat( + date: DateArg & {}, + formatOptions: IntlFormatFormatOptions, + localeOptions: IntlFormatLocaleOptions, +): string; diff --git a/node_modules/date-fns/intlFormat.d.ts b/node_modules/date-fns/intlFormat.d.ts new file mode 100644 index 000000000..4e13dcc5f --- /dev/null +++ b/node_modules/date-fns/intlFormat.d.ts @@ -0,0 +1,113 @@ +import type { DateArg, MaybeArray } from "./types.ts"; +/** + * The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * @deprecated + * + * [TODO] Remove in v4 + */ +export type IntlFormatLocale = Intl.ResolvedDateTimeFormatOptions["locale"]; +/** + * The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) + */ +export type IntlFormatFormatOptions = Intl.DateTimeFormatOptions; +/** + * The locale options. + */ +export interface IntlFormatLocaleOptions { + /** The locales to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale: MaybeArray; +} +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param date - The date to format + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ +export declare function intlFormat(date: DateArg & {}): string; +/** + * @param date - The date to format + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + */ +export declare function intlFormat( + date: DateArg & {}, + localeOptions: IntlFormatLocaleOptions, +): string; +/** + * @param date - The date to format + * @param formatOptions - The format options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + */ +export declare function intlFormat( + date: DateArg & {}, + formatOptions: IntlFormatFormatOptions, +): string; +/** + * @param date - The date to format + * @param formatOptions - The format options + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + */ +export declare function intlFormat( + date: DateArg & {}, + formatOptions: IntlFormatFormatOptions, + localeOptions: IntlFormatLocaleOptions, +): string; diff --git a/node_modules/date-fns/intlFormat.js b/node_modules/date-fns/intlFormat.js new file mode 100644 index 000000000..1904d9233 --- /dev/null +++ b/node_modules/date-fns/intlFormat.js @@ -0,0 +1,121 @@ +import { toDate } from "./toDate.js"; + +/** + * The locale string (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * @deprecated + * + * [TODO] Remove in v4 + */ + +/** + * The format options (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#options) + */ + +/** + * The locale options. + */ + +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param date - The date to format + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ + +/** + * @param date - The date to format + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + */ + +/** + * @param date - The date to format + * @param formatOptions - The format options + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + */ + +/** + * @param date - The date to format + * @param formatOptions - The format options + * @param localeOptions - An object with locale + * + * @returns The formatted date string + * + * @throws `date` must not be Invalid Date + * + * @example + * // Represent 4 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + */ + +export function intlFormat(date, formatOrLocale, localeOptions) { + let formatOptions; + + if (isFormatOptions(formatOrLocale)) { + formatOptions = formatOrLocale; + } else { + localeOptions = formatOrLocale; + } + + return new Intl.DateTimeFormat(localeOptions?.locale, formatOptions).format( + toDate(date), + ); +} + +function isFormatOptions(opts) { + return opts !== undefined && !("locale" in opts); +} + +// Fallback for modularized imports: +export default intlFormat; diff --git a/node_modules/date-fns/intlFormatDistance.cjs b/node_modules/date-fns/intlFormatDistance.cjs new file mode 100644 index 000000000..557d4d74c --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance.cjs @@ -0,0 +1,218 @@ +"use strict"; +exports.intlFormatDistance = intlFormatDistance; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./constants.cjs"); + +var _index3 = require("./differenceInCalendarDays.cjs"); +var _index4 = require("./differenceInCalendarMonths.cjs"); +var _index5 = require("./differenceInCalendarQuarters.cjs"); +var _index6 = require("./differenceInCalendarWeeks.cjs"); +var _index7 = require("./differenceInCalendarYears.cjs"); +var _index8 = require("./differenceInHours.cjs"); +var _index9 = require("./differenceInMinutes.cjs"); +var _index0 = require("./differenceInSeconds.cjs"); + +/** + * The {@link intlFormatDistance} function options. + */ + +/** + * The unit used to format the distance in {@link intlFormatDistance}. + */ + +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * 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`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with. + * @param options - An object with options. + * 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) + * The narrow one could be similar to the short one for some locales. + * + * @returns The distance in words according to language-sensitive relative time formatting. + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must not be invalid Unit + * @throws `options.locale` must not be invalid locale + * @throws `options.localeMatcher` must not be invalid localeMatcher + * @throws `options.numeric` must not be invalid numeric + * @throws `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +function intlFormatDistance(laterDate, earlierDate, options) { + let value = 0; + let unit; + + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + + if (!options?.unit) { + // Get the unit based on diffInSeconds calculations if no unit is specified + const diffInSeconds = (0, _index0.differenceInSeconds)( + laterDate_, + earlierDate_, + ); // The smallest unit + + if (Math.abs(diffInSeconds) < _index2.secondsInMinute) { + value = (0, _index0.differenceInSeconds)(laterDate_, earlierDate_); + unit = "second"; + } else if (Math.abs(diffInSeconds) < _index2.secondsInHour) { + value = (0, _index9.differenceInMinutes)(laterDate_, earlierDate_); + unit = "minute"; + } else if ( + Math.abs(diffInSeconds) < _index2.secondsInDay && + Math.abs( + (0, _index3.differenceInCalendarDays)(laterDate_, earlierDate_), + ) < 1 + ) { + value = (0, _index8.differenceInHours)(laterDate_, earlierDate_); + unit = "hour"; + } else if ( + Math.abs(diffInSeconds) < _index2.secondsInWeek && + (value = (0, _index3.differenceInCalendarDays)( + laterDate_, + earlierDate_, + )) && + Math.abs(value) < 7 + ) { + unit = "day"; + } else if (Math.abs(diffInSeconds) < _index2.secondsInMonth) { + value = (0, _index6.differenceInCalendarWeeks)(laterDate_, earlierDate_); + unit = "week"; + } else if (Math.abs(diffInSeconds) < _index2.secondsInQuarter) { + value = (0, _index4.differenceInCalendarMonths)(laterDate_, earlierDate_); + unit = "month"; + } else if (Math.abs(diffInSeconds) < _index2.secondsInYear) { + if ( + (0, _index5.differenceInCalendarQuarters)(laterDate_, earlierDate_) < 4 + ) { + // To filter out cases that are less than a year but match 4 quarters + value = (0, _index5.differenceInCalendarQuarters)( + laterDate_, + earlierDate_, + ); + unit = "quarter"; + } else { + value = (0, _index7.differenceInCalendarYears)( + laterDate_, + earlierDate_, + ); + unit = "year"; + } + } else { + value = (0, _index7.differenceInCalendarYears)(laterDate_, earlierDate_); + unit = "year"; + } + } else { + // Get the value if unit is specified + unit = options?.unit; + if (unit === "second") { + value = (0, _index0.differenceInSeconds)(laterDate_, earlierDate_); + } else if (unit === "minute") { + value = (0, _index9.differenceInMinutes)(laterDate_, earlierDate_); + } else if (unit === "hour") { + value = (0, _index8.differenceInHours)(laterDate_, earlierDate_); + } else if (unit === "day") { + value = (0, _index3.differenceInCalendarDays)(laterDate_, earlierDate_); + } else if (unit === "week") { + value = (0, _index6.differenceInCalendarWeeks)(laterDate_, earlierDate_); + } else if (unit === "month") { + value = (0, _index4.differenceInCalendarMonths)(laterDate_, earlierDate_); + } else if (unit === "quarter") { + value = (0, _index5.differenceInCalendarQuarters)( + laterDate_, + earlierDate_, + ); + } else if (unit === "year") { + value = (0, _index7.differenceInCalendarYears)(laterDate_, earlierDate_); + } + } + + const rtf = new Intl.RelativeTimeFormat(options?.locale, { + numeric: "auto", + ...options, + }); + + return rtf.format(value, unit); +} diff --git a/node_modules/date-fns/intlFormatDistance.d.cts b/node_modules/date-fns/intlFormatDistance.d.cts new file mode 100644 index 000000000..8d007a5df --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance.d.cts @@ -0,0 +1,126 @@ +import type { ContextOptions, DateArg, MaybeArray } from "./types.ts"; +/** + * The {@link intlFormatDistance} function options. + */ +export interface IntlFormatDistanceOptions + extends Intl.RelativeTimeFormatOptions, + ContextOptions { + /** Force the distance unit */ + unit?: IntlFormatDistanceUnit; + /** The locales to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale?: MaybeArray; +} +/** + * The unit used to format the distance in {@link intlFormatDistance}. + */ +export type IntlFormatDistanceUnit = + | "year" + | "quarter" + | "month" + | "week" + | "day" + | "hour" + | "minute" + | "second"; +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * 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`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with. + * @param options - An object with options. + * 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) + * The narrow one could be similar to the short one for some locales. + * + * @returns The distance in words according to language-sensitive relative time formatting. + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must not be invalid Unit + * @throws `options.locale` must not be invalid locale + * @throws `options.localeMatcher` must not be invalid localeMatcher + * @throws `options.numeric` must not be invalid numeric + * @throws `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +export declare function intlFormatDistance( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IntlFormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/intlFormatDistance.d.ts b/node_modules/date-fns/intlFormatDistance.d.ts new file mode 100644 index 000000000..8d007a5df --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance.d.ts @@ -0,0 +1,126 @@ +import type { ContextOptions, DateArg, MaybeArray } from "./types.ts"; +/** + * The {@link intlFormatDistance} function options. + */ +export interface IntlFormatDistanceOptions + extends Intl.RelativeTimeFormatOptions, + ContextOptions { + /** Force the distance unit */ + unit?: IntlFormatDistanceUnit; + /** The locales to use (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) */ + locale?: MaybeArray; +} +/** + * The unit used to format the distance in {@link intlFormatDistance}. + */ +export type IntlFormatDistanceUnit = + | "year" + | "quarter" + | "month" + | "week" + | "day" + | "hour" + | "minute" + | "second"; +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * 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`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with. + * @param options - An object with options. + * 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) + * The narrow one could be similar to the short one for some locales. + * + * @returns The distance in words according to language-sensitive relative time formatting. + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must not be invalid Unit + * @throws `options.locale` must not be invalid locale + * @throws `options.localeMatcher` must not be invalid localeMatcher + * @throws `options.numeric` must not be invalid numeric + * @throws `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +export declare function intlFormatDistance( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IntlFormatDistanceOptions, +): string; diff --git a/node_modules/date-fns/intlFormatDistance.js b/node_modules/date-fns/intlFormatDistance.js new file mode 100644 index 000000000..d97f7fbb3 --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance.js @@ -0,0 +1,207 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { + secondsInDay, + secondsInHour, + secondsInMinute, + secondsInMonth, + secondsInQuarter, + secondsInWeek, + secondsInYear, +} from "./constants.js"; +import { differenceInCalendarDays } from "./differenceInCalendarDays.js"; +import { differenceInCalendarMonths } from "./differenceInCalendarMonths.js"; +import { differenceInCalendarQuarters } from "./differenceInCalendarQuarters.js"; +import { differenceInCalendarWeeks } from "./differenceInCalendarWeeks.js"; +import { differenceInCalendarYears } from "./differenceInCalendarYears.js"; +import { differenceInHours } from "./differenceInHours.js"; +import { differenceInMinutes } from "./differenceInMinutes.js"; +import { differenceInSeconds } from "./differenceInSeconds.js"; + +/** + * The {@link intlFormatDistance} function options. + */ + +/** + * The unit used to format the distance in {@link intlFormatDistance}. + */ + +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * 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`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param laterDate - The date + * @param earlierDate - The date to compare with. + * @param options - An object with options. + * 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) + * The narrow one could be similar to the short one for some locales. + * + * @returns The distance in words according to language-sensitive relative time formatting. + * + * @throws `date` must not be Invalid Date + * @throws `baseDate` must not be Invalid Date + * @throws `options.unit` must not be invalid Unit + * @throws `options.locale` must not be invalid locale + * @throws `options.localeMatcher` must not be invalid localeMatcher + * @throws `options.numeric` must not be invalid numeric + * @throws `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +export function intlFormatDistance(laterDate, earlierDate, options) { + let value = 0; + let unit; + + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + + if (!options?.unit) { + // Get the unit based on diffInSeconds calculations if no unit is specified + const diffInSeconds = differenceInSeconds(laterDate_, earlierDate_); // The smallest unit + + if (Math.abs(diffInSeconds) < secondsInMinute) { + value = differenceInSeconds(laterDate_, earlierDate_); + unit = "second"; + } else if (Math.abs(diffInSeconds) < secondsInHour) { + value = differenceInMinutes(laterDate_, earlierDate_); + unit = "minute"; + } else if ( + Math.abs(diffInSeconds) < secondsInDay && + Math.abs(differenceInCalendarDays(laterDate_, earlierDate_)) < 1 + ) { + value = differenceInHours(laterDate_, earlierDate_); + unit = "hour"; + } else if ( + Math.abs(diffInSeconds) < secondsInWeek && + (value = differenceInCalendarDays(laterDate_, earlierDate_)) && + Math.abs(value) < 7 + ) { + unit = "day"; + } else if (Math.abs(diffInSeconds) < secondsInMonth) { + value = differenceInCalendarWeeks(laterDate_, earlierDate_); + unit = "week"; + } else if (Math.abs(diffInSeconds) < secondsInQuarter) { + value = differenceInCalendarMonths(laterDate_, earlierDate_); + unit = "month"; + } else if (Math.abs(diffInSeconds) < secondsInYear) { + if (differenceInCalendarQuarters(laterDate_, earlierDate_) < 4) { + // To filter out cases that are less than a year but match 4 quarters + value = differenceInCalendarQuarters(laterDate_, earlierDate_); + unit = "quarter"; + } else { + value = differenceInCalendarYears(laterDate_, earlierDate_); + unit = "year"; + } + } else { + value = differenceInCalendarYears(laterDate_, earlierDate_); + unit = "year"; + } + } else { + // Get the value if unit is specified + unit = options?.unit; + if (unit === "second") { + value = differenceInSeconds(laterDate_, earlierDate_); + } else if (unit === "minute") { + value = differenceInMinutes(laterDate_, earlierDate_); + } else if (unit === "hour") { + value = differenceInHours(laterDate_, earlierDate_); + } else if (unit === "day") { + value = differenceInCalendarDays(laterDate_, earlierDate_); + } else if (unit === "week") { + value = differenceInCalendarWeeks(laterDate_, earlierDate_); + } else if (unit === "month") { + value = differenceInCalendarMonths(laterDate_, earlierDate_); + } else if (unit === "quarter") { + value = differenceInCalendarQuarters(laterDate_, earlierDate_); + } else if (unit === "year") { + value = differenceInCalendarYears(laterDate_, earlierDate_); + } + } + + const rtf = new Intl.RelativeTimeFormat(options?.locale, { + numeric: "auto", + ...options, + }); + + return rtf.format(value, unit); +} + +// Fallback for modularized imports: +export default intlFormatDistance; diff --git a/node_modules/date-fns/isAfter.cjs b/node_modules/date-fns/isAfter.cjs new file mode 100644 index 000000000..6db09015f --- /dev/null +++ b/node_modules/date-fns/isAfter.cjs @@ -0,0 +1,25 @@ +"use strict"; +exports.isAfter = isAfter; +var _index = require("./toDate.cjs"); + +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param date - The date that should be after the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is after the second date + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +function isAfter(date, dateToCompare) { + return +(0, _index.toDate)(date) > +(0, _index.toDate)(dateToCompare); +} diff --git a/node_modules/date-fns/isAfter.d.cts b/node_modules/date-fns/isAfter.d.cts new file mode 100644 index 000000000..d12e340fb --- /dev/null +++ b/node_modules/date-fns/isAfter.d.cts @@ -0,0 +1,23 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param date - The date that should be after the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is after the second date + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +export declare function isAfter( + date: DateArg & {}, + dateToCompare: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isAfter.d.ts b/node_modules/date-fns/isAfter.d.ts new file mode 100644 index 000000000..d12e340fb --- /dev/null +++ b/node_modules/date-fns/isAfter.d.ts @@ -0,0 +1,23 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param date - The date that should be after the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is after the second date + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +export declare function isAfter( + date: DateArg & {}, + dateToCompare: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isAfter.js b/node_modules/date-fns/isAfter.js new file mode 100644 index 000000000..51c6b4ce1 --- /dev/null +++ b/node_modules/date-fns/isAfter.js @@ -0,0 +1,26 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param date - The date that should be after the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is after the second date + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +export function isAfter(date, dateToCompare) { + return +toDate(date) > +toDate(dateToCompare); +} + +// Fallback for modularized imports: +export default isAfter; diff --git a/node_modules/date-fns/isBefore.cjs b/node_modules/date-fns/isBefore.cjs new file mode 100644 index 000000000..c3c44ee9e --- /dev/null +++ b/node_modules/date-fns/isBefore.cjs @@ -0,0 +1,25 @@ +"use strict"; +exports.isBefore = isBefore; +var _index = require("./toDate.cjs"); + +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param date - The date that should be before the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is before the second date + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +function isBefore(date, dateToCompare) { + return +(0, _index.toDate)(date) < +(0, _index.toDate)(dateToCompare); +} diff --git a/node_modules/date-fns/isBefore.d.cts b/node_modules/date-fns/isBefore.d.cts new file mode 100644 index 000000000..c4e4a6f92 --- /dev/null +++ b/node_modules/date-fns/isBefore.d.cts @@ -0,0 +1,23 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param date - The date that should be before the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is before the second date + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +export declare function isBefore( + date: DateArg & {}, + dateToCompare: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isBefore.d.ts b/node_modules/date-fns/isBefore.d.ts new file mode 100644 index 000000000..c4e4a6f92 --- /dev/null +++ b/node_modules/date-fns/isBefore.d.ts @@ -0,0 +1,23 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param date - The date that should be before the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is before the second date + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +export declare function isBefore( + date: DateArg & {}, + dateToCompare: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isBefore.js b/node_modules/date-fns/isBefore.js new file mode 100644 index 000000000..a0be06608 --- /dev/null +++ b/node_modules/date-fns/isBefore.js @@ -0,0 +1,26 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param date - The date that should be before the other one to return true + * @param dateToCompare - The date to compare with + * + * @returns The first date is before the second date + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +export function isBefore(date, dateToCompare) { + return +toDate(date) < +toDate(dateToCompare); +} + +// Fallback for modularized imports: +export default isBefore; diff --git a/node_modules/date-fns/isDate.cjs b/node_modules/date-fns/isDate.cjs new file mode 100644 index 000000000..57fa9248d --- /dev/null +++ b/node_modules/date-fns/isDate.cjs @@ -0,0 +1,40 @@ +"use strict"; +exports.isDate = isDate; /** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param value - The value to check + * + * @returns True if the given value is a date + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +function isDate(value) { + return ( + value instanceof Date || + (typeof value === "object" && + Object.prototype.toString.call(value) === "[object Date]") + ); +} diff --git a/node_modules/date-fns/isDate.d.cts b/node_modules/date-fns/isDate.d.cts new file mode 100644 index 000000000..a01e8e038 --- /dev/null +++ b/node_modules/date-fns/isDate.d.cts @@ -0,0 +1,33 @@ +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param value - The value to check + * + * @returns True if the given value is a date + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +export declare function isDate(value: unknown): value is Date; diff --git a/node_modules/date-fns/isDate.d.ts b/node_modules/date-fns/isDate.d.ts new file mode 100644 index 000000000..a01e8e038 --- /dev/null +++ b/node_modules/date-fns/isDate.d.ts @@ -0,0 +1,33 @@ +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param value - The value to check + * + * @returns True if the given value is a date + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +export declare function isDate(value: unknown): value is Date; diff --git a/node_modules/date-fns/isDate.js b/node_modules/date-fns/isDate.js new file mode 100644 index 000000000..7bb848e2c --- /dev/null +++ b/node_modules/date-fns/isDate.js @@ -0,0 +1,42 @@ +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param value - The value to check + * + * @returns True if the given value is a date + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +export function isDate(value) { + return ( + value instanceof Date || + (typeof value === "object" && + Object.prototype.toString.call(value) === "[object Date]") + ); +} + +// Fallback for modularized imports: +export default isDate; diff --git a/node_modules/date-fns/isEqual.cjs b/node_modules/date-fns/isEqual.cjs new file mode 100644 index 000000000..4a30e7b6a --- /dev/null +++ b/node_modules/date-fns/isEqual.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.isEqual = isEqual; +var _index = require("./toDate.cjs"); + +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +function isEqual(leftDate, rightDate) { + return +(0, _index.toDate)(leftDate) === +(0, _index.toDate)(rightDate); +} diff --git a/node_modules/date-fns/isEqual.d.cts b/node_modules/date-fns/isEqual.d.cts new file mode 100644 index 000000000..656954f66 --- /dev/null +++ b/node_modules/date-fns/isEqual.d.cts @@ -0,0 +1,26 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +export declare function isEqual( + leftDate: DateArg & {}, + rightDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isEqual.d.ts b/node_modules/date-fns/isEqual.d.ts new file mode 100644 index 000000000..656954f66 --- /dev/null +++ b/node_modules/date-fns/isEqual.d.ts @@ -0,0 +1,26 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +export declare function isEqual( + leftDate: DateArg & {}, + rightDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isEqual.js b/node_modules/date-fns/isEqual.js new file mode 100644 index 000000000..bd077c840 --- /dev/null +++ b/node_modules/date-fns/isEqual.js @@ -0,0 +1,29 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param dateLeft - The first date to compare + * @param dateRight - The second date to compare + * + * @returns The dates are equal + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +export function isEqual(leftDate, rightDate) { + return +toDate(leftDate) === +toDate(rightDate); +} + +// Fallback for modularized imports: +export default isEqual; diff --git a/node_modules/date-fns/isExists.cjs b/node_modules/date-fns/isExists.cjs new file mode 100644 index 000000000..ffa830bb5 --- /dev/null +++ b/node_modules/date-fns/isExists.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.isExists = isExists; /** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param year - The year of the date to check + * @param month - The month of the date to check + * @param day - The day of the date to check + * + * @returns `true` if the date exists + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +function isExists(year, month, day) { + const date = new Date(year, month, day); + return ( + date.getFullYear() === year && + date.getMonth() === month && + date.getDate() === day + ); +} diff --git a/node_modules/date-fns/isExists.d.cts b/node_modules/date-fns/isExists.d.cts new file mode 100644 index 000000000..3aba27b70 --- /dev/null +++ b/node_modules/date-fns/isExists.d.cts @@ -0,0 +1,29 @@ +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param year - The year of the date to check + * @param month - The month of the date to check + * @param day - The day of the date to check + * + * @returns `true` if the date exists + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +export declare function isExists( + year: number, + month: number, + day: number, +): boolean; diff --git a/node_modules/date-fns/isExists.d.ts b/node_modules/date-fns/isExists.d.ts new file mode 100644 index 000000000..3aba27b70 --- /dev/null +++ b/node_modules/date-fns/isExists.d.ts @@ -0,0 +1,29 @@ +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param year - The year of the date to check + * @param month - The month of the date to check + * @param day - The day of the date to check + * + * @returns `true` if the date exists + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +export declare function isExists( + year: number, + month: number, + day: number, +): boolean; diff --git a/node_modules/date-fns/isExists.js b/node_modules/date-fns/isExists.js new file mode 100644 index 000000000..d6e968600 --- /dev/null +++ b/node_modules/date-fns/isExists.js @@ -0,0 +1,35 @@ +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param year - The year of the date to check + * @param month - The month of the date to check + * @param day - The day of the date to check + * + * @returns `true` if the date exists + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +export function isExists(year, month, day) { + const date = new Date(year, month, day); + return ( + date.getFullYear() === year && + date.getMonth() === month && + date.getDate() === day + ); +} + +// Fallback for modularized imports: +export default isExists; diff --git a/node_modules/date-fns/isFirstDayOfMonth.cjs b/node_modules/date-fns/isFirstDayOfMonth.cjs new file mode 100644 index 000000000..f47495db8 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isFirstDayOfMonth = isFirstDayOfMonth; +var _index = require("./toDate.cjs"); + +/** + * The {@link isFirstDayOfMonth} function options. + */ + +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the first day of a month + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +function isFirstDayOfMonth(date, options) { + return (0, _index.toDate)(date, options?.in).getDate() === 1; +} diff --git a/node_modules/date-fns/isFirstDayOfMonth.d.cts b/node_modules/date-fns/isFirstDayOfMonth.d.cts new file mode 100644 index 000000000..16cba6125 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isFirstDayOfMonth} function options. + */ +export interface IsFirstDayOfMonthOptions extends ContextOptions {} +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the first day of a month + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +export declare function isFirstDayOfMonth( + date: DateArg & {}, + options?: IsFirstDayOfMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isFirstDayOfMonth.d.ts b/node_modules/date-fns/isFirstDayOfMonth.d.ts new file mode 100644 index 000000000..16cba6125 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isFirstDayOfMonth} function options. + */ +export interface IsFirstDayOfMonthOptions extends ContextOptions {} +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the first day of a month + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +export declare function isFirstDayOfMonth( + date: DateArg & {}, + options?: IsFirstDayOfMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isFirstDayOfMonth.js b/node_modules/date-fns/isFirstDayOfMonth.js new file mode 100644 index 000000000..a898c0eb9 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isFirstDayOfMonth} function options. + */ + +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the first day of a month + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +export function isFirstDayOfMonth(date, options) { + return toDate(date, options?.in).getDate() === 1; +} + +// Fallback for modularized imports: +export default isFirstDayOfMonth; diff --git a/node_modules/date-fns/isFriday.cjs b/node_modules/date-fns/isFriday.cjs new file mode 100644 index 000000000..65cb68102 --- /dev/null +++ b/node_modules/date-fns/isFriday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isFriday = isFriday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isFriday} function options. + */ + +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Friday + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +function isFriday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 5; +} diff --git a/node_modules/date-fns/isFriday.d.cts b/node_modules/date-fns/isFriday.d.cts new file mode 100644 index 000000000..a546f6d59 --- /dev/null +++ b/node_modules/date-fns/isFriday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isFriday} function options. + */ +export interface IsFridayOptions extends ContextOptions {} +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Friday + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +export declare function isFriday( + date: DateArg & {}, + options?: IsFridayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isFriday.d.ts b/node_modules/date-fns/isFriday.d.ts new file mode 100644 index 000000000..a546f6d59 --- /dev/null +++ b/node_modules/date-fns/isFriday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isFriday} function options. + */ +export interface IsFridayOptions extends ContextOptions {} +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Friday + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +export declare function isFriday( + date: DateArg & {}, + options?: IsFridayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isFriday.js b/node_modules/date-fns/isFriday.js new file mode 100644 index 000000000..61ac39bf8 --- /dev/null +++ b/node_modules/date-fns/isFriday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isFriday} function options. + */ + +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Friday + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +export function isFriday(date, options) { + return toDate(date, options?.in).getDay() === 5; +} + +// Fallback for modularized imports: +export default isFriday; diff --git a/node_modules/date-fns/isFuture.cjs b/node_modules/date-fns/isFuture.cjs new file mode 100644 index 000000000..451453158 --- /dev/null +++ b/node_modules/date-fns/isFuture.cjs @@ -0,0 +1,25 @@ +"use strict"; +exports.isFuture = isFuture; +var _index = require("./toDate.cjs"); + +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * @param date - The date to check + * + * @returns The date is in the future + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +function isFuture(date) { + return +(0, _index.toDate)(date) > Date.now(); +} diff --git a/node_modules/date-fns/isFuture.d.cts b/node_modules/date-fns/isFuture.d.cts new file mode 100644 index 000000000..e7c3f7c80 --- /dev/null +++ b/node_modules/date-fns/isFuture.d.cts @@ -0,0 +1,20 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * @param date - The date to check + * + * @returns The date is in the future + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +export declare function isFuture(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isFuture.d.ts b/node_modules/date-fns/isFuture.d.ts new file mode 100644 index 000000000..e7c3f7c80 --- /dev/null +++ b/node_modules/date-fns/isFuture.d.ts @@ -0,0 +1,20 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * @param date - The date to check + * + * @returns The date is in the future + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +export declare function isFuture(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isFuture.js b/node_modules/date-fns/isFuture.js new file mode 100644 index 000000000..907deafe7 --- /dev/null +++ b/node_modules/date-fns/isFuture.js @@ -0,0 +1,26 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * @param date - The date to check + * + * @returns The date is in the future + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +export function isFuture(date) { + return +toDate(date) > Date.now(); +} + +// Fallback for modularized imports: +export default isFuture; diff --git a/node_modules/date-fns/isLastDayOfMonth.cjs b/node_modules/date-fns/isLastDayOfMonth.cjs new file mode 100644 index 000000000..1d8fe19d7 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.isLastDayOfMonth = isLastDayOfMonth; +var _index = require("./endOfDay.cjs"); +var _index2 = require("./endOfMonth.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the last day of a month + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +function isLastDayOfMonth(date, options) { + const _date = (0, _index3.toDate)(date, options?.in); + return ( + +(0, _index.endOfDay)(_date, options) === + +(0, _index2.endOfMonth)(_date, options) + ); +} diff --git a/node_modules/date-fns/isLastDayOfMonth.d.cts b/node_modules/date-fns/isLastDayOfMonth.d.cts new file mode 100644 index 000000000..a460d7897 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth.d.cts @@ -0,0 +1,24 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +export interface IsLastDayOfMonthOptions extends ContextOptions {} +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the last day of a month + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +export declare function isLastDayOfMonth( + date: DateArg & {}, + options?: IsLastDayOfMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isLastDayOfMonth.d.ts b/node_modules/date-fns/isLastDayOfMonth.d.ts new file mode 100644 index 000000000..a460d7897 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth.d.ts @@ -0,0 +1,24 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +export interface IsLastDayOfMonthOptions extends ContextOptions {} +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the last day of a month + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +export declare function isLastDayOfMonth( + date: DateArg & {}, + options?: IsLastDayOfMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isLastDayOfMonth.js b/node_modules/date-fns/isLastDayOfMonth.js new file mode 100644 index 000000000..5e958a8af --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth.js @@ -0,0 +1,29 @@ +import { endOfDay } from "./endOfDay.js"; +import { endOfMonth } from "./endOfMonth.js"; +import { toDate } from "./toDate.js"; + +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is the last day of a month + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +export function isLastDayOfMonth(date, options) { + const _date = toDate(date, options?.in); + return +endOfDay(_date, options) === +endOfMonth(_date, options); +} + +// Fallback for modularized imports: +export default isLastDayOfMonth; diff --git a/node_modules/date-fns/isLeapYear.cjs b/node_modules/date-fns/isLeapYear.cjs new file mode 100644 index 000000000..aab111a46 --- /dev/null +++ b/node_modules/date-fns/isLeapYear.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.isLeapYear = isLeapYear; +var _index = require("./toDate.cjs"); + +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is in the leap year + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +function isLeapYear(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const year = _date.getFullYear(); + return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0); +} diff --git a/node_modules/date-fns/isLeapYear.d.cts b/node_modules/date-fns/isLeapYear.d.cts new file mode 100644 index 000000000..77757d0dc --- /dev/null +++ b/node_modules/date-fns/isLeapYear.d.cts @@ -0,0 +1,24 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +export interface IsLeapYearOptions extends ContextOptions {} +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is in the leap year + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +export declare function isLeapYear( + date: DateArg & {}, + options?: IsLeapYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isLeapYear.d.ts b/node_modules/date-fns/isLeapYear.d.ts new file mode 100644 index 000000000..77757d0dc --- /dev/null +++ b/node_modules/date-fns/isLeapYear.d.ts @@ -0,0 +1,24 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +export interface IsLeapYearOptions extends ContextOptions {} +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is in the leap year + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +export declare function isLeapYear( + date: DateArg & {}, + options?: IsLeapYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isLeapYear.js b/node_modules/date-fns/isLeapYear.js new file mode 100644 index 000000000..420f6763d --- /dev/null +++ b/node_modules/date-fns/isLeapYear.js @@ -0,0 +1,28 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is in the leap year + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +export function isLeapYear(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0); +} + +// Fallback for modularized imports: +export default isLeapYear; diff --git a/node_modules/date-fns/isMatch.cjs b/node_modules/date-fns/isMatch.cjs new file mode 100644 index 000000000..bbd4bea20 --- /dev/null +++ b/node_modules/date-fns/isMatch.cjs @@ -0,0 +1,298 @@ +"use strict"; +exports.isMatch = isMatch; +var _index = require("./isValid.cjs"); +var _index2 = require("./parse.cjs"); + +/** + * The {@link isMatch} function options. + */ + +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangeably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) + * and [setWeekYear](https://date-fns.org/docs/setWeekYear)). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * @param dateStr - The date string to verify + * @param format - The string of tokens + * @param options - An object with options. + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @returns Is format string a match for date string? + * + * @throws `options.locale` must contain `match` property + * @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +function isMatch(dateStr, formatStr, options) { + return (0, _index.isValid)( + (0, _index2.parse)(dateStr, formatStr, new Date(), options), + ); +} diff --git a/node_modules/date-fns/isMatch.d.cts b/node_modules/date-fns/isMatch.d.cts new file mode 100644 index 000000000..b63490a43 --- /dev/null +++ b/node_modules/date-fns/isMatch.d.cts @@ -0,0 +1,303 @@ +import type { + AdditionalTokensOptions, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link isMatch} function options. + */ +export interface IsMatchOptions + extends LocalizedOptions<"options" | "match" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions {} +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangeably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) + * and [setWeekYear](https://date-fns.org/docs/setWeekYear)). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * @param dateStr - The date string to verify + * @param format - The string of tokens + * @param options - An object with options. + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @returns Is format string a match for date string? + * + * @throws `options.locale` must contain `match` property + * @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +export declare function isMatch( + dateStr: string, + formatStr: string, + options?: IsMatchOptions, +): boolean; diff --git a/node_modules/date-fns/isMatch.d.ts b/node_modules/date-fns/isMatch.d.ts new file mode 100644 index 000000000..b63490a43 --- /dev/null +++ b/node_modules/date-fns/isMatch.d.ts @@ -0,0 +1,303 @@ +import type { + AdditionalTokensOptions, + FirstWeekContainsDateOptions, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link isMatch} function options. + */ +export interface IsMatchOptions + extends LocalizedOptions<"options" | "match" | "formatLong">, + WeekOptions, + FirstWeekContainsDateOptions, + AdditionalTokensOptions {} +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangeably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) + * and [setWeekYear](https://date-fns.org/docs/setWeekYear)). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * @param dateStr - The date string to verify + * @param format - The string of tokens + * @param options - An object with options. + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @returns Is format string a match for date string? + * + * @throws `options.locale` must contain `match` property + * @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +export declare function isMatch( + dateStr: string, + formatStr: string, + options?: IsMatchOptions, +): boolean; diff --git a/node_modules/date-fns/isMatch.js b/node_modules/date-fns/isMatch.js new file mode 100644 index 000000000..9ea576e77 --- /dev/null +++ b/node_modules/date-fns/isMatch.js @@ -0,0 +1,297 @@ +import { isValid } from "./isValid.js"; +import { parse } from "./parse.js"; + +/** + * The {@link isMatch} function options. + */ + +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangeably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear) + * and [setWeekYear](https://date-fns.org/docs/setWeekYear)). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * @param dateStr - The date string to verify + * @param format - The string of tokens + * @param options - An object with options. + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @returns Is format string a match for date string? + * + * @throws `options.locale` must contain `match` property + * @throws use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +export function isMatch(dateStr, formatStr, options) { + return isValid(parse(dateStr, formatStr, new Date(), options)); +} + +// Fallback for modularized imports: +export default isMatch; diff --git a/node_modules/date-fns/isMonday.cjs b/node_modules/date-fns/isMonday.cjs new file mode 100644 index 000000000..61a97b604 --- /dev/null +++ b/node_modules/date-fns/isMonday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isMonday = isMonday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isMonday} function options. + */ + +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Monday + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +function isMonday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 1; +} diff --git a/node_modules/date-fns/isMonday.d.cts b/node_modules/date-fns/isMonday.d.cts new file mode 100644 index 000000000..5cb6ff000 --- /dev/null +++ b/node_modules/date-fns/isMonday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isMonday} function options. + */ +export interface IsMondayOptions extends ContextOptions {} +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Monday + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isMonday( + date: DateArg & {}, + options?: IsMondayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isMonday.d.ts b/node_modules/date-fns/isMonday.d.ts new file mode 100644 index 000000000..5cb6ff000 --- /dev/null +++ b/node_modules/date-fns/isMonday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isMonday} function options. + */ +export interface IsMondayOptions extends ContextOptions {} +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Monday + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isMonday( + date: DateArg & {}, + options?: IsMondayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isMonday.js b/node_modules/date-fns/isMonday.js new file mode 100644 index 000000000..bd6e2fc6e --- /dev/null +++ b/node_modules/date-fns/isMonday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isMonday} function options. + */ + +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Monday + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +export function isMonday(date, options) { + return toDate(date, options?.in).getDay() === 1; +} + +// Fallback for modularized imports: +export default isMonday; diff --git a/node_modules/date-fns/isPast.cjs b/node_modules/date-fns/isPast.cjs new file mode 100644 index 000000000..03f9abf78 --- /dev/null +++ b/node_modules/date-fns/isPast.cjs @@ -0,0 +1,25 @@ +"use strict"; +exports.isPast = isPast; +var _index = require("./toDate.cjs"); + +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * @param date - The date to check + * + * @returns The date is in the past + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +function isPast(date) { + return +(0, _index.toDate)(date) < Date.now(); +} diff --git a/node_modules/date-fns/isPast.d.cts b/node_modules/date-fns/isPast.d.cts new file mode 100644 index 000000000..aa2b22513 --- /dev/null +++ b/node_modules/date-fns/isPast.d.cts @@ -0,0 +1,20 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * @param date - The date to check + * + * @returns The date is in the past + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isPast(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isPast.d.ts b/node_modules/date-fns/isPast.d.ts new file mode 100644 index 000000000..aa2b22513 --- /dev/null +++ b/node_modules/date-fns/isPast.d.ts @@ -0,0 +1,20 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * @param date - The date to check + * + * @returns The date is in the past + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isPast(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isPast.js b/node_modules/date-fns/isPast.js new file mode 100644 index 000000000..60d964794 --- /dev/null +++ b/node_modules/date-fns/isPast.js @@ -0,0 +1,26 @@ +import { toDate } from "./toDate.js"; + +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * @param date - The date to check + * + * @returns The date is in the past + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +export function isPast(date) { + return +toDate(date) < Date.now(); +} + +// Fallback for modularized imports: +export default isPast; diff --git a/node_modules/date-fns/isSameDay.cjs b/node_modules/date-fns/isSameDay.cjs new file mode 100644 index 000000000..908b707ca --- /dev/null +++ b/node_modules/date-fns/isSameDay.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.isSameDay = isSameDay; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./startOfDay.cjs"); + +/** + * The {@link isSameDay} function options. + */ + +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same day (and year and month) + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +function isSameDay(laterDate, earlierDate, options) { + const [dateLeft_, dateRight_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + +(0, _index2.startOfDay)(dateLeft_) === +(0, _index2.startOfDay)(dateRight_) + ); +} diff --git a/node_modules/date-fns/isSameDay.d.cts b/node_modules/date-fns/isSameDay.d.cts new file mode 100644 index 000000000..1d5a82c54 --- /dev/null +++ b/node_modules/date-fns/isSameDay.d.cts @@ -0,0 +1,39 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameDay} function options. + */ +export interface IsSameDayOptions extends ContextOptions {} +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same day (and year and month) + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +export declare function isSameDay( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameDayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameDay.d.ts b/node_modules/date-fns/isSameDay.d.ts new file mode 100644 index 000000000..1d5a82c54 --- /dev/null +++ b/node_modules/date-fns/isSameDay.d.ts @@ -0,0 +1,39 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameDay} function options. + */ +export interface IsSameDayOptions extends ContextOptions {} +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same day (and year and month) + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +export declare function isSameDay( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameDayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameDay.js b/node_modules/date-fns/isSameDay.js new file mode 100644 index 000000000..79ed297a0 --- /dev/null +++ b/node_modules/date-fns/isSameDay.js @@ -0,0 +1,47 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { startOfDay } from "./startOfDay.js"; + +/** + * The {@link isSameDay} function options. + */ + +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same day (and year and month) + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +export function isSameDay(laterDate, earlierDate, options) { + const [dateLeft_, dateRight_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return +startOfDay(dateLeft_) === +startOfDay(dateRight_); +} + +// Fallback for modularized imports: +export default isSameDay; diff --git a/node_modules/date-fns/isSameHour.cjs b/node_modules/date-fns/isSameHour.cjs new file mode 100644 index 000000000..89c231d8e --- /dev/null +++ b/node_modules/date-fns/isSameHour.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.isSameHour = isSameHour; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./startOfHour.cjs"); + +/** + * The {@link isSameHour} function options. + */ + +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same hour (and same day) + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +function isSameHour(dateLeft, dateRight, options) { + const [dateLeft_, dateRight_] = (0, _index.normalizeDates)( + options?.in, + dateLeft, + dateRight, + ); + return ( + +(0, _index2.startOfHour)(dateLeft_) === + +(0, _index2.startOfHour)(dateRight_) + ); +} diff --git a/node_modules/date-fns/isSameHour.d.cts b/node_modules/date-fns/isSameHour.d.cts new file mode 100644 index 000000000..51c5de041 --- /dev/null +++ b/node_modules/date-fns/isSameHour.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameHour} function options. + */ +export interface IsSameHourOptions extends ContextOptions {} +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same hour (and same day) + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +export declare function isSameHour( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, + options?: IsSameHourOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameHour.d.ts b/node_modules/date-fns/isSameHour.d.ts new file mode 100644 index 000000000..51c5de041 --- /dev/null +++ b/node_modules/date-fns/isSameHour.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameHour} function options. + */ +export interface IsSameHourOptions extends ContextOptions {} +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same hour (and same day) + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +export declare function isSameHour( + dateLeft: DateArg & {}, + dateRight: DateArg & {}, + options?: IsSameHourOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameHour.js b/node_modules/date-fns/isSameHour.js new file mode 100644 index 000000000..3dff707e9 --- /dev/null +++ b/node_modules/date-fns/isSameHour.js @@ -0,0 +1,42 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { startOfHour } from "./startOfHour.js"; + +/** + * The {@link isSameHour} function options. + */ + +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param dateLeft - The first date to check + * @param dateRight - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same hour (and same day) + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +export function isSameHour(dateLeft, dateRight, options) { + const [dateLeft_, dateRight_] = normalizeDates( + options?.in, + dateLeft, + dateRight, + ); + return +startOfHour(dateLeft_) === +startOfHour(dateRight_); +} + +// Fallback for modularized imports: +export default isSameHour; diff --git a/node_modules/date-fns/isSameISOWeek.cjs b/node_modules/date-fns/isSameISOWeek.cjs new file mode 100644 index 000000000..fa6514e96 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek.cjs @@ -0,0 +1,40 @@ +"use strict"; +exports.isSameISOWeek = isSameISOWeek; +var _index = require("./isSameWeek.cjs"); + +/** + * The {@link isSameISOWeek} function options. + */ + +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week (and year) + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +function isSameISOWeek(laterDate, earlierDate, options) { + return (0, _index.isSameWeek)(laterDate, earlierDate, { + ...options, + weekStartsOn: 1, + }); +} diff --git a/node_modules/date-fns/isSameISOWeek.d.cts b/node_modules/date-fns/isSameISOWeek.d.cts new file mode 100644 index 000000000..eda8e5781 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek.d.cts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameISOWeek} function options. + */ +export interface IsSameISOWeekOptions extends ContextOptions {} +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week (and year) + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +export declare function isSameISOWeek( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameISOWeekOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeek.d.ts b/node_modules/date-fns/isSameISOWeek.d.ts new file mode 100644 index 000000000..eda8e5781 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek.d.ts @@ -0,0 +1,36 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameISOWeek} function options. + */ +export interface IsSameISOWeekOptions extends ContextOptions {} +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week (and year) + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +export declare function isSameISOWeek( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameISOWeekOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeek.js b/node_modules/date-fns/isSameISOWeek.js new file mode 100644 index 000000000..607a67317 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek.js @@ -0,0 +1,38 @@ +import { isSameWeek } from "./isSameWeek.js"; + +/** + * The {@link isSameISOWeek} function options. + */ + +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week (and year) + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +export function isSameISOWeek(laterDate, earlierDate, options) { + return isSameWeek(laterDate, earlierDate, { ...options, weekStartsOn: 1 }); +} + +// Fallback for modularized imports: +export default isSameISOWeek; diff --git a/node_modules/date-fns/isSameISOWeekYear.cjs b/node_modules/date-fns/isSameISOWeekYear.cjs new file mode 100644 index 000000000..5b0d83d19 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.isSameISOWeekYear = isSameISOWeekYear; +var _index = require("./startOfISOWeekYear.cjs"); + +var _index2 = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link isSameISOWeekYear} function options. + */ + +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week-numbering year + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +function isSameISOWeekYear(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + +(0, _index.startOfISOWeekYear)(laterDate_) === + +(0, _index.startOfISOWeekYear)(earlierDate_) + ); +} diff --git a/node_modules/date-fns/isSameISOWeekYear.d.cts b/node_modules/date-fns/isSameISOWeekYear.d.cts new file mode 100644 index 000000000..64a0562af --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear.d.cts @@ -0,0 +1,31 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameISOWeekYear} function options. + */ +export interface IsSameISOWeekYearOptions extends ContextOptions {} +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week-numbering year + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +export declare function isSameISOWeekYear( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameISOWeekYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeekYear.d.ts b/node_modules/date-fns/isSameISOWeekYear.d.ts new file mode 100644 index 000000000..64a0562af --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear.d.ts @@ -0,0 +1,31 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameISOWeekYear} function options. + */ +export interface IsSameISOWeekYearOptions extends ContextOptions {} +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week-numbering year + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +export declare function isSameISOWeekYear( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameISOWeekYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameISOWeekYear.js b/node_modules/date-fns/isSameISOWeekYear.js new file mode 100644 index 000000000..bd1659bc1 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear.js @@ -0,0 +1,40 @@ +import { startOfISOWeekYear } from "./startOfISOWeekYear.js"; + +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link isSameISOWeekYear} function options. + */ + +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same ISO week-numbering year + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +export function isSameISOWeekYear(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return +startOfISOWeekYear(laterDate_) === +startOfISOWeekYear(earlierDate_); +} + +// Fallback for modularized imports: +export default isSameISOWeekYear; diff --git a/node_modules/date-fns/isSameMinute.cjs b/node_modules/date-fns/isSameMinute.cjs new file mode 100644 index 000000000..438757a02 --- /dev/null +++ b/node_modules/date-fns/isSameMinute.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.isSameMinute = isSameMinute; +var _index = require("./startOfMinute.cjs"); + +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same minute (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +function isSameMinute(laterDate, earlierDate) { + return ( + +(0, _index.startOfMinute)(laterDate) === + +(0, _index.startOfMinute)(earlierDate) + ); +} diff --git a/node_modules/date-fns/isSameMinute.d.cts b/node_modules/date-fns/isSameMinute.d.cts new file mode 100644 index 000000000..dd680a8c1 --- /dev/null +++ b/node_modules/date-fns/isSameMinute.d.cts @@ -0,0 +1,34 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same minute (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +export declare function isSameMinute( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isSameMinute.d.ts b/node_modules/date-fns/isSameMinute.d.ts new file mode 100644 index 000000000..dd680a8c1 --- /dev/null +++ b/node_modules/date-fns/isSameMinute.d.ts @@ -0,0 +1,34 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same minute (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +export declare function isSameMinute( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isSameMinute.js b/node_modules/date-fns/isSameMinute.js new file mode 100644 index 000000000..7aea375b4 --- /dev/null +++ b/node_modules/date-fns/isSameMinute.js @@ -0,0 +1,37 @@ +import { startOfMinute } from "./startOfMinute.js"; + +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same minute (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +export function isSameMinute(laterDate, earlierDate) { + return +startOfMinute(laterDate) === +startOfMinute(earlierDate); +} + +// Fallback for modularized imports: +export default isSameMinute; diff --git a/node_modules/date-fns/isSameMonth.cjs b/node_modules/date-fns/isSameMonth.cjs new file mode 100644 index 000000000..e0b59d0b9 --- /dev/null +++ b/node_modules/date-fns/isSameMonth.cjs @@ -0,0 +1,43 @@ +"use strict"; +exports.isSameMonth = isSameMonth; +var _index = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link isSameMonth} function options. + */ + +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same month (and year) + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +function isSameMonth(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + laterDate_.getFullYear() === earlierDate_.getFullYear() && + laterDate_.getMonth() === earlierDate_.getMonth() + ); +} diff --git a/node_modules/date-fns/isSameMonth.d.cts b/node_modules/date-fns/isSameMonth.d.cts new file mode 100644 index 000000000..657affe75 --- /dev/null +++ b/node_modules/date-fns/isSameMonth.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameMonth} function options. + */ +export interface IsSameMonthOptions extends ContextOptions {} +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same month (and year) + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +export declare function isSameMonth( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameMonth.d.ts b/node_modules/date-fns/isSameMonth.d.ts new file mode 100644 index 000000000..657affe75 --- /dev/null +++ b/node_modules/date-fns/isSameMonth.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameMonth} function options. + */ +export interface IsSameMonthOptions extends ContextOptions {} +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same month (and year) + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +export declare function isSameMonth( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameMonth.js b/node_modules/date-fns/isSameMonth.js new file mode 100644 index 000000000..73624df47 --- /dev/null +++ b/node_modules/date-fns/isSameMonth.js @@ -0,0 +1,44 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link isSameMonth} function options. + */ + +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same month (and year) + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +export function isSameMonth(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return ( + laterDate_.getFullYear() === earlierDate_.getFullYear() && + laterDate_.getMonth() === earlierDate_.getMonth() + ); +} + +// Fallback for modularized imports: +export default isSameMonth; diff --git a/node_modules/date-fns/isSameQuarter.cjs b/node_modules/date-fns/isSameQuarter.cjs new file mode 100644 index 000000000..e8e220156 --- /dev/null +++ b/node_modules/date-fns/isSameQuarter.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.isSameQuarter = isSameQuarter; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./startOfQuarter.cjs"); + +/** + * The {@link isSameQuarter} function options. + */ + +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same quarter (and year) + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +function isSameQuarter(laterDate, earlierDate, options) { + const [dateLeft_, dateRight_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + +(0, _index2.startOfQuarter)(dateLeft_) === + +(0, _index2.startOfQuarter)(dateRight_) + ); +} diff --git a/node_modules/date-fns/isSameQuarter.d.cts b/node_modules/date-fns/isSameQuarter.d.cts new file mode 100644 index 000000000..14df8bccb --- /dev/null +++ b/node_modules/date-fns/isSameQuarter.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameQuarter} function options. + */ +export interface IsSameQuarterOptions extends ContextOptions {} +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same quarter (and year) + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameQuarter( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameQuarterOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameQuarter.d.ts b/node_modules/date-fns/isSameQuarter.d.ts new file mode 100644 index 000000000..14df8bccb --- /dev/null +++ b/node_modules/date-fns/isSameQuarter.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameQuarter} function options. + */ +export interface IsSameQuarterOptions extends ContextOptions {} +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same quarter (and year) + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameQuarter( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameQuarterOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameQuarter.js b/node_modules/date-fns/isSameQuarter.js new file mode 100644 index 000000000..aeaac819b --- /dev/null +++ b/node_modules/date-fns/isSameQuarter.js @@ -0,0 +1,42 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { startOfQuarter } from "./startOfQuarter.js"; + +/** + * The {@link isSameQuarter} function options. + */ + +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same quarter (and year) + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export function isSameQuarter(laterDate, earlierDate, options) { + const [dateLeft_, dateRight_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return +startOfQuarter(dateLeft_) === +startOfQuarter(dateRight_); +} + +// Fallback for modularized imports: +export default isSameQuarter; diff --git a/node_modules/date-fns/isSameSecond.cjs b/node_modules/date-fns/isSameSecond.cjs new file mode 100644 index 000000000..0d3453837 --- /dev/null +++ b/node_modules/date-fns/isSameSecond.cjs @@ -0,0 +1,47 @@ +"use strict"; +exports.isSameSecond = isSameSecond; +var _index = require("./startOfSecond.cjs"); + +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same second (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +function isSameSecond(laterDate, earlierDate) { + return ( + +(0, _index.startOfSecond)(laterDate) === + +(0, _index.startOfSecond)(earlierDate) + ); +} diff --git a/node_modules/date-fns/isSameSecond.d.cts b/node_modules/date-fns/isSameSecond.d.cts new file mode 100644 index 000000000..1a77997e2 --- /dev/null +++ b/node_modules/date-fns/isSameSecond.d.cts @@ -0,0 +1,42 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same second (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +export declare function isSameSecond( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isSameSecond.d.ts b/node_modules/date-fns/isSameSecond.d.ts new file mode 100644 index 000000000..1a77997e2 --- /dev/null +++ b/node_modules/date-fns/isSameSecond.d.ts @@ -0,0 +1,42 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same second (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +export declare function isSameSecond( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, +): boolean; diff --git a/node_modules/date-fns/isSameSecond.js b/node_modules/date-fns/isSameSecond.js new file mode 100644 index 000000000..ff73e687e --- /dev/null +++ b/node_modules/date-fns/isSameSecond.js @@ -0,0 +1,45 @@ +import { startOfSecond } from "./startOfSecond.js"; + +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * + * @returns The dates are in the same second (and hour and day) + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +export function isSameSecond(laterDate, earlierDate) { + return +startOfSecond(laterDate) === +startOfSecond(earlierDate); +} + +// Fallback for modularized imports: +export default isSameSecond; diff --git a/node_modules/date-fns/isSameWeek.cjs b/node_modules/date-fns/isSameWeek.cjs new file mode 100644 index 000000000..31e7843a8 --- /dev/null +++ b/node_modules/date-fns/isSameWeek.cjs @@ -0,0 +1,52 @@ +"use strict"; +exports.isSameWeek = isSameWeek; +var _index = require("./_lib/normalizeDates.cjs"); +var _index2 = require("./startOfWeek.cjs"); + +/** + * The {@link isSameWeek} function options. + */ + +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same week (and month and year) + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +function isSameWeek(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return ( + +(0, _index2.startOfWeek)(laterDate_, options) === + +(0, _index2.startOfWeek)(earlierDate_, options) + ); +} diff --git a/node_modules/date-fns/isSameWeek.d.cts b/node_modules/date-fns/isSameWeek.d.cts new file mode 100644 index 000000000..66fa48108 --- /dev/null +++ b/node_modules/date-fns/isSameWeek.d.cts @@ -0,0 +1,46 @@ +import type { LocalizedOptions, WeekOptions } from "./types.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameWeek} function options. + */ +export interface IsSameWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same week (and month and year) + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameWeek( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isSameWeek.d.ts b/node_modules/date-fns/isSameWeek.d.ts new file mode 100644 index 000000000..66fa48108 --- /dev/null +++ b/node_modules/date-fns/isSameWeek.d.ts @@ -0,0 +1,46 @@ +import type { LocalizedOptions, WeekOptions } from "./types.ts"; +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameWeek} function options. + */ +export interface IsSameWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same week (and month and year) + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export declare function isSameWeek( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isSameWeek.js b/node_modules/date-fns/isSameWeek.js new file mode 100644 index 000000000..24d8573f2 --- /dev/null +++ b/node_modules/date-fns/isSameWeek.js @@ -0,0 +1,52 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; +import { startOfWeek } from "./startOfWeek.js"; + +/** + * The {@link isSameWeek} function options. + */ + +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same week (and month and year) + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export function isSameWeek(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return ( + +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options) + ); +} + +// Fallback for modularized imports: +export default isSameWeek; diff --git a/node_modules/date-fns/isSameYear.cjs b/node_modules/date-fns/isSameYear.cjs new file mode 100644 index 000000000..eb1e49b63 --- /dev/null +++ b/node_modules/date-fns/isSameYear.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.isSameYear = isSameYear; +var _index = require("./_lib/normalizeDates.cjs"); + +/** + * The {@link isSameYear} function options. + */ + +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same year + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +function isSameYear(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = (0, _index.normalizeDates)( + options?.in, + laterDate, + earlierDate, + ); + return laterDate_.getFullYear() === earlierDate_.getFullYear(); +} diff --git a/node_modules/date-fns/isSameYear.d.cts b/node_modules/date-fns/isSameYear.d.cts new file mode 100644 index 000000000..abab6d5ac --- /dev/null +++ b/node_modules/date-fns/isSameYear.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameYear} function options. + */ +export interface IsSameYearOptions extends ContextOptions {} +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same year + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +export declare function isSameYear( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameYear.d.ts b/node_modules/date-fns/isSameYear.d.ts new file mode 100644 index 000000000..abab6d5ac --- /dev/null +++ b/node_modules/date-fns/isSameYear.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSameYear} function options. + */ +export interface IsSameYearOptions extends ContextOptions {} +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same year + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +export declare function isSameYear( + laterDate: DateArg & {}, + earlierDate: DateArg & {}, + options?: IsSameYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSameYear.js b/node_modules/date-fns/isSameYear.js new file mode 100644 index 000000000..54272873d --- /dev/null +++ b/node_modules/date-fns/isSameYear.js @@ -0,0 +1,36 @@ +import { normalizeDates } from "./_lib/normalizeDates.js"; + +/** + * The {@link isSameYear} function options. + */ + +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param laterDate - The first date to check + * @param earlierDate - The second date to check + * @param options - An object with options + * + * @returns The dates are in the same year + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +export function isSameYear(laterDate, earlierDate, options) { + const [laterDate_, earlierDate_] = normalizeDates( + options?.in, + laterDate, + earlierDate, + ); + return laterDate_.getFullYear() === earlierDate_.getFullYear(); +} + +// Fallback for modularized imports: +export default isSameYear; diff --git a/node_modules/date-fns/isSaturday.cjs b/node_modules/date-fns/isSaturday.cjs new file mode 100644 index 000000000..3fe7301c4 --- /dev/null +++ b/node_modules/date-fns/isSaturday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isSaturday = isSaturday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isSaturday} function options. + */ + +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Saturday + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +function isSaturday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 6; +} diff --git a/node_modules/date-fns/isSaturday.d.cts b/node_modules/date-fns/isSaturday.d.cts new file mode 100644 index 000000000..92c23ca6e --- /dev/null +++ b/node_modules/date-fns/isSaturday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSaturday} function options. + */ +export interface IsSaturdayOptions extends ContextOptions {} +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Saturday + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +export declare function isSaturday( + date: DateArg & {}, + options?: IsSaturdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSaturday.d.ts b/node_modules/date-fns/isSaturday.d.ts new file mode 100644 index 000000000..92c23ca6e --- /dev/null +++ b/node_modules/date-fns/isSaturday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSaturday} function options. + */ +export interface IsSaturdayOptions extends ContextOptions {} +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Saturday + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +export declare function isSaturday( + date: DateArg & {}, + options?: IsSaturdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSaturday.js b/node_modules/date-fns/isSaturday.js new file mode 100644 index 000000000..d8080a8bb --- /dev/null +++ b/node_modules/date-fns/isSaturday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isSaturday} function options. + */ + +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Saturday + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +export function isSaturday(date, options) { + return toDate(date, options?.in).getDay() === 6; +} + +// Fallback for modularized imports: +export default isSaturday; diff --git a/node_modules/date-fns/isSunday.cjs b/node_modules/date-fns/isSunday.cjs new file mode 100644 index 000000000..65c56346a --- /dev/null +++ b/node_modules/date-fns/isSunday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isSunday = isSunday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isSunday} function options. + */ + +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is Sunday + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +function isSunday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 0; +} diff --git a/node_modules/date-fns/isSunday.d.cts b/node_modules/date-fns/isSunday.d.cts new file mode 100644 index 000000000..662ad0169 --- /dev/null +++ b/node_modules/date-fns/isSunday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSunday} function options. + */ +export interface IsSundayOptions extends ContextOptions {} +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is Sunday + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +export declare function isSunday( + date: DateArg & {}, + options?: IsSundayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSunday.d.ts b/node_modules/date-fns/isSunday.d.ts new file mode 100644 index 000000000..662ad0169 --- /dev/null +++ b/node_modules/date-fns/isSunday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isSunday} function options. + */ +export interface IsSundayOptions extends ContextOptions {} +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is Sunday + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +export declare function isSunday( + date: DateArg & {}, + options?: IsSundayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isSunday.js b/node_modules/date-fns/isSunday.js new file mode 100644 index 000000000..bbc919bb3 --- /dev/null +++ b/node_modules/date-fns/isSunday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isSunday} function options. + */ + +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param date - The date to check + * @param options - The options object + * + * @returns The date is Sunday + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +export function isSunday(date, options) { + return toDate(date, options?.in).getDay() === 0; +} + +// Fallback for modularized imports: +export default isSunday; diff --git a/node_modules/date-fns/isThisHour.cjs b/node_modules/date-fns/isThisHour.cjs new file mode 100644 index 000000000..d092211bb --- /dev/null +++ b/node_modules/date-fns/isThisHour.cjs @@ -0,0 +1,36 @@ +"use strict"; +exports.isThisHour = isThisHour; +var _index = require("./constructNow.cjs"); +var _index2 = require("./isSameHour.cjs"); +var _index3 = require("./toDate.cjs"); + +/** + * The {@link isThisHour} function options. + */ + +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this hour + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +function isThisHour(date, options) { + return (0, _index2.isSameHour)( + (0, _index3.toDate)(date, options?.in), + (0, _index.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isThisHour.d.cts b/node_modules/date-fns/isThisHour.d.cts new file mode 100644 index 000000000..ba500f0dc --- /dev/null +++ b/node_modules/date-fns/isThisHour.d.cts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisHour} function options. + */ +export interface IsThisHourOptions extends ContextOptions {} +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this hour + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +export declare function isThisHour( + date: DateArg & {}, + options?: IsThisHourOptions, +): boolean; diff --git a/node_modules/date-fns/isThisHour.d.ts b/node_modules/date-fns/isThisHour.d.ts new file mode 100644 index 000000000..ba500f0dc --- /dev/null +++ b/node_modules/date-fns/isThisHour.d.ts @@ -0,0 +1,29 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisHour} function options. + */ +export interface IsThisHourOptions extends ContextOptions {} +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this hour + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +export declare function isThisHour( + date: DateArg & {}, + options?: IsThisHourOptions, +): boolean; diff --git a/node_modules/date-fns/isThisHour.js b/node_modules/date-fns/isThisHour.js new file mode 100644 index 000000000..53d07a13c --- /dev/null +++ b/node_modules/date-fns/isThisHour.js @@ -0,0 +1,37 @@ +import { constructNow } from "./constructNow.js"; +import { isSameHour } from "./isSameHour.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link isThisHour} function options. + */ + +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this hour + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +export function isThisHour(date, options) { + return isSameHour( + toDate(date, options?.in), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isThisHour; diff --git a/node_modules/date-fns/isThisISOWeek.cjs b/node_modules/date-fns/isThisISOWeek.cjs new file mode 100644 index 000000000..73b8f55ad --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.isThisISOWeek = isThisISOWeek; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameISOWeek.cjs"); + +/** + * The {@link isThisISOWeek} function options. + */ + +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this ISO week + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +function isThisISOWeek(date, options) { + return (0, _index3.isSameISOWeek)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isThisISOWeek.d.cts b/node_modules/date-fns/isThisISOWeek.d.cts new file mode 100644 index 000000000..51c31a82d --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek.d.cts @@ -0,0 +1,30 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisISOWeek} function options. + */ +export interface IsThisISOWeekOptions extends ContextOptions {} +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this ISO week + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isThisISOWeek( + date: DateArg & {}, + options?: IsThisISOWeekOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisISOWeek.d.ts b/node_modules/date-fns/isThisISOWeek.d.ts new file mode 100644 index 000000000..51c31a82d --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek.d.ts @@ -0,0 +1,30 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisISOWeek} function options. + */ +export interface IsThisISOWeekOptions extends ContextOptions {} +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this ISO week + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +export declare function isThisISOWeek( + date: DateArg & {}, + options?: IsThisISOWeekOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisISOWeek.js b/node_modules/date-fns/isThisISOWeek.js new file mode 100644 index 000000000..aad1e699a --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek.js @@ -0,0 +1,38 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameISOWeek } from "./isSameISOWeek.js"; + +/** + * The {@link isThisISOWeek} function options. + */ + +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this ISO week + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +export function isThisISOWeek(date, options) { + return isSameISOWeek( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isThisISOWeek; diff --git a/node_modules/date-fns/isThisMinute.cjs b/node_modules/date-fns/isThisMinute.cjs new file mode 100644 index 000000000..c3b8393da --- /dev/null +++ b/node_modules/date-fns/isThisMinute.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.isThisMinute = isThisMinute; +var _index = require("./constructNow.cjs"); +var _index2 = require("./isSameMinute.cjs"); + +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * @param date - The date to check + * + * @returns The date is in this minute + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ + +function isThisMinute(date) { + return (0, _index2.isSameMinute)(date, (0, _index.constructNow)(date)); +} diff --git a/node_modules/date-fns/isThisMinute.d.cts b/node_modules/date-fns/isThisMinute.d.cts new file mode 100644 index 000000000..e004959e5 --- /dev/null +++ b/node_modules/date-fns/isThisMinute.d.cts @@ -0,0 +1,21 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * @param date - The date to check + * + * @returns The date is in this minute + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ +export declare function isThisMinute(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isThisMinute.d.ts b/node_modules/date-fns/isThisMinute.d.ts new file mode 100644 index 000000000..e004959e5 --- /dev/null +++ b/node_modules/date-fns/isThisMinute.d.ts @@ -0,0 +1,21 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * @param date - The date to check + * + * @returns The date is in this minute + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ +export declare function isThisMinute(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isThisMinute.js b/node_modules/date-fns/isThisMinute.js new file mode 100644 index 000000000..6f4b7eecb --- /dev/null +++ b/node_modules/date-fns/isThisMinute.js @@ -0,0 +1,29 @@ +import { constructNow } from "./constructNow.js"; +import { isSameMinute } from "./isSameMinute.js"; + +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * @param date - The date to check + * + * @returns The date is in this minute + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ + +export function isThisMinute(date) { + return isSameMinute(date, constructNow(date)); +} + +// Fallback for modularized imports: +export default isThisMinute; diff --git a/node_modules/date-fns/isThisMonth.cjs b/node_modules/date-fns/isThisMonth.cjs new file mode 100644 index 000000000..29147827e --- /dev/null +++ b/node_modules/date-fns/isThisMonth.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.isThisMonth = isThisMonth; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameMonth.cjs"); + +/** + * The {@link isThisMonth} function options. + */ + +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this month + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +function isThisMonth(date, options) { + return (0, _index3.isSameMonth)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isThisMonth.d.cts b/node_modules/date-fns/isThisMonth.d.cts new file mode 100644 index 000000000..0d2d069a8 --- /dev/null +++ b/node_modules/date-fns/isThisMonth.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisMonth} function options. + */ +export interface IsThisMonthOptions extends ContextOptions {} +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this month + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +export declare function isThisMonth( + date: DateArg & {}, + options?: IsThisMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisMonth.d.ts b/node_modules/date-fns/isThisMonth.d.ts new file mode 100644 index 000000000..0d2d069a8 --- /dev/null +++ b/node_modules/date-fns/isThisMonth.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisMonth} function options. + */ +export interface IsThisMonthOptions extends ContextOptions {} +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this month + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +export declare function isThisMonth( + date: DateArg & {}, + options?: IsThisMonthOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisMonth.js b/node_modules/date-fns/isThisMonth.js new file mode 100644 index 000000000..59f5af388 --- /dev/null +++ b/node_modules/date-fns/isThisMonth.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameMonth } from "./isSameMonth.js"; + +/** + * The {@link isThisMonth} function options. + */ + +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this month + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +export function isThisMonth(date, options) { + return isSameMonth( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isThisMonth; diff --git a/node_modules/date-fns/isThisQuarter.cjs b/node_modules/date-fns/isThisQuarter.cjs new file mode 100644 index 000000000..e69a81f31 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.isThisQuarter = isThisQuarter; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameQuarter.cjs"); + +/** + * The {@link isThisQuarter} function options. + */ + +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this quarter + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +function isThisQuarter(date, options) { + return (0, _index3.isSameQuarter)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isThisQuarter.d.cts b/node_modules/date-fns/isThisQuarter.d.cts new file mode 100644 index 000000000..d89e87b14 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisQuarter} function options. + */ +export interface IsThisQuarterOptions extends ContextOptions {} +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this quarter + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisQuarter( + date: DateArg & {}, + options?: IsThisQuarterOptions, +): boolean; diff --git a/node_modules/date-fns/isThisQuarter.d.ts b/node_modules/date-fns/isThisQuarter.d.ts new file mode 100644 index 000000000..d89e87b14 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisQuarter} function options. + */ +export interface IsThisQuarterOptions extends ContextOptions {} +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this quarter + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisQuarter( + date: DateArg & {}, + options?: IsThisQuarterOptions, +): boolean; diff --git a/node_modules/date-fns/isThisQuarter.js b/node_modules/date-fns/isThisQuarter.js new file mode 100644 index 000000000..c52b586c0 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameQuarter } from "./isSameQuarter.js"; + +/** + * The {@link isThisQuarter} function options. + */ + +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this quarter + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +export function isThisQuarter(date, options) { + return isSameQuarter( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isThisQuarter; diff --git a/node_modules/date-fns/isThisSecond.cjs b/node_modules/date-fns/isThisSecond.cjs new file mode 100644 index 000000000..0df7a45c6 --- /dev/null +++ b/node_modules/date-fns/isThisSecond.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.isThisSecond = isThisSecond; +var _index = require("./constructNow.cjs"); +var _index2 = require("./isSameSecond.cjs"); + +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * @param date - The date to check + * + * @returns The date is in this second + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +function isThisSecond(date) { + return (0, _index2.isSameSecond)(date, (0, _index.constructNow)(date)); +} diff --git a/node_modules/date-fns/isThisSecond.d.cts b/node_modules/date-fns/isThisSecond.d.cts new file mode 100644 index 000000000..567fe45e0 --- /dev/null +++ b/node_modules/date-fns/isThisSecond.d.cts @@ -0,0 +1,21 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * @param date - The date to check + * + * @returns The date is in this second + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +export declare function isThisSecond(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isThisSecond.d.ts b/node_modules/date-fns/isThisSecond.d.ts new file mode 100644 index 000000000..567fe45e0 --- /dev/null +++ b/node_modules/date-fns/isThisSecond.d.ts @@ -0,0 +1,21 @@ +import type { DateArg } from "./types.ts"; +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * @param date - The date to check + * + * @returns The date is in this second + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +export declare function isThisSecond(date: DateArg & {}): boolean; diff --git a/node_modules/date-fns/isThisSecond.js b/node_modules/date-fns/isThisSecond.js new file mode 100644 index 000000000..a6e1efab1 --- /dev/null +++ b/node_modules/date-fns/isThisSecond.js @@ -0,0 +1,28 @@ +import { constructNow } from "./constructNow.js"; +import { isSameSecond } from "./isSameSecond.js"; + +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * @param date - The date to check + * + * @returns The date is in this second + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +export function isThisSecond(date) { + return isSameSecond(date, constructNow(date)); +} + +// Fallback for modularized imports: +export default isThisSecond; diff --git a/node_modules/date-fns/isThisWeek.cjs b/node_modules/date-fns/isThisWeek.cjs new file mode 100644 index 000000000..c1700ef5c --- /dev/null +++ b/node_modules/date-fns/isThisWeek.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.isThisWeek = isThisWeek; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameWeek.cjs"); + +/** + * The {@link isThisWeek} function options. + */ + +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * @param date - The date to check + * @param options - The object with options + * + * @returns The date is in this week + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +function isThisWeek(date, options) { + return (0, _index3.isSameWeek)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + options, + ); +} diff --git a/node_modules/date-fns/isThisWeek.d.cts b/node_modules/date-fns/isThisWeek.d.cts new file mode 100644 index 000000000..79deba589 --- /dev/null +++ b/node_modules/date-fns/isThisWeek.d.cts @@ -0,0 +1,42 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link isThisWeek} function options. + */ +export interface IsThisWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * @param date - The date to check + * @param options - The object with options + * + * @returns The date is in this week + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +export declare function isThisWeek( + date: DateArg & {}, + options?: IsThisWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isThisWeek.d.ts b/node_modules/date-fns/isThisWeek.d.ts new file mode 100644 index 000000000..79deba589 --- /dev/null +++ b/node_modules/date-fns/isThisWeek.d.ts @@ -0,0 +1,42 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link isThisWeek} function options. + */ +export interface IsThisWeekOptions + extends WeekOptions, + LocalizedOptions<"options">, + ContextOptions {} +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * @param date - The date to check + * @param options - The object with options + * + * @returns The date is in this week + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +export declare function isThisWeek( + date: DateArg & {}, + options?: IsThisWeekOptions, +): boolean; diff --git a/node_modules/date-fns/isThisWeek.js b/node_modules/date-fns/isThisWeek.js new file mode 100644 index 000000000..5f9cb794b --- /dev/null +++ b/node_modules/date-fns/isThisWeek.js @@ -0,0 +1,43 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameWeek } from "./isSameWeek.js"; + +/** + * The {@link isThisWeek} function options. + */ + +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * @param date - The date to check + * @param options - The object with options + * + * @returns The date is in this week + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +export function isThisWeek(date, options) { + return isSameWeek( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + options, + ); +} + +// Fallback for modularized imports: +export default isThisWeek; diff --git a/node_modules/date-fns/isThisYear.cjs b/node_modules/date-fns/isThisYear.cjs new file mode 100644 index 000000000..30ea2a327 --- /dev/null +++ b/node_modules/date-fns/isThisYear.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.isThisYear = isThisYear; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameYear.cjs"); + +/** + * The {@link isThisYear} function options. + */ + +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this year + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +function isThisYear(date, options) { + return (0, _index3.isSameYear)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isThisYear.d.cts b/node_modules/date-fns/isThisYear.d.cts new file mode 100644 index 000000000..7af464be0 --- /dev/null +++ b/node_modules/date-fns/isThisYear.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisYear} function options. + */ +export interface IsThisYearOptions extends ContextOptions {} +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this year + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisYear( + date: DateArg & {}, + options?: IsThisYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisYear.d.ts b/node_modules/date-fns/isThisYear.d.ts new file mode 100644 index 000000000..7af464be0 --- /dev/null +++ b/node_modules/date-fns/isThisYear.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThisYear} function options. + */ +export interface IsThisYearOptions extends ContextOptions {} +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this year + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +export declare function isThisYear( + date: DateArg & {}, + options?: IsThisYearOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThisYear.js b/node_modules/date-fns/isThisYear.js new file mode 100644 index 000000000..a9b9f6b88 --- /dev/null +++ b/node_modules/date-fns/isThisYear.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameYear } from "./isSameYear.js"; + +/** + * The {@link isThisYear} function options. + */ + +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is in this year + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +export function isThisYear(date, options) { + return isSameYear( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isThisYear; diff --git a/node_modules/date-fns/isThursday.cjs b/node_modules/date-fns/isThursday.cjs new file mode 100644 index 000000000..abd43aaaf --- /dev/null +++ b/node_modules/date-fns/isThursday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isThursday = isThursday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isThursday} function options. + */ + +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Thursday + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +function isThursday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 4; +} diff --git a/node_modules/date-fns/isThursday.d.cts b/node_modules/date-fns/isThursday.d.cts new file mode 100644 index 000000000..50c9583c7 --- /dev/null +++ b/node_modules/date-fns/isThursday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThursday} function options. + */ +export interface IsThursdayOptions extends ContextOptions {} +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Thursday + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +export declare function isThursday( + date: DateArg & {}, + options?: IsThursdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThursday.d.ts b/node_modules/date-fns/isThursday.d.ts new file mode 100644 index 000000000..50c9583c7 --- /dev/null +++ b/node_modules/date-fns/isThursday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isThursday} function options. + */ +export interface IsThursdayOptions extends ContextOptions {} +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Thursday + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +export declare function isThursday( + date: DateArg & {}, + options?: IsThursdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isThursday.js b/node_modules/date-fns/isThursday.js new file mode 100644 index 000000000..af3e6fda5 --- /dev/null +++ b/node_modules/date-fns/isThursday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isThursday} function options. + */ + +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Thursday + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +export function isThursday(date, options) { + return toDate(date, options?.in).getDay() === 4; +} + +// Fallback for modularized imports: +export default isThursday; diff --git a/node_modules/date-fns/isToday.cjs b/node_modules/date-fns/isToday.cjs new file mode 100644 index 000000000..c76f41e2b --- /dev/null +++ b/node_modules/date-fns/isToday.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.isToday = isToday; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameDay.cjs"); + +/** + * The {@link isToday} function options. + */ + +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is today + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +function isToday(date, options) { + return (0, _index3.isSameDay)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index2.constructNow)(options?.in || date), + ); +} diff --git a/node_modules/date-fns/isToday.d.cts b/node_modules/date-fns/isToday.d.cts new file mode 100644 index 000000000..a5856e98c --- /dev/null +++ b/node_modules/date-fns/isToday.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isToday} function options. + */ +export interface IsTodayOptions extends ContextOptions {} +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is today + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +export declare function isToday( + date: DateArg & {}, + options?: IsTodayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isToday.d.ts b/node_modules/date-fns/isToday.d.ts new file mode 100644 index 000000000..a5856e98c --- /dev/null +++ b/node_modules/date-fns/isToday.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isToday} function options. + */ +export interface IsTodayOptions extends ContextOptions {} +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is today + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +export declare function isToday( + date: DateArg & {}, + options?: IsTodayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isToday.js b/node_modules/date-fns/isToday.js new file mode 100644 index 000000000..3b217a640 --- /dev/null +++ b/node_modules/date-fns/isToday.js @@ -0,0 +1,36 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameDay } from "./isSameDay.js"; + +/** + * The {@link isToday} function options. + */ + +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is today + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +export function isToday(date, options) { + return isSameDay( + constructFrom(options?.in || date, date), + constructNow(options?.in || date), + ); +} + +// Fallback for modularized imports: +export default isToday; diff --git a/node_modules/date-fns/isTomorrow.cjs b/node_modules/date-fns/isTomorrow.cjs new file mode 100644 index 000000000..227c85b3d --- /dev/null +++ b/node_modules/date-fns/isTomorrow.cjs @@ -0,0 +1,36 @@ +"use strict"; +exports.isTomorrow = isTomorrow; +var _index = require("./addDays.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameDay.cjs"); + +/** + * The {@link isTomorrow} function options. + */ + +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is tomorrow + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +function isTomorrow(date, options) { + return (0, _index3.isSameDay)( + date, + (0, _index.addDays)((0, _index2.constructNow)(options?.in || date), 1), + options, + ); +} diff --git a/node_modules/date-fns/isTomorrow.d.cts b/node_modules/date-fns/isTomorrow.d.cts new file mode 100644 index 000000000..151fcf682 --- /dev/null +++ b/node_modules/date-fns/isTomorrow.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isTomorrow} function options. + */ +export interface IsTomorrowOptions extends ContextOptions {} +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is tomorrow + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +export declare function isTomorrow( + date: DateArg & {}, + options?: IsTomorrowOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isTomorrow.d.ts b/node_modules/date-fns/isTomorrow.d.ts new file mode 100644 index 000000000..151fcf682 --- /dev/null +++ b/node_modules/date-fns/isTomorrow.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isTomorrow} function options. + */ +export interface IsTomorrowOptions extends ContextOptions {} +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is tomorrow + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +export declare function isTomorrow( + date: DateArg & {}, + options?: IsTomorrowOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isTomorrow.js b/node_modules/date-fns/isTomorrow.js new file mode 100644 index 000000000..14529d13d --- /dev/null +++ b/node_modules/date-fns/isTomorrow.js @@ -0,0 +1,37 @@ +import { addDays } from "./addDays.js"; +import { constructNow } from "./constructNow.js"; +import { isSameDay } from "./isSameDay.js"; + +/** + * The {@link isTomorrow} function options. + */ + +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is tomorrow + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +export function isTomorrow(date, options) { + return isSameDay( + date, + addDays(constructNow(options?.in || date), 1), + options, + ); +} + +// Fallback for modularized imports: +export default isTomorrow; diff --git a/node_modules/date-fns/isTuesday.cjs b/node_modules/date-fns/isTuesday.cjs new file mode 100644 index 000000000..7c02b1713 --- /dev/null +++ b/node_modules/date-fns/isTuesday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isTuesday = isTuesday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isTuesday} function options. + */ + +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Tuesday + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +function isTuesday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 2; +} diff --git a/node_modules/date-fns/isTuesday.d.cts b/node_modules/date-fns/isTuesday.d.cts new file mode 100644 index 000000000..97222843f --- /dev/null +++ b/node_modules/date-fns/isTuesday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isTuesday} function options. + */ +export interface IsTuesdayOptions extends ContextOptions {} +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Tuesday + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +export declare function isTuesday( + date: DateArg & {}, + options?: IsTuesdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isTuesday.d.ts b/node_modules/date-fns/isTuesday.d.ts new file mode 100644 index 000000000..97222843f --- /dev/null +++ b/node_modules/date-fns/isTuesday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isTuesday} function options. + */ +export interface IsTuesdayOptions extends ContextOptions {} +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Tuesday + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +export declare function isTuesday( + date: DateArg & {}, + options?: IsTuesdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isTuesday.js b/node_modules/date-fns/isTuesday.js new file mode 100644 index 000000000..bfa1cf909 --- /dev/null +++ b/node_modules/date-fns/isTuesday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isTuesday} function options. + */ + +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Tuesday + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +export function isTuesday(date, options) { + return toDate(date, options?.in).getDay() === 2; +} + +// Fallback for modularized imports: +export default isTuesday; diff --git a/node_modules/date-fns/isValid.cjs b/node_modules/date-fns/isValid.cjs new file mode 100644 index 000000000..93d8bd51d --- /dev/null +++ b/node_modules/date-fns/isValid.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.isValid = isValid; +var _index = require("./isDate.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param date - The date to check + * + * @returns The date is valid + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertible into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +function isValid(date) { + return !( + (!(0, _index.isDate)(date) && typeof date !== "number") || + isNaN(+(0, _index2.toDate)(date)) + ); +} diff --git a/node_modules/date-fns/isValid.d.cts b/node_modules/date-fns/isValid.d.cts new file mode 100644 index 000000000..b6637abac --- /dev/null +++ b/node_modules/date-fns/isValid.d.cts @@ -0,0 +1,32 @@ +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param date - The date to check + * + * @returns The date is valid + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertible into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +export declare function isValid(date: unknown): boolean; diff --git a/node_modules/date-fns/isValid.d.ts b/node_modules/date-fns/isValid.d.ts new file mode 100644 index 000000000..b6637abac --- /dev/null +++ b/node_modules/date-fns/isValid.d.ts @@ -0,0 +1,32 @@ +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param date - The date to check + * + * @returns The date is valid + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertible into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +export declare function isValid(date: unknown): boolean; diff --git a/node_modules/date-fns/isValid.js b/node_modules/date-fns/isValid.js new file mode 100644 index 000000000..56d985e97 --- /dev/null +++ b/node_modules/date-fns/isValid.js @@ -0,0 +1,40 @@ +import { isDate } from "./isDate.js"; +import { toDate } from "./toDate.js"; + +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate) + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param date - The date to check + * + * @returns The date is valid + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertible into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +export function isValid(date) { + return !((!isDate(date) && typeof date !== "number") || isNaN(+toDate(date))); +} + +// Fallback for modularized imports: +export default isValid; diff --git a/node_modules/date-fns/isWednesday.cjs b/node_modules/date-fns/isWednesday.cjs new file mode 100644 index 000000000..43ea8a0de --- /dev/null +++ b/node_modules/date-fns/isWednesday.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.isWednesday = isWednesday; +var _index = require("./toDate.cjs"); + +/** + * The {@link isWednesday} function options. + */ + +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Wednesday + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +function isWednesday(date, options) { + return (0, _index.toDate)(date, options?.in).getDay() === 3; +} diff --git a/node_modules/date-fns/isWednesday.d.cts b/node_modules/date-fns/isWednesday.d.cts new file mode 100644 index 000000000..27d1e21e2 --- /dev/null +++ b/node_modules/date-fns/isWednesday.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isWednesday} function options. + */ +export interface IsWednesdayOptions extends ContextOptions {} +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Wednesday + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +export declare function isWednesday( + date: DateArg & {}, + options?: IsWednesdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWednesday.d.ts b/node_modules/date-fns/isWednesday.d.ts new file mode 100644 index 000000000..27d1e21e2 --- /dev/null +++ b/node_modules/date-fns/isWednesday.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isWednesday} function options. + */ +export interface IsWednesdayOptions extends ContextOptions {} +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Wednesday + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +export declare function isWednesday( + date: DateArg & {}, + options?: IsWednesdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWednesday.js b/node_modules/date-fns/isWednesday.js new file mode 100644 index 000000000..940656b37 --- /dev/null +++ b/node_modules/date-fns/isWednesday.js @@ -0,0 +1,30 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isWednesday} function options. + */ + +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is Wednesday + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +export function isWednesday(date, options) { + return toDate(date, options?.in).getDay() === 3; +} + +// Fallback for modularized imports: +export default isWednesday; diff --git a/node_modules/date-fns/isWeekend.cjs b/node_modules/date-fns/isWeekend.cjs new file mode 100644 index 000000000..613ae128a --- /dev/null +++ b/node_modules/date-fns/isWeekend.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.isWeekend = isWeekend; +var _index = require("./toDate.cjs"); + +/** + * The {@link isWeekend} function options. + */ + +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date falls on a weekend + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +function isWeekend(date, options) { + const day = (0, _index.toDate)(date, options?.in).getDay(); + return day === 0 || day === 6; +} diff --git a/node_modules/date-fns/isWeekend.d.cts b/node_modules/date-fns/isWeekend.d.cts new file mode 100644 index 000000000..0a6ccd63d --- /dev/null +++ b/node_modules/date-fns/isWeekend.d.cts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isWeekend} function options. + */ +export interface IsWeekendOptions extends ContextOptions {} +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date falls on a weekend + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +export declare function isWeekend( + date: DateArg & {}, + options?: IsWeekendOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWeekend.d.ts b/node_modules/date-fns/isWeekend.d.ts new file mode 100644 index 000000000..0a6ccd63d --- /dev/null +++ b/node_modules/date-fns/isWeekend.d.ts @@ -0,0 +1,27 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isWeekend} function options. + */ +export interface IsWeekendOptions extends ContextOptions {} +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date falls on a weekend + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +export declare function isWeekend( + date: DateArg & {}, + options?: IsWeekendOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWeekend.js b/node_modules/date-fns/isWeekend.js new file mode 100644 index 000000000..5f8c68d79 --- /dev/null +++ b/node_modules/date-fns/isWeekend.js @@ -0,0 +1,31 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isWeekend} function options. + */ + +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? A weekend is either Saturday (`6`) or Sunday (`0`). + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date falls on a weekend + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +export function isWeekend(date, options) { + const day = toDate(date, options?.in).getDay(); + return day === 0 || day === 6; +} + +// Fallback for modularized imports: +export default isWeekend; diff --git a/node_modules/date-fns/isWithinInterval.cjs b/node_modules/date-fns/isWithinInterval.cjs new file mode 100644 index 000000000..a5a2c773a --- /dev/null +++ b/node_modules/date-fns/isWithinInterval.cjs @@ -0,0 +1,57 @@ +"use strict"; +exports.isWithinInterval = isWithinInterval; +var _index = require("./toDate.cjs"); + +/** + * The {@link isWithinInterval} function options. + */ + +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param date - The date to check + * @param interval - The interval to check + * @param options - An object with options + * + * @returns The date is within the interval + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => false + * + * @example + * // For date equal to the interval start: + * isWithinInterval(date, { start, end: date }) + * // => true + * + * @example + * // For date equal to the interval end: + * isWithinInterval(date, { start: date, end }) + * // => true + */ +function isWithinInterval(date, interval, options) { + const time = +(0, _index.toDate)(date, options?.in); + const [startTime, endTime] = [ + +(0, _index.toDate)(interval.start, options?.in), + +(0, _index.toDate)(interval.end, options?.in), + ].sort((a, b) => a - b); + + return time >= startTime && time <= endTime; +} diff --git a/node_modules/date-fns/isWithinInterval.d.cts b/node_modules/date-fns/isWithinInterval.d.cts new file mode 100644 index 000000000..bdcd455a7 --- /dev/null +++ b/node_modules/date-fns/isWithinInterval.d.cts @@ -0,0 +1,50 @@ +import type { ContextOptions, DateArg, Interval } from "./types.ts"; +/** + * The {@link isWithinInterval} function options. + */ +export interface IsWithinIntervalOptions extends ContextOptions {} +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param date - The date to check + * @param interval - The interval to check + * @param options - An object with options + * + * @returns The date is within the interval + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => false + * + * @example + * // For date equal to the interval start: + * isWithinInterval(date, { start, end: date }) + * // => true + * + * @example + * // For date equal to the interval end: + * isWithinInterval(date, { start: date, end }) + * // => true + */ +export declare function isWithinInterval( + date: DateArg & {}, + interval: Interval, + options?: IsWithinIntervalOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWithinInterval.d.ts b/node_modules/date-fns/isWithinInterval.d.ts new file mode 100644 index 000000000..bdcd455a7 --- /dev/null +++ b/node_modules/date-fns/isWithinInterval.d.ts @@ -0,0 +1,50 @@ +import type { ContextOptions, DateArg, Interval } from "./types.ts"; +/** + * The {@link isWithinInterval} function options. + */ +export interface IsWithinIntervalOptions extends ContextOptions {} +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param date - The date to check + * @param interval - The interval to check + * @param options - An object with options + * + * @returns The date is within the interval + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => false + * + * @example + * // For date equal to the interval start: + * isWithinInterval(date, { start, end: date }) + * // => true + * + * @example + * // For date equal to the interval end: + * isWithinInterval(date, { start: date, end }) + * // => true + */ +export declare function isWithinInterval( + date: DateArg & {}, + interval: Interval, + options?: IsWithinIntervalOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isWithinInterval.js b/node_modules/date-fns/isWithinInterval.js new file mode 100644 index 000000000..242e97d7f --- /dev/null +++ b/node_modules/date-fns/isWithinInterval.js @@ -0,0 +1,58 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link isWithinInterval} function options. + */ + +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param date - The date to check + * @param interval - The interval to check + * @param options - An object with options + * + * @returns The date is within the interval + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * // => false + * + * @example + * // For date equal to the interval start: + * isWithinInterval(date, { start, end: date }) + * // => true + * + * @example + * // For date equal to the interval end: + * isWithinInterval(date, { start: date, end }) + * // => true + */ +export function isWithinInterval(date, interval, options) { + const time = +toDate(date, options?.in); + const [startTime, endTime] = [ + +toDate(interval.start, options?.in), + +toDate(interval.end, options?.in), + ].sort((a, b) => a - b); + + return time >= startTime && time <= endTime; +} + +// Fallback for modularized imports: +export default isWithinInterval; diff --git a/node_modules/date-fns/isYesterday.cjs b/node_modules/date-fns/isYesterday.cjs new file mode 100644 index 000000000..a12191f71 --- /dev/null +++ b/node_modules/date-fns/isYesterday.cjs @@ -0,0 +1,36 @@ +"use strict"; +exports.isYesterday = isYesterday; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./constructNow.cjs"); +var _index3 = require("./isSameDay.cjs"); +var _index4 = require("./subDays.cjs"); + +/** + * The {@link isYesterday} function options. + */ + +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is yesterday + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +function isYesterday(date, options) { + return (0, _index3.isSameDay)( + (0, _index.constructFrom)(options?.in || date, date), + (0, _index4.subDays)((0, _index2.constructNow)(options?.in || date), 1), + ); +} diff --git a/node_modules/date-fns/isYesterday.d.cts b/node_modules/date-fns/isYesterday.d.cts new file mode 100644 index 000000000..772cf5d45 --- /dev/null +++ b/node_modules/date-fns/isYesterday.d.cts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isYesterday} function options. + */ +export interface IsYesterdayOptions extends ContextOptions {} +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is yesterday + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +export declare function isYesterday( + date: DateArg & {}, + options?: IsYesterdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isYesterday.d.ts b/node_modules/date-fns/isYesterday.d.ts new file mode 100644 index 000000000..772cf5d45 --- /dev/null +++ b/node_modules/date-fns/isYesterday.d.ts @@ -0,0 +1,28 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link isYesterday} function options. + */ +export interface IsYesterdayOptions extends ContextOptions {} +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is yesterday + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +export declare function isYesterday( + date: DateArg & {}, + options?: IsYesterdayOptions | undefined, +): boolean; diff --git a/node_modules/date-fns/isYesterday.js b/node_modules/date-fns/isYesterday.js new file mode 100644 index 000000000..2de5feb53 --- /dev/null +++ b/node_modules/date-fns/isYesterday.js @@ -0,0 +1,37 @@ +import { constructFrom } from "./constructFrom.js"; +import { constructNow } from "./constructNow.js"; +import { isSameDay } from "./isSameDay.js"; +import { subDays } from "./subDays.js"; + +/** + * The {@link isYesterday} function options. + */ + +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * @param date - The date to check + * @param options - An object with options + * + * @returns The date is yesterday + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +export function isYesterday(date, options) { + return isSameDay( + constructFrom(options?.in || date, date), + subDays(constructNow(options?.in || date), 1), + ); +} + +// Fallback for modularized imports: +export default isYesterday; diff --git a/node_modules/date-fns/lastDayOfDecade.cjs b/node_modules/date-fns/lastDayOfDecade.cjs new file mode 100644 index 000000000..3bebbbc52 --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.lastDayOfDecade = lastDayOfDecade; +var _index = require("./toDate.cjs"); + +/** + * The {@link lastDayOfDecade} function options. + */ + +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a decade + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +function lastDayOfDecade(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const year = _date.getFullYear(); + const decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade + 1, 0, 0); + _date.setHours(0, 0, 0, 0); + return (0, _index.toDate)(_date, options?.in); +} diff --git a/node_modules/date-fns/lastDayOfDecade.d.cts b/node_modules/date-fns/lastDayOfDecade.d.cts new file mode 100644 index 000000000..a4ab6a52a --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade.d.cts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfDecade} function options. + */ +export interface LastDayOfDecadeOptions + extends ContextOptions {} +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a decade + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +export declare function lastDayOfDecade< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfDecadeOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfDecade.d.ts b/node_modules/date-fns/lastDayOfDecade.d.ts new file mode 100644 index 000000000..a4ab6a52a --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade.d.ts @@ -0,0 +1,34 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfDecade} function options. + */ +export interface LastDayOfDecadeOptions + extends ContextOptions {} +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a decade + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +export declare function lastDayOfDecade< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfDecadeOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfDecade.js b/node_modules/date-fns/lastDayOfDecade.js new file mode 100644 index 000000000..020880b2a --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade.js @@ -0,0 +1,38 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link lastDayOfDecade} function options. + */ + +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type; inferred from arguments or specified by context. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a decade + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +export function lastDayOfDecade(date, options) { + const _date = toDate(date, options?.in); + const year = _date.getFullYear(); + const decade = 9 + Math.floor(year / 10) * 10; + _date.setFullYear(decade + 1, 0, 0); + _date.setHours(0, 0, 0, 0); + return toDate(_date, options?.in); +} + +// Fallback for modularized imports: +export default lastDayOfDecade; diff --git a/node_modules/date-fns/lastDayOfISOWeek.cjs b/node_modules/date-fns/lastDayOfISOWeek.cjs new file mode 100644 index 000000000..14c349bed --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.lastDayOfISOWeek = lastDayOfISOWeek; +var _index = require("./lastDayOfWeek.cjs"); + +/** + * The {@link lastDayOfISOWeek} function options. + */ + +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of an ISO week + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +function lastDayOfISOWeek(date, options) { + return (0, _index.lastDayOfWeek)(date, { ...options, weekStartsOn: 1 }); +} diff --git a/node_modules/date-fns/lastDayOfISOWeek.d.cts b/node_modules/date-fns/lastDayOfISOWeek.d.cts new file mode 100644 index 000000000..362e4e69f --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek.d.cts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfISOWeek} function options. + */ +export interface LastDayOfISOWeekOptions + extends ContextOptions {} +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of an ISO week + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +export declare function lastDayOfISOWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfISOWeekOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfISOWeek.d.ts b/node_modules/date-fns/lastDayOfISOWeek.d.ts new file mode 100644 index 000000000..362e4e69f --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek.d.ts @@ -0,0 +1,37 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfISOWeek} function options. + */ +export interface LastDayOfISOWeekOptions + extends ContextOptions {} +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of an ISO week + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +export declare function lastDayOfISOWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfISOWeekOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfISOWeek.js b/node_modules/date-fns/lastDayOfISOWeek.js new file mode 100644 index 000000000..2c75185f7 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek.js @@ -0,0 +1,36 @@ +import { lastDayOfWeek } from "./lastDayOfWeek.js"; + +/** + * The {@link lastDayOfISOWeek} function options. + */ + +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The Date type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [UTCDate](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of an ISO week + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +export function lastDayOfISOWeek(date, options) { + return lastDayOfWeek(date, { ...options, weekStartsOn: 1 }); +} + +// Fallback for modularized imports: +export default lastDayOfISOWeek; diff --git a/node_modules/date-fns/lastDayOfISOWeekYear.cjs b/node_modules/date-fns/lastDayOfISOWeekYear.cjs new file mode 100644 index 000000000..bc1ee3d5a --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.lastDayOfISOWeekYear = lastDayOfISOWeekYear; +var _index = require("./constructFrom.cjs"); +var _index2 = require("./getISOWeekYear.cjs"); +var _index3 = require("./startOfISOWeek.cjs"); + +/** + * The {@link lastDayOfISOWeekYear} function options. + */ + +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +function lastDayOfISOWeekYear(date, options) { + const year = (0, _index2.getISOWeekYear)(date, options); + const fourthOfJanuary = (0, _index.constructFrom)(options?.in || date, 0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + + const date_ = (0, _index3.startOfISOWeek)(fourthOfJanuary, options); + date_.setDate(date_.getDate() - 1); + return date_; +} diff --git a/node_modules/date-fns/lastDayOfISOWeekYear.d.cts b/node_modules/date-fns/lastDayOfISOWeekYear.d.cts new file mode 100644 index 000000000..54d4d6ada --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear.d.cts @@ -0,0 +1,38 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfISOWeekYear} function options. + */ +export interface LastDayOfISOWeekYearOptions + extends ContextOptions {} +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +export declare function lastDayOfISOWeekYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfISOWeekYearOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfISOWeekYear.d.ts b/node_modules/date-fns/lastDayOfISOWeekYear.d.ts new file mode 100644 index 000000000..54d4d6ada --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear.d.ts @@ -0,0 +1,38 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfISOWeekYear} function options. + */ +export interface LastDayOfISOWeekYearOptions + extends ContextOptions {} +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +export declare function lastDayOfISOWeekYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfISOWeekYearOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfISOWeekYear.js b/node_modules/date-fns/lastDayOfISOWeekYear.js new file mode 100644 index 000000000..6359a41db --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear.js @@ -0,0 +1,46 @@ +import { constructFrom } from "./constructFrom.js"; +import { getISOWeekYear } from "./getISOWeekYear.js"; +import { startOfISOWeek } from "./startOfISOWeek.js"; + +/** + * The {@link lastDayOfISOWeekYear} function options. + */ + +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The end of an ISO week-numbering year + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +export function lastDayOfISOWeekYear(date, options) { + const year = getISOWeekYear(date, options); + const fourthOfJanuary = constructFrom(options?.in || date, 0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + + const date_ = startOfISOWeek(fourthOfJanuary, options); + date_.setDate(date_.getDate() - 1); + return date_; +} + +// Fallback for modularized imports: +export default lastDayOfISOWeekYear; diff --git a/node_modules/date-fns/lastDayOfMonth.cjs b/node_modules/date-fns/lastDayOfMonth.cjs new file mode 100644 index 000000000..93b0d26b2 --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.lastDayOfMonth = lastDayOfMonth; +var _index = require("./toDate.cjs"); + +/** + * The {@link lastDayOfMonth} function options. + */ + +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a month + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +function lastDayOfMonth(date, options) { + const _date = (0, _index.toDate)(date, options?.in); + const month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(0, 0, 0, 0); + return (0, _index.toDate)(_date, options?.in); +} diff --git a/node_modules/date-fns/lastDayOfMonth.d.cts b/node_modules/date-fns/lastDayOfMonth.d.cts new file mode 100644 index 000000000..57ba28338 --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfMonth} function options. + */ +export interface LastDayOfMonthOptions + extends ContextOptions {} +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a month + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfMonthOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfMonth.d.ts b/node_modules/date-fns/lastDayOfMonth.d.ts new file mode 100644 index 000000000..57ba28338 --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfMonth} function options. + */ +export interface LastDayOfMonthOptions + extends ContextOptions {} +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a month + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfMonth< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfMonthOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfMonth.js b/node_modules/date-fns/lastDayOfMonth.js new file mode 100644 index 000000000..193f3aca7 --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth.js @@ -0,0 +1,38 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link lastDayOfMonth} function options. + */ + +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a month + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export function lastDayOfMonth(date, options) { + const _date = toDate(date, options?.in); + const month = _date.getMonth(); + _date.setFullYear(_date.getFullYear(), month + 1, 0); + _date.setHours(0, 0, 0, 0); + return toDate(_date, options?.in); +} + +// Fallback for modularized imports: +export default lastDayOfMonth; diff --git a/node_modules/date-fns/lastDayOfQuarter.cjs b/node_modules/date-fns/lastDayOfQuarter.cjs new file mode 100644 index 000000000..d347503fb --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.lastDayOfQuarter = lastDayOfQuarter; +var _index = require("./toDate.cjs"); + +/** + * The {@link lastDayOfQuarter} function options. + */ + +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a quarter + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +function lastDayOfQuarter(date, options) { + const date_ = (0, _index.toDate)(date, options?.in); + const currentMonth = date_.getMonth(); + const month = currentMonth - (currentMonth % 3) + 3; + date_.setMonth(month, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} diff --git a/node_modules/date-fns/lastDayOfQuarter.d.cts b/node_modules/date-fns/lastDayOfQuarter.d.cts new file mode 100644 index 000000000..b07ec4a2d --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfQuarter} function options. + */ +export interface LastDayOfQuarterOptions + extends ContextOptions {} +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a quarter + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfQuarter< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfQuarterOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfQuarter.d.ts b/node_modules/date-fns/lastDayOfQuarter.d.ts new file mode 100644 index 000000000..b07ec4a2d --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfQuarter} function options. + */ +export interface LastDayOfQuarterOptions + extends ContextOptions {} +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a quarter + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export declare function lastDayOfQuarter< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfQuarterOptions | undefined, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfQuarter.js b/node_modules/date-fns/lastDayOfQuarter.js new file mode 100644 index 000000000..d2d6fe827 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter.js @@ -0,0 +1,39 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link lastDayOfQuarter} function options. + */ + +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - The options + * + * @returns The last day of a quarter + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +export function lastDayOfQuarter(date, options) { + const date_ = toDate(date, options?.in); + const currentMonth = date_.getMonth(); + const month = currentMonth - (currentMonth % 3) + 3; + date_.setMonth(month, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} + +// Fallback for modularized imports: +export default lastDayOfQuarter; diff --git a/node_modules/date-fns/lastDayOfWeek.cjs b/node_modules/date-fns/lastDayOfWeek.cjs new file mode 100644 index 000000000..9892a5aa5 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.lastDayOfWeek = lastDayOfWeek; +var _index = require("./_lib/defaultOptions.cjs"); +var _index2 = require("./toDate.cjs"); + +/** + * The {@link lastDayOfWeek} function options. + */ + +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone unless a context is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a week + */ +function lastDayOfWeek(date, options) { + const defaultOptions = (0, _index.getDefaultOptions)(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const _date = (0, _index2.toDate)(date, options?.in); + const day = _date.getDay(); + const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + + _date.setHours(0, 0, 0, 0); + _date.setDate(_date.getDate() + diff); + + return _date; +} diff --git a/node_modules/date-fns/lastDayOfWeek.d.cts b/node_modules/date-fns/lastDayOfWeek.d.cts new file mode 100644 index 000000000..910abbbe7 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek.d.cts @@ -0,0 +1,37 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link lastDayOfWeek} function options. + */ +export interface LastDayOfWeekOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone unless a context is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a week + */ +export declare function lastDayOfWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfWeekOptions, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfWeek.d.ts b/node_modules/date-fns/lastDayOfWeek.d.ts new file mode 100644 index 000000000..910abbbe7 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek.d.ts @@ -0,0 +1,37 @@ +import type { + ContextOptions, + DateArg, + LocalizedOptions, + WeekOptions, +} from "./types.ts"; +/** + * The {@link lastDayOfWeek} function options. + */ +export interface LastDayOfWeekOptions + extends LocalizedOptions<"options">, + WeekOptions, + ContextOptions {} +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone unless a context is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a week + */ +export declare function lastDayOfWeek< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfWeekOptions, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfWeek.js b/node_modules/date-fns/lastDayOfWeek.js new file mode 100644 index 000000000..f6659ab91 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek.js @@ -0,0 +1,45 @@ +import { getDefaultOptions } from "./_lib/defaultOptions.js"; +import { toDate } from "./toDate.js"; + +/** + * The {@link lastDayOfWeek} function options. + */ + +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone unless a context is specified. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a week + */ +export function lastDayOfWeek(date, options) { + const defaultOptions = getDefaultOptions(); + const weekStartsOn = + options?.weekStartsOn ?? + options?.locale?.options?.weekStartsOn ?? + defaultOptions.weekStartsOn ?? + defaultOptions.locale?.options?.weekStartsOn ?? + 0; + + const _date = toDate(date, options?.in); + const day = _date.getDay(); + const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + + _date.setHours(0, 0, 0, 0); + _date.setDate(_date.getDate() + diff); + + return _date; +} + +// Fallback for modularized imports: +export default lastDayOfWeek; diff --git a/node_modules/date-fns/lastDayOfYear.cjs b/node_modules/date-fns/lastDayOfYear.cjs new file mode 100644 index 000000000..836a134a8 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear.cjs @@ -0,0 +1,37 @@ +"use strict"; +exports.lastDayOfYear = lastDayOfYear; +var _index = require("./toDate.cjs"); + +/** + * The {@link lastDayOfYear} function options. + */ + +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a year + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +function lastDayOfYear(date, options) { + const date_ = (0, _index.toDate)(date, options?.in); + const year = date_.getFullYear(); + date_.setFullYear(year + 1, 0, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} diff --git a/node_modules/date-fns/lastDayOfYear.d.cts b/node_modules/date-fns/lastDayOfYear.d.cts new file mode 100644 index 000000000..95ef2caf5 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear.d.cts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfYear} function options. + */ +export interface LastDayOfYearOptions + extends ContextOptions {} +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a year + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +export declare function lastDayOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfYearOptions, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfYear.d.ts b/node_modules/date-fns/lastDayOfYear.d.ts new file mode 100644 index 000000000..95ef2caf5 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear.d.ts @@ -0,0 +1,35 @@ +import type { ContextOptions, DateArg } from "./types.ts"; +/** + * The {@link lastDayOfYear} function options. + */ +export interface LastDayOfYearOptions + extends ContextOptions {} +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a year + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +export declare function lastDayOfYear< + DateType extends Date, + ResultDate extends Date = DateType, +>( + date: DateArg, + options?: LastDayOfYearOptions, +): ResultDate; diff --git a/node_modules/date-fns/lastDayOfYear.js b/node_modules/date-fns/lastDayOfYear.js new file mode 100644 index 000000000..3ae29a1d8 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear.js @@ -0,0 +1,38 @@ +import { toDate } from "./toDate.js"; + +/** + * The {@link lastDayOfYear} function options. + */ + +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). + * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. + * + * @param date - The original date + * @param options - An object with options + * + * @returns The last day of a year + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +export function lastDayOfYear(date, options) { + const date_ = toDate(date, options?.in); + const year = date_.getFullYear(); + date_.setFullYear(year + 1, 0, 0); + date_.setHours(0, 0, 0, 0); + return date_; +} + +// Fallback for modularized imports: +export default lastDayOfYear; diff --git a/node_modules/date-fns/lightFormat.cjs b/node_modules/date-fns/lightFormat.cjs new file mode 100644 index 000000000..1c02ca035 --- /dev/null +++ b/node_modules/date-fns/lightFormat.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.lightFormat = lightFormat; +Object.defineProperty(exports, "lightFormatters", { + enumerable: true, + get: function () { + return _index.lightFormatters; + }, +}); +var _index = require("./_lib/format/lightFormatters.cjs"); +var _index2 = require("./isValid.cjs"); +var _index3 = require("./toDate.cjs"); + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 + +// This RegExp consists of three parts separated by `|`: +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +const formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; + +const escapedStringRegExp = /^'([^]*?)'?$/; +const doubleQuoteRegExp = /''/g; +const unescapedLatinCharacterRegExp = /[a-zA-Z]/; + +/** + * @private + */ + +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param date - The original date + * @param format - The string of tokens + * + * @returns The formatted date string + * + * @throws `Invalid time value` if the date is invalid + * @throws format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ +function lightFormat(date, formatStr) { + const date_ = (0, _index3.toDate)(date); + + if (!(0, _index2.isValid)(date_)) { + throw new RangeError("Invalid time value"); + } + + const tokens = formatStr.match(formattingTokensRegExp); + + // The only case when formattingTokensRegExp doesn't match the string is when it's empty + if (!tokens) return ""; + + const result = tokens + .map((substring) => { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + const firstCharacter = substring[0]; + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + const formatter = _index.lightFormatters[firstCharacter]; + if (formatter) { + return formatter(date_, substring); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError( + "Format string contains an unescaped latin alphabet character `" + + firstCharacter + + "`", + ); + } + + return substring; + }) + .join(""); + + return result; +} + +function cleanEscapedString(input) { + const matches = input.match(escapedStringRegExp); + if (!matches) return input; + return matches[1].replace(doubleQuoteRegExp, "'"); +} diff --git a/node_modules/date-fns/lightFormat.d.cts b/node_modules/date-fns/lightFormat.d.cts new file mode 100644 index 000000000..975328b87 --- /dev/null +++ b/node_modules/date-fns/lightFormat.d.cts @@ -0,0 +1,64 @@ +import { lightFormatters } from "./_lib/format/lightFormatters.ts"; +import type { DateArg } from "./types.ts"; +export { lightFormatters }; +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param date - The original date + * @param format - The string of tokens + * + * @returns The formatted date string + * + * @throws `Invalid time value` if the date is invalid + * @throws format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ +export declare function lightFormat( + date: DateArg & {}, + formatStr: string, +): string; diff --git a/node_modules/date-fns/lightFormat.d.ts b/node_modules/date-fns/lightFormat.d.ts new file mode 100644 index 000000000..975328b87 --- /dev/null +++ b/node_modules/date-fns/lightFormat.d.ts @@ -0,0 +1,64 @@ +import { lightFormatters } from "./_lib/format/lightFormatters.ts"; +import type { DateArg } from "./types.ts"; +export { lightFormatters }; +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param date - The original date + * @param format - The string of tokens + * + * @returns The formatted date string + * + * @throws `Invalid time value` if the date is invalid + * @throws format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ +export declare function lightFormat( + date: DateArg & {}, + formatStr: string, +): string; diff --git a/node_modules/date-fns/lightFormat.js b/node_modules/date-fns/lightFormat.js new file mode 100644 index 000000000..a200d4c62 --- /dev/null +++ b/node_modules/date-fns/lightFormat.js @@ -0,0 +1,136 @@ +import { lightFormatters } from "./_lib/format/lightFormatters.js"; +import { isValid } from "./isValid.js"; +import { toDate } from "./toDate.js"; + +// Rexports of internal for libraries to use. +// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874 +export { lightFormatters }; + +// This RegExp consists of three parts separated by `|`: +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +const formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; + +const escapedStringRegExp = /^'([^]*?)'?$/; +const doubleQuoteRegExp = /''/g; +const unescapedLatinCharacterRegExp = /[a-zA-Z]/; + +/** + * @private + */ + +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param date - The original date + * @param format - The string of tokens + * + * @returns The formatted date string + * + * @throws `Invalid time value` if the date is invalid + * @throws format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ +export function lightFormat(date, formatStr) { + const date_ = toDate(date); + + if (!isValid(date_)) { + throw new RangeError("Invalid time value"); + } + + const tokens = formatStr.match(formattingTokensRegExp); + + // The only case when formattingTokensRegExp doesn't match the string is when it's empty + if (!tokens) return ""; + + const result = tokens + .map((substring) => { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + const firstCharacter = substring[0]; + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + const formatter = lightFormatters[firstCharacter]; + if (formatter) { + return formatter(date_, substring); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError( + "Format string contains an unescaped latin alphabet character `" + + firstCharacter + + "`", + ); + } + + return substring; + }) + .join(""); + + return result; +} + +function cleanEscapedString(input) { + const matches = input.match(escapedStringRegExp); + if (!matches) return input; + return matches[1].replace(doubleQuoteRegExp, "'"); +} + +// Fallback for modularized imports: +export default lightFormat; diff --git a/node_modules/date-fns/locale.cjs b/node_modules/date-fns/locale.cjs new file mode 100644 index 000000000..498eab596 --- /dev/null +++ b/node_modules/date-fns/locale.cjs @@ -0,0 +1,1047 @@ +"use strict"; + +var _index = require("./locale/af.cjs"); +Object.keys(_index).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index[key]; + }, + }); +}); +var _index2 = require("./locale/ar.cjs"); +Object.keys(_index2).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index2[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index2[key]; + }, + }); +}); +var _index3 = require("./locale/ar-DZ.cjs"); +Object.keys(_index3).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index3[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index3[key]; + }, + }); +}); +var _index4 = require("./locale/ar-EG.cjs"); +Object.keys(_index4).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index4[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index4[key]; + }, + }); +}); +var _index5 = require("./locale/ar-MA.cjs"); +Object.keys(_index5).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index5[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index5[key]; + }, + }); +}); +var _index6 = require("./locale/ar-SA.cjs"); +Object.keys(_index6).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index6[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index6[key]; + }, + }); +}); +var _index7 = require("./locale/ar-TN.cjs"); +Object.keys(_index7).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index7[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index7[key]; + }, + }); +}); +var _index8 = require("./locale/az.cjs"); +Object.keys(_index8).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index8[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index8[key]; + }, + }); +}); +var _index9 = require("./locale/be.cjs"); +Object.keys(_index9).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index9[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index9[key]; + }, + }); +}); +var _index0 = require("./locale/be-tarask.cjs"); +Object.keys(_index0).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index0[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index0[key]; + }, + }); +}); +var _index1 = require("./locale/bg.cjs"); +Object.keys(_index1).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index1[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index1[key]; + }, + }); +}); +var _index10 = require("./locale/bn.cjs"); +Object.keys(_index10).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index10[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index10[key]; + }, + }); +}); +var _index11 = require("./locale/bs.cjs"); +Object.keys(_index11).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index11[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index11[key]; + }, + }); +}); +var _index12 = require("./locale/ca.cjs"); +Object.keys(_index12).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index12[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index12[key]; + }, + }); +}); +var _index13 = require("./locale/ckb.cjs"); +Object.keys(_index13).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index13[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index13[key]; + }, + }); +}); +var _index14 = require("./locale/cs.cjs"); +Object.keys(_index14).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index14[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index14[key]; + }, + }); +}); +var _index15 = require("./locale/cy.cjs"); +Object.keys(_index15).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index15[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index15[key]; + }, + }); +}); +var _index16 = require("./locale/da.cjs"); +Object.keys(_index16).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index16[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index16[key]; + }, + }); +}); +var _index17 = require("./locale/de.cjs"); +Object.keys(_index17).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index17[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index17[key]; + }, + }); +}); +var _index18 = require("./locale/de-AT.cjs"); +Object.keys(_index18).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index18[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index18[key]; + }, + }); +}); +var _index19 = require("./locale/el.cjs"); +Object.keys(_index19).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index19[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index19[key]; + }, + }); +}); +var _index20 = require("./locale/en-AU.cjs"); +Object.keys(_index20).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index20[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index20[key]; + }, + }); +}); +var _index21 = require("./locale/en-CA.cjs"); +Object.keys(_index21).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index21[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index21[key]; + }, + }); +}); +var _index22 = require("./locale/en-GB.cjs"); +Object.keys(_index22).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index22[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index22[key]; + }, + }); +}); +var _index23 = require("./locale/en-IE.cjs"); +Object.keys(_index23).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index23[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index23[key]; + }, + }); +}); +var _index24 = require("./locale/en-IN.cjs"); +Object.keys(_index24).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index24[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index24[key]; + }, + }); +}); +var _index25 = require("./locale/en-NZ.cjs"); +Object.keys(_index25).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index25[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index25[key]; + }, + }); +}); +var _index26 = require("./locale/en-US.cjs"); +Object.keys(_index26).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index26[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index26[key]; + }, + }); +}); +var _index27 = require("./locale/en-ZA.cjs"); +Object.keys(_index27).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index27[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index27[key]; + }, + }); +}); +var _index28 = require("./locale/eo.cjs"); +Object.keys(_index28).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index28[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index28[key]; + }, + }); +}); +var _index29 = require("./locale/es.cjs"); +Object.keys(_index29).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index29[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index29[key]; + }, + }); +}); +var _index30 = require("./locale/et.cjs"); +Object.keys(_index30).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index30[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index30[key]; + }, + }); +}); +var _index31 = require("./locale/eu.cjs"); +Object.keys(_index31).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index31[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index31[key]; + }, + }); +}); +var _index32 = require("./locale/fa-IR.cjs"); +Object.keys(_index32).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index32[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index32[key]; + }, + }); +}); +var _index33 = require("./locale/fi.cjs"); +Object.keys(_index33).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index33[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index33[key]; + }, + }); +}); +var _index34 = require("./locale/fr.cjs"); +Object.keys(_index34).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index34[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index34[key]; + }, + }); +}); +var _index35 = require("./locale/fr-CA.cjs"); +Object.keys(_index35).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index35[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index35[key]; + }, + }); +}); +var _index36 = require("./locale/fr-CH.cjs"); +Object.keys(_index36).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index36[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index36[key]; + }, + }); +}); +var _index37 = require("./locale/fy.cjs"); +Object.keys(_index37).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index37[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index37[key]; + }, + }); +}); +var _index38 = require("./locale/gd.cjs"); +Object.keys(_index38).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index38[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index38[key]; + }, + }); +}); +var _index39 = require("./locale/gl.cjs"); +Object.keys(_index39).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index39[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index39[key]; + }, + }); +}); +var _index40 = require("./locale/gu.cjs"); +Object.keys(_index40).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index40[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index40[key]; + }, + }); +}); +var _index41 = require("./locale/he.cjs"); +Object.keys(_index41).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index41[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index41[key]; + }, + }); +}); +var _index42 = require("./locale/hi.cjs"); +Object.keys(_index42).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index42[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index42[key]; + }, + }); +}); +var _index43 = require("./locale/hr.cjs"); +Object.keys(_index43).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index43[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index43[key]; + }, + }); +}); +var _index44 = require("./locale/ht.cjs"); +Object.keys(_index44).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index44[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index44[key]; + }, + }); +}); +var _index45 = require("./locale/hu.cjs"); +Object.keys(_index45).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index45[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index45[key]; + }, + }); +}); +var _index46 = require("./locale/hy.cjs"); +Object.keys(_index46).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index46[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index46[key]; + }, + }); +}); +var _index47 = require("./locale/id.cjs"); +Object.keys(_index47).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index47[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index47[key]; + }, + }); +}); +var _index48 = require("./locale/is.cjs"); +Object.keys(_index48).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index48[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index48[key]; + }, + }); +}); +var _index49 = require("./locale/it.cjs"); +Object.keys(_index49).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index49[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index49[key]; + }, + }); +}); +var _index50 = require("./locale/it-CH.cjs"); +Object.keys(_index50).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index50[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index50[key]; + }, + }); +}); +var _index51 = require("./locale/ja.cjs"); +Object.keys(_index51).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index51[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index51[key]; + }, + }); +}); +var _index52 = require("./locale/ja-Hira.cjs"); +Object.keys(_index52).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index52[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index52[key]; + }, + }); +}); +var _index53 = require("./locale/ka.cjs"); +Object.keys(_index53).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index53[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index53[key]; + }, + }); +}); +var _index54 = require("./locale/kk.cjs"); +Object.keys(_index54).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index54[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index54[key]; + }, + }); +}); +var _index55 = require("./locale/km.cjs"); +Object.keys(_index55).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index55[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index55[key]; + }, + }); +}); +var _index56 = require("./locale/kn.cjs"); +Object.keys(_index56).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index56[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index56[key]; + }, + }); +}); +var _index57 = require("./locale/ko.cjs"); +Object.keys(_index57).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index57[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index57[key]; + }, + }); +}); +var _index58 = require("./locale/lb.cjs"); +Object.keys(_index58).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index58[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index58[key]; + }, + }); +}); +var _index59 = require("./locale/lt.cjs"); +Object.keys(_index59).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index59[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index59[key]; + }, + }); +}); +var _index60 = require("./locale/lv.cjs"); +Object.keys(_index60).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index60[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index60[key]; + }, + }); +}); +var _index61 = require("./locale/mk.cjs"); +Object.keys(_index61).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index61[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index61[key]; + }, + }); +}); +var _index62 = require("./locale/mn.cjs"); +Object.keys(_index62).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index62[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index62[key]; + }, + }); +}); +var _index63 = require("./locale/ms.cjs"); +Object.keys(_index63).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index63[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index63[key]; + }, + }); +}); +var _index64 = require("./locale/mt.cjs"); +Object.keys(_index64).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index64[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index64[key]; + }, + }); +}); +var _index65 = require("./locale/nb.cjs"); +Object.keys(_index65).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index65[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index65[key]; + }, + }); +}); +var _index66 = require("./locale/nl.cjs"); +Object.keys(_index66).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index66[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index66[key]; + }, + }); +}); +var _index67 = require("./locale/nl-BE.cjs"); +Object.keys(_index67).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index67[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index67[key]; + }, + }); +}); +var _index68 = require("./locale/nn.cjs"); +Object.keys(_index68).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index68[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index68[key]; + }, + }); +}); +var _index69 = require("./locale/oc.cjs"); +Object.keys(_index69).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index69[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index69[key]; + }, + }); +}); +var _index70 = require("./locale/pl.cjs"); +Object.keys(_index70).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index70[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index70[key]; + }, + }); +}); +var _index71 = require("./locale/pt.cjs"); +Object.keys(_index71).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index71[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index71[key]; + }, + }); +}); +var _index72 = require("./locale/pt-BR.cjs"); +Object.keys(_index72).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index72[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index72[key]; + }, + }); +}); +var _index73 = require("./locale/ro.cjs"); +Object.keys(_index73).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index73[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index73[key]; + }, + }); +}); +var _index74 = require("./locale/ru.cjs"); +Object.keys(_index74).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index74[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index74[key]; + }, + }); +}); +var _index75 = require("./locale/se.cjs"); +Object.keys(_index75).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index75[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index75[key]; + }, + }); +}); +var _index76 = require("./locale/sk.cjs"); +Object.keys(_index76).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index76[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index76[key]; + }, + }); +}); +var _index77 = require("./locale/sl.cjs"); +Object.keys(_index77).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index77[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index77[key]; + }, + }); +}); +var _index78 = require("./locale/sq.cjs"); +Object.keys(_index78).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index78[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index78[key]; + }, + }); +}); +var _index79 = require("./locale/sr.cjs"); +Object.keys(_index79).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index79[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index79[key]; + }, + }); +}); +var _index80 = require("./locale/sr-Latn.cjs"); +Object.keys(_index80).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index80[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index80[key]; + }, + }); +}); +var _index81 = require("./locale/sv.cjs"); +Object.keys(_index81).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index81[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index81[key]; + }, + }); +}); +var _index82 = require("./locale/ta.cjs"); +Object.keys(_index82).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index82[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index82[key]; + }, + }); +}); +var _index83 = require("./locale/te.cjs"); +Object.keys(_index83).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index83[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index83[key]; + }, + }); +}); +var _index84 = require("./locale/th.cjs"); +Object.keys(_index84).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index84[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index84[key]; + }, + }); +}); +var _index85 = require("./locale/tr.cjs"); +Object.keys(_index85).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index85[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index85[key]; + }, + }); +}); +var _index86 = require("./locale/ug.cjs"); +Object.keys(_index86).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index86[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index86[key]; + }, + }); +}); +var _index87 = require("./locale/uk.cjs"); +Object.keys(_index87).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index87[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index87[key]; + }, + }); +}); +var _index88 = require("./locale/uz.cjs"); +Object.keys(_index88).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index88[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index88[key]; + }, + }); +}); +var _index89 = require("./locale/uz-Cyrl.cjs"); +Object.keys(_index89).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index89[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index89[key]; + }, + }); +}); +var _index90 = require("./locale/vi.cjs"); +Object.keys(_index90).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index90[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index90[key]; + }, + }); +}); +var _index91 = require("./locale/zh-CN.cjs"); +Object.keys(_index91).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index91[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index91[key]; + }, + }); +}); +var _index92 = require("./locale/zh-HK.cjs"); +Object.keys(_index92).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index92[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index92[key]; + }, + }); +}); +var _index93 = require("./locale/zh-TW.cjs"); +Object.keys(_index93).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (key in exports && exports[key] === _index93[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _index93[key]; + }, + }); +}); diff --git a/node_modules/date-fns/locale.d.cts b/node_modules/date-fns/locale.d.cts new file mode 100644 index 000000000..d6471f0d1 --- /dev/null +++ b/node_modules/date-fns/locale.d.cts @@ -0,0 +1,96 @@ +export * from "./locale/af.ts"; +export * from "./locale/ar.ts"; +export * from "./locale/ar-DZ.ts"; +export * from "./locale/ar-EG.ts"; +export * from "./locale/ar-MA.ts"; +export * from "./locale/ar-SA.ts"; +export * from "./locale/ar-TN.ts"; +export * from "./locale/az.ts"; +export * from "./locale/be.ts"; +export * from "./locale/be-tarask.ts"; +export * from "./locale/bg.ts"; +export * from "./locale/bn.ts"; +export * from "./locale/bs.ts"; +export * from "./locale/ca.ts"; +export * from "./locale/ckb.ts"; +export * from "./locale/cs.ts"; +export * from "./locale/cy.ts"; +export * from "./locale/da.ts"; +export * from "./locale/de.ts"; +export * from "./locale/de-AT.ts"; +export * from "./locale/el.ts"; +export * from "./locale/en-AU.ts"; +export * from "./locale/en-CA.ts"; +export * from "./locale/en-GB.ts"; +export * from "./locale/en-IE.ts"; +export * from "./locale/en-IN.ts"; +export * from "./locale/en-NZ.ts"; +export * from "./locale/en-US.ts"; +export * from "./locale/en-ZA.ts"; +export * from "./locale/eo.ts"; +export * from "./locale/es.ts"; +export * from "./locale/et.ts"; +export * from "./locale/eu.ts"; +export * from "./locale/fa-IR.ts"; +export * from "./locale/fi.ts"; +export * from "./locale/fr.ts"; +export * from "./locale/fr-CA.ts"; +export * from "./locale/fr-CH.ts"; +export * from "./locale/fy.ts"; +export * from "./locale/gd.ts"; +export * from "./locale/gl.ts"; +export * from "./locale/gu.ts"; +export * from "./locale/he.ts"; +export * from "./locale/hi.ts"; +export * from "./locale/hr.ts"; +export * from "./locale/ht.ts"; +export * from "./locale/hu.ts"; +export * from "./locale/hy.ts"; +export * from "./locale/id.ts"; +export * from "./locale/is.ts"; +export * from "./locale/it.ts"; +export * from "./locale/it-CH.ts"; +export * from "./locale/ja.ts"; +export * from "./locale/ja-Hira.ts"; +export * from "./locale/ka.ts"; +export * from "./locale/kk.ts"; +export * from "./locale/km.ts"; +export * from "./locale/kn.ts"; +export * from "./locale/ko.ts"; +export * from "./locale/lb.ts"; +export * from "./locale/lt.ts"; +export * from "./locale/lv.ts"; +export * from "./locale/mk.ts"; +export * from "./locale/mn.ts"; +export * from "./locale/ms.ts"; +export * from "./locale/mt.ts"; +export * from "./locale/nb.ts"; +export * from "./locale/nl.ts"; +export * from "./locale/nl-BE.ts"; +export * from "./locale/nn.ts"; +export * from "./locale/oc.ts"; +export * from "./locale/pl.ts"; +export * from "./locale/pt.ts"; +export * from "./locale/pt-BR.ts"; +export * from "./locale/ro.ts"; +export * from "./locale/ru.ts"; +export * from "./locale/se.ts"; +export * from "./locale/sk.ts"; +export * from "./locale/sl.ts"; +export * from "./locale/sq.ts"; +export * from "./locale/sr.ts"; +export * from "./locale/sr-Latn.ts"; +export * from "./locale/sv.ts"; +export * from "./locale/ta.ts"; +export * from "./locale/te.ts"; +export * from "./locale/th.ts"; +export * from "./locale/tr.ts"; +export * from "./locale/ug.ts"; +export * from "./locale/uk.ts"; +export * from "./locale/uz.ts"; +export * from "./locale/uz-Cyrl.ts"; +export * from "./locale/vi.ts"; +export * from "./locale/zh-CN.ts"; +export * from "./locale/zh-HK.ts"; +export * from "./locale/zh-TW.ts"; +export type * from "./locale/types.ts"; diff --git a/node_modules/date-fns/locale.d.ts b/node_modules/date-fns/locale.d.ts new file mode 100644 index 000000000..d6471f0d1 --- /dev/null +++ b/node_modules/date-fns/locale.d.ts @@ -0,0 +1,96 @@ +export * from "./locale/af.ts"; +export * from "./locale/ar.ts"; +export * from "./locale/ar-DZ.ts"; +export * from "./locale/ar-EG.ts"; +export * from "./locale/ar-MA.ts"; +export * from "./locale/ar-SA.ts"; +export * from "./locale/ar-TN.ts"; +export * from "./locale/az.ts"; +export * from "./locale/be.ts"; +export * from "./locale/be-tarask.ts"; +export * from "./locale/bg.ts"; +export * from "./locale/bn.ts"; +export * from "./locale/bs.ts"; +export * from "./locale/ca.ts"; +export * from "./locale/ckb.ts"; +export * from "./locale/cs.ts"; +export * from "./locale/cy.ts"; +export * from "./locale/da.ts"; +export * from "./locale/de.ts"; +export * from "./locale/de-AT.ts"; +export * from "./locale/el.ts"; +export * from "./locale/en-AU.ts"; +export * from "./locale/en-CA.ts"; +export * from "./locale/en-GB.ts"; +export * from "./locale/en-IE.ts"; +export * from "./locale/en-IN.ts"; +export * from "./locale/en-NZ.ts"; +export * from "./locale/en-US.ts"; +export * from "./locale/en-ZA.ts"; +export * from "./locale/eo.ts"; +export * from "./locale/es.ts"; +export * from "./locale/et.ts"; +export * from "./locale/eu.ts"; +export * from "./locale/fa-IR.ts"; +export * from "./locale/fi.ts"; +export * from "./locale/fr.ts"; +export * from "./locale/fr-CA.ts"; +export * from "./locale/fr-CH.ts"; +export * from "./locale/fy.ts"; +export * from "./locale/gd.ts"; +export * from "./locale/gl.ts"; +export * from "./locale/gu.ts"; +export * from "./locale/he.ts"; +export * from "./locale/hi.ts"; +export * from "./locale/hr.ts"; +export * from "./locale/ht.ts"; +export * from "./locale/hu.ts"; +export * from "./locale/hy.ts"; +export * from "./locale/id.ts"; +export * from "./locale/is.ts"; +export * from "./locale/it.ts"; +export * from "./locale/it-CH.ts"; +export * from "./locale/ja.ts"; +export * from "./locale/ja-Hira.ts"; +export * from "./locale/ka.ts"; +export * from "./locale/kk.ts"; +export * from "./locale/km.ts"; +export * from "./locale/kn.ts"; +export * from "./locale/ko.ts"; +export * from "./locale/lb.ts"; +export * from "./locale/lt.ts"; +export * from "./locale/lv.ts"; +export * from "./locale/mk.ts"; +export * from "./locale/mn.ts"; +export * from "./locale/ms.ts"; +export * from "./locale/mt.ts"; +export * from "./locale/nb.ts"; +export * from "./locale/nl.ts"; +export * from "./locale/nl-BE.ts"; +export * from "./locale/nn.ts"; +export * from "./locale/oc.ts"; +export * from "./locale/pl.ts"; +export * from "./locale/pt.ts"; +export * from "./locale/pt-BR.ts"; +export * from "./locale/ro.ts"; +export * from "./locale/ru.ts"; +export * from "./locale/se.ts"; +export * from "./locale/sk.ts"; +export * from "./locale/sl.ts"; +export * from "./locale/sq.ts"; +export * from "./locale/sr.ts"; +export * from "./locale/sr-Latn.ts"; +export * from "./locale/sv.ts"; +export * from "./locale/ta.ts"; +export * from "./locale/te.ts"; +export * from "./locale/th.ts"; +export * from "./locale/tr.ts"; +export * from "./locale/ug.ts"; +export * from "./locale/uk.ts"; +export * from "./locale/uz.ts"; +export * from "./locale/uz-Cyrl.ts"; +export * from "./locale/vi.ts"; +export * from "./locale/zh-CN.ts"; +export * from "./locale/zh-HK.ts"; +export * from "./locale/zh-TW.ts"; +export type * from "./locale/types.ts"; diff --git a/node_modules/date-fns/locale.js b/node_modules/date-fns/locale.js new file mode 100644 index 000000000..8ab553dfc --- /dev/null +++ b/node_modules/date-fns/locale.js @@ -0,0 +1,97 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. + +export * from "./locale/af.js"; +export * from "./locale/ar.js"; +export * from "./locale/ar-DZ.js"; +export * from "./locale/ar-EG.js"; +export * from "./locale/ar-MA.js"; +export * from "./locale/ar-SA.js"; +export * from "./locale/ar-TN.js"; +export * from "./locale/az.js"; +export * from "./locale/be.js"; +export * from "./locale/be-tarask.js"; +export * from "./locale/bg.js"; +export * from "./locale/bn.js"; +export * from "./locale/bs.js"; +export * from "./locale/ca.js"; +export * from "./locale/ckb.js"; +export * from "./locale/cs.js"; +export * from "./locale/cy.js"; +export * from "./locale/da.js"; +export * from "./locale/de.js"; +export * from "./locale/de-AT.js"; +export * from "./locale/el.js"; +export * from "./locale/en-AU.js"; +export * from "./locale/en-CA.js"; +export * from "./locale/en-GB.js"; +export * from "./locale/en-IE.js"; +export * from "./locale/en-IN.js"; +export * from "./locale/en-NZ.js"; +export * from "./locale/en-US.js"; +export * from "./locale/en-ZA.js"; +export * from "./locale/eo.js"; +export * from "./locale/es.js"; +export * from "./locale/et.js"; +export * from "./locale/eu.js"; +export * from "./locale/fa-IR.js"; +export * from "./locale/fi.js"; +export * from "./locale/fr.js"; +export * from "./locale/fr-CA.js"; +export * from "./locale/fr-CH.js"; +export * from "./locale/fy.js"; +export * from "./locale/gd.js"; +export * from "./locale/gl.js"; +export * from "./locale/gu.js"; +export * from "./locale/he.js"; +export * from "./locale/hi.js"; +export * from "./locale/hr.js"; +export * from "./locale/ht.js"; +export * from "./locale/hu.js"; +export * from "./locale/hy.js"; +export * from "./locale/id.js"; +export * from "./locale/is.js"; +export * from "./locale/it.js"; +export * from "./locale/it-CH.js"; +export * from "./locale/ja.js"; +export * from "./locale/ja-Hira.js"; +export * from "./locale/ka.js"; +export * from "./locale/kk.js"; +export * from "./locale/km.js"; +export * from "./locale/kn.js"; +export * from "./locale/ko.js"; +export * from "./locale/lb.js"; +export * from "./locale/lt.js"; +export * from "./locale/lv.js"; +export * from "./locale/mk.js"; +export * from "./locale/mn.js"; +export * from "./locale/ms.js"; +export * from "./locale/mt.js"; +export * from "./locale/nb.js"; +export * from "./locale/nl.js"; +export * from "./locale/nl-BE.js"; +export * from "./locale/nn.js"; +export * from "./locale/oc.js"; +export * from "./locale/pl.js"; +export * from "./locale/pt.js"; +export * from "./locale/pt-BR.js"; +export * from "./locale/ro.js"; +export * from "./locale/ru.js"; +export * from "./locale/se.js"; +export * from "./locale/sk.js"; +export * from "./locale/sl.js"; +export * from "./locale/sq.js"; +export * from "./locale/sr.js"; +export * from "./locale/sr-Latn.js"; +export * from "./locale/sv.js"; +export * from "./locale/ta.js"; +export * from "./locale/te.js"; +export * from "./locale/th.js"; +export * from "./locale/tr.js"; +export * from "./locale/ug.js"; +export * from "./locale/uk.js"; +export * from "./locale/uz.js"; +export * from "./locale/uz-Cyrl.js"; +export * from "./locale/vi.js"; +export * from "./locale/zh-CN.js"; +export * from "./locale/zh-HK.js"; +export * from "./locale/zh-TW.js"; diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs b/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs new file mode 100644 index 000000000..6675df731 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs @@ -0,0 +1,11 @@ +"use strict"; +exports.buildFormatLongFn = buildFormatLongFn; + +function buildFormatLongFn(args) { + return (options = {}) => { + // TODO: Remove String() + const width = options.width ? String(options.width) : args.defaultWidth; + const format = args.formats[width] || args.formats[args.defaultWidth]; + return format; + }; +} diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.cts b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.cts new file mode 100644 index 000000000..96987aab8 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.cts @@ -0,0 +1,14 @@ +import type { FormatLongFn, FormatLongWidth } from "../types.ts"; +export interface BuildFormatLongFnArgs< + DefaultMatchWidth extends FormatLongWidth, +> { + formats: Partial<{ + [format in FormatLongWidth]: string; + }> & { + [format in DefaultMatchWidth]: string; + }; + defaultWidth: DefaultMatchWidth; +} +export declare function buildFormatLongFn< + DefaultMatchWidth extends FormatLongWidth, +>(args: BuildFormatLongFnArgs): FormatLongFn; diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.ts b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.ts new file mode 100644 index 000000000..96987aab8 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn.d.ts @@ -0,0 +1,14 @@ +import type { FormatLongFn, FormatLongWidth } from "../types.ts"; +export interface BuildFormatLongFnArgs< + DefaultMatchWidth extends FormatLongWidth, +> { + formats: Partial<{ + [format in FormatLongWidth]: string; + }> & { + [format in DefaultMatchWidth]: string; + }; + defaultWidth: DefaultMatchWidth; +} +export declare function buildFormatLongFn< + DefaultMatchWidth extends FormatLongWidth, +>(args: BuildFormatLongFnArgs): FormatLongFn; diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn.js b/node_modules/date-fns/locale/_lib/buildFormatLongFn.js new file mode 100644 index 000000000..08a929eda --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn.js @@ -0,0 +1,8 @@ +export function buildFormatLongFn(args) { + return (options = {}) => { + // TODO: Remove String() + const width = options.width ? String(options.width) : args.defaultWidth; + const format = args.formats[width] || args.formats[args.defaultWidth]; + return format; + }; +} diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs b/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs new file mode 100644 index 000000000..51053d072 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs @@ -0,0 +1,65 @@ +"use strict"; +exports.buildLocalizeFn = buildLocalizeFn; + +/** + * The localize function argument callback which allows to convert raw value to + * the actual type. + * + * @param value - The value to convert + * + * @returns The converted value + */ + +/** + * The map of localized values for each width. + */ + +/** + * The index type of the locale unit value. It types conversion of units of + * values that don't start at 0 (i.e. quarters). + */ + +/** + * Converts the unit value to the tuple of values. + */ + +/** + * The tuple of localized era values. The first element represents BC, + * the second element represents AD. + */ + +/** + * The tuple of localized quarter values. The first element represents Q1. + */ + +/** + * The tuple of localized day values. The first element represents Sunday. + */ + +/** + * The tuple of localized month values. The first element represents January. + */ + +function buildLocalizeFn(args) { + return (value, options) => { + const context = options?.context ? String(options.context) : "standalone"; + + let valuesArray; + if (context === "formatting" && args.formattingValues) { + const defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + const width = options?.width ? String(options.width) : defaultWidth; + + valuesArray = + args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + const defaultWidth = args.defaultWidth; + const width = options?.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[width] || args.values[defaultWidth]; + } + const index = args.argumentCallback ? args.argumentCallback(value) : value; + + // @ts-expect-error - 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! + return valuesArray[index]; + }; +} diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.cts b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.cts new file mode 100644 index 000000000..5b4d57bde --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.cts @@ -0,0 +1,102 @@ +import type { Day, Era, Month, Quarter } from "../../types.ts"; +import type { + LocaleDayPeriod, + LocaleUnitValue, + LocaleWidth, + LocalizeFn, +} from "../types.ts"; +export type BuildLocalizeFnArgs< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +> = { + values: LocalizePeriodValuesMap; + defaultWidth: LocaleWidth; + formattingValues?: LocalizePeriodValuesMap; + defaultFormattingWidth?: LocaleWidth; +} & (ArgCallback extends undefined + ? { + argumentCallback?: undefined; + } + : { + argumentCallback: LocalizeFnArgCallback; + }); +/** + * The localize function argument callback which allows to convert raw value to + * the actual type. + * + * @param value - The value to convert + * + * @returns The converted value + */ +export type LocalizeFnArgCallback = ( + value: Value, +) => LocalizeUnitIndex; +/** + * The map of localized values for each width. + */ +export type LocalizePeriodValuesMap = { + [Pattern in LocaleWidth]?: LocalizeValues; +}; +/** + * The index type of the locale unit value. It types conversion of units of + * values that don't start at 0 (i.e. quarters). + */ +export type LocalizeUnitIndex = + Value extends LocaleUnitValue ? keyof LocalizeValues : number; +/** + * Converts the unit value to the tuple of values. + */ +export type LocalizeValues = + Value extends LocaleDayPeriod + ? Record + : Value extends Era + ? LocalizeEraValues + : Value extends Quarter + ? LocalizeQuarterValues + : Value extends Day + ? LocalizeDayValues + : Value extends Month + ? LocalizeMonthValues + : never; +/** + * The tuple of localized era values. The first element represents BC, + * the second element represents AD. + */ +export type LocalizeEraValues = readonly [string, string]; +/** + * The tuple of localized quarter values. The first element represents Q1. + */ +export type LocalizeQuarterValues = readonly [string, string, string, string]; +/** + * The tuple of localized day values. The first element represents Sunday. + */ +export type LocalizeDayValues = readonly [ + string, + string, + string, + string, + string, + string, + string, +]; +/** + * The tuple of localized month values. The first element represents January. + */ +export type LocalizeMonthValues = readonly [ + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, +]; +export declare function buildLocalizeFn< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +>(args: BuildLocalizeFnArgs): LocalizeFn; diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.ts b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.ts new file mode 100644 index 000000000..5b4d57bde --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn.d.ts @@ -0,0 +1,102 @@ +import type { Day, Era, Month, Quarter } from "../../types.ts"; +import type { + LocaleDayPeriod, + LocaleUnitValue, + LocaleWidth, + LocalizeFn, +} from "../types.ts"; +export type BuildLocalizeFnArgs< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +> = { + values: LocalizePeriodValuesMap; + defaultWidth: LocaleWidth; + formattingValues?: LocalizePeriodValuesMap; + defaultFormattingWidth?: LocaleWidth; +} & (ArgCallback extends undefined + ? { + argumentCallback?: undefined; + } + : { + argumentCallback: LocalizeFnArgCallback; + }); +/** + * The localize function argument callback which allows to convert raw value to + * the actual type. + * + * @param value - The value to convert + * + * @returns The converted value + */ +export type LocalizeFnArgCallback = ( + value: Value, +) => LocalizeUnitIndex; +/** + * The map of localized values for each width. + */ +export type LocalizePeriodValuesMap = { + [Pattern in LocaleWidth]?: LocalizeValues; +}; +/** + * The index type of the locale unit value. It types conversion of units of + * values that don't start at 0 (i.e. quarters). + */ +export type LocalizeUnitIndex = + Value extends LocaleUnitValue ? keyof LocalizeValues : number; +/** + * Converts the unit value to the tuple of values. + */ +export type LocalizeValues = + Value extends LocaleDayPeriod + ? Record + : Value extends Era + ? LocalizeEraValues + : Value extends Quarter + ? LocalizeQuarterValues + : Value extends Day + ? LocalizeDayValues + : Value extends Month + ? LocalizeMonthValues + : never; +/** + * The tuple of localized era values. The first element represents BC, + * the second element represents AD. + */ +export type LocalizeEraValues = readonly [string, string]; +/** + * The tuple of localized quarter values. The first element represents Q1. + */ +export type LocalizeQuarterValues = readonly [string, string, string, string]; +/** + * The tuple of localized day values. The first element represents Sunday. + */ +export type LocalizeDayValues = readonly [ + string, + string, + string, + string, + string, + string, + string, +]; +/** + * The tuple of localized month values. The first element represents January. + */ +export type LocalizeMonthValues = readonly [ + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, + string, +]; +export declare function buildLocalizeFn< + Value extends LocaleUnitValue, + ArgCallback extends LocalizeFnArgCallback | undefined, +>(args: BuildLocalizeFnArgs): LocalizeFn; diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn.js b/node_modules/date-fns/locale/_lib/buildLocalizeFn.js new file mode 100644 index 000000000..7a5439c15 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn.js @@ -0,0 +1,62 @@ +/** + * The localize function argument callback which allows to convert raw value to + * the actual type. + * + * @param value - The value to convert + * + * @returns The converted value + */ + +/** + * The map of localized values for each width. + */ + +/** + * The index type of the locale unit value. It types conversion of units of + * values that don't start at 0 (i.e. quarters). + */ + +/** + * Converts the unit value to the tuple of values. + */ + +/** + * The tuple of localized era values. The first element represents BC, + * the second element represents AD. + */ + +/** + * The tuple of localized quarter values. The first element represents Q1. + */ + +/** + * The tuple of localized day values. The first element represents Sunday. + */ + +/** + * The tuple of localized month values. The first element represents January. + */ + +export function buildLocalizeFn(args) { + return (value, options) => { + const context = options?.context ? String(options.context) : "standalone"; + + let valuesArray; + if (context === "formatting" && args.formattingValues) { + const defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + const width = options?.width ? String(options.width) : defaultWidth; + + valuesArray = + args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + const defaultWidth = args.defaultWidth; + const width = options?.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[width] || args.values[defaultWidth]; + } + const index = args.argumentCallback ? args.argumentCallback(value) : value; + + // @ts-expect-error - 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! + return valuesArray[index]; + }; +} diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn.cjs b/node_modules/date-fns/locale/_lib/buildMatchFn.cjs new file mode 100644 index 000000000..feb5a8c90 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn.cjs @@ -0,0 +1,60 @@ +"use strict"; +exports.buildMatchFn = buildMatchFn; + +function buildMatchFn(args) { + return (string, options = {}) => { + const width = options.width; + + const matchPattern = + (width && args.matchPatterns[width]) || + args.matchPatterns[args.defaultMatchWidth]; + const matchResult = string.match(matchPattern); + + if (!matchResult) { + return null; + } + const matchedString = matchResult[0]; + + const parsePatterns = + (width && args.parsePatterns[width]) || + args.parsePatterns[args.defaultParseWidth]; + + const key = Array.isArray(parsePatterns) + ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) + : // [TODO] -- I challenge you to fix the type + findKey(parsePatterns, (pattern) => pattern.test(matchedString)); + + let value; + + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback + ? // [TODO] -- I challenge you to fix the type + options.valueCallback(value) + : value; + + const rest = string.slice(matchedString.length); + + return { value, rest }; + }; +} + +function findKey(object, predicate) { + for (const key in object) { + if ( + Object.prototype.hasOwnProperty.call(object, key) && + predicate(object[key]) + ) { + return key; + } + } + return undefined; +} + +function findIndex(array, predicate) { + for (let key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } + return undefined; +} diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn.d.cts b/node_modules/date-fns/locale/_lib/buildMatchFn.d.cts new file mode 100644 index 000000000..8b3f15184 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn.d.cts @@ -0,0 +1,67 @@ +import type { Quarter, Era, Day, Month } from "../../types.ts"; +import type { + LocaleUnitValue, + LocaleWidth, + LocaleDayPeriod, + MatchFn, + MatchValueCallback, +} from "../types.ts"; +export interface BuildMatchFnArgs< + Result extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +> { + matchPatterns: BuildMatchFnMatchPatterns; + defaultMatchWidth: DefaultMatchWidth; + parsePatterns: BuildMatchFnParsePatterns; + defaultParseWidth: DefaultParseWidth; + valueCallback?: MatchValueCallback< + Result extends LocaleDayPeriod ? string : number, + Result + >; +} +export type BuildMatchFnMatchPatterns = { + [Width in LocaleWidth]?: RegExp; +} & { + [Width in DefaultWidth]: RegExp; +}; +export type BuildMatchFnParsePatterns< + Value extends LocaleUnitValue, + DefaultWidth extends LocaleWidth, +> = { + [Width in LocaleWidth]?: ParsePattern; +} & { + [Width in DefaultWidth]: ParsePattern; +}; +export type ParsePattern = + Value extends LocaleDayPeriod + ? Record + : Value extends Quarter + ? readonly [RegExp, RegExp, RegExp, RegExp] + : Value extends Era + ? readonly [RegExp, RegExp] + : Value extends Day + ? readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp] + : Value extends Month + ? readonly [ + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + ] + : never; +export declare function buildMatchFn< + Value extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +>( + args: BuildMatchFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn.d.ts b/node_modules/date-fns/locale/_lib/buildMatchFn.d.ts new file mode 100644 index 000000000..8b3f15184 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn.d.ts @@ -0,0 +1,67 @@ +import type { Quarter, Era, Day, Month } from "../../types.ts"; +import type { + LocaleUnitValue, + LocaleWidth, + LocaleDayPeriod, + MatchFn, + MatchValueCallback, +} from "../types.ts"; +export interface BuildMatchFnArgs< + Result extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +> { + matchPatterns: BuildMatchFnMatchPatterns; + defaultMatchWidth: DefaultMatchWidth; + parsePatterns: BuildMatchFnParsePatterns; + defaultParseWidth: DefaultParseWidth; + valueCallback?: MatchValueCallback< + Result extends LocaleDayPeriod ? string : number, + Result + >; +} +export type BuildMatchFnMatchPatterns = { + [Width in LocaleWidth]?: RegExp; +} & { + [Width in DefaultWidth]: RegExp; +}; +export type BuildMatchFnParsePatterns< + Value extends LocaleUnitValue, + DefaultWidth extends LocaleWidth, +> = { + [Width in LocaleWidth]?: ParsePattern; +} & { + [Width in DefaultWidth]: ParsePattern; +}; +export type ParsePattern = + Value extends LocaleDayPeriod + ? Record + : Value extends Quarter + ? readonly [RegExp, RegExp, RegExp, RegExp] + : Value extends Era + ? readonly [RegExp, RegExp] + : Value extends Day + ? readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp] + : Value extends Month + ? readonly [ + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + RegExp, + ] + : never; +export declare function buildMatchFn< + Value extends LocaleUnitValue, + DefaultMatchWidth extends LocaleWidth, + DefaultParseWidth extends LocaleWidth, +>( + args: BuildMatchFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn.js b/node_modules/date-fns/locale/_lib/buildMatchFn.js new file mode 100644 index 000000000..afab13691 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn.js @@ -0,0 +1,57 @@ +export function buildMatchFn(args) { + return (string, options = {}) => { + const width = options.width; + + const matchPattern = + (width && args.matchPatterns[width]) || + args.matchPatterns[args.defaultMatchWidth]; + const matchResult = string.match(matchPattern); + + if (!matchResult) { + return null; + } + const matchedString = matchResult[0]; + + const parsePatterns = + (width && args.parsePatterns[width]) || + args.parsePatterns[args.defaultParseWidth]; + + const key = Array.isArray(parsePatterns) + ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) + : // [TODO] -- I challenge you to fix the type + findKey(parsePatterns, (pattern) => pattern.test(matchedString)); + + let value; + + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback + ? // [TODO] -- I challenge you to fix the type + options.valueCallback(value) + : value; + + const rest = string.slice(matchedString.length); + + return { value, rest }; + }; +} + +function findKey(object, predicate) { + for (const key in object) { + if ( + Object.prototype.hasOwnProperty.call(object, key) && + predicate(object[key]) + ) { + return key; + } + } + return undefined; +} + +function findIndex(array, predicate) { + for (let key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } + return undefined; +} diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs new file mode 100644 index 000000000..d654ab49c --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs @@ -0,0 +1,23 @@ +"use strict"; +exports.buildMatchPatternFn = buildMatchPatternFn; + +function buildMatchPatternFn(args) { + return (string, options = {}) => { + const matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + const matchedString = matchResult[0]; + + const parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + let value = args.valueCallback + ? args.valueCallback(parseResult[0]) + : parseResult[0]; + + // [TODO] I challenge you to fix the type + value = options.valueCallback ? options.valueCallback(value) : value; + + const rest = string.slice(matchedString.length); + + return { value, rest }; + }; +} diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.cts b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.cts new file mode 100644 index 000000000..4318b70af --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.cts @@ -0,0 +1,9 @@ +import type { MatchFn, MatchValueCallback } from "../types.ts"; +export interface BuildMatchPatternFnArgs { + matchPattern: RegExp; + parsePattern: RegExp; + valueCallback?: MatchValueCallback; +} +export declare function buildMatchPatternFn( + args: BuildMatchPatternFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.ts b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.ts new file mode 100644 index 000000000..4318b70af --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.d.ts @@ -0,0 +1,9 @@ +import type { MatchFn, MatchValueCallback } from "../types.ts"; +export interface BuildMatchPatternFnArgs { + matchPattern: RegExp; + parsePattern: RegExp; + valueCallback?: MatchValueCallback; +} +export declare function buildMatchPatternFn( + args: BuildMatchPatternFnArgs, +): MatchFn; diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js new file mode 100644 index 000000000..3a839a348 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js @@ -0,0 +1,20 @@ +export function buildMatchPatternFn(args) { + return (string, options = {}) => { + const matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + const matchedString = matchResult[0]; + + const parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + let value = args.valueCallback + ? args.valueCallback(parseResult[0]) + : parseResult[0]; + + // [TODO] I challenge you to fix the type + value = options.valueCallback ? options.valueCallback(value) : value; + + const rest = string.slice(matchedString.length); + + return { value, rest }; + }; +} diff --git a/node_modules/date-fns/locale/af.cjs b/node_modules/date-fns/locale/af.cjs new file mode 100644 index 000000000..bc6dd2e8a --- /dev/null +++ b/node_modules/date-fns/locale/af.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.af = void 0; +var _index = require("./af/_lib/formatDistance.cjs"); +var _index2 = require("./af/_lib/formatLong.cjs"); +var _index3 = require("./af/_lib/formatRelative.cjs"); +var _index4 = require("./af/_lib/localize.cjs"); +var _index5 = require("./af/_lib/match.cjs"); + +/** + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw](https://github.com/marnusw) + */ +const af = (exports.af = { + code: "af", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/af.d.cts b/node_modules/date-fns/locale/af.d.cts new file mode 100644 index 000000000..bc285e352 --- /dev/null +++ b/node_modules/date-fns/locale/af.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw](https://github.com/marnusw) + */ +export declare const af: Locale; diff --git a/node_modules/date-fns/locale/af.d.ts b/node_modules/date-fns/locale/af.d.ts new file mode 100644 index 000000000..bc285e352 --- /dev/null +++ b/node_modules/date-fns/locale/af.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw](https://github.com/marnusw) + */ +export declare const af: Locale; diff --git a/node_modules/date-fns/locale/af.js b/node_modules/date-fns/locale/af.js new file mode 100644 index 000000000..14849a2dc --- /dev/null +++ b/node_modules/date-fns/locale/af.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./af/_lib/formatDistance.js"; +import { formatLong } from "./af/_lib/formatLong.js"; +import { formatRelative } from "./af/_lib/formatRelative.js"; +import { localize } from "./af/_lib/localize.js"; +import { match } from "./af/_lib/match.js"; + +/** + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw](https://github.com/marnusw) + */ +export const af = { + code: "af", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default af; diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance.cjs b/node_modules/date-fns/locale/af/_lib/formatDistance.cjs new file mode 100644 index 000000000..f814370a4 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 'n sekonde", + other: "minder as {{count}} sekondes", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekondes", + }, + + halfAMinute: "'n halwe minuut", + + lessThanXMinutes: { + one: "minder as 'n minuut", + other: "minder as {{count}} minute", + }, + + xMinutes: { + one: "'n minuut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} ure", + }, + + xHours: { + one: "1 uur", + other: "{{count}} ure", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dae", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weke", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weke", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maande", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maande", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer as 1 jaar", + other: "meer as {{count}} jaar", + }, + + almostXYears: { + one: "byna 1 jaar", + other: "byna {{count}} jaar", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oor " + result; + } else { + return result + " gelede"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/af/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/af/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance.js b/node_modules/date-fns/locale/af/_lib/formatDistance.js new file mode 100644 index 000000000..a00518b63 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 'n sekonde", + other: "minder as {{count}} sekondes", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekondes", + }, + + halfAMinute: "'n halwe minuut", + + lessThanXMinutes: { + one: "minder as 'n minuut", + other: "minder as {{count}} minute", + }, + + xMinutes: { + one: "'n minuut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} ure", + }, + + xHours: { + one: "1 uur", + other: "{{count}} ure", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dae", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weke", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weke", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maande", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maande", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer as 1 jaar", + other: "meer as {{count}} jaar", + }, + + almostXYears: { + one: "byna 1 jaar", + other: "byna {{count}} jaar", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oor " + result; + } else { + return result + " gelede"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/af/_lib/formatLong.cjs b/node_modules/date-fns/locale/af/_lib/formatLong.cjs new file mode 100644 index 000000000..4b50be2fd --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/af/_lib/formatLong.d.cts b/node_modules/date-fns/locale/af/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/af/_lib/formatLong.d.ts b/node_modules/date-fns/locale/af/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/af/_lib/formatLong.js b/node_modules/date-fns/locale/af/_lib/formatLong.js new file mode 100644 index 000000000..ca15298fe --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative.cjs b/node_modules/date-fns/locale/af/_lib/formatRelative.cjs new file mode 100644 index 000000000..e4e5dfd37 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'verlede' eeee 'om' p", + yesterday: "'gister om' p", + today: "'vandag om' p", + tomorrow: "'môre om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/af/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/af/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative.js b/node_modules/date-fns/locale/af/_lib/formatRelative.js new file mode 100644 index 000000000..a829df3d5 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'verlede' eeee 'om' p", + yesterday: "'gister om' p", + today: "'vandag om' p", + tomorrow: "'môre om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/af/_lib/localize.cjs b/node_modules/date-fns/locale/af/_lib/localize.cjs new file mode 100644 index 000000000..7101c668b --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/localize.cjs @@ -0,0 +1,175 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["vC", "nC"], + abbreviated: ["vC", "nC"], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1ste kwartaal", "2de kwartaal", "3de kwartaal", "4de kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januarie", + "Februarie", + "Maart", + "April", + "Mei", + "Junie", + "Julie", + "Augustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "W", "D", "V", "S"], + short: ["So", "Ma", "Di", "Wo", "Do", "Vr", "Sa"], + abbreviated: ["Son", "Maa", "Din", "Woe", "Don", "Vry", "Sat"], + wide: [ + "Sondag", + "Maandag", + "Dinsdag", + "Woensdag", + "Donderdag", + "Vrydag", + "Saterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 < 20) { + switch (rem100) { + case 1: + case 8: + return number + "ste"; + default: + return number + "de"; + } + } + return number + "ste"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/af/_lib/localize.d.cts b/node_modules/date-fns/locale/af/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/af/_lib/localize.d.ts b/node_modules/date-fns/locale/af/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/af/_lib/localize.js b/node_modules/date-fns/locale/af/_lib/localize.js new file mode 100644 index 000000000..8c4b87e3f --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/localize.js @@ -0,0 +1,173 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["vC", "nC"], + abbreviated: ["vC", "nC"], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1ste kwartaal", "2de kwartaal", "3de kwartaal", "4de kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januarie", + "Februarie", + "Maart", + "April", + "Mei", + "Junie", + "Julie", + "Augustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "W", "D", "V", "S"], + short: ["So", "Ma", "Di", "Wo", "Do", "Vr", "Sa"], + abbreviated: ["Son", "Maa", "Din", "Woe", "Don", "Vry", "Sat"], + wide: [ + "Sondag", + "Maandag", + "Dinsdag", + "Woensdag", + "Donderdag", + "Vrydag", + "Saterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 < 20) { + switch (rem100) { + case 1: + case 8: + return number + "ste"; + default: + return number + "de"; + } + } + return number + "ste"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/af/_lib/match.cjs b/node_modules/date-fns/locale/af/_lib/match.cjs new file mode 100644 index 000000000..89bcc2178 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?C\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](st|d)e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, + wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^J/i, + /^F/i, + /^M/i, + /^A/i, + /^M/i, + /^J/i, + /^J/i, + /^A/i, + /^S/i, + /^O/i, + /^N/i, + /^D/i, + ], + + any: [ + /^Jan/i, + /^Feb/i, + /^Mrt/i, + /^Apr/i, + /^Mei/i, + /^Jun/i, + /^Jul/i, + /^Aug/i, + /^Sep/i, + /^Okt/i, + /^Nov/i, + /^Dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdwv]/i, + short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, + abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, + wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i], + any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^vm/i, + pm: /^nm/i, + midnight: /^middernag/i, + noon: /^middaguur/i, + morning: /oggend/i, + afternoon: /middag/i, + evening: /laat middag/i, + night: /aand/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/af/_lib/match.d.cts b/node_modules/date-fns/locale/af/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/af/_lib/match.d.ts b/node_modules/date-fns/locale/af/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/af/_lib/match.js b/node_modules/date-fns/locale/af/_lib/match.js new file mode 100644 index 000000000..8d879f3fc --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?C\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](st|d)e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, + wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^J/i, + /^F/i, + /^M/i, + /^A/i, + /^M/i, + /^J/i, + /^J/i, + /^A/i, + /^S/i, + /^O/i, + /^N/i, + /^D/i, + ], + + any: [ + /^Jan/i, + /^Feb/i, + /^Mrt/i, + /^Apr/i, + /^Mei/i, + /^Jun/i, + /^Jul/i, + /^Aug/i, + /^Sep/i, + /^Okt/i, + /^Nov/i, + /^Dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdwv]/i, + short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, + abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, + wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i], + any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^vm/i, + pm: /^nm/i, + midnight: /^middernag/i, + noon: /^middaguur/i, + morning: /oggend/i, + afternoon: /middag/i, + evening: /laat middag/i, + night: /aand/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/af/cdn.js b/node_modules/date-fns/locale/af/cdn.js new file mode 100644 index 000000000..0c80dc089 --- /dev/null +++ b/node_modules/date-fns/locale/af/cdn.js @@ -0,0 +1,577 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/af/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 'n sekonde", + other: "minder as {{count}} sekondes" + }, + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekondes" + }, + halfAMinute: "'n halwe minuut", + lessThanXMinutes: { + one: "minder as 'n minuut", + other: "minder as {{count}} minute" + }, + xMinutes: { + one: "'n minuut", + other: "{{count}} minute" + }, + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} ure" + }, + xHours: { + one: "1 uur", + other: "{{count}} ure" + }, + xDays: { + one: "1 dag", + other: "{{count}} dae" + }, + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weke" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weke" + }, + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maande" + }, + xMonths: { + one: "1 maand", + other: "{{count}} maande" + }, + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar" + }, + xYears: { + one: "1 jaar", + other: "{{count}} jaar" + }, + overXYears: { + one: "meer as 1 jaar", + other: "meer as {{count}} jaar" + }, + almostXYears: { + one: "byna 1 jaar", + other: "byna {{count}} jaar" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "oor " + result;else + return result + " gelede"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "yyyy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/af/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'verlede' eeee 'om' p", + yesterday: "'gister om' p", + today: "'vandag om' p", + tomorrow: "'môre om' p", + nextWeek: "eeee 'om' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/af/_lib/localize.js +var eraValues = { + narrow: ["vC", "nC"], + abbreviated: ["vC", "nC"], + wide: ["voor Christus", "na Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1ste kwartaal", + "2de kwartaal", + "3de kwartaal", + "4de kwartaal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mrt", + "Apr", + "Mei", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Des"], + + wide: [ + "Januarie", + "Februarie", + "Maart", + "April", + "Mei", + "Junie", + "Julie", + "Augustus", + "September", + "Oktober", + "November", + "Desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "D", + "W", + "D", + "V", + "S"], + + short: [ + "So", + "Ma", + "Di", + "Wo", + "Do", + "Vr", + "Sa"], + + abbreviated: [ + "Son", + "Maa", + "Din", + "Woe", + "Don", + "Vry", + "Sat"], + + wide: [ + "Sondag", + "Maandag", + "Dinsdag", + "Woensdag", + "Donderdag", + "Vrydag", + "Saterdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand" + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand" + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "middaguur", + morning: "oggend", + afternoon: "middag", + evening: "laat middag", + night: "aand" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand" + }, + abbreviated: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand" + }, + wide: { + am: "vm", + pm: "nm", + midnight: "middernag", + noon: "uur die middag", + morning: "uur die oggend", + afternoon: "uur die middag", + evening: "uur die aand", + night: "uur die aand" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 < 20) switch (rem100) { + case 1: + case 8:return number + "ste"; + default:return number + "de"; + } + return number + "ste"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/af.js +/** +* @category Locales +* @summary Afrikaans locale. +* @language Afrikaans +* @iso-639-2 afr +* @author Marnus Weststrate [@marnusw](https://github.com/marnusw) +*/ +var af = { + code: "af", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ste|de)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?C\.?)/, + wide: /^((voor|na) Christus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](st|d)e kwartaal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, + wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^J/i, + /^F/i, + /^M/i, + /^A/i, + /^M/i, + /^J/i, + /^J/i, + /^A/i, + /^S/i, + /^O/i, + /^N/i, + /^D/i], + + any: [ + /^Jan/i, + /^Feb/i, + /^Mrt/i, + /^Apr/i, + /^Mei/i, + /^Jun/i, + /^Jul/i, + /^Aug/i, + /^Sep/i, + /^Okt/i, + /^Nov/i, + /^Dec/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smdwv]/i, + short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, + abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, + wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^S/i, + /^M/i, + /^D/i, + /^W/i, + /^D/i, + /^V/i, + /^S/i], + + any: [ + /^So/i, + /^Ma/i, + /^Di/i, + /^Wo/i, + /^Do/i, + /^Vr/i, + /^Sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^vm/i, + pm: /^nm/i, + midnight: /^middernag/i, + noon: /^middaguur/i, + morning: /oggend/i, + afternoon: /middag/i, + evening: /laat middag/i, + night: /aand/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/af/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + af: af }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/cdn.min.js b/node_modules/date-fns/locale/af/cdn.min.js new file mode 100644 index 000000000..7e8714e33 --- /dev/null +++ b/node_modules/date-fns/locale/af/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`oor `+r:r+` gelede`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'verlede' eeee 'om' p`,yesterday:`'gister om' p`,today:`'vandag om' p`,tomorrow:`'môre om' p`,nextWeek:`eeee 'om' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n<20)switch(n){case 1:case 8:return t+`ste`;default:return t+`de`}return t+`ste`},era:f({values:{narrow:[`vC`,`nC`],abbreviated:[`vC`,`nC`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1ste kwartaal`,`2de kwartaal`,`3de kwartaal`,`4de kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mrt`,`Apr`,`Mei`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januarie`,`Februarie`,`Maart`,`April`,`Mei`,`Junie`,`Julie`,`Augustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`W`,`D`,`V`,`S`],short:[`So`,`Ma`,`Di`,`Wo`,`Do`,`Vr`,`Sa`],abbreviated:[`Son`,`Maa`,`Din`,`Woe`,`Don`,`Vry`,`Sat`],wide:[`Sondag`,`Maandag`,`Dinsdag`,`Woensdag`,`Donderdag`,`Vrydag`,`Saterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`},abbreviated:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`},wide:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`},abbreviated:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`},wide:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`af`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{af:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ.cjs b/node_modules/date-fns/locale/ar-DZ.cjs new file mode 100644 index 000000000..d59cc359b --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.arDZ = void 0; +var _index = require("./ar-DZ/_lib/formatDistance.cjs"); +var _index2 = require("./ar-DZ/_lib/formatLong.cjs"); +var _index3 = require("./ar-DZ/_lib/formatRelative.cjs"); +var _index4 = require("./ar-DZ/_lib/localize.cjs"); +var _index5 = require("./ar-DZ/_lib/match.cjs"); + +/** + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429](https://github.com/badre429) + * @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) + */ +const arDZ = (exports.arDZ = { + code: "ar-DZ", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ar-DZ.d.cts b/node_modules/date-fns/locale/ar-DZ.d.cts new file mode 100644 index 000000000..e6ff557e9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429](https://github.com/badre429) + * @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) + */ +export declare const arDZ: Locale; diff --git a/node_modules/date-fns/locale/ar-DZ.d.ts b/node_modules/date-fns/locale/ar-DZ.d.ts new file mode 100644 index 000000000..e6ff557e9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429](https://github.com/badre429) + * @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) + */ +export declare const arDZ: Locale; diff --git a/node_modules/date-fns/locale/ar-DZ.js b/node_modules/date-fns/locale/ar-DZ.js new file mode 100644 index 000000000..85ffaed26 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ar-DZ/_lib/formatDistance.js"; +import { formatLong } from "./ar-DZ/_lib/formatLong.js"; +import { formatRelative } from "./ar-DZ/_lib/formatRelative.js"; +import { localize } from "./ar-DZ/_lib/localize.js"; +import { match } from "./ar-DZ/_lib/match.js"; + +/** + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429](https://github.com/badre429) + * @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) + */ +export const arDZ = { + code: "ar-DZ", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default arDZ; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.cjs new file mode 100644 index 000000000..1309562f9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, + + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.js new file mode 100644 index 000000000..23c98cf24 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance.js @@ -0,0 +1,136 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, + + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.cjs new file mode 100644 index 000000000..d7416e3e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.cts new file mode 100644 index 000000000..4e8e1a801 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.cts @@ -0,0 +1,5 @@ +export declare const formatLong: { + date: import("../../types.ts").FormatLongFn; + time: import("../../types.ts").FormatLongFn; + dateTime: import("../../types.ts").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.ts new file mode 100644 index 000000000..4e8e1a801 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.d.ts @@ -0,0 +1,5 @@ +export declare const formatLong: { + date: import("../../types.ts").FormatLongFn; + time: import("../../types.ts").FormatLongFn; + dateTime: import("../../types.ts").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.js new file mode 100644 index 000000000..90ffe93e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.cjs new file mode 100644 index 000000000..ba8571f5b --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.js new file mode 100644 index 000000000..96dcced9e --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize.cjs b/node_modules/date-fns/locale/ar-DZ/_lib/localize.cjs new file mode 100644 index 000000000..9380c02fa --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ج", "ف", "م", "أ", "م", "ج", "ج", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "جانـ", + "فيفـ", + "مارس", + "أفريل", + "مايـ", + "جوانـ", + "جويـ", + "أوت", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.cts b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.ts b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize.js b/node_modules/date-fns/locale/ar-DZ/_lib/localize.js new file mode 100644 index 000000000..67826d82a --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ج", "ف", "م", "أ", "م", "ج", "ج", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "جانـ", + "فيفـ", + "مارس", + "أفريل", + "مايـ", + "جوانـ", + "جويـ", + "أوت", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match.cjs b/node_modules/date-fns/locale/ar-DZ/_lib/match.cjs new file mode 100644 index 000000000..f5dba0b41 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جفمأسند]/i, + abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^جان/i, + /^فيف/i, + /^مار/i, + /^أفر/i, + /^ماي/i, + /^جوا/i, + /^جوي/i, + /^أوت/i, + /^سبت/i, + /^أكت/i, + /^نوف/i, + /^ديس/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => Number(index) + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match.d.cts b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match.d.ts b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match.js b/node_modules/date-fns/locale/ar-DZ/_lib/match.js new file mode 100644 index 000000000..0e99f19bc --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match.js @@ -0,0 +1,143 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جفمأسند]/i, + abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^جان/i, + /^فيف/i, + /^مار/i, + /^أفر/i, + /^ماي/i, + /^جوا/i, + /^جوي/i, + /^أوت/i, + /^سبت/i, + /^أكت/i, + /^نوف/i, + /^ديس/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => Number(index) + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar-DZ/cdn.js b/node_modules/date-fns/locale/ar-DZ/cdn.js new file mode 100644 index 000000000..30cbe3479 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/cdn.js @@ -0,0 +1,618 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-DZ/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نصف دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً" + }, + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة" + }, + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً" + }, + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع" + }, + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً" + }, + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر" + }, + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + }, + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام" + }, + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام" + }, + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + } +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + if (count === 2) result = usageGroup.two;else + if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else + return "منذ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar-DZ/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-DZ/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "ج", + "ف", + "م", + "أ", + "م", + "ج", + "ج", + "أ", + "س", + "أ", + "ن", + "د"], + + abbreviated: [ + "جانـ", + "فيفـ", + "مارس", + "أفريل", + "مايـ", + "جوانـ", + "جويـ", + "أوت", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ"], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنـ", + "ثلا", + "أربـ", + "خميـ", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/ar-DZ.js +/** +* @category Locales +* @summary Arabic locale (Algerian Arabic). +* @language Algerian Arabic +* @iso-639-2 ara +* @author Badreddine Boumaza [@badre429](https://github.com/badre429) +* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) +*/ +var arDZ = { + code: "ar-DZ", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^قبل/i, /^بعد/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return Number(index) + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[جفمأسند]/i, + abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i], + + any: [ + /^جان/i, + /^فيف/i, + /^مار/i, + /^أفر/i, + /^ماي/i, + /^جوا/i, + /^جوي/i, + /^أوت/i, + /^سبت/i, + /^أكت/i, + /^نوف/i, + /^ديس/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/i, + /^ن/i, + /^ث/i, + /^ر/i, + /^خ/i, + /^ج/i, + /^س/i], + + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i], + + any: [ + /^أح/i, + /^اث/i, + /^ث/i, + /^أر/i, + /^خ/i, + /^ج/i, + /^س/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar-DZ/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + arDZ: arDZ }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/cdn.min.js b/node_modules/date-fns/locale/ar-DZ/cdn.min.js new file mode 100644 index 000000000..65b690d6f --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`في خلال `+i:`منذ `+i:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`ج`,`ف`,`م`,`أ`,`م`,`ج`,`ج`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`جانـ`,`فيفـ`,`مارس`,`أفريل`,`مايـ`,`جوانـ`,`جويـ`,`أوت`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return `في خلال ${result}`; + } else { + return `منذ ${result}`; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.js b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.js new file mode 100644 index 000000000..60b72844b --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance.js @@ -0,0 +1,135 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من ثانيتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية", + two: "ثانيتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نص دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقايق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة", + two: "دقيقتين", + threeToTen: "{{count}} دقايق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "حوالي ساعة", + two: "حوالي ساعتين", + threeToTen: "حوالي {{count}} ساعات", + other: "حوالي {{count}} ساعة", + }, + + xHours: { + one: "ساعة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "حوالي أسبوع", + two: "حوالي أسبوعين", + threeToTen: "حوالي {{count}} أسابيع", + other: "حوالي {{count}} أسبوع", + }, + + xWeeks: { + one: "أسبوع", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "حوالي شهر", + two: "حوالي شهرين", + threeToTen: "حوالي {{count}} أشهر", + other: "حوالي {{count}} شهر", + }, + + xMonths: { + one: "شهر", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "حوالي سنة", + two: "حوالي سنتين", + threeToTen: "حوالي {{count}} سنين", + other: "حوالي {{count}} سنة", + }, + + xYears: { + one: "عام", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من سنة", + two: "أكثر من سنتين", + threeToTen: "أكثر من {{count}} سنين", + other: "أكثر من {{count}} سنة", + }, + + almostXYears: { + one: "عام تقريبًا", + two: "عامين تقريبًا", + threeToTen: "{{count}} أعوام تقريبًا", + other: "{{count}} عام تقريبًا", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return `في خلال ${result}`; + } else { + return `منذ ${result}`; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.cjs new file mode 100644 index 000000000..de4477112 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "dd/MMM/y", + short: "d/MM/y", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'الساعة' {{time}}", + long: "{{date}} 'الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong.js b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.js new file mode 100644 index 000000000..73a2464f8 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "dd/MMM/y", + short: "d/MM/y", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'الساعة' {{time}}", + long: "{{date}} 'الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.cjs new file mode 100644 index 000000000..9983b9d49 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'اللي جاي الساعة' p", + yesterday: "'إمبارح الساعة' p", + today: "'النهاردة الساعة' p", + tomorrow: "'بكرة الساعة' p", + nextWeek: "eeee 'الساعة' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.js b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.js new file mode 100644 index 000000000..e09826bb7 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'اللي جاي الساعة' p", + yesterday: "'إمبارح الساعة' p", + today: "'النهاردة الساعة' p", + tomorrow: "'بكرة الساعة' p", + nextWeek: "eeee 'الساعة' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize.cjs b/node_modules/date-fns/locale/ar-EG/_lib/localize.cjs new file mode 100644 index 000000000..a05d906f6 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م", "ب.م"], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + morning: "في الصباح", + noon: "ظهراً", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize.d.cts b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize.d.ts b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize.js b/node_modules/date-fns/locale/ar-EG/_lib/localize.js new file mode 100644 index 000000000..f3446759a --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م", "ب.م"], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + morning: "في الصباح", + noon: "ظهراً", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match.cjs b/node_modules/date-fns/locale/ar-EG/_lib/match.cjs new file mode 100644 index 000000000..89752b757 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/match.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)/; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/g, + abbreviated: /^(ق.م|ب.م)/g, + wide: /^(قبل الميلاد|بعد الميلاد)/g, +}; +const parseEraPatterns = { + any: [/^ق/g, /^ب/g], +}; +const matchQuarterPatterns = { + narrow: /^[1234]/, + abbreviated: /^ر[1234]/, + wide: /^الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/], + any: [/1/, /2/, /3/, /4/], +}; + +const matchMonthPatterns = { + narrow: /^(ي|ف|م|أ|س|ن|د)/, + abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/, + /^ف/, + /^م/, + /^أ/, + /^م/, + /^ي/, + /^ي/, + /^أ/, + /^س/, + /^أ/, + /^ن/, + /^د/, + ], + + any: [ + /^ينا/, + /^فبر/, + /^مارس/, + /^أبريل/, + /^مايو/, + /^يون/, + /^يول/, + /^أغس/, + /^سبت/, + /^أكت/, + /^نوف/, + /^ديس/, + ], +}; + +const matchDayPatterns = { + narrow: /^(ح|ن|ث|ر|خ|ج|س)/, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/, +}; +const parseDayPatterns = { + narrow: [/^ح/, /^ن/, /^ث/, /^ر/, /^خ/, /^ج/, /^س/], + any: [/أحد/, /اثنين/, /ثلاثاء/, /أربعاء/, /خميس/, /جمعة/, /سبت/], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, + abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, + wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, + any: /^(ص|م|صباح|ظهر|مساء|ليل)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /^ن/, + noon: /^ظ/, + morning: /^ص/, + afternoon: /^بعد/, + evening: /^م/, + night: /^ل/, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match.d.cts b/node_modules/date-fns/locale/ar-EG/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match.d.ts b/node_modules/date-fns/locale/ar-EG/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match.js b/node_modules/date-fns/locale/ar-EG/_lib/match.js new file mode 100644 index 000000000..394fff324 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/match.js @@ -0,0 +1,136 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)/; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/g, + abbreviated: /^(ق.م|ب.م)/g, + wide: /^(قبل الميلاد|بعد الميلاد)/g, +}; +const parseEraPatterns = { + any: [/^ق/g, /^ب/g], +}; +const matchQuarterPatterns = { + narrow: /^[1234]/, + abbreviated: /^ر[1234]/, + wide: /^الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/], + any: [/1/, /2/, /3/, /4/], +}; + +const matchMonthPatterns = { + narrow: /^(ي|ف|م|أ|س|ن|د)/, + abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/, + /^ف/, + /^م/, + /^أ/, + /^م/, + /^ي/, + /^ي/, + /^أ/, + /^س/, + /^أ/, + /^ن/, + /^د/, + ], + + any: [ + /^ينا/, + /^فبر/, + /^مارس/, + /^أبريل/, + /^مايو/, + /^يون/, + /^يول/, + /^أغس/, + /^سبت/, + /^أكت/, + /^نوف/, + /^ديس/, + ], +}; + +const matchDayPatterns = { + narrow: /^(ح|ن|ث|ر|خ|ج|س)/, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/, +}; +const parseDayPatterns = { + narrow: [/^ح/, /^ن/, /^ث/, /^ر/, /^خ/, /^ج/, /^س/], + any: [/أحد/, /اثنين/, /ثلاثاء/, /أربعاء/, /خميس/, /جمعة/, /سبت/], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, + abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, + wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, + any: /^(ص|م|صباح|ظهر|مساء|ليل)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /^ن/, + noon: /^ظ/, + morning: /^ص/, + afternoon: /^بعد/, + evening: /^م/, + night: /^ل/, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar-EG/cdn.js b/node_modules/date-fns/locale/ar-EG/cdn.js new file mode 100644 index 000000000..81551c292 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/cdn.js @@ -0,0 +1,617 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-EG/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من ثانيتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية", + two: "ثانيتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نص دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقايق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة", + two: "دقيقتين", + threeToTen: "{{count}} دقايق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "حوالي ساعة", + two: "حوالي ساعتين", + threeToTen: "حوالي {{count}} ساعات", + other: "حوالي {{count}} ساعة" + }, + xHours: { + one: "ساعة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة" + }, + xDays: { + one: "يوم", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "حوالي أسبوع", + two: "حوالي أسبوعين", + threeToTen: "حوالي {{count}} أسابيع", + other: "حوالي {{count}} أسبوع" + }, + xWeeks: { + one: "أسبوع", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع" + }, + aboutXMonths: { + one: "حوالي شهر", + two: "حوالي شهرين", + threeToTen: "حوالي {{count}} أشهر", + other: "حوالي {{count}} شهر" + }, + xMonths: { + one: "شهر", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر" + }, + aboutXYears: { + one: "حوالي سنة", + two: "حوالي سنتين", + threeToTen: "حوالي {{count}} سنين", + other: "حوالي {{count}} سنة" + }, + xYears: { + one: "عام", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام" + }, + overXYears: { + one: "أكثر من سنة", + two: "أكثر من سنتين", + threeToTen: "أكثر من {{count}} سنين", + other: "أكثر من {{count}} سنة" + }, + almostXYears: { + one: "عام تقريبًا", + two: "عامين تقريبًا", + threeToTen: "{{count}} أعوام تقريبًا", + other: "{{count}} عام تقريبًا" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2) result = tokenValue.two;else + if (count <= 10) result = tokenValue.threeToTen.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result);else + return "\u0645\u0646\u0630 ".concat(result); + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "dd/MMM/y", + short: "d/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'الساعة' {{time}}", + long: "{{date}} 'الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar-EG/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'اللي جاي الساعة' p", + yesterday: "'إمبارح الساعة' p", + today: "'النهاردة الساعة' p", + tomorrow: "'بكرة الساعة' p", + nextWeek: "eeee 'الساعة' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-EG/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م", "ب.م"], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "ي", + "ف", + "م", + "أ", + "م", + "ي", + "ي", + "أ", + "س", + "أ", + "ن", + "د"], + + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ"], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءً", + night: "ليلاً" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهراً", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + morning: "في الصباح", + noon: "ظهراً", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-EG.js +/** +* @category Locales +* @summary Arabic locale (Egypt). +* @language Arabic +* @iso-639-2 ara +* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13) +*/ +var arEG = { + code: "ar-EG", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)/, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/g, + abbreviated: /^(ق.م|ب.م)/g, + wide: /^(قبل الميلاد|بعد الميلاد)/g + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ق/g, /^ب/g] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/, + abbreviated: /^ر[1234]/, + wide: /^الربع (الأول|الثاني|الثالث|الرابع)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [ + /الربع الأول/, + /الربع الثاني/, + /الربع الثالث/, + /الربع الرابع/], + + any: [ + /1/, + /2/, + /3/, + /4/] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ي|ف|م|أ|س|ن|د)/, + abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ي/, + /^ف/, + /^م/, + /^أ/, + /^م/, + /^ي/, + /^ي/, + /^أ/, + /^س/, + /^أ/, + /^ن/, + /^د/], + + any: [ + /^ينا/, + /^فبر/, + /^مارس/, + /^أبريل/, + /^مايو/, + /^يون/, + /^يول/, + /^أغس/, + /^سبت/, + /^أكت/, + /^نوف/, + /^ديس/] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ح|ن|ث|ر|خ|ج|س)/, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/, + /^ن/, + /^ث/, + /^ر/, + /^خ/, + /^ج/, + /^س/], + + any: [ + /أحد/, + /اثنين/, + /ثلاثاء/, + /أربعاء/, + /خميس/, + /جمعة/, + /سبت/] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, + abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, + wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, + any: /^(ص|م|صباح|ظهر|مساء|ليل)/ + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ص/, + pm: /^م/, + midnight: /^ن/, + noon: /^ظ/, + morning: /^ص/, + afternoon: /^بعد/, + evening: /^م/, + night: /^ل/ + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar-EG/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + arEG: arEG }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/cdn.min.js b/node_modules/date-fns/locale/ar-EG/cdn.min.js new file mode 100644 index 000000000..3056eb51f --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`في خلال ${r}`:`منذ ${r}`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`dd/MMM/y`,short:`d/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'الساعة' {{time}}`,long:`{{date}} 'الساعة' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'اللي جاي الساعة' p`,yesterday:`'إمبارح الساعة' p`,today:`'النهاردة الساعة' p`,tomorrow:`'بكرة الساعة' p`,nextWeek:`eeee 'الساعة' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م`,`ب.م`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`مايو`,`يونـ`,`يولـ`,`أغسـ`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,morning:`في الصباح`,noon:`ظهراً`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ar-EG`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ق/g,/^ب/g]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:`wide`,parsePatterns:{wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{arEG:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA.cjs b/node_modules/date-fns/locale/ar-MA.cjs new file mode 100644 index 000000000..99633d3ce --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.arMA = void 0; +var _index = require("./ar-MA/_lib/formatDistance.cjs"); +var _index2 = require("./ar-MA/_lib/formatLong.cjs"); +var _index3 = require("./ar-MA/_lib/formatRelative.cjs"); +var _index4 = require("./ar-MA/_lib/localize.cjs"); +var _index5 = require("./ar-MA/_lib/match.cjs"); + +/** + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) + */ +const arMA = (exports.arMA = { + code: "ar-MA", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + // Monday is 1 + weekStartsOn: 1, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ar-MA.d.cts b/node_modules/date-fns/locale/ar-MA.d.cts new file mode 100644 index 000000000..82800c315 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) + */ +export declare const arMA: Locale; diff --git a/node_modules/date-fns/locale/ar-MA.d.ts b/node_modules/date-fns/locale/ar-MA.d.ts new file mode 100644 index 000000000..82800c315 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) + */ +export declare const arMA: Locale; diff --git a/node_modules/date-fns/locale/ar-MA.js b/node_modules/date-fns/locale/ar-MA.js new file mode 100644 index 000000000..074bab1db --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ar-MA/_lib/formatDistance.js"; +import { formatLong } from "./ar-MA/_lib/formatLong.js"; +import { formatRelative } from "./ar-MA/_lib/formatRelative.js"; +import { localize } from "./ar-MA/_lib/localize.js"; +import { match } from "./ar-MA/_lib/match.js"; + +/** + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) + */ +export const arMA = { + code: "ar-MA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + // Monday is 1 + weekStartsOn: 1, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default arMA; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.cjs new file mode 100644 index 000000000..1309562f9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, + + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.js b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.js new file mode 100644 index 000000000..23c98cf24 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance.js @@ -0,0 +1,136 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, + + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.cjs new file mode 100644 index 000000000..d7416e3e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.cts new file mode 100644 index 000000000..4e8e1a801 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.cts @@ -0,0 +1,5 @@ +export declare const formatLong: { + date: import("../../types.ts").FormatLongFn; + time: import("../../types.ts").FormatLongFn; + dateTime: import("../../types.ts").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.ts new file mode 100644 index 000000000..4e8e1a801 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.d.ts @@ -0,0 +1,5 @@ +export declare const formatLong: { + date: import("../../types.ts").FormatLongFn; + time: import("../../types.ts").FormatLongFn; + dateTime: import("../../types.ts").FormatLongFn; +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong.js b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.js new file mode 100644 index 000000000..90ffe93e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.cjs new file mode 100644 index 000000000..ba8571f5b --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.js b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.js new file mode 100644 index 000000000..96dcced9e --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize.cjs b/node_modules/date-fns/locale/ar-MA/_lib/localize.cjs new file mode 100644 index 000000000..d74e86589 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "غ", "ش", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "ماي", + "يونـ", + "يولـ", + "غشت", + "شتنـ", + "أكتـ", + "نونـ", + "دجنـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "ماي", + "يونيو", + "يوليوز", + "غشت", + "شتنبر", + "أكتوبر", + "نونبر", + "دجنبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الإثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize.d.cts b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize.d.ts b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize.js b/node_modules/date-fns/locale/ar-MA/_lib/localize.js new file mode 100644 index 000000000..610182738 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "غ", "ش", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "ماي", + "يونـ", + "يولـ", + "غشت", + "شتنـ", + "أكتـ", + "نونـ", + "دجنـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "ماي", + "يونيو", + "يوليوز", + "غشت", + "شتنبر", + "أكتوبر", + "نونبر", + "دجنبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الإثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match.cjs b/node_modules/date-fns/locale/ar-MA/_lib/match.cjs new file mode 100644 index 000000000..39c36b75e --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/match.cjs @@ -0,0 +1,144 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^غ/i, + /^ش/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ين/i, + /^فب/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^غشت/i, + /^ش/i, + /^أك/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الإثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^إث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => Number(index) + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match.d.cts b/node_modules/date-fns/locale/ar-MA/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match.d.ts b/node_modules/date-fns/locale/ar-MA/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match.js b/node_modules/date-fns/locale/ar-MA/_lib/match.js new file mode 100644 index 000000000..ede8a4992 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/match.js @@ -0,0 +1,142 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^غ/i, + /^ش/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ين/i, + /^فب/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^غشت/i, + /^ش/i, + /^أك/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الإثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^إث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => Number(index) + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar-MA/cdn.js b/node_modules/date-fns/locale/ar-MA/cdn.js new file mode 100644 index 000000000..fb497ee9c --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/cdn.js @@ -0,0 +1,617 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-MA/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نصف دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً" + }, + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة" + }, + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً" + }, + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع" + }, + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً" + }, + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر" + }, + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + }, + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام" + }, + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام" + }, + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + } +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + if (count === 2) result = usageGroup.two;else + if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else + return "منذ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar-MA/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-MA/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "ي", + "ف", + "م", + "أ", + "م", + "ي", + "ي", + "غ", + "ش", + "أ", + "ن", + "د"], + + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "ماي", + "يونـ", + "يولـ", + "غشت", + "شتنـ", + "أكتـ", + "نونـ", + "دجنـ"], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "ماي", + "يونيو", + "يوليوز", + "غشت", + "شتنبر", + "أكتوبر", + "نونبر", + "دجنبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنـ", + "ثلا", + "أربـ", + "خميـ", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الإثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/ar-MA.js +/** +* @category Locales +* @summary Arabic locale (Moroccan Arabic). +* @language Moroccan Arabic +* @iso-639-2 ara +* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) +*/ +var arMA = { + code: "ar-MA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^قبل/i, /^بعد/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return Number(index) + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^غ/i, + /^ش/i, + /^أ/i, + /^ن/i, + /^د/i], + + any: [ + /^ين/i, + /^فب/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^غشت/i, + /^ش/i, + /^أك/i, + /^ن/i, + /^د/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/i, + /^ن/i, + /^ث/i, + /^ر/i, + /^خ/i, + /^ج/i, + /^س/i], + + wide: [ + /^الأحد/i, + /^الإثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i], + + any: [ + /^أح/i, + /^إث/i, + /^ث/i, + /^أر/i, + /^خ/i, + /^ج/i, + /^س/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar-MA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + arMA: arMA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/cdn.min.js b/node_modules/date-fns/locale/ar-MA/cdn.min.js new file mode 100644 index 000000000..19bcebf88 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`في خلال `+i:`منذ `+i:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`غ`,`ش`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`ماي`,`يونـ`,`يولـ`,`غشت`,`شتنـ`,`أكتـ`,`نونـ`,`دجنـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`ماي`,`يونيو`,`يوليوز`,`غشت`,`شتنبر`,`أكتوبر`,`نونبر`,`دجنبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الإثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js new file mode 100644 index 000000000..a0268af52 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js @@ -0,0 +1,135 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, + + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.cjs new file mode 100644 index 000000000..d7416e3e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js new file mode 100644 index 000000000..90ffe93e2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.cjs new file mode 100644 index 000000000..2eb92af1d --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js new file mode 100644 index 000000000..c273528ff --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize.cjs b/node_modules/date-fns/locale/ar-SA/_lib/localize.cjs new file mode 100644 index 000000000..800bc9c8d --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize.d.cts b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize.d.ts b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize.js b/node_modules/date-fns/locale/ar-SA/_lib/localize.js new file mode 100644 index 000000000..788f5f9d0 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنـ", "ثلا", "أربـ", "خميـ", "جمعة", "سبت"], + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match.cjs b/node_modules/date-fns/locale/ar-SA/_lib/match.cjs new file mode 100644 index 000000000..6e653b37b --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ين/i, + /^ف/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^أغ/i, + /^س/i, + /^أك/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match.d.cts b/node_modules/date-fns/locale/ar-SA/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match.d.ts b/node_modules/date-fns/locale/ar-SA/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match.js b/node_modules/date-fns/locale/ar-SA/_lib/match.js new file mode 100644 index 000000000..25e467cbd --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/match.js @@ -0,0 +1,142 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ين/i, + /^ف/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^أغ/i, + /^س/i, + /^أك/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar-SA/cdn.js b/node_modules/date-fns/locale/ar-SA/cdn.js new file mode 100644 index 000000000..5860b259d --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/cdn.js @@ -0,0 +1,614 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-SA/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية واحدة", + two: "أقل من ثانتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية واحدة", + two: "ثانتين", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نصف دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتين", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريباً", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً" + }, + xHours: { + one: "ساعة واحدة", + two: "ساعتين", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة" + }, + xDays: { + one: "يوم واحد", + two: "يومين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "أسبوع واحد تقريباً", + two: "أسبوعين تقريباً", + threeToTen: "{{count}} أسابيع تقريباً", + other: "{{count}} أسبوع تقريباً" + }, + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعين", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوع" + }, + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريباً", + threeToTen: "{{count}} أشهر تقريباً", + other: "{{count}} شهر تقريباً" + }, + xMonths: { + one: "شهر واحد", + two: "شهرين", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهر" + }, + aboutXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + }, + xYears: { + one: "عام واحد", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام" + }, + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام" + }, + almostXYears: { + one: "عام واحد تقريباً", + two: "عامين تقريباً", + threeToTen: "{{count}} أعوام تقريباً", + other: "{{count}} عام تقريباً" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2) result = tokenValue.two;else + if (count <= 10) result = tokenValue.threeToTen.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else + return "منذ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar-SA/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-SA/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "ي", + "ف", + "م", + "أ", + "م", + "ي", + "ي", + "أ", + "س", + "أ", + "ن", + "د"], + + abbreviated: [ + "ينا", + "فبر", + "مارس", + "أبريل", + "مايو", + "يونـ", + "يولـ", + "أغسـ", + "سبتـ", + "أكتـ", + "نوفـ", + "ديسـ"], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنـ", + "ثلا", + "أربـ", + "خميـ", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظهر", + evening: "مساءاً", + night: "ليلاً" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + midnight: "ن", + noon: "ظ", + morning: "في الصباح", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "في الصباح", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل" + }, + wide: { + am: "ص", + pm: "م", + midnight: "نصف الليل", + noon: "ظهر", + morning: "صباحاً", + afternoon: "بعد الظـهر", + evening: "في المساء", + night: "في الليل" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-SA.js +/** +* @category Locales +* @summary Arabic locale (Sauid Arabic). +* @language Arabic +* @iso-639-2 ara +* @author Dhaifallah Alwadani [@dalwadani](https://github.com/dalwadani) +*/ +var arSA = { + code: "ar-SA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^قبل/i, /^بعد/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i], + + any: [ + /^ين/i, + /^ف/i, + /^مار/i, + /^أب/i, + /^ماي/i, + /^يون/i, + /^يول/i, + /^أغ/i, + /^س/i, + /^أك/i, + /^ن/i, + /^د/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/i, + /^ن/i, + /^ث/i, + /^ر/i, + /^خ/i, + /^ج/i, + /^س/i], + + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i], + + any: [ + /^أح/i, + /^اث/i, + /^ث/i, + /^أر/i, + /^خ/i, + /^ج/i, + /^س/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar-SA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + arSA: arSA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/cdn.min.js b/node_modules/date-fns/locale/ar-SA/cdn.min.js new file mode 100644 index 000000000..56dee80c8 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`في خلال `+r:`منذ `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`مايو`,`يونـ`,`يولـ`,`أغسـ`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ar-SA`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{arSA:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN.cjs b/node_modules/date-fns/locale/ar-TN.cjs new file mode 100644 index 000000000..eca35edf8 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.arTN = void 0; +var _index = require("./ar-TN/_lib/formatDistance.cjs"); +var _index2 = require("./ar-TN/_lib/formatLong.cjs"); +var _index3 = require("./ar-TN/_lib/formatRelative.cjs"); +var _index4 = require("./ar-TN/_lib/localize.cjs"); +var _index5 = require("./ar-TN/_lib/match.cjs"); + +/** + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +const arTN = (exports.arTN = { + code: "ar-TN", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ar-TN.d.cts b/node_modules/date-fns/locale/ar-TN.d.cts new file mode 100644 index 000000000..cd06011df --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +export declare const arTN: Locale; diff --git a/node_modules/date-fns/locale/ar-TN.d.ts b/node_modules/date-fns/locale/ar-TN.d.ts new file mode 100644 index 000000000..cd06011df --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +export declare const arTN: Locale; diff --git a/node_modules/date-fns/locale/ar-TN.js b/node_modules/date-fns/locale/ar-TN.js new file mode 100644 index 000000000..0ab52e738 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ar-TN/_lib/formatDistance.js"; +import { formatLong } from "./ar-TN/_lib/formatLong.js"; +import { formatRelative } from "./ar-TN/_lib/formatRelative.js"; +import { localize } from "./ar-TN/_lib/localize.js"; +import { match } from "./ar-TN/_lib/match.js"; + +/** + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3](https://github.com/essana3) + */ +export const arTN = { + code: "ar-TN", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default arTN; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.cjs new file mode 100644 index 000000000..512a4519f --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من زوز ثواني", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية", + two: "زوز ثواني", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نص دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقايق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة", + two: "دقيقتين", + threeToTen: "{{count}} دقايق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة تقريب", + two: "ساعتين تقريب", + threeToTen: "{{count}} سوايع تقريب", + other: "{{count}} ساعة تقريب", + }, + + xHours: { + one: "ساعة", + two: "ساعتين", + threeToTen: "{{count}} سوايع", + other: "{{count}} ساعة", + }, + + xDays: { + one: "نهار", + two: "نهارين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "جمعة تقريب", + two: "جمعتين تقريب", + threeToTen: "{{count}} جماع تقريب", + other: "{{count}} جمعة تقريب", + }, + + xWeeks: { + one: "جمعة", + two: "جمعتين", + threeToTen: "{{count}} جماع", + other: "{{count}} جمعة", + }, + + aboutXMonths: { + one: "شهر تقريب", + two: "شهرين تقريب", + threeToTen: "{{count}} أشهرة تقريب", + other: "{{count}} شهر تقريب", + }, + + xMonths: { + one: "شهر", + two: "شهرين", + threeToTen: "{{count}} أشهرة", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب", + }, + + xYears: { + one: "عام", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب", + }, +}; + +const formatDistance = (token, count, options) => { + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في " + result; + } else { + return "عندو " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.js b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.js new file mode 100644 index 000000000..bd0c96628 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance.js @@ -0,0 +1,134 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من زوز ثواني", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية", + two: "زوز ثواني", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نص دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقايق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة", + two: "دقيقتين", + threeToTen: "{{count}} دقايق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة تقريب", + two: "ساعتين تقريب", + threeToTen: "{{count}} سوايع تقريب", + other: "{{count}} ساعة تقريب", + }, + + xHours: { + one: "ساعة", + two: "ساعتين", + threeToTen: "{{count}} سوايع", + other: "{{count}} ساعة", + }, + + xDays: { + one: "نهار", + two: "نهارين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "جمعة تقريب", + two: "جمعتين تقريب", + threeToTen: "{{count}} جماع تقريب", + other: "{{count}} جمعة تقريب", + }, + + xWeeks: { + one: "جمعة", + two: "جمعتين", + threeToTen: "{{count}} جماع", + other: "{{count}} جمعة", + }, + + aboutXMonths: { + one: "شهر تقريب", + two: "شهرين تقريب", + threeToTen: "{{count}} أشهرة تقريب", + other: "{{count}} شهر تقريب", + }, + + xMonths: { + one: "شهر", + two: "شهرين", + threeToTen: "{{count}} أشهرة", + other: "{{count}} شهر", + }, + + aboutXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب", + }, + + xYears: { + one: "عام", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام", + }, + + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام", + }, + + almostXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب", + }, +}; + +export const formatDistance = (token, count, options) => { + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "في " + result; + } else { + return "عندو " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.cjs new file mode 100644 index 000000000..4d3cb46dc --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'مع' {{time}}", + long: "{{date}} 'مع' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong.js b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.js new file mode 100644 index 000000000..ccfe3d9ef --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'مع' {{time}}", + long: "{{date}} 'مع' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.cjs new file mode 100644 index 000000000..618f971ee --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.cjs @@ -0,0 +1,14 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'إلي فات مع' p", + yesterday: "'البارح مع' p", + today: "'اليوم مع' p", + tomorrow: "'غدوة مع' p", + nextWeek: "eeee 'الجمعة الجاية مع' p 'نهار'", + other: "P", +}; + +const formatRelative = (token) => formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.js b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.js new file mode 100644 index 000000000..3a4c437ae --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative.js @@ -0,0 +1,10 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'إلي فات مع' p", + yesterday: "'البارح مع' p", + today: "'اليوم مع' p", + tomorrow: "'غدوة مع' p", + nextWeek: "eeee 'الجمعة الجاية مع' p 'نهار'", + other: "P", +}; + +export const formatRelative = (token) => formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize.cjs b/node_modules/date-fns/locale/ar-TN/_lib/localize.cjs new file mode 100644 index 000000000..e0672d972 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["د", "ن", "أ", "س", "أ", "ج", "ج", "م", "أ", "م", "ف", "ج"], + abbreviated: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, + wide: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, + wide: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, +}; + +const ordinalNumber = (num) => String(num); + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize.d.cts b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize.d.ts b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize.js b/node_modules/date-fns/locale/ar-TN/_lib/localize.js new file mode 100644 index 000000000..7faa1f974 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["د", "ن", "أ", "س", "أ", "ج", "ج", "م", "أ", "م", "ف", "ج"], + abbreviated: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, + wide: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, + wide: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل", + }, +}; + +const ordinalNumber = (num) => String(num); + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match.cjs b/node_modules/date-fns/locale/ar-TN/_lib/match.cjs new file mode 100644 index 000000000..f228efef6 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/, +}; +const parseEraPatterns = { + any: [/قبل/, /بعد/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جفمأسند]/, + abbreviated: + /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^جانفي/i, + /^فيفري/i, + /^مارس/i, + /^أفريل/i, + /^ماي/i, + /^جوان/i, + /^جويلية/i, + /^أوت/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, + any: /^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^ع/, + midnight: /نص الليل/, + noon: /قايلة/, + afternoon: /بعد القايلة/, + morning: /صباح/, + evening: /عشية/, + night: /ليل/, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match.d.cts b/node_modules/date-fns/locale/ar-TN/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match.d.ts b/node_modules/date-fns/locale/ar-TN/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match.js b/node_modules/date-fns/locale/ar-TN/_lib/match.js new file mode 100644 index 000000000..80e93711a --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/match.js @@ -0,0 +1,143 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/, +}; +const parseEraPatterns = { + any: [/قبل/, /بعد/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جفمأسند]/, + abbreviated: + /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^جانفي/i, + /^فيفري/i, + /^مارس/i, + /^أفريل/i, + /^ماي/i, + /^جوان/i, + /^جويلية/i, + /^أوت/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, + any: /^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^ع/, + midnight: /نص الليل/, + noon: /قايلة/, + afternoon: /بعد القايلة/, + morning: /صباح/, + evening: /عشية/, + night: /ليل/, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar-TN/cdn.js b/node_modules/date-fns/locale/ar-TN/cdn.js new file mode 100644 index 000000000..0c567ccb9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/cdn.js @@ -0,0 +1,612 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-TN/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من زوز ثواني", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية", + two: "زوز ثواني", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نص دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقايق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة", + two: "دقيقتين", + threeToTen: "{{count}} دقايق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "ساعة تقريب", + two: "ساعتين تقريب", + threeToTen: "{{count}} سوايع تقريب", + other: "{{count}} ساعة تقريب" + }, + xHours: { + one: "ساعة", + two: "ساعتين", + threeToTen: "{{count}} سوايع", + other: "{{count}} ساعة" + }, + xDays: { + one: "نهار", + two: "نهارين", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "جمعة تقريب", + two: "جمعتين تقريب", + threeToTen: "{{count}} جماع تقريب", + other: "{{count}} جمعة تقريب" + }, + xWeeks: { + one: "جمعة", + two: "جمعتين", + threeToTen: "{{count}} جماع", + other: "{{count}} جمعة" + }, + aboutXMonths: { + one: "شهر تقريب", + two: "شهرين تقريب", + threeToTen: "{{count}} أشهرة تقريب", + other: "{{count}} شهر تقريب" + }, + xMonths: { + one: "شهر", + two: "شهرين", + threeToTen: "{{count}} أشهرة", + other: "{{count}} شهر" + }, + aboutXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب" + }, + xYears: { + one: "عام", + two: "عامين", + threeToTen: "{{count}} أعوام", + other: "{{count}} عام" + }, + overXYears: { + one: "أكثر من عام", + two: "أكثر من عامين", + threeToTen: "أكثر من {{count}} أعوام", + other: "أكثر من {{count}} عام" + }, + almostXYears: { + one: "عام تقريب", + two: "عامين تقريب", + threeToTen: "{{count}} أعوام تقريب", + other: "{{count}} عام تقريب" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + if (count === 2) result = usageGroup.two;else + if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "في " + result;else + return "عندو " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'مع' {{time}}", + long: "{{date}} 'مع' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar-TN/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'إلي فات مع' p", + yesterday: "'البارح مع' p", + today: "'اليوم مع' p", + tomorrow: "'غدوة مع' p", + nextWeek: "eeee 'الجمعة الجاية مع' p 'نهار'", + other: "P" +}; +var formatRelative = function formatRelative(token) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar-TN/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "د", + "ن", + "أ", + "س", + "أ", + "ج", + "ج", + "م", + "أ", + "م", + "ف", + "ج"], + + abbreviated: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"], + + wide: [ + "جانفي", + "فيفري", + "مارس", + "أفريل", + "ماي", + "جوان", + "جويلية", + "أوت", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل" + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل" + }, + wide: { + am: "ص", + pm: "ع", + morning: "الصباح", + noon: "القايلة", + afternoon: "بعد القايلة", + evening: "العشية", + night: "الليل", + midnight: "نص الليل" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل" + }, + abbreviated: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل" + }, + wide: { + am: "ص", + pm: "ع", + morning: "في الصباح", + noon: "في القايلة", + afternoon: "بعد القايلة", + evening: "في العشية", + night: "في الليل", + midnight: "نص الليل" + } +}; +var ordinalNumber = function ordinalNumber(num) {return String(num);}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/ar-TN.js +/** +* @category Locales +* @summary Arabic locale (Tunisian Arabic). +* @language Arabic +* @iso-639-2 ara +* @author Koussay Haj Kacem [@essana3](https://github.com/essana3) +*/ +var arTN = { + code: "ar-TN", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/قبل/, /بعد/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[جفمأسند]/, + abbreviated: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ج/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ج/i, + /^ج/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i], + + any: [ + /^جانفي/i, + /^فيفري/i, + /^مارس/i, + /^أفريل/i, + /^ماي/i, + /^جوان/i, + /^جويلية/i, + /^أوت/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/i, + /^ن/i, + /^ث/i, + /^ر/i, + /^خ/i, + /^ج/i, + /^س/i], + + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i], + + any: [ + /^أح/i, + /^اث/i, + /^ث/i, + /^أر/i, + /^خ/i, + /^ج/i, + /^س/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, + any: /^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/ + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ص/, + pm: /^ع/, + midnight: /نص الليل/, + noon: /قايلة/, + afternoon: /بعد القايلة/, + morning: /صباح/, + evening: /عشية/, + night: /ليل/ + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar-TN/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + arTN: arTN }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/cdn.min.js b/node_modules/date-fns/locale/ar-TN/cdn.min.js new file mode 100644 index 000000000..02c60c60f --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`في `+i:`عندو `+i:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss`,long:`HH:mm:ss`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'مع' {{time}}`,long:`{{date}} 'مع' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'إلي فات مع' p`,yesterday:`'البارح مع' p`,today:`'اليوم مع' p`,tomorrow:`'غدوة مع' p`,nextWeek:`eeee 'الجمعة الجاية مع' p 'نهار'`,other:`P`},d=function(e){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`د`,`ن`,`أ`,`س`,`أ`,`ج`,`ج`,`م`,`أ`,`م`,`ف`,`ج`],abbreviated:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],wide:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`},abbreviated:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`},wide:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`},abbreviated:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`},wide:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ar/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ar/_lib/formatDistance.js b/node_modules/date-fns/locale/ar/_lib/formatDistance.js new file mode 100644 index 000000000..5d7da65d9 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatDistance.js @@ -0,0 +1,134 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من ثانيتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية", + }, + + xSeconds: { + one: "ثانية واحدة", + two: "ثانيتان", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية", + }, + + halfAMinute: "نصف دقيقة", + + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة", + }, + + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتان", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة", + }, + + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريبا", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً", + }, + + xHours: { + one: "ساعة واحدة", + two: "ساعتان", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة", + }, + + xDays: { + one: "يوم واحد", + two: "يومان", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم", + }, + + aboutXWeeks: { + one: "أسبوع واحد تقريبا", + two: "أسبوعين تقريبا", + threeToTen: "{{count}} أسابيع تقريبا", + other: "{{count}} أسبوعا تقريبا", + }, + + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعان", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوعا", + }, + + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريبا", + threeToTen: "{{count}} أشهر تقريبا", + other: "{{count}} شهرا تقريباً", + }, + + xMonths: { + one: "شهر واحد", + two: "شهران", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهرا", + }, + + aboutXYears: { + one: "سنة واحدة تقريباً", + two: "سنتين تقريبا", + threeToTen: "{{count}} سنوات تقريباً", + other: "{{count}} سنة تقريباً", + }, + + xYears: { + one: "سنة واحد", + two: "سنتان", + threeToTen: "{{count}} سنوات", + other: "{{count}} سنة", + }, + + overXYears: { + one: "أكثر من سنة", + two: "أكثر من سنتين", + threeToTen: "أكثر من {{count}} سنوات", + other: "أكثر من {{count}} سنة", + }, + + almostXYears: { + one: "ما يقارب سنة واحدة", + two: "ما يقارب سنتين", + threeToTen: "ما يقارب {{count}} سنوات", + other: "ما يقارب {{count}} سنة", + }, +}; + +export const formatDistance = (token, count, options) => { + const usageGroup = formatDistanceLocale[token]; + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace("{{count}}", String(count)); + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "خلال " + result; + } else { + return "منذ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong.cjs b/node_modules/date-fns/locale/ar/_lib/formatLong.cjs new file mode 100644 index 000000000..3a039020b --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند الساعة' {{time}}", + long: "{{date}} 'عند الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ar/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ar/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong.js b/node_modules/date-fns/locale/ar/_lib/formatLong.js new file mode 100644 index 000000000..f9d1e2fa2 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'عند الساعة' {{time}}", + long: "{{date}} 'عند الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ar/_lib/formatRelative.cjs new file mode 100644 index 000000000..592148dc4 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative.cjs @@ -0,0 +1,14 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'الماضي عند الساعة' p", + yesterday: "'الأمس عند الساعة' p", + today: "'اليوم عند الساعة' p", + tomorrow: "'غدا عند الساعة' p", + nextWeek: "eeee 'القادم عند الساعة' p", + other: "P", +}; + +const formatRelative = (token) => formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative.js b/node_modules/date-fns/locale/ar/_lib/formatRelative.js new file mode 100644 index 000000000..324b7dabd --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative.js @@ -0,0 +1,10 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'الماضي عند الساعة' p", + yesterday: "'الأمس عند الساعة' p", + today: "'اليوم عند الساعة' p", + tomorrow: "'غدا عند الساعة' p", + nextWeek: "eeee 'القادم عند الساعة' p", + other: "P", +}; + +export const formatRelative = (token) => formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ar/_lib/localize.cjs b/node_modules/date-fns/locale/ar/_lib/localize.cjs new file mode 100644 index 000000000..c8ae5b044 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, + wide: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, + wide: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, +}; + +const ordinalNumber = (num) => String(num); + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ar/_lib/localize.d.cts b/node_modules/date-fns/locale/ar/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar/_lib/localize.d.ts b/node_modules/date-fns/locale/ar/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ar/_lib/localize.js b/node_modules/date-fns/locale/ar/_lib/localize.js new file mode 100644 index 000000000..89cb34d03 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ر1", "ر2", "ر3", "ر4"], + wide: ["الربع الأول", "الربع الثاني", "الربع الثالث", "الربع الرابع"], +}; + +const monthValues = { + narrow: ["ي", "ف", "م", "أ", "م", "ي", "ي", "أ", "س", "أ", "ن", "د"], + abbreviated: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر", + ], +}; + +const dayValues = { + narrow: ["ح", "ن", "ث", "ر", "خ", "ج", "س"], + short: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + abbreviated: ["أحد", "اثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, + wide: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, + wide: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل", + }, +}; + +const ordinalNumber = (num) => String(num); + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ar/_lib/match.cjs b/node_modules/date-fns/locale/ar/_lib/match.cjs new file mode 100644 index 000000000..e868b40f6 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/, +}; +const parseEraPatterns = { + any: [/قبل/, /بعد/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[أيفمسند]/, + abbreviated: + /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^يناير/i, + /^فبراير/i, + /^مارس/i, + /^أبريل/i, + /^مايو/i, + /^يونيو/i, + /^يوليو/i, + /^أغسطس/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, + any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /منتصف الليل/, + noon: /الظهر/, + afternoon: /بعد الظهر/, + morning: /في الصباح/, + evening: /في المساء/, + night: /في الليل/, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ar/_lib/match.d.cts b/node_modules/date-fns/locale/ar/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar/_lib/match.d.ts b/node_modules/date-fns/locale/ar/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ar/_lib/match.js b/node_modules/date-fns/locale/ar/_lib/match.js new file mode 100644 index 000000000..235811247 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/match.js @@ -0,0 +1,143 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/, +}; +const parseEraPatterns = { + any: [/قبل/, /بعد/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[أيفمسند]/, + abbreviated: + /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +}; +const parseMonthPatterns = { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^يناير/i, + /^فبراير/i, + /^مارس/i, + /^أبريل/i, + /^مايو/i, + /^يونيو/i, + /^يوليو/i, + /^أغسطس/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i, +}; +const parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i, + ], + + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, + any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /منتصف الليل/, + noon: /الظهر/, + afternoon: /بعد الظهر/, + morning: /في الصباح/, + evening: /في المساء/, + night: /في الليل/, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ar/cdn.js b/node_modules/date-fns/locale/ar/cdn.js new file mode 100644 index 000000000..47c42359a --- /dev/null +++ b/node_modules/date-fns/locale/ar/cdn.js @@ -0,0 +1,613 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "أقل من ثانية", + two: "أقل من ثانيتين", + threeToTen: "أقل من {{count}} ثواني", + other: "أقل من {{count}} ثانية" + }, + xSeconds: { + one: "ثانية واحدة", + two: "ثانيتان", + threeToTen: "{{count}} ثواني", + other: "{{count}} ثانية" + }, + halfAMinute: "نصف دقيقة", + lessThanXMinutes: { + one: "أقل من دقيقة", + two: "أقل من دقيقتين", + threeToTen: "أقل من {{count}} دقائق", + other: "أقل من {{count}} دقيقة" + }, + xMinutes: { + one: "دقيقة واحدة", + two: "دقيقتان", + threeToTen: "{{count}} دقائق", + other: "{{count}} دقيقة" + }, + aboutXHours: { + one: "ساعة واحدة تقريباً", + two: "ساعتين تقريبا", + threeToTen: "{{count}} ساعات تقريباً", + other: "{{count}} ساعة تقريباً" + }, + xHours: { + one: "ساعة واحدة", + two: "ساعتان", + threeToTen: "{{count}} ساعات", + other: "{{count}} ساعة" + }, + xDays: { + one: "يوم واحد", + two: "يومان", + threeToTen: "{{count}} أيام", + other: "{{count}} يوم" + }, + aboutXWeeks: { + one: "أسبوع واحد تقريبا", + two: "أسبوعين تقريبا", + threeToTen: "{{count}} أسابيع تقريبا", + other: "{{count}} أسبوعا تقريبا" + }, + xWeeks: { + one: "أسبوع واحد", + two: "أسبوعان", + threeToTen: "{{count}} أسابيع", + other: "{{count}} أسبوعا" + }, + aboutXMonths: { + one: "شهر واحد تقريباً", + two: "شهرين تقريبا", + threeToTen: "{{count}} أشهر تقريبا", + other: "{{count}} شهرا تقريباً" + }, + xMonths: { + one: "شهر واحد", + two: "شهران", + threeToTen: "{{count}} أشهر", + other: "{{count}} شهرا" + }, + aboutXYears: { + one: "سنة واحدة تقريباً", + two: "سنتين تقريبا", + threeToTen: "{{count}} سنوات تقريباً", + other: "{{count}} سنة تقريباً" + }, + xYears: { + one: "سنة واحد", + two: "سنتان", + threeToTen: "{{count}} سنوات", + other: "{{count}} سنة" + }, + overXYears: { + one: "أكثر من سنة", + two: "أكثر من سنتين", + threeToTen: "أكثر من {{count}} سنوات", + other: "أكثر من {{count}} سنة" + }, + almostXYears: { + one: "ما يقارب سنة واحدة", + two: "ما يقارب سنتين", + threeToTen: "ما يقارب {{count}} سنوات", + other: "ما يقارب {{count}} سنة" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + if (count === 2) result = usageGroup.two;else + if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "خلال " + result;else + return "منذ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE، do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss", + long: "HH:mm:ss", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'عند الساعة' {{time}}", + long: "{{date}} 'عند الساعة' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ar/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'الماضي عند الساعة' p", + yesterday: "'الأمس عند الساعة' p", + today: "'اليوم عند الساعة' p", + tomorrow: "'غدا عند الساعة' p", + nextWeek: "eeee 'القادم عند الساعة' p", + other: "P" +}; +var formatRelative = function formatRelative(token) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ar/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل الميلاد", "بعد الميلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ر1", + "ر2", + "ر3", + "ر4"], + + wide: [ + "الربع الأول", + "الربع الثاني", + "الربع الثالث", + "الربع الرابع"] + +}; +var monthValues = { + narrow: [ + "ي", + "ف", + "م", + "أ", + "م", + "ي", + "ي", + "أ", + "س", + "أ", + "ن", + "د"], + + abbreviated: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"], + + wide: [ + "يناير", + "فبراير", + "مارس", + "أبريل", + "مايو", + "يونيو", + "يوليو", + "أغسطس", + "سبتمبر", + "أكتوبر", + "نوفمبر", + "ديسمبر"] + +}; +var dayValues = { + narrow: [ + "ح", + "ن", + "ث", + "ر", + "خ", + "ج", + "س"], + + short: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + abbreviated: [ + "أحد", + "اثنين", + "ثلاثاء", + "أربعاء", + "خميس", + "جمعة", + "سبت"], + + wide: [ + "الأحد", + "الاثنين", + "الثلاثاء", + "الأربعاء", + "الخميس", + "الجمعة", + "السبت"] + +}; +var dayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل" + }, + wide: { + am: "ص", + pm: "م", + morning: "الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "المساء", + night: "الليل", + midnight: "منتصف الليل" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل" + }, + abbreviated: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل" + }, + wide: { + am: "ص", + pm: "م", + morning: "في الصباح", + noon: "الظهر", + afternoon: "بعد الظهر", + evening: "في المساء", + night: "في الليل", + midnight: "منتصف الليل" + } +}; +var ordinalNumber = function ordinalNumber(num) {return String(num);}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/ar.js +/** +* @category Locales +* @summary Arabic locale (Modern Standard Arabic - Al-fussha). +* @language Modern Standard Arabic +* @iso-639-2 ara +* @author Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO) +* @author Koussay Haj Kacem [@essana3](https://github.com/essana3) +*/ +var ar = { + code: "ar", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/قبل/, /بعد/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[أيفمسند]/, + abbreviated: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ي/i, + /^ف/i, + /^م/i, + /^أ/i, + /^م/i, + /^ي/i, + /^ي/i, + /^أ/i, + /^س/i, + /^أ/i, + /^ن/i, + /^د/i], + + any: [ + /^يناير/i, + /^فبراير/i, + /^مارس/i, + /^أبريل/i, + /^مايو/i, + /^يونيو/i, + /^يوليو/i, + /^أغسطس/i, + /^سبتمبر/i, + /^أكتوبر/i, + /^نوفمبر/i, + /^ديسمبر/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ح/i, + /^ن/i, + /^ث/i, + /^ر/i, + /^خ/i, + /^ج/i, + /^س/i], + + wide: [ + /^الأحد/i, + /^الاثنين/i, + /^الثلاثاء/i, + /^الأربعاء/i, + /^الخميس/i, + /^الجمعة/i, + /^السبت/i], + + any: [ + /^أح/i, + /^اث/i, + /^ث/i, + /^أر/i, + /^خ/i, + /^ج/i, + /^س/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, + any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/ + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ص/, + pm: /^م/, + midnight: /منتصف الليل/, + noon: /الظهر/, + afternoon: /بعد الظهر/, + morning: /في الصباح/, + evening: /في المساء/, + night: /في الليل/ + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 6, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ar/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ar: ar }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/cdn.min.js b/node_modules/date-fns/locale/ar/cdn.min.js new file mode 100644 index 000000000..0a846d375 --- /dev/null +++ b/node_modules/date-fns/locale/ar/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`خلال `+i:`منذ `+i:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss`,long:`HH:mm:ss`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'عند الساعة' {{time}}`,long:`{{date}} 'عند الساعة' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'الماضي عند الساعة' p`,yesterday:`'الأمس عند الساعة' p`,today:`'اليوم عند الساعة' p`,tomorrow:`'غدا عند الساعة' p`,nextWeek:`eeee 'القادم عند الساعة' p`,other:`P`},d=function(e){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " sonra"; + } else { + return result + " əvvəl"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/az/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/az/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/az/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/az/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/az/_lib/formatDistance.js b/node_modules/date-fns/locale/az/_lib/formatDistance.js new file mode 100644 index 000000000..ab0739e98 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyədən az", + other: "{{count}} bir saniyədən az", + }, + + xSeconds: { + one: "1 saniyə", + other: "{{count}} saniyə", + }, + + halfAMinute: "yarım dəqiqə", + + lessThanXMinutes: { + one: "bir dəqiqədən az", + other: "{{count}} bir dəqiqədən az", + }, + + xMinutes: { + one: "bir dəqiqə", + other: "{{count}} dəqiqə", + }, + + aboutXHours: { + one: "təxminən 1 saat", + other: "təxminən {{count}} saat", + }, + + xHours: { + one: "1 saat", + other: "{{count}} saat", + }, + + xDays: { + one: "1 gün", + other: "{{count}} gün", + }, + + aboutXWeeks: { + one: "təxminən 1 həftə", + other: "təxminən {{count}} həftə", + }, + + xWeeks: { + one: "1 həftə", + other: "{{count}} həftə", + }, + + aboutXMonths: { + one: "təxminən 1 ay", + other: "təxminən {{count}} ay", + }, + + xMonths: { + one: "1 ay", + other: "{{count}} ay", + }, + + aboutXYears: { + one: "təxminən 1 il", + other: "təxminən {{count}} il", + }, + + xYears: { + one: "1 il", + other: "{{count}} il", + }, + + overXYears: { + one: "1 ildən çox", + other: "{{count}} ildən çox", + }, + + almostXYears: { + one: "demək olar ki 1 il", + other: "demək olar ki {{count}} il", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " sonra"; + } else { + return result + " əvvəl"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/az/_lib/formatLong.cjs b/node_modules/date-fns/locale/az/_lib/formatLong.cjs new file mode 100644 index 000000000..d956b4afe --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/az/_lib/formatLong.d.cts b/node_modules/date-fns/locale/az/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/az/_lib/formatLong.d.ts b/node_modules/date-fns/locale/az/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/az/_lib/formatLong.js b/node_modules/date-fns/locale/az/_lib/formatLong.js new file mode 100644 index 000000000..ede56cc81 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative.cjs b/node_modules/date-fns/locale/az/_lib/formatRelative.cjs new file mode 100644 index 000000000..3def93551 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/az/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/az/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative.js b/node_modules/date-fns/locale/az/_lib/formatRelative.js new file mode 100644 index 000000000..78d5504bf --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/az/_lib/localize.cjs b/node_modules/date-fns/locale/az/_lib/localize.cjs new file mode 100644 index 000000000..03e19ce43 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize.cjs @@ -0,0 +1,208 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["e.ə", "b.e"], + abbreviated: ["e.ə", "b.e"], + wide: ["eramızdan əvvəl", "bizim era"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1ci kvartal", "2ci kvartal", "3cü kvartal", "4cü kvartal"], +}; +const monthValues = { + narrow: ["Y", "F", "M", "A", "M", "İ", "İ", "A", "S", "O", "N", "D"], + abbreviated: [ + "Yan", + "Fev", + "Mar", + "Apr", + "May", + "İyun", + "İyul", + "Avq", + "Sen", + "Okt", + "Noy", + "Dek", + ], + + wide: [ + "Yanvar", + "Fevral", + "Mart", + "Aprel", + "May", + "İyun", + "İyul", + "Avqust", + "Sentyabr", + "Oktyabr", + "Noyabr", + "Dekabr", + ], +}; + +const dayValues = { + narrow: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."], + short: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."], + abbreviated: ["Baz", "Baz.e", "Çər.a", "Çər", "Cüm.a", "Cüm", "Şə"], + wide: [ + "Bazar", + "Bazar ertəsi", + "Çərşənbə axşamı", + "Çərşənbə", + "Cümə axşamı", + "Cümə", + "Şənbə", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, +}; + +const suffixes = { + 1: "-inci", + 5: "-inci", + 8: "-inci", + 70: "-inci", + 80: "-inci", + 2: "-nci", + 7: "-nci", + 20: "-nci", + 50: "-nci", + 3: "-üncü", + 4: "-üncü", + 100: "-üncü", + 6: "-ncı", + 9: "-uncu", + 10: "-uncu", + 30: "-uncu", + 60: "-ıncı", + 90: "-ıncı", +}; + +const getSuffix = (number) => { + if (number === 0) { + // special case for zero + return number + "-ıncı"; + } + + const a = number % 10; + const b = (number % 100) - a; + const c = number >= 100 ? 100 : null; + + if (suffixes[a]) { + return suffixes[a]; + } else if (suffixes[b]) { + return suffixes[b]; + } else if (c !== null) { + return suffixes[c]; + } + return ""; +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const suffix = getSuffix(number); + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/az/_lib/localize.d.cts b/node_modules/date-fns/locale/az/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/az/_lib/localize.d.ts b/node_modules/date-fns/locale/az/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/az/_lib/localize.js b/node_modules/date-fns/locale/az/_lib/localize.js new file mode 100644 index 000000000..84359d520 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize.js @@ -0,0 +1,206 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["e.ə", "b.e"], + abbreviated: ["e.ə", "b.e"], + wide: ["eramızdan əvvəl", "bizim era"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1ci kvartal", "2ci kvartal", "3cü kvartal", "4cü kvartal"], +}; +const monthValues = { + narrow: ["Y", "F", "M", "A", "M", "İ", "İ", "A", "S", "O", "N", "D"], + abbreviated: [ + "Yan", + "Fev", + "Mar", + "Apr", + "May", + "İyun", + "İyul", + "Avq", + "Sen", + "Okt", + "Noy", + "Dek", + ], + + wide: [ + "Yanvar", + "Fevral", + "Mart", + "Aprel", + "May", + "İyun", + "İyul", + "Avqust", + "Sentyabr", + "Oktyabr", + "Noyabr", + "Dekabr", + ], +}; + +const dayValues = { + narrow: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."], + short: ["B.", "B.e", "Ç.a", "Ç.", "C.a", "C.", "Ş."], + abbreviated: ["Baz", "Baz.e", "Çər.a", "Çər", "Cüm.a", "Cüm", "Şə"], + wide: [ + "Bazar", + "Bazar ertəsi", + "Çərşənbə axşamı", + "Çərşənbə", + "Cümə axşamı", + "Cümə", + "Şənbə", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə", + }, +}; + +const suffixes = { + 1: "-inci", + 5: "-inci", + 8: "-inci", + 70: "-inci", + 80: "-inci", + 2: "-nci", + 7: "-nci", + 20: "-nci", + 50: "-nci", + 3: "-üncü", + 4: "-üncü", + 100: "-üncü", + 6: "-ncı", + 9: "-uncu", + 10: "-uncu", + 30: "-uncu", + 60: "-ıncı", + 90: "-ıncı", +}; + +const getSuffix = (number) => { + if (number === 0) { + // special case for zero + return number + "-ıncı"; + } + + const a = number % 10; + const b = (number % 100) - a; + const c = number >= 100 ? 100 : null; + + if (suffixes[a]) { + return suffixes[a]; + } else if (suffixes[b]) { + return suffixes[b]; + } else if (c !== null) { + return suffixes[c]; + } + return ""; +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const suffix = getSuffix(number); + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/az/_lib/match.cjs b/node_modules/date-fns/locale/az/_lib/match.cjs new file mode 100644 index 000000000..a9cd82255 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/match.cjs @@ -0,0 +1,187 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i, +}; +const parseEraPatterns = { + any: [/^b$/i, /^(a|c)$/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i, +}; +const parseMonthPatterns = { + narrow: [ + /^[(?-i)y]$/i, + /^[(?-i)f]$/i, + /^[(?-i)m]$/i, + /^[(?-i)a]$/i, + /^[(?-i)m]$/i, + /^[(?-i)i]$/i, + /^[(?-i)i]$/i, + /^[(?-i)a]$/i, + /^[(?-i)s]$/i, + /^[(?-i)o]$/i, + /^[(?-i)n]$/i, + /^[(?-i)d]$/i, + ], + + abbreviated: [ + /^Yan$/i, + /^Fev$/i, + /^Mar$/i, + /^Apr$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avg$/i, + /^Sen$/i, + /^Okt$/i, + /^Noy$/i, + /^Dek$/i, + ], + + wide: [ + /^Yanvar$/i, + /^Fevral$/i, + /^Mart$/i, + /^Aprel$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avgust$/i, + /^Sentyabr$/i, + /^Oktyabr$/i, + /^Noyabr$/i, + /^Dekabr$/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i, +}; +const parseDayPatterns = { + narrow: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i, + ], + + abbreviated: [ + /^Baz$/i, + /^Baz\.e$/i, + /^Çər\.a$/i, + /^Çər$/i, + /^Cüm\.a$/i, + /^Cüm$/i, + /^Şə$/i, + ], + + wide: [ + /^Bazar$/i, + /^Bazar ertəsi$/i, + /^Çərşənbə axşamı$/i, + /^Çərşənbə$/i, + /^Cümə axşamı$/i, + /^Cümə$/i, + /^Şənbə$/i, + ], + + any: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "narrow", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/az/_lib/match.d.cts b/node_modules/date-fns/locale/az/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/az/_lib/match.d.ts b/node_modules/date-fns/locale/az/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/az/_lib/match.js b/node_modules/date-fns/locale/az/_lib/match.js new file mode 100644 index 000000000..ee2c180a2 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/match.js @@ -0,0 +1,184 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i, +}; +const parseEraPatterns = { + any: [/^b$/i, /^(a|c)$/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i, +}; +const parseMonthPatterns = { + narrow: [ + /^[(?-i)y]$/i, + /^[(?-i)f]$/i, + /^[(?-i)m]$/i, + /^[(?-i)a]$/i, + /^[(?-i)m]$/i, + /^[(?-i)i]$/i, + /^[(?-i)i]$/i, + /^[(?-i)a]$/i, + /^[(?-i)s]$/i, + /^[(?-i)o]$/i, + /^[(?-i)n]$/i, + /^[(?-i)d]$/i, + ], + + abbreviated: [ + /^Yan$/i, + /^Fev$/i, + /^Mar$/i, + /^Apr$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avg$/i, + /^Sen$/i, + /^Okt$/i, + /^Noy$/i, + /^Dek$/i, + ], + + wide: [ + /^Yanvar$/i, + /^Fevral$/i, + /^Mart$/i, + /^Aprel$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avgust$/i, + /^Sentyabr$/i, + /^Oktyabr$/i, + /^Noyabr$/i, + /^Dekabr$/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i, +}; +const parseDayPatterns = { + narrow: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i, + ], + + abbreviated: [ + /^Baz$/i, + /^Baz\.e$/i, + /^Çər\.a$/i, + /^Çər$/i, + /^Cüm\.a$/i, + /^Cüm$/i, + /^Şə$/i, + ], + + wide: [ + /^Bazar$/i, + /^Bazar ertəsi$/i, + /^Çərşənbə axşamı$/i, + /^Çərşənbə$/i, + /^Cümə axşamı$/i, + /^Cümə$/i, + /^Şənbə$/i, + ], + + any: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "narrow", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/az/cdn.js b/node_modules/date-fns/locale/az/cdn.js new file mode 100644 index 000000000..bae5a7087 --- /dev/null +++ b/node_modules/date-fns/locale/az/cdn.js @@ -0,0 +1,635 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/az/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyədən az", + other: "{{count}} bir saniyədən az" + }, + xSeconds: { + one: "1 saniyə", + other: "{{count}} saniyə" + }, + halfAMinute: "yarım dəqiqə", + lessThanXMinutes: { + one: "bir dəqiqədən az", + other: "{{count}} bir dəqiqədən az" + }, + xMinutes: { + one: "bir dəqiqə", + other: "{{count}} dəqiqə" + }, + aboutXHours: { + one: "təxminən 1 saat", + other: "təxminən {{count}} saat" + }, + xHours: { + one: "1 saat", + other: "{{count}} saat" + }, + xDays: { + one: "1 gün", + other: "{{count}} gün" + }, + aboutXWeeks: { + one: "təxminən 1 həftə", + other: "təxminən {{count}} həftə" + }, + xWeeks: { + one: "1 həftə", + other: "{{count}} həftə" + }, + aboutXMonths: { + one: "təxminən 1 ay", + other: "təxminən {{count}} ay" + }, + xMonths: { + one: "1 ay", + other: "{{count}} ay" + }, + aboutXYears: { + one: "təxminən 1 il", + other: "təxminən {{count}} il" + }, + xYears: { + one: "1 il", + other: "{{count}} il" + }, + overXYears: { + one: "1 ildən çox", + other: "{{count}} ildən çox" + }, + almostXYears: { + one: "demək olar ki 1 il", + other: "demək olar ki {{count}} il" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " sonra";else + return result + " əvvəl"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/az/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/az/_lib/localize.js +var eraValues = { + narrow: ["e.ə", "b.e"], + abbreviated: ["e.ə", "b.e"], + wide: ["eramızdan əvvəl", "bizim era"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1ci kvartal", + "2ci kvartal", + "3cü kvartal", + "4cü kvartal"] + +}; +var monthValues = { + narrow: [ + "Y", + "F", + "M", + "A", + "M", + "İ", + "İ", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Yan", + "Fev", + "Mar", + "Apr", + "May", + "İyun", + "İyul", + "Avq", + "Sen", + "Okt", + "Noy", + "Dek"], + + wide: [ + "Yanvar", + "Fevral", + "Mart", + "Aprel", + "May", + "İyun", + "İyul", + "Avqust", + "Sentyabr", + "Oktyabr", + "Noyabr", + "Dekabr"] + +}; +var dayValues = { + narrow: [ + "B.", + "B.e", + "Ç.a", + "Ç.", + "C.a", + "C.", + "Ş."], + + short: [ + "B.", + "B.e", + "Ç.a", + "Ç.", + "C.a", + "C.", + "Ş."], + + abbreviated: [ + "Baz", + "Baz.e", + "Çər.a", + "Çər", + "Cüm.a", + "Cüm", + "Şə"], + + wide: [ + "Bazar", + "Bazar ertəsi", + "Çərşənbə axşamı", + "Çərşənbə", + "Cümə axşamı", + "Cümə", + "Şənbə"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gecəyarı", + noon: "gün", + morning: "səhər", + afternoon: "gündüz", + evening: "axşam", + night: "gecə" + } +}; +var suffixes = { + 1: "-inci", + 5: "-inci", + 8: "-inci", + 70: "-inci", + 80: "-inci", + 2: "-nci", + 7: "-nci", + 20: "-nci", + 50: "-nci", + 3: "-üncü", + 4: "-üncü", + 100: "-üncü", + 6: "-ncı", + 9: "-uncu", + 10: "-uncu", + 30: "-uncu", + 60: "-ıncı", + 90: "-ıncı" +}; +var getSuffix = function getSuffix(number) { + if (number === 0) return number + "-ıncı"; + var a = number % 10; + var b = number % 100 - a; + var c = number >= 100 ? 100 : null; + if (suffixes[a]) return suffixes[a];else + if (suffixes[b]) return suffixes[b];else + if (c !== null) return suffixes[c]; + return ""; +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + getSuffix(number); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/az.js +/** +* @category Locales +* @summary Azerbaijani locale. +* @language Azerbaijani +* @iso-639-2 aze +*/ +var az = { + code: "az", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b$/i, /^(a|c)$/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^[(?-i)y]$/i, + /^[(?-i)f]$/i, + /^[(?-i)m]$/i, + /^[(?-i)a]$/i, + /^[(?-i)m]$/i, + /^[(?-i)i]$/i, + /^[(?-i)i]$/i, + /^[(?-i)a]$/i, + /^[(?-i)s]$/i, + /^[(?-i)o]$/i, + /^[(?-i)n]$/i, + /^[(?-i)d]$/i], + + abbreviated: [ + /^Yan$/i, + /^Fev$/i, + /^Mar$/i, + /^Apr$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avg$/i, + /^Sen$/i, + /^Okt$/i, + /^Noy$/i, + /^Dek$/i], + + wide: [ + /^Yanvar$/i, + /^Fevral$/i, + /^Mart$/i, + /^Aprel$/i, + /^May$/i, + /^İyun$/i, + /^İyul$/i, + /^Avgust$/i, + /^Sentyabr$/i, + /^Oktyabr$/i, + /^Noyabr$/i, + /^Dekabr$/i] + + }, + defaultParseWidth: "narrow" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i], + + abbreviated: [ + /^Baz$/i, + /^Baz\.e$/i, + /^Çər\.a$/i, + /^Çər$/i, + /^Cüm\.a$/i, + /^Cüm$/i, + /^Şə$/i], + + wide: [ + /^Bazar$/i, + /^Bazar ertəsi$/i, + /^Çərşənbə axşamı$/i, + /^Çərşənbə$/i, + /^Cümə axşamı$/i, + /^Cümə$/i, + /^Şənbə$/i], + + any: [ + /^B\.$/i, + /^B\.e$/i, + /^Ç\.a$/i, + /^Ç\.$/i, + /^C\.a$/i, + /^C\.$/i, + /^Ş\.$/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/az/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + az: az }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/cdn.min.js b/node_modules/date-fns/locale/az/cdn.min.js new file mode 100644 index 000000000..7b71b8d50 --- /dev/null +++ b/node_modules/date-fns/locale/az/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` sonra`:r+` əvvəl`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do MMMM y 'il'`,long:`do MMMM y 'il'`,medium:`d MMM y 'il'`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}} - 'də'`,long:`{{date}} {{time}} - 'də'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'sonuncu' eeee p -'də'`,yesterday:`'dünən' p -'də'`,today:`'bugün' p -'də'`,tomorrow:`'sabah' p -'də'`,nextWeek:`eeee p -'də'`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`e.ə`,`b.e`],abbreviated:[`e.ə`,`b.e`],wide:[`eramızdan əvvəl`,`bizim era`]},m={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1ci kvartal`,`2ci kvartal`,`3cü kvartal`,`4cü kvartal`]},h={narrow:[`Y`,`F`,`M`,`A`,`M`,`İ`,`İ`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Yan`,`Fev`,`Mar`,`Apr`,`May`,`İyun`,`İyul`,`Avq`,`Sen`,`Okt`,`Noy`,`Dek`],wide:[`Yanvar`,`Fevral`,`Mart`,`Aprel`,`May`,`İyun`,`İyul`,`Avqust`,`Sentyabr`,`Oktyabr`,`Noyabr`,`Dekabr`]},g={narrow:[`B.`,`B.e`,`Ç.a`,`Ç.`,`C.a`,`C.`,`Ş.`],short:[`B.`,`B.e`,`Ç.a`,`Ç.`,`C.a`,`C.`,`Ş.`],abbreviated:[`Baz`,`Baz.e`,`Çər.a`,`Çər`,`Cüm.a`,`Cüm`,`Şə`],wide:[`Bazar`,`Bazar ertəsi`,`Çərşənbə axşamı`,`Çərşənbə`,`Cümə axşamı`,`Cümə`,`Şənbə`]},_={narrow:{am:`am`,pm:`pm`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`}},v={narrow:{am:`a`,pm:`p`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`}},y={1:`-inci`,5:`-inci`,8:`-inci`,70:`-inci`,80:`-inci`,2:`-nci`,7:`-nci`,20:`-nci`,50:`-nci`,3:`-üncü`,4:`-üncü`,100:`-üncü`,6:`-ncı`,9:`-uncu`,10:`-uncu`,30:`-uncu`,60:`-ıncı`,90:`-ıncı`},b=function(e){if(e===0)return e+`-ıncı`;var t=e%10,n=e%100-t,r=e>=100?100:null;return y[t]?y[t]:y[n]?y[n]:r===null?``:y[r]},x={ordinalNumber:function(e,t){var n=Number(e);return n+b(n)},era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,defaultWidth:`wide`}),day:f({values:g,defaultWidth:`wide`}),dayPeriod:f({values:_,defaultWidth:`wide`,formattingValues:v,defaultFormattingWidth:`wide`})};function S(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?w(s,function(e){return e.test(o)}):C(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function C(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function w(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var E={code:`az`,formatDistance:s,formatLong:l,formatRelative:d,localize:x,match:{ordinalNumber:T({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:S({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:`any`}),quarter:S({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:S({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:`narrow`}),day:S({matchPatterns:{narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},defaultParseWidth:`any`}),dayPeriod:S({matchPatterns:{narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{az:E})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask.cjs b/node_modules/date-fns/locale/be-tarask.cjs new file mode 100644 index 000000000..dcb351462 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.beTarask = void 0; +var _index = require("./be-tarask/_lib/formatDistance.cjs"); +var _index2 = require("./be-tarask/_lib/formatLong.cjs"); +var _index3 = require("./be-tarask/_lib/formatRelative.cjs"); +var _index4 = require("./be-tarask/_lib/localize.cjs"); +var _index5 = require("./be-tarask/_lib/match.cjs"); + +/** + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears](https://github.com/nopears) + */ +const beTarask = (exports.beTarask = { + code: "be-tarask", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/be-tarask.d.cts b/node_modules/date-fns/locale/be-tarask.d.cts new file mode 100644 index 000000000..99770b658 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears](https://github.com/nopears) + */ +export declare const beTarask: Locale; diff --git a/node_modules/date-fns/locale/be-tarask.d.ts b/node_modules/date-fns/locale/be-tarask.d.ts new file mode 100644 index 000000000..99770b658 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears](https://github.com/nopears) + */ +export declare const beTarask: Locale; diff --git a/node_modules/date-fns/locale/be-tarask.js b/node_modules/date-fns/locale/be-tarask.js new file mode 100644 index 000000000..2de74e060 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./be-tarask/_lib/formatDistance.js"; +import { formatLong } from "./be-tarask/_lib/formatLong.js"; +import { formatRelative } from "./be-tarask/_lib/formatRelative.js"; +import { localize } from "./be-tarask/_lib/localize.js"; +import { match } from "./be-tarask/_lib/match.js"; + +/** + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears](https://github.com/nopears) + */ +export const beTarask = { + code: "be-tarask", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default beTarask; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.cjs b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.cjs new file mode 100644 index 000000000..1a55b7b2b --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.cjs @@ -0,0 +1,263 @@ +"use strict"; +exports.formatDistance = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "праз " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " таму"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const halfAMinute = (_, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "праз паўхвіліны"; + } else { + return "паўхвіліны таму"; + } + } + + return "паўхвіліны"; +}; + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд", + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму", + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд", + }, + }), + + halfAMinute: halfAMinute, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін", + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін", + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму", + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін", + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін", + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму", + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў", + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў", + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў", + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў", + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў", + }, + }), +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js new file mode 100644 index 000000000..bb3e91fd0 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance.js @@ -0,0 +1,259 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "праз " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " таму"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const halfAMinute = (_, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "праз паўхвіліны"; + } else { + return "паўхвіліны таму"; + } + } + + return "паўхвіліны"; +}; + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд", + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму", + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд", + }, + }), + + halfAMinute: halfAMinute, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін", + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін", + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму", + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін", + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін", + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму", + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў", + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў", + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў", + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў", + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў", + }, + }), +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.cjs b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.cjs new file mode 100644 index 000000000..d043ad4a4 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.cts b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.ts b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong.js b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.js new file mode 100644 index 000000000..f775c7ba8 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.cjs b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.cjs new file mode 100644 index 000000000..e51c94697 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.cjs @@ -0,0 +1,92 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); +var _index2 = require("../../../toDate.cjs"); + +const accusativeWeekdays = [ + "нядзелю", + "панядзелак", + "аўторак", + "сераду", + "чацьвер", + "пятніцу", + "суботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +const lastWeekFormat = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormat = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёньня а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.js b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.js new file mode 100644 index 000000000..d26682062 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative.js @@ -0,0 +1,89 @@ +import { isSameWeek } from "../../../isSameWeek.js"; +import { toDate } from "../../../toDate.js"; + +const accusativeWeekdays = [ + "нядзелю", + "панядзелак", + "аўторак", + "сераду", + "чацьвер", + "пятніцу", + "суботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +const lastWeekFormat = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormat = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёньня а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize.cjs b/node_modules/date-fns/locale/be-tarask/_lib/localize.cjs new file mode 100644 index 000000000..5179660b1 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize.cjs @@ -0,0 +1,228 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ы кв.", "2-і кв.", "3-і кв.", "4-ы кв."], + wide: ["1-ы квартал", "2-і квартал", "3-і квартал", "4-ы квартал"], +}; + +const monthValues = { + narrow: ["С", "Л", "С", "К", "Т", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж.", + ], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "травень", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "сьнежань", + ], +}; +const formattingMonthValues = { + narrow: ["С", "Л", "С", "К", "Т", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж.", + ], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "траўня", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "сьнежня", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "А", "С", "Ч", "П", "С"], + short: ["нд", "пн", "аў", "ср", "чц", "пт", "сб"], + abbreviated: ["нядз", "пан", "аўт", "сер", "чаць", "пят", "суб"], + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацьвер", + "пятніца", + "субота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const unit = String(options?.unit); + const number = Number(dirtyNumber); + let suffix; + + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") { + suffix = "-га"; + } else if (unit === "hour" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = + (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? "-і" + : "-ы"; + } + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize.d.cts b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize.d.ts b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize.js b/node_modules/date-fns/locale/be-tarask/_lib/localize.js new file mode 100644 index 000000000..356ab55b9 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize.js @@ -0,0 +1,225 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ы кв.", "2-і кв.", "3-і кв.", "4-ы кв."], + wide: ["1-ы квартал", "2-і квартал", "3-і квартал", "4-ы квартал"], +}; + +const monthValues = { + narrow: ["С", "Л", "С", "К", "Т", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж.", + ], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "травень", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "сьнежань", + ], +}; +const formattingMonthValues = { + narrow: ["С", "Л", "С", "К", "Т", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж.", + ], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "траўня", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "сьнежня", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "А", "С", "Ч", "П", "С"], + short: ["нд", "пн", "аў", "ср", "чц", "пт", "сб"], + abbreviated: ["нядз", "пан", "аўт", "сер", "чаць", "пят", "суб"], + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацьвер", + "пятніца", + "субота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const unit = String(options?.unit); + const number = Number(dirtyNumber); + let suffix; + + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") { + suffix = "-га"; + } else if (unit === "hour" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = + (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? "-і" + : "-ы"; + } + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match.cjs b/node_modules/date-fns/locale/be-tarask/_lib/match.cjs new file mode 100644 index 000000000..b1611f413 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/match.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: + /^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^т/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i, + ], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^тр/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match.d.cts b/node_modules/date-fns/locale/be-tarask/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match.d.ts b/node_modules/date-fns/locale/be-tarask/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match.js b/node_modules/date-fns/locale/be-tarask/_lib/match.js new file mode 100644 index 000000000..600b24b2c --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/match.js @@ -0,0 +1,135 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: + /^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^т/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i, + ], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^тр/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/be-tarask/cdn.js b/node_modules/date-fns/locale/be-tarask/cdn.js new file mode 100644 index 000000000..f83373858 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/cdn.js @@ -0,0 +1,1006 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/be-tarask/_lib/formatDistance.js +function declension(scheme, count) { + if (scheme.one !== void 0 && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (scheme.future) return declension(scheme.future, count);else + return "праз " + declension(scheme.regular, count);} else + if (scheme.past) return declension(scheme.past, count);else + return declension(scheme.regular, count) + " таму";} else + return declension(scheme.regular, count); + }; +} +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) if (options.comparison && options.comparison > 0) return "праз паўхвіліны";else + return "паўхвіліны таму"; + return "паўхвіліны"; +}; +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд" + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд" + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму" + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд" + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін" + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін" + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін" + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму" + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін" + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін" + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін" + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін" + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму" + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін" + } + }), + xDays: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён" + } }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў" + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў" + } + }), + xWeeks: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў" + } }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў" + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў" + } + }), + xMonths: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў" + } }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў" + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў" + } + }), + xYears: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў" + } }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў" + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў" + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў" + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў" + } + }) +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/be-tarask/_lib/formatRelative.js +var accusativeWeekdays = [ +"нядзелю", +"панядзелак", +"аўторак", +"сераду", +"чацьвер", +"пятніцу", +"суботу"]; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 5: + case 6:return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4:return "'у мінулы " + weekday + " а' p"; + } +} +function thisWeek(day) { + return "'у " + accusativeWeekdays[day] + " а' p"; +} +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 5: + case 6:return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4:return "'у наступны " + weekday + " а' p"; + } +} +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return lastWeek(day); +}; +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return nextWeek(day); +}; +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёньня а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/be-tarask/_lib/localize.js +var eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-ы кв.", + "2-і кв.", + "3-і кв.", + "4-ы кв."], + + wide: [ + "1-ы квартал", + "2-і квартал", + "3-і квартал", + "4-ы квартал"] + +}; +var monthValues = { + narrow: [ + "С", + "Л", + "С", + "К", + "Т", + "Ч", + "Л", + "Ж", + "В", + "К", + "Л", + "С"], + + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж."], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "травень", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "сьнежань"] + +}; +var formattingMonthValues = { + narrow: [ + "С", + "Л", + "С", + "К", + "Т", + "Ч", + "Л", + "Ж", + "В", + "К", + "Л", + "С"], + + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "трав.", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "сьнеж."], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "траўня", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "сьнежня"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "А", + "С", + "Ч", + "П", + "С"], + + short: [ + "нд", + "пн", + "аў", + "ср", + "чц", + "пт", + "сб"], + + abbreviated: [ + "нядз", + "пан", + "аўт", + "сер", + "чаць", + "пят", + "суб"], + + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацьвер", + "пятніца", + "субота"] + +}; +var dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") suffix = "-га";else + if (unit === "hour" || unit === "minute" || unit === "second") suffix = "-я";else + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? "-і" : "-ы"; + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/be-tarask.js +/** +* @category Locales +* @summary Belarusian Classic locale. +* @language Belarusian Classic +* @iso-639-2 bel +* @author Ryhor Nopears [@nopears](https://github.com/nopears) +*/ +var beTarask = { + code: "be-tarask", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^д/i, /^н/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^т/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^тр/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^н/i, + /^п/i, + /^а/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i], + + any: [ + /^н/i, + /^п[ан]/i, + /^а/i, + /^с[ер]/i, + /^ч/i, + /^п[ят]/i, + /^с[уб]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/be-tarask/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + beTarask: beTarask }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/cdn.min.js b/node_modules/date-fns/locale/be-tarask/cdn.min.js new file mode 100644 index 000000000..d59c68bd4 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function p(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?f(e.future,t):`праз `+f(e.regular,t):e.past?f(e.past,t):f(e.regular,t)+` таму`:f(e.regular,t)}}var m={lessThanXSeconds:p({regular:{one:`менш за секунду`,singularNominative:`менш за {{count}} секунду`,singularGenitive:`менш за {{count}} секунды`,pluralGenitive:`менш за {{count}} секунд`},future:{one:`менш, чым праз секунду`,singularNominative:`менш, чым праз {{count}} секунду`,singularGenitive:`менш, чым праз {{count}} секунды`,pluralGenitive:`менш, чым праз {{count}} секунд`}}),xSeconds:p({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду таму`,singularGenitive:`{{count}} секунды таму`,pluralGenitive:`{{count}} секунд таму`},future:{singularNominative:`праз {{count}} секунду`,singularGenitive:`праз {{count}} секунды`,pluralGenitive:`праз {{count}} секунд`}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?`праз паўхвіліны`:`паўхвіліны таму`:`паўхвіліны`},lessThanXMinutes:p({regular:{one:`менш за хвіліну`,singularNominative:`менш за {{count}} хвіліну`,singularGenitive:`менш за {{count}} хвіліны`,pluralGenitive:`менш за {{count}} хвілін`},future:{one:`менш, чым праз хвіліну`,singularNominative:`менш, чым праз {{count}} хвіліну`,singularGenitive:`менш, чым праз {{count}} хвіліны`,pluralGenitive:`менш, чым праз {{count}} хвілін`}}),xMinutes:p({regular:{singularNominative:`{{count}} хвіліна`,singularGenitive:`{{count}} хвіліны`,pluralGenitive:`{{count}} хвілін`},past:{singularNominative:`{{count}} хвіліну таму`,singularGenitive:`{{count}} хвіліны таму`,pluralGenitive:`{{count}} хвілін таму`},future:{singularNominative:`праз {{count}} хвіліну`,singularGenitive:`праз {{count}} хвіліны`,pluralGenitive:`праз {{count}} хвілін`}}),aboutXHours:p({regular:{singularNominative:`каля {{count}} гадзіны`,singularGenitive:`каля {{count}} гадзін`,pluralGenitive:`каля {{count}} гадзін`},future:{singularNominative:`прыблізна праз {{count}} гадзіну`,singularGenitive:`прыблізна праз {{count}} гадзіны`,pluralGenitive:`прыблізна праз {{count}} гадзін`}}),xHours:p({regular:{singularNominative:`{{count}} гадзіна`,singularGenitive:`{{count}} гадзіны`,pluralGenitive:`{{count}} гадзін`},past:{singularNominative:`{{count}} гадзіну таму`,singularGenitive:`{{count}} гадзіны таму`,pluralGenitive:`{{count}} гадзін таму`},future:{singularNominative:`праз {{count}} гадзіну`,singularGenitive:`праз {{count}} гадзіны`,pluralGenitive:`праз {{count}} гадзін`}}),xDays:p({regular:{singularNominative:`{{count}} дзень`,singularGenitive:`{{count}} дні`,pluralGenitive:`{{count}} дзён`}}),aboutXWeeks:p({regular:{singularNominative:`каля {{count}} тыдні`,singularGenitive:`каля {{count}} тыдняў`,pluralGenitive:`каля {{count}} тыдняў`},future:{singularNominative:`прыблізна праз {{count}} тыдзень`,singularGenitive:`прыблізна праз {{count}} тыдні`,pluralGenitive:`прыблізна праз {{count}} тыдняў`}}),xWeeks:p({regular:{singularNominative:`{{count}} тыдзень`,singularGenitive:`{{count}} тыдні`,pluralGenitive:`{{count}} тыдняў`}}),aboutXMonths:p({regular:{singularNominative:`каля {{count}} месяца`,singularGenitive:`каля {{count}} месяцаў`,pluralGenitive:`каля {{count}} месяцаў`},future:{singularNominative:`прыблізна праз {{count}} месяц`,singularGenitive:`прыблізна праз {{count}} месяцы`,pluralGenitive:`прыблізна праз {{count}} месяцаў`}}),xMonths:p({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяцы`,pluralGenitive:`{{count}} месяцаў`}}),aboutXYears:p({regular:{singularNominative:`каля {{count}} года`,singularGenitive:`каля {{count}} гадоў`,pluralGenitive:`каля {{count}} гадоў`},future:{singularNominative:`прыблізна праз {{count}} год`,singularGenitive:`прыблізна праз {{count}} гады`,pluralGenitive:`прыблізна праз {{count}} гадоў`}}),xYears:p({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} гады`,pluralGenitive:`{{count}} гадоў`}}),overXYears:p({regular:{singularNominative:`больш за {{count}} год`,singularGenitive:`больш за {{count}} гады`,pluralGenitive:`больш за {{count}} гадоў`},future:{singularNominative:`больш, чым праз {{count}} год`,singularGenitive:`больш, чым праз {{count}} гады`,pluralGenitive:`больш, чым праз {{count}} гадоў`}}),almostXYears:p({regular:{singularNominative:`амаль {{count}} год`,singularGenitive:`амаль {{count}} гады`,pluralGenitive:`амаль {{count}} гадоў`},future:{singularNominative:`амаль праз {{count}} год`,singularGenitive:`амаль праз {{count}} гады`,pluralGenitive:`амаль праз {{count}} гадоў`}})},h=function(e,t,n){return n||={},m[e](t,n)};function g(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _={date:g({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:g({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?I(s,function(e){return e.test(o)}):F(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function F(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function I(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var R={code:`be-tarask`,formatDistance:h,formatLong:_,formatRelative:j,localize:N,match:{ordinalNumber:L({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:P({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:P({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:P({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:`any`}),day:P({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:P({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{beTarask:R})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/be.cjs b/node_modules/date-fns/locale/be.cjs new file mode 100644 index 000000000..3a67caae2 --- /dev/null +++ b/node_modules/date-fns/locale/be.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.be = void 0; +var _index = require("./be/_lib/formatDistance.cjs"); +var _index2 = require("./be/_lib/formatLong.cjs"); +var _index3 = require("./be/_lib/formatRelative.cjs"); +var _index4 = require("./be/_lib/localize.cjs"); +var _index5 = require("./be/_lib/match.cjs"); + +/** + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) + * @author Martin Wind [@arvigeus](https://github.com/mawi12345) + */ +const be = (exports.be = { + code: "be", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/be.d.cts b/node_modules/date-fns/locale/be.d.cts new file mode 100644 index 000000000..9c5dbaa15 --- /dev/null +++ b/node_modules/date-fns/locale/be.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) + * @author Martin Wind [@arvigeus](https://github.com/mawi12345) + */ +export declare const be: Locale; diff --git a/node_modules/date-fns/locale/be.d.ts b/node_modules/date-fns/locale/be.d.ts new file mode 100644 index 000000000..9c5dbaa15 --- /dev/null +++ b/node_modules/date-fns/locale/be.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) + * @author Martin Wind [@arvigeus](https://github.com/mawi12345) + */ +export declare const be: Locale; diff --git a/node_modules/date-fns/locale/be.js b/node_modules/date-fns/locale/be.js new file mode 100644 index 000000000..189c86a54 --- /dev/null +++ b/node_modules/date-fns/locale/be.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./be/_lib/formatDistance.js"; +import { formatLong } from "./be/_lib/formatLong.js"; +import { formatRelative } from "./be/_lib/formatRelative.js"; +import { localize } from "./be/_lib/localize.js"; +import { match } from "./be/_lib/match.js"; + +/** + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) + * @author Martin Wind [@arvigeus](https://github.com/mawi12345) + */ +export const be = { + code: "be", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default be; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.cjs b/node_modules/date-fns/locale/be/_lib/formatDistance.cjs new file mode 100644 index 000000000..1a55b7b2b --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.cjs @@ -0,0 +1,263 @@ +"use strict"; +exports.formatDistance = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "праз " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " таму"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const halfAMinute = (_, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "праз паўхвіліны"; + } else { + return "паўхвіліны таму"; + } + } + + return "паўхвіліны"; +}; + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд", + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму", + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд", + }, + }), + + halfAMinute: halfAMinute, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін", + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін", + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму", + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін", + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін", + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму", + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў", + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў", + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў", + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў", + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў", + }, + }), +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/be/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/be/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance.js b/node_modules/date-fns/locale/be/_lib/formatDistance.js new file mode 100644 index 000000000..bb3e91fd0 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance.js @@ -0,0 +1,259 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "праз " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " таму"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const halfAMinute = (_, options) => { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "праз паўхвіліны"; + } else { + return "паўхвіліны таму"; + } + } + + return "паўхвіліны"; +}; + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд", + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму", + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд", + }, + }), + + halfAMinute: halfAMinute, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін", + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін", + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму", + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін", + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін", + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму", + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў", + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў", + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў", + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў", + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў", + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў", + }, + }), +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; diff --git a/node_modules/date-fns/locale/be/_lib/formatLong.cjs b/node_modules/date-fns/locale/be/_lib/formatLong.cjs new file mode 100644 index 000000000..d043ad4a4 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/be/_lib/formatLong.d.cts b/node_modules/date-fns/locale/be/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be/_lib/formatLong.d.ts b/node_modules/date-fns/locale/be/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/be/_lib/formatLong.js b/node_modules/date-fns/locale/be/_lib/formatLong.js new file mode 100644 index 000000000..f775c7ba8 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative.cjs b/node_modules/date-fns/locale/be/_lib/formatRelative.cjs new file mode 100644 index 000000000..0443f1af7 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative.cjs @@ -0,0 +1,92 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); +var _index2 = require("../../../toDate.cjs"); + +const accusativeWeekdays = [ + "нядзелю", + "панядзелак", + "аўторак", + "сераду", + "чацвер", + "пятніцу", + "суботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +const lastWeekFormat = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormat = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёння а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/be/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/be/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative.js b/node_modules/date-fns/locale/be/_lib/formatRelative.js new file mode 100644 index 000000000..0ff130fa0 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative.js @@ -0,0 +1,89 @@ +import { isSameWeek } from "../../../isSameWeek.js"; +import { toDate } from "../../../toDate.js"; + +const accusativeWeekdays = [ + "нядзелю", + "панядзелак", + "аўторак", + "сераду", + "чацвер", + "пятніцу", + "суботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +const lastWeekFormat = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormat = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёння а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/be/_lib/localize.cjs b/node_modules/date-fns/locale/be/_lib/localize.cjs new file mode 100644 index 000000000..7d0cdc224 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize.cjs @@ -0,0 +1,228 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ы кв.", "2-і кв.", "3-і кв.", "4-ы кв."], + wide: ["1-ы квартал", "2-і квартал", "3-і квартал", "4-ы квартал"], +}; + +const monthValues = { + narrow: ["С", "Л", "С", "К", "М", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "май", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж.", + ], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "май", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "снежань", + ], +}; +const formattingMonthValues = { + narrow: ["С", "Л", "С", "К", "М", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "мая", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж.", + ], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "мая", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "снежня", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "А", "С", "Ч", "П", "С"], + short: ["нд", "пн", "аў", "ср", "чц", "пт", "сб"], + abbreviated: ["нядз", "пан", "аўт", "сер", "чац", "пят", "суб"], + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацвер", + "пятніца", + "субота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const unit = String(options?.unit); + const number = Number(dirtyNumber); + let suffix; + + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") { + suffix = "-га"; + } else if (unit === "hour" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = + (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? "-і" + : "-ы"; + } + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/be/_lib/localize.d.cts b/node_modules/date-fns/locale/be/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be/_lib/localize.d.ts b/node_modules/date-fns/locale/be/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/be/_lib/localize.js b/node_modules/date-fns/locale/be/_lib/localize.js new file mode 100644 index 000000000..9b8b09662 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize.js @@ -0,0 +1,225 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ы кв.", "2-і кв.", "3-і кв.", "4-ы кв."], + wide: ["1-ы квартал", "2-і квартал", "3-і квартал", "4-ы квартал"], +}; + +const monthValues = { + narrow: ["С", "Л", "С", "К", "М", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "май", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж.", + ], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "май", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "снежань", + ], +}; +const formattingMonthValues = { + narrow: ["С", "Л", "С", "К", "М", "Ч", "Л", "Ж", "В", "К", "Л", "С"], + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "мая", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж.", + ], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "мая", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "снежня", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "А", "С", "Ч", "П", "С"], + short: ["нд", "пн", "аў", "ср", "чц", "пт", "сб"], + abbreviated: ["нядз", "пан", "аўт", "сер", "чац", "пят", "суб"], + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацвер", + "пятніца", + "субота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const unit = String(options?.unit); + const number = Number(dirtyNumber); + let suffix; + + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") { + suffix = "-га"; + } else if (unit === "hour" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = + (number % 10 === 2 || number % 10 === 3) && + number % 100 !== 12 && + number % 100 !== 13 + ? "-і" + : "-ы"; + } + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/be/_lib/match.cjs b/node_modules/date-fns/locale/be/_lib/match.cjs new file mode 100644 index 000000000..3d5f0c2c0 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/match.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: + /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^м/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i, + ], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^ма/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/be/_lib/match.d.cts b/node_modules/date-fns/locale/be/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be/_lib/match.d.ts b/node_modules/date-fns/locale/be/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/be/_lib/match.js b/node_modules/date-fns/locale/be/_lib/match.js new file mode 100644 index 000000000..a06dbe462 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/match.js @@ -0,0 +1,135 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: + /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^м/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i, + ], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^ма/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/be/cdn.js b/node_modules/date-fns/locale/be/cdn.js new file mode 100644 index 000000000..bfbbcd591 --- /dev/null +++ b/node_modules/date-fns/locale/be/cdn.js @@ -0,0 +1,1007 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/be/_lib/formatDistance.js +function declension(scheme, count) { + if (scheme.one !== void 0 && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (scheme.future) return declension(scheme.future, count);else + return "праз " + declension(scheme.regular, count);} else + if (scheme.past) return declension(scheme.past, count);else + return declension(scheme.regular, count) + " таму";} else + return declension(scheme.regular, count); + }; +} +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) if (options.comparison && options.comparison > 0) return "праз паўхвіліны";else + return "паўхвіліны таму"; + return "паўхвіліны"; +}; +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "менш за секунду", + singularNominative: "менш за {{count}} секунду", + singularGenitive: "менш за {{count}} секунды", + pluralGenitive: "менш за {{count}} секунд" + }, + future: { + one: "менш, чым праз секунду", + singularNominative: "менш, чым праз {{count}} секунду", + singularGenitive: "менш, чым праз {{count}} секунды", + pluralGenitive: "менш, чым праз {{count}} секунд" + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунду таму", + singularGenitive: "{{count}} секунды таму", + pluralGenitive: "{{count}} секунд таму" + }, + future: { + singularNominative: "праз {{count}} секунду", + singularGenitive: "праз {{count}} секунды", + pluralGenitive: "праз {{count}} секунд" + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "менш за хвіліну", + singularNominative: "менш за {{count}} хвіліну", + singularGenitive: "менш за {{count}} хвіліны", + pluralGenitive: "менш за {{count}} хвілін" + }, + future: { + one: "менш, чым праз хвіліну", + singularNominative: "менш, чым праз {{count}} хвіліну", + singularGenitive: "менш, чым праз {{count}} хвіліны", + pluralGenitive: "менш, чым праз {{count}} хвілін" + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} хвіліна", + singularGenitive: "{{count}} хвіліны", + pluralGenitive: "{{count}} хвілін" + }, + past: { + singularNominative: "{{count}} хвіліну таму", + singularGenitive: "{{count}} хвіліны таму", + pluralGenitive: "{{count}} хвілін таму" + }, + future: { + singularNominative: "праз {{count}} хвіліну", + singularGenitive: "праз {{count}} хвіліны", + pluralGenitive: "праз {{count}} хвілін" + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} гадзіны", + singularGenitive: "каля {{count}} гадзін", + pluralGenitive: "каля {{count}} гадзін" + }, + future: { + singularNominative: "прыблізна праз {{count}} гадзіну", + singularGenitive: "прыблізна праз {{count}} гадзіны", + pluralGenitive: "прыблізна праз {{count}} гадзін" + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} гадзіна", + singularGenitive: "{{count}} гадзіны", + pluralGenitive: "{{count}} гадзін" + }, + past: { + singularNominative: "{{count}} гадзіну таму", + singularGenitive: "{{count}} гадзіны таму", + pluralGenitive: "{{count}} гадзін таму" + }, + future: { + singularNominative: "праз {{count}} гадзіну", + singularGenitive: "праз {{count}} гадзіны", + pluralGenitive: "праз {{count}} гадзін" + } + }), + xDays: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} дзень", + singularGenitive: "{{count}} дні", + pluralGenitive: "{{count}} дзён" + } }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} тыдні", + singularGenitive: "каля {{count}} тыдняў", + pluralGenitive: "каля {{count}} тыдняў" + }, + future: { + singularNominative: "прыблізна праз {{count}} тыдзень", + singularGenitive: "прыблізна праз {{count}} тыдні", + pluralGenitive: "прыблізна праз {{count}} тыдняў" + } + }), + xWeeks: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} тыдзень", + singularGenitive: "{{count}} тыдні", + pluralGenitive: "{{count}} тыдняў" + } }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} месяца", + singularGenitive: "каля {{count}} месяцаў", + pluralGenitive: "каля {{count}} месяцаў" + }, + future: { + singularNominative: "прыблізна праз {{count}} месяц", + singularGenitive: "прыблізна праз {{count}} месяцы", + pluralGenitive: "прыблізна праз {{count}} месяцаў" + } + }), + xMonths: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяцы", + pluralGenitive: "{{count}} месяцаў" + } }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "каля {{count}} года", + singularGenitive: "каля {{count}} гадоў", + pluralGenitive: "каля {{count}} гадоў" + }, + future: { + singularNominative: "прыблізна праз {{count}} год", + singularGenitive: "прыблізна праз {{count}} гады", + pluralGenitive: "прыблізна праз {{count}} гадоў" + } + }), + xYears: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} гады", + pluralGenitive: "{{count}} гадоў" + } }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больш за {{count}} год", + singularGenitive: "больш за {{count}} гады", + pluralGenitive: "больш за {{count}} гадоў" + }, + future: { + singularNominative: "больш, чым праз {{count}} год", + singularGenitive: "больш, чым праз {{count}} гады", + pluralGenitive: "больш, чым праз {{count}} гадоў" + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "амаль {{count}} год", + singularGenitive: "амаль {{count}} гады", + pluralGenitive: "амаль {{count}} гадоў" + }, + future: { + singularNominative: "амаль праз {{count}} год", + singularGenitive: "амаль праз {{count}} гады", + pluralGenitive: "амаль праз {{count}} гадоў" + } + }) +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/be/_lib/formatRelative.js +var accusativeWeekdays = [ +"нядзелю", +"панядзелак", +"аўторак", +"сераду", +"чацвер", +"пятніцу", +"суботу"]; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 5: + case 6:return "'у мінулую " + weekday + " а' p"; + case 1: + case 2: + case 4:return "'у мінулы " + weekday + " а' p"; + } +} +function thisWeek(day) { + return "'у " + accusativeWeekdays[day] + " а' p"; +} +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 5: + case 6:return "'у наступную " + weekday + " а' p"; + case 1: + case 2: + case 4:return "'у наступны " + weekday + " а' p"; + } +} +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return lastWeek(day); +}; +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return nextWeek(day); +}; +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёння а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/be/_lib/localize.js +var eraValues = { + narrow: ["да н.э.", "н.э."], + abbreviated: ["да н. э.", "н. э."], + wide: ["да нашай эры", "нашай эры"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-ы кв.", + "2-і кв.", + "3-і кв.", + "4-ы кв."], + + wide: [ + "1-ы квартал", + "2-і квартал", + "3-і квартал", + "4-ы квартал"] + +}; +var monthValues = { + narrow: [ + "С", + "Л", + "С", + "К", + "М", + "Ч", + "Л", + "Ж", + "В", + "К", + "Л", + "С"], + + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "май", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж."], + + wide: [ + "студзень", + "люты", + "сакавік", + "красавік", + "май", + "чэрвень", + "ліпень", + "жнівень", + "верасень", + "кастрычнік", + "лістапад", + "снежань"] + +}; +var formattingMonthValues = { + narrow: [ + "С", + "Л", + "С", + "К", + "М", + "Ч", + "Л", + "Ж", + "В", + "К", + "Л", + "С"], + + abbreviated: [ + "студз.", + "лют.", + "сак.", + "крас.", + "мая", + "чэрв.", + "ліп.", + "жн.", + "вер.", + "кастр.", + "ліст.", + "снеж."], + + wide: [ + "студзеня", + "лютага", + "сакавіка", + "красавіка", + "мая", + "чэрвеня", + "ліпеня", + "жніўня", + "верасня", + "кастрычніка", + "лістапада", + "снежня"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "А", + "С", + "Ч", + "П", + "С"], + + short: [ + "нд", + "пн", + "аў", + "ср", + "чц", + "пт", + "сб"], + + abbreviated: [ + "нядз", + "пан", + "аўт", + "сер", + "чац", + "пят", + "суб"], + + wide: [ + "нядзеля", + "панядзелак", + "аўторак", + "серада", + "чацвер", + "пятніца", + "субота"] + +}; +var dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дзень", + evening: "веч.", + night: "ноч" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніца", + afternoon: "дзень", + evening: "вечар", + night: "ноч" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "поўн.", + noon: "поўд.", + morning: "ран.", + afternoon: "дня", + evening: "веч.", + night: "ночы" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "поўнач", + noon: "поўдзень", + morning: "раніцы", + afternoon: "дня", + evening: "вечара", + night: "ночы" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + if (unit === "date") suffix = "-га";else + if (unit === "hour" || unit === "minute" || unit === "second") suffix = "-я";else + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? "-і" : "-ы"; + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/be.js +/** +* @category Locales +* @summary Belarusian locale. +* @language Belarusian +* @iso-639-2 bel +* @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) +* @author Martin Wind [@arvigeus](https://github.com/mawi12345) +*/ +var be = { + code: "be", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^д/i, /^н/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^с/i, + /^л/i, + /^с/i, + /^к/i, + /^м/i, + /^ч/i, + /^л/i, + /^ж/i, + /^в/i, + /^к/i, + /^л/i, + /^с/i], + + any: [ + /^ст/i, + /^лю/i, + /^са/i, + /^кр/i, + /^ма/i, + /^ч/i, + /^ліп/i, + /^ж/i, + /^в/i, + /^ка/i, + /^ліс/i, + /^сн/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^н/i, + /^п/i, + /^а/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i], + + any: [ + /^н/i, + /^п[ан]/i, + /^а/i, + /^с[ер]/i, + /^ч/i, + /^п[ят]/i, + /^с[уб]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/be/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + be: be }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/cdn.min.js b/node_modules/date-fns/locale/be/cdn.min.js new file mode 100644 index 000000000..b47795122 --- /dev/null +++ b/node_modules/date-fns/locale/be/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function p(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?f(e.future,t):`праз `+f(e.regular,t):e.past?f(e.past,t):f(e.regular,t)+` таму`:f(e.regular,t)}}var m={lessThanXSeconds:p({regular:{one:`менш за секунду`,singularNominative:`менш за {{count}} секунду`,singularGenitive:`менш за {{count}} секунды`,pluralGenitive:`менш за {{count}} секунд`},future:{one:`менш, чым праз секунду`,singularNominative:`менш, чым праз {{count}} секунду`,singularGenitive:`менш, чым праз {{count}} секунды`,pluralGenitive:`менш, чым праз {{count}} секунд`}}),xSeconds:p({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду таму`,singularGenitive:`{{count}} секунды таму`,pluralGenitive:`{{count}} секунд таму`},future:{singularNominative:`праз {{count}} секунду`,singularGenitive:`праз {{count}} секунды`,pluralGenitive:`праз {{count}} секунд`}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?`праз паўхвіліны`:`паўхвіліны таму`:`паўхвіліны`},lessThanXMinutes:p({regular:{one:`менш за хвіліну`,singularNominative:`менш за {{count}} хвіліну`,singularGenitive:`менш за {{count}} хвіліны`,pluralGenitive:`менш за {{count}} хвілін`},future:{one:`менш, чым праз хвіліну`,singularNominative:`менш, чым праз {{count}} хвіліну`,singularGenitive:`менш, чым праз {{count}} хвіліны`,pluralGenitive:`менш, чым праз {{count}} хвілін`}}),xMinutes:p({regular:{singularNominative:`{{count}} хвіліна`,singularGenitive:`{{count}} хвіліны`,pluralGenitive:`{{count}} хвілін`},past:{singularNominative:`{{count}} хвіліну таму`,singularGenitive:`{{count}} хвіліны таму`,pluralGenitive:`{{count}} хвілін таму`},future:{singularNominative:`праз {{count}} хвіліну`,singularGenitive:`праз {{count}} хвіліны`,pluralGenitive:`праз {{count}} хвілін`}}),aboutXHours:p({regular:{singularNominative:`каля {{count}} гадзіны`,singularGenitive:`каля {{count}} гадзін`,pluralGenitive:`каля {{count}} гадзін`},future:{singularNominative:`прыблізна праз {{count}} гадзіну`,singularGenitive:`прыблізна праз {{count}} гадзіны`,pluralGenitive:`прыблізна праз {{count}} гадзін`}}),xHours:p({regular:{singularNominative:`{{count}} гадзіна`,singularGenitive:`{{count}} гадзіны`,pluralGenitive:`{{count}} гадзін`},past:{singularNominative:`{{count}} гадзіну таму`,singularGenitive:`{{count}} гадзіны таму`,pluralGenitive:`{{count}} гадзін таму`},future:{singularNominative:`праз {{count}} гадзіну`,singularGenitive:`праз {{count}} гадзіны`,pluralGenitive:`праз {{count}} гадзін`}}),xDays:p({regular:{singularNominative:`{{count}} дзень`,singularGenitive:`{{count}} дні`,pluralGenitive:`{{count}} дзён`}}),aboutXWeeks:p({regular:{singularNominative:`каля {{count}} тыдні`,singularGenitive:`каля {{count}} тыдняў`,pluralGenitive:`каля {{count}} тыдняў`},future:{singularNominative:`прыблізна праз {{count}} тыдзень`,singularGenitive:`прыблізна праз {{count}} тыдні`,pluralGenitive:`прыблізна праз {{count}} тыдняў`}}),xWeeks:p({regular:{singularNominative:`{{count}} тыдзень`,singularGenitive:`{{count}} тыдні`,pluralGenitive:`{{count}} тыдняў`}}),aboutXMonths:p({regular:{singularNominative:`каля {{count}} месяца`,singularGenitive:`каля {{count}} месяцаў`,pluralGenitive:`каля {{count}} месяцаў`},future:{singularNominative:`прыблізна праз {{count}} месяц`,singularGenitive:`прыблізна праз {{count}} месяцы`,pluralGenitive:`прыблізна праз {{count}} месяцаў`}}),xMonths:p({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяцы`,pluralGenitive:`{{count}} месяцаў`}}),aboutXYears:p({regular:{singularNominative:`каля {{count}} года`,singularGenitive:`каля {{count}} гадоў`,pluralGenitive:`каля {{count}} гадоў`},future:{singularNominative:`прыблізна праз {{count}} год`,singularGenitive:`прыблізна праз {{count}} гады`,pluralGenitive:`прыблізна праз {{count}} гадоў`}}),xYears:p({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} гады`,pluralGenitive:`{{count}} гадоў`}}),overXYears:p({regular:{singularNominative:`больш за {{count}} год`,singularGenitive:`больш за {{count}} гады`,pluralGenitive:`больш за {{count}} гадоў`},future:{singularNominative:`больш, чым праз {{count}} год`,singularGenitive:`больш, чым праз {{count}} гады`,pluralGenitive:`больш, чым праз {{count}} гадоў`}}),almostXYears:p({regular:{singularNominative:`амаль {{count}} год`,singularGenitive:`амаль {{count}} гады`,pluralGenitive:`амаль {{count}} гадоў`},future:{singularNominative:`амаль праз {{count}} год`,singularGenitive:`амаль праз {{count}} гады`,pluralGenitive:`амаль праз {{count}} гадоў`}})},h=function(e,t,n){return n||={},m[e](t,n)};function g(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _={date:g({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:g({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?I(s,function(e){return e.test(o)}):F(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function F(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function I(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var R={code:`be`,formatDistance:h,formatLong:_,formatRelative:j,localize:N,match:{ordinalNumber:L({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:P({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:P({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:P({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:`any`}),day:P({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:P({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{be:R})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg.cjs b/node_modules/date-fns/locale/bg.cjs new file mode 100644 index 000000000..d2cc4f61f --- /dev/null +++ b/node_modules/date-fns/locale/bg.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.bg = void 0; +var _index = require("./bg/_lib/formatDistance.cjs"); +var _index2 = require("./bg/_lib/formatLong.cjs"); +var _index3 = require("./bg/_lib/formatRelative.cjs"); +var _index4 = require("./bg/_lib/localize.cjs"); +var _index5 = require("./bg/_lib/match.cjs"); + +/** + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) + * @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) + */ +const bg = (exports.bg = { + code: "bg", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/bg.d.cts b/node_modules/date-fns/locale/bg.d.cts new file mode 100644 index 000000000..02e5aeb96 --- /dev/null +++ b/node_modules/date-fns/locale/bg.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) + * @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) + */ +export declare const bg: Locale; diff --git a/node_modules/date-fns/locale/bg.d.ts b/node_modules/date-fns/locale/bg.d.ts new file mode 100644 index 000000000..02e5aeb96 --- /dev/null +++ b/node_modules/date-fns/locale/bg.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) + * @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) + */ +export declare const bg: Locale; diff --git a/node_modules/date-fns/locale/bg.js b/node_modules/date-fns/locale/bg.js new file mode 100644 index 000000000..2fcabab06 --- /dev/null +++ b/node_modules/date-fns/locale/bg.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./bg/_lib/formatDistance.js"; +import { formatLong } from "./bg/_lib/formatLong.js"; +import { formatRelative } from "./bg/_lib/formatRelative.js"; +import { localize } from "./bg/_lib/localize.js"; +import { match } from "./bg/_lib/match.js"; + +/** + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) + * @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) + */ +export const bg = { + code: "bg", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default bg; diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance.cjs b/node_modules/date-fns/locale/bg/_lib/formatDistance.cjs new file mode 100644 index 000000000..4432498cb --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "по-малко от секунда", + other: "по-малко от {{count}} секунди", + }, + + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди", + }, + + halfAMinute: "половин минута", + + lessThanXMinutes: { + one: "по-малко от минута", + other: "по-малко от {{count}} минути", + }, + + xMinutes: { + one: "1 минута", + other: "{{count}} минути", + }, + + aboutXHours: { + one: "около час", + other: "около {{count}} часа", + }, + + xHours: { + one: "1 час", + other: "{{count}} часа", + }, + + xDays: { + one: "1 ден", + other: "{{count}} дни", + }, + + aboutXWeeks: { + one: "около седмица", + other: "около {{count}} седмици", + }, + + xWeeks: { + one: "1 седмица", + other: "{{count}} седмици", + }, + + aboutXMonths: { + one: "около месец", + other: "около {{count}} месеца", + }, + + xMonths: { + one: "1 месец", + other: "{{count}} месеца", + }, + + aboutXYears: { + one: "около година", + other: "около {{count}} години", + }, + + xYears: { + one: "1 година", + other: "{{count}} години", + }, + + overXYears: { + one: "над година", + other: "над {{count}} години", + }, + + almostXYears: { + one: "почти година", + other: "почти {{count}} години", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "след " + result; + } else { + return "преди " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance.js b/node_modules/date-fns/locale/bg/_lib/formatDistance.js new file mode 100644 index 000000000..484677622 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "по-малко от секунда", + other: "по-малко от {{count}} секунди", + }, + + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди", + }, + + halfAMinute: "половин минута", + + lessThanXMinutes: { + one: "по-малко от минута", + other: "по-малко от {{count}} минути", + }, + + xMinutes: { + one: "1 минута", + other: "{{count}} минути", + }, + + aboutXHours: { + one: "около час", + other: "около {{count}} часа", + }, + + xHours: { + one: "1 час", + other: "{{count}} часа", + }, + + xDays: { + one: "1 ден", + other: "{{count}} дни", + }, + + aboutXWeeks: { + one: "около седмица", + other: "около {{count}} седмици", + }, + + xWeeks: { + one: "1 седмица", + other: "{{count}} седмици", + }, + + aboutXMonths: { + one: "около месец", + other: "около {{count}} месеца", + }, + + xMonths: { + one: "1 месец", + other: "{{count}} месеца", + }, + + aboutXYears: { + one: "около година", + other: "около {{count}} години", + }, + + xYears: { + one: "1 година", + other: "{{count}} години", + }, + + overXYears: { + one: "над година", + other: "над {{count}} години", + }, + + almostXYears: { + one: "почти година", + other: "почти {{count}} години", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "след " + result; + } else { + return "преди " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong.cjs b/node_modules/date-fns/locale/bg/_lib/formatLong.cjs new file mode 100644 index 000000000..0d7bb1863 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong.d.cts b/node_modules/date-fns/locale/bg/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong.d.ts b/node_modules/date-fns/locale/bg/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong.js b/node_modules/date-fns/locale/bg/_lib/formatLong.js new file mode 100644 index 000000000..20778ae2a --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative.cjs b/node_modules/date-fns/locale/bg/_lib/formatRelative.cjs new file mode 100644 index 000000000..89421cb77 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative.cjs @@ -0,0 +1,98 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); +var _index2 = require("../../../toDate.cjs"); + +// Adapted from the `ru` translation + +const weekdays = [ + "неделя", + "понеделник", + "вторник", + "сряда", + "четвъртък", + "петък", + "събота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'миналата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5: + return "'миналия " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + if (day === 2 /* Tue */) { + return "'във " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следващата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5: + return "'следващия " + weekday + " в' p"; + } +} + +const lastWeekFormatToken = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormatToken = (dirtyDate, baseDate, options) => { + const date = (0, _index2.toDate)(dirtyDate); + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormatToken, + yesterday: "'вчера в' p", + today: "'днес в' p", + tomorrow: "'утре в' p", + nextWeek: nextWeekFormatToken, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative.js b/node_modules/date-fns/locale/bg/_lib/formatRelative.js new file mode 100644 index 000000000..4f6c34429 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative.js @@ -0,0 +1,95 @@ +import { isSameWeek } from "../../../isSameWeek.js"; +import { toDate } from "../../../toDate.js"; + +// Adapted from the `ru` translation + +const weekdays = [ + "неделя", + "понеделник", + "вторник", + "сряда", + "четвъртък", + "петък", + "събота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'миналата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5: + return "'миналия " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + if (day === 2 /* Tue */) { + return "'във " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следващата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5: + return "'следващия " + weekday + " в' p"; + } +} + +const lastWeekFormatToken = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +const nextWeekFormatToken = (dirtyDate, baseDate, options) => { + const date = toDate(dirtyDate); + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +const formatRelativeLocale = { + lastWeek: lastWeekFormatToken, + yesterday: "'вчера в' p", + today: "'днес в' p", + tomorrow: "'утре в' p", + nextWeek: nextWeekFormatToken, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/bg/_lib/localize.cjs b/node_modules/date-fns/locale/bg/_lib/localize.cjs new file mode 100644 index 000000000..e21f32ccd --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize.cjs @@ -0,0 +1,158 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["преди н. е.", "н. е."], + wide: ["преди новата ера", "новата ера"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-во тримес.", "2-ро тримес.", "3-то тримес.", "4-то тримес."], + + wide: [ + "1-во тримесечие", + "2-ро тримесечие", + "3-то тримесечие", + "4-то тримесечие", + ], +}; + +const monthValues = { + abbreviated: [ + "яну", + "фев", + "мар", + "апр", + "май", + "юни", + "юли", + "авг", + "сеп", + "окт", + "ное", + "дек", + ], + + wide: [ + "януари", + "февруари", + "март", + "април", + "май", + "юни", + "юли", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["нд", "пн", "вт", "ср", "чт", "пт", "сб"], + abbreviated: ["нед", "пон", "вто", "сря", "чет", "пет", "съб"], + wide: [ + "неделя", + "понеделник", + "вторник", + "сряда", + "четвъртък", + "петък", + "събота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "преди обяд", + pm: "след обяд", + midnight: "в полунощ", + noon: "на обяд", + morning: "сутринта", + afternoon: "следобед", + evening: "вечерта", + night: "през нощта", + }, +}; + +function isFeminine(unit) { + return ( + unit === "year" || unit === "week" || unit === "minute" || unit === "second" + ); +} + +function isNeuter(unit) { + return unit === "quarter"; +} + +function numberWithSuffix(number, unit, masculine, feminine, neuter) { + const suffix = isNeuter(unit) + ? neuter + : isFeminine(unit) + ? feminine + : masculine; + return number + "-" + suffix; +} + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) { + return numberWithSuffix(0, unit, "ев", "ева", "ево"); + } else if (number % 1000 === 0) { + return numberWithSuffix(number, unit, "ен", "на", "но"); + } else if (number % 100 === 0) { + return numberWithSuffix(number, unit, "тен", "тна", "тно"); + } + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return numberWithSuffix(number, unit, "ви", "ва", "во"); + case 2: + return numberWithSuffix(number, unit, "ри", "ра", "ро"); + case 7: + case 8: + return numberWithSuffix(number, unit, "ми", "ма", "мо"); + } + } + + return numberWithSuffix(number, unit, "ти", "та", "то"); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/bg/_lib/localize.d.cts b/node_modules/date-fns/locale/bg/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bg/_lib/localize.d.ts b/node_modules/date-fns/locale/bg/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bg/_lib/localize.js b/node_modules/date-fns/locale/bg/_lib/localize.js new file mode 100644 index 000000000..8fc1e3d5d --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize.js @@ -0,0 +1,156 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["преди н. е.", "н. е."], + wide: ["преди новата ера", "новата ера"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-во тримес.", "2-ро тримес.", "3-то тримес.", "4-то тримес."], + + wide: [ + "1-во тримесечие", + "2-ро тримесечие", + "3-то тримесечие", + "4-то тримесечие", + ], +}; + +const monthValues = { + abbreviated: [ + "яну", + "фев", + "мар", + "апр", + "май", + "юни", + "юли", + "авг", + "сеп", + "окт", + "ное", + "дек", + ], + + wide: [ + "януари", + "февруари", + "март", + "април", + "май", + "юни", + "юли", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["нд", "пн", "вт", "ср", "чт", "пт", "сб"], + abbreviated: ["нед", "пон", "вто", "сря", "чет", "пет", "съб"], + wide: [ + "неделя", + "понеделник", + "вторник", + "сряда", + "четвъртък", + "петък", + "събота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "преди обяд", + pm: "след обяд", + midnight: "в полунощ", + noon: "на обяд", + morning: "сутринта", + afternoon: "следобед", + evening: "вечерта", + night: "през нощта", + }, +}; + +function isFeminine(unit) { + return ( + unit === "year" || unit === "week" || unit === "minute" || unit === "second" + ); +} + +function isNeuter(unit) { + return unit === "quarter"; +} + +function numberWithSuffix(number, unit, masculine, feminine, neuter) { + const suffix = isNeuter(unit) + ? neuter + : isFeminine(unit) + ? feminine + : masculine; + return number + "-" + suffix; +} + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) { + return numberWithSuffix(0, unit, "ев", "ева", "ево"); + } else if (number % 1000 === 0) { + return numberWithSuffix(number, unit, "ен", "на", "но"); + } else if (number % 100 === 0) { + return numberWithSuffix(number, unit, "тен", "тна", "тно"); + } + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return numberWithSuffix(number, unit, "ви", "ва", "во"); + case 2: + return numberWithSuffix(number, unit, "ри", "ра", "ро"); + case 7: + case 8: + return numberWithSuffix(number, unit, "ми", "ма", "мо"); + } + } + + return numberWithSuffix(number, unit, "ти", "та", "то"); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/bg/_lib/match.cjs b/node_modules/date-fns/locale/bg/_lib/match.cjs new file mode 100644 index 000000000..32d82e39e --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/match.cjs @@ -0,0 +1,121 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(преди новата ера|новата ера|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^п/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?o?)? тримес.?/i, + wide: /^[1234](-?[врт]?о?)? тримесечие/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)/i, + abbreviated: /^(нед|пон|вто|сря|чет|пет|съб)/i, + wide: /^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i, +}; + +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[ъб]/i], +}; + +const matchMonthPatterns = { + abbreviated: /^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, + wide: /^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i, +}; + +const parseMonthPatterns = { + any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^май/i, + /^юн/i, + /^юл/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /^(преди о|след о|в по|на о|през|веч|сут|следо)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^преди о/i, + pm: /^след о/i, + midnight: /^в пол/i, + noon: /^на об/i, + morning: /^сут/i, + afternoon: /^следо/i, + evening: /^веч/i, + night: /^през н/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/bg/_lib/match.d.cts b/node_modules/date-fns/locale/bg/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bg/_lib/match.d.ts b/node_modules/date-fns/locale/bg/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bg/_lib/match.js b/node_modules/date-fns/locale/bg/_lib/match.js new file mode 100644 index 000000000..d2750f5cc --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/match.js @@ -0,0 +1,118 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(преди новата ера|новата ера|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^п/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?o?)? тримес.?/i, + wide: /^[1234](-?[врт]?о?)? тримесечие/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)/i, + abbreviated: /^(нед|пон|вто|сря|чет|пет|съб)/i, + wide: /^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i, +}; + +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[ъб]/i], +}; + +const matchMonthPatterns = { + abbreviated: /^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, + wide: /^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i, +}; + +const parseMonthPatterns = { + any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^май/i, + /^юн/i, + /^юл/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /^(преди о|след о|в по|на о|през|веч|сут|следо)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^преди о/i, + pm: /^след о/i, + midnight: /^в пол/i, + noon: /^на об/i, + morning: /^сут/i, + afternoon: /^следо/i, + evening: /^веч/i, + night: /^през н/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/bg/cdn.js b/node_modules/date-fns/locale/bg/cdn.js new file mode 100644 index 000000000..ce8527174 --- /dev/null +++ b/node_modules/date-fns/locale/bg/cdn.js @@ -0,0 +1,749 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/bg/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "по-малко от секунда", + other: "по-малко от {{count}} секунди" + }, + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди" + }, + halfAMinute: "половин минута", + lessThanXMinutes: { + one: "по-малко от минута", + other: "по-малко от {{count}} минути" + }, + xMinutes: { + one: "1 минута", + other: "{{count}} минути" + }, + aboutXHours: { + one: "около час", + other: "около {{count}} часа" + }, + xHours: { + one: "1 час", + other: "{{count}} часа" + }, + xDays: { + one: "1 ден", + other: "{{count}} дни" + }, + aboutXWeeks: { + one: "около седмица", + other: "около {{count}} седмици" + }, + xWeeks: { + one: "1 седмица", + other: "{{count}} седмици" + }, + aboutXMonths: { + one: "около месец", + other: "около {{count}} месеца" + }, + xMonths: { + one: "1 месец", + other: "{{count}} месеца" + }, + aboutXYears: { + one: "около година", + other: "около {{count}} години" + }, + xYears: { + one: "1 година", + other: "{{count}} години" + }, + overXYears: { + one: "над година", + other: "над {{count}} години" + }, + almostXYears: { + one: "почти година", + other: "почти {{count}} години" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "след " + result;else + return "преди " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}} {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/bg/_lib/formatRelative.js +var weekdays = [ +"неделя", +"понеделник", +"вторник", +"сряда", +"четвъртък", +"петък", +"събота"]; + +function lastWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'миналата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5:return "'миналия " + weekday + " в' p"; + } +} +function thisWeek(day) { + var weekday = weekdays[day]; + if (day === 2) return "'във " + weekday + " в' p";else + return "'в " + weekday + " в' p"; +} +function nextWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'следващата " + weekday + " в' p"; + case 1: + case 2: + case 4: + case 5:return "'следващия " + weekday + " в' p"; + } +} +var lastWeekFormatToken = function lastWeekFormatToken(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return lastWeek(day); +}; +var nextWeekFormatToken = function nextWeekFormatToken(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return nextWeek(day); +}; +var formatRelativeLocale = { + lastWeek: lastWeekFormatToken, + yesterday: "'вчера в' p", + today: "'днес в' p", + tomorrow: "'утре в' p", + nextWeek: nextWeekFormatToken, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/bg/_lib/localize.js +var eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["преди н. е.", "н. е."], + wide: ["преди новата ера", "новата ера"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-во тримес.", + "2-ро тримес.", + "3-то тримес.", + "4-то тримес."], + + wide: [ + "1-во тримесечие", + "2-ро тримесечие", + "3-то тримесечие", + "4-то тримесечие"] + +}; +var monthValues = { + abbreviated: [ + "яну", + "фев", + "мар", + "апр", + "май", + "юни", + "юли", + "авг", + "сеп", + "окт", + "ное", + "дек"], + + wide: [ + "януари", + "февруари", + "март", + "април", + "май", + "юни", + "юли", + "август", + "септември", + "октомври", + "ноември", + "декември"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "В", + "С", + "Ч", + "П", + "С"], + + short: [ + "нд", + "пн", + "вт", + "ср", + "чт", + "пт", + "сб"], + + abbreviated: [ + "нед", + "пон", + "вто", + "сря", + "чет", + "пет", + "съб"], + + wide: [ + "неделя", + "понеделник", + "вторник", + "сряда", + "четвъртък", + "петък", + "събота"] + +}; +var dayPeriodValues = { wide: { + am: "преди обяд", + pm: "след обяд", + midnight: "в полунощ", + noon: "на обяд", + morning: "сутринта", + afternoon: "следобед", + evening: "вечерта", + night: "през нощта" + } }; +function isFeminine(unit) { + return unit === "year" || unit === "week" || unit === "minute" || unit === "second"; +} +function isNeuter(unit) { + return unit === "quarter"; +} +function numberWithSuffix(number, unit, masculine, feminine, neuter) { + var suffix = isNeuter(unit) ? neuter : isFeminine(unit) ? feminine : masculine; + return number + "-" + suffix; +} +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return numberWithSuffix(0, unit, "ев", "ева", "ево");else + if (number % 1e3 === 0) return numberWithSuffix(number, unit, "ен", "на", "но");else + if (number % 100 === 0) return numberWithSuffix(number, unit, "тен", "тна", "тно"); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return numberWithSuffix(number, unit, "ви", "ва", "во"); + case 2:return numberWithSuffix(number, unit, "ри", "ра", "ро"); + case 7: + case 8:return numberWithSuffix(number, unit, "ми", "ма", "мо"); + } + return numberWithSuffix(number, unit, "ти", "та", "то"); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/bg.js +/** +* @category Locales +* @summary Bulgarian locale. +* @language Bulgarian +* @iso-639-2 bul +* @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) +* @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) +*/ +var bg = { + code: "bg", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(преди новата ера|новата ера|нова ера)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^п/i, /^н/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?o?)? тримес.?/i, + wide: /^[1234](-?[врт]?о?)? тримесечие/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + abbreviated: /^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, + wide: /^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^май/i, + /^юн/i, + /^юл/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)/i, + abbreviated: /^(нед|пон|вто|сря|чет|пет|съб)/i, + wide: /^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^н/i, + /^п/i, + /^в/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i], + + any: [ + /^н[ед]/i, + /^п[он]/i, + /^вт/i, + /^ср/i, + /^ч[ет]/i, + /^п[ет]/i, + /^с[ъб]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(преди о|след о|в по|на о|през|веч|сут|следо)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^преди о/i, + pm: /^след о/i, + midnight: /^в пол/i, + noon: /^на об/i, + morning: /^сут/i, + afternoon: /^следо/i, + evening: /^веч/i, + night: /^през н/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/bg/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + bg: bg }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/cdn.min.js b/node_modules/date-fns/locale/bg/cdn.min.js new file mode 100644 index 000000000..04f7d85a9 --- /dev/null +++ b/node_modules/date-fns/locale/bg/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`след `+r:`преди `+r:r};function m(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var h={date:m({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:m({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},g=Symbol.for(`constructDateFrom`);function _(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e){var t=[...arguments].slice(1),n=_.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var y={};function b(){return y}function x(e,t){return _(t||e,e)}function S(e,t){var n,r,i=b(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=x(e,t?.in),s=o.getDay(),c=(s20||i<10)switch(i%10){case 1:return R(n,r,`ви`,`ва`,`во`);case 2:return R(n,r,`ри`,`ра`,`ро`);case 7:case 8:return R(n,r,`ми`,`ма`,`мо`)}return R(n,r,`ти`,`та`,`то`)},era:A({values:j,defaultWidth:`wide`}),quarter:A({values:M,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:A({values:N,defaultWidth:`wide`}),day:A({values:P,defaultWidth:`wide`}),dayPeriod:A({values:F,defaultWidth:`wide`})};function B(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?H(s,function(e){return e.test(o)}):V(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function V(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function H(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var W={code:`bg`,formatDistance:p,formatLong:h,formatRelative:k,localize:z,match:{ordinalNumber:U({matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:B({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:`any`}),quarter:B({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:B({matchPatterns:{abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:`any`}),day:B({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},defaultParseWidth:`any`}),dayPeriod:B({matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{bg:W})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn.cjs b/node_modules/date-fns/locale/bn.cjs new file mode 100644 index 000000000..58d12eca1 --- /dev/null +++ b/node_modules/date-fns/locale/bn.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.bn = void 0; +var _index = require("./bn/_lib/formatDistance.cjs"); +var _index2 = require("./bn/_lib/formatLong.cjs"); +var _index3 = require("./bn/_lib/formatRelative.cjs"); +var _index4 = require("./bn/_lib/localize.cjs"); +var _index5 = require("./bn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) + * @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) + */ +const bn = (exports.bn = { + code: "bn", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/bn.d.cts b/node_modules/date-fns/locale/bn.d.cts new file mode 100644 index 000000000..cd6fd65c4 --- /dev/null +++ b/node_modules/date-fns/locale/bn.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) + * @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) + */ +export declare const bn: Locale; diff --git a/node_modules/date-fns/locale/bn.d.ts b/node_modules/date-fns/locale/bn.d.ts new file mode 100644 index 000000000..cd6fd65c4 --- /dev/null +++ b/node_modules/date-fns/locale/bn.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) + * @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) + */ +export declare const bn: Locale; diff --git a/node_modules/date-fns/locale/bn.js b/node_modules/date-fns/locale/bn.js new file mode 100644 index 000000000..565c5705b --- /dev/null +++ b/node_modules/date-fns/locale/bn.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./bn/_lib/formatDistance.js"; +import { formatLong } from "./bn/_lib/formatLong.js"; +import { formatRelative } from "./bn/_lib/formatRelative.js"; +import { localize } from "./bn/_lib/localize.js"; +import { match } from "./bn/_lib/match.js"; + +/** + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) + * @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) + */ +export const bn = { + code: "bn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default bn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/bn/_lib/formatDistance.cjs new file mode 100644 index 000000000..02152065c --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance.cjs @@ -0,0 +1,109 @@ +"use strict"; +exports.formatDistance = void 0; +var _index = require("./localize.cjs"); + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "প্রায় ১ সেকেন্ড", + other: "প্রায় {{count}} সেকেন্ড", + }, + + xSeconds: { + one: "১ সেকেন্ড", + other: "{{count}} সেকেন্ড", + }, + + halfAMinute: "আধ মিনিট", + + lessThanXMinutes: { + one: "প্রায় ১ মিনিট", + other: "প্রায় {{count}} মিনিট", + }, + + xMinutes: { + one: "১ মিনিট", + other: "{{count}} মিনিট", + }, + + aboutXHours: { + one: "প্রায় ১ ঘন্টা", + other: "প্রায় {{count}} ঘন্টা", + }, + + xHours: { + one: "১ ঘন্টা", + other: "{{count}} ঘন্টা", + }, + + xDays: { + one: "১ দিন", + other: "{{count}} দিন", + }, + + aboutXWeeks: { + one: "প্রায় ১ সপ্তাহ", + other: "প্রায় {{count}} সপ্তাহ", + }, + + xWeeks: { + one: "১ সপ্তাহ", + other: "{{count}} সপ্তাহ", + }, + + aboutXMonths: { + one: "প্রায় ১ মাস", + other: "প্রায় {{count}} মাস", + }, + + xMonths: { + one: "১ মাস", + other: "{{count}} মাস", + }, + + aboutXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর", + }, + + xYears: { + one: "১ বছর", + other: "{{count}} বছর", + }, + + overXYears: { + one: "১ বছরের বেশি", + other: "{{count}} বছরের বেশি", + }, + + almostXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + (0, _index.numberToLocale)(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " এর মধ্যে"; + } else { + return result + " আগে"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance.js b/node_modules/date-fns/locale/bn/_lib/formatDistance.js new file mode 100644 index 000000000..d34cbb1cb --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance.js @@ -0,0 +1,103 @@ +import { numberToLocale } from "./localize.js"; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "প্রায় ১ সেকেন্ড", + other: "প্রায় {{count}} সেকেন্ড", + }, + + xSeconds: { + one: "১ সেকেন্ড", + other: "{{count}} সেকেন্ড", + }, + + halfAMinute: "আধ মিনিট", + + lessThanXMinutes: { + one: "প্রায় ১ মিনিট", + other: "প্রায় {{count}} মিনিট", + }, + + xMinutes: { + one: "১ মিনিট", + other: "{{count}} মিনিট", + }, + + aboutXHours: { + one: "প্রায় ১ ঘন্টা", + other: "প্রায় {{count}} ঘন্টা", + }, + + xHours: { + one: "১ ঘন্টা", + other: "{{count}} ঘন্টা", + }, + + xDays: { + one: "১ দিন", + other: "{{count}} দিন", + }, + + aboutXWeeks: { + one: "প্রায় ১ সপ্তাহ", + other: "প্রায় {{count}} সপ্তাহ", + }, + + xWeeks: { + one: "১ সপ্তাহ", + other: "{{count}} সপ্তাহ", + }, + + aboutXMonths: { + one: "প্রায় ১ মাস", + other: "প্রায় {{count}} মাস", + }, + + xMonths: { + one: "১ মাস", + other: "{{count}} মাস", + }, + + aboutXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর", + }, + + xYears: { + one: "১ বছর", + other: "{{count}} বছর", + }, + + overXYears: { + one: "১ বছরের বেশি", + other: "{{count}} বছরের বেশি", + }, + + almostXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " এর মধ্যে"; + } else { + return result + " আগে"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong.cjs b/node_modules/date-fns/locale/bn/_lib/formatLong.cjs new file mode 100644 index 000000000..dd4a8aa7d --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}} 'সময়'", + long: "{{date}} {{time}} 'সময়'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/bn/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/bn/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong.js b/node_modules/date-fns/locale/bn/_lib/formatLong.js new file mode 100644 index 000000000..7fdc12a42 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}} 'সময়'", + long: "{{date}} {{time}} 'সময়'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/bn/_lib/formatRelative.cjs new file mode 100644 index 000000000..afacdb778 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative.js b/node_modules/date-fns/locale/bn/_lib/formatRelative.js new file mode 100644 index 000000000..f2282029e --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/bn/_lib/localize.cjs b/node_modules/date-fns/locale/bn/_lib/localize.cjs new file mode 100644 index 000000000..baacccd92 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/localize.cjs @@ -0,0 +1,258 @@ +"use strict"; +exports.localize = void 0; +exports.numberToLocale = numberToLocale; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const numberValues = { + locale: { + 1: "১", + 2: "২", + 3: "৩", + 4: "৪", + 5: "৫", + 6: "৬", + 7: "৭", + 8: "৮", + 9: "৯", + 0: "০", + }, + number: { + "১": "1", + "২": "2", + "৩": "3", + "৪": "4", + "৫": "5", + "৬": "6", + "৭": "7", + "৮": "8", + "৯": "9", + "০": "0", + }, +}; + +const eraValues = { + narrow: ["খ্রিঃপূঃ", "খ্রিঃ"], + abbreviated: ["খ্রিঃপূর্ব", "খ্রিঃ"], + wide: ["খ্রিস্টপূর্ব", "খ্রিস্টাব্দ"], +}; + +const quarterValues = { + narrow: ["১", "২", "৩", "৪"], + abbreviated: ["১ত্রৈ", "২ত্রৈ", "৩ত্রৈ", "৪ত্রৈ"], + wide: ["১ম ত্রৈমাসিক", "২য় ত্রৈমাসিক", "৩য় ত্রৈমাসিক", "৪র্থ ত্রৈমাসিক"], +}; + +const monthValues = { + narrow: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে", + ], + + abbreviated: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে", + ], + + wide: [ + "জানুয়ারি", + "ফেব্রুয়ারি", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্টেম্বর", + "অক্টোবর", + "নভেম্বর", + "ডিসেম্বর", + ], +}; + +const dayValues = { + narrow: ["র", "সো", "ম", "বু", "বৃ", "শু", "শ"], + short: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহ", "শুক্র", "শনি"], + abbreviated: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহ", "শুক্র", "শনি"], + wide: [ + "রবিবার", + "সোমবার", + "মঙ্গলবার", + "বুধবার", + "বৃহস্পতিবার ", + "শুক্রবার", + "শনিবার", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, +}; + +function dateOrdinalNumber(number, localeNumber) { + if (number > 18 && number <= 31) { + return localeNumber + "শে"; + } else { + switch (number) { + case 1: + return localeNumber + "লা"; + case 2: + case 3: + return localeNumber + "রা"; + case 4: + return localeNumber + "ঠা"; + default: + return localeNumber + "ই"; + } + } +} + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const localeNumber = numberToLocale(number); + const unit = options?.unit; + + if (unit === "date") { + return dateOrdinalNumber(number, localeNumber); + } + if (number > 10 || number === 0) return localeNumber + "তম"; + + const rem10 = number % 10; + switch (rem10) { + case 2: + case 3: + return localeNumber + "য়"; + case 4: + return localeNumber + "র্থ"; + case 6: + return localeNumber + "ষ্ঠ"; + default: + return localeNumber + "ম"; + } +}; + +// function localeToNumber(locale: string): number { +// const enNumber = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { +// return numberValues.number[match as keyof typeof numberValues.number] +// }) +// return Number(enNumber) +// } + +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/bn/_lib/localize.d.cts b/node_modules/date-fns/locale/bn/_lib/localize.d.cts new file mode 100644 index 000000000..dfe4c3621 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/localize.d.cts @@ -0,0 +1,3 @@ +import type { Localize } from "../../types.ts"; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bn/_lib/localize.d.ts b/node_modules/date-fns/locale/bn/_lib/localize.d.ts new file mode 100644 index 000000000..dfe4c3621 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/localize.d.ts @@ -0,0 +1,3 @@ +import type { Localize } from "../../types.ts"; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bn/_lib/localize.js b/node_modules/date-fns/locale/bn/_lib/localize.js new file mode 100644 index 000000000..84ee6f57b --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/localize.js @@ -0,0 +1,255 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const numberValues = { + locale: { + 1: "১", + 2: "২", + 3: "৩", + 4: "৪", + 5: "৫", + 6: "৬", + 7: "৭", + 8: "৮", + 9: "৯", + 0: "০", + }, + number: { + "১": "1", + "২": "2", + "৩": "3", + "৪": "4", + "৫": "5", + "৬": "6", + "৭": "7", + "৮": "8", + "৯": "9", + "০": "0", + }, +}; + +const eraValues = { + narrow: ["খ্রিঃপূঃ", "খ্রিঃ"], + abbreviated: ["খ্রিঃপূর্ব", "খ্রিঃ"], + wide: ["খ্রিস্টপূর্ব", "খ্রিস্টাব্দ"], +}; + +const quarterValues = { + narrow: ["১", "২", "৩", "৪"], + abbreviated: ["১ত্রৈ", "২ত্রৈ", "৩ত্রৈ", "৪ত্রৈ"], + wide: ["১ম ত্রৈমাসিক", "২য় ত্রৈমাসিক", "৩য় ত্রৈমাসিক", "৪র্থ ত্রৈমাসিক"], +}; + +const monthValues = { + narrow: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে", + ], + + abbreviated: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে", + ], + + wide: [ + "জানুয়ারি", + "ফেব্রুয়ারি", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্টেম্বর", + "অক্টোবর", + "নভেম্বর", + "ডিসেম্বর", + ], +}; + +const dayValues = { + narrow: ["র", "সো", "ম", "বু", "বৃ", "শু", "শ"], + short: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহ", "শুক্র", "শনি"], + abbreviated: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহ", "শুক্র", "শনি"], + wide: [ + "রবিবার", + "সোমবার", + "মঙ্গলবার", + "বুধবার", + "বৃহস্পতিবার ", + "শুক্রবার", + "শনিবার", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত", + }, +}; + +function dateOrdinalNumber(number, localeNumber) { + if (number > 18 && number <= 31) { + return localeNumber + "শে"; + } else { + switch (number) { + case 1: + return localeNumber + "লা"; + case 2: + case 3: + return localeNumber + "রা"; + case 4: + return localeNumber + "ঠা"; + default: + return localeNumber + "ই"; + } + } +} + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const localeNumber = numberToLocale(number); + const unit = options?.unit; + + if (unit === "date") { + return dateOrdinalNumber(number, localeNumber); + } + if (number > 10 || number === 0) return localeNumber + "তম"; + + const rem10 = number % 10; + switch (rem10) { + case 2: + case 3: + return localeNumber + "য়"; + case 4: + return localeNumber + "র্থ"; + case 6: + return localeNumber + "ষ্ঠ"; + default: + return localeNumber + "ম"; + } +}; + +// function localeToNumber(locale: string): number { +// const enNumber = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { +// return numberValues.number[match as keyof typeof numberValues.number] +// }) +// return Number(enNumber) +// } + +export function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/bn/_lib/match.cjs b/node_modules/date-fns/locale/bn/_lib/match.cjs new file mode 100644 index 000000000..bf5d01164 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(খ্রিঃপূঃ|খ্রিঃ)/i, + abbreviated: /^(খ্রিঃপূর্ব|খ্রিঃ)/i, + wide: /^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i, +}; +const parseEraPatterns = { + narrow: [/^খ্রিঃপূঃ/i, /^খ্রিঃ/i], + abbreviated: [/^খ্রিঃপূর্ব/i, /^খ্রিঃ/i], + wide: [/^খ্রিস্টপূর্ব/i, /^খ্রিস্টাব্দ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[১২৩৪]/i, + abbreviated: /^[১২৩৪]ত্রৈ/i, + wide: /^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i, +}; +const parseQuarterPatterns = { + any: [/১/i, /২/i, /৩/i, /৪/i], +}; + +const matchMonthPatterns = { + narrow: + /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + abbreviated: + /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + wide: /^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i, +}; +const parseMonthPatterns = { + any: [ + /^জানু/i, + /^ফেব্রু/i, + /^মার্চ/i, + /^এপ্রিল/i, + /^মে/i, + /^জুন/i, + /^জুলাই/i, + /^আগস্ট/i, + /^সেপ্ট/i, + /^অক্টো/i, + /^নভে/i, + /^ডিসে/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(র|সো|ম|বু|বৃ|শু|শ)+/i, + short: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + abbreviated: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + wide: /^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i, +}; +const parseDayPatterns = { + narrow: [/^র/i, /^সো/i, /^ম/i, /^বু/i, /^বৃ/i, /^শু/i, /^শ/i], + short: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + + abbreviated: [ + /^রবি/i, + /^সোম/i, + /^মঙ্গল/i, + /^বুধ/i, + /^বৃহ/i, + /^শুক্র/i, + /^শনি/i, + ], + + wide: [ + /^রবিবার/i, + /^সোমবার/i, + /^মঙ্গলবার/i, + /^বুধবার/i, + /^বৃহস্পতিবার /i, + /^শুক্রবার/i, + /^শনিবার/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + abbreviated: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + wide: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^পূ/i, + pm: /^অপ/i, + midnight: /^মধ্যরাত/i, + noon: /^মধ্যাহ্ন/i, + morning: /সকাল/i, + afternoon: /বিকাল/i, + evening: /সন্ধ্যা/i, + night: /রাত/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/bn/_lib/match.d.cts b/node_modules/date-fns/locale/bn/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bn/_lib/match.d.ts b/node_modules/date-fns/locale/bn/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bn/_lib/match.js b/node_modules/date-fns/locale/bn/_lib/match.js new file mode 100644 index 000000000..da52f2559 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/match.js @@ -0,0 +1,142 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(খ্রিঃপূঃ|খ্রিঃ)/i, + abbreviated: /^(খ্রিঃপূর্ব|খ্রিঃ)/i, + wide: /^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i, +}; +const parseEraPatterns = { + narrow: [/^খ্রিঃপূঃ/i, /^খ্রিঃ/i], + abbreviated: [/^খ্রিঃপূর্ব/i, /^খ্রিঃ/i], + wide: [/^খ্রিস্টপূর্ব/i, /^খ্রিস্টাব্দ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[১২৩৪]/i, + abbreviated: /^[১২৩৪]ত্রৈ/i, + wide: /^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i, +}; +const parseQuarterPatterns = { + any: [/১/i, /২/i, /৩/i, /৪/i], +}; + +const matchMonthPatterns = { + narrow: + /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + abbreviated: + /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + wide: /^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i, +}; +const parseMonthPatterns = { + any: [ + /^জানু/i, + /^ফেব্রু/i, + /^মার্চ/i, + /^এপ্রিল/i, + /^মে/i, + /^জুন/i, + /^জুলাই/i, + /^আগস্ট/i, + /^সেপ্ট/i, + /^অক্টো/i, + /^নভে/i, + /^ডিসে/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(র|সো|ম|বু|বৃ|শু|শ)+/i, + short: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + abbreviated: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + wide: /^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i, +}; +const parseDayPatterns = { + narrow: [/^র/i, /^সো/i, /^ম/i, /^বু/i, /^বৃ/i, /^শু/i, /^শ/i], + short: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + + abbreviated: [ + /^রবি/i, + /^সোম/i, + /^মঙ্গল/i, + /^বুধ/i, + /^বৃহ/i, + /^শুক্র/i, + /^শনি/i, + ], + + wide: [ + /^রবিবার/i, + /^সোমবার/i, + /^মঙ্গলবার/i, + /^বুধবার/i, + /^বৃহস্পতিবার /i, + /^শুক্রবার/i, + /^শনিবার/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + abbreviated: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + wide: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^পূ/i, + pm: /^অপ/i, + midnight: /^মধ্যরাত/i, + noon: /^মধ্যাহ্ন/i, + morning: /সকাল/i, + afternoon: /বিকাল/i, + evening: /সন্ধ্যা/i, + night: /রাত/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/bn/cdn.js b/node_modules/date-fns/locale/bn/cdn.js new file mode 100644 index 000000000..4cd43fe1d --- /dev/null +++ b/node_modules/date-fns/locale/bn/cdn.js @@ -0,0 +1,632 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/bn/_lib/localize.js +var numberValues = { + locale: { + 1: "১", + 2: "২", + 3: "৩", + 4: "৪", + 5: "৫", + 6: "৬", + 7: "৭", + 8: "৮", + 9: "৯", + 0: "০" + }, + number: { + "১": "1", + "২": "2", + "৩": "3", + "৪": "4", + "৫": "5", + "৬": "6", + "৭": "7", + "৮": "8", + "৯": "9", + "০": "0" + } +}; +var eraValues = { + narrow: ["খ্রিঃপূঃ", "খ্রিঃ"], + abbreviated: ["খ্রিঃপূর্ব", "খ্রিঃ"], + wide: ["খ্রিস্টপূর্ব", "খ্রিস্টাব্দ"] +}; +var quarterValues = { + narrow: [ + "১", + "২", + "৩", + "৪"], + + abbreviated: [ + "১ত্রৈ", + "২ত্রৈ", + "৩ত্রৈ", + "৪ত্রৈ"], + + wide: [ + "১ম ত্রৈমাসিক", + "২য় ত্রৈমাসিক", + "৩য় ত্রৈমাসিক", + "৪র্থ ত্রৈমাসিক"] + +}; +var monthValues = { + narrow: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে"], + + abbreviated: [ + "জানু", + "ফেব্রু", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্ট", + "অক্টো", + "নভে", + "ডিসে"], + + wide: [ + "জানুয়ারি", + "ফেব্রুয়ারি", + "মার্চ", + "এপ্রিল", + "মে", + "জুন", + "জুলাই", + "আগস্ট", + "সেপ্টেম্বর", + "অক্টোবর", + "নভেম্বর", + "ডিসেম্বর"] + +}; +var dayValues = { + narrow: [ + "র", + "সো", + "ম", + "বু", + "বৃ", + "শু", + "শ"], + + short: [ + "রবি", + "সোম", + "মঙ্গল", + "বুধ", + "বৃহ", + "শুক্র", + "শনি"], + + abbreviated: [ + "রবি", + "সোম", + "মঙ্গল", + "বুধ", + "বৃহ", + "শুক্র", + "শনি"], + + wide: [ + "রবিবার", + "সোমবার", + "মঙ্গলবার", + "বুধবার", + "বৃহস্পতিবার ", + "শুক্রবার", + "শনিবার"] + +}; +var dayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "পূ", + pm: "অপ", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + }, + abbreviated: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + }, + wide: { + am: "পূর্বাহ্ন", + pm: "অপরাহ্ন", + midnight: "মধ্যরাত", + noon: "মধ্যাহ্ন", + morning: "সকাল", + afternoon: "বিকাল", + evening: "সন্ধ্যা", + night: "রাত" + } +}; +function dateOrdinalNumber(number, localeNumber) { + if (number > 18 && number <= 31) return localeNumber + "শে";else + switch (number) { + case 1:return localeNumber + "লা"; + case 2: + case 3:return localeNumber + "রা"; + case 4:return localeNumber + "ঠা"; + default:return localeNumber + "ই"; + } +} +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var localeNumber = numberToLocale(number); + if ((options === null || options === void 0 ? void 0 : options.unit) === "date") return dateOrdinalNumber(number, localeNumber); + if (number > 10 || number === 0) return localeNumber + "তম"; + switch (number % 10) { + case 2: + case 3:return localeNumber + "য়"; + case 4:return localeNumber + "র্থ"; + case 6:return localeNumber + "ষ্ঠ"; + default:return localeNumber + "ম"; + } +}; +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/bn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "প্রায় ১ সেকেন্ড", + other: "প্রায় {{count}} সেকেন্ড" + }, + xSeconds: { + one: "১ সেকেন্ড", + other: "{{count}} সেকেন্ড" + }, + halfAMinute: "আধ মিনিট", + lessThanXMinutes: { + one: "প্রায় ১ মিনিট", + other: "প্রায় {{count}} মিনিট" + }, + xMinutes: { + one: "১ মিনিট", + other: "{{count}} মিনিট" + }, + aboutXHours: { + one: "প্রায় ১ ঘন্টা", + other: "প্রায় {{count}} ঘন্টা" + }, + xHours: { + one: "১ ঘন্টা", + other: "{{count}} ঘন্টা" + }, + xDays: { + one: "১ দিন", + other: "{{count}} দিন" + }, + aboutXWeeks: { + one: "প্রায় ১ সপ্তাহ", + other: "প্রায় {{count}} সপ্তাহ" + }, + xWeeks: { + one: "১ সপ্তাহ", + other: "{{count}} সপ্তাহ" + }, + aboutXMonths: { + one: "প্রায় ১ মাস", + other: "প্রায় {{count}} মাস" + }, + xMonths: { + one: "১ মাস", + other: "{{count}} মাস" + }, + aboutXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর" + }, + xYears: { + one: "১ বছর", + other: "{{count}} বছর" + }, + overXYears: { + one: "১ বছরের বেশি", + other: "{{count}} বছরের বেশি" + }, + almostXYears: { + one: "প্রায় ১ বছর", + other: "প্রায় {{count}} বছর" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " এর মধ্যে";else + return result + " আগে"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}} 'সময়'", + long: "{{date}} {{time}} 'সময়'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/bn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/bn.js +/** +* @category Locales +* @summary Bengali locale. +* @language Bengali +* @iso-639-2 ben +* @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) +* @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) +*/ +var bn = { + code: "bn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(খ্রিঃপূঃ|খ্রিঃ)/i, + abbreviated: /^(খ্রিঃপূর্ব|খ্রিঃ)/i, + wide: /^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^খ্রিঃপূঃ/i, /^খ্রিঃ/i], + abbreviated: [/^খ্রিঃপূর্ব/i, /^খ্রিঃ/i], + wide: [/^খ্রিস্টপূর্ব/i, /^খ্রিস্টাব্দ/i] + }, + defaultParseWidth: "wide" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[১২৩৪]/i, + abbreviated: /^[১২৩৪]ত্রৈ/i, + wide: /^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /১/i, + /২/i, + /৩/i, + /৪/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + abbreviated: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + wide: /^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^জানু/i, + /^ফেব্রু/i, + /^মার্চ/i, + /^এপ্রিল/i, + /^মে/i, + /^জুন/i, + /^জুলাই/i, + /^আগস্ট/i, + /^সেপ্ট/i, + /^অক্টো/i, + /^নভে/i, + /^ডিসে/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(র|সো|ম|বু|বৃ|শু|শ)+/i, + short: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + abbreviated: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + wide: /^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^র/i, + /^সো/i, + /^ম/i, + /^বু/i, + /^বৃ/i, + /^শু/i, + /^শ/i], + + short: [ + /^রবি/i, + /^সোম/i, + /^মঙ্গল/i, + /^বুধ/i, + /^বৃহ/i, + /^শুক্র/i, + /^শনি/i], + + abbreviated: [ + /^রবি/i, + /^সোম/i, + /^মঙ্গল/i, + /^বুধ/i, + /^বৃহ/i, + /^শুক্র/i, + /^শনি/i], + + wide: [ + /^রবিবার/i, + /^সোমবার/i, + /^মঙ্গলবার/i, + /^বুধবার/i, + /^বৃহস্পতিবার /i, + /^শুক্রবার/i, + /^শনিবার/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + abbreviated: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + wide: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^পূ/i, + pm: /^অপ/i, + midnight: /^মধ্যরাত/i, + noon: /^মধ্যাহ্ন/i, + morning: /সকাল/i, + afternoon: /বিকাল/i, + evening: /সন্ধ্যা/i, + night: /রাত/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/bn/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + bn: bn }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/cdn.min.js b/node_modules/date-fns/locale/bn/cdn.min.js new file mode 100644 index 000000000..9963fd46b --- /dev/null +++ b/node_modules/date-fns/locale/bn/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n18&&e<=31)return t+`শে`;switch(e){case 1:return t+`লা`;case 2:case 3:return t+`রা`;case 4:return t+`ঠা`;default:return t+`ই`}}var h=function(e,t){var n=Number(e),r=g(n);if(t?.unit===`date`)return m(n,r);if(n>10||n===0)return r+`তম`;switch(n%10){case 2:case 3:return r+`য়`;case 4:return r+`র্থ`;case 6:return r+`ষ্ঠ`;default:return r+`ম`}};function g(e){return e.toString().replace(/\d/g,function(e){return s.locale[e]})}var _={ordinalNumber:h,era:o({values:c,defaultWidth:`wide`}),quarter:o({values:l,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:o({values:u,defaultWidth:`wide`}),day:o({values:d,defaultWidth:`wide`}),dayPeriod:o({values:f,defaultWidth:`wide`,formattingValues:p,defaultFormattingWidth:`wide`})},v={lessThanXSeconds:{one:`প্রায় ১ সেকেন্ড`,other:`প্রায় {{count}} সেকেন্ড`},xSeconds:{one:`১ সেকেন্ড`,other:`{{count}} সেকেন্ড`},halfAMinute:`আধ মিনিট`,lessThanXMinutes:{one:`প্রায় ১ মিনিট`,other:`প্রায় {{count}} মিনিট`},xMinutes:{one:`১ মিনিট`,other:`{{count}} মিনিট`},aboutXHours:{one:`প্রায় ১ ঘন্টা`,other:`প্রায় {{count}} ঘন্টা`},xHours:{one:`১ ঘন্টা`,other:`{{count}} ঘন্টা`},xDays:{one:`১ দিন`,other:`{{count}} দিন`},aboutXWeeks:{one:`প্রায় ১ সপ্তাহ`,other:`প্রায় {{count}} সপ্তাহ`},xWeeks:{one:`১ সপ্তাহ`,other:`{{count}} সপ্তাহ`},aboutXMonths:{one:`প্রায় ১ মাস`,other:`প্রায় {{count}} মাস`},xMonths:{one:`১ মাস`,other:`{{count}} মাস`},aboutXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`},xYears:{one:`১ বছর`,other:`{{count}} বছর`},overXYears:{one:`১ বছরের বেশি`,other:`{{count}} বছরের বেশি`},almostXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`}},y=function(e,t,n){var r,i=v[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,g(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` এর মধ্যে`:r+` আগে`:r};function b(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var x={date:b({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:b({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}} {{time}} 'সময়'`,long:`{{date}} {{time}} 'সময়'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},S={lastWeek:`'গত' eeee 'সময়' p`,yesterday:`'গতকাল' 'সময়' p`,today:`'আজ' 'সময়' p`,tomorrow:`'আগামীকাল' 'সময়' p`,nextWeek:`eeee 'সময়' p`,other:`P`},C=function(e,t,n,r){return S[e]};function w(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?E(s,function(e){return e.test(o)}):T(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function T(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function E(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var O={code:`bn`,formatDistance:y,formatLong:x,formatRelative:C,localize:_,match:{ordinalNumber:D({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:w({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:`wide`}),quarter:w({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:w({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:`any`}),day:w({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:`wide`}),dayPeriod:w({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{bn:O})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs.cjs b/node_modules/date-fns/locale/bs.cjs new file mode 100644 index 000000000..d23bf8463 --- /dev/null +++ b/node_modules/date-fns/locale/bs.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.bs = void 0; +var _index = require("./bs/_lib/formatDistance.cjs"); +var _index2 = require("./bs/_lib/formatLong.cjs"); +var _index3 = require("./bs/_lib/formatRelative.cjs"); +var _index4 = require("./bs/_lib/localize.cjs"); +var _index5 = require("./bs/_lib/match.cjs"); + +/** + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) + */ +const bs = (exports.bs = { + code: "bs", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/bs.d.cts b/node_modules/date-fns/locale/bs.d.cts new file mode 100644 index 000000000..13ed38721 --- /dev/null +++ b/node_modules/date-fns/locale/bs.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) + */ +export declare const bs: Locale; diff --git a/node_modules/date-fns/locale/bs.d.ts b/node_modules/date-fns/locale/bs.d.ts new file mode 100644 index 000000000..13ed38721 --- /dev/null +++ b/node_modules/date-fns/locale/bs.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) + */ +export declare const bs: Locale; diff --git a/node_modules/date-fns/locale/bs.js b/node_modules/date-fns/locale/bs.js new file mode 100644 index 000000000..9a4fd6121 --- /dev/null +++ b/node_modules/date-fns/locale/bs.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./bs/_lib/formatDistance.js"; +import { formatLong } from "./bs/_lib/formatLong.js"; +import { formatRelative } from "./bs/_lib/formatRelative.js"; +import { localize } from "./bs/_lib/localize.js"; +import { match } from "./bs/_lib/match.js"; + +/** + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) + */ +export const bs = { + code: "bs", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default bs; diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance.cjs b/node_modules/date-fns/locale/bs/_lib/formatDistance.cjs new file mode 100644 index 000000000..8e3d5c6d8 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 sedmicu", + withPrepositionAgo: "oko 1 sedmicu", + withPrepositionIn: "oko 1 sedmicu", + }, + dual: "oko {{count}} sedmice", + other: "oko {{count}} sedmice", + }, + + xWeeks: { + one: { + standalone: "1 sedmicu", + withPrepositionAgo: "1 sedmicu", + withPrepositionIn: "1 sedmicu", + }, + dual: "{{count}} sedmice", + other: "{{count}} sedmice", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance.js b/node_modules/date-fns/locale/bs/_lib/formatDistance.js new file mode 100644 index 000000000..236e39904 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 sedmicu", + withPrepositionAgo: "oko 1 sedmicu", + withPrepositionIn: "oko 1 sedmicu", + }, + dual: "oko {{count}} sedmice", + other: "oko {{count}} sedmice", + }, + + xWeeks: { + one: { + standalone: "1 sedmicu", + withPrepositionAgo: "1 sedmicu", + withPrepositionIn: "1 sedmicu", + }, + dual: "{{count}} sedmice", + other: "{{count}} sedmice", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong.cjs b/node_modules/date-fns/locale/bs/_lib/formatLong.cjs new file mode 100644 index 000000000..2099da340 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong.d.cts b/node_modules/date-fns/locale/bs/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong.d.ts b/node_modules/date-fns/locale/bs/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong.js b/node_modules/date-fns/locale/bs/_lib/formatLong.js new file mode 100644 index 000000000..3e29d6580 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative.cjs b/node_modules/date-fns/locale/bs/_lib/formatRelative.cjs new file mode 100644 index 000000000..b134b5f03 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedjelje u' p"; + case 3: + return "'prošle srijede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sljedeće nedjelje u' p"; + case 3: + return "'sljedeću srijedu u' p"; + case 6: + return "'sljedeću subotu u' p"; + default: + return "'sljedeći' EEEE 'u' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative.js b/node_modules/date-fns/locale/bs/_lib/formatRelative.js new file mode 100644 index 000000000..695764a53 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative.js @@ -0,0 +1,40 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedjelje u' p"; + case 3: + return "'prošle srijede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sljedeće nedjelje u' p"; + case 3: + return "'sljedeću srijedu u' p"; + case 6: + return "'sljedeću subotu u' p"; + default: + return "'sljedeći' EEEE 'u' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/bs/_lib/localize.cjs b/node_modules/date-fns/locale/bs/_lib/localize.cjs new file mode 100644 index 000000000..5a0333706 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/localize.cjs @@ -0,0 +1,229 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Prije Hrista", "Poslije Hrista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(number) + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/bs/_lib/localize.d.cts b/node_modules/date-fns/locale/bs/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bs/_lib/localize.d.ts b/node_modules/date-fns/locale/bs/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/bs/_lib/localize.js b/node_modules/date-fns/locale/bs/_lib/localize.js new file mode 100644 index 000000000..187fcd2b2 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Prije Hrista", "Poslije Hrista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(number) + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/bs/_lib/match.cjs b/node_modules/date-fns/locale/bs/_lib/match.cjs new file mode 100644 index 000000000..90df7c6b5 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/bs/_lib/match.d.cts b/node_modules/date-fns/locale/bs/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bs/_lib/match.d.ts b/node_modules/date-fns/locale/bs/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/bs/_lib/match.js b/node_modules/date-fns/locale/bs/_lib/match.js new file mode 100644 index 000000000..986c43035 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/bs/cdn.js b/node_modules/date-fns/locale/bs/cdn.js new file mode 100644 index 000000000..c9a01618e --- /dev/null +++ b/node_modules/date-fns/locale/bs/cdn.js @@ -0,0 +1,713 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/bs/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu" + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi" + }, + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu" + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi" + }, + halfAMinute: "pola minute", + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu" + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta" + }, + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu" + }, + dual: "{{count}} minute", + other: "{{count}} minuta" + }, + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat" + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati" + }, + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat" + }, + dual: "{{count}} sata", + other: "{{count}} sati" + }, + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan" + }, + dual: "{{count}} dana", + other: "{{count}} dana" + }, + aboutXWeeks: { + one: { + standalone: "oko 1 sedmicu", + withPrepositionAgo: "oko 1 sedmicu", + withPrepositionIn: "oko 1 sedmicu" + }, + dual: "oko {{count}} sedmice", + other: "oko {{count}} sedmice" + }, + xWeeks: { + one: { + standalone: "1 sedmicu", + withPrepositionAgo: "1 sedmicu", + withPrepositionIn: "1 sedmicu" + }, + dual: "{{count}} sedmice", + other: "{{count}} sedmice" + }, + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec" + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci" + }, + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec" + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci" + }, + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu" + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina" + }, + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu" + }, + dual: "{{count}} godine", + other: "{{count}} godina" + }, + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu" + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina" + }, + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu" + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) result = tokenValue.one.withPrepositionIn;else + result = tokenValue.one.withPrepositionAgo;} else + result = tokenValue.one.standalone;} else + if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") result = tokenValue.dual.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "za " + result;else + return "prije " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/bs/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prošle nedjelje u' p"; + case 3:return "'prošle srijede u' p"; + case 6:return "'prošle subote u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'sljedeće nedjelje u' p"; + case 3:return "'sljedeću srijedu u' p"; + case 6:return "'sljedeću subotu u' p"; + default:return "'sljedeći' EEEE 'u' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/bs/_lib/localize.js +var eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Prije Hrista", "Poslije Hrista"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. kv.", + "2. kv.", + "3. kv.", + "4. kv."], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "juni", + "juli", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "U", + "S", + "Č", + "P", + "S"], + + short: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + abbreviated: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "poslije podne", + evening: "uveče", + night: "noću" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/bs.js +/** +* @category Locales +* @summary Bosnian locale. +* @language Bosnian +* @iso-639-2 bos +* @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) +*/ +var bs = { + code: "bs", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|nova)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/bs/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + bs: bs }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/cdn.min.js b/node_modules/date-fns/locale/bs/cdn.min.js new file mode 100644 index 000000000..62e24fc06 --- /dev/null +++ b/node_modules/date-fns/locale/bs/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`prije `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošle nedjelje u' p`;case 3:return`'prošle srijede u' p`;case 6:return`'prošle subote u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'juče u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'sljedeće nedjelje u' p`;case 3:return`'sljedeću srijedu u' p`;case 6:return`'sljedeću subotu u' p`;default:return`'sljedeći' EEEE 'u' p`}},other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);return String(n)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Hr.`,`po. Hr.`],wide:[`Prije Hrista`,`Poslije Hrista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`juni`,`juli`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`juni`,`juli`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],wide:[`nedjelja`,`ponedjeljak`,`utorak`,`srijeda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`poslije podne`,evening:`uveče`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`poslije podne`,evening:`uveče`,night:`noću`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`bs`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{bs:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca.cjs b/node_modules/date-fns/locale/ca.cjs new file mode 100644 index 000000000..3c1b8fe0d --- /dev/null +++ b/node_modules/date-fns/locale/ca.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ca = void 0; +var _index = require("./ca/_lib/formatDistance.cjs"); +var _index2 = require("./ca/_lib/formatLong.cjs"); +var _index3 = require("./ca/_lib/formatRelative.cjs"); +var _index4 = require("./ca/_lib/localize.cjs"); +var _index5 = require("./ca/_lib/match.cjs"); + +/** + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) + */ +const ca = (exports.ca = { + code: "ca", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/ca.d.cts b/node_modules/date-fns/locale/ca.d.cts new file mode 100644 index 000000000..7531c27f6 --- /dev/null +++ b/node_modules/date-fns/locale/ca.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) + */ +export declare const ca: Locale; diff --git a/node_modules/date-fns/locale/ca.d.ts b/node_modules/date-fns/locale/ca.d.ts new file mode 100644 index 000000000..7531c27f6 --- /dev/null +++ b/node_modules/date-fns/locale/ca.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) + */ +export declare const ca: Locale; diff --git a/node_modules/date-fns/locale/ca.js b/node_modules/date-fns/locale/ca.js new file mode 100644 index 000000000..b688e0e22 --- /dev/null +++ b/node_modules/date-fns/locale/ca.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ca/_lib/formatDistance.js"; +import { formatLong } from "./ca/_lib/formatLong.js"; +import { formatRelative } from "./ca/_lib/formatRelative.js"; +import { localize } from "./ca/_lib/localize.js"; +import { match } from "./ca/_lib/match.js"; + +/** + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) + * @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) + */ +export const ca = { + code: "ca", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default ca; diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ca/_lib/formatDistance.cjs new file mode 100644 index 000000000..754100f04 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance.cjs @@ -0,0 +1,121 @@ +"use strict"; +exports.formatDistance = void 0; + +/** + * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. + * l'1 de juliol ('l'u') + * l'11 de novembre ('l'onze') + * l'11a clàusula del contracte ('l'onzena') + * la contractació d'11 jugadors ('d'onze') + * l'aval d'11.000 socis ('d'onze mil') + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes + */ + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menys d'un segon", + eleven: "menys d'onze segons", + other: "menys de {{count}} segons", + }, + + xSeconds: { + one: "1 segon", + other: "{{count}} segons", + }, + + halfAMinute: "mig minut", + + lessThanXMinutes: { + one: "menys d'un minut", + eleven: "menys d'onze minuts", + other: "menys de {{count}} minuts", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minuts", + }, + + aboutXHours: { + one: "aproximadament una hora", + other: "aproximadament {{count}} hores", + }, + + xHours: { + one: "1 hora", + other: "{{count}} hores", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dies", + }, + + aboutXWeeks: { + one: "aproximadament una setmana", + other: "aproximadament {{count}} setmanes", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanes", + }, + + aboutXMonths: { + one: "aproximadament un mes", + other: "aproximadament {{count}} mesos", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} mesos", + }, + + aboutXYears: { + one: "aproximadament un any", + other: "aproximadament {{count}} anys", + }, + + xYears: { + one: "1 any", + other: "{{count}} anys", + }, + + overXYears: { + one: "més d'un any", + eleven: "més d'onze anys", + other: "més de {{count}} anys", + }, + + almostXYears: { + one: "gairebé un any", + other: "gairebé {{count}} anys", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 11 && tokenValue.eleven) { + result = tokenValue.eleven; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "fa " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance.js b/node_modules/date-fns/locale/ca/_lib/formatDistance.js new file mode 100644 index 000000000..4f5c0b83f --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance.js @@ -0,0 +1,117 @@ +/** + * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. + * l'1 de juliol ('l'u') + * l'11 de novembre ('l'onze') + * l'11a clàusula del contracte ('l'onzena') + * la contractació d'11 jugadors ('d'onze') + * l'aval d'11.000 socis ('d'onze mil') + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes + */ + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menys d'un segon", + eleven: "menys d'onze segons", + other: "menys de {{count}} segons", + }, + + xSeconds: { + one: "1 segon", + other: "{{count}} segons", + }, + + halfAMinute: "mig minut", + + lessThanXMinutes: { + one: "menys d'un minut", + eleven: "menys d'onze minuts", + other: "menys de {{count}} minuts", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minuts", + }, + + aboutXHours: { + one: "aproximadament una hora", + other: "aproximadament {{count}} hores", + }, + + xHours: { + one: "1 hora", + other: "{{count}} hores", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dies", + }, + + aboutXWeeks: { + one: "aproximadament una setmana", + other: "aproximadament {{count}} setmanes", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanes", + }, + + aboutXMonths: { + one: "aproximadament un mes", + other: "aproximadament {{count}} mesos", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} mesos", + }, + + aboutXYears: { + one: "aproximadament un any", + other: "aproximadament {{count}} anys", + }, + + xYears: { + one: "1 any", + other: "{{count}} anys", + }, + + overXYears: { + one: "més d'un any", + eleven: "més d'onze anys", + other: "més de {{count}} anys", + }, + + almostXYears: { + one: "gairebé un any", + other: "gairebé {{count}} anys", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 11 && tokenValue.eleven) { + result = tokenValue.eleven; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "fa " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong.cjs b/node_modules/date-fns/locale/ca/_lib/formatLong.cjs new file mode 100644 index 000000000..8c43a39e2 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a les' {{time}}", + long: "{{date}} 'a les' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ca/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ca/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong.js b/node_modules/date-fns/locale/ca/_lib/formatLong.js new file mode 100644 index 000000000..cb059788c --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a les' {{time}}", + long: "{{date}} 'a les' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ca/_lib/formatRelative.cjs new file mode 100644 index 000000000..0cf3310f5 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'el' eeee 'passat a la' LT", + yesterday: "'ahir a la' p", + today: "'avui a la' p", + tomorrow: "'demà a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'passat a les' p", + yesterday: "'ahir a les' p", + today: "'avui a les' p", + tomorrow: "'demà a les' p", + nextWeek: "eeee 'a les' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative.js b/node_modules/date-fns/locale/ca/_lib/formatRelative.js new file mode 100644 index 000000000..89f7c4e58 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative.js @@ -0,0 +1,24 @@ +const formatRelativeLocale = { + lastWeek: "'el' eeee 'passat a la' LT", + yesterday: "'ahir a la' p", + today: "'avui a la' p", + tomorrow: "'demà a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'passat a les' p", + yesterday: "'ahir a les' p", + today: "'avui a les' p", + tomorrow: "'demà a les' p", + nextWeek: "eeee 'a les' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ca/_lib/localize.cjs b/node_modules/date-fns/locale/ca/_lib/localize.cjs new file mode 100644 index 000000000..d268fd892 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize.cjs @@ -0,0 +1,234 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +/** + * General information + * Reference: https://aplicacions.llengua.gencat.cat + * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html + */ + +/** + * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + */ +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a. de C.", "d. de C."], + wide: ["abans de Crist", "després de Crist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1r trimestre", "2n trimestre", "3r trimestre", "4t trimestre"], +}; + +/** + * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. + * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes + */ +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS", + ], + + /** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "maig", + "juny", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "des.", + ], + + wide: [ + "gener", + "febrer", + "març", + "abril", + "maig", + "juny", + "juliol", + "agost", + "setembre", + "octubre", + "novembre", + "desembre", + ], +}; + +/** + * Les abreviatures dels dies de la setmana comencen totes amb la lletra d. + * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. + * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. + * + * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. + * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. + * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot + */ +const dayValues = { + narrow: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + wide: [ + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte", + ], +}; + +/** + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes + */ +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, +}; + +/** + * Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. + * És optatiu posar punt després de la lletra. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 + */ +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "r"; + case 2: + return number + "n"; + case 3: + return number + "r"; + case 4: + return number + "t"; + } + } + return number + "è"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ca/_lib/localize.d.cts b/node_modules/date-fns/locale/ca/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ca/_lib/localize.d.ts b/node_modules/date-fns/locale/ca/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ca/_lib/localize.js b/node_modules/date-fns/locale/ca/_lib/localize.js new file mode 100644 index 000000000..6352b5537 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize.js @@ -0,0 +1,232 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +/** + * General information + * Reference: https://aplicacions.llengua.gencat.cat + * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html + */ + +/** + * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + */ +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a. de C.", "d. de C."], + wide: ["abans de Crist", "després de Crist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1r trimestre", "2n trimestre", "3r trimestre", "4t trimestre"], +}; + +/** + * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. + * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes + */ +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS", + ], + + /** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "maig", + "juny", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "des.", + ], + + wide: [ + "gener", + "febrer", + "març", + "abril", + "maig", + "juny", + "juliol", + "agost", + "setembre", + "octubre", + "novembre", + "desembre", + ], +}; + +/** + * Les abreviatures dels dies de la setmana comencen totes amb la lletra d. + * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. + * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. + * + * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. + * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. + * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot + */ +const dayValues = { + narrow: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dt.", "dm.", "dj.", "dv.", "ds."], + wide: [ + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte", + ], +}; + +/** + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes + */ +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit", + }, +}; + +/** + * Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. + * És optatiu posar punt després de la lletra. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 + */ +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "r"; + case 2: + return number + "n"; + case 3: + return number + "r"; + case 4: + return number + "t"; + } + } + return number + "è"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ca/_lib/match.cjs b/node_modules/date-fns/locale/ca/_lib/match.cjs new file mode 100644 index 000000000..d4e6e0aea --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/match.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(è|r|n|r|t)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a. de C.|d. de C.)/i, + wide: /^(abans de Crist|despr[eé]s de Crist)/i, +}; +const parseEraPatterns = { + narrow: [/^aC/i, /^dC/i], + abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], + wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](è|r|n|r|t)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, + abbreviated: + /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, + wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^GN/i, + /^FB/i, + /^MÇ/i, + /^AB/i, + /^MG/i, + /^JN/i, + /^JL/i, + /^AG/i, + /^ST/i, + /^OC/i, + /^NV/i, + /^DS/i, + ], + + abbreviated: [ + /^gen./i, + /^febr./i, + /^març/i, + /^abr./i, + /^maig/i, + /^juny/i, + /^jul./i, + /^ag./i, + /^set./i, + /^oct./i, + /^nov./i, + /^des./i, + ], + + wide: [ + /^gener/i, + /^febrer/i, + /^març/i, + /^abril/i, + /^maig/i, + /^juny/i, + /^juliol/i, + /^agost/i, + /^setembre/i, + /^octubre/i, + /^novembre/i, + /^desembre/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + + abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + + wide: [ + /^diumenge/i, + /^dilluns/i, + /^dimarts/i, + /^dimecres/i, + /^dijous/i, + /^divendres/i, + /^disssabte/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, + abbreviated: + /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, + wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mitjanit/i, + noon: /^migdia/i, + morning: /matí/i, + afternoon: /tarda/i, + evening: /vespre/i, + night: /nit/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ca/_lib/match.d.cts b/node_modules/date-fns/locale/ca/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ca/_lib/match.d.ts b/node_modules/date-fns/locale/ca/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ca/_lib/match.js b/node_modules/date-fns/locale/ca/_lib/match.js new file mode 100644 index 000000000..86b122d28 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/match.js @@ -0,0 +1,163 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(è|r|n|r|t)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a. de C.|d. de C.)/i, + wide: /^(abans de Crist|despr[eé]s de Crist)/i, +}; +const parseEraPatterns = { + narrow: [/^aC/i, /^dC/i], + abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], + wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](è|r|n|r|t)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, + abbreviated: + /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, + wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^GN/i, + /^FB/i, + /^MÇ/i, + /^AB/i, + /^MG/i, + /^JN/i, + /^JL/i, + /^AG/i, + /^ST/i, + /^OC/i, + /^NV/i, + /^DS/i, + ], + + abbreviated: [ + /^gen./i, + /^febr./i, + /^març/i, + /^abr./i, + /^maig/i, + /^juny/i, + /^jul./i, + /^ag./i, + /^set./i, + /^oct./i, + /^nov./i, + /^des./i, + ], + + wide: [ + /^gener/i, + /^febrer/i, + /^març/i, + /^abril/i, + /^maig/i, + /^juny/i, + /^juliol/i, + /^agost/i, + /^setembre/i, + /^octubre/i, + /^novembre/i, + /^desembre/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + + abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + + wide: [ + /^diumenge/i, + /^dilluns/i, + /^dimarts/i, + /^dimecres/i, + /^dijous/i, + /^divendres/i, + /^disssabte/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, + abbreviated: + /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, + wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mitjanit/i, + noon: /^migdia/i, + morning: /matí/i, + afternoon: /tarda/i, + evening: /vespre/i, + night: /nit/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ca/cdn.js b/node_modules/date-fns/locale/ca/cdn.js new file mode 100644 index 000000000..296a387ba --- /dev/null +++ b/node_modules/date-fns/locale/ca/cdn.js @@ -0,0 +1,675 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ca/_lib/formatDistance.js +/** +* Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. +* l'1 de juliol ('l'u') +* l'11 de novembre ('l'onze') +* l'11a clàusula del contracte ('l'onzena') +* la contractació d'11 jugadors ('d'onze') +* l'aval d'11.000 socis ('d'onze mil') +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes +*/ +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menys d'un segon", + eleven: "menys d'onze segons", + other: "menys de {{count}} segons" + }, + xSeconds: { + one: "1 segon", + other: "{{count}} segons" + }, + halfAMinute: "mig minut", + lessThanXMinutes: { + one: "menys d'un minut", + eleven: "menys d'onze minuts", + other: "menys de {{count}} minuts" + }, + xMinutes: { + one: "1 minut", + other: "{{count}} minuts" + }, + aboutXHours: { + one: "aproximadament una hora", + other: "aproximadament {{count}} hores" + }, + xHours: { + one: "1 hora", + other: "{{count}} hores" + }, + xDays: { + one: "1 dia", + other: "{{count}} dies" + }, + aboutXWeeks: { + one: "aproximadament una setmana", + other: "aproximadament {{count}} setmanes" + }, + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanes" + }, + aboutXMonths: { + one: "aproximadament un mes", + other: "aproximadament {{count}} mesos" + }, + xMonths: { + one: "1 mes", + other: "{{count}} mesos" + }, + aboutXYears: { + one: "aproximadament un any", + other: "aproximadament {{count}} anys" + }, + xYears: { + one: "1 any", + other: "{{count}} anys" + }, + overXYears: { + one: "més d'un any", + eleven: "més d'onze anys", + other: "més de {{count}} anys" + }, + almostXYears: { + one: "gairebé un any", + other: "gairebé {{count}} anys" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 11 && tokenValue.eleven) result = tokenValue.eleven;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "fa " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'a les' {{time}}", + long: "{{date}} 'a les' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ca/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'el' eeee 'passat a la' LT", + yesterday: "'ahir a la' p", + today: "'avui a la' p", + tomorrow: "'demà a la' p", + nextWeek: "eeee 'a la' p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'passat a les' p", + yesterday: "'ahir a les' p", + today: "'avui a les' p", + tomorrow: "'demà a les' p", + nextWeek: "eeee 'a les' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token]; + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ca/_lib/localize.js +/** +* General information +* Reference: https://aplicacions.llengua.gencat.cat +* Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html +*/ +/** +* Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes +* Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes +*/ +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a. de C.", "d. de C."], + wide: ["abans de Crist", "després de Crist"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1r trimestre", + "2n trimestre", + "3r trimestre", + "4t trimestre"] + +}; +/** +* Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. +* Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes +*/ +var monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MG", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DS"], + + /** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "maig", + "juny", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "des."], + + wide: [ + "gener", + "febrer", + "març", + "abril", + "maig", + "juny", + "juliol", + "agost", + "setembre", + "octubre", + "novembre", + "desembre"] + +}; +/** +* Les abreviatures dels dies de la setmana comencen totes amb la lletra d. +* Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. +* Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. +* +* Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. +* Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. +* En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot +*/ +var dayValues = { + narrow: [ + "dg.", + "dl.", + "dt.", + "dm.", + "dj.", + "dv.", + "ds."], + + short: [ + "dg.", + "dl.", + "dt.", + "dm.", + "dj.", + "dv.", + "ds."], + + abbreviated: [ + "dg.", + "dl.", + "dt.", + "dm.", + "dj.", + "dv.", + "ds."], + + wide: [ + "diumenge", + "dilluns", + "dimarts", + "dimecres", + "dijous", + "divendres", + "dissabte"] + +}; +/** +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes +*/ +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit" + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mitjanit", + noon: "migdia", + morning: "matí", + afternoon: "tarda", + evening: "vespre", + night: "nit" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit" + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "de la mitjanit", + noon: "del migdia", + morning: "del matí", + afternoon: "de la tarda", + evening: "del vespre", + night: "de la nit" + } +}; +/** +* Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. +* És optatiu posar punt després de la lletra. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 +*/ +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "r"; + case 2:return number + "n"; + case 3:return number + "r"; + case 4:return number + "t"; + } + return number + "è"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ca.js +/** +* @category Locales +* @summary Catalan locale. +* @language Catalan +* @iso-639-2 cat +* @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) +* @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) +*/ +var ca = { + code: "ca", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(è|r|n|r|t)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(aC|dC)/i, + abbreviated: /^(a. de C.|d. de C.)/i, + wide: /^(abans de Crist|despr[eé]s de Crist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^aC/i, /^dC/i], + abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], + wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i] + }, + defaultParseWidth: "wide" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](è|r|n|r|t)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, + abbreviated: /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, + wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^GN/i, + /^FB/i, + /^MÇ/i, + /^AB/i, + /^MG/i, + /^JN/i, + /^JL/i, + /^AG/i, + /^ST/i, + /^OC/i, + /^NV/i, + /^DS/i], + + abbreviated: [ + /^gen./i, + /^febr./i, + /^març/i, + /^abr./i, + /^maig/i, + /^juny/i, + /^jul./i, + /^ag./i, + /^set./i, + /^oct./i, + /^nov./i, + /^des./i], + + wide: [ + /^gener/i, + /^febrer/i, + /^març/i, + /^abril/i, + /^maig/i, + /^juny/i, + /^juliol/i, + /^agost/i, + /^setembre/i, + /^octubre/i, + /^novembre/i, + /^desembre/i] + + }, + defaultParseWidth: "wide" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^dg./i, + /^dl./i, + /^dt./i, + /^dm./i, + /^dj./i, + /^dv./i, + /^ds./i], + + abbreviated: [ + /^dg./i, + /^dl./i, + /^dt./i, + /^dm./i, + /^dj./i, + /^dv./i, + /^ds./i], + + wide: [ + /^diumenge/i, + /^dilluns/i, + /^dimarts/i, + /^dimecres/i, + /^dijous/i, + /^divendres/i, + /^disssabte/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, + abbreviated: /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, + wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mitjanit/i, + noon: /^migdia/i, + morning: /matí/i, + afternoon: /tarda/i, + evening: /vespre/i, + night: /nit/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ca/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ca: ca }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/cdn.min.js b/node_modules/date-fns/locale/ca/cdn.min.js new file mode 100644 index 000000000..98c11a8cf --- /dev/null +++ b/node_modules/date-fns/locale/ca/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`fa `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'a les' {{time}}`,long:`{{date}} 'a les' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'el' eeee 'passat a la' LT`,yesterday:`'ahir a la' p`,today:`'avui a la' p`,tomorrow:`'demà a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},d={lastWeek:`'el' eeee 'passat a les' p`,yesterday:`'ahir a les' p`,today:`'avui a les' p`,tomorrow:`'demà a les' p`,nextWeek:`eeee 'a les' p`,other:`P`},f=function(e,t,n,r){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`r`;case 2:return n+`n`;case 3:return n+`r`;case 4:return n+`t`}return n+`è`},era:p({values:{narrow:[`aC`,`dC`],abbreviated:[`a. de C.`,`d. de C.`],wide:[`abans de Crist`,`després de Crist`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1r trimestre`,`2n trimestre`,`3r trimestre`,`4t trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`GN`,`FB`,`MÇ`,`AB`,`MG`,`JN`,`JL`,`AG`,`ST`,`OC`,`NV`,`DS`],abbreviated:[`gen.`,`febr.`,`març`,`abr.`,`maig`,`juny`,`jul.`,`ag.`,`set.`,`oct.`,`nov.`,`des.`],wide:[`gener`,`febrer`,`març`,`abril`,`maig`,`juny`,`juliol`,`agost`,`setembre`,`octubre`,`novembre`,`desembre`]},defaultWidth:`wide`}),day:p({values:{narrow:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],short:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],abbreviated:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],wide:[`diumenge`,`dilluns`,`dimarts`,`dimecres`,`dijous`,`divendres`,`dissabte`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`am`,pm:`pm`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`},abbreviated:{am:`AM`,pm:`PM`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`ca`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(è|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},defaultParseWidth:`wide`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:`wide`}),day:h({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:`wide`}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ca:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cdn.js b/node_modules/date-fns/locale/cdn.js new file mode 100644 index 000000000..e951655a3 --- /dev/null +++ b/node_modules/date-fns/locale/cdn.js @@ -0,0 +1,44037 @@ +(() => { +var _window$dateFns;function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e0)return"oor "+result;else +return result+" gelede"; +return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args){ +return function(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{}; +var width=options.width?String(options.width):args.defaultWidth; +return args.formats[width]||args.formats[args.defaultWidth]; +}; +} +var formatLong$92={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"yyyy/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'om' {{time}}", +long:"{{date}} 'om' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/af/_lib/formatRelative.js +var formatRelativeLocale$84={ +lastWeek:"'verlede' eeee 'om' p", +yesterday:"'gister om' p", +today:"'vandag om' p", +tomorrow:"'môre om' p", +nextWeek:"eeee 'om' p", +other:"P" +}; +var formatRelative$84=function formatRelative$84(token,_date,_baseDate,_options){return formatRelativeLocale$84[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args){ +return function(value,options){ +var context=options!==null&&options!==void 0&&options.context?String(options.context):"standalone"; +var valuesArray; +if(context==="formatting"&&args.formattingValues){ +var defaultWidth=args.defaultFormattingWidth||args.defaultWidth; +var width=options!==null&&options!==void 0&&options.width?String(options.width):defaultWidth; +valuesArray=args.formattingValues[width]||args.formattingValues[defaultWidth]; +}else{ +var _defaultWidth=args.defaultWidth; +var _width=options!==null&&options!==void 0&&options.width?String(options.width):args.defaultWidth; +valuesArray=args.values[_width]||args.values[_defaultWidth]; +} +var index=args.argumentCallback?args.argumentCallback(value):value; +return valuesArray[index]; +}; +} +//#endregion +//#region dist/date-fns/locale/af/_lib/localize.js +var eraValues$84={ +narrow:["vC","nC"], +abbreviated:["vC","nC"], +wide:["voor Christus","na Christus"] +}; +var quarterValues$84={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1ste kwartaal", +"2de kwartaal", +"3de kwartaal", +"4de kwartaal"] + +}; +var monthValues$84={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mrt", +"Apr", +"Mei", +"Jun", +"Jul", +"Aug", +"Sep", +"Okt", +"Nov", +"Des"], + +wide:[ +"Januarie", +"Februarie", +"Maart", +"April", +"Mei", +"Junie", +"Julie", +"Augustus", +"September", +"Oktober", +"November", +"Desember"] + +}; +var dayValues$84={ +narrow:[ +"S", +"M", +"D", +"W", +"D", +"V", +"S"], + +short:[ +"So", +"Ma", +"Di", +"Wo", +"Do", +"Vr", +"Sa"], + +abbreviated:[ +"Son", +"Maa", +"Din", +"Woe", +"Don", +"Vry", +"Sat"], + +wide:[ +"Sondag", +"Maandag", +"Dinsdag", +"Woensdag", +"Donderdag", +"Vrydag", +"Saterdag"] + +}; +var dayPeriodValues$84={ +narrow:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"middaguur", +morning:"oggend", +afternoon:"middag", +evening:"laat middag", +night:"aand" +}, +abbreviated:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"middaguur", +morning:"oggend", +afternoon:"middag", +evening:"laat middag", +night:"aand" +}, +wide:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"middaguur", +morning:"oggend", +afternoon:"middag", +evening:"laat middag", +night:"aand" +} +}; +var formattingDayPeriodValues$68={ +narrow:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"uur die middag", +morning:"uur die oggend", +afternoon:"uur die middag", +evening:"uur die aand", +night:"uur die aand" +}, +abbreviated:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"uur die middag", +morning:"uur die oggend", +afternoon:"uur die middag", +evening:"uur die aand", +night:"uur die aand" +}, +wide:{ +am:"vm", +pm:"nm", +midnight:"middernag", +noon:"uur die middag", +morning:"uur die oggend", +afternoon:"uur die middag", +evening:"uur die aand", +night:"uur die aand" +} +}; +var ordinalNumber$84=function ordinalNumber$84(dirtyNumber){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100<20)switch(rem100){ +case 1: +case 8:return number+"ste"; +default:return number+"de"; +} +return number+"ste"; +}; +var localize$84={ +ordinalNumber:ordinalNumber$84, +era:buildLocalizeFn({ +values:eraValues$84, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$84, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$84, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$84, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$84, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$68, +defaultFormattingWidth:"wide" +}) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args){ +return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{}; +var width=options.width; +var matchPattern=width&&args.matchPatterns[width]||args.matchPatterns[args.defaultMatchWidth]; +var matchResult=string.match(matchPattern); +if(!matchResult)return null; +var matchedString=matchResult[0]; +var parsePatterns=width&&args.parsePatterns[width]||args.parsePatterns[args.defaultParseWidth]; +var key=Array.isArray(parsePatterns)?findIndex(parsePatterns,function(pattern){return pattern.test(matchedString);}):findKey(parsePatterns,function(pattern){return pattern.test(matchedString);}); +var value; +value=args.valueCallback?args.valueCallback(key):key; +value=options.valueCallback?options.valueCallback(value):value; +var rest=string.slice(matchedString.length); +return{ +value:value, +rest:rest +}; +}; +} +function findKey(object,predicate){ +for(var key in object)if(Object.prototype.hasOwnProperty.call(object,key)&&predicate(object[key]))return key; +} +function findIndex(array,predicate){ +for(var key=0;key1&&arguments[1]!==undefined?arguments[1]:{}; +var matchResult=string.match(args.matchPattern); +if(!matchResult)return null; +var matchedString=matchResult[0]; +var parseResult=string.match(args.parsePattern); +if(!parseResult)return null; +var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0]; +value=options.valueCallback?options.valueCallback(value):value; +var rest=string.slice(matchedString.length); +return{ +value:value, +rest:rest +}; +}; +} +//#endregion +//#region dist/date-fns/locale/af.js +/** +* @category Locales +* @summary Afrikaans locale. +* @language Afrikaans +* @iso-639-2 afr +* @author Marnus Weststrate [@marnusw](https://github.com/marnusw) +*/ +var _af={ +code:"af", +formatDistance:formatDistance$84, +formatLong:formatLong$92, +formatRelative:formatRelative$84, +localize:localize$84, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ste|de)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([vn]\.? ?C\.?)/, +abbreviated:/^([vn]\. ?C\.?)/, +wide:/^((voor|na) Christus)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^v/,/^n/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K[1234]/i, +wide:/^[1234](st|d)e kwartaal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, +wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^J/i, +/^F/i, +/^M/i, +/^A/i, +/^M/i, +/^J/i, +/^J/i, +/^A/i, +/^S/i, +/^O/i, +/^N/i, +/^D/i], + +any:[ +/^Jan/i, +/^Feb/i, +/^Mrt/i, +/^Apr/i, +/^Mei/i, +/^Jun/i, +/^Jul/i, +/^Aug/i, +/^Sep/i, +/^Okt/i, +/^Nov/i, +/^Dec/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smdwv]/i, +short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i, +abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, +wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^S/i, +/^M/i, +/^D/i, +/^W/i, +/^D/i, +/^V/i, +/^S/i], + +any:[ +/^So/i, +/^Ma/i, +/^Di/i, +/^Wo/i, +/^Do/i, +/^Vr/i, +/^Sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^vm/i, +pm:/^nm/i, +midnight:/^middernag/i, +noon:/^middaguur/i, +morning:/oggend/i, +afternoon:/middag/i, +evening:/laat middag/i, +night:/aand/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar/_lib/formatDistance.js +var formatDistanceLocale$82={ +lessThanXSeconds:{ +one:"أقل من ثانية", +two:"أقل من ثانيتين", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية واحدة", +two:"ثانيتان", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نصف دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقائق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة واحدة", +two:"دقيقتان", +threeToTen:"{{count}} دقائق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"ساعة واحدة تقريباً", +two:"ساعتين تقريبا", +threeToTen:"{{count}} ساعات تقريباً", +other:"{{count}} ساعة تقريباً" +}, +xHours:{ +one:"ساعة واحدة", +two:"ساعتان", +threeToTen:"{{count}} ساعات", +other:"{{count}} ساعة" +}, +xDays:{ +one:"يوم واحد", +two:"يومان", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"أسبوع واحد تقريبا", +two:"أسبوعين تقريبا", +threeToTen:"{{count}} أسابيع تقريبا", +other:"{{count}} أسبوعا تقريبا" +}, +xWeeks:{ +one:"أسبوع واحد", +two:"أسبوعان", +threeToTen:"{{count}} أسابيع", +other:"{{count}} أسبوعا" +}, +aboutXMonths:{ +one:"شهر واحد تقريباً", +two:"شهرين تقريبا", +threeToTen:"{{count}} أشهر تقريبا", +other:"{{count}} شهرا تقريباً" +}, +xMonths:{ +one:"شهر واحد", +two:"شهران", +threeToTen:"{{count}} أشهر", +other:"{{count}} شهرا" +}, +aboutXYears:{ +one:"سنة واحدة تقريباً", +two:"سنتين تقريبا", +threeToTen:"{{count}} سنوات تقريباً", +other:"{{count}} سنة تقريباً" +}, +xYears:{ +one:"سنة واحد", +two:"سنتان", +threeToTen:"{{count}} سنوات", +other:"{{count}} سنة" +}, +overXYears:{ +one:"أكثر من سنة", +two:"أكثر من سنتين", +threeToTen:"أكثر من {{count}} سنوات", +other:"أكثر من {{count}} سنة" +}, +almostXYears:{ +one:"ما يقارب سنة واحدة", +two:"ما يقارب سنتين", +threeToTen:"ما يقارب {{count}} سنوات", +other:"ما يقارب {{count}} سنة" +} +}; +var formatDistance$83=function formatDistance$83(token,count,options){ +var usageGroup=formatDistanceLocale$82[token]; +var result; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +if(count===2)result=usageGroup.two;else +if(count<=10)result=usageGroup.threeToTen.replace("{{count}}",String(count));else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"خلال "+result;else +return"منذ "+result; +return result; +}; +var formatLong$91={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE، do MMMM y", +long:"do MMMM y", +medium:"d MMM y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss", +long:"HH:mm:ss", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'عند الساعة' {{time}}", +long:"{{date}} 'عند الساعة' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar/_lib/formatRelative.js +var formatRelativeLocale$83={ +lastWeek:"eeee 'الماضي عند الساعة' p", +yesterday:"'الأمس عند الساعة' p", +today:"'اليوم عند الساعة' p", +tomorrow:"'غدا عند الساعة' p", +nextWeek:"eeee 'القادم عند الساعة' p", +other:"P" +}; +var formatRelative$83=function formatRelative$83(token){return formatRelativeLocale$83[token];}; +//#endregion +//#region dist/date-fns/locale/ar/_lib/localize.js +var eraValues$83={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$83={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$83={ +narrow:[ +"ي", +"ف", +"م", +"أ", +"م", +"ي", +"ي", +"أ", +"س", +"أ", +"ن", +"د"], + +abbreviated:[ +"يناير", +"فبراير", +"مارس", +"أبريل", +"مايو", +"يونيو", +"يوليو", +"أغسطس", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"], + +wide:[ +"يناير", +"فبراير", +"مارس", +"أبريل", +"مايو", +"يونيو", +"يوليو", +"أغسطس", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"] + +}; +var dayValues$83={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الاثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$83={ +narrow:{ +am:"ص", +pm:"م", +morning:"الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"المساء", +night:"الليل", +midnight:"منتصف الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +morning:"الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"المساء", +night:"الليل", +midnight:"منتصف الليل" +}, +wide:{ +am:"ص", +pm:"م", +morning:"الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"المساء", +night:"الليل", +midnight:"منتصف الليل" +} +}; +var formattingDayPeriodValues$67={ +narrow:{ +am:"ص", +pm:"م", +morning:"في الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل", +midnight:"منتصف الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +morning:"في الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل", +midnight:"منتصف الليل" +}, +wide:{ +am:"ص", +pm:"م", +morning:"في الصباح", +noon:"الظهر", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل", +midnight:"منتصف الليل" +} +}; +var ordinalNumber$83=function ordinalNumber$83(num){return String(num);}; +//#endregion +//#region dist/date-fns/locale/ar.js +/** +* @category Locales +* @summary Arabic locale (Modern Standard Arabic - Al-fussha). +* @language Modern Standard Arabic +* @iso-639-2 ara +* @author Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO) +* @author Koussay Haj Kacem [@essana3](https://github.com/essana3) +*/ +var _ar={ +code:"ar", +formatDistance:formatDistance$83, +formatLong:formatLong$91, +formatRelative:formatRelative$83, +localize:{ +ordinalNumber:ordinalNumber$83, +era:buildLocalizeFn({ +values:eraValues$83, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$83, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$83, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$83, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$83, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$67, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/[قب]/, +abbreviated:/[قب]\.م\./, +wide:/(قبل|بعد) الميلاد/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/قبل/,/بعد/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/ر[1234]/, +wide:/الربع (الأول|الثاني|الثالث|الرابع)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[أيفمسند]/, +abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/i, +/^ف/i, +/^م/i, +/^أ/i, +/^م/i, +/^ي/i, +/^ي/i, +/^أ/i, +/^س/i, +/^أ/i, +/^ن/i, +/^د/i], + +any:[ +/^يناير/i, +/^فبراير/i, +/^مارس/i, +/^أبريل/i, +/^مايو/i, +/^يونيو/i, +/^يوليو/i, +/^أغسطس/i, +/^سبتمبر/i, +/^أكتوبر/i, +/^نوفمبر/i, +/^ديسمبر/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[حنثرخجس]/i, +short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/i, +/^ن/i, +/^ث/i, +/^ر/i, +/^خ/i, +/^ج/i, +/^س/i], + +wide:[ +/^الأحد/i, +/^الاثنين/i, +/^الثلاثاء/i, +/^الأربعاء/i, +/^الخميس/i, +/^الجمعة/i, +/^السبت/i], + +any:[ +/^أح/i, +/^اث/i, +/^ث/i, +/^أر/i, +/^خ/i, +/^ج/i, +/^س/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, +any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/ +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ص/, +pm:/^م/, +midnight:/منتصف الليل/, +noon:/الظهر/, +afternoon:/بعد الظهر/, +morning:/في الصباح/, +evening:/في المساء/, +night:/في الليل/ +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:6, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar-DZ/_lib/formatDistance.js +var formatDistanceLocale$81={ +lessThanXSeconds:{ +one:"أقل من ثانية واحدة", +two:"أقل من ثانتين", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية واحدة", +two:"ثانتين", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نصف دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقائق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة واحدة", +two:"دقيقتين", +threeToTen:"{{count}} دقائق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"ساعة واحدة تقريباً", +two:"ساعتين تقريباً", +threeToTen:"{{count}} ساعات تقريباً", +other:"{{count}} ساعة تقريباً" +}, +xHours:{ +one:"ساعة واحدة", +two:"ساعتين", +threeToTen:"{{count}} ساعات", +other:"{{count}} ساعة" +}, +xDays:{ +one:"يوم واحد", +two:"يومين", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"أسبوع واحد تقريباً", +two:"أسبوعين تقريباً", +threeToTen:"{{count}} أسابيع تقريباً", +other:"{{count}} أسبوع تقريباً" +}, +xWeeks:{ +one:"أسبوع واحد", +two:"أسبوعين", +threeToTen:"{{count}} أسابيع", +other:"{{count}} أسبوع" +}, +aboutXMonths:{ +one:"شهر واحد تقريباً", +two:"شهرين تقريباً", +threeToTen:"{{count}} أشهر تقريباً", +other:"{{count}} شهر تقريباً" +}, +xMonths:{ +one:"شهر واحد", +two:"شهرين", +threeToTen:"{{count}} أشهر", +other:"{{count}} شهر" +}, +aboutXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +}, +xYears:{ +one:"عام واحد", +two:"عامين", +threeToTen:"{{count}} أعوام", +other:"{{count}} عام" +}, +overXYears:{ +one:"أكثر من عام", +two:"أكثر من عامين", +threeToTen:"أكثر من {{count}} أعوام", +other:"أكثر من {{count}} عام" +}, +almostXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +} +}; +var formatDistance$82=function formatDistance$82(token,count,options){ +options=options||{}; +var usageGroup=formatDistanceLocale$81[token]; +var result; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +if(count===2)result=usageGroup.two;else +if(count<=10)result=usageGroup.threeToTen.replace("{{count}}",String(count));else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options.addSuffix)if(options.comparison&&options.comparison>0)return"في خلال "+result;else +return"منذ "+result; +return result; +}; +var formatLong$90={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'عند' {{time}}", +long:"{{date}} 'عند' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar-DZ/_lib/formatRelative.js +var formatRelativeLocale$82={ +lastWeek:"'أخر' eeee 'عند' p", +yesterday:"'أمس عند' p", +today:"'اليوم عند' p", +tomorrow:"'غداً عند' p", +nextWeek:"eeee 'عند' p", +other:"P" +}; +var formatRelative$82=function formatRelative$82(token,_date,_baseDate,_options){ +return formatRelativeLocale$82[token]; +}; +//#endregion +//#region dist/date-fns/locale/ar-DZ/_lib/localize.js +var eraValues$82={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$82={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$82={ +narrow:[ +"ج", +"ف", +"م", +"أ", +"م", +"ج", +"ج", +"أ", +"س", +"أ", +"ن", +"د"], + +abbreviated:[ +"جانـ", +"فيفـ", +"مارس", +"أفريل", +"مايـ", +"جوانـ", +"جويـ", +"أوت", +"سبتـ", +"أكتـ", +"نوفـ", +"ديسـ"], + +wide:[ +"جانفي", +"فيفري", +"مارس", +"أفريل", +"ماي", +"جوان", +"جويلية", +"أوت", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"] + +}; +var dayValues$82={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنـ", +"ثلا", +"أربـ", +"خميـ", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الاثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$82={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +} +}; +var formattingDayPeriodValues$66={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"في الصباح", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"في الصباح", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +} +}; +var ordinalNumber$82=function ordinalNumber$82(dirtyNumber){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ar-DZ.js +/** +* @category Locales +* @summary Arabic locale (Algerian Arabic). +* @language Algerian Arabic +* @iso-639-2 ara +* @author Badreddine Boumaza [@badre429](https://github.com/badre429) +* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat) +*/ +var _arDZ={ +code:"ar-DZ", +formatDistance:formatDistance$82, +formatLong:formatLong$90, +formatRelative:formatRelative$82, +localize:{ +ordinalNumber:ordinalNumber$82, +era:buildLocalizeFn({ +values:eraValues$82, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$82, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$82, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$82, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$82, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$66, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ق|ب)/i, +abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, +wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^قبل/i,/^بعد/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ر[1234]/i, +wide:/^الربع [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return Number(index)+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[جفمأسند]/i, +abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, +wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ج/i, +/^ف/i, +/^م/i, +/^أ/i, +/^م/i, +/^ج/i, +/^ج/i, +/^أ/i, +/^س/i, +/^أ/i, +/^ن/i, +/^د/i], + +any:[ +/^جان/i, +/^فيف/i, +/^مار/i, +/^أفر/i, +/^ماي/i, +/^جوا/i, +/^جوي/i, +/^أوت/i, +/^سبت/i, +/^أكت/i, +/^نوف/i, +/^ديس/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[حنثرخجس]/i, +short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, +wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/i, +/^ن/i, +/^ث/i, +/^ر/i, +/^خ/i, +/^ج/i, +/^س/i], + +wide:[ +/^الأحد/i, +/^الاثنين/i, +/^الثلاثاء/i, +/^الأربعاء/i, +/^الخميس/i, +/^الجمعة/i, +/^السبت/i], + +any:[ +/^أح/i, +/^اث/i, +/^ث/i, +/^أر/i, +/^خ/i, +/^ج/i, +/^س/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, +any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mi/i, +noon:/^no/i, +morning:/morning/i, +afternoon:/afternoon/i, +evening:/evening/i, +night:/night/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar-EG/_lib/formatDistance.js +var formatDistanceLocale$80={ +lessThanXSeconds:{ +one:"أقل من ثانية", +two:"أقل من ثانيتين", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية", +two:"ثانيتين", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نص دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقايق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة", +two:"دقيقتين", +threeToTen:"{{count}} دقايق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"حوالي ساعة", +two:"حوالي ساعتين", +threeToTen:"حوالي {{count}} ساعات", +other:"حوالي {{count}} ساعة" +}, +xHours:{ +one:"ساعة", +two:"ساعتين", +threeToTen:"{{count}} ساعات", +other:"{{count}} ساعة" +}, +xDays:{ +one:"يوم", +two:"يومين", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"حوالي أسبوع", +two:"حوالي أسبوعين", +threeToTen:"حوالي {{count}} أسابيع", +other:"حوالي {{count}} أسبوع" +}, +xWeeks:{ +one:"أسبوع", +two:"أسبوعين", +threeToTen:"{{count}} أسابيع", +other:"{{count}} أسبوع" +}, +aboutXMonths:{ +one:"حوالي شهر", +two:"حوالي شهرين", +threeToTen:"حوالي {{count}} أشهر", +other:"حوالي {{count}} شهر" +}, +xMonths:{ +one:"شهر", +two:"شهرين", +threeToTen:"{{count}} أشهر", +other:"{{count}} شهر" +}, +aboutXYears:{ +one:"حوالي سنة", +two:"حوالي سنتين", +threeToTen:"حوالي {{count}} سنين", +other:"حوالي {{count}} سنة" +}, +xYears:{ +one:"عام", +two:"عامين", +threeToTen:"{{count}} أعوام", +other:"{{count}} عام" +}, +overXYears:{ +one:"أكثر من سنة", +two:"أكثر من سنتين", +threeToTen:"أكثر من {{count}} سنين", +other:"أكثر من {{count}} سنة" +}, +almostXYears:{ +one:"عام تقريبًا", +two:"عامين تقريبًا", +threeToTen:"{{count}} أعوام تقريبًا", +other:"{{count}} عام تقريبًا" +} +}; +var formatDistance$81=function formatDistance$81(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$80[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2)result=tokenValue.two;else +if(count<=10)result=tokenValue.threeToTen.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result);else +return"\u0645\u0646\u0630 ".concat(result); +return result; +}; +var formatLong$89={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE، do MMMM y", +long:"do MMMM y", +medium:"dd/MMM/y", +short:"d/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'الساعة' {{time}}", +long:"{{date}} 'الساعة' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar-EG/_lib/formatRelative.js +var formatRelativeLocale$81={ +lastWeek:"eeee 'اللي جاي الساعة' p", +yesterday:"'إمبارح الساعة' p", +today:"'النهاردة الساعة' p", +tomorrow:"'بكرة الساعة' p", +nextWeek:"eeee 'الساعة' p", +other:"P" +}; +var formatRelative$81=function formatRelative$81(token,_date,_baseDate,_options){return formatRelativeLocale$81[token];}; +//#endregion +//#region dist/date-fns/locale/ar-EG/_lib/localize.js +var eraValues$81={ +narrow:["ق","ب"], +abbreviated:["ق.م","ب.م"], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$81={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$81={ +narrow:[ +"ي", +"ف", +"م", +"أ", +"م", +"ي", +"ي", +"أ", +"س", +"أ", +"ن", +"د"], + +abbreviated:[ +"ينا", +"فبر", +"مارس", +"أبريل", +"مايو", +"يونـ", +"يولـ", +"أغسـ", +"سبتـ", +"أكتـ", +"نوفـ", +"ديسـ"], + +wide:[ +"يناير", +"فبراير", +"مارس", +"أبريل", +"مايو", +"يونيو", +"يوليو", +"أغسطس", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"] + +}; +var dayValues$81={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الاثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$81={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءً", +night:"ليلاً" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهراً", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءً", +night:"ليلاً" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهراً", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءً", +night:"ليلاً" +} +}; +var formattingDayPeriodValues$65={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"في الصباح", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهراً", +morning:"في الصباح", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +morning:"في الصباح", +noon:"ظهراً", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +} +}; +var ordinalNumber$81=function ordinalNumber$81(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ar-EG.js +/** +* @category Locales +* @summary Arabic locale (Egypt). +* @language Arabic +* @iso-639-2 ara +* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13) +*/ +var _arEG={ +code:"ar-EG", +formatDistance:formatDistance$81, +formatLong:formatLong$89, +formatRelative:formatRelative$81, +localize:{ +ordinalNumber:ordinalNumber$81, +era:buildLocalizeFn({ +values:eraValues$81, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$81, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$81, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$81, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$81, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$65, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)/, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ق|ب)/g, +abbreviated:/^(ق.م|ب.م)/g, +wide:/^(قبل الميلاد|بعد الميلاد)/g +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^ق/g,/^ب/g]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/, +abbreviated:/^ر[1234]/, +wide:/^الربع (الأول|الثاني|الثالث|الرابع)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[ +/الربع الأول/, +/الربع الثاني/, +/الربع الثالث/, +/الربع الرابع/], + +any:[ +/1/, +/2/, +/3/, +/4/] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ي|ف|م|أ|س|ن|د)/, +abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, +wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/, +/^ف/, +/^م/, +/^أ/, +/^م/, +/^ي/, +/^ي/, +/^أ/, +/^س/, +/^أ/, +/^ن/, +/^د/], + +any:[ +/^ينا/, +/^فبر/, +/^مارس/, +/^أبريل/, +/^مايو/, +/^يون/, +/^يول/, +/^أغس/, +/^سبت/, +/^أكت/, +/^نوف/, +/^ديس/] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ح|ن|ث|ر|خ|ج|س)/, +short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, +abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, +wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/, +/^ن/, +/^ث/, +/^ر/, +/^خ/, +/^ج/, +/^س/], + +any:[ +/أحد/, +/اثنين/, +/ثلاثاء/, +/أربعاء/, +/خميس/, +/جمعة/, +/سبت/] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, +abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, +wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, +any:/^(ص|م|صباح|ظهر|مساء|ليل)/ +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ص/, +pm:/^م/, +midnight:/^ن/, +noon:/^ظ/, +morning:/^ص/, +afternoon:/^بعد/, +evening:/^م/, +night:/^ل/ +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar-MA/_lib/formatDistance.js +var formatDistanceLocale$79={ +lessThanXSeconds:{ +one:"أقل من ثانية واحدة", +two:"أقل من ثانتين", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية واحدة", +two:"ثانتين", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نصف دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقائق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة واحدة", +two:"دقيقتين", +threeToTen:"{{count}} دقائق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"ساعة واحدة تقريباً", +two:"ساعتين تقريباً", +threeToTen:"{{count}} ساعات تقريباً", +other:"{{count}} ساعة تقريباً" +}, +xHours:{ +one:"ساعة واحدة", +two:"ساعتين", +threeToTen:"{{count}} ساعات", +other:"{{count}} ساعة" +}, +xDays:{ +one:"يوم واحد", +two:"يومين", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"أسبوع واحد تقريباً", +two:"أسبوعين تقريباً", +threeToTen:"{{count}} أسابيع تقريباً", +other:"{{count}} أسبوع تقريباً" +}, +xWeeks:{ +one:"أسبوع واحد", +two:"أسبوعين", +threeToTen:"{{count}} أسابيع", +other:"{{count}} أسبوع" +}, +aboutXMonths:{ +one:"شهر واحد تقريباً", +two:"شهرين تقريباً", +threeToTen:"{{count}} أشهر تقريباً", +other:"{{count}} شهر تقريباً" +}, +xMonths:{ +one:"شهر واحد", +two:"شهرين", +threeToTen:"{{count}} أشهر", +other:"{{count}} شهر" +}, +aboutXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +}, +xYears:{ +one:"عام واحد", +two:"عامين", +threeToTen:"{{count}} أعوام", +other:"{{count}} عام" +}, +overXYears:{ +one:"أكثر من عام", +two:"أكثر من عامين", +threeToTen:"أكثر من {{count}} أعوام", +other:"أكثر من {{count}} عام" +}, +almostXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +} +}; +var formatDistance$80=function formatDistance$80(token,count,options){ +options=options||{}; +var usageGroup=formatDistanceLocale$79[token]; +var result; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +if(count===2)result=usageGroup.two;else +if(count<=10)result=usageGroup.threeToTen.replace("{{count}}",String(count));else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options.addSuffix)if(options.comparison&&options.comparison>0)return"في خلال "+result;else +return"منذ "+result; +return result; +}; +var formatLong$88={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'عند' {{time}}", +long:"{{date}} 'عند' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar-MA/_lib/formatRelative.js +var formatRelativeLocale$80={ +lastWeek:"'أخر' eeee 'عند' p", +yesterday:"'أمس عند' p", +today:"'اليوم عند' p", +tomorrow:"'غداً عند' p", +nextWeek:"eeee 'عند' p", +other:"P" +}; +var formatRelative$80=function formatRelative$80(token,_date,_baseDate,_options){ +return formatRelativeLocale$80[token]; +}; +//#endregion +//#region dist/date-fns/locale/ar-MA/_lib/localize.js +var eraValues$80={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$80={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$80={ +narrow:[ +"ي", +"ف", +"م", +"أ", +"م", +"ي", +"ي", +"غ", +"ش", +"أ", +"ن", +"د"], + +abbreviated:[ +"ينا", +"فبر", +"مارس", +"أبريل", +"ماي", +"يونـ", +"يولـ", +"غشت", +"شتنـ", +"أكتـ", +"نونـ", +"دجنـ"], + +wide:[ +"يناير", +"فبراير", +"مارس", +"أبريل", +"ماي", +"يونيو", +"يوليوز", +"غشت", +"شتنبر", +"أكتوبر", +"نونبر", +"دجنبر"] + +}; +var dayValues$80={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنـ", +"ثلا", +"أربـ", +"خميـ", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الإثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$80={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +} +}; +var formattingDayPeriodValues$64={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"في الصباح", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"في الصباح", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +} +}; +var ordinalNumber$80=function ordinalNumber$80(dirtyNumber){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ar-MA.js +/** +* @category Locales +* @summary Arabic locale (Moroccan Arabic). +* @language Moroccan Arabic +* @iso-639-2 ara +* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf) +*/ +var _arMA={ +code:"ar-MA", +formatDistance:formatDistance$80, +formatLong:formatLong$88, +formatRelative:formatRelative$80, +localize:{ +ordinalNumber:ordinalNumber$80, +era:buildLocalizeFn({ +values:eraValues$80, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$80, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$80, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$80, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$80, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$64, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ق|ب)/i, +abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, +wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^قبل/i,/^بعد/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ر[1234]/i, +wide:/^الربع [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return Number(index)+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[يفمأمسند]/i, +abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, +wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/i, +/^ف/i, +/^م/i, +/^أ/i, +/^م/i, +/^ي/i, +/^ي/i, +/^غ/i, +/^ش/i, +/^أ/i, +/^ن/i, +/^د/i], + +any:[ +/^ين/i, +/^فب/i, +/^مار/i, +/^أب/i, +/^ماي/i, +/^يون/i, +/^يول/i, +/^غشت/i, +/^ش/i, +/^أك/i, +/^ن/i, +/^د/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[حنثرخجس]/i, +short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, +wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/i, +/^ن/i, +/^ث/i, +/^ر/i, +/^خ/i, +/^ج/i, +/^س/i], + +wide:[ +/^الأحد/i, +/^الإثنين/i, +/^الثلاثاء/i, +/^الأربعاء/i, +/^الخميس/i, +/^الجمعة/i, +/^السبت/i], + +any:[ +/^أح/i, +/^إث/i, +/^ث/i, +/^أر/i, +/^خ/i, +/^ج/i, +/^س/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, +any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mi/i, +noon:/^no/i, +morning:/morning/i, +afternoon:/afternoon/i, +evening:/evening/i, +night:/night/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar-SA/_lib/formatDistance.js +var formatDistanceLocale$78={ +lessThanXSeconds:{ +one:"أقل من ثانية واحدة", +two:"أقل من ثانتين", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية واحدة", +two:"ثانتين", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نصف دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقائق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة واحدة", +two:"دقيقتين", +threeToTen:"{{count}} دقائق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"ساعة واحدة تقريباً", +two:"ساعتين تقريباً", +threeToTen:"{{count}} ساعات تقريباً", +other:"{{count}} ساعة تقريباً" +}, +xHours:{ +one:"ساعة واحدة", +two:"ساعتين", +threeToTen:"{{count}} ساعات", +other:"{{count}} ساعة" +}, +xDays:{ +one:"يوم واحد", +two:"يومين", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"أسبوع واحد تقريباً", +two:"أسبوعين تقريباً", +threeToTen:"{{count}} أسابيع تقريباً", +other:"{{count}} أسبوع تقريباً" +}, +xWeeks:{ +one:"أسبوع واحد", +two:"أسبوعين", +threeToTen:"{{count}} أسابيع", +other:"{{count}} أسبوع" +}, +aboutXMonths:{ +one:"شهر واحد تقريباً", +two:"شهرين تقريباً", +threeToTen:"{{count}} أشهر تقريباً", +other:"{{count}} شهر تقريباً" +}, +xMonths:{ +one:"شهر واحد", +two:"شهرين", +threeToTen:"{{count}} أشهر", +other:"{{count}} شهر" +}, +aboutXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +}, +xYears:{ +one:"عام واحد", +two:"عامين", +threeToTen:"{{count}} أعوام", +other:"{{count}} عام" +}, +overXYears:{ +one:"أكثر من عام", +two:"أكثر من عامين", +threeToTen:"أكثر من {{count}} أعوام", +other:"أكثر من {{count}} عام" +}, +almostXYears:{ +one:"عام واحد تقريباً", +two:"عامين تقريباً", +threeToTen:"{{count}} أعوام تقريباً", +other:"{{count}} عام تقريباً" +} +}; +var formatDistance$79=function formatDistance$79(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$78[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2)result=tokenValue.two;else +if(count<=10)result=tokenValue.threeToTen.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"في خلال "+result;else +return"منذ "+result; +return result; +}; +var formatLong$87={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'عند' {{time}}", +long:"{{date}} 'عند' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar-SA/_lib/formatRelative.js +var formatRelativeLocale$79={ +lastWeek:"'أخر' eeee 'عند' p", +yesterday:"'أمس عند' p", +today:"'اليوم عند' p", +tomorrow:"'غداً عند' p", +nextWeek:"eeee 'عند' p", +other:"P" +}; +var formatRelative$79=function formatRelative$79(token,_date,_baseDate,_options){return formatRelativeLocale$79[token];}; +//#endregion +//#region dist/date-fns/locale/ar-SA/_lib/localize.js +var eraValues$79={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$79={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$79={ +narrow:[ +"ي", +"ف", +"م", +"أ", +"م", +"ي", +"ي", +"أ", +"س", +"أ", +"ن", +"د"], + +abbreviated:[ +"ينا", +"فبر", +"مارس", +"أبريل", +"مايو", +"يونـ", +"يولـ", +"أغسـ", +"سبتـ", +"أكتـ", +"نوفـ", +"ديسـ"], + +wide:[ +"يناير", +"فبراير", +"مارس", +"أبريل", +"مايو", +"يونيو", +"يوليو", +"أغسطس", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"] + +}; +var dayValues$79={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنـ", +"ثلا", +"أربـ", +"خميـ", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الاثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$79={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظهر", +evening:"مساءاً", +night:"ليلاً" +} +}; +var formattingDayPeriodValues$63={ +narrow:{ +am:"ص", +pm:"م", +midnight:"ن", +noon:"ظ", +morning:"في الصباح", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +}, +abbreviated:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"في الصباح", +afternoon:"بعد الظهر", +evening:"في المساء", +night:"في الليل" +}, +wide:{ +am:"ص", +pm:"م", +midnight:"نصف الليل", +noon:"ظهر", +morning:"صباحاً", +afternoon:"بعد الظـهر", +evening:"في المساء", +night:"في الليل" +} +}; +var ordinalNumber$79=function ordinalNumber$79(dirtyNumber){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ar-SA.js +/** +* @category Locales +* @summary Arabic locale (Sauid Arabic). +* @language Arabic +* @iso-639-2 ara +* @author Dhaifallah Alwadani [@dalwadani](https://github.com/dalwadani) +*/ +var _arSA={ +code:"ar-SA", +formatDistance:formatDistance$79, +formatLong:formatLong$87, +formatRelative:formatRelative$79, +localize:{ +ordinalNumber:ordinalNumber$79, +era:buildLocalizeFn({ +values:eraValues$79, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$79, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$79, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$79, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$79, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$63, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ق|ب)/i, +abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, +wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^قبل/i,/^بعد/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ر[1234]/i, +wide:/^الربع [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[يفمأمسند]/i, +abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, +wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/i, +/^ف/i, +/^م/i, +/^أ/i, +/^م/i, +/^ي/i, +/^ي/i, +/^أ/i, +/^س/i, +/^أ/i, +/^ن/i, +/^د/i], + +any:[ +/^ين/i, +/^ف/i, +/^مار/i, +/^أب/i, +/^ماي/i, +/^يون/i, +/^يول/i, +/^أغ/i, +/^س/i, +/^أك/i, +/^ن/i, +/^د/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[حنثرخجس]/i, +short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, +wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/i, +/^ن/i, +/^ث/i, +/^ر/i, +/^خ/i, +/^ج/i, +/^س/i], + +wide:[ +/^الأحد/i, +/^الاثنين/i, +/^الثلاثاء/i, +/^الأربعاء/i, +/^الخميس/i, +/^الجمعة/i, +/^السبت/i], + +any:[ +/^أح/i, +/^اث/i, +/^ث/i, +/^أر/i, +/^خ/i, +/^ج/i, +/^س/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, +any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mi/i, +noon:/^no/i, +morning:/morning/i, +afternoon:/afternoon/i, +evening:/evening/i, +night:/night/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ar-TN/_lib/formatDistance.js +var formatDistanceLocale$77={ +lessThanXSeconds:{ +one:"أقل من ثانية", +two:"أقل من زوز ثواني", +threeToTen:"أقل من {{count}} ثواني", +other:"أقل من {{count}} ثانية" +}, +xSeconds:{ +one:"ثانية", +two:"زوز ثواني", +threeToTen:"{{count}} ثواني", +other:"{{count}} ثانية" +}, +halfAMinute:"نص دقيقة", +lessThanXMinutes:{ +one:"أقل من دقيقة", +two:"أقل من دقيقتين", +threeToTen:"أقل من {{count}} دقايق", +other:"أقل من {{count}} دقيقة" +}, +xMinutes:{ +one:"دقيقة", +two:"دقيقتين", +threeToTen:"{{count}} دقايق", +other:"{{count}} دقيقة" +}, +aboutXHours:{ +one:"ساعة تقريب", +two:"ساعتين تقريب", +threeToTen:"{{count}} سوايع تقريب", +other:"{{count}} ساعة تقريب" +}, +xHours:{ +one:"ساعة", +two:"ساعتين", +threeToTen:"{{count}} سوايع", +other:"{{count}} ساعة" +}, +xDays:{ +one:"نهار", +two:"نهارين", +threeToTen:"{{count}} أيام", +other:"{{count}} يوم" +}, +aboutXWeeks:{ +one:"جمعة تقريب", +two:"جمعتين تقريب", +threeToTen:"{{count}} جماع تقريب", +other:"{{count}} جمعة تقريب" +}, +xWeeks:{ +one:"جمعة", +two:"جمعتين", +threeToTen:"{{count}} جماع", +other:"{{count}} جمعة" +}, +aboutXMonths:{ +one:"شهر تقريب", +two:"شهرين تقريب", +threeToTen:"{{count}} أشهرة تقريب", +other:"{{count}} شهر تقريب" +}, +xMonths:{ +one:"شهر", +two:"شهرين", +threeToTen:"{{count}} أشهرة", +other:"{{count}} شهر" +}, +aboutXYears:{ +one:"عام تقريب", +two:"عامين تقريب", +threeToTen:"{{count}} أعوام تقريب", +other:"{{count}} عام تقريب" +}, +xYears:{ +one:"عام", +two:"عامين", +threeToTen:"{{count}} أعوام", +other:"{{count}} عام" +}, +overXYears:{ +one:"أكثر من عام", +two:"أكثر من عامين", +threeToTen:"أكثر من {{count}} أعوام", +other:"أكثر من {{count}} عام" +}, +almostXYears:{ +one:"عام تقريب", +two:"عامين تقريب", +threeToTen:"{{count}} أعوام تقريب", +other:"{{count}} عام تقريب" +} +}; +var formatDistance$78=function formatDistance$78(token,count,options){ +var usageGroup=formatDistanceLocale$77[token]; +var result; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +if(count===2)result=usageGroup.two;else +if(count<=10)result=usageGroup.threeToTen.replace("{{count}}",String(count));else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"في "+result;else +return"عندو "+result; +return result; +}; +var formatLong$86={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE، do MMMM y", +long:"do MMMM y", +medium:"d MMM y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss", +long:"HH:mm:ss", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'مع' {{time}}", +long:"{{date}} 'مع' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ar-TN/_lib/formatRelative.js +var formatRelativeLocale$78={ +lastWeek:"eeee 'إلي فات مع' p", +yesterday:"'البارح مع' p", +today:"'اليوم مع' p", +tomorrow:"'غدوة مع' p", +nextWeek:"eeee 'الجمعة الجاية مع' p 'نهار'", +other:"P" +}; +var formatRelative$78=function formatRelative$78(token){return formatRelativeLocale$78[token];}; +//#endregion +//#region dist/date-fns/locale/ar-TN/_lib/localize.js +var eraValues$78={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل الميلاد","بعد الميلاد"] +}; +var quarterValues$78={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ر1", +"ر2", +"ر3", +"ر4"], + +wide:[ +"الربع الأول", +"الربع الثاني", +"الربع الثالث", +"الربع الرابع"] + +}; +var monthValues$78={ +narrow:[ +"د", +"ن", +"أ", +"س", +"أ", +"ج", +"ج", +"م", +"أ", +"م", +"ف", +"ج"], + +abbreviated:[ +"جانفي", +"فيفري", +"مارس", +"أفريل", +"ماي", +"جوان", +"جويلية", +"أوت", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"], + +wide:[ +"جانفي", +"فيفري", +"مارس", +"أفريل", +"ماي", +"جوان", +"جويلية", +"أوت", +"سبتمبر", +"أكتوبر", +"نوفمبر", +"ديسمبر"] + +}; +var dayValues$78={ +narrow:[ +"ح", +"ن", +"ث", +"ر", +"خ", +"ج", +"س"], + +short:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +abbreviated:[ +"أحد", +"اثنين", +"ثلاثاء", +"أربعاء", +"خميس", +"جمعة", +"سبت"], + +wide:[ +"الأحد", +"الاثنين", +"الثلاثاء", +"الأربعاء", +"الخميس", +"الجمعة", +"السبت"] + +}; +var dayPeriodValues$78={ +narrow:{ +am:"ص", +pm:"ع", +morning:"الصباح", +noon:"القايلة", +afternoon:"بعد القايلة", +evening:"العشية", +night:"الليل", +midnight:"نص الليل" +}, +abbreviated:{ +am:"ص", +pm:"ع", +morning:"الصباح", +noon:"القايلة", +afternoon:"بعد القايلة", +evening:"العشية", +night:"الليل", +midnight:"نص الليل" +}, +wide:{ +am:"ص", +pm:"ع", +morning:"الصباح", +noon:"القايلة", +afternoon:"بعد القايلة", +evening:"العشية", +night:"الليل", +midnight:"نص الليل" +} +}; +var formattingDayPeriodValues$62={ +narrow:{ +am:"ص", +pm:"ع", +morning:"في الصباح", +noon:"في القايلة", +afternoon:"بعد القايلة", +evening:"في العشية", +night:"في الليل", +midnight:"نص الليل" +}, +abbreviated:{ +am:"ص", +pm:"ع", +morning:"في الصباح", +noon:"في القايلة", +afternoon:"بعد القايلة", +evening:"في العشية", +night:"في الليل", +midnight:"نص الليل" +}, +wide:{ +am:"ص", +pm:"ع", +morning:"في الصباح", +noon:"في القايلة", +afternoon:"بعد القايلة", +evening:"في العشية", +night:"في الليل", +midnight:"نص الليل" +} +}; +var ordinalNumber$78=function ordinalNumber$78(num){return String(num);}; +//#endregion +//#region dist/date-fns/locale/ar-TN.js +/** +* @category Locales +* @summary Arabic locale (Tunisian Arabic). +* @language Arabic +* @iso-639-2 ara +* @author Koussay Haj Kacem [@essana3](https://github.com/essana3) +*/ +var _arTN={ +code:"ar-TN", +formatDistance:formatDistance$78, +formatLong:formatLong$86, +formatRelative:formatRelative$78, +localize:{ +ordinalNumber:ordinalNumber$78, +era:buildLocalizeFn({ +values:eraValues$78, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$78, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$78, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$78, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$78, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$62, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/[قب]/, +abbreviated:/[قب]\.م\./, +wide:/(قبل|بعد) الميلاد/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/قبل/,/بعد/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/ر[1234]/, +wide:/الربع (الأول|الثاني|الثالث|الرابع)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[جفمأسند]/, +abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, +wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ج/i, +/^ف/i, +/^م/i, +/^أ/i, +/^م/i, +/^ج/i, +/^ج/i, +/^أ/i, +/^س/i, +/^أ/i, +/^ن/i, +/^د/i], + +any:[ +/^جانفي/i, +/^فيفري/i, +/^مارس/i, +/^أفريل/i, +/^ماي/i, +/^جوان/i, +/^جويلية/i, +/^أوت/i, +/^سبتمبر/i, +/^أكتوبر/i, +/^نوفمبر/i, +/^ديسمبر/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[حنثرخجس]/i, +short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, +wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ح/i, +/^ن/i, +/^ث/i, +/^ر/i, +/^خ/i, +/^ج/i, +/^س/i], + +wide:[ +/^الأحد/i, +/^الاثنين/i, +/^الثلاثاء/i, +/^الأربعاء/i, +/^الخميس/i, +/^الجمعة/i, +/^السبت/i], + +any:[ +/^أح/i, +/^اث/i, +/^ث/i, +/^أر/i, +/^خ/i, +/^ج/i, +/^س/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, +any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/ +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ص/, +pm:/^ع/, +midnight:/نص الليل/, +noon:/قايلة/, +afternoon:/بعد القايلة/, +morning:/صباح/, +evening:/عشية/, +night:/ليل/ +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/az/_lib/formatDistance.js +var formatDistanceLocale$76={ +lessThanXSeconds:{ +one:"bir saniyədən az", +other:"{{count}} bir saniyədən az" +}, +xSeconds:{ +one:"1 saniyə", +other:"{{count}} saniyə" +}, +halfAMinute:"yarım dəqiqə", +lessThanXMinutes:{ +one:"bir dəqiqədən az", +other:"{{count}} bir dəqiqədən az" +}, +xMinutes:{ +one:"bir dəqiqə", +other:"{{count}} dəqiqə" +}, +aboutXHours:{ +one:"təxminən 1 saat", +other:"təxminən {{count}} saat" +}, +xHours:{ +one:"1 saat", +other:"{{count}} saat" +}, +xDays:{ +one:"1 gün", +other:"{{count}} gün" +}, +aboutXWeeks:{ +one:"təxminən 1 həftə", +other:"təxminən {{count}} həftə" +}, +xWeeks:{ +one:"1 həftə", +other:"{{count}} həftə" +}, +aboutXMonths:{ +one:"təxminən 1 ay", +other:"təxminən {{count}} ay" +}, +xMonths:{ +one:"1 ay", +other:"{{count}} ay" +}, +aboutXYears:{ +one:"təxminən 1 il", +other:"təxminən {{count}} il" +}, +xYears:{ +one:"1 il", +other:"{{count}} il" +}, +overXYears:{ +one:"1 ildən çox", +other:"{{count}} ildən çox" +}, +almostXYears:{ +one:"demək olar ki 1 il", +other:"demək olar ki {{count}} il" +} +}; +var formatDistance$77=function formatDistance$77(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$76[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" sonra";else +return result+" əvvəl"; +return result; +}; +var formatLong$85={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y 'il'", +long:"do MMMM y 'il'", +medium:"d MMM y 'il'", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}} - 'də'", +long:"{{date}} {{time}} - 'də'", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/az/_lib/formatRelative.js +var formatRelativeLocale$77={ +lastWeek:"'sonuncu' eeee p -'də'", +yesterday:"'dünən' p -'də'", +today:"'bugün' p -'də'", +tomorrow:"'sabah' p -'də'", +nextWeek:"eeee p -'də'", +other:"P" +}; +var formatRelative$77=function formatRelative$77(token,_date,_baseDate,_options){return formatRelativeLocale$77[token];}; +//#endregion +//#region dist/date-fns/locale/az/_lib/localize.js +var eraValues$77={ +narrow:["e.ə","b.e"], +abbreviated:["e.ə","b.e"], +wide:["eramızdan əvvəl","bizim era"] +}; +var quarterValues$77={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1ci kvartal", +"2ci kvartal", +"3cü kvartal", +"4cü kvartal"] + +}; +var monthValues$77={ +narrow:[ +"Y", +"F", +"M", +"A", +"M", +"İ", +"İ", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Yan", +"Fev", +"Mar", +"Apr", +"May", +"İyun", +"İyul", +"Avq", +"Sen", +"Okt", +"Noy", +"Dek"], + +wide:[ +"Yanvar", +"Fevral", +"Mart", +"Aprel", +"May", +"İyun", +"İyul", +"Avqust", +"Sentyabr", +"Oktyabr", +"Noyabr", +"Dekabr"] + +}; +var dayValues$77={ +narrow:[ +"B.", +"B.e", +"Ç.a", +"Ç.", +"C.a", +"C.", +"Ş."], + +short:[ +"B.", +"B.e", +"Ç.a", +"Ç.", +"C.a", +"C.", +"Ş."], + +abbreviated:[ +"Baz", +"Baz.e", +"Çər.a", +"Çər", +"Cüm.a", +"Cüm", +"Şə"], + +wide:[ +"Bazar", +"Bazar ertəsi", +"Çərşənbə axşamı", +"Çərşənbə", +"Cümə axşamı", +"Cümə", +"Şənbə"] + +}; +var dayPeriodValues$77={ +narrow:{ +am:"am", +pm:"pm", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +} +}; +var formattingDayPeriodValues$61={ +narrow:{ +am:"a", +pm:"p", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"gecəyarı", +noon:"gün", +morning:"səhər", +afternoon:"gündüz", +evening:"axşam", +night:"gecə" +} +}; +var suffixes$1={ +1:"-inci", +5:"-inci", +8:"-inci", +70:"-inci", +80:"-inci", +2:"-nci", +7:"-nci", +20:"-nci", +50:"-nci", +3:"-üncü", +4:"-üncü", +100:"-üncü", +6:"-ncı", +9:"-uncu", +10:"-uncu", +30:"-uncu", +60:"-ıncı", +90:"-ıncı" +}; +var getSuffix=function getSuffix(number){ +if(number===0)return number+"-ıncı"; +var a=number%10; +var b=number%100-a; +var c=number>=100?100:null; +if(suffixes$1[a])return suffixes$1[a];else +if(suffixes$1[b])return suffixes$1[b];else +if(c!==null)return suffixes$1[c]; +return""; +}; +var ordinalNumber$77=function ordinalNumber$77(dirtyNumber,_options){ +var number=Number(dirtyNumber); +return number+getSuffix(number); +}; +//#endregion +//#region dist/date-fns/locale/az.js +/** +* @category Locales +* @summary Azerbaijani locale. +* @language Azerbaijani +* @iso-639-2 aze +*/ +var _az={ +code:"az", +formatDistance:formatDistance$77, +formatLong:formatLong$85, +formatRelative:formatRelative$77, +localize:{ +ordinalNumber:ordinalNumber$77, +era:buildLocalizeFn({ +values:eraValues$77, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$77, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$77, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$77, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$77, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$61, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(b|a)$/i, +abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, +wide:/^(bizim eradan əvvəl|bizim era)$/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b$/i,/^(a|c)$/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]$/i, +abbreviated:/^K[1234]$/i, +wide:/^[1234](ci)? kvartal$/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[(?-i)yfmaisond]$/i, +abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, +wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^[(?-i)y]$/i, +/^[(?-i)f]$/i, +/^[(?-i)m]$/i, +/^[(?-i)a]$/i, +/^[(?-i)m]$/i, +/^[(?-i)i]$/i, +/^[(?-i)i]$/i, +/^[(?-i)a]$/i, +/^[(?-i)s]$/i, +/^[(?-i)o]$/i, +/^[(?-i)n]$/i, +/^[(?-i)d]$/i], + +abbreviated:[ +/^Yan$/i, +/^Fev$/i, +/^Mar$/i, +/^Apr$/i, +/^May$/i, +/^İyun$/i, +/^İyul$/i, +/^Avg$/i, +/^Sen$/i, +/^Okt$/i, +/^Noy$/i, +/^Dek$/i], + +wide:[ +/^Yanvar$/i, +/^Fevral$/i, +/^Mart$/i, +/^Aprel$/i, +/^May$/i, +/^İyun$/i, +/^İyul$/i, +/^Avgust$/i, +/^Sentyabr$/i, +/^Oktyabr$/i, +/^Noyabr$/i, +/^Dekabr$/i] + +}, +defaultParseWidth:"narrow" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, +short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, +abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, +wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^B\.$/i, +/^B\.e$/i, +/^Ç\.a$/i, +/^Ç\.$/i, +/^C\.a$/i, +/^C\.$/i, +/^Ş\.$/i], + +abbreviated:[ +/^Baz$/i, +/^Baz\.e$/i, +/^Çər\.a$/i, +/^Çər$/i, +/^Cüm\.a$/i, +/^Cüm$/i, +/^Şə$/i], + +wide:[ +/^Bazar$/i, +/^Bazar ertəsi$/i, +/^Çərşənbə axşamı$/i, +/^Çərşənbə$/i, +/^Cümə axşamı$/i, +/^Cümə$/i, +/^Şənbə$/i], + +any:[ +/^B\.$/i, +/^B\.e$/i, +/^Ç\.a$/i, +/^Ç\.$/i, +/^C\.a$/i, +/^C\.$/i, +/^Ş\.$/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, +any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a$/i, +pm:/^p$/i, +midnight:/^gecəyarı$/i, +noon:/^gün$/i, +morning:/səhər$/i, +afternoon:/gündüz$/i, +evening:/axşam$/i, +night:/gecə$/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/be/_lib/formatDistance.js +function declension$6(scheme,count){ +if(scheme.one!==void 0&&count===1)return scheme.one; +var rem10=count%10; +var rem100=count%100; +if(rem10===1&&rem100!==11)return scheme.singularNominative.replace("{{count}}",String(count));else +if(rem10>=2&&rem10<=4&&(rem100<10||rem100>20))return scheme.singularGenitive.replace("{{count}}",String(count));else +return scheme.pluralGenitive.replace("{{count}}",String(count)); +} +function buildLocalizeTokenFn$4(scheme){ +return function(count,options){ +if(options&&options.addSuffix){if(options.comparison&&options.comparison>0){if(scheme.future)return declension$6(scheme.future,count);else +return"праз "+declension$6(scheme.regular,count);}else +if(scheme.past)return declension$6(scheme.past,count);else +return declension$6(scheme.regular,count)+" таму";}else +return declension$6(scheme.regular,count); +}; +} +var halfAMinute$1=function halfAMinute$1(_,options){ +if(options&&options.addSuffix)if(options.comparison&&options.comparison>0)return"праз паўхвіліны";else +return"паўхвіліны таму"; +return"паўхвіліны"; +}; +var formatDistanceLocale$75={ +lessThanXSeconds:buildLocalizeTokenFn$4({ +regular:{ +one:"менш за секунду", +singularNominative:"менш за {{count}} секунду", +singularGenitive:"менш за {{count}} секунды", +pluralGenitive:"менш за {{count}} секунд" +}, +future:{ +one:"менш, чым праз секунду", +singularNominative:"менш, чым праз {{count}} секунду", +singularGenitive:"менш, чым праз {{count}} секунды", +pluralGenitive:"менш, чым праз {{count}} секунд" +} +}), +xSeconds:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"{{count}} секунда", +singularGenitive:"{{count}} секунды", +pluralGenitive:"{{count}} секунд" +}, +past:{ +singularNominative:"{{count}} секунду таму", +singularGenitive:"{{count}} секунды таму", +pluralGenitive:"{{count}} секунд таму" +}, +future:{ +singularNominative:"праз {{count}} секунду", +singularGenitive:"праз {{count}} секунды", +pluralGenitive:"праз {{count}} секунд" +} +}), +halfAMinute:halfAMinute$1, +lessThanXMinutes:buildLocalizeTokenFn$4({ +regular:{ +one:"менш за хвіліну", +singularNominative:"менш за {{count}} хвіліну", +singularGenitive:"менш за {{count}} хвіліны", +pluralGenitive:"менш за {{count}} хвілін" +}, +future:{ +one:"менш, чым праз хвіліну", +singularNominative:"менш, чым праз {{count}} хвіліну", +singularGenitive:"менш, чым праз {{count}} хвіліны", +pluralGenitive:"менш, чым праз {{count}} хвілін" +} +}), +xMinutes:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"{{count}} хвіліна", +singularGenitive:"{{count}} хвіліны", +pluralGenitive:"{{count}} хвілін" +}, +past:{ +singularNominative:"{{count}} хвіліну таму", +singularGenitive:"{{count}} хвіліны таму", +pluralGenitive:"{{count}} хвілін таму" +}, +future:{ +singularNominative:"праз {{count}} хвіліну", +singularGenitive:"праз {{count}} хвіліны", +pluralGenitive:"праз {{count}} хвілін" +} +}), +aboutXHours:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"каля {{count}} гадзіны", +singularGenitive:"каля {{count}} гадзін", +pluralGenitive:"каля {{count}} гадзін" +}, +future:{ +singularNominative:"прыблізна праз {{count}} гадзіну", +singularGenitive:"прыблізна праз {{count}} гадзіны", +pluralGenitive:"прыблізна праз {{count}} гадзін" +} +}), +xHours:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"{{count}} гадзіна", +singularGenitive:"{{count}} гадзіны", +pluralGenitive:"{{count}} гадзін" +}, +past:{ +singularNominative:"{{count}} гадзіну таму", +singularGenitive:"{{count}} гадзіны таму", +pluralGenitive:"{{count}} гадзін таму" +}, +future:{ +singularNominative:"праз {{count}} гадзіну", +singularGenitive:"праз {{count}} гадзіны", +pluralGenitive:"праз {{count}} гадзін" +} +}), +xDays:buildLocalizeTokenFn$4({regular:{ +singularNominative:"{{count}} дзень", +singularGenitive:"{{count}} дні", +pluralGenitive:"{{count}} дзён" +}}), +aboutXWeeks:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"каля {{count}} тыдні", +singularGenitive:"каля {{count}} тыдняў", +pluralGenitive:"каля {{count}} тыдняў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} тыдзень", +singularGenitive:"прыблізна праз {{count}} тыдні", +pluralGenitive:"прыблізна праз {{count}} тыдняў" +} +}), +xWeeks:buildLocalizeTokenFn$4({regular:{ +singularNominative:"{{count}} тыдзень", +singularGenitive:"{{count}} тыдні", +pluralGenitive:"{{count}} тыдняў" +}}), +aboutXMonths:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"каля {{count}} месяца", +singularGenitive:"каля {{count}} месяцаў", +pluralGenitive:"каля {{count}} месяцаў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} месяц", +singularGenitive:"прыблізна праз {{count}} месяцы", +pluralGenitive:"прыблізна праз {{count}} месяцаў" +} +}), +xMonths:buildLocalizeTokenFn$4({regular:{ +singularNominative:"{{count}} месяц", +singularGenitive:"{{count}} месяцы", +pluralGenitive:"{{count}} месяцаў" +}}), +aboutXYears:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"каля {{count}} года", +singularGenitive:"каля {{count}} гадоў", +pluralGenitive:"каля {{count}} гадоў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} год", +singularGenitive:"прыблізна праз {{count}} гады", +pluralGenitive:"прыблізна праз {{count}} гадоў" +} +}), +xYears:buildLocalizeTokenFn$4({regular:{ +singularNominative:"{{count}} год", +singularGenitive:"{{count}} гады", +pluralGenitive:"{{count}} гадоў" +}}), +overXYears:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"больш за {{count}} год", +singularGenitive:"больш за {{count}} гады", +pluralGenitive:"больш за {{count}} гадоў" +}, +future:{ +singularNominative:"больш, чым праз {{count}} год", +singularGenitive:"больш, чым праз {{count}} гады", +pluralGenitive:"больш, чым праз {{count}} гадоў" +} +}), +almostXYears:buildLocalizeTokenFn$4({ +regular:{ +singularNominative:"амаль {{count}} год", +singularGenitive:"амаль {{count}} гады", +pluralGenitive:"амаль {{count}} гадоў" +}, +future:{ +singularNominative:"амаль праз {{count}} год", +singularGenitive:"амаль праз {{count}} гады", +pluralGenitive:"амаль праз {{count}} гадоў" +} +}) +}; +var formatDistance$76=function formatDistance$76(token,count,options){ +options=options||{}; +return formatDistanceLocale$75[token](count,options); +}; +var formatLong$84={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM y 'г.'", +long:"d MMMM y 'г.'", +medium:"d MMM y 'г.'", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +-(Math.pow(10,8)*24*60*60*1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol=Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date,value){ +if(typeof date==="function")return date(value); +if(date&&_typeof(date)==="object"&&constructFromSymbol in date)return date[constructFromSymbol](value); +if(date instanceof Date)return new date.constructor(value); +return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context){for(var _len=arguments.length,dates=new Array(_len>1?_len-1:0),_key2=1;_key2<_len;_key2++){dates[_key2-1]=arguments[_key2];} +var normalize=constructFrom.bind(null,context||dates.find(function(date){return _typeof(date)==="object";})); +return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions={}; +function getDefaultOptions(){ +return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument,context){ +return constructFrom(context||argument,argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date,options){var _ref,_ref2,_ref3,_options$weekStartsOn,_options$locale,_defaultOptions$local; +var defaultOptions=getDefaultOptions(); +var weekStartsOn=(_ref=(_ref2=(_ref3=(_options$weekStartsOn=options===null||options===void 0?void 0:options.weekStartsOn)!==null&&_options$weekStartsOn!==void 0?_options$weekStartsOn:options===null||options===void 0||(_options$locale=options.locale)===null||_options$locale===void 0||(_options$locale=_options$locale.options)===null||_options$locale===void 0?void 0:_options$locale.weekStartsOn)!==null&&_ref3!==void 0?_ref3:defaultOptions.weekStartsOn)!==null&&_ref2!==void 0?_ref2:(_defaultOptions$local=defaultOptions.locale)===null||_defaultOptions$local===void 0||(_defaultOptions$local=_defaultOptions$local.options)===null||_defaultOptions$local===void 0?void 0:_defaultOptions$local.weekStartsOn)!==null&&_ref!==void 0?_ref:0; +var _date=toDate(date,options===null||options===void 0?void 0:options.in); +var day=_date.getDay(); +var diff=(day true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate,earlierDate,options){ +var _normalizeDates=normalizeDates(options===null||options===void 0?void 0:options.in,laterDate,earlierDate),_normalizeDates2=_slicedToArray(_normalizeDates,2),laterDate_=_normalizeDates2[0],earlierDate_=_normalizeDates2[1]; +return+startOfWeek(laterDate_,options)===+startOfWeek(earlierDate_,options); +} +//#endregion +//#region dist/date-fns/locale/be/_lib/formatRelative.js +var accusativeWeekdays$7=[ +"нядзелю", +"панядзелак", +"аўторак", +"сераду", +"чацвер", +"пятніцу", +"суботу"]; + +function lastWeek$8(day){ +var weekday=accusativeWeekdays$7[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у мінулую "+weekday+" а' p"; +case 1: +case 2: +case 4:return"'у мінулы "+weekday+" а' p"; +} +} +function thisWeek$8(day){ +return"'у "+accusativeWeekdays$7[day]+" а' p"; +} +function nextWeek$8(day){ +var weekday=accusativeWeekdays$7[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у наступную "+weekday+" а' p"; +case 1: +case 2: +case 4:return"'у наступны "+weekday+" а' p"; +} +} +var lastWeekFormat$2=function lastWeekFormat$2(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$8(day);else +return lastWeek$8(day); +}; +var nextWeekFormat$2=function nextWeekFormat$2(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$8(day);else +return nextWeek$8(day); +}; +var formatRelativeLocale$76={ +lastWeek:lastWeekFormat$2, +yesterday:"'учора а' p", +today:"'сёння а' p", +tomorrow:"'заўтра а' p", +nextWeek:nextWeekFormat$2, +other:"P" +}; +var formatRelative$76=function formatRelative$76(token,date,baseDate,options){ +var format=formatRelativeLocale$76[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/be/_lib/localize.js +var eraValues$76={ +narrow:["да н.э.","н.э."], +abbreviated:["да н. э.","н. э."], +wide:["да нашай эры","нашай эры"] +}; +var quarterValues$76={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-ы кв.", +"2-і кв.", +"3-і кв.", +"4-ы кв."], + +wide:[ +"1-ы квартал", +"2-і квартал", +"3-і квартал", +"4-ы квартал"] + +}; +var monthValues$76={ +narrow:[ +"С", +"Л", +"С", +"К", +"М", +"Ч", +"Л", +"Ж", +"В", +"К", +"Л", +"С"], + +abbreviated:[ +"студз.", +"лют.", +"сак.", +"крас.", +"май", +"чэрв.", +"ліп.", +"жн.", +"вер.", +"кастр.", +"ліст.", +"снеж."], + +wide:[ +"студзень", +"люты", +"сакавік", +"красавік", +"май", +"чэрвень", +"ліпень", +"жнівень", +"верасень", +"кастрычнік", +"лістапад", +"снежань"] + +}; +var formattingMonthValues$18={ +narrow:[ +"С", +"Л", +"С", +"К", +"М", +"Ч", +"Л", +"Ж", +"В", +"К", +"Л", +"С"], + +abbreviated:[ +"студз.", +"лют.", +"сак.", +"крас.", +"мая", +"чэрв.", +"ліп.", +"жн.", +"вер.", +"кастр.", +"ліст.", +"снеж."], + +wide:[ +"студзеня", +"лютага", +"сакавіка", +"красавіка", +"мая", +"чэрвеня", +"ліпеня", +"жніўня", +"верасня", +"кастрычніка", +"лістапада", +"снежня"] + +}; +var dayValues$76={ +narrow:[ +"Н", +"П", +"А", +"С", +"Ч", +"П", +"С"], + +short:[ +"нд", +"пн", +"аў", +"ср", +"чц", +"пт", +"сб"], + +abbreviated:[ +"нядз", +"пан", +"аўт", +"сер", +"чац", +"пят", +"суб"], + +wide:[ +"нядзеля", +"панядзелак", +"аўторак", +"серада", +"чацвер", +"пятніца", +"субота"] + +}; +var dayPeriodValues$76={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дзень", +evening:"веч.", +night:"ноч" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дзень", +evening:"веч.", +night:"ноч" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"поўнач", +noon:"поўдзень", +morning:"раніца", +afternoon:"дзень", +evening:"вечар", +night:"ноч" +} +}; +var formattingDayPeriodValues$60={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дня", +evening:"веч.", +night:"ночы" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дня", +evening:"веч.", +night:"ночы" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"поўнач", +noon:"поўдзень", +morning:"раніцы", +afternoon:"дня", +evening:"вечара", +night:"ночы" +} +}; +var ordinalNumber$76=function ordinalNumber$76(dirtyNumber,options){ +var unit=String(options===null||options===void 0?void 0:options.unit); +var number=Number(dirtyNumber); +var suffix; +/** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ +if(unit==="date")suffix="-га";else +if(unit==="hour"||unit==="minute"||unit==="second")suffix="-я";else +suffix=(number%10===2||number%10===3)&&number%100!==12&&number%100!==13?"-і":"-ы"; +return number+suffix; +}; +//#endregion +//#region dist/date-fns/locale/be.js +/** +* @category Locales +* @summary Belarusian locale. +* @language Belarusian +* @iso-639-2 bel +* @author Kiryl Anokhin [@alyrik](https://github.com/alyrik) +* @author Martin Wind [@arvigeus](https://github.com/mawi12345) +*/ +var _be={ +code:"be", +formatDistance:formatDistance$76, +formatLong:formatLong$84, +formatRelative:formatRelative$76, +localize:{ +ordinalNumber:ordinalNumber$76, +era:buildLocalizeFn({ +values:eraValues$76, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$76, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$76, +defaultWidth:"wide", +formattingValues:formattingMonthValues$18, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$76, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$76, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$60, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((да )?н\.?\s?э\.?)/i, +abbreviated:/^((да )?н\.?\s?э\.?)/i, +wide:/^(да нашай эры|нашай эры|наша эра)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^д/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[ыі]?)? кв.?/i, +wide:/^[1234](-?[ыі]?)? квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[слкмчжв]/i, +abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, +wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^с/i, +/^л/i, +/^с/i, +/^к/i, +/^м/i, +/^ч/i, +/^л/i, +/^ж/i, +/^в/i, +/^к/i, +/^л/i, +/^с/i], + +any:[ +/^ст/i, +/^лю/i, +/^са/i, +/^кр/i, +/^ма/i, +/^ч/i, +/^ліп/i, +/^ж/i, +/^в/i, +/^ка/i, +/^ліс/i, +/^сн/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[нпасч]/i, +short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, +abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, +wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^п/i, +/^а/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^н/i, +/^п[ан]/i, +/^а/i, +/^с[ер]/i, +/^ч/i, +/^п[ят]/i, +/^с[уб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, +abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, +wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^дп/i, +pm:/^пп/i, +midnight:/^поўн/i, +noon:/^поўд/i, +morning:/^р/i, +afternoon:/^д[зн]/i, +evening:/^в/i, +night:/^н/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/be-tarask/_lib/formatDistance.js +function declension$5(scheme,count){ +if(scheme.one!==void 0&&count===1)return scheme.one; +var rem10=count%10; +var rem100=count%100; +if(rem10===1&&rem100!==11)return scheme.singularNominative.replace("{{count}}",String(count));else +if(rem10>=2&&rem10<=4&&(rem100<10||rem100>20))return scheme.singularGenitive.replace("{{count}}",String(count));else +return scheme.pluralGenitive.replace("{{count}}",String(count)); +} +function buildLocalizeTokenFn$3(scheme){ +return function(count,options){ +if(options&&options.addSuffix){if(options.comparison&&options.comparison>0){if(scheme.future)return declension$5(scheme.future,count);else +return"праз "+declension$5(scheme.regular,count);}else +if(scheme.past)return declension$5(scheme.past,count);else +return declension$5(scheme.regular,count)+" таму";}else +return declension$5(scheme.regular,count); +}; +} +var halfAMinute=function halfAMinute(_,options){ +if(options&&options.addSuffix)if(options.comparison&&options.comparison>0)return"праз паўхвіліны";else +return"паўхвіліны таму"; +return"паўхвіліны"; +}; +var formatDistanceLocale$74={ +lessThanXSeconds:buildLocalizeTokenFn$3({ +regular:{ +one:"менш за секунду", +singularNominative:"менш за {{count}} секунду", +singularGenitive:"менш за {{count}} секунды", +pluralGenitive:"менш за {{count}} секунд" +}, +future:{ +one:"менш, чым праз секунду", +singularNominative:"менш, чым праз {{count}} секунду", +singularGenitive:"менш, чым праз {{count}} секунды", +pluralGenitive:"менш, чым праз {{count}} секунд" +} +}), +xSeconds:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"{{count}} секунда", +singularGenitive:"{{count}} секунды", +pluralGenitive:"{{count}} секунд" +}, +past:{ +singularNominative:"{{count}} секунду таму", +singularGenitive:"{{count}} секунды таму", +pluralGenitive:"{{count}} секунд таму" +}, +future:{ +singularNominative:"праз {{count}} секунду", +singularGenitive:"праз {{count}} секунды", +pluralGenitive:"праз {{count}} секунд" +} +}), +halfAMinute:halfAMinute, +lessThanXMinutes:buildLocalizeTokenFn$3({ +regular:{ +one:"менш за хвіліну", +singularNominative:"менш за {{count}} хвіліну", +singularGenitive:"менш за {{count}} хвіліны", +pluralGenitive:"менш за {{count}} хвілін" +}, +future:{ +one:"менш, чым праз хвіліну", +singularNominative:"менш, чым праз {{count}} хвіліну", +singularGenitive:"менш, чым праз {{count}} хвіліны", +pluralGenitive:"менш, чым праз {{count}} хвілін" +} +}), +xMinutes:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"{{count}} хвіліна", +singularGenitive:"{{count}} хвіліны", +pluralGenitive:"{{count}} хвілін" +}, +past:{ +singularNominative:"{{count}} хвіліну таму", +singularGenitive:"{{count}} хвіліны таму", +pluralGenitive:"{{count}} хвілін таму" +}, +future:{ +singularNominative:"праз {{count}} хвіліну", +singularGenitive:"праз {{count}} хвіліны", +pluralGenitive:"праз {{count}} хвілін" +} +}), +aboutXHours:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"каля {{count}} гадзіны", +singularGenitive:"каля {{count}} гадзін", +pluralGenitive:"каля {{count}} гадзін" +}, +future:{ +singularNominative:"прыблізна праз {{count}} гадзіну", +singularGenitive:"прыблізна праз {{count}} гадзіны", +pluralGenitive:"прыблізна праз {{count}} гадзін" +} +}), +xHours:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"{{count}} гадзіна", +singularGenitive:"{{count}} гадзіны", +pluralGenitive:"{{count}} гадзін" +}, +past:{ +singularNominative:"{{count}} гадзіну таму", +singularGenitive:"{{count}} гадзіны таму", +pluralGenitive:"{{count}} гадзін таму" +}, +future:{ +singularNominative:"праз {{count}} гадзіну", +singularGenitive:"праз {{count}} гадзіны", +pluralGenitive:"праз {{count}} гадзін" +} +}), +xDays:buildLocalizeTokenFn$3({regular:{ +singularNominative:"{{count}} дзень", +singularGenitive:"{{count}} дні", +pluralGenitive:"{{count}} дзён" +}}), +aboutXWeeks:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"каля {{count}} тыдні", +singularGenitive:"каля {{count}} тыдняў", +pluralGenitive:"каля {{count}} тыдняў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} тыдзень", +singularGenitive:"прыблізна праз {{count}} тыдні", +pluralGenitive:"прыблізна праз {{count}} тыдняў" +} +}), +xWeeks:buildLocalizeTokenFn$3({regular:{ +singularNominative:"{{count}} тыдзень", +singularGenitive:"{{count}} тыдні", +pluralGenitive:"{{count}} тыдняў" +}}), +aboutXMonths:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"каля {{count}} месяца", +singularGenitive:"каля {{count}} месяцаў", +pluralGenitive:"каля {{count}} месяцаў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} месяц", +singularGenitive:"прыблізна праз {{count}} месяцы", +pluralGenitive:"прыблізна праз {{count}} месяцаў" +} +}), +xMonths:buildLocalizeTokenFn$3({regular:{ +singularNominative:"{{count}} месяц", +singularGenitive:"{{count}} месяцы", +pluralGenitive:"{{count}} месяцаў" +}}), +aboutXYears:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"каля {{count}} года", +singularGenitive:"каля {{count}} гадоў", +pluralGenitive:"каля {{count}} гадоў" +}, +future:{ +singularNominative:"прыблізна праз {{count}} год", +singularGenitive:"прыблізна праз {{count}} гады", +pluralGenitive:"прыблізна праз {{count}} гадоў" +} +}), +xYears:buildLocalizeTokenFn$3({regular:{ +singularNominative:"{{count}} год", +singularGenitive:"{{count}} гады", +pluralGenitive:"{{count}} гадоў" +}}), +overXYears:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"больш за {{count}} год", +singularGenitive:"больш за {{count}} гады", +pluralGenitive:"больш за {{count}} гадоў" +}, +future:{ +singularNominative:"больш, чым праз {{count}} год", +singularGenitive:"больш, чым праз {{count}} гады", +pluralGenitive:"больш, чым праз {{count}} гадоў" +} +}), +almostXYears:buildLocalizeTokenFn$3({ +regular:{ +singularNominative:"амаль {{count}} год", +singularGenitive:"амаль {{count}} гады", +pluralGenitive:"амаль {{count}} гадоў" +}, +future:{ +singularNominative:"амаль праз {{count}} год", +singularGenitive:"амаль праз {{count}} гады", +pluralGenitive:"амаль праз {{count}} гадоў" +} +}) +}; +var formatDistance$75=function formatDistance$75(token,count,options){ +options=options||{}; +return formatDistanceLocale$74[token](count,options); +}; +var formatLong$83={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM y 'г.'", +long:"d MMMM y 'г.'", +medium:"d MMM y 'г.'", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/be-tarask/_lib/formatRelative.js +var accusativeWeekdays$6=[ +"нядзелю", +"панядзелак", +"аўторак", +"сераду", +"чацьвер", +"пятніцу", +"суботу"]; + +function lastWeek$7(day){ +var weekday=accusativeWeekdays$6[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у мінулую "+weekday+" а' p"; +case 1: +case 2: +case 4:return"'у мінулы "+weekday+" а' p"; +} +} +function thisWeek$7(day){ +return"'у "+accusativeWeekdays$6[day]+" а' p"; +} +function nextWeek$7(day){ +var weekday=accusativeWeekdays$6[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у наступную "+weekday+" а' p"; +case 1: +case 2: +case 4:return"'у наступны "+weekday+" а' p"; +} +} +var lastWeekFormat$1=function lastWeekFormat$1(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$7(day);else +return lastWeek$7(day); +}; +var nextWeekFormat$1=function nextWeekFormat$1(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$7(day);else +return nextWeek$7(day); +}; +var formatRelativeLocale$75={ +lastWeek:lastWeekFormat$1, +yesterday:"'учора а' p", +today:"'сёньня а' p", +tomorrow:"'заўтра а' p", +nextWeek:nextWeekFormat$1, +other:"P" +}; +var formatRelative$75=function formatRelative$75(token,date,baseDate,options){ +var format=formatRelativeLocale$75[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/be-tarask/_lib/localize.js +var eraValues$75={ +narrow:["да н.э.","н.э."], +abbreviated:["да н. э.","н. э."], +wide:["да нашай эры","нашай эры"] +}; +var quarterValues$75={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-ы кв.", +"2-і кв.", +"3-і кв.", +"4-ы кв."], + +wide:[ +"1-ы квартал", +"2-і квартал", +"3-і квартал", +"4-ы квартал"] + +}; +var monthValues$75={ +narrow:[ +"С", +"Л", +"С", +"К", +"Т", +"Ч", +"Л", +"Ж", +"В", +"К", +"Л", +"С"], + +abbreviated:[ +"студз.", +"лют.", +"сак.", +"крас.", +"трав.", +"чэрв.", +"ліп.", +"жн.", +"вер.", +"кастр.", +"ліст.", +"сьнеж."], + +wide:[ +"студзень", +"люты", +"сакавік", +"красавік", +"травень", +"чэрвень", +"ліпень", +"жнівень", +"верасень", +"кастрычнік", +"лістапад", +"сьнежань"] + +}; +var formattingMonthValues$17={ +narrow:[ +"С", +"Л", +"С", +"К", +"Т", +"Ч", +"Л", +"Ж", +"В", +"К", +"Л", +"С"], + +abbreviated:[ +"студз.", +"лют.", +"сак.", +"крас.", +"трав.", +"чэрв.", +"ліп.", +"жн.", +"вер.", +"кастр.", +"ліст.", +"сьнеж."], + +wide:[ +"студзеня", +"лютага", +"сакавіка", +"красавіка", +"траўня", +"чэрвеня", +"ліпеня", +"жніўня", +"верасня", +"кастрычніка", +"лістапада", +"сьнежня"] + +}; +var dayValues$75={ +narrow:[ +"Н", +"П", +"А", +"С", +"Ч", +"П", +"С"], + +short:[ +"нд", +"пн", +"аў", +"ср", +"чц", +"пт", +"сб"], + +abbreviated:[ +"нядз", +"пан", +"аўт", +"сер", +"чаць", +"пят", +"суб"], + +wide:[ +"нядзеля", +"панядзелак", +"аўторак", +"серада", +"чацьвер", +"пятніца", +"субота"] + +}; +var dayPeriodValues$75={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дзень", +evening:"веч.", +night:"ноч" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дзень", +evening:"веч.", +night:"ноч" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"поўнач", +noon:"поўдзень", +morning:"раніца", +afternoon:"дзень", +evening:"вечар", +night:"ноч" +} +}; +var formattingDayPeriodValues$59={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дня", +evening:"веч.", +night:"ночы" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"поўн.", +noon:"поўд.", +morning:"ран.", +afternoon:"дня", +evening:"веч.", +night:"ночы" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"поўнач", +noon:"поўдзень", +morning:"раніцы", +afternoon:"дня", +evening:"вечара", +night:"ночы" +} +}; +var ordinalNumber$75=function ordinalNumber$75(dirtyNumber,options){ +var unit=String(options===null||options===void 0?void 0:options.unit); +var number=Number(dirtyNumber); +var suffix; +/** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ +if(unit==="date")suffix="-га";else +if(unit==="hour"||unit==="minute"||unit==="second")suffix="-я";else +suffix=(number%10===2||number%10===3)&&number%100!==12&&number%100!==13?"-і":"-ы"; +return number+suffix; +}; +//#endregion +//#region dist/date-fns/locale/be-tarask.js +/** +* @category Locales +* @summary Belarusian Classic locale. +* @language Belarusian Classic +* @iso-639-2 bel +* @author Ryhor Nopears [@nopears](https://github.com/nopears) +*/ +var _beTarask={ +code:"be-tarask", +formatDistance:formatDistance$75, +formatLong:formatLong$83, +formatRelative:formatRelative$75, +localize:{ +ordinalNumber:ordinalNumber$75, +era:buildLocalizeFn({ +values:eraValues$75, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$75, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$75, +defaultWidth:"wide", +formattingValues:formattingMonthValues$17, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$75, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$75, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$59, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((да )?н\.?\s?э\.?)/i, +abbreviated:/^((да )?н\.?\s?э\.?)/i, +wide:/^(да нашай эры|нашай эры|наша эра)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^д/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[ыі]?)? кв.?/i, +wide:/^[1234](-?[ыі]?)? квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[слкмчжв]/i, +abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, +wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^с/i, +/^л/i, +/^с/i, +/^к/i, +/^т/i, +/^ч/i, +/^л/i, +/^ж/i, +/^в/i, +/^к/i, +/^л/i, +/^с/i], + +any:[ +/^ст/i, +/^лю/i, +/^са/i, +/^кр/i, +/^тр/i, +/^ч/i, +/^ліп/i, +/^ж/i, +/^в/i, +/^ка/i, +/^ліс/i, +/^сн/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[нпасч]/i, +short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, +abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, +wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^п/i, +/^а/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^н/i, +/^п[ан]/i, +/^а/i, +/^с[ер]/i, +/^ч/i, +/^п[ят]/i, +/^с[уб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, +abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, +wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^дп/i, +pm:/^пп/i, +midnight:/^поўн/i, +noon:/^поўд/i, +morning:/^р/i, +afternoon:/^д[зн]/i, +evening:/^в/i, +night:/^н/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/bg/_lib/formatDistance.js +var formatDistanceLocale$73={ +lessThanXSeconds:{ +one:"по-малко от секунда", +other:"по-малко от {{count}} секунди" +}, +xSeconds:{ +one:"1 секунда", +other:"{{count}} секунди" +}, +halfAMinute:"половин минута", +lessThanXMinutes:{ +one:"по-малко от минута", +other:"по-малко от {{count}} минути" +}, +xMinutes:{ +one:"1 минута", +other:"{{count}} минути" +}, +aboutXHours:{ +one:"около час", +other:"около {{count}} часа" +}, +xHours:{ +one:"1 час", +other:"{{count}} часа" +}, +xDays:{ +one:"1 ден", +other:"{{count}} дни" +}, +aboutXWeeks:{ +one:"около седмица", +other:"около {{count}} седмици" +}, +xWeeks:{ +one:"1 седмица", +other:"{{count}} седмици" +}, +aboutXMonths:{ +one:"около месец", +other:"около {{count}} месеца" +}, +xMonths:{ +one:"1 месец", +other:"{{count}} месеца" +}, +aboutXYears:{ +one:"около година", +other:"около {{count}} години" +}, +xYears:{ +one:"1 година", +other:"{{count}} години" +}, +overXYears:{ +one:"над година", +other:"над {{count}} години" +}, +almostXYears:{ +one:"почти година", +other:"почти {{count}} години" +} +}; +var formatDistance$74=function formatDistance$74(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$73[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"след "+result;else +return"преди "+result; +return result; +}; +var formatLong$82={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, dd MMMM yyyy", +long:"dd MMMM yyyy", +medium:"dd MMM yyyy", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}} {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/bg/_lib/formatRelative.js +var weekdays$3=[ +"неделя", +"понеделник", +"вторник", +"сряда", +"четвъртък", +"петък", +"събота"]; + +function lastWeek$6(day){ +var weekday=weekdays$3[day]; +switch(day){ +case 0: +case 3: +case 6:return"'миналата "+weekday+" в' p"; +case 1: +case 2: +case 4: +case 5:return"'миналия "+weekday+" в' p"; +} +} +function thisWeek$6(day){ +var weekday=weekdays$3[day]; +if(day===2)return"'във "+weekday+" в' p";else +return"'в "+weekday+" в' p"; +} +function nextWeek$6(day){ +var weekday=weekdays$3[day]; +switch(day){ +case 0: +case 3: +case 6:return"'следващата "+weekday+" в' p"; +case 1: +case 2: +case 4: +case 5:return"'следващия "+weekday+" в' p"; +} +} +var lastWeekFormatToken=function lastWeekFormatToken(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$6(day);else +return lastWeek$6(day); +}; +var nextWeekFormatToken=function nextWeekFormatToken(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$6(day);else +return nextWeek$6(day); +}; +var formatRelativeLocale$74={ +lastWeek:lastWeekFormatToken, +yesterday:"'вчера в' p", +today:"'днес в' p", +tomorrow:"'утре в' p", +nextWeek:nextWeekFormatToken, +other:"P" +}; +var formatRelative$74=function formatRelative$74(token,date,baseDate,options){ +var format=formatRelativeLocale$74[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/bg/_lib/localize.js +var eraValues$74={ +narrow:["пр.н.е.","н.е."], +abbreviated:["преди н. е.","н. е."], +wide:["преди новата ера","новата ера"] +}; +var quarterValues$74={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-во тримес.", +"2-ро тримес.", +"3-то тримес.", +"4-то тримес."], + +wide:[ +"1-во тримесечие", +"2-ро тримесечие", +"3-то тримесечие", +"4-то тримесечие"] + +}; +var monthValues$74={ +abbreviated:[ +"яну", +"фев", +"мар", +"апр", +"май", +"юни", +"юли", +"авг", +"сеп", +"окт", +"ное", +"дек"], + +wide:[ +"януари", +"февруари", +"март", +"април", +"май", +"юни", +"юли", +"август", +"септември", +"октомври", +"ноември", +"декември"] + +}; +var dayValues$74={ +narrow:[ +"Н", +"П", +"В", +"С", +"Ч", +"П", +"С"], + +short:[ +"нд", +"пн", +"вт", +"ср", +"чт", +"пт", +"сб"], + +abbreviated:[ +"нед", +"пон", +"вто", +"сря", +"чет", +"пет", +"съб"], + +wide:[ +"неделя", +"понеделник", +"вторник", +"сряда", +"четвъртък", +"петък", +"събота"] + +}; +var dayPeriodValues$74={wide:{ +am:"преди обяд", +pm:"след обяд", +midnight:"в полунощ", +noon:"на обяд", +morning:"сутринта", +afternoon:"следобед", +evening:"вечерта", +night:"през нощта" +}}; +function isFeminine(unit){ +return unit==="year"||unit==="week"||unit==="minute"||unit==="second"; +} +function isNeuter(unit){ +return unit==="quarter"; +} +function numberWithSuffix(number,unit,masculine,feminine,neuter){ +var suffix=isNeuter(unit)?neuter:isFeminine(unit)?feminine:masculine; +return number+"-"+suffix; +} +var ordinalNumber$74=function ordinalNumber$74(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +if(number===0)return numberWithSuffix(0,unit,"ев","ева","ево");else +if(number%1e3===0)return numberWithSuffix(number,unit,"ен","на","но");else +if(number%100===0)return numberWithSuffix(number,unit,"тен","тна","тно"); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1:return numberWithSuffix(number,unit,"ви","ва","во"); +case 2:return numberWithSuffix(number,unit,"ри","ра","ро"); +case 7: +case 8:return numberWithSuffix(number,unit,"ми","ма","мо"); +} +return numberWithSuffix(number,unit,"ти","та","то"); +}; +//#endregion +//#region dist/date-fns/locale/bg.js +/** +* @category Locales +* @summary Bulgarian locale. +* @language Bulgarian +* @iso-639-2 bul +* @author Nikolay Stoynov [@arvigeus](https://github.com/arvigeus) +* @author Tsvetan Ovedenski [@fintara](https://github.com/fintara) +*/ +var _bg={ +code:"bg", +formatDistance:formatDistance$74, +formatLong:formatLong$82, +formatRelative:formatRelative$74, +localize:{ +ordinalNumber:ordinalNumber$74, +era:buildLocalizeFn({ +values:eraValues$74, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$74, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$74, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$74, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$74, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((пр)?н\.?\s?е\.?)/i, +abbreviated:/^((пр)?н\.?\s?е\.?)/i, +wide:/^(преди новата ера|новата ера|нова ера)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^п/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i, +wide:/^[1234](-?[врт]?о?)? тримесечие/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, +wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^я/i, +/^ф/i, +/^мар/i, +/^ап/i, +/^май/i, +/^юн/i, +/^юл/i, +/^ав/i, +/^се/i, +/^окт/i, +/^но/i, +/^де/i] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[нпвсч]/i, +short:/^(нд|пн|вт|ср|чт|пт|сб)/i, +abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i, +wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^п/i, +/^в/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^н[ед]/i, +/^п[он]/i, +/^вт/i, +/^ср/i, +/^ч[ет]/i, +/^п[ет]/i, +/^с[ъб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^преди о/i, +pm:/^след о/i, +midnight:/^в пол/i, +noon:/^на об/i, +morning:/^сут/i, +afternoon:/^следо/i, +evening:/^веч/i, +night:/^през н/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/bn/_lib/localize.js +var numberValues$1={ +locale:{ +1:"১", +2:"২", +3:"৩", +4:"৪", +5:"৫", +6:"৬", +7:"৭", +8:"৮", +9:"৯", +0:"০" +}, +number:{ +"১":"1", +"২":"2", +"৩":"3", +"৪":"4", +"৫":"5", +"৬":"6", +"৭":"7", +"৮":"8", +"৯":"9", +"০":"0" +} +}; +var eraValues$73={ +narrow:["খ্রিঃপূঃ","খ্রিঃ"], +abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"], +wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"] +}; +var quarterValues$73={ +narrow:[ +"১", +"২", +"৩", +"৪"], + +abbreviated:[ +"১ত্রৈ", +"২ত্রৈ", +"৩ত্রৈ", +"৪ত্রৈ"], + +wide:[ +"১ম ত্রৈমাসিক", +"২য় ত্রৈমাসিক", +"৩য় ত্রৈমাসিক", +"৪র্থ ত্রৈমাসিক"] + +}; +var monthValues$73={ +narrow:[ +"জানু", +"ফেব্রু", +"মার্চ", +"এপ্রিল", +"মে", +"জুন", +"জুলাই", +"আগস্ট", +"সেপ্ট", +"অক্টো", +"নভে", +"ডিসে"], + +abbreviated:[ +"জানু", +"ফেব্রু", +"মার্চ", +"এপ্রিল", +"মে", +"জুন", +"জুলাই", +"আগস্ট", +"সেপ্ট", +"অক্টো", +"নভে", +"ডিসে"], + +wide:[ +"জানুয়ারি", +"ফেব্রুয়ারি", +"মার্চ", +"এপ্রিল", +"মে", +"জুন", +"জুলাই", +"আগস্ট", +"সেপ্টেম্বর", +"অক্টোবর", +"নভেম্বর", +"ডিসেম্বর"] + +}; +var dayValues$73={ +narrow:[ +"র", +"সো", +"ম", +"বু", +"বৃ", +"শু", +"শ"], + +short:[ +"রবি", +"সোম", +"মঙ্গল", +"বুধ", +"বৃহ", +"শুক্র", +"শনি"], + +abbreviated:[ +"রবি", +"সোম", +"মঙ্গল", +"বুধ", +"বৃহ", +"শুক্র", +"শনি"], + +wide:[ +"রবিবার", +"সোমবার", +"মঙ্গলবার", +"বুধবার", +"বৃহস্পতিবার ", +"শুক্রবার", +"শনিবার"] + +}; +var dayPeriodValues$73={ +narrow:{ +am:"পূ", +pm:"অপ", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +}, +abbreviated:{ +am:"পূর্বাহ্ন", +pm:"অপরাহ্ন", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +}, +wide:{ +am:"পূর্বাহ্ন", +pm:"অপরাহ্ন", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +} +}; +var formattingDayPeriodValues$58={ +narrow:{ +am:"পূ", +pm:"অপ", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +}, +abbreviated:{ +am:"পূর্বাহ্ন", +pm:"অপরাহ্ন", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +}, +wide:{ +am:"পূর্বাহ্ন", +pm:"অপরাহ্ন", +midnight:"মধ্যরাত", +noon:"মধ্যাহ্ন", +morning:"সকাল", +afternoon:"বিকাল", +evening:"সন্ধ্যা", +night:"রাত" +} +}; +function dateOrdinalNumber(number,localeNumber){ +if(number>18&&number<=31)return localeNumber+"শে";else +switch(number){ +case 1:return localeNumber+"লা"; +case 2: +case 3:return localeNumber+"রা"; +case 4:return localeNumber+"ঠা"; +default:return localeNumber+"ই"; +} +} +var ordinalNumber$73=function ordinalNumber$73(dirtyNumber,options){ +var number=Number(dirtyNumber); +var localeNumber=numberToLocale$1(number); +if((options===null||options===void 0?void 0:options.unit)==="date")return dateOrdinalNumber(number,localeNumber); +if(number>10||number===0)return localeNumber+"তম"; +switch(number%10){ +case 2: +case 3:return localeNumber+"য়"; +case 4:return localeNumber+"র্থ"; +case 6:return localeNumber+"ষ্ঠ"; +default:return localeNumber+"ম"; +} +}; +function numberToLocale$1(enNumber){ +return enNumber.toString().replace(/\d/g,function(match){ +return numberValues$1.locale[match]; +}); +} +var localize$73={ +ordinalNumber:ordinalNumber$73, +era:buildLocalizeFn({ +values:eraValues$73, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$73, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$73, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$73, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$73, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$58, +defaultFormattingWidth:"wide" +}) +}; +//#endregion +//#region dist/date-fns/locale/bn/_lib/formatDistance.js +var formatDistanceLocale$72={ +lessThanXSeconds:{ +one:"প্রায় ১ সেকেন্ড", +other:"প্রায় {{count}} সেকেন্ড" +}, +xSeconds:{ +one:"১ সেকেন্ড", +other:"{{count}} সেকেন্ড" +}, +halfAMinute:"আধ মিনিট", +lessThanXMinutes:{ +one:"প্রায় ১ মিনিট", +other:"প্রায় {{count}} মিনিট" +}, +xMinutes:{ +one:"১ মিনিট", +other:"{{count}} মিনিট" +}, +aboutXHours:{ +one:"প্রায় ১ ঘন্টা", +other:"প্রায় {{count}} ঘন্টা" +}, +xHours:{ +one:"১ ঘন্টা", +other:"{{count}} ঘন্টা" +}, +xDays:{ +one:"১ দিন", +other:"{{count}} দিন" +}, +aboutXWeeks:{ +one:"প্রায় ১ সপ্তাহ", +other:"প্রায় {{count}} সপ্তাহ" +}, +xWeeks:{ +one:"১ সপ্তাহ", +other:"{{count}} সপ্তাহ" +}, +aboutXMonths:{ +one:"প্রায় ১ মাস", +other:"প্রায় {{count}} মাস" +}, +xMonths:{ +one:"১ মাস", +other:"{{count}} মাস" +}, +aboutXYears:{ +one:"প্রায় ১ বছর", +other:"প্রায় {{count}} বছর" +}, +xYears:{ +one:"১ বছর", +other:"{{count}} বছর" +}, +overXYears:{ +one:"১ বছরের বেশি", +other:"{{count}} বছরের বেশি" +}, +almostXYears:{ +one:"প্রায় ১ বছর", +other:"প্রায় {{count}} বছর" +} +}; +var formatDistance$73=function formatDistance$73(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$72[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",numberToLocale$1(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" এর মধ্যে";else +return result+" আগে"; +return result; +}; +var formatLong$81={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}} 'সময়'", +long:"{{date}} {{time}} 'সময়'", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/bn/_lib/formatRelative.js +var formatRelativeLocale$73={ +lastWeek:"'গত' eeee 'সময়' p", +yesterday:"'গতকাল' 'সময়' p", +today:"'আজ' 'সময়' p", +tomorrow:"'আগামীকাল' 'সময়' p", +nextWeek:"eeee 'সময়' p", +other:"P" +}; +var formatRelative$73=function formatRelative$73(token,_date,_baseDate,_options){return formatRelativeLocale$73[token];}; +//#endregion +//#region dist/date-fns/locale/bn.js +/** +* @category Locales +* @summary Bengali locale. +* @language Bengali +* @iso-639-2 ben +* @author Touhidur Rahman [@touhidrahman](https://github.com/touhidrahman) +* @author Farhad Yasir [@nutboltu](https://github.com/nutboltu) +*/ +var _bn={ +code:"bn", +formatDistance:formatDistance$73, +formatLong:formatLong$81, +formatRelative:formatRelative$73, +localize:localize$73, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i, +abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i, +wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i], +abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i], +wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i] +}, +defaultParseWidth:"wide" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[১২৩৪]/i, +abbreviated:/^[১২৩৪]ত্রৈ/i, +wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/১/i, +/২/i, +/৩/i, +/৪/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, +abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, +wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^জানু/i, +/^ফেব্রু/i, +/^মার্চ/i, +/^এপ্রিল/i, +/^মে/i, +/^জুন/i, +/^জুলাই/i, +/^আগস্ট/i, +/^সেপ্ট/i, +/^অক্টো/i, +/^নভে/i, +/^ডিসে/i] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i, +short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, +abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, +wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^র/i, +/^সো/i, +/^ম/i, +/^বু/i, +/^বৃ/i, +/^শু/i, +/^শ/i], + +short:[ +/^রবি/i, +/^সোম/i, +/^মঙ্গল/i, +/^বুধ/i, +/^বৃহ/i, +/^শুক্র/i, +/^শনি/i], + +abbreviated:[ +/^রবি/i, +/^সোম/i, +/^মঙ্গল/i, +/^বুধ/i, +/^বৃহ/i, +/^শুক্র/i, +/^শনি/i], + +wide:[ +/^রবিবার/i, +/^সোমবার/i, +/^মঙ্গলবার/i, +/^বুধবার/i, +/^বৃহস্পতিবার /i, +/^শুক্রবার/i, +/^শনিবার/i] + +}, +defaultParseWidth:"wide" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, +abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, +wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^পূ/i, +pm:/^অপ/i, +midnight:/^মধ্যরাত/i, +noon:/^মধ্যাহ্ন/i, +morning:/সকাল/i, +afternoon:/বিকাল/i, +evening:/সন্ধ্যা/i, +night:/রাত/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/bs/_lib/formatDistance.js +var formatDistanceLocale$71={ +lessThanXSeconds:{ +one:{ +standalone:"manje od 1 sekunde", +withPrepositionAgo:"manje od 1 sekunde", +withPrepositionIn:"manje od 1 sekundu" +}, +dual:"manje od {{count}} sekunde", +other:"manje od {{count}} sekundi" +}, +xSeconds:{ +one:{ +standalone:"1 sekunda", +withPrepositionAgo:"1 sekunde", +withPrepositionIn:"1 sekundu" +}, +dual:"{{count}} sekunde", +other:"{{count}} sekundi" +}, +halfAMinute:"pola minute", +lessThanXMinutes:{ +one:{ +standalone:"manje od 1 minute", +withPrepositionAgo:"manje od 1 minute", +withPrepositionIn:"manje od 1 minutu" +}, +dual:"manje od {{count}} minute", +other:"manje od {{count}} minuta" +}, +xMinutes:{ +one:{ +standalone:"1 minuta", +withPrepositionAgo:"1 minute", +withPrepositionIn:"1 minutu" +}, +dual:"{{count}} minute", +other:"{{count}} minuta" +}, +aboutXHours:{ +one:{ +standalone:"oko 1 sat", +withPrepositionAgo:"oko 1 sat", +withPrepositionIn:"oko 1 sat" +}, +dual:"oko {{count}} sata", +other:"oko {{count}} sati" +}, +xHours:{ +one:{ +standalone:"1 sat", +withPrepositionAgo:"1 sat", +withPrepositionIn:"1 sat" +}, +dual:"{{count}} sata", +other:"{{count}} sati" +}, +xDays:{ +one:{ +standalone:"1 dan", +withPrepositionAgo:"1 dan", +withPrepositionIn:"1 dan" +}, +dual:"{{count}} dana", +other:"{{count}} dana" +}, +aboutXWeeks:{ +one:{ +standalone:"oko 1 sedmicu", +withPrepositionAgo:"oko 1 sedmicu", +withPrepositionIn:"oko 1 sedmicu" +}, +dual:"oko {{count}} sedmice", +other:"oko {{count}} sedmice" +}, +xWeeks:{ +one:{ +standalone:"1 sedmicu", +withPrepositionAgo:"1 sedmicu", +withPrepositionIn:"1 sedmicu" +}, +dual:"{{count}} sedmice", +other:"{{count}} sedmice" +}, +aboutXMonths:{ +one:{ +standalone:"oko 1 mjesec", +withPrepositionAgo:"oko 1 mjesec", +withPrepositionIn:"oko 1 mjesec" +}, +dual:"oko {{count}} mjeseca", +other:"oko {{count}} mjeseci" +}, +xMonths:{ +one:{ +standalone:"1 mjesec", +withPrepositionAgo:"1 mjesec", +withPrepositionIn:"1 mjesec" +}, +dual:"{{count}} mjeseca", +other:"{{count}} mjeseci" +}, +aboutXYears:{ +one:{ +standalone:"oko 1 godinu", +withPrepositionAgo:"oko 1 godinu", +withPrepositionIn:"oko 1 godinu" +}, +dual:"oko {{count}} godine", +other:"oko {{count}} godina" +}, +xYears:{ +one:{ +standalone:"1 godina", +withPrepositionAgo:"1 godine", +withPrepositionIn:"1 godinu" +}, +dual:"{{count}} godine", +other:"{{count}} godina" +}, +overXYears:{ +one:{ +standalone:"preko 1 godinu", +withPrepositionAgo:"preko 1 godinu", +withPrepositionIn:"preko 1 godinu" +}, +dual:"preko {{count}} godine", +other:"preko {{count}} godina" +}, +almostXYears:{ +one:{ +standalone:"gotovo 1 godinu", +withPrepositionAgo:"gotovo 1 godinu", +withPrepositionIn:"gotovo 1 godinu" +}, +dual:"gotovo {{count}} godine", +other:"gotovo {{count}} godina" +} +}; +var formatDistance$72=function formatDistance$72(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$71[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0)result=tokenValue.one.withPrepositionIn;else +result=tokenValue.one.withPrepositionAgo;}else +result=tokenValue.one.standalone;}else +if(count%10>1&&count%10<5&&String(count).substr(-2,1)!=="1")result=tokenValue.dual.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"za "+result;else +return"prije "+result; +return result; +}; +var formatLong$80={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM yyyy.", +long:"d. MMMM yyyy.", +medium:"d. MMM yy.", +short:"dd. MM. yy." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss (zzzz)", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'u' {{time}}", +long:"{{date}} 'u' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/bs/_lib/formatRelative.js +var formatRelativeLocale$72={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 0:return"'prošle nedjelje u' p"; +case 3:return"'prošle srijede u' p"; +case 6:return"'prošle subote u' p"; +default:return"'prošli' EEEE 'u' p"; +} +}, +yesterday:"'juče u' p", +today:"'danas u' p", +tomorrow:"'sutra u' p", +nextWeek:function nextWeek(date){ +switch(date.getDay()){ +case 0:return"'sljedeće nedjelje u' p"; +case 3:return"'sljedeću srijedu u' p"; +case 6:return"'sljedeću subotu u' p"; +default:return"'sljedeći' EEEE 'u' p"; +} +}, +other:"P" +}; +var formatRelative$72=function formatRelative$72(token,date,_baseDate,_options){ +var format=formatRelativeLocale$72[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/bs/_lib/localize.js +var eraValues$72={ +narrow:["pr.n.e.","AD"], +abbreviated:["pr. Hr.","po. Hr."], +wide:["Prije Hrista","Poslije Hrista"] +}; +var quarterValues$72={ +narrow:[ +"1.", +"2.", +"3.", +"4."], + +abbreviated:[ +"1. kv.", +"2. kv.", +"3. kv.", +"4. kv."], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$72={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"maj", +"jun", +"jul", +"avg", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januar", +"februar", +"mart", +"april", +"maj", +"juni", +"juli", +"avgust", +"septembar", +"oktobar", +"novembar", +"decembar"] + +}; +var formattingMonthValues$16={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"maj", +"jun", +"jul", +"avg", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januar", +"februar", +"mart", +"april", +"maj", +"juni", +"juli", +"avgust", +"septembar", +"oktobar", +"novembar", +"decembar"] + +}; +var dayValues$72={ +narrow:[ +"N", +"P", +"U", +"S", +"Č", +"P", +"S"], + +short:[ +"ned", +"pon", +"uto", +"sre", +"čet", +"pet", +"sub"], + +abbreviated:[ +"ned", +"pon", +"uto", +"sre", +"čet", +"pet", +"sub"], + +wide:[ +"nedjelja", +"ponedjeljak", +"utorak", +"srijeda", +"četvrtak", +"petak", +"subota"] + +}; +var dayPeriodValues$72={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"poslije podne", +evening:"uveče", +night:"noću" +} +}; +var formattingDayPeriodValues$57={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"poslije podne", +evening:"uveče", +night:"noću" +} +}; +var ordinalNumber$72=function ordinalNumber$72(dirtyNumber,_options){ +var number=Number(dirtyNumber); +return String(number)+"."; +}; +//#endregion +//#region dist/date-fns/locale/bs.js +/** +* @category Locales +* @summary Bosnian locale. +* @language Bosnian +* @iso-639-2 bos +* @author Branislav Lazić [@branislavlazic](https://github.com/branislavlazic) +*/ +var _bs={ +code:"bs", +formatDistance:formatDistance$72, +formatLong:formatLong$80, +formatRelative:formatRelative$72, +localize:{ +ordinalNumber:ordinalNumber$72, +era:buildLocalizeFn({ +values:eraValues$72, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$72, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$72, +defaultWidth:"wide", +formattingValues:formattingMonthValues$16, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$72, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$72, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$57, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(pr\.n\.e\.|AD)/i, +abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, +wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^pr/i,/^(po|nova)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\.\s?kv\.?/i, +wide:/^[1234]\. kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(10|11|12|[123456789])\./i, +abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, +wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^1/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^7/i, +/^8/i, +/^9/i, +/^10/i, +/^11/i, +/^12/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^avg/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npusčc]/i, +short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, +abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, +wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^su/i, +/^m/i, +/^tu/i, +/^w/i, +/^th/i, +/^f/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^pono/i, +noon:/^pod/i, +morning:/jutro/i, +afternoon:/(poslije\s|po)+podne/i, +evening:/(uvece|uveče)/i, +night:/(nocu|noću)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/ca/_lib/formatDistance.js +/** +* Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. +* l'1 de juliol ('l'u') +* l'11 de novembre ('l'onze') +* l'11a clàusula del contracte ('l'onzena') +* la contractació d'11 jugadors ('d'onze') +* l'aval d'11.000 socis ('d'onze mil') +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes +*/ +var formatDistanceLocale$70={ +lessThanXSeconds:{ +one:"menys d'un segon", +eleven:"menys d'onze segons", +other:"menys de {{count}} segons" +}, +xSeconds:{ +one:"1 segon", +other:"{{count}} segons" +}, +halfAMinute:"mig minut", +lessThanXMinutes:{ +one:"menys d'un minut", +eleven:"menys d'onze minuts", +other:"menys de {{count}} minuts" +}, +xMinutes:{ +one:"1 minut", +other:"{{count}} minuts" +}, +aboutXHours:{ +one:"aproximadament una hora", +other:"aproximadament {{count}} hores" +}, +xHours:{ +one:"1 hora", +other:"{{count}} hores" +}, +xDays:{ +one:"1 dia", +other:"{{count}} dies" +}, +aboutXWeeks:{ +one:"aproximadament una setmana", +other:"aproximadament {{count}} setmanes" +}, +xWeeks:{ +one:"1 setmana", +other:"{{count}} setmanes" +}, +aboutXMonths:{ +one:"aproximadament un mes", +other:"aproximadament {{count}} mesos" +}, +xMonths:{ +one:"1 mes", +other:"{{count}} mesos" +}, +aboutXYears:{ +one:"aproximadament un any", +other:"aproximadament {{count}} anys" +}, +xYears:{ +one:"1 any", +other:"{{count}} anys" +}, +overXYears:{ +one:"més d'un any", +eleven:"més d'onze anys", +other:"més de {{count}} anys" +}, +almostXYears:{ +one:"gairebé un any", +other:"gairebé {{count}} anys" +} +}; +var formatDistance$71=function formatDistance$71(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$70[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===11&&tokenValue.eleven)result=tokenValue.eleven;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"en "+result;else +return"fa "+result; +return result; +}; +var formatLong$79={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d 'de' MMMM y", +long:"d 'de' MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'a les' {{time}}", +long:"{{date}} 'a les' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ca/_lib/formatRelative.js +var formatRelativeLocale$71={ +lastWeek:"'el' eeee 'passat a la' LT", +yesterday:"'ahir a la' p", +today:"'avui a la' p", +tomorrow:"'demà a la' p", +nextWeek:"eeee 'a la' p", +other:"P" +}; +var formatRelativeLocalePlural$3={ +lastWeek:"'el' eeee 'passat a les' p", +yesterday:"'ahir a les' p", +today:"'avui a les' p", +tomorrow:"'demà a les' p", +nextWeek:"eeee 'a les' p", +other:"P" +}; +var formatRelative$71=function formatRelative$71(token,date,_baseDate,_options){ +if(date.getHours()!==1)return formatRelativeLocalePlural$3[token]; +return formatRelativeLocale$71[token]; +}; +//#endregion +//#region dist/date-fns/locale/ca/_lib/localize.js +/** +* General information +* Reference: https://aplicacions.llengua.gencat.cat +* Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html +*/ +/** +* Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes +* Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes +*/ +var eraValues$71={ +narrow:["aC","dC"], +abbreviated:["a. de C.","d. de C."], +wide:["abans de Crist","després de Crist"] +}; +var quarterValues$71={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1r trimestre", +"2n trimestre", +"3r trimestre", +"4t trimestre"] + +}; +/** +* Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. +* Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes +*/ +var monthValues$71={ +narrow:[ +"GN", +"FB", +"MÇ", +"AB", +"MG", +"JN", +"JL", +"AG", +"ST", +"OC", +"NV", +"DS"], + +/** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ +abbreviated:[ +"gen.", +"febr.", +"març", +"abr.", +"maig", +"juny", +"jul.", +"ag.", +"set.", +"oct.", +"nov.", +"des."], + +wide:[ +"gener", +"febrer", +"març", +"abril", +"maig", +"juny", +"juliol", +"agost", +"setembre", +"octubre", +"novembre", +"desembre"] + +}; +/** +* Les abreviatures dels dies de la setmana comencen totes amb la lletra d. +* Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. +* Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. +* +* Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. +* Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. +* En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot +*/ +var dayValues$71={ +narrow:[ +"dg.", +"dl.", +"dt.", +"dm.", +"dj.", +"dv.", +"ds."], + +short:[ +"dg.", +"dl.", +"dt.", +"dm.", +"dj.", +"dv.", +"ds."], + +abbreviated:[ +"dg.", +"dl.", +"dt.", +"dm.", +"dj.", +"dv.", +"ds."], + +wide:[ +"diumenge", +"dilluns", +"dimarts", +"dimecres", +"dijous", +"divendres", +"dissabte"] + +}; +/** +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes +*/ +var dayPeriodValues$71={ +narrow:{ +am:"am", +pm:"pm", +midnight:"mitjanit", +noon:"migdia", +morning:"matí", +afternoon:"tarda", +evening:"vespre", +night:"nit" +}, +abbreviated:{ +am:"a.m.", +pm:"p.m.", +midnight:"mitjanit", +noon:"migdia", +morning:"matí", +afternoon:"tarda", +evening:"vespre", +night:"nit" +}, +wide:{ +am:"ante meridiem", +pm:"post meridiem", +midnight:"mitjanit", +noon:"migdia", +morning:"matí", +afternoon:"tarda", +evening:"vespre", +night:"nit" +} +}; +var formattingDayPeriodValues$56={ +narrow:{ +am:"am", +pm:"pm", +midnight:"de la mitjanit", +noon:"del migdia", +morning:"del matí", +afternoon:"de la tarda", +evening:"del vespre", +night:"de la nit" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"de la mitjanit", +noon:"del migdia", +morning:"del matí", +afternoon:"de la tarda", +evening:"del vespre", +night:"de la nit" +}, +wide:{ +am:"ante meridiem", +pm:"post meridiem", +midnight:"de la mitjanit", +noon:"del migdia", +morning:"del matí", +afternoon:"de la tarda", +evening:"del vespre", +night:"de la nit" +} +}; +/** +* Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. +* És optatiu posar punt després de la lletra. +* +* Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 +*/ +var ordinalNumber$71=function ordinalNumber$71(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1:return number+"r"; +case 2:return number+"n"; +case 3:return number+"r"; +case 4:return number+"t"; +} +return number+"è"; +}; +//#endregion +//#region dist/date-fns/locale/ca.js +/** +* @category Locales +* @summary Catalan locale. +* @language Catalan +* @iso-639-2 cat +* @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) +* @author Alex Vizcaino [@avizcaino](https://github.com/avizcaino) +*/ +var _ca={ +code:"ca", +formatDistance:formatDistance$71, +formatLong:formatLong$79, +formatRelative:formatRelative$71, +localize:{ +ordinalNumber:ordinalNumber$71, +era:buildLocalizeFn({ +values:eraValues$71, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$71, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$71, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$71, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$71, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$56, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(è|r|n|r|t)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(aC|dC)/i, +abbreviated:/^(a. de C.|d. de C.)/i, +wide:/^(abans de Crist|despr[eé]s de Crist)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/^aC/i,/^dC/i], +abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i], +wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i] +}, +defaultParseWidth:"wide" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^[1234](è|r|n|r|t)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, +abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, +wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^GN/i, +/^FB/i, +/^MÇ/i, +/^AB/i, +/^MG/i, +/^JN/i, +/^JL/i, +/^AG/i, +/^ST/i, +/^OC/i, +/^NV/i, +/^DS/i], + +abbreviated:[ +/^gen./i, +/^febr./i, +/^març/i, +/^abr./i, +/^maig/i, +/^juny/i, +/^jul./i, +/^ag./i, +/^set./i, +/^oct./i, +/^nov./i, +/^des./i], + +wide:[ +/^gener/i, +/^febrer/i, +/^març/i, +/^abril/i, +/^maig/i, +/^juny/i, +/^juliol/i, +/^agost/i, +/^setembre/i, +/^octubre/i, +/^novembre/i, +/^desembre/i] + +}, +defaultParseWidth:"wide" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, +short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, +abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, +wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^dg./i, +/^dl./i, +/^dt./i, +/^dm./i, +/^dj./i, +/^dv./i, +/^ds./i], + +abbreviated:[ +/^dg./i, +/^dl./i, +/^dt./i, +/^dm./i, +/^dj./i, +/^dv./i, +/^ds./i], + +wide:[ +/^diumenge/i, +/^dilluns/i, +/^dimarts/i, +/^dimecres/i, +/^dijous/i, +/^divendres/i, +/^disssabte/i] + +}, +defaultParseWidth:"wide" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, +abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, +wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mitjanit/i, +noon:/^migdia/i, +morning:/matí/i, +afternoon:/tarda/i, +evening:/vespre/i, +night:/nit/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/ckb/_lib/formatDistance.js +var formatDistanceLocale$69={ +lessThanXSeconds:{ +one:"کەمتر لە یەک چرکە", +other:"کەمتر لە {{count}} چرکە" +}, +xSeconds:{ +one:"1 چرکە", +other:"{{count}} چرکە" +}, +halfAMinute:"نیو کاتژمێر", +lessThanXMinutes:{ +one:"کەمتر لە یەک خولەک", +other:"کەمتر لە {{count}} خولەک" +}, +xMinutes:{ +one:"1 خولەک", +other:"{{count}} خولەک" +}, +aboutXHours:{ +one:"دەوروبەری 1 کاتژمێر", +other:"دەوروبەری {{count}} کاتژمێر" +}, +xHours:{ +one:"1 کاتژمێر", +other:"{{count}} کاتژمێر" +}, +xDays:{ +one:"1 ڕۆژ", +other:"{{count}} ژۆژ" +}, +aboutXWeeks:{ +one:"دەوروبەری 1 هەفتە", +other:"دوروبەری {{count}} هەفتە" +}, +xWeeks:{ +one:"1 هەفتە", +other:"{{count}} هەفتە" +}, +aboutXMonths:{ +one:"داوروبەری 1 مانگ", +other:"دەوروبەری {{count}} مانگ" +}, +xMonths:{ +one:"1 مانگ", +other:"{{count}} مانگ" +}, +aboutXYears:{ +one:"دەوروبەری 1 ساڵ", +other:"دەوروبەری {{count}} ساڵ" +}, +xYears:{ +one:"1 ساڵ", +other:"{{count}} ساڵ" +}, +overXYears:{ +one:"زیاتر لە ساڵێک", +other:"زیاتر لە {{count}} ساڵ" +}, +almostXYears:{ +one:"بەنزیکەیی ساڵێک ", +other:"بەنزیکەیی {{count}} ساڵ" +} +}; +var formatDistance$70=function formatDistance$70(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$69[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"لە ماوەی "+result+"دا";else +return result+"پێش ئێستا"; +return result; +}; +var formatLong$78={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'کاتژمێر' {{time}}", +long:"{{date}} 'کاتژمێر' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ckb/_lib/formatRelative.js +var formatRelativeLocale$70={ +lastWeek:"'هەفتەی ڕابردوو' eeee 'کاتژمێر' p", +yesterday:"'دوێنێ کاتژمێر' p", +today:"'ئەمڕۆ کاتژمێر' p", +tomorrow:"'بەیانی کاتژمێر' p", +nextWeek:"eeee 'کاتژمێر' p", +other:"P" +}; +var formatRelative$70=function formatRelative$70(token,_date,_baseDate,_options){return formatRelativeLocale$70[token];}; +//#endregion +//#region dist/date-fns/locale/ckb/_lib/localize.js +var eraValues$70={ +narrow:["پ","د"], +abbreviated:["پ-ز","د-ز"], +wide:["پێش زاین","دوای زاین"] +}; +var quarterValues$70={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"چ1م", +"چ2م", +"چ3م", +"چ4م"], + +wide:[ +"چارەگی یەکەم", +"چارەگی دووەم", +"چارەگی سێیەم", +"چارەگی چوارەم"] + +}; +var monthValues$70={ +narrow:[ +"ک-د", +"ش", +"ئا", +"ن", +"م", +"ح", +"ت", +"ئا", +"ئە", +"تش-ی", +"تش-د", +"ک-ی"], + +abbreviated:[ +"کان-دوو", +"شوب", +"ئاد", +"نیس", +"مایس", +"حوز", +"تەم", +"ئاب", +"ئەل", +"تش-یەک", +"تش-دوو", +"کان-یەک"], + +wide:[ +"کانوونی دووەم", +"شوبات", +"ئادار", +"نیسان", +"مایس", +"حوزەیران", +"تەمموز", +"ئاب", +"ئەیلول", +"تشرینی یەکەم", +"تشرینی دووەم", +"کانوونی یەکەم"] + +}; +var dayValues$70={ +narrow:[ +"ی-ش", +"د-ش", +"س-ش", +"چ-ش", +"پ-ش", +"هە", +"ش"], + +short:[ +"یە-شە", +"دوو-شە", +"سێ-شە", +"چو-شە", +"پێ-شە", +"هەی", +"شە"], + +abbreviated:[ +"یەک-شەم", +"دوو-شەم", +"سێ-شەم", +"چوار-شەم", +"پێنج-شەم", +"هەینی", +"شەمە"], + +wide:[ +"یەک شەمە", +"دوو شەمە", +"سێ شەمە", +"چوار شەمە", +"پێنج شەمە", +"هەینی", +"شەمە"] + +}; +var dayPeriodValues$70={ +narrow:{ +am:"پ", +pm:"د", +midnight:"ن-ش", +noon:"ن", +morning:"بەیانی", +afternoon:"دوای نیوەڕۆ", +evening:"ئێوارە", +night:"شەو" +}, +abbreviated:{ +am:"پ-ن", +pm:"د-ن", +midnight:"نیوە شەو", +noon:"نیوەڕۆ", +morning:"بەیانی", +afternoon:"دوای نیوەڕۆ", +evening:"ئێوارە", +night:"شەو" +}, +wide:{ +am:"پێش نیوەڕۆ", +pm:"دوای نیوەڕۆ", +midnight:"نیوە شەو", +noon:"نیوەڕۆ", +morning:"بەیانی", +afternoon:"دوای نیوەڕۆ", +evening:"ئێوارە", +night:"شەو" +} +}; +var formattingDayPeriodValues$55={ +narrow:{ +am:"پ", +pm:"د", +midnight:"ن-ش", +noon:"ن", +morning:"لە بەیانیدا", +afternoon:"لە دوای نیوەڕۆدا", +evening:"لە ئێوارەدا", +night:"لە شەودا" +}, +abbreviated:{ +am:"پ-ن", +pm:"د-ن", +midnight:"نیوە شەو", +noon:"نیوەڕۆ", +morning:"لە بەیانیدا", +afternoon:"لە دوای نیوەڕۆدا", +evening:"لە ئێوارەدا", +night:"لە شەودا" +}, +wide:{ +am:"پێش نیوەڕۆ", +pm:"دوای نیوەڕۆ", +midnight:"نیوە شەو", +noon:"نیوەڕۆ", +morning:"لە بەیانیدا", +afternoon:"لە دوای نیوەڕۆدا", +evening:"لە ئێوارەدا", +night:"لە شەودا" +} +}; +var ordinalNumber$70=function ordinalNumber$70(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ckb.js +/** +* @type {Locale} +* @category Locales +* @summary Central Kurdish locale. +* @language Central Kurdish +* @iso-639-2 kur +* @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} +*/ +var _ckb={ +code:"ckb", +formatDistance:formatDistance$70, +formatLong:formatLong$78, +formatRelative:formatRelative$70, +localize:{ +ordinalNumber:ordinalNumber$70, +era:buildLocalizeFn({ +values:eraValues$70, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$70, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$70, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$70, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$70, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$55, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(پ|د)/i, +abbreviated:/^(پ-ز|د.ز)/i, +wide:/^(پێش زاین| دوای زاین)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^د/g,/^پ/g]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^م[1234]چ/i, +wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[ +/چارەگی یەکەم/, +/چارەگی دووەم/, +/چارەگی سيیەم/, +/چارەگی چوارەم/], + +any:[ +/1/i, +/2/i, +/3/i, +/4/i] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i, +abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i, +wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ک-د/i, +/^ش/i, +/^ئا/i, +/^ن/i, +/^م/i, +/^ح/i, +/^ت/i, +/^ئا/i, +/^ئە/i, +/^تش-ی/i, +/^تش-د/i, +/^ک-ی/i], + +any:[ +/^کان-دوو/i, +/^شوب/i, +/^ئاد/i, +/^نیس/i, +/^مایس/i, +/^حوز/i, +/^تەم/i, +/^ئاب/i, +/^ئەل/i, +/^تش-یەک/i, +/^تش-دوو/i, +/^|کان-یەک/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ش|ی|د|س|چ|پ|هە)/i, +short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i, +abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i, +wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^su/i, +/^m/i, +/^tu/i, +/^w/i, +/^th/i, +/^f/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i, +abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/, +wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/, +any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/ +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^د/i, +pm:/^پ/i, +midnight:/^ن-ش/i, +noon:/^ن/i, +morning:/بەیانی/i, +afternoon:/دواینیوەڕۆ/i, +evening:/ئێوارە/i, +night:/شەو/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/cs/_lib/formatDistance.js +var formatDistanceLocale$68={ +lessThanXSeconds:{ +one:{ +regular:"méně než 1 sekunda", +past:"před méně než 1 sekundou", +future:"za méně než 1 sekundu" +}, +few:{ +regular:"méně než {{count}} sekundy", +past:"před méně než {{count}} sekundami", +future:"za méně než {{count}} sekundy" +}, +many:{ +regular:"méně než {{count}} sekund", +past:"před méně než {{count}} sekundami", +future:"za méně než {{count}} sekund" +} +}, +xSeconds:{ +one:{ +regular:"1 sekunda", +past:"před 1 sekundou", +future:"za 1 sekundu" +}, +few:{ +regular:"{{count}} sekundy", +past:"před {{count}} sekundami", +future:"za {{count}} sekundy" +}, +many:{ +regular:"{{count}} sekund", +past:"před {{count}} sekundami", +future:"za {{count}} sekund" +} +}, +halfAMinute:{ +type:"other", +other:{ +regular:"půl minuty", +past:"před půl minutou", +future:"za půl minuty" +} +}, +lessThanXMinutes:{ +one:{ +regular:"méně než 1 minuta", +past:"před méně než 1 minutou", +future:"za méně než 1 minutu" +}, +few:{ +regular:"méně než {{count}} minuty", +past:"před méně než {{count}} minutami", +future:"za méně než {{count}} minuty" +}, +many:{ +regular:"méně než {{count}} minut", +past:"před méně než {{count}} minutami", +future:"za méně než {{count}} minut" +} +}, +xMinutes:{ +one:{ +regular:"1 minuta", +past:"před 1 minutou", +future:"za 1 minutu" +}, +few:{ +regular:"{{count}} minuty", +past:"před {{count}} minutami", +future:"za {{count}} minuty" +}, +many:{ +regular:"{{count}} minut", +past:"před {{count}} minutami", +future:"za {{count}} minut" +} +}, +aboutXHours:{ +one:{ +regular:"přibližně 1 hodina", +past:"přibližně před 1 hodinou", +future:"přibližně za 1 hodinu" +}, +few:{ +regular:"přibližně {{count}} hodiny", +past:"přibližně před {{count}} hodinami", +future:"přibližně za {{count}} hodiny" +}, +many:{ +regular:"přibližně {{count}} hodin", +past:"přibližně před {{count}} hodinami", +future:"přibližně za {{count}} hodin" +} +}, +xHours:{ +one:{ +regular:"1 hodina", +past:"před 1 hodinou", +future:"za 1 hodinu" +}, +few:{ +regular:"{{count}} hodiny", +past:"před {{count}} hodinami", +future:"za {{count}} hodiny" +}, +many:{ +regular:"{{count}} hodin", +past:"před {{count}} hodinami", +future:"za {{count}} hodin" +} +}, +xDays:{ +one:{ +regular:"1 den", +past:"před 1 dnem", +future:"za 1 den" +}, +few:{ +regular:"{{count}} dny", +past:"před {{count}} dny", +future:"za {{count}} dny" +}, +many:{ +regular:"{{count}} dní", +past:"před {{count}} dny", +future:"za {{count}} dní" +} +}, +aboutXWeeks:{ +one:{ +regular:"přibližně 1 týden", +past:"přibližně před 1 týdnem", +future:"přibližně za 1 týden" +}, +few:{ +regular:"přibližně {{count}} týdny", +past:"přibližně před {{count}} týdny", +future:"přibližně za {{count}} týdny" +}, +many:{ +regular:"přibližně {{count}} týdnů", +past:"přibližně před {{count}} týdny", +future:"přibližně za {{count}} týdnů" +} +}, +xWeeks:{ +one:{ +regular:"1 týden", +past:"před 1 týdnem", +future:"za 1 týden" +}, +few:{ +regular:"{{count}} týdny", +past:"před {{count}} týdny", +future:"za {{count}} týdny" +}, +many:{ +regular:"{{count}} týdnů", +past:"před {{count}} týdny", +future:"za {{count}} týdnů" +} +}, +aboutXMonths:{ +one:{ +regular:"přibližně 1 měsíc", +past:"přibližně před 1 měsícem", +future:"přibližně za 1 měsíc" +}, +few:{ +regular:"přibližně {{count}} měsíce", +past:"přibližně před {{count}} měsíci", +future:"přibližně za {{count}} měsíce" +}, +many:{ +regular:"přibližně {{count}} měsíců", +past:"přibližně před {{count}} měsíci", +future:"přibližně za {{count}} měsíců" +} +}, +xMonths:{ +one:{ +regular:"1 měsíc", +past:"před 1 měsícem", +future:"za 1 měsíc" +}, +few:{ +regular:"{{count}} měsíce", +past:"před {{count}} měsíci", +future:"za {{count}} měsíce" +}, +many:{ +regular:"{{count}} měsíců", +past:"před {{count}} měsíci", +future:"za {{count}} měsíců" +} +}, +aboutXYears:{ +one:{ +regular:"přibližně 1 rok", +past:"přibližně před 1 rokem", +future:"přibližně za 1 rok" +}, +few:{ +regular:"přibližně {{count}} roky", +past:"přibližně před {{count}} roky", +future:"přibližně za {{count}} roky" +}, +many:{ +regular:"přibližně {{count}} roků", +past:"přibližně před {{count}} roky", +future:"přibližně za {{count}} roků" +} +}, +xYears:{ +one:{ +regular:"1 rok", +past:"před 1 rokem", +future:"za 1 rok" +}, +few:{ +regular:"{{count}} roky", +past:"před {{count}} roky", +future:"za {{count}} roky" +}, +many:{ +regular:"{{count}} roků", +past:"před {{count}} roky", +future:"za {{count}} roků" +} +}, +overXYears:{ +one:{ +regular:"více než 1 rok", +past:"před více než 1 rokem", +future:"za více než 1 rok" +}, +few:{ +regular:"více než {{count}} roky", +past:"před více než {{count}} roky", +future:"za více než {{count}} roky" +}, +many:{ +regular:"více než {{count}} roků", +past:"před více než {{count}} roky", +future:"za více než {{count}} roků" +} +}, +almostXYears:{ +one:{ +regular:"skoro 1 rok", +past:"skoro před 1 rokem", +future:"skoro za 1 rok" +}, +few:{ +regular:"skoro {{count}} roky", +past:"skoro před {{count}} roky", +future:"skoro za {{count}} roky" +}, +many:{ +regular:"skoro {{count}} roků", +past:"skoro před {{count}} roky", +future:"skoro za {{count}} roků" +} +} +}; +var formatDistance$69=function formatDistance$69(token,count,options){ +var pluralResult; +var tokenValue=formatDistanceLocale$68[token]; +if(tokenValue.type==="other")pluralResult=tokenValue.other;else +if(count===1)pluralResult=tokenValue.one;else +if(count>1&&count<5)pluralResult=tokenValue.few;else +pluralResult=tokenValue.many; +var suffixExist=(options===null||options===void 0?void 0:options.addSuffix)===true; +var comparison=options===null||options===void 0?void 0:options.comparison; +var timeResult; +if(suffixExist&&comparison===-1)timeResult=pluralResult.past;else +if(suffixExist&&comparison===1)timeResult=pluralResult.future;else +timeResult=pluralResult.regular; +return timeResult.replace("{{count}}",String(count)); +}; +var formatLong$77={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM yyyy", +long:"d. MMMM yyyy", +medium:"d. M. yyyy", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'v' {{time}}", +long:"{{date}} 'v' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/cs/_lib/formatRelative.js +var accusativeWeekdays$5=[ +"neděli", +"pondělí", +"úterý", +"středu", +"čtvrtek", +"pátek", +"sobotu"]; + +var formatRelativeLocale$69={ +lastWeek:"'poslední' eeee 've' p", +yesterday:"'včera v' p", +today:"'dnes v' p", +tomorrow:"'zítra v' p", +nextWeek:function nextWeek(date){ +return"'v "+accusativeWeekdays$5[date.getDay()]+" o' p"; +}, +other:"P" +}; +var formatRelative$69=function formatRelative$69(token,date){ +var format=formatRelativeLocale$69[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/cs/_lib/localize.js +var eraValues$69={ +narrow:["př. n. l.","n. l."], +abbreviated:["př. n. l.","n. l."], +wide:["před naším letopočtem","našeho letopočtu"] +}; +var quarterValues$69={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1. čtvrtletí", +"2. čtvrtletí", +"3. čtvrtletí", +"4. čtvrtletí"], + +wide:[ +"1. čtvrtletí", +"2. čtvrtletí", +"3. čtvrtletí", +"4. čtvrtletí"] + +}; +var monthValues$69={ +narrow:[ +"L", +"Ú", +"B", +"D", +"K", +"Č", +"Č", +"S", +"Z", +"Ř", +"L", +"P"], + +abbreviated:[ +"led", +"úno", +"bře", +"dub", +"kvě", +"čvn", +"čvc", +"srp", +"zář", +"říj", +"lis", +"pro"], + +wide:[ +"leden", +"únor", +"březen", +"duben", +"květen", +"červen", +"červenec", +"srpen", +"září", +"říjen", +"listopad", +"prosinec"] + +}; +var formattingMonthValues$15={ +narrow:[ +"L", +"Ú", +"B", +"D", +"K", +"Č", +"Č", +"S", +"Z", +"Ř", +"L", +"P"], + +abbreviated:[ +"led", +"úno", +"bře", +"dub", +"kvě", +"čvn", +"čvc", +"srp", +"zář", +"říj", +"lis", +"pro"], + +wide:[ +"ledna", +"února", +"března", +"dubna", +"května", +"června", +"července", +"srpna", +"září", +"října", +"listopadu", +"prosince"] + +}; +var dayValues$69={ +narrow:[ +"ne", +"po", +"út", +"st", +"čt", +"pá", +"so"], + +short:[ +"ne", +"po", +"út", +"st", +"čt", +"pá", +"so"], + +abbreviated:[ +"ned", +"pon", +"úte", +"stř", +"čtv", +"pát", +"sob"], + +wide:[ +"neděle", +"pondělí", +"úterý", +"středa", +"čtvrtek", +"pátek", +"sobota"] + +}; +var dayPeriodValues$69={ +narrow:{ +am:"dop.", +pm:"odp.", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +}, +abbreviated:{ +am:"dop.", +pm:"odp.", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +}, +wide:{ +am:"dopoledne", +pm:"odpoledne", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +} +}; +var formattingDayPeriodValues$54={ +narrow:{ +am:"dop.", +pm:"odp.", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +}, +abbreviated:{ +am:"dop.", +pm:"odp.", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +}, +wide:{ +am:"dopoledne", +pm:"odpoledne", +midnight:"půlnoc", +noon:"poledne", +morning:"ráno", +afternoon:"odpoledne", +evening:"večer", +night:"noc" +} +}; +var ordinalNumber$69=function ordinalNumber$69(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/cs.js +/** +* @category Locales +* @summary Czech locale. +* @language Czech +* @iso-639-2 ces +* @author David Rus [@davidrus](https://github.com/davidrus) +* @author Pavel Hrách [@SilenY](https://github.com/SilenY) +* @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) +*/ +var _cs={ +code:"cs", +formatDistance:formatDistance$69, +formatLong:formatLong$77, +formatRelative:formatRelative$69, +localize:{ +ordinalNumber:ordinalNumber$69, +era:buildLocalizeFn({ +values:eraValues$69, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$69, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$69, +defaultWidth:"wide", +formattingValues:formattingMonthValues$15, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$69, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$69, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$54, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, +abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, +wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i, +wide:/^[1234]\. [čc]tvrtlet[íi]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[lúubdkčcszřrlp]/i, +abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, +wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^l/i, +/^[úu]/i, +/^b/i, +/^d/i, +/^k/i, +/^[čc]/i, +/^[čc]/i, +/^s/i, +/^z/i, +/^[řr]/i, +/^l/i, +/^p/i], + +any:[ +/^led/i, +/^[úu]n/i, +/^b[řr]e/i, +/^dub/i, +/^kv[ěe]/i, +/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, +/^[čc]vc|[čc]erven(ec|ce)/i, +/^srp/i, +/^z[áa][řr]/i, +/^[řr][íi]j/i, +/^lis/i, +/^pro/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npuúsčps]/i, +short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, +abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, +wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^n/i, +/^p/i, +/^[úu]/i, +/^s/i, +/^[čc]/i, +/^p/i, +/^s/i], + +any:[ +/^ne/i, +/^po/i, +/^[úu]t/i, +/^st/i, +/^[čc]t/i, +/^p[áa]/i, +/^so/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^dop/i, +pm:/^odp/i, +midnight:/^p[ůu]lnoc/i, +noon:/^poledne/i, +morning:/r[áa]no/i, +afternoon:/odpoledne/i, +evening:/ve[čc]er/i, +night:/noc/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/cy/_lib/formatDistance.js +var formatDistanceLocale$67={ +lessThanXSeconds:{ +one:"llai na eiliad", +other:"llai na {{count}} eiliad" +}, +xSeconds:{ +one:"1 eiliad", +other:"{{count}} eiliad" +}, +halfAMinute:"hanner munud", +lessThanXMinutes:{ +one:"llai na munud", +two:"llai na 2 funud", +other:"llai na {{count}} munud" +}, +xMinutes:{ +one:"1 munud", +two:"2 funud", +other:"{{count}} munud" +}, +aboutXHours:{ +one:"tua 1 awr", +other:"tua {{count}} awr" +}, +xHours:{ +one:"1 awr", +other:"{{count}} awr" +}, +xDays:{ +one:"1 diwrnod", +two:"2 ddiwrnod", +other:"{{count}} diwrnod" +}, +aboutXWeeks:{ +one:"tua 1 wythnos", +two:"tua pythefnos", +other:"tua {{count}} wythnos" +}, +xWeeks:{ +one:"1 wythnos", +two:"pythefnos", +other:"{{count}} wythnos" +}, +aboutXMonths:{ +one:"tua 1 mis", +two:"tua 2 fis", +other:"tua {{count}} mis" +}, +xMonths:{ +one:"1 mis", +two:"2 fis", +other:"{{count}} mis" +}, +aboutXYears:{ +one:"tua 1 flwyddyn", +two:"tua 2 flynedd", +other:"tua {{count}} mlynedd" +}, +xYears:{ +one:"1 flwyddyn", +two:"2 flynedd", +other:"{{count}} mlynedd" +}, +overXYears:{ +one:"dros 1 flwyddyn", +two:"dros 2 flynedd", +other:"dros {{count}} mlynedd" +}, +almostXYears:{ +one:"bron 1 flwyddyn", +two:"bron 2 flynedd", +other:"bron {{count}} mlynedd" +} +}; +var formatDistance$68=function formatDistance$68(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$67[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2&&!!tokenValue.two)result=tokenValue.two;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"mewn "+result;else +return result+" yn ôl"; +return result; +}; +var formatLong$76={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'am' {{time}}", +long:"{{date}} 'am' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/cy/_lib/formatRelative.js +var formatRelativeLocale$68={ +lastWeek:"eeee 'diwethaf am' p", +yesterday:"'ddoe am' p", +today:"'heddiw am' p", +tomorrow:"'yfory am' p", +nextWeek:"eeee 'am' p", +other:"P" +}; +var formatRelative$68=function formatRelative$68(token,_date,_baseDate,_options){return formatRelativeLocale$68[token];}; +//#endregion +//#region dist/date-fns/locale/cy/_lib/localize.js +var eraValues$68={ +narrow:["C","O"], +abbreviated:["CC","OC"], +wide:["Cyn Crist","Ar ôl Crist"] +}; +var quarterValues$68={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Ch1", +"Ch2", +"Ch3", +"Ch4"], + +wide:[ +"Chwarter 1af", +"2ail chwarter", +"3ydd chwarter", +"4ydd chwarter"] + +}; +var monthValues$68={ +narrow:[ +"I", +"Ch", +"Ma", +"E", +"Mi", +"Me", +"G", +"A", +"Md", +"H", +"T", +"Rh"], + +abbreviated:[ +"Ion", +"Chwe", +"Maw", +"Ebr", +"Mai", +"Meh", +"Gor", +"Aws", +"Med", +"Hyd", +"Tach", +"Rhag"], + +wide:[ +"Ionawr", +"Chwefror", +"Mawrth", +"Ebrill", +"Mai", +"Mehefin", +"Gorffennaf", +"Awst", +"Medi", +"Hydref", +"Tachwedd", +"Rhagfyr"] + +}; +var dayValues$68={ +narrow:[ +"S", +"Ll", +"M", +"M", +"I", +"G", +"S"], + +short:[ +"Su", +"Ll", +"Ma", +"Me", +"Ia", +"Gw", +"Sa"], + +abbreviated:[ +"Sul", +"Llun", +"Maw", +"Mer", +"Iau", +"Gwe", +"Sad"], + +wide:[ +"dydd Sul", +"dydd Llun", +"dydd Mawrth", +"dydd Mercher", +"dydd Iau", +"dydd Gwener", +"dydd Sadwrn"] + +}; +var dayPeriodValues$68={ +narrow:{ +am:"b", +pm:"h", +midnight:"hn", +noon:"hd", +morning:"bore", +afternoon:"prynhawn", +evening:"gyda'r nos", +night:"nos" +}, +abbreviated:{ +am:"yb", +pm:"yh", +midnight:"hanner nos", +noon:"hanner dydd", +morning:"bore", +afternoon:"prynhawn", +evening:"gyda'r nos", +night:"nos" +}, +wide:{ +am:"y.b.", +pm:"y.h.", +midnight:"hanner nos", +noon:"hanner dydd", +morning:"bore", +afternoon:"prynhawn", +evening:"gyda'r nos", +night:"nos" +} +}; +var formattingDayPeriodValues$53={ +narrow:{ +am:"b", +pm:"h", +midnight:"hn", +noon:"hd", +morning:"yn y bore", +afternoon:"yn y prynhawn", +evening:"gyda'r nos", +night:"yn y nos" +}, +abbreviated:{ +am:"yb", +pm:"yh", +midnight:"hanner nos", +noon:"hanner dydd", +morning:"yn y bore", +afternoon:"yn y prynhawn", +evening:"gyda'r nos", +night:"yn y nos" +}, +wide:{ +am:"y.b.", +pm:"y.h.", +midnight:"hanner nos", +noon:"hanner dydd", +morning:"yn y bore", +afternoon:"yn y prynhawn", +evening:"gyda'r nos", +night:"yn y nos" +} +}; +var ordinalNumber$68=function ordinalNumber$68(dirtyNumber,_options){ +var number=Number(dirtyNumber); +if(number<20)switch(number){ +case 0:return number+"fed"; +case 1:return number+"af"; +case 2:return number+"ail"; +case 3: +case 4:return number+"ydd"; +case 5: +case 6:return number+"ed"; +case 7: +case 8: +case 9: +case 10: +case 12: +case 15: +case 18:return number+"fed"; +case 11: +case 13: +case 14: +case 16: +case 17: +case 19:return number+"eg"; +}else +if(number>=50&&number<=60||number===80||number>=100)return number+"fed"; +return number+"ain"; +}; +//#endregion +//#region dist/date-fns/locale/cy.js +/** +* @category Locales +* @summary Welsh locale. +* @language Welsh +* @iso-639-2 cym +* @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) +*/ +var _cy={ +code:"cy", +formatDistance:formatDistance$68, +formatLong:formatLong$76, +formatRelative:formatRelative$68, +localize:{ +ordinalNumber:ordinalNumber$68, +era:buildLocalizeFn({ +values:eraValues$68, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$68, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$68, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$68, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$68, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$53, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(c|o)/i, +abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i, +wide:/^(cyn christ|ar ôl crist|ar ol crist)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i], +any:[/^c/i,/^o/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ch[1234]/i, +wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(i|ch|m|e|g|a|h|t|rh)/i, +abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, +wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^i/i, +/^ch/i, +/^m/i, +/^e/i, +/^m/i, +/^m/i, +/^g/i, +/^a/i, +/^m/i, +/^h/i, +/^t/i, +/^rh/i], + +any:[ +/^io/i, +/^ch/i, +/^maw/i, +/^e/i, +/^mai/i, +/^meh/i, +/^g/i, +/^a/i, +/^med/i, +/^h/i, +/^t/i, +/^rh/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(s|ll|m|i|g)/i, +short:/^(su|ll|ma|me|ia|gw|sa)/i, +abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i, +wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^ll/i, +/^m/i, +/^m/i, +/^i/i, +/^g/i, +/^s/i], + +wide:[ +/^dydd su/i, +/^dydd ll/i, +/^dydd ma/i, +/^dydd me/i, +/^dydd i/i, +/^dydd g/i, +/^dydd sa/i], + +any:[ +/^su/i, +/^ll/i, +/^ma/i, +/^me/i, +/^i/i, +/^g/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, +any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^b|(y\.?\s?b\.?)/i, +pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i, +midnight:/^hn|hanner nos/i, +noon:/^hd|hanner dydd/i, +morning:/bore/i, +afternoon:/prynhawn/i, +evening:/^gyda'r nos$/i, +night:/blah/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/da/_lib/formatDistance.js +var formatDistanceLocale$66={ +lessThanXSeconds:{ +one:"mindre end ét sekund", +other:"mindre end {{count}} sekunder" +}, +xSeconds:{ +one:"1 sekund", +other:"{{count}} sekunder" +}, +halfAMinute:"ét halvt minut", +lessThanXMinutes:{ +one:"mindre end ét minut", +other:"mindre end {{count}} minutter" +}, +xMinutes:{ +one:"1 minut", +other:"{{count}} minutter" +}, +aboutXHours:{ +one:"cirka 1 time", +other:"cirka {{count}} timer" +}, +xHours:{ +one:"1 time", +other:"{{count}} timer" +}, +xDays:{ +one:"1 dag", +other:"{{count}} dage" +}, +aboutXWeeks:{ +one:"cirka 1 uge", +other:"cirka {{count}} uger" +}, +xWeeks:{ +one:"1 uge", +other:"{{count}} uger" +}, +aboutXMonths:{ +one:"cirka 1 måned", +other:"cirka {{count}} måneder" +}, +xMonths:{ +one:"1 måned", +other:"{{count}} måneder" +}, +aboutXYears:{ +one:"cirka 1 år", +other:"cirka {{count}} år" +}, +xYears:{ +one:"1 år", +other:"{{count}} år" +}, +overXYears:{ +one:"over 1 år", +other:"over {{count}} år" +}, +almostXYears:{ +one:"næsten 1 år", +other:"næsten {{count}} år" +} +}; +var formatDistance$67=function formatDistance$67(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$66[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"om "+result;else +return result+" siden"; +return result; +}; +var formatLong$75={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE 'den' d. MMMM y", +long:"d. MMMM y", +medium:"d. MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kl'. {{time}}", +long:"{{date}} 'kl'. {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/da/_lib/formatRelative.js +var formatRelativeLocale$67={ +lastWeek:"'sidste' eeee 'kl.' p", +yesterday:"'i går kl.' p", +today:"'i dag kl.' p", +tomorrow:"'i morgen kl.' p", +nextWeek:"'på' eeee 'kl.' p", +other:"P" +}; +var formatRelative$67=function formatRelative$67(token,_date,_baseDate,_options){return formatRelativeLocale$67[token];}; +//#endregion +//#region dist/date-fns/locale/da/_lib/localize.js +var eraValues$67={ +narrow:["fvt","vt"], +abbreviated:["f.v.t.","v.t."], +wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"] +}; +var quarterValues$67={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1. kvt.", +"2. kvt.", +"3. kvt.", +"4. kvt."], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$67={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mar.", +"apr.", +"maj", +"jun.", +"jul.", +"aug.", +"sep.", +"okt.", +"nov.", +"dec."], + +wide:[ +"januar", +"februar", +"marts", +"april", +"maj", +"juni", +"juli", +"august", +"september", +"oktober", +"november", +"december"] + +}; +var dayValues$67={ +narrow:[ +"S", +"M", +"T", +"O", +"T", +"F", +"L"], + +short:[ +"sø", +"ma", +"ti", +"on", +"to", +"fr", +"lø"], + +abbreviated:[ +"søn.", +"man.", +"tir.", +"ons.", +"tor.", +"fre.", +"lør."], + +wide:[ +"søndag", +"mandag", +"tirsdag", +"onsdag", +"torsdag", +"fredag", +"lørdag"] + +}; +var dayPeriodValues$67={ +narrow:{ +am:"a", +pm:"p", +midnight:"midnat", +noon:"middag", +morning:"morgen", +afternoon:"eftermiddag", +evening:"aften", +night:"nat" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"midnat", +noon:"middag", +morning:"morgen", +afternoon:"eftermiddag", +evening:"aften", +night:"nat" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnat", +noon:"middag", +morning:"morgen", +afternoon:"eftermiddag", +evening:"aften", +night:"nat" +} +}; +var formattingDayPeriodValues$52={ +narrow:{ +am:"a", +pm:"p", +midnight:"midnat", +noon:"middag", +morning:"om morgenen", +afternoon:"om eftermiddagen", +evening:"om aftenen", +night:"om natten" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"midnat", +noon:"middag", +morning:"om morgenen", +afternoon:"om eftermiddagen", +evening:"om aftenen", +night:"om natten" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnat", +noon:"middag", +morning:"om morgenen", +afternoon:"om eftermiddagen", +evening:"om aftenen", +night:"om natten" +} +}; +var ordinalNumber$67=function ordinalNumber$67(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/da.js +/** +* @category Locales +* @summary Danish locale. +* @language Danish +* @iso-639-2 dan +* @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) +* @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) +* @author [@kgram](https://github.com/kgram) +* @author [@stefanbugge](https://github.com/stefanbugge) +*/ +var _da={ +code:"da", +formatDistance:formatDistance$67, +formatLong:formatLong$75, +formatRelative:formatRelative$67, +localize:{ +ordinalNumber:ordinalNumber$67, +era:buildLocalizeFn({ +values:eraValues$67, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$67, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$67, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$67, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$67, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$52, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(fKr|fvt|eKr|vt)/i, +abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, +wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^f/i,/^(v|e)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]. kvt\./i, +wide:/^[1234]\.? kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, +wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtofl]/i, +short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, +abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i, +wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^o/i, +/^t/i, +/^f/i, +/^l/i], + +any:[ +/^s/i, +/^m/i, +/^ti/i, +/^o/i, +/^to/i, +/^f/i, +/^l/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, +any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/midnat/i, +noon:/middag/i, +morning:/morgen/i, +afternoon:/eftermiddag/i, +evening:/aften/i, +night:/nat/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/de/_lib/formatDistance.js +var formatDistanceLocale$65={ +lessThanXSeconds:{ +standalone:{ +one:"weniger als 1 Sekunde", +other:"weniger als {{count}} Sekunden" +}, +withPreposition:{ +one:"weniger als 1 Sekunde", +other:"weniger als {{count}} Sekunden" +} +}, +xSeconds:{ +standalone:{ +one:"1 Sekunde", +other:"{{count}} Sekunden" +}, +withPreposition:{ +one:"1 Sekunde", +other:"{{count}} Sekunden" +} +}, +halfAMinute:{ +standalone:"eine halbe Minute", +withPreposition:"einer halben Minute" +}, +lessThanXMinutes:{ +standalone:{ +one:"weniger als 1 Minute", +other:"weniger als {{count}} Minuten" +}, +withPreposition:{ +one:"weniger als 1 Minute", +other:"weniger als {{count}} Minuten" +} +}, +xMinutes:{ +standalone:{ +one:"1 Minute", +other:"{{count}} Minuten" +}, +withPreposition:{ +one:"1 Minute", +other:"{{count}} Minuten" +} +}, +aboutXHours:{ +standalone:{ +one:"etwa 1 Stunde", +other:"etwa {{count}} Stunden" +}, +withPreposition:{ +one:"etwa 1 Stunde", +other:"etwa {{count}} Stunden" +} +}, +xHours:{ +standalone:{ +one:"1 Stunde", +other:"{{count}} Stunden" +}, +withPreposition:{ +one:"1 Stunde", +other:"{{count}} Stunden" +} +}, +xDays:{ +standalone:{ +one:"1 Tag", +other:"{{count}} Tage" +}, +withPreposition:{ +one:"1 Tag", +other:"{{count}} Tagen" +} +}, +aboutXWeeks:{ +standalone:{ +one:"etwa 1 Woche", +other:"etwa {{count}} Wochen" +}, +withPreposition:{ +one:"etwa 1 Woche", +other:"etwa {{count}} Wochen" +} +}, +xWeeks:{ +standalone:{ +one:"1 Woche", +other:"{{count}} Wochen" +}, +withPreposition:{ +one:"1 Woche", +other:"{{count}} Wochen" +} +}, +aboutXMonths:{ +standalone:{ +one:"etwa 1 Monat", +other:"etwa {{count}} Monate" +}, +withPreposition:{ +one:"etwa 1 Monat", +other:"etwa {{count}} Monaten" +} +}, +xMonths:{ +standalone:{ +one:"1 Monat", +other:"{{count}} Monate" +}, +withPreposition:{ +one:"1 Monat", +other:"{{count}} Monaten" +} +}, +aboutXYears:{ +standalone:{ +one:"etwa 1 Jahr", +other:"etwa {{count}} Jahre" +}, +withPreposition:{ +one:"etwa 1 Jahr", +other:"etwa {{count}} Jahren" +} +}, +xYears:{ +standalone:{ +one:"1 Jahr", +other:"{{count}} Jahre" +}, +withPreposition:{ +one:"1 Jahr", +other:"{{count}} Jahren" +} +}, +overXYears:{ +standalone:{ +one:"mehr als 1 Jahr", +other:"mehr als {{count}} Jahre" +}, +withPreposition:{ +one:"mehr als 1 Jahr", +other:"mehr als {{count}} Jahren" +} +}, +almostXYears:{ +standalone:{ +one:"fast 1 Jahr", +other:"fast {{count}} Jahre" +}, +withPreposition:{ +one:"fast 1 Jahr", +other:"fast {{count}} Jahren" +} +} +}; +var formatDistance$66=function formatDistance$66(token,count,options){ +var result; +var tokenValue=options!==null&&options!==void 0&&options.addSuffix?formatDistanceLocale$65[token].withPreposition:formatDistanceLocale$65[token].standalone; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"in "+result;else +return"vor "+result; +return result; +}; +var formatLong$74={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y", +long:"do MMMM y", +medium:"do MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'um' {{time}}", +long:"{{date}} 'um' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/de/_lib/formatRelative.js +var formatRelativeLocale$66={ +lastWeek:"'letzten' eeee 'um' p", +yesterday:"'gestern um' p", +today:"'heute um' p", +tomorrow:"'morgen um' p", +nextWeek:"eeee 'um' p", +other:"P" +}; +var formatRelative$66=function formatRelative$66(token,_date,_baseDate,_options){return formatRelativeLocale$66[token];}; +//#endregion +//#region dist/date-fns/locale/de/_lib/localize.js +var eraValues$66={ +narrow:["v.Chr.","n.Chr."], +abbreviated:["v.Chr.","n.Chr."], +wide:["vor Christus","nach Christus"] +}; +var quarterValues$66={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. Quartal", +"2. Quartal", +"3. Quartal", +"4. Quartal"] + +}; +var monthValues$66={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mär", +"Apr", +"Mai", +"Jun", +"Jul", +"Aug", +"Sep", +"Okt", +"Nov", +"Dez"], + +wide:[ +"Januar", +"Februar", +"März", +"April", +"Mai", +"Juni", +"Juli", +"August", +"September", +"Oktober", +"November", +"Dezember"] + +}; +var formattingMonthValues$14={ +narrow:monthValues$66.narrow, +abbreviated:[ +"Jan.", +"Feb.", +"März", +"Apr.", +"Mai", +"Juni", +"Juli", +"Aug.", +"Sep.", +"Okt.", +"Nov.", +"Dez."], + +wide:monthValues$66.wide +}; +var dayValues$66={ +narrow:[ +"S", +"M", +"D", +"M", +"D", +"F", +"S"], + +short:[ +"So", +"Mo", +"Di", +"Mi", +"Do", +"Fr", +"Sa"], + +abbreviated:[ +"So.", +"Mo.", +"Di.", +"Mi.", +"Do.", +"Fr.", +"Sa."], + +wide:[ +"Sonntag", +"Montag", +"Dienstag", +"Mittwoch", +"Donnerstag", +"Freitag", +"Samstag"] + +}; +var dayPeriodValues$66={ +narrow:{ +am:"vm.", +pm:"nm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachm.", +evening:"Abend", +night:"Nacht" +}, +abbreviated:{ +am:"vorm.", +pm:"nachm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachmittag", +evening:"Abend", +night:"Nacht" +}, +wide:{ +am:"vormittags", +pm:"nachmittags", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachmittag", +evening:"Abend", +night:"Nacht" +} +}; +var formattingDayPeriodValues$51={ +narrow:{ +am:"vm.", +pm:"nm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachm.", +evening:"abends", +night:"nachts" +}, +abbreviated:{ +am:"vorm.", +pm:"nachm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachmittags", +evening:"abends", +night:"nachts" +}, +wide:{ +am:"vormittags", +pm:"nachmittags", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachmittags", +evening:"abends", +night:"nachts" +} +}; +var ordinalNumber$66=function ordinalNumber$66(dirtyNumber){ +return Number(dirtyNumber)+"."; +}; +var localize$66={ +ordinalNumber:ordinalNumber$66, +era:buildLocalizeFn({ +values:eraValues$66, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$66, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$66, +formattingValues:formattingMonthValues$14, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$66, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$66, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$51, +defaultFormattingWidth:"wide" +}) +}; +var match$65={ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, +abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, +wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^v/i,/^n/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](\.)? Quartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, +wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^j[aä]/i, +/^f/i, +/^mär/i, +/^ap/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smdmf]/i, +short:/^(so|mo|di|mi|do|fr|sa)/i, +abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, +wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^so/i, +/^mo/i, +/^di/i, +/^mi/i, +/^do/i, +/^f/i, +/^sa/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, +abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, +wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^v/i, +pm:/^n/i, +midnight:/^Mitte/i, +noon:/^Mitta/i, +morning:/morgens/i, +afternoon:/nachmittags/i, +evening:/abends/i, +night:/nachts/i +}}, +defaultParseWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/de.js +/** +* @category Locales +* @summary German locale. +* @language German +* @iso-639-2 deu +* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) +* @author Asia [@asia-t](https://github.com/asia-t) +* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) +* @author RomanErnst [@pex](https://github.com/pex) +* @author Philipp Keck [@Philipp91](https://github.com/Philipp91) +*/ +var _de={ +code:"de", +formatDistance:formatDistance$66, +formatLong:formatLong$74, +formatRelative:formatRelative$66, +localize:localize$66, +match:match$65, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/de-AT/_lib/localize.js +var eraValues$65={ +narrow:["v.Chr.","n.Chr."], +abbreviated:["v.Chr.","n.Chr."], +wide:["vor Christus","nach Christus"] +}; +var quarterValues$65={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. Quartal", +"2. Quartal", +"3. Quartal", +"4. Quartal"] + +}; +var monthValues$65={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jän", +"Feb", +"Mär", +"Apr", +"Mai", +"Jun", +"Jul", +"Aug", +"Sep", +"Okt", +"Nov", +"Dez"], + +wide:[ +"Jänner", +"Februar", +"März", +"April", +"Mai", +"Juni", +"Juli", +"August", +"September", +"Oktober", +"November", +"Dezember"] + +}; +var formattingMonthValues$13={ +narrow:monthValues$65.narrow, +abbreviated:[ +"Jän.", +"Feb.", +"März", +"Apr.", +"Mai", +"Juni", +"Juli", +"Aug.", +"Sep.", +"Okt.", +"Nov.", +"Dez."], + +wide:monthValues$65.wide +}; +var dayValues$65={ +narrow:[ +"S", +"M", +"D", +"M", +"D", +"F", +"S"], + +short:[ +"So", +"Mo", +"Di", +"Mi", +"Do", +"Fr", +"Sa"], + +abbreviated:[ +"So.", +"Mo.", +"Di.", +"Mi.", +"Do.", +"Fr.", +"Sa."], + +wide:[ +"Sonntag", +"Montag", +"Dienstag", +"Mittwoch", +"Donnerstag", +"Freitag", +"Samstag"] + +}; +var dayPeriodValues$65={ +narrow:{ +am:"vm.", +pm:"nm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachm.", +evening:"Abend", +night:"Nacht" +}, +abbreviated:{ +am:"vorm.", +pm:"nachm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachmittag", +evening:"Abend", +night:"Nacht" +}, +wide:{ +am:"vormittags", +pm:"nachmittags", +midnight:"Mitternacht", +noon:"Mittag", +morning:"Morgen", +afternoon:"Nachmittag", +evening:"Abend", +night:"Nacht" +} +}; +var formattingDayPeriodValues$50={ +narrow:{ +am:"vm.", +pm:"nm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachm.", +evening:"abends", +night:"nachts" +}, +abbreviated:{ +am:"vorm.", +pm:"nachm.", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachmittags", +evening:"abends", +night:"nachts" +}, +wide:{ +am:"vormittags", +pm:"nachmittags", +midnight:"Mitternacht", +noon:"Mittag", +morning:"morgens", +afternoon:"nachmittags", +evening:"abends", +night:"nachts" +} +}; +var ordinalNumber$65=function ordinalNumber$65(dirtyNumber){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/de-AT.js +/** +* @category Locales +* @summary German locale (Austria). +* @language German +* @iso-639-2 deu +* @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) +*/ +var _deAT={ +code:"de-AT", +formatDistance:formatDistance$66, +formatLong:formatLong$74, +formatRelative:formatRelative$66, +localize:{ +ordinalNumber:ordinalNumber$65, +era:buildLocalizeFn({ +values:eraValues$65, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$65, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$65, +formattingValues:formattingMonthValues$13, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$65, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$65, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$50, +defaultFormattingWidth:"wide" +}) +}, +match:match$65, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/el/_lib/formatDistance.js +var formatDistanceLocale$64={ +lessThanXSeconds:{ +one:"λιγότερο από ένα δευτερόλεπτο", +other:"λιγότερο από {{count}} δευτερόλεπτα" +}, +xSeconds:{ +one:"1 δευτερόλεπτο", +other:"{{count}} δευτερόλεπτα" +}, +halfAMinute:"μισό λεπτό", +lessThanXMinutes:{ +one:"λιγότερο από ένα λεπτό", +other:"λιγότερο από {{count}} λεπτά" +}, +xMinutes:{ +one:"1 λεπτό", +other:"{{count}} λεπτά" +}, +aboutXHours:{ +one:"περίπου 1 ώρα", +other:"περίπου {{count}} ώρες" +}, +xHours:{ +one:"1 ώρα", +other:"{{count}} ώρες" +}, +xDays:{ +one:"1 ημέρα", +other:"{{count}} ημέρες" +}, +aboutXWeeks:{ +one:"περίπου 1 εβδομάδα", +other:"περίπου {{count}} εβδομάδες" +}, +xWeeks:{ +one:"1 εβδομάδα", +other:"{{count}} εβδομάδες" +}, +aboutXMonths:{ +one:"περίπου 1 μήνας", +other:"περίπου {{count}} μήνες" +}, +xMonths:{ +one:"1 μήνας", +other:"{{count}} μήνες" +}, +aboutXYears:{ +one:"περίπου 1 χρόνο", +other:"περίπου {{count}} χρόνια" +}, +xYears:{ +one:"1 χρόνο", +other:"{{count}} χρόνια" +}, +overXYears:{ +one:"πάνω από 1 χρόνο", +other:"πάνω από {{count}} χρόνια" +}, +almostXYears:{ +one:"περίπου 1 χρόνο", +other:"περίπου {{count}} χρόνια" +} +}; +var formatDistance$65=function formatDistance$65(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$64[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"σε "+result;else +return result+" πριν"; +return result; +}; +var formatLong$73={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"d/M/yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} - {{time}}", +long:"{{date}} - {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/el/_lib/formatRelative.js +var formatRelativeLocale$65={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 6:return"'το προηγούμενο' eeee 'στις' p"; +default:return"'την προηγούμενη' eeee 'στις' p"; +} +}, +yesterday:"'χθες στις' p", +today:"'σήμερα στις' p", +tomorrow:"'αύριο στις' p", +nextWeek:"eeee 'στις' p", +other:"P" +}; +var formatRelative$65=function formatRelative$65(token,date){ +var format=formatRelativeLocale$65[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/el/_lib/localize.js +var eraValues$64={ +narrow:["πΧ","μΧ"], +abbreviated:["π.Χ.","μ.Χ."], +wide:["προ Χριστού","μετά Χριστόν"] +}; +var quarterValues$64={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Τ1", +"Τ2", +"Τ3", +"Τ4"], + +wide:[ +"1ο τρίμηνο", +"2ο τρίμηνο", +"3ο τρίμηνο", +"4ο τρίμηνο"] + +}; +var monthValues$64={ +narrow:[ +"Ι", +"Φ", +"Μ", +"Α", +"Μ", +"Ι", +"Ι", +"Α", +"Σ", +"Ο", +"Ν", +"Δ"], + +abbreviated:[ +"Ιαν", +"Φεβ", +"Μάρ", +"Απρ", +"Μάι", +"Ιούν", +"Ιούλ", +"Αύγ", +"Σεπ", +"Οκτ", +"Νοέ", +"Δεκ"], + +wide:[ +"Ιανουάριος", +"Φεβρουάριος", +"Μάρτιος", +"Απρίλιος", +"Μάιος", +"Ιούνιος", +"Ιούλιος", +"Αύγουστος", +"Σεπτέμβριος", +"Οκτώβριος", +"Νοέμβριος", +"Δεκέμβριος"] + +}; +var formattingMonthValues$12={ +narrow:[ +"Ι", +"Φ", +"Μ", +"Α", +"Μ", +"Ι", +"Ι", +"Α", +"Σ", +"Ο", +"Ν", +"Δ"], + +abbreviated:[ +"Ιαν", +"Φεβ", +"Μαρ", +"Απρ", +"Μαΐ", +"Ιουν", +"Ιουλ", +"Αυγ", +"Σεπ", +"Οκτ", +"Νοε", +"Δεκ"], + +wide:[ +"Ιανουαρίου", +"Φεβρουαρίου", +"Μαρτίου", +"Απριλίου", +"Μαΐου", +"Ιουνίου", +"Ιουλίου", +"Αυγούστου", +"Σεπτεμβρίου", +"Οκτωβρίου", +"Νοεμβρίου", +"Δεκεμβρίου"] + +}; +var dayValues$64={ +narrow:[ +"Κ", +"Δ", +"T", +"Τ", +"Π", +"Π", +"Σ"], + +short:[ +"Κυ", +"Δε", +"Τρ", +"Τε", +"Πέ", +"Πα", +"Σά"], + +abbreviated:[ +"Κυρ", +"Δευ", +"Τρί", +"Τετ", +"Πέμ", +"Παρ", +"Σάβ"], + +wide:[ +"Κυριακή", +"Δευτέρα", +"Τρίτη", +"Τετάρτη", +"Πέμπτη", +"Παρασκευή", +"Σάββατο"] + +}; +var dayPeriodValues$64={ +narrow:{ +am:"πμ", +pm:"μμ", +midnight:"μεσάνυχτα", +noon:"μεσημέρι", +morning:"πρωί", +afternoon:"απόγευμα", +evening:"βράδυ", +night:"νύχτα" +}, +abbreviated:{ +am:"π.μ.", +pm:"μ.μ.", +midnight:"μεσάνυχτα", +noon:"μεσημέρι", +morning:"πρωί", +afternoon:"απόγευμα", +evening:"βράδυ", +night:"νύχτα" +}, +wide:{ +am:"π.μ.", +pm:"μ.μ.", +midnight:"μεσάνυχτα", +noon:"μεσημέρι", +morning:"πρωί", +afternoon:"απόγευμα", +evening:"βράδυ", +night:"νύχτα" +} +}; +var ordinalNumber$64=function ordinalNumber$64(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +var suffix; +if(unit==="year"||unit==="month")suffix="ος";else +if(unit==="week"||unit==="dayOfYear"||unit==="day"||unit==="hour"||unit==="date")suffix="η";else +suffix="ο"; +return number+suffix; +}; +//#endregion +//#region dist/date-fns/locale/el.js +/** +* @category Locales +* @summary Greek locale. +* @language Greek +* @iso-639-2 ell +* @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) +* @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) +*/ +var _el={ +code:"el", +formatDistance:formatDistance$65, +formatLong:formatLong$73, +formatRelative:formatRelative$65, +localize:{ +ordinalNumber:ordinalNumber$64, +era:buildLocalizeFn({ +values:eraValues$64, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$64, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$64, +defaultWidth:"wide", +formattingValues:formattingMonthValues$12, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$64, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$64, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ος|η|ο)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(πΧ|μΧ)/i, +abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, +wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^π/i,/^(μ|κ)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^τ[1234]/i, +wide:/^[1234]ο? τρ(ί|ι)μηνο/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[ιφμαμιιασονδ]/i, +abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, +wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ι/i, +/^φ/i, +/^μ/i, +/^α/i, +/^μ/i, +/^ι/i, +/^ι/i, +/^α/i, +/^σ/i, +/^ο/i, +/^ν/i, +/^δ/i], + +any:[ +/^ια/i, +/^φ/i, +/^μ[άα]ρ/i, +/^απ/i, +/^μ[άα][ιΐ]/i, +/^ιο[ύυ]ν/i, +/^ιο[ύυ]λ/i, +/^α[ύυ]/i, +/^σ/i, +/^ο/i, +/^ν/i, +/^δ/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[κδτπσ]/i, +short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, +abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, +wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^κ/i, +/^δ/i, +/^τ/i, +/^τ/i, +/^π/i, +/^π/i, +/^σ/i], + +any:[ +/^κ/i, +/^δ/i, +/^τρ/i, +/^τε/i, +/^π[εέ]/i, +/^π[αά]/i, +/^σ/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, +any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^πμ|π\.\s?μ\./i, +pm:/^μμ|μ\.\s?μ\./i, +midnight:/^μεσάν/i, +noon:/^μεσημ(έ|ε)/i, +morning:/πρω(ί|ι)/i, +afternoon:/απ(ό|ο)γευμα/i, +evening:/βρ(ά|α)δυ/i, +night:/ν(ύ|υ)χτα/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale$63={ +lessThanXSeconds:{ +one:"less than a second", +other:"less than {{count}} seconds" +}, +xSeconds:{ +one:"1 second", +other:"{{count}} seconds" +}, +halfAMinute:"half a minute", +lessThanXMinutes:{ +one:"less than a minute", +other:"less than {{count}} minutes" +}, +xMinutes:{ +one:"1 minute", +other:"{{count}} minutes" +}, +aboutXHours:{ +one:"about 1 hour", +other:"about {{count}} hours" +}, +xHours:{ +one:"1 hour", +other:"{{count}} hours" +}, +xDays:{ +one:"1 day", +other:"{{count}} days" +}, +aboutXWeeks:{ +one:"about 1 week", +other:"about {{count}} weeks" +}, +xWeeks:{ +one:"1 week", +other:"{{count}} weeks" +}, +aboutXMonths:{ +one:"about 1 month", +other:"about {{count}} months" +}, +xMonths:{ +one:"1 month", +other:"{{count}} months" +}, +aboutXYears:{ +one:"about 1 year", +other:"about {{count}} years" +}, +xYears:{ +one:"1 year", +other:"{{count}} years" +}, +overXYears:{ +one:"over 1 year", +other:"over {{count}} years" +}, +almostXYears:{ +one:"almost 1 year", +other:"almost {{count}} years" +} +}; +var formatDistance$64=function formatDistance$64(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$63[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"in "+result;else +return result+" ago"; +return result; +}; +var formatLong$72={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale$64={ +lastWeek:"'last' eeee 'at' p", +yesterday:"'yesterday at' p", +today:"'today at' p", +tomorrow:"'tomorrow at' p", +nextWeek:"eeee 'at' p", +other:"P" +}; +var formatRelative$64=function formatRelative$64(token,_date,_baseDate,_options){return formatRelativeLocale$64[token];}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues$63={ +narrow:["B","A"], +abbreviated:["BC","AD"], +wide:["Before Christ","Anno Domini"] +}; +var quarterValues$63={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1st quarter", +"2nd quarter", +"3rd quarter", +"4th quarter"] + +}; +var monthValues$63={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mar", +"Apr", +"May", +"Jun", +"Jul", +"Aug", +"Sep", +"Oct", +"Nov", +"Dec"], + +wide:[ +"January", +"February", +"March", +"April", +"May", +"June", +"July", +"August", +"September", +"October", +"November", +"December"] + +}; +var dayValues$63={ +narrow:[ +"S", +"M", +"T", +"W", +"T", +"F", +"S"], + +short:[ +"Su", +"Mo", +"Tu", +"We", +"Th", +"Fr", +"Sa"], + +abbreviated:[ +"Sun", +"Mon", +"Tue", +"Wed", +"Thu", +"Fri", +"Sat"], + +wide:[ +"Sunday", +"Monday", +"Tuesday", +"Wednesday", +"Thursday", +"Friday", +"Saturday"] + +}; +var dayPeriodValues$63={ +narrow:{ +am:"a", +pm:"p", +midnight:"mi", +noon:"n", +morning:"morning", +afternoon:"afternoon", +evening:"evening", +night:"night" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"midnight", +noon:"noon", +morning:"morning", +afternoon:"afternoon", +evening:"evening", +night:"night" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnight", +noon:"noon", +morning:"morning", +afternoon:"afternoon", +evening:"evening", +night:"night" +} +}; +var formattingDayPeriodValues$49={ +narrow:{ +am:"a", +pm:"p", +midnight:"mi", +noon:"n", +morning:"in the morning", +afternoon:"in the afternoon", +evening:"in the evening", +night:"at night" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"midnight", +noon:"noon", +morning:"in the morning", +afternoon:"in the afternoon", +evening:"in the evening", +night:"at night" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnight", +noon:"noon", +morning:"in the morning", +afternoon:"in the afternoon", +evening:"in the evening", +night:"at night" +} +}; +var ordinalNumber$63=function ordinalNumber$63(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1:return number+"st"; +case 2:return number+"nd"; +case 3:return number+"rd"; +} +return number+"th"; +}; +var localize$63={ +ordinalNumber:ordinalNumber$63, +era:buildLocalizeFn({ +values:eraValues$63, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$63, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$63, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$63, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$63, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$49, +defaultFormattingWidth:"wide" +}) +}; +var match$63={ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(b|a)/i, +abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, +wide:/^(before christ|before common era|anno domini|common era)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b/i,/^(a|c)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](th|st|nd|rd)? quarter/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, +wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^may/i, +/^jun/i, +/^jul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtwf]/i, +short:/^(su|mo|tu|we|th|fr|sa)/i, +abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i, +wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^su/i, +/^m/i, +/^tu/i, +/^w/i, +/^th/i, +/^f/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, +any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mi/i, +noon:/^no/i, +morning:/morning/i, +afternoon:/afternoon/i, +evening:/evening/i, +night:/night/i +}}, +defaultParseWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/en-AU.js +/** +* @category Locales +* @summary English locale (Australia). +* @language English +* @iso-639-2 eng +* @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) +*/ +var _enAU={ +code:"en-AU", +formatDistance:formatDistance$64, +formatLong:formatLong$72, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-CA/_lib/formatDistance.js +var formatDistanceLocale$62={ +lessThanXSeconds:{ +one:"less than a second", +other:"less than {{count}} seconds" +}, +xSeconds:{ +one:"a second", +other:"{{count}} seconds" +}, +halfAMinute:"half a minute", +lessThanXMinutes:{ +one:"less than a minute", +other:"less than {{count}} minutes" +}, +xMinutes:{ +one:"a minute", +other:"{{count}} minutes" +}, +aboutXHours:{ +one:"about an hour", +other:"about {{count}} hours" +}, +xHours:{ +one:"an hour", +other:"{{count}} hours" +}, +xDays:{ +one:"a day", +other:"{{count}} days" +}, +aboutXWeeks:{ +one:"about a week", +other:"about {{count}} weeks" +}, +xWeeks:{ +one:"a week", +other:"{{count}} weeks" +}, +aboutXMonths:{ +one:"about a month", +other:"about {{count}} months" +}, +xMonths:{ +one:"a month", +other:"{{count}} months" +}, +aboutXYears:{ +one:"about a year", +other:"about {{count}} years" +}, +xYears:{ +one:"a year", +other:"{{count}} years" +}, +overXYears:{ +one:"over a year", +other:"over {{count}} years" +}, +almostXYears:{ +one:"almost a year", +other:"almost {{count}} years" +} +}; +var formatDistance$63=function formatDistance$63(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$62[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"in "+result;else +return result+" ago"; +return result; +}; +//#endregion +//#region dist/date-fns/locale/en-CA.js +/** +* @category Locales +* @summary English locale (Canada). +* @language English +* @iso-639-2 eng +* @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) +* @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) +*/ +var _enCA={ +code:"en-CA", +formatDistance:formatDistance$63, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, yyyy", +long:"MMMM do, yyyy", +medium:"MMM d, yyyy", +short:"yyyy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +var formatLong$70={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/en-GB.js +/** +* @category Locales +* @summary English locale (United Kingdom). +* @language English +* @iso-639-2 eng +* @author Alex [@glintik](https://github.com/glintik) +*/ +var _enGB={ +code:"en-GB", +formatDistance:formatDistance$64, +formatLong:formatLong$70, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-IE.js +/** +* @category Locales +* @summary English locale (Ireland). +* @language English +* @iso-639-2 eng +* @author Tetiana [@tan75](https://github.com/tan75) +*/ +var _enIE={ +code:"en-IE", +formatDistance:formatDistance$64, +formatLong:formatLong$70, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-IN.js +/** +* @category Locales +* @summary English locale (India). +* @language English +* @iso-639-2 eng +* @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) +*/ +var _enIN={ +code:"en-IN", +formatDistance:formatDistance$64, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM, yyyy", +medium:"d MMM, yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-NZ.js +/** +* @category Locales +* @summary English locale (New Zealand). +* @language English +* @iso-639-2 eng +* @author Murray Lucas [@muntact](https://github.com/muntact) +*/ +var _enNZ={ +code:"en-NZ", +formatDistance:formatDistance$64, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/en-US.js +/** +* @category Locales +* @summary English locale (United States). +* @language English +* @iso-639-2 eng +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var _enUS={ +code:"en-US", +formatDistance:formatDistance$64, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/en-ZA.js +/** +* @category Locales +* @summary English locale (South Africa). +* @language English +* @iso-639-2 eng +* @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) +*/ +var _enZA={ +code:"en-ZA", +formatDistance:formatDistance$64, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, dd MMMM yyyy", +long:"dd MMMM yyyy", +medium:"dd MMM yyyy", +short:"yyyy/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'at' {{time}}", +long:"{{date}} 'at' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$64, +localize:localize$63, +match:match$63, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/eo/_lib/formatDistance.js +var formatDistanceLocale$61={ +lessThanXSeconds:{ +one:"malpli ol sekundo", +other:"malpli ol {{count}} sekundoj" +}, +xSeconds:{ +one:"1 sekundo", +other:"{{count}} sekundoj" +}, +halfAMinute:"duonminuto", +lessThanXMinutes:{ +one:"malpli ol minuto", +other:"malpli ol {{count}} minutoj" +}, +xMinutes:{ +one:"1 minuto", +other:"{{count}} minutoj" +}, +aboutXHours:{ +one:"proksimume 1 horo", +other:"proksimume {{count}} horoj" +}, +xHours:{ +one:"1 horo", +other:"{{count}} horoj" +}, +xDays:{ +one:"1 tago", +other:"{{count}} tagoj" +}, +aboutXMonths:{ +one:"proksimume 1 monato", +other:"proksimume {{count}} monatoj" +}, +xWeeks:{ +one:"1 semajno", +other:"{{count}} semajnoj" +}, +aboutXWeeks:{ +one:"proksimume 1 semajno", +other:"proksimume {{count}} semajnoj" +}, +xMonths:{ +one:"1 monato", +other:"{{count}} monatoj" +}, +aboutXYears:{ +one:"proksimume 1 jaro", +other:"proksimume {{count}} jaroj" +}, +xYears:{ +one:"1 jaro", +other:"{{count}} jaroj" +}, +overXYears:{ +one:"pli ol 1 jaro", +other:"pli ol {{count}} jaroj" +}, +almostXYears:{ +one:"preskaŭ 1 jaro", +other:"preskaŭ {{count}} jaroj" +} +}; +var formatDistance$62=function formatDistance$62(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$61[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options!==null&&options!==void 0&&options.comparison&&options.comparison>0)return"post "+result;else +return"antaŭ "+result; +return result; +}; +var formatLong$65={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do 'de' MMMM y", +long:"y-MMMM-dd", +medium:"y-MMM-dd", +short:"yyyy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"Ho 'horo kaj' m:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}} {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/eo/_lib/formatRelative.js +var formatRelativeLocale$63={ +lastWeek:"'pasinta' eeee 'je' p", +yesterday:"'hieraŭ je' p", +today:"'hodiaŭ je' p", +tomorrow:"'morgaŭ je' p", +nextWeek:"eeee 'je' p", +other:"P" +}; +var formatRelative$63=function formatRelative$63(token,_date,_baseDate,_options){return formatRelativeLocale$63[token];}; +//#endregion +//#region dist/date-fns/locale/eo/_lib/localize.js +var eraValues$62={ +narrow:["aK","pK"], +abbreviated:["a.K.E.","p.K.E."], +wide:["antaŭ Komuna Erao","Komuna Erao"] +}; +var quarterValues$62={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1-a kvaronjaro", +"2-a kvaronjaro", +"3-a kvaronjaro", +"4-a kvaronjaro"] + +}; +var monthValues$62={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"maj", +"jun", +"jul", +"aŭg", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januaro", +"februaro", +"marto", +"aprilo", +"majo", +"junio", +"julio", +"aŭgusto", +"septembro", +"oktobro", +"novembro", +"decembro"] + +}; +var dayValues$62={ +narrow:[ +"D", +"L", +"M", +"M", +"Ĵ", +"V", +"S"], + +short:[ +"di", +"lu", +"ma", +"me", +"ĵa", +"ve", +"sa"], + +abbreviated:[ +"dim", +"lun", +"mar", +"mer", +"ĵaŭ", +"ven", +"sab"], + +wide:[ +"dimanĉo", +"lundo", +"mardo", +"merkredo", +"ĵaŭdo", +"vendredo", +"sabato"] + +}; +var dayPeriodValues$62={ +narrow:{ +am:"a", +pm:"p", +midnight:"noktomezo", +noon:"tagmezo", +morning:"matene", +afternoon:"posttagmeze", +evening:"vespere", +night:"nokte" +}, +abbreviated:{ +am:"a.t.m.", +pm:"p.t.m.", +midnight:"noktomezo", +noon:"tagmezo", +morning:"matene", +afternoon:"posttagmeze", +evening:"vespere", +night:"nokte" +}, +wide:{ +am:"antaŭtagmeze", +pm:"posttagmeze", +midnight:"noktomezo", +noon:"tagmezo", +morning:"matene", +afternoon:"posttagmeze", +evening:"vespere", +night:"nokte" +} +}; +var ordinalNumber$62=function ordinalNumber$62(dirtyNumber){ +return Number(dirtyNumber)+"-a"; +}; +//#endregion +//#region dist/date-fns/locale/eo.js +/** +* @category Locales +* @summary Esperanto locale. +* @language Esperanto +* @iso-639-2 epo +* @author date-fns +*/ +var _eo={ +code:"eo", +formatDistance:formatDistance$62, +formatLong:formatLong$65, +formatRelative:formatRelative$63, +localize:{ +ordinalNumber:ordinalNumber$62, +era:buildLocalizeFn({ +values:eraValues$62, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$62, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){ +return Number(quarter)-1; +} +}), +month:buildLocalizeFn({ +values:monthValues$62, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$62, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$62, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?a)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([ap]k)/i, +abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i, +wide:/^((antaǔ |post )?komuna erao)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^a/i,/^[kp]/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^k[1234]/i, +wide:/^[1234](-?a)? kvaronjaro/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){ +return index+1; +} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, +wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^a(u|ŭ)/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmĵjvs]/i, +short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, +abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, +wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^(j|ĵ)/i, +/^v/i, +/^s/i], + +any:[ +/^d/i, +/^l/i, +/^ma/i, +/^me/i, +/^(j|ĵ)/i, +/^v/i, +/^s/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, +abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, +wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^noktom/i, +noon:/^t/i, +morning:/^m/i, +afternoon:/^posttagmeze/i, +evening:/^v/i, +night:/^n/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/es/_lib/formatDistance.js +var formatDistanceLocale$60={ +lessThanXSeconds:{ +one:"menos de un segundo", +other:"menos de {{count}} segundos" +}, +xSeconds:{ +one:"1 segundo", +other:"{{count}} segundos" +}, +halfAMinute:"medio minuto", +lessThanXMinutes:{ +one:"menos de un minuto", +other:"menos de {{count}} minutos" +}, +xMinutes:{ +one:"1 minuto", +other:"{{count}} minutos" +}, +aboutXHours:{ +one:"alrededor de 1 hora", +other:"alrededor de {{count}} horas" +}, +xHours:{ +one:"1 hora", +other:"{{count}} horas" +}, +xDays:{ +one:"1 día", +other:"{{count}} días" +}, +aboutXWeeks:{ +one:"alrededor de 1 semana", +other:"alrededor de {{count}} semanas" +}, +xWeeks:{ +one:"1 semana", +other:"{{count}} semanas" +}, +aboutXMonths:{ +one:"alrededor de 1 mes", +other:"alrededor de {{count}} meses" +}, +xMonths:{ +one:"1 mes", +other:"{{count}} meses" +}, +aboutXYears:{ +one:"alrededor de 1 año", +other:"alrededor de {{count}} años" +}, +xYears:{ +one:"1 año", +other:"{{count}} años" +}, +overXYears:{ +one:"más de 1 año", +other:"más de {{count}} años" +}, +almostXYears:{ +one:"casi 1 año", +other:"casi {{count}} años" +} +}; +var formatDistance$61=function formatDistance$61(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$60[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"en "+result;else +return"hace "+result; +return result; +}; +var formatLong$64={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d 'de' MMMM 'de' y", +long:"d 'de' MMMM 'de' y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'a las' {{time}}", +long:"{{date}} 'a las' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/es/_lib/formatRelative.js +var formatRelativeLocale$62={ +lastWeek:"'el' eeee 'pasado a la' p", +yesterday:"'ayer a la' p", +today:"'hoy a la' p", +tomorrow:"'mañana a la' p", +nextWeek:"eeee 'a la' p", +other:"P" +}; +var formatRelativeLocalePlural$2={ +lastWeek:"'el' eeee 'pasado a las' p", +yesterday:"'ayer a las' p", +today:"'hoy a las' p", +tomorrow:"'mañana a las' p", +nextWeek:"eeee 'a las' p", +other:"P" +}; +var formatRelative$62=function formatRelative$62(token,date,_baseDate,_options){ +if(date.getHours()!==1)return formatRelativeLocalePlural$2[token];else +return formatRelativeLocale$62[token]; +}; +//#endregion +//#region dist/date-fns/locale/es/_lib/localize.js +var eraValues$61={ +narrow:["AC","DC"], +abbreviated:["AC","DC"], +wide:["antes de cristo","después de cristo"] +}; +var quarterValues$61={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1º trimestre", +"2º trimestre", +"3º trimestre", +"4º trimestre"] + +}; +var monthValues$61={ +narrow:[ +"e", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"ene", +"feb", +"mar", +"abr", +"may", +"jun", +"jul", +"ago", +"sep", +"oct", +"nov", +"dic"], + +wide:[ +"enero", +"febrero", +"marzo", +"abril", +"mayo", +"junio", +"julio", +"agosto", +"septiembre", +"octubre", +"noviembre", +"diciembre"] + +}; +var dayValues$61={ +narrow:[ +"d", +"l", +"m", +"m", +"j", +"v", +"s"], + +short:[ +"do", +"lu", +"ma", +"mi", +"ju", +"vi", +"sá"], + +abbreviated:[ +"dom", +"lun", +"mar", +"mié", +"jue", +"vie", +"sáb"], + +wide:[ +"domingo", +"lunes", +"martes", +"miércoles", +"jueves", +"viernes", +"sábado"] + +}; +var dayPeriodValues$61={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"mañana", +afternoon:"tarde", +evening:"tarde", +night:"noche" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"medianoche", +noon:"mediodia", +morning:"mañana", +afternoon:"tarde", +evening:"tarde", +night:"noche" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"medianoche", +noon:"mediodia", +morning:"mañana", +afternoon:"tarde", +evening:"tarde", +night:"noche" +} +}; +var formattingDayPeriodValues$48={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"de la mañana", +afternoon:"de la tarde", +evening:"de la tarde", +night:"de la noche" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"medianoche", +noon:"mediodia", +morning:"de la mañana", +afternoon:"de la tarde", +evening:"de la tarde", +night:"de la noche" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"medianoche", +noon:"mediodia", +morning:"de la mañana", +afternoon:"de la tarde", +evening:"de la tarde", +night:"de la noche" +} +}; +var ordinalNumber$61=function ordinalNumber$61(dirtyNumber,_options){ +return Number(dirtyNumber)+"º"; +}; +//#endregion +//#region dist/date-fns/locale/es.js +/** +* @category Locales +* @summary Spanish locale. +* @language Spanish +* @iso-639-2 spa +* @author Juan Angosto [@juanangosto](https://github.com/juanangosto) +* @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) +* @author Fernando Agüero [@fjaguero](https://github.com/fjaguero) +* @author Gastón Haro [@harogaston](https://github.com/harogaston) +* @author Yago Carballo [@YagoCarballo](https://github.com/YagoCarballo) +*/ +var _es={ +code:"es", +formatDistance:formatDistance$61, +formatLong:formatLong$64, +formatRelative:formatRelative$62, +localize:{ +ordinalNumber:ordinalNumber$61, +era:buildLocalizeFn({ +values:eraValues$61, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$61, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$61, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$61, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$61, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$48, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(º)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ac|dc|a|d)/i, +abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, +wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[/^ac/i,/^dc/i], +wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^[1234](º)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[efmajsond]/i, +abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, +wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +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], + +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] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmjvs]/i, +short:/^(do|lu|ma|mi|ju|vi|s[áa])/i, +abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, +wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^j/i, +/^v/i, +/^s/i], + +any:[ +/^do/i, +/^lu/i, +/^ma/i, +/^mi/i, +/^ju/i, +/^vi/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, +any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mn/i, +noon:/^md/i, +morning:/mañana/i, +afternoon:/tarde/i, +evening:/tarde/i, +night:/noche/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/et/_lib/formatDistance.js +var formatDistanceLocale$59={ +lessThanXSeconds:{ +standalone:{ +one:"vähem kui üks sekund", +other:"vähem kui {{count}} sekundit" +}, +withPreposition:{ +one:"vähem kui ühe sekundi", +other:"vähem kui {{count}} sekundi" +} +}, +xSeconds:{ +standalone:{ +one:"üks sekund", +other:"{{count}} sekundit" +}, +withPreposition:{ +one:"ühe sekundi", +other:"{{count}} sekundi" +} +}, +halfAMinute:{ +standalone:"pool minutit", +withPreposition:"poole minuti" +}, +lessThanXMinutes:{ +standalone:{ +one:"vähem kui üks minut", +other:"vähem kui {{count}} minutit" +}, +withPreposition:{ +one:"vähem kui ühe minuti", +other:"vähem kui {{count}} minuti" +} +}, +xMinutes:{ +standalone:{ +one:"üks minut", +other:"{{count}} minutit" +}, +withPreposition:{ +one:"ühe minuti", +other:"{{count}} minuti" +} +}, +aboutXHours:{ +standalone:{ +one:"umbes üks tund", +other:"umbes {{count}} tundi" +}, +withPreposition:{ +one:"umbes ühe tunni", +other:"umbes {{count}} tunni" +} +}, +xHours:{ +standalone:{ +one:"üks tund", +other:"{{count}} tundi" +}, +withPreposition:{ +one:"ühe tunni", +other:"{{count}} tunni" +} +}, +xDays:{ +standalone:{ +one:"üks päev", +other:"{{count}} päeva" +}, +withPreposition:{ +one:"ühe päeva", +other:"{{count}} päeva" +} +}, +aboutXWeeks:{ +standalone:{ +one:"umbes üks nädal", +other:"umbes {{count}} nädalat" +}, +withPreposition:{ +one:"umbes ühe nädala", +other:"umbes {{count}} nädala" +} +}, +xWeeks:{ +standalone:{ +one:"üks nädal", +other:"{{count}} nädalat" +}, +withPreposition:{ +one:"ühe nädala", +other:"{{count}} nädala" +} +}, +aboutXMonths:{ +standalone:{ +one:"umbes üks kuu", +other:"umbes {{count}} kuud" +}, +withPreposition:{ +one:"umbes ühe kuu", +other:"umbes {{count}} kuu" +} +}, +xMonths:{ +standalone:{ +one:"üks kuu", +other:"{{count}} kuud" +}, +withPreposition:{ +one:"ühe kuu", +other:"{{count}} kuu" +} +}, +aboutXYears:{ +standalone:{ +one:"umbes üks aasta", +other:"umbes {{count}} aastat" +}, +withPreposition:{ +one:"umbes ühe aasta", +other:"umbes {{count}} aasta" +} +}, +xYears:{ +standalone:{ +one:"üks aasta", +other:"{{count}} aastat" +}, +withPreposition:{ +one:"ühe aasta", +other:"{{count}} aasta" +} +}, +overXYears:{ +standalone:{ +one:"rohkem kui üks aasta", +other:"rohkem kui {{count}} aastat" +}, +withPreposition:{ +one:"rohkem kui ühe aasta", +other:"rohkem kui {{count}} aasta" +} +}, +almostXYears:{ +standalone:{ +one:"peaaegu üks aasta", +other:"peaaegu {{count}} aastat" +}, +withPreposition:{ +one:"peaaegu ühe aasta", +other:"peaaegu {{count}} aasta" +} +} +}; +var formatDistance$60=function formatDistance$60(token,count,options){ +var usageGroup=options!==null&&options!==void 0&&options.addSuffix?formatDistanceLocale$59[token].withPreposition:formatDistanceLocale$59[token].standalone; +var result; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" pärast";else +return result+" eest"; +return result; +}; +var formatLong$63={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM y", +long:"d. MMMM y", +medium:"d. MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kell' {{time}}", +long:"{{date}} 'kell' {{time}}", +medium:"{{date}}. {{time}}", +short:"{{date}}. {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/et/_lib/formatRelative.js +var formatRelativeLocale$61={ +lastWeek:"'eelmine' eeee 'kell' p", +yesterday:"'eile kell' p", +today:"'täna kell' p", +tomorrow:"'homme kell' p", +nextWeek:"'järgmine' eeee 'kell' p", +other:"P" +}; +var formatRelative$61=function formatRelative$61(token,_date,_baseDate,_options){return formatRelativeLocale$61[token];}; +//#endregion +//#region dist/date-fns/locale/et/_lib/localize.js +var eraValues$60={ +narrow:["e.m.a","m.a.j"], +abbreviated:["e.m.a","m.a.j"], +wide:["enne meie ajaarvamist","meie ajaarvamise järgi"] +}; +var quarterValues$60={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$60={ +narrow:[ +"J", +"V", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jaan", +"veebr", +"märts", +"apr", +"mai", +"juuni", +"juuli", +"aug", +"sept", +"okt", +"nov", +"dets"], + +wide:[ +"jaanuar", +"veebruar", +"märts", +"aprill", +"mai", +"juuni", +"juuli", +"august", +"september", +"oktoober", +"november", +"detsember"] + +}; +var dayValues$60={ +narrow:[ +"P", +"E", +"T", +"K", +"N", +"R", +"L"], + +short:[ +"P", +"E", +"T", +"K", +"N", +"R", +"L"], + +abbreviated:[ +"pühap.", +"esmasp.", +"teisip.", +"kolmap.", +"neljap.", +"reede.", +"laup."], + +wide:[ +"pühapäev", +"esmaspäev", +"teisipäev", +"kolmapäev", +"neljapäev", +"reede", +"laupäev"] + +}; +var dayPeriodValues$60={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"kesköö", +noon:"keskpäev", +morning:"hommik", +afternoon:"pärastlõuna", +evening:"õhtu", +night:"öö" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"kesköö", +noon:"keskpäev", +morning:"hommik", +afternoon:"pärastlõuna", +evening:"õhtu", +night:"öö" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"kesköö", +noon:"keskpäev", +morning:"hommik", +afternoon:"pärastlõuna", +evening:"õhtu", +night:"öö" +} +}; +var formattingDayPeriodValues$47={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"keskööl", +noon:"keskpäeval", +morning:"hommikul", +afternoon:"pärastlõunal", +evening:"õhtul", +night:"öösel" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"keskööl", +noon:"keskpäeval", +morning:"hommikul", +afternoon:"pärastlõunal", +evening:"õhtul", +night:"öösel" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"keskööl", +noon:"keskpäeval", +morning:"hommikul", +afternoon:"pärastlõunal", +evening:"õhtul", +night:"öösel" +} +}; +var ordinalNumber$60=function ordinalNumber$60(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/et.js +/** +* @category Locales +* @summary Estonian locale. +* @language Estonian +* @iso-639-2 est +* @author Priit Hansen [@HansenPriit](https://github.com/priithansen) +*/ +var _et={ +code:"et", +formatDistance:formatDistance$60, +formatLong:formatLong$63, +formatRelative:formatRelative$61, +localize:{ +ordinalNumber:ordinalNumber$60, +era:buildLocalizeFn({ +values:eraValues$60, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$60, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$60, +defaultWidth:"wide", +formattingValues:monthValues$60, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$60, +defaultWidth:"wide", +formattingValues:dayValues$60, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$60, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$47, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^\d+\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i, +abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i, +wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^e/i,/^(m|p)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K[1234]/i, +wide:/^[1234](\.)? kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jvmasond]/i, +abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, +wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^v/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^v/i, +/^mär/i, +/^ap/i, +/^mai/i, +/^juun/i, +/^juul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[petknrl]/i, +short:/^[petknrl]/i, +abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, +wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^p/i, +/^e/i, +/^t/i, +/^k/i, +/^n/i, +/^r/i, +/^l/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^keskö/i, +noon:/^keskp/i, +morning:/hommik/i, +afternoon:/pärastlõuna/i, +evening:/õhtu/i, +night:/öö/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/eu/_lib/formatDistance.js +var formatDistanceLocale$58={ +lessThanXSeconds:{ +one:"segundo bat baino gutxiago", +other:"{{count}} segundo baino gutxiago" +}, +xSeconds:{ +one:"1 segundo", +other:"{{count}} segundo" +}, +halfAMinute:"minutu erdi", +lessThanXMinutes:{ +one:"minutu bat baino gutxiago", +other:"{{count}} minutu baino gutxiago" +}, +xMinutes:{ +one:"1 minutu", +other:"{{count}} minutu" +}, +aboutXHours:{ +one:"1 ordu gutxi gorabehera", +other:"{{count}} ordu gutxi gorabehera" +}, +xHours:{ +one:"1 ordu", +other:"{{count}} ordu" +}, +xDays:{ +one:"1 egun", +other:"{{count}} egun" +}, +aboutXWeeks:{ +one:"aste 1 inguru", +other:"{{count}} aste inguru" +}, +xWeeks:{ +one:"1 aste", +other:"{{count}} astean" +}, +aboutXMonths:{ +one:"1 hilabete gutxi gorabehera", +other:"{{count}} hilabete gutxi gorabehera" +}, +xMonths:{ +one:"1 hilabete", +other:"{{count}} hilabete" +}, +aboutXYears:{ +one:"1 urte gutxi gorabehera", +other:"{{count}} urte gutxi gorabehera" +}, +xYears:{ +one:"1 urte", +other:"{{count}} urte" +}, +overXYears:{ +one:"1 urte baino gehiago", +other:"{{count}} urte baino gehiago" +}, +almostXYears:{ +one:"ia 1 urte", +other:"ia {{count}} urte" +} +}; +var formatDistance$59=function formatDistance$59(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$58[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"en "+result;else +return"duela "+result; +return result; +}; +var formatLong$62={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'", +long:"y'ko' MMMM'ren' d'a'", +medium:"y MMM d", +short:"yy/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'tan' {{time}}", +long:"{{date}} 'tan' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/eu/_lib/formatRelative.js +var formatRelativeLocale$60={ +lastWeek:"'joan den' eeee, LT", +yesterday:"'atzo,' p", +today:"'gaur,' p", +tomorrow:"'bihar,' p", +nextWeek:"eeee, p", +other:"P" +}; +var formatRelativeLocalePlural$1={ +lastWeek:"'joan den' eeee, p", +yesterday:"'atzo,' p", +today:"'gaur,' p", +tomorrow:"'bihar,' p", +nextWeek:"eeee, p", +other:"P" +}; +var formatRelative$60=function formatRelative$60(token,date){ +if(date.getHours()!==1)return formatRelativeLocalePlural$1[token]; +return formatRelativeLocale$60[token]; +}; +//#endregion +//#region dist/date-fns/locale/eu/_lib/localize.js +var eraValues$59={ +narrow:["k.a.","k.o."], +abbreviated:["k.a.","k.o."], +wide:["kristo aurretik","kristo ondoren"] +}; +var quarterValues$59={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1H", +"2H", +"3H", +"4H"], + +wide:[ +"1. hiruhilekoa", +"2. hiruhilekoa", +"3. hiruhilekoa", +"4. hiruhilekoa"] + +}; +var monthValues$59={ +narrow:[ +"u", +"o", +"m", +"a", +"m", +"e", +"u", +"a", +"i", +"u", +"a", +"a"], + +abbreviated:[ +"urt", +"ots", +"mar", +"api", +"mai", +"eka", +"uzt", +"abu", +"ira", +"urr", +"aza", +"abe"], + +wide:[ +"urtarrila", +"otsaila", +"martxoa", +"apirila", +"maiatza", +"ekaina", +"uztaila", +"abuztua", +"iraila", +"urria", +"azaroa", +"abendua"] + +}; +var dayValues$59={ +narrow:[ +"i", +"a", +"a", +"a", +"o", +"o", +"l"], + +short:[ +"ig", +"al", +"as", +"az", +"og", +"or", +"lr"], + +abbreviated:[ +"iga", +"ast", +"ast", +"ast", +"ost", +"ost", +"lar"], + +wide:[ +"igandea", +"astelehena", +"asteartea", +"asteazkena", +"osteguna", +"ostirala", +"larunbata"] + +}; +var dayPeriodValues$59={ +narrow:{ +am:"a", +pm:"p", +midnight:"ge", +noon:"eg", +morning:"goiza", +afternoon:"arratsaldea", +evening:"arratsaldea", +night:"gaua" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"gauerdia", +noon:"eguerdia", +morning:"goiza", +afternoon:"arratsaldea", +evening:"arratsaldea", +night:"gaua" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"gauerdia", +noon:"eguerdia", +morning:"goiza", +afternoon:"arratsaldea", +evening:"arratsaldea", +night:"gaua" +} +}; +var formattingDayPeriodValues$46={ +narrow:{ +am:"a", +pm:"p", +midnight:"ge", +noon:"eg", +morning:"goizean", +afternoon:"arratsaldean", +evening:"arratsaldean", +night:"gauean" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"gauerdia", +noon:"eguerdia", +morning:"goizean", +afternoon:"arratsaldean", +evening:"arratsaldean", +night:"gauean" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"gauerdia", +noon:"eguerdia", +morning:"goizean", +afternoon:"arratsaldean", +evening:"arratsaldean", +night:"gauean" +} +}; +var ordinalNumber$59=function ordinalNumber$59(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/eu.js +/** +* @category Locales +* @summary Basque locale. +* @language Basque +* @iso-639-2 eus +* @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) +*/ +var _eu={ +code:"eu", +formatDistance:formatDistance$59, +formatLong:formatLong$62, +formatRelative:formatRelative$60, +localize:{ +ordinalNumber:ordinalNumber$59, +era:buildLocalizeFn({ +values:eraValues$59, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$59, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$59, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$59, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$59, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$46, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(.)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(k.a.|k.o.)/i, +abbreviated:/^(k.a.|k.o.)/i, +wide:/^(kristo aurretik|kristo ondoren)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/^k.a./i,/^k.o./i], +abbreviated:[/^(k.a.)/i,/^(k.o.)/i], +wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i] +}, +defaultParseWidth:"wide" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]H/i, +wide:/^[1234](.)? hiruhilekoa/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[uomaei]/i, +abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, +wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^u/i, +/^o/i, +/^m/i, +/^a/i, +/^m/i, +/^e/i, +/^u/i, +/^a/i, +/^i/i, +/^u/i, +/^a/i, +/^a/i], + +any:[ +/^urt/i, +/^ots/i, +/^mar/i, +/^api/i, +/^mai/i, +/^eka/i, +/^uzt/i, +/^abu/i, +/^ira/i, +/^urr/i, +/^aza/i, +/^abe/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[iaol]/i, +short:/^(ig|al|as|az|og|or|lr)/i, +abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i, +wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^i/i, +/^a/i, +/^a/i, +/^a/i, +/^o/i, +/^o/i, +/^l/i], + +short:[ +/^ig/i, +/^al/i, +/^as/i, +/^az/i, +/^og/i, +/^or/i, +/^lr/i], + +abbreviated:[ +/^iga/i, +/^ast/i, +/^ast/i, +/^ast/i, +/^ost/i, +/^ost/i, +/^lar/i], + +wide:[ +/^igandea/i, +/^astelehena/i, +/^asteartea/i, +/^asteazkena/i, +/^osteguna/i, +/^ostirala/i, +/^larunbata/i] + +}, +defaultParseWidth:"wide" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, +any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i +}, +defaultMatchWidth:"any", +parsePatterns:{ +narrow:{ +am:/^a/i, +pm:/^p/i, +midnight:/^ge/i, +noon:/^eg/i, +morning:/goiz/i, +afternoon:/arratsaldea/i, +evening:/arratsaldea/i, +night:/gau/i +}, +any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^gauerdia/i, +noon:/^eguerdia/i, +morning:/goiz/i, +afternoon:/arratsaldea/i, +evening:/arratsaldea/i, +night:/gau/i +} +}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/formatDistance.js +var formatDistanceLocale$57={ +lessThanXSeconds:{ +one:"کمتر از یک ثانیه", +other:"کمتر از {{count}} ثانیه" +}, +xSeconds:{ +one:"1 ثانیه", +other:"{{count}} ثانیه" +}, +halfAMinute:"نیم دقیقه", +lessThanXMinutes:{ +one:"کمتر از یک دقیقه", +other:"کمتر از {{count}} دقیقه" +}, +xMinutes:{ +one:"1 دقیقه", +other:"{{count}} دقیقه" +}, +aboutXHours:{ +one:"حدود 1 ساعت", +other:"حدود {{count}} ساعت" +}, +xHours:{ +one:"1 ساعت", +other:"{{count}} ساعت" +}, +xDays:{ +one:"1 روز", +other:"{{count}} روز" +}, +aboutXWeeks:{ +one:"حدود 1 هفته", +other:"حدود {{count}} هفته" +}, +xWeeks:{ +one:"1 هفته", +other:"{{count}} هفته" +}, +aboutXMonths:{ +one:"حدود 1 ماه", +other:"حدود {{count}} ماه" +}, +xMonths:{ +one:"1 ماه", +other:"{{count}} ماه" +}, +aboutXYears:{ +one:"حدود 1 سال", +other:"حدود {{count}} سال" +}, +xYears:{ +one:"1 سال", +other:"{{count}} سال" +}, +overXYears:{ +one:"بیشتر از 1 سال", +other:"بیشتر از {{count}} سال" +}, +almostXYears:{ +one:"نزدیک 1 سال", +other:"نزدیک {{count}} سال" +} +}; +var formatDistance$58=function formatDistance$58(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$57[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"در "+result;else +return result+" قبل"; +return result; +}; +var formatLong$61={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE do MMMM y", +long:"do MMMM y", +medium:"d MMM y", +short:"yyyy/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'در' {{time}}", +long:"{{date}} 'در' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/formatRelative.js +var formatRelativeLocale$59={ +lastWeek:"eeee 'گذشته در' p", +yesterday:"'دیروز در' p", +today:"'امروز در' p", +tomorrow:"'فردا در' p", +nextWeek:"eeee 'در' p", +other:"P" +}; +var formatRelative$59=function formatRelative$59(token,_date,_baseDate,_options){return formatRelativeLocale$59[token];}; +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/localize.js +var eraValues$58={ +narrow:["ق","ب"], +abbreviated:["ق.م.","ب.م."], +wide:["قبل از میلاد","بعد از میلاد"] +}; +var quarterValues$58={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"س‌م1", +"س‌م2", +"س‌م3", +"س‌م4"], + +wide:[ +"سه‌ماهه 1", +"سه‌ماهه 2", +"سه‌ماهه 3", +"سه‌ماهه 4"] + +}; +var monthValues$58={ +narrow:[ +"ژ", +"ف", +"م", +"آ", +"م", +"ج", +"ج", +"آ", +"س", +"ا", +"ن", +"د"], + +abbreviated:[ +"ژانـ", +"فور", +"مارس", +"آپر", +"می", +"جون", +"جولـ", +"آگو", +"سپتـ", +"اکتـ", +"نوامـ", +"دسامـ"], + +wide:[ +"ژانویه", +"فوریه", +"مارس", +"آپریل", +"می", +"جون", +"جولای", +"آگوست", +"سپتامبر", +"اکتبر", +"نوامبر", +"دسامبر"] + +}; +var dayValues$58={ +narrow:[ +"ی", +"د", +"س", +"چ", +"پ", +"ج", +"ش"], + +short:[ +"1ش", +"2ش", +"3ش", +"4ش", +"5ش", +"ج", +"ش"], + +abbreviated:[ +"یکشنبه", +"دوشنبه", +"سه‌شنبه", +"چهارشنبه", +"پنجشنبه", +"جمعه", +"شنبه"], + +wide:[ +"یکشنبه", +"دوشنبه", +"سه‌شنبه", +"چهارشنبه", +"پنجشنبه", +"جمعه", +"شنبه"] + +}; +var dayPeriodValues$58={ +narrow:{ +am:"ق", +pm:"ب", +midnight:"ن", +noon:"ظ", +morning:"ص", +afternoon:"ب.ظ.", +evening:"ع", +night:"ش" +}, +abbreviated:{ +am:"ق.ظ.", +pm:"ب.ظ.", +midnight:"نیمه‌شب", +noon:"ظهر", +morning:"صبح", +afternoon:"بعدازظهر", +evening:"عصر", +night:"شب" +}, +wide:{ +am:"قبل‌ازظهر", +pm:"بعدازظهر", +midnight:"نیمه‌شب", +noon:"ظهر", +morning:"صبح", +afternoon:"بعدازظهر", +evening:"عصر", +night:"شب" +} +}; +var formattingDayPeriodValues$45={ +narrow:{ +am:"ق", +pm:"ب", +midnight:"ن", +noon:"ظ", +morning:"ص", +afternoon:"ب.ظ.", +evening:"ع", +night:"ش" +}, +abbreviated:{ +am:"ق.ظ.", +pm:"ب.ظ.", +midnight:"نیمه‌شب", +noon:"ظهر", +morning:"صبح", +afternoon:"بعدازظهر", +evening:"عصر", +night:"شب" +}, +wide:{ +am:"قبل‌ازظهر", +pm:"بعدازظهر", +midnight:"نیمه‌شب", +noon:"ظهر", +morning:"صبح", +afternoon:"بعدازظهر", +evening:"عصر", +night:"شب" +} +}; +var ordinalNumber$58=function ordinalNumber$58(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/fa-IR.js +/** +* @category Locales +* @summary Persian/Farsi locale (Iran). +* @language Persian +* @iso-639-2 ira +* @author Morteza Ziyae [@mort3za](https://github.com/mort3za) +*/ +var _faIR={ +code:"fa-IR", +formatDistance:formatDistance$58, +formatLong:formatLong$61, +formatRelative:formatRelative$59, +localize:{ +ordinalNumber:ordinalNumber$58, +era:buildLocalizeFn({ +values:eraValues$58, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$58, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$58, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$58, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$58, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$45, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ق|ب)/i, +abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, +wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^قبل/i,/^بعد/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^س‌م[1234]/i, +wide:/^سه‌ماهه [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[جژفمآاماسند]/i, +abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, +wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^(ژ|ج)/i, +/^ف/i, +/^م/i, +/^(آ|ا)/i, +/^م/i, +/^(ژ|ج)/i, +/^(ج|ژ)/i, +/^(آ|ا)/i, +/^س/i, +/^ا/i, +/^ن/i, +/^د/i], + +any:[ +/^ژا/i, +/^ف/i, +/^ما/i, +/^آپ/i, +/^(می|مه)/i, +/^(ژوئن|جون)/i, +/^(ژوئی|جول)/i, +/^(اوت|آگ)/i, +/^س/i, +/^(اوک|اک)/i, +/^ن/i, +/^د/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[شیدسچپج]/i, +short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, +abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, +wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ی/i, +/^دو/i, +/^س/i, +/^چ/i, +/^پ/i, +/^ج/i, +/^ش/i], + +any:[ +/^(ی|1ش|یکشنبه)/i, +/^(د|2ش|دوشنبه)/i, +/^(س|3ش|سه‌شنبه)/i, +/^(چ|4ش|چهارشنبه)/i, +/^(پ|5ش|پنجشنبه)/i, +/^(ج|جمعه)/i, +/^(ش|شنبه)/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, +abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, +wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^(ق|ق.ظ.|قبل‌ازظهر)/i, +pm:/^(ب|ب.ظ.|بعدازظهر)/i, +midnight:/^(‌نیمه‌شب|ن)/i, +noon:/^(ظ|ظهر)/i, +morning:/(ص|صبح)/i, +afternoon:/(ب|ب.ظ.|بعدازظهر)/i, +evening:/(ع|عصر)/i, +night:/(ش|شب)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:6, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/fi/_lib/formatDistance.js +function futureSeconds(text){ +return text.replace(/sekuntia?/,"sekunnin"); +} +function futureMinutes(text){ +return text.replace(/minuuttia?/,"minuutin"); +} +function futureHours(text){ +return text.replace(/tuntia?/,"tunnin"); +} +function futureDays(text){ +return text.replace(/päivää?/,"päivän"); +} +function futureWeeks(text){ +return text.replace(/(viikko|viikkoa)/,"viikon"); +} +function futureMonths(text){ +return text.replace(/(kuukausi|kuukautta)/,"kuukauden"); +} +function futureYears(text){ +return text.replace(/(vuosi|vuotta)/,"vuoden"); +} +var formatDistanceLocale$56={ +lessThanXSeconds:{ +one:"alle sekunti", +other:"alle {{count}} sekuntia", +futureTense:futureSeconds +}, +xSeconds:{ +one:"sekunti", +other:"{{count}} sekuntia", +futureTense:futureSeconds +}, +halfAMinute:{ +one:"puoli minuuttia", +other:"puoli minuuttia", +futureTense:function futureTense(_text){return"puolen minuutin";} +}, +lessThanXMinutes:{ +one:"alle minuutti", +other:"alle {{count}} minuuttia", +futureTense:futureMinutes +}, +xMinutes:{ +one:"minuutti", +other:"{{count}} minuuttia", +futureTense:futureMinutes +}, +aboutXHours:{ +one:"noin tunti", +other:"noin {{count}} tuntia", +futureTense:futureHours +}, +xHours:{ +one:"tunti", +other:"{{count}} tuntia", +futureTense:futureHours +}, +xDays:{ +one:"päivä", +other:"{{count}} päivää", +futureTense:futureDays +}, +aboutXWeeks:{ +one:"noin viikko", +other:"noin {{count}} viikkoa", +futureTense:futureWeeks +}, +xWeeks:{ +one:"viikko", +other:"{{count}} viikkoa", +futureTense:futureWeeks +}, +aboutXMonths:{ +one:"noin kuukausi", +other:"noin {{count}} kuukautta", +futureTense:futureMonths +}, +xMonths:{ +one:"kuukausi", +other:"{{count}} kuukautta", +futureTense:futureMonths +}, +aboutXYears:{ +one:"noin vuosi", +other:"noin {{count}} vuotta", +futureTense:futureYears +}, +xYears:{ +one:"vuosi", +other:"{{count}} vuotta", +futureTense:futureYears +}, +overXYears:{ +one:"yli vuosi", +other:"yli {{count}} vuotta", +futureTense:futureYears +}, +almostXYears:{ +one:"lähes vuosi", +other:"lähes {{count}} vuotta", +futureTense:futureYears +} +}; +var formatDistance$57=function formatDistance$57(token,count,options){ +var tokenValue=formatDistanceLocale$56[token]; +var result=count===1?tokenValue.one:tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return tokenValue.futureTense(result)+" kuluttua";else +return result+" sitten"; +return result; +}; +var formatLong$60={ +date:buildFormatLongFn({ +formats:{ +full:"eeee d. MMMM y", +long:"d. MMMM y", +medium:"d. MMM y", +short:"d.M.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH.mm.ss zzzz", +long:"HH.mm.ss z", +medium:"HH.mm.ss", +short:"HH.mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'klo' {{time}}", +long:"{{date}} 'klo' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/fi/_lib/formatRelative.js +var formatRelativeLocale$58={ +lastWeek:"'viime' eeee 'klo' p", +yesterday:"'eilen klo' p", +today:"'tänään klo' p", +tomorrow:"'huomenna klo' p", +nextWeek:"'ensi' eeee 'klo' p", +other:"P" +}; +var formatRelative$58=function formatRelative$58(token,_date,_baseDate,_options){return formatRelativeLocale$58[token];}; +//#endregion +//#region dist/date-fns/locale/fi/_lib/localize.js +var eraValues$57={ +narrow:["eaa.","jaa."], +abbreviated:["eaa.","jaa."], +wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"] +}; +var quarterValues$57={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. kvartaali", +"2. kvartaali", +"3. kvartaali", +"4. kvartaali"] + +}; +var monthValues$57={ +narrow:[ +"T", +"H", +"M", +"H", +"T", +"K", +"H", +"E", +"S", +"L", +"M", +"J"], + +abbreviated:[ +"tammi", +"helmi", +"maalis", +"huhti", +"touko", +"kesä", +"heinä", +"elo", +"syys", +"loka", +"marras", +"joulu"], + +wide:[ +"tammikuu", +"helmikuu", +"maaliskuu", +"huhtikuu", +"toukokuu", +"kesäkuu", +"heinäkuu", +"elokuu", +"syyskuu", +"lokakuu", +"marraskuu", +"joulukuu"] + +}; +var formattingMonthValues$11={ +narrow:monthValues$57.narrow, +abbreviated:monthValues$57.abbreviated, +wide:[ +"tammikuuta", +"helmikuuta", +"maaliskuuta", +"huhtikuuta", +"toukokuuta", +"kesäkuuta", +"heinäkuuta", +"elokuuta", +"syyskuuta", +"lokakuuta", +"marraskuuta", +"joulukuuta"] + +}; +var dayValues$57={ +narrow:[ +"S", +"M", +"T", +"K", +"T", +"P", +"L"], + +short:[ +"su", +"ma", +"ti", +"ke", +"to", +"pe", +"la"], + +abbreviated:[ +"sunn.", +"maan.", +"tiis.", +"kesk.", +"torst.", +"perj.", +"la"], + +wide:[ +"sunnuntai", +"maanantai", +"tiistai", +"keskiviikko", +"torstai", +"perjantai", +"lauantai"] + +}; +var formattingDayValues$3={ +narrow:dayValues$57.narrow, +short:dayValues$57.short, +abbreviated:dayValues$57.abbreviated, +wide:[ +"sunnuntaina", +"maanantaina", +"tiistaina", +"keskiviikkona", +"torstaina", +"perjantaina", +"lauantaina"] + +}; +var dayPeriodValues$57={ +narrow:{ +am:"ap", +pm:"ip", +midnight:"keskiyö", +noon:"keskipäivä", +morning:"ap", +afternoon:"ip", +evening:"illalla", +night:"yöllä" +}, +abbreviated:{ +am:"ap", +pm:"ip", +midnight:"keskiyö", +noon:"keskipäivä", +morning:"ap", +afternoon:"ip", +evening:"illalla", +night:"yöllä" +}, +wide:{ +am:"ap", +pm:"ip", +midnight:"keskiyöllä", +noon:"keskipäivällä", +morning:"aamupäivällä", +afternoon:"iltapäivällä", +evening:"illalla", +night:"yöllä" +} +}; +var ordinalNumber$57=function ordinalNumber$57(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/fi.js +/** +* @category Locales +* @summary Finnish locale. +* @language Finnish +* @iso-639-2 fin +* @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) +* @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) +*/ +var _fi={ +code:"fi", +formatDistance:formatDistance$57, +formatLong:formatLong$60, +formatRelative:formatRelative$58, +localize:{ +ordinalNumber:ordinalNumber$57, +era:buildLocalizeFn({ +values:eraValues$57, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$57, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$57, +defaultWidth:"wide", +formattingValues:formattingMonthValues$11, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$57, +defaultWidth:"wide", +formattingValues:formattingDayValues$3, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$57, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(e|j)/i, +abbreviated:/^(eaa.|jaa.)/i, +wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^e/i,/^j/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234]\.? kvartaali/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[thmkeslj]/i, +abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, +wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^t/i, +/^h/i, +/^m/i, +/^h/i, +/^t/i, +/^k/i, +/^h/i, +/^e/i, +/^s/i, +/^l/i, +/^m/i, +/^j/i], + +any:[ +/^ta/i, +/^hel/i, +/^maa/i, +/^hu/i, +/^to/i, +/^k/i, +/^hei/i, +/^e/i, +/^s/i, +/^l/i, +/^mar/i, +/^j/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtkpl]/i, +short:/^(su|ma|ti|ke|to|pe|la)/i, +abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, +wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^k/i, +/^t/i, +/^p/i, +/^l/i], + +any:[ +/^s/i, +/^m/i, +/^ti/i, +/^k/i, +/^to/i, +/^p/i, +/^l/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, +any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ap/i, +pm:/^ip/i, +midnight:/^keskiyö/i, +noon:/^keskipäivä/i, +morning:/aamupäivällä/i, +afternoon:/iltapäivällä/i, +evening:/illalla/i, +night:/yöllä/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale$55={ +lessThanXSeconds:{ +one:"moins d’une seconde", +other:"moins de {{count}} secondes" +}, +xSeconds:{ +one:"1 seconde", +other:"{{count}} secondes" +}, +halfAMinute:"30 secondes", +lessThanXMinutes:{ +one:"moins d’une minute", +other:"moins de {{count}} minutes" +}, +xMinutes:{ +one:"1 minute", +other:"{{count}} minutes" +}, +aboutXHours:{ +one:"environ 1 heure", +other:"environ {{count}} heures" +}, +xHours:{ +one:"1 heure", +other:"{{count}} heures" +}, +xDays:{ +one:"1 jour", +other:"{{count}} jours" +}, +aboutXWeeks:{ +one:"environ 1 semaine", +other:"environ {{count}} semaines" +}, +xWeeks:{ +one:"1 semaine", +other:"{{count}} semaines" +}, +aboutXMonths:{ +one:"environ 1 mois", +other:"environ {{count}} mois" +}, +xMonths:{ +one:"1 mois", +other:"{{count}} mois" +}, +aboutXYears:{ +one:"environ 1 an", +other:"environ {{count}} ans" +}, +xYears:{ +one:"1 an", +other:"{{count}} ans" +}, +overXYears:{ +one:"plus d’un an", +other:"plus de {{count}} ans" +}, +almostXYears:{ +one:"presqu’un an", +other:"presque {{count}} ans" +} +}; +var formatDistance$56=function formatDistance$56(token,count,options){ +var result; +var form=formatDistanceLocale$55[token]; +if(typeof form==="string")result=form;else +if(count===1)result=form.one;else +result=form.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"dans "+result;else +return"il y a "+result; +return result; +}; +var formatLong$59={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'à' {{time}}", +long:"{{date}} 'à' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatRelative.js +var formatRelativeLocale$57={ +lastWeek:"eeee 'dernier à' p", +yesterday:"'hier à' p", +today:"'aujourd’hui à' p", +tomorrow:"'demain à' p'", +nextWeek:"eeee 'prochain à' p", +other:"P" +}; +var formatRelative$57=function formatRelative$57(token,_date,_baseDate,_options){return formatRelativeLocale$57[token];}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues$56={ +narrow:["av. J.-C","ap. J.-C"], +abbreviated:["av. J.-C","ap. J.-C"], +wide:["avant Jésus-Christ","après Jésus-Christ"] +}; +var quarterValues$56={ +narrow:[ +"T1", +"T2", +"T3", +"T4"], + +abbreviated:[ +"1er trim.", +"2ème trim.", +"3ème trim.", +"4ème trim."], + +wide:[ +"1er trimestre", +"2ème trimestre", +"3ème trimestre", +"4ème trimestre"] + +}; +var monthValues$56={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"janv.", +"févr.", +"mars", +"avr.", +"mai", +"juin", +"juil.", +"août", +"sept.", +"oct.", +"nov.", +"déc."], + +wide:[ +"janvier", +"février", +"mars", +"avril", +"mai", +"juin", +"juillet", +"août", +"septembre", +"octobre", +"novembre", +"décembre"] + +}; +var dayValues$56={ +narrow:[ +"D", +"L", +"M", +"M", +"J", +"V", +"S"], + +short:[ +"di", +"lu", +"ma", +"me", +"je", +"ve", +"sa"], + +abbreviated:[ +"dim.", +"lun.", +"mar.", +"mer.", +"jeu.", +"ven.", +"sam."], + +wide:[ +"dimanche", +"lundi", +"mardi", +"mercredi", +"jeudi", +"vendredi", +"samedi"] + +}; +var dayPeriodValues$56={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"minuit", +noon:"midi", +morning:"mat.", +afternoon:"ap.m.", +evening:"soir", +night:"mat." +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"minuit", +noon:"midi", +morning:"matin", +afternoon:"après-midi", +evening:"soir", +night:"matin" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"minuit", +noon:"midi", +morning:"du matin", +afternoon:"de l’après-midi", +evening:"du soir", +night:"du matin" +} +}; +var ordinalNumber$56=function ordinalNumber$56(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +if(number===0)return"0"; +var feminineUnits=[ +"year", +"week", +"hour", +"minute", +"second"]; + +var suffix; +if(number===1)suffix=unit&&feminineUnits.includes(unit)?"ère":"er";else +suffix="ème"; +return number+suffix; +}; +var LONG_MONTHS_TOKENS=["MMM","MMMM"]; +var localize$56={ +preprocessor:function preprocessor(date,parts){ +if(date.getDate()===1)return parts; +if(!parts.some(function(part){return part.isToken&&LONG_MONTHS_TOKENS.includes(part.value);}))return parts; +return parts.map(function(part){return part.isToken&&part.value==="do"?{ +isToken:true, +value:"d" +}:part;}); +}, +ordinalNumber:ordinalNumber$56, +era:buildLocalizeFn({ +values:eraValues$56, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$56, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$56, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$56, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$56, +defaultWidth:"wide" +}) +}; +var match$56={ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, +abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, +wide:/^(avant Jésus-Christ|après Jésus-Christ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^av/i,/^ap/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^T?[1234]/i, +abbreviated:/^[1234](er|ème|e)? trim\.?/i, +wide:/^[1234](er|ème|e)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, +wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^av/i, +/^ma/i, +/^juin/i, +/^juil/i, +/^ao/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[lmjvsd]/i, +short:/^(di|lu|ma|me|je|ve|sa)/i, +abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, +wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^j/i, +/^v/i, +/^s/i], + +any:[ +/^di/i, +/^lu/i, +/^ma/i, +/^me/i, +/^je/i, +/^ve/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, +any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^min/i, +noon:/^mid/i, +morning:/mat/i, +afternoon:/ap/i, +evening:/soir/i, +night:/nuit/i +}}, +defaultParseWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/fr.js +/** +* @category Locales +* @summary French locale. +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +*/ +var _fr={ +code:"fr", +formatDistance:formatDistance$56, +formatLong:formatLong$59, +formatRelative:formatRelative$57, +localize:localize$56, +match:match$56, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/fr-CA.js +/** +* @category Locales +* @summary French locale (Canada). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) +*/ +var _frCA={ +code:"fr-CA", +formatDistance:formatDistance$56, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"yy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'à' {{time}}", +long:"{{date}} 'à' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$57, +localize:localize$56, +match:match$56, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +var formatLong$57={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'à' {{time}}", +long:"{{date}} 'à' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/fr-CH/_lib/formatRelative.js +var formatRelativeLocale$56={ +lastWeek:"eeee 'la semaine dernière à' p", +yesterday:"'hier à' p", +today:"'aujourd’hui à' p", +tomorrow:"'demain à' p'", +nextWeek:"eeee 'la semaine prochaine à' p", +other:"P" +}; +var formatRelative$56=function formatRelative$56(token,_date,_baseDate,_options){return formatRelativeLocale$56[token];}; +//#endregion +//#region dist/date-fns/locale/fr-CH.js +/** +* @category Locales +* @summary French locale (Switzerland). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var _frCH={ +code:"fr-CH", +formatDistance:formatDistance$56, +formatLong:formatLong$57, +formatRelative:formatRelative$56, +localize:localize$56, +match:match$56, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/fy/_lib/formatDistance.js +var formatDistanceLocale$54={ +lessThanXSeconds:{ +one:"minder as 1 sekonde", +other:"minder as {{count}} sekonden" +}, +xSeconds:{ +one:"1 sekonde", +other:"{{count}} sekonden" +}, +halfAMinute:"oardel minút", +lessThanXMinutes:{ +one:"minder as 1 minút", +other:"minder as {{count}} minuten" +}, +xMinutes:{ +one:"1 minút", +other:"{{count}} minuten" +}, +aboutXHours:{ +one:"sawat 1 oere", +other:"sawat {{count}} oere" +}, +xHours:{ +one:"1 oere", +other:"{{count}} oere" +}, +xDays:{ +one:"1 dei", +other:"{{count}} dagen" +}, +aboutXWeeks:{ +one:"sawat 1 wike", +other:"sawat {{count}} wiken" +}, +xWeeks:{ +one:"1 wike", +other:"{{count}} wiken" +}, +aboutXMonths:{ +one:"sawat 1 moanne", +other:"sawat {{count}} moannen" +}, +xMonths:{ +one:"1 moanne", +other:"{{count}} moannen" +}, +aboutXYears:{ +one:"sawat 1 jier", +other:"sawat {{count}} jier" +}, +xYears:{ +one:"1 jier", +other:"{{count}} jier" +}, +overXYears:{ +one:"mear as 1 jier", +other:"mear as {{count}}s jier" +}, +almostXYears:{ +one:"hast 1 jier", +other:"hast {{count}} jier" +} +}; +var formatDistance$55=function formatDistance$55(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$54[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"oer "+result;else +return result+" lyn"; +return result; +}; +var formatLong$56={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd-MM-y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'om' {{time}}", +long:"{{date}} 'om' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/fy/_lib/formatRelative.js +var formatRelativeLocale$55={ +lastWeek:"'ôfrûne' eeee 'om' p", +yesterday:"'juster om' p", +today:"'hjoed om' p", +tomorrow:"'moarn om' p", +nextWeek:"eeee 'om' p", +other:"P" +}; +var formatRelative$55=function formatRelative$55(token,_date,_baseDate,_options){return formatRelativeLocale$55[token];}; +//#endregion +//#region dist/date-fns/locale/fy/_lib/localize.js +var eraValues$55={ +narrow:["f.K.","n.K."], +abbreviated:["f.Kr.","n.Kr."], +wide:["foar Kristus","nei Kristus"] +}; +var quarterValues$55={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1e fearnsjier", +"2e fearnsjier", +"3e fearnsjier", +"4e fearnsjier"] + +}; +var monthValues$55={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan.", +"feb.", +"mrt.", +"apr.", +"mai.", +"jun.", +"jul.", +"aug.", +"sep.", +"okt.", +"nov.", +"des."], + +wide:[ +"jannewaris", +"febrewaris", +"maart", +"april", +"maaie", +"juny", +"july", +"augustus", +"septimber", +"oktober", +"novimber", +"desimber"] + +}; +var dayValues$55={ +narrow:[ +"s", +"m", +"t", +"w", +"t", +"f", +"s"], + +short:[ +"si", +"mo", +"ti", +"wo", +"to", +"fr", +"so"], + +abbreviated:[ +"snein", +"moa", +"tii", +"woa", +"ton", +"fre", +"sneon"], + +wide:[ +"snein", +"moandei", +"tiisdei", +"woansdei", +"tongersdei", +"freed", +"sneon"] + +}; +var dayPeriodValues$55={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"middei", +morning:"moarns", +afternoon:"middeis", +evening:"jûns", +night:"nachts" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"middei", +morning:"moarns", +afternoon:"middeis", +evening:"jûns", +night:"nachts" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"middei", +morning:"moarns", +afternoon:"middeis", +evening:"jûns", +night:"nachts" +} +}; +var ordinalNumber$55=function ordinalNumber$55(dirtyNumber,_options){ +return Number(dirtyNumber)+"e"; +}; +//#endregion +//#region dist/date-fns/locale/fy.js +/** +* @category Locales +* @summary Western Frisian locale (Netherlands). +* @language West Frisian +* @iso-639-2 fry +* @author Damon Asberg [@damon02](https://github.com/damon02) +*/ +var _fy={ +code:"fy", +formatDistance:formatDistance$55, +formatLong:formatLong$56, +formatRelative:formatRelative$55, +localize:{ +ordinalNumber:ordinalNumber$55, +era:buildLocalizeFn({ +values:eraValues$55, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$55, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$55, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$55, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$55, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)e?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([fn]\.? ?K\.?)/, +abbreviated:/^([fn]\. ?Kr\.?)/, +wide:/^((foar|nei) Kristus)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^f/,/^n/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K[1234]/i, +wide:/^[1234]e fearnsjier/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, +wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^jan/i, +/^feb/i, +/^m(r|a)/i, +/^apr/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^aug/i, +/^sep/i, +/^okt/i, +/^nov/i, +/^des/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtwf]/i, +short:/^(si|mo|ti|wo|to|fr|so)/i, +abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i, +wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^sn/i, +/^mo/i, +/^ti/i, +/^wo/i, +/^to/i, +/^fr/i, +/^sn/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/^middernacht/i, +noon:/^middei/i, +morning:/moarns/i, +afternoon:/^middeis/i, +evening:/jûns/i, +night:/nachts/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/gd/_lib/formatDistance.js +var formatDistanceLocale$53={ +lessThanXSeconds:{ +one:"nas lugha na diog", +other:"nas lugha na {{count}} diogan" +}, +xSeconds:{ +one:"1 diog", +two:"2 dhiog", +twenty:"20 diog", +other:"{{count}} diogan" +}, +halfAMinute:"leth mhionaid", +lessThanXMinutes:{ +one:"nas lugha na mionaid", +other:"nas lugha na {{count}} mionaidean" +}, +xMinutes:{ +one:"1 mionaid", +two:"2 mhionaid", +twenty:"20 mionaid", +other:"{{count}} mionaidean" +}, +aboutXHours:{ +one:"mu uair de thìde", +other:"mu {{count}} uairean de thìde" +}, +xHours:{ +one:"1 uair de thìde", +two:"2 uair de thìde", +twenty:"20 uair de thìde", +other:"{{count}} uairean de thìde" +}, +xDays:{ +one:"1 là", +other:"{{count}} là" +}, +aboutXWeeks:{ +one:"mu 1 seachdain", +other:"mu {{count}} seachdainean" +}, +xWeeks:{ +one:"1 seachdain", +other:"{{count}} seachdainean" +}, +aboutXMonths:{ +one:"mu mhìos", +other:"mu {{count}} mìosan" +}, +xMonths:{ +one:"1 mìos", +other:"{{count}} mìosan" +}, +aboutXYears:{ +one:"mu bhliadhna", +other:"mu {{count}} bliadhnaichean" +}, +xYears:{ +one:"1 bhliadhna", +other:"{{count}} bliadhna" +}, +overXYears:{ +one:"còrr is bliadhna", +other:"còrr is {{count}} bliadhnaichean" +}, +almostXYears:{ +one:"cha mhòr bliadhna", +other:"cha mhòr {{count}} bliadhnaichean" +} +}; +var formatDistance$54=function formatDistance$54(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$53[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2&&!!tokenValue.two)result=tokenValue.two;else +if(count===20&&!!tokenValue.twenty)result=tokenValue.twenty;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"ann an "+result;else +return"o chionn "+result; +return result; +}; +var formatLong$55={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'aig' {{time}}", +long:"{{date}} 'aig' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/gd/_lib/formatRelative.js +var formatRelativeLocale$54={ +lastWeek:"'mu dheireadh' eeee 'aig' p", +yesterday:"'an-dè aig' p", +today:"'an-diugh aig' p", +tomorrow:"'a-màireach aig' p", +nextWeek:"eeee 'aig' p", +other:"P" +}; +var formatRelative$54=function formatRelative$54(token,_date,_baseDate,_options){return formatRelativeLocale$54[token];}; +//#endregion +//#region dist/date-fns/locale/gd/_lib/localize.js +var eraValues$54={ +narrow:["R","A"], +abbreviated:["RC","AD"], +wide:["ro Chrìosta","anno domini"] +}; +var quarterValues$54={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"C1", +"C2", +"C3", +"C4"], + +wide:[ +"a' chiad chairteal", +"an dàrna cairteal", +"an treas cairteal", +"an ceathramh cairteal"] + +}; +var monthValues$54={ +narrow:[ +"F", +"G", +"M", +"G", +"C", +"Ò", +"I", +"L", +"S", +"D", +"S", +"D"], + +abbreviated:[ +"Faoi", +"Gear", +"Màrt", +"Gibl", +"Cèit", +"Ògmh", +"Iuch", +"Lùn", +"Sult", +"Dàmh", +"Samh", +"Dùbh"], + +wide:[ +"Am Faoilleach", +"An Gearran", +"Am Màrt", +"An Giblean", +"An Cèitean", +"An t-Ògmhios", +"An t-Iuchar", +"An Lùnastal", +"An t-Sultain", +"An Dàmhair", +"An t-Samhain", +"An Dùbhlachd"] + +}; +var dayValues$54={ +narrow:[ +"D", +"L", +"M", +"C", +"A", +"H", +"S"], + +short:[ +"Dò", +"Lu", +"Mà", +"Ci", +"Ar", +"Ha", +"Sa"], + +abbreviated:[ +"Did", +"Dil", +"Dim", +"Dic", +"Dia", +"Dih", +"Dis"], + +wide:[ +"Didòmhnaich", +"Diluain", +"Dimàirt", +"Diciadain", +"Diardaoin", +"Dihaoine", +"Disathairne"] + +}; +var dayPeriodValues$54={ +narrow:{ +am:"m", +pm:"f", +midnight:"m.o.", +noon:"m.l.", +morning:"madainn", +afternoon:"feasgar", +evening:"feasgar", +night:"oidhche" +}, +abbreviated:{ +am:"M.", +pm:"F.", +midnight:"meadhan oidhche", +noon:"meadhan là", +morning:"madainn", +afternoon:"feasgar", +evening:"feasgar", +night:"oidhche" +}, +wide:{ +am:"m.", +pm:"f.", +midnight:"meadhan oidhche", +noon:"meadhan là", +morning:"madainn", +afternoon:"feasgar", +evening:"feasgar", +night:"oidhche" +} +}; +var formattingDayPeriodValues$44={ +narrow:{ +am:"m", +pm:"f", +midnight:"m.o.", +noon:"m.l.", +morning:"sa mhadainn", +afternoon:"feasgar", +evening:"feasgar", +night:"air an oidhche" +}, +abbreviated:{ +am:"M.", +pm:"F.", +midnight:"meadhan oidhche", +noon:"meadhan là", +morning:"sa mhadainn", +afternoon:"feasgar", +evening:"feasgar", +night:"air an oidhche" +}, +wide:{ +am:"m.", +pm:"f.", +midnight:"meadhan oidhche", +noon:"meadhan là", +morning:"sa mhadainn", +afternoon:"feasgar", +evening:"feasgar", +night:"air an oidhche" +} +}; +var ordinalNumber$54=function ordinalNumber$54(dirtyNumber){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1:return number+"d"; +case 2:return number+"na"; +} +if(rem100===12)return number+"na"; +return number+"mh"; +}; +//#endregion +//#region dist/date-fns/locale/gd.js +/** +* @category Locales +* @summary Scottish Gaelic. +* @language Scottish Gaelic +* @iso-639-2 gla +* @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) +*/ +var _gd={ +code:"gd", +formatDistance:formatDistance$54, +formatLong:formatLong$55, +formatRelative:formatRelative$54, +localize:{ +ordinalNumber:ordinalNumber$54, +era:buildLocalizeFn({ +values:eraValues$54, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$54, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$54, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$54, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$54, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$44, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(d|na|tr|mh)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(r|a)/i, +abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, +wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b/i,/^(a|c)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^c[1234]/i, +wide:/^[1234](cd|na|tr|mh)? cairteal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[fgmcòilsd]/i, +abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, +wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^f/i, +/^g/i, +/^m/i, +/^g/i, +/^c/i, +/^ò/i, +/^i/i, +/^l/i, +/^s/i, +/^d/i, +/^s/i, +/^d/i], + +any:[ +/^fa/i, +/^ge/i, +/^mà/i, +/^gi/i, +/^c/i, +/^ò/i, +/^i/i, +/^l/i, +/^su/i, +/^d/i, +/^sa/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmcahs]/i, +short:/^(dò|lu|mà|ci|ar|ha|sa)/i, +abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i, +wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^c/i, +/^a/i, +/^h/i, +/^s/i], + +any:[ +/^d/i, +/^l/i, +/^m/i, +/^c/i, +/^a/i, +/^h/i, +/^s/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, +any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^m/i, +pm:/^f/i, +midnight:/^meadhan oidhche/i, +noon:/^meadhan là/i, +morning:/sa mhadainn/i, +afternoon:/feasgar/i, +evening:/feasgar/i, +night:/air an oidhche/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/gl/_lib/formatDistance.js +var formatDistanceLocale$52={ +lessThanXSeconds:{ +one:"menos dun segundo", +other:"menos de {{count}} segundos" +}, +xSeconds:{ +one:"1 segundo", +other:"{{count}} segundos" +}, +halfAMinute:"medio minuto", +lessThanXMinutes:{ +one:"menos dun minuto", +other:"menos de {{count}} minutos" +}, +xMinutes:{ +one:"1 minuto", +other:"{{count}} minutos" +}, +aboutXHours:{ +one:"arredor dunha hora", +other:"arredor de {{count}} horas" +}, +xHours:{ +one:"1 hora", +other:"{{count}} horas" +}, +xDays:{ +one:"1 día", +other:"{{count}} días" +}, +aboutXWeeks:{ +one:"arredor dunha semana", +other:"arredor de {{count}} semanas" +}, +xWeeks:{ +one:"1 semana", +other:"{{count}} semanas" +}, +aboutXMonths:{ +one:"arredor de 1 mes", +other:"arredor de {{count}} meses" +}, +xMonths:{ +one:"1 mes", +other:"{{count}} meses" +}, +aboutXYears:{ +one:"arredor dun ano", +other:"arredor de {{count}} anos" +}, +xYears:{ +one:"1 ano", +other:"{{count}} anos" +}, +overXYears:{ +one:"máis dun ano", +other:"máis de {{count}} anos" +}, +almostXYears:{ +one:"case un ano", +other:"case {{count}} anos" +} +}; +var formatDistance$53=function formatDistance$53(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$52[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"en "+result;else +return"hai "+result; +return result; +}; +var formatLong$54={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d 'de' MMMM y", +long:"d 'de' MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'ás' {{time}}", +long:"{{date}} 'ás' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/gl/_lib/formatRelative.js +var formatRelativeLocale$53={ +lastWeek:"'o' eeee 'pasado á' LT", +yesterday:"'onte á' p", +today:"'hoxe á' p", +tomorrow:"'mañá á' p", +nextWeek:"eeee 'á' p", +other:"P" +}; +var formatRelativeLocalePlural={ +lastWeek:"'o' eeee 'pasado ás' p", +yesterday:"'onte ás' p", +today:"'hoxe ás' p", +tomorrow:"'mañá ás' p", +nextWeek:"eeee 'ás' p", +other:"P" +}; +var formatRelative$53=function formatRelative$53(token,date,_baseDate,_options){ +if(date.getHours()!==1)return formatRelativeLocalePlural[token]; +return formatRelativeLocale$53[token]; +}; +//#endregion +//#region dist/date-fns/locale/gl/_lib/localize.js +var eraValues$53={ +narrow:["AC","DC"], +abbreviated:["AC","DC"], +wide:["antes de cristo","despois de cristo"] +}; +var quarterValues$53={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1º trimestre", +"2º trimestre", +"3º trimestre", +"4º trimestre"] + +}; +var monthValues$53={ +narrow:[ +"e", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"xan", +"feb", +"mar", +"abr", +"mai", +"xun", +"xul", +"ago", +"set", +"out", +"nov", +"dec"], + +wide:[ +"xaneiro", +"febreiro", +"marzo", +"abril", +"maio", +"xuño", +"xullo", +"agosto", +"setembro", +"outubro", +"novembro", +"decembro"] + +}; +var dayValues$53={ +narrow:[ +"d", +"l", +"m", +"m", +"j", +"v", +"s"], + +short:[ +"do", +"lu", +"ma", +"me", +"xo", +"ve", +"sa"], + +abbreviated:[ +"dom", +"lun", +"mar", +"mer", +"xov", +"ven", +"sab"], + +wide:[ +"domingo", +"luns", +"martes", +"mércores", +"xoves", +"venres", +"sábado"] + +}; +var dayPeriodValues$53={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"mañá", +afternoon:"tarde", +evening:"tarde", +night:"noite" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"medianoite", +noon:"mediodía", +morning:"mañá", +afternoon:"tarde", +evening:"tardiña", +night:"noite" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"medianoite", +noon:"mediodía", +morning:"mañá", +afternoon:"tarde", +evening:"tardiña", +night:"noite" +} +}; +var formattingDayPeriodValues$43={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"da mañá", +afternoon:"da tarde", +evening:"da tardiña", +night:"da noite" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"medianoite", +noon:"mediodía", +morning:"da mañá", +afternoon:"da tarde", +evening:"da tardiña", +night:"da noite" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"medianoite", +noon:"mediodía", +morning:"da mañá", +afternoon:"da tarde", +evening:"da tardiña", +night:"da noite" +} +}; +var ordinalNumber$53=function ordinalNumber$53(dirtyNumber,_options){ +return Number(dirtyNumber)+"º"; +}; +//#endregion +//#region dist/date-fns/locale/gl.js +/** +* @category Locales +* @summary Galician locale. +* @language Galician +* @iso-639-2 glg +* @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) +* @author Fidel Pita [@fidelpita](https://github.com/fidelpita) +*/ +var _gl={ +code:"gl", +formatDistance:formatDistance$53, +formatLong:formatLong$54, +formatRelative:formatRelative$53, +localize:{ +ordinalNumber:ordinalNumber$53, +era:buildLocalizeFn({ +values:eraValues$53, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$53, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$53, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$53, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$53, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$43, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(º)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ac|dc|a|d)/i, +abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, +wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[/^ac/i,/^dc/i], +wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^[1234](º)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[xfmasond]/i, +abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, +wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^x/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^x/i, +/^x/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^xan/i, +/^feb/i, +/^mar/i, +/^abr/i, +/^mai/i, +/^xun/i, +/^xul/i, +/^ago/i, +/^set/i, +/^out/i, +/^nov/i, +/^dec/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmxvs]/i, +short:/^(do|lu|ma|me|xo|ve|sa)/i, +abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i, +wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^x/i, +/^v/i, +/^s/i], + +any:[ +/^do/i, +/^lu/i, +/^ma/i, +/^me/i, +/^xo/i, +/^ve/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, +any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mn/i, +noon:/^md/i, +morning:/mañ[aá]/i, +afternoon:/tarde/i, +evening:/tardiña/i, +night:/noite/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/gu/_lib/formatDistance.js +var formatDistanceLocale$51={ +lessThanXSeconds:{ +one:"હમણાં", +other:"​આશરે {{count}} સેકંડ" +}, +xSeconds:{ +one:"1 સેકંડ", +other:"{{count}} સેકંડ" +}, +halfAMinute:"અડધી મિનિટ", +lessThanXMinutes:{ +one:"આ મિનિટ", +other:"​આશરે {{count}} મિનિટ" +}, +xMinutes:{ +one:"1 મિનિટ", +other:"{{count}} મિનિટ" +}, +aboutXHours:{ +one:"​આશરે 1 કલાક", +other:"​આશરે {{count}} કલાક" +}, +xHours:{ +one:"1 કલાક", +other:"{{count}} કલાક" +}, +xDays:{ +one:"1 દિવસ", +other:"{{count}} દિવસ" +}, +aboutXWeeks:{ +one:"આશરે 1 અઠવાડિયું", +other:"આશરે {{count}} અઠવાડિયા" +}, +xWeeks:{ +one:"1 અઠવાડિયું", +other:"{{count}} અઠવાડિયા" +}, +aboutXMonths:{ +one:"આશરે 1 મહિનો", +other:"આશરે {{count}} મહિના" +}, +xMonths:{ +one:"1 મહિનો", +other:"{{count}} મહિના" +}, +aboutXYears:{ +one:"આશરે 1 વર્ષ", +other:"આશરે {{count}} વર્ષ" +}, +xYears:{ +one:"1 વર્ષ", +other:"{{count}} વર્ષ" +}, +overXYears:{ +one:"1 વર્ષથી વધુ", +other:"{{count}} વર્ષથી વધુ" +}, +almostXYears:{ +one:"લગભગ 1 વર્ષ", +other:"લગભગ {{count}} વર્ષ" +} +}; +var formatDistance$52=function formatDistance$52(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$51[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"માં";else +return result+" પહેલાં"; +return result; +}; +var formatLong$53={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM, y", +long:"d MMMM, y", +medium:"d MMM, y", +short:"d/M/yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"hh:mm:ss a zzzz", +long:"hh:mm:ss a z", +medium:"hh:mm:ss a", +short:"hh:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/gu/_lib/formatRelative.js +var formatRelativeLocale$52={ +lastWeek:"'પાછલા' eeee p", +yesterday:"'ગઈકાલે' p", +today:"'આજે' p", +tomorrow:"'આવતીકાલે' p", +nextWeek:"eeee p", +other:"P" +}; +var formatRelative$52=function formatRelative$52(token,_date,_baseDate,_options){return formatRelativeLocale$52[token];}; +//#endregion +//#region dist/date-fns/locale/gu/_lib/localize.js +var eraValues$52={ +narrow:["ઈસપૂ","ઈસ"], +abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."], +wide:["ઈસવીસન પૂર્વે","ઈસવીસન"] +}; +var quarterValues$52={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1લો ત્રિમાસ", +"2જો ત્રિમાસ", +"3જો ત્રિમાસ", +"4થો ત્રિમાસ"] + +}; +var monthValues$52={ +narrow:[ +"જા", +"ફે", +"મા", +"એ", +"મે", +"જૂ", +"જુ", +"ઓ", +"સ", +"ઓ", +"ન", +"ડિ"], + +abbreviated:[ +"જાન્યુ", +"ફેબ્રુ", +"માર્ચ", +"એપ્રિલ", +"મે", +"જૂન", +"જુલાઈ", +"ઑગસ્ટ", +"સપ્ટે", +"ઓક્ટો", +"નવે", +"ડિસે"], + +wide:[ +"જાન્યુઆરી", +"ફેબ્રુઆરી", +"માર્ચ", +"એપ્રિલ", +"મે", +"જૂન", +"જુલાઇ", +"ઓગસ્ટ", +"સપ્ટેમ્બર", +"ઓક્ટોબર", +"નવેમ્બર", +"ડિસેમ્બર"] + +}; +var dayValues$52={ +narrow:[ +"ર", +"સો", +"મં", +"બુ", +"ગુ", +"શુ", +"શ"], + +short:[ +"ર", +"સો", +"મં", +"બુ", +"ગુ", +"શુ", +"શ"], + +abbreviated:[ +"રવિ", +"સોમ", +"મંગળ", +"બુધ", +"ગુરુ", +"શુક્ર", +"શનિ"], + +wide:[ +"રવિવાર", +"સોમવાર", +"મંગળવાર", +"બુધવાર", +"ગુરુવાર", +"શુક્રવાર", +"શનિવાર"] + +}; +var dayPeriodValues$52={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"મ.રાત્રિ", +noon:"બ.", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"​મધ્યરાત્રિ", +noon:"બપોરે", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"​મધ્યરાત્રિ", +noon:"બપોરે", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +} +}; +var formattingDayPeriodValues$42={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"મ.રાત્રિ", +noon:"બપોરે", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"મધ્યરાત્રિ", +noon:"બપોરે", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"​મધ્યરાત્રિ", +noon:"બપોરે", +morning:"સવારે", +afternoon:"બપોરે", +evening:"સાંજે", +night:"રાત્રે" +} +}; +var ordinalNumber$52=function ordinalNumber$52(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/gu.js +/** +* @category Locales +* @summary Gujarati locale (India). +* @language Gujarati +* @iso-639-2 guj +* @author Manaday Mavani [@ManadayM](https://github.com/manadaym) +*/ +var _gu={ +code:"gu", +formatDistance:formatDistance$52, +formatLong:formatLong$53, +formatRelative:formatRelative$52, +localize:{ +ordinalNumber:ordinalNumber$52, +era:buildLocalizeFn({ +values:eraValues$52, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$52, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$52, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$52, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$52, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$42, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ઈસપૂ|ઈસ)/i, +abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, +wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i, +abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, +wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^જા/i, +/^ફે/i, +/^મા/i, +/^એ/i, +/^મે/i, +/^જૂ/i, +/^જુ/i, +/^ઑગ/i, +/^સ/i, +/^ઓક્ટો/i, +/^ન/i, +/^ડિ/i], + +any:[ +/^જા/i, +/^ફે/i, +/^મા/i, +/^એ/i, +/^મે/i, +/^જૂ/i, +/^જુ/i, +/^ઑગ/i, +/^સ/i, +/^ઓક્ટો/i, +/^ન/i, +/^ડિ/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, +short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, +abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, +wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ર/i, +/^સો/i, +/^મં/i, +/^બુ/i, +/^ગુ/i, +/^શુ/i, +/^શ/i], + +any:[ +/^ર/i, +/^સો/i, +/^મં/i, +/^બુ/i, +/^ગુ/i, +/^શુ/i, +/^શ/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i, +any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^મ\.?/i, +noon:/^બ/i, +morning:/સ/i, +afternoon:/બ/i, +evening:/સાં/i, +night:/રા/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/he/_lib/formatDistance.js +var formatDistanceLocale$50={ +lessThanXSeconds:{ +one:"פחות משנייה", +two:"פחות משתי שניות", +other:"פחות מ־{{count}} שניות" +}, +xSeconds:{ +one:"שנייה", +two:"שתי שניות", +other:"{{count}} שניות" +}, +halfAMinute:"חצי דקה", +lessThanXMinutes:{ +one:"פחות מדקה", +two:"פחות משתי דקות", +other:"פחות מ־{{count}} דקות" +}, +xMinutes:{ +one:"דקה", +two:"שתי דקות", +other:"{{count}} דקות" +}, +aboutXHours:{ +one:"כשעה", +two:"כשעתיים", +other:"כ־{{count}} שעות" +}, +xHours:{ +one:"שעה", +two:"שעתיים", +other:"{{count}} שעות" +}, +xDays:{ +one:"יום", +two:"יומיים", +other:"{{count}} ימים" +}, +aboutXWeeks:{ +one:"כשבוע", +two:"כשבועיים", +other:"כ־{{count}} שבועות" +}, +xWeeks:{ +one:"שבוע", +two:"שבועיים", +other:"{{count}} שבועות" +}, +aboutXMonths:{ +one:"כחודש", +two:"כחודשיים", +other:"כ־{{count}} חודשים" +}, +xMonths:{ +one:"חודש", +two:"חודשיים", +other:"{{count}} חודשים" +}, +aboutXYears:{ +one:"כשנה", +two:"כשנתיים", +other:"כ־{{count}} שנים" +}, +xYears:{ +one:"שנה", +two:"שנתיים", +other:"{{count}} שנים" +}, +overXYears:{ +one:"יותר משנה", +two:"יותר משנתיים", +other:"יותר מ־{{count}} שנים" +}, +almostXYears:{ +one:"כמעט שנה", +two:"כמעט שנתיים", +other:"כמעט {{count}} שנים" +} +}; +var formatDistance$51=function formatDistance$51(token,count,options){ +if(token==="xDays"&&options!==null&&options!==void 0&&options.addSuffix&&count<=2){ +if(options.comparison&&options.comparison>0)return count===1?"מחר":"מחרתיים"; +return count===1?"אתמול":"שלשום"; +} +var result; +var tokenValue=formatDistanceLocale$50[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2)result=tokenValue.two;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"בעוד "+result;else +return"לפני "+result; +return result; +}; +var formatLong$52={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d בMMMM y", +long:"d בMMMM y", +medium:"d בMMM y", +short:"d.M.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'בשעה' {{time}}", +long:"{{date}} 'בשעה' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/he/_lib/formatRelative.js +var formatRelativeLocale$51={ +lastWeek:"eeee 'שעבר בשעה' p", +yesterday:"'אתמול בשעה' p", +today:"'היום בשעה' p", +tomorrow:"'מחר בשעה' p", +nextWeek:"eeee 'בשעה' p", +other:"P" +}; +var formatRelative$51=function formatRelative$51(token,_date,_baseDate,_options){return formatRelativeLocale$51[token];}; +//#endregion +//#region dist/date-fns/locale/he/_lib/localize.js +var eraValues$51={ +narrow:["לפנה״ס","לספירה"], +abbreviated:["לפנה״ס","לספירה"], +wide:["לפני הספירה","לספירה"] +}; +var quarterValues$51={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"רבעון 1", +"רבעון 2", +"רבעון 3", +"רבעון 4"] + +}; +var monthValues$51={ +narrow:[ +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"10", +"11", +"12"], + +abbreviated:[ +"ינו׳", +"פבר׳", +"מרץ", +"אפר׳", +"מאי", +"יוני", +"יולי", +"אוג׳", +"ספט׳", +"אוק׳", +"נוב׳", +"דצמ׳"], + +wide:[ +"ינואר", +"פברואר", +"מרץ", +"אפריל", +"מאי", +"יוני", +"יולי", +"אוגוסט", +"ספטמבר", +"אוקטובר", +"נובמבר", +"דצמבר"] + +}; +var dayValues$51={ +narrow:[ +"א׳", +"ב׳", +"ג׳", +"ד׳", +"ה׳", +"ו׳", +"ש׳"], + +short:[ +"א׳", +"ב׳", +"ג׳", +"ד׳", +"ה׳", +"ו׳", +"ש׳"], + +abbreviated:[ +"יום א׳", +"יום ב׳", +"יום ג׳", +"יום ד׳", +"יום ה׳", +"יום ו׳", +"שבת"], + +wide:[ +"יום ראשון", +"יום שני", +"יום שלישי", +"יום רביעי", +"יום חמישי", +"יום שישי", +"יום שבת"] + +}; +var dayPeriodValues$51={ +narrow:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בוקר", +afternoon:"אחר הצהריים", +evening:"ערב", +night:"לילה" +}, +abbreviated:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בוקר", +afternoon:"אחר הצהריים", +evening:"ערב", +night:"לילה" +}, +wide:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בוקר", +afternoon:"אחר הצהריים", +evening:"ערב", +night:"לילה" +} +}; +var formattingDayPeriodValues$41={ +narrow:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בבוקר", +afternoon:"בצהריים", +evening:"בערב", +night:"בלילה" +}, +abbreviated:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בבוקר", +afternoon:"אחר הצהריים", +evening:"בערב", +night:"בלילה" +}, +wide:{ +am:"לפנה״צ", +pm:"אחה״צ", +midnight:"חצות", +noon:"צהריים", +morning:"בבוקר", +afternoon:"אחר הצהריים", +evening:"בערב", +night:"בלילה" +} +}; +var ordinalNumber$51=function ordinalNumber$51(dirtyNumber,options){ +var number=Number(dirtyNumber); +if(number<=0||number>10)return String(number); +var unit=String(options===null||options===void 0?void 0:options.unit); +var isFemale=[ +"year", +"hour", +"minute", +"second"]. +indexOf(unit)>=0; +var male=[ +"ראשון", +"שני", +"שלישי", +"רביעי", +"חמישי", +"שישי", +"שביעי", +"שמיני", +"תשיעי", +"עשירי"]; + +var female=[ +"ראשונה", +"שנייה", +"שלישית", +"רביעית", +"חמישית", +"שישית", +"שביעית", +"שמינית", +"תשיעית", +"עשירית"]; + +var index=number-1; +return isFemale?female[index]:male[index]; +}; +var localize$51={ +ordinalNumber:ordinalNumber$51, +era:buildLocalizeFn({ +values:eraValues$51, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$51, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$51, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$51, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$51, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$41, +defaultFormattingWidth:"wide" +}) +}; +//#endregion +//#region dist/date-fns/locale/he/_lib/match.js +var matchOrdinalNumberPattern$51=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +var parseOrdinalNumberPattern$51=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; +var matchEraPatterns$51={ +narrow:/^ל(ספירה|פנה״ס)/i, +abbreviated:/^ל(ספירה|פנה״ס)/i, +wide:/^ל(פני ה)?ספירה/i +}; +var parseEraPatterns$51={any:[/^לפ/i,/^לס/i]}; +var matchQuarterPatterns$51={ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^רבעון [1234]/i +}; +var parseQuarterPatterns$51={any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}; +var matchMonthPatterns$51={ +narrow:/^\d+/i, +abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, +wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i +}; +var parseMonthPatterns$51={ +narrow:[ +/^1$/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^7/i, +/^8/i, +/^9/i, +/^10/i, +/^11/i, +/^12/i], + +any:[ +/^ינ/i, +/^פ/i, +/^מר/i, +/^אפ/i, +/^מא/i, +/^יונ/i, +/^יול/i, +/^אוג/i, +/^ס/i, +/^אוק/i, +/^נ/i, +/^ד/i] + +}; +var matchDayPatterns$51={ +narrow:/^[אבגדהוש]׳/i, +short:/^[אבגדהוש]׳/i, +abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, +wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i +}; +var parseDayPatterns$51={ +abbreviated:[ +/א׳$/i, +/ב׳$/i, +/ג׳$/i, +/ד׳$/i, +/ה׳$/i, +/ו׳$/i, +/^ש/i], + +wide:[ +/ן$/i, +/ני$/i, +/לישי$/i, +/עי$/i, +/מישי$/i, +/שישי$/i, +/ת$/i], + +any:[ +/^א/i, +/^ב/i, +/^ג/i, +/^ד/i, +/^ה/i, +/^ו/i, +/^ש/i] + +}; +var matchDayPeriodPatterns$51={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i}; +var parseDayPeriodPatterns$51={any:{ +am:/^לפ/i, +pm:/^אחה/i, +midnight:/^ח/i, +noon:/^צ/i, +morning:/בוקר/i, +afternoon:/בצ|אחר/i, +evening:/ערב/i, +night:/לילה/i +}}; +var ordinalName=[ +"רא", +"שנ", +"של", +"רב", +"ח", +"שי", +"שב", +"שמ", +"ת", +"ע"]; + +//#endregion +//#region dist/date-fns/locale/he.js +/** +* @category Locales +* @summary Hebrew locale. +* @language Hebrew +* @iso-639-2 heb +* @author Nir Lahad [@nirlah](https://github.com/nirlah) +*/ +var _he={ +code:"he", +formatDistance:formatDistance$51, +formatLong:formatLong$52, +formatRelative:formatRelative$51, +localize:localize$51, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:matchOrdinalNumberPattern$51, +parsePattern:parseOrdinalNumberPattern$51, +valueCallback:function valueCallback(value){ +var number=parseInt(value,10); +return isNaN(number)?ordinalName.indexOf(value)+1:number; +} +}), +era:buildMatchFn({ +matchPatterns:matchEraPatterns$51, +defaultMatchWidth:"wide", +parsePatterns:parseEraPatterns$51, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:matchQuarterPatterns$51, +defaultMatchWidth:"wide", +parsePatterns:parseQuarterPatterns$51, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:matchMonthPatterns$51, +defaultMatchWidth:"wide", +parsePatterns:parseMonthPatterns$51, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:matchDayPatterns$51, +defaultMatchWidth:"wide", +parsePatterns:parseDayPatterns$51, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:matchDayPeriodPatterns$51, +defaultMatchWidth:"any", +parsePatterns:parseDayPeriodPatterns$51, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/localize.js +var numberValues={ +locale:{ +1:"१", +2:"२", +3:"३", +4:"४", +5:"५", +6:"६", +7:"७", +8:"८", +9:"९", +0:"०" +}, +number:{ +"१":"1", +"२":"2", +"३":"3", +"४":"4", +"५":"5", +"६":"6", +"७":"7", +"८":"8", +"९":"9", +"०":"0" +} +}; +var eraValues$50={ +narrow:["ईसा-पूर्व","ईस्वी"], +abbreviated:["ईसा-पूर्व","ईस्वी"], +wide:["ईसा-पूर्व","ईसवी सन"] +}; +var quarterValues$50={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ति1", +"ति2", +"ति3", +"ति4"], + +wide:[ +"पहली तिमाही", +"दूसरी तिमाही", +"तीसरी तिमाही", +"चौथी तिमाही"] + +}; +var monthValues$50={ +narrow:[ +"ज", +"फ़", +"मा", +"अ", +"मई", +"जू", +"जु", +"अग", +"सि", +"अक्टू", +"न", +"दि"], + +abbreviated:[ +"जन", +"फ़र", +"मार्च", +"अप्रैल", +"मई", +"जून", +"जुल", +"अग", +"सित", +"अक्टू", +"नव", +"दिस"], + +wide:[ +"जनवरी", +"फ़रवरी", +"मार्च", +"अप्रैल", +"मई", +"जून", +"जुलाई", +"अगस्त", +"सितंबर", +"अक्टूबर", +"नवंबर", +"दिसंबर"] + +}; +var dayValues$50={ +narrow:[ +"र", +"सो", +"मं", +"बु", +"गु", +"शु", +"श"], + +short:[ +"र", +"सो", +"मं", +"बु", +"गु", +"शु", +"श"], + +abbreviated:[ +"रवि", +"सोम", +"मंगल", +"बुध", +"गुरु", +"शुक्र", +"शनि"], + +wide:[ +"रविवार", +"सोमवार", +"मंगलवार", +"बुधवार", +"गुरुवार", +"शुक्रवार", +"शनिवार"] + +}; +var dayPeriodValues$50={ +narrow:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +}, +abbreviated:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +}, +wide:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +} +}; +var formattingDayPeriodValues$40={ +narrow:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +}, +abbreviated:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +}, +wide:{ +am:"पूर्वाह्न", +pm:"अपराह्न", +midnight:"मध्यरात्रि", +noon:"दोपहर", +morning:"सुबह", +afternoon:"दोपहर", +evening:"शाम", +night:"रात" +} +}; +var ordinalNumber$50=function ordinalNumber$50(dirtyNumber,_options){ +return numberToLocale(Number(dirtyNumber)); +}; +function localeToNumber(locale){ +var enNumber=locale.toString().replace(/[१२३४५६७८९०]/g,function(match){ +return numberValues.number[match]; +}); +return Number(enNumber); +} +function numberToLocale(enNumber){ +return enNumber.toString().replace(/\d/g,function(match){ +return numberValues.locale[match]; +}); +} +var localize$50={ +ordinalNumber:ordinalNumber$50, +era:buildLocalizeFn({ +values:eraValues$50, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$50, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$50, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$50, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$50, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$40, +defaultFormattingWidth:"wide" +}) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatDistance.js +var formatDistanceLocale$49={ +lessThanXSeconds:{ +one:"१ सेकंड से कम", +other:"{{count}} सेकंड से कम" +}, +xSeconds:{ +one:"१ सेकंड", +other:"{{count}} सेकंड" +}, +halfAMinute:"आधा मिनट", +lessThanXMinutes:{ +one:"१ मिनट से कम", +other:"{{count}} मिनट से कम" +}, +xMinutes:{ +one:"१ मिनट", +other:"{{count}} मिनट" +}, +aboutXHours:{ +one:"लगभग १ घंटा", +other:"लगभग {{count}} घंटे" +}, +xHours:{ +one:"१ घंटा", +other:"{{count}} घंटे" +}, +xDays:{ +one:"१ दिन", +other:"{{count}} दिन" +}, +aboutXWeeks:{ +one:"लगभग १ सप्ताह", +other:"लगभग {{count}} सप्ताह" +}, +xWeeks:{ +one:"१ सप्ताह", +other:"{{count}} सप्ताह" +}, +aboutXMonths:{ +one:"लगभग १ महीना", +other:"लगभग {{count}} महीने" +}, +xMonths:{ +one:"१ महीना", +other:"{{count}} महीने" +}, +aboutXYears:{ +one:"लगभग १ वर्ष", +other:"लगभग {{count}} वर्ष" +}, +xYears:{ +one:"१ वर्ष", +other:"{{count}} वर्ष" +}, +overXYears:{ +one:"१ वर्ष से अधिक", +other:"{{count}} वर्ष से अधिक" +}, +almostXYears:{ +one:"लगभग १ वर्ष", +other:"लगभग {{count}} वर्ष" +} +}; +var formatDistance$50=function formatDistance$50(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$49[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",numberToLocale(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"मे ";else +return result+" पहले"; +return result; +}; +var formatLong$51={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM, y", +long:"do MMMM, y", +medium:"d MMM, y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'को' {{time}}", +long:"{{date}} 'को' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatRelative.js +var formatRelativeLocale$50={ +lastWeek:"'पिछले' eeee p", +yesterday:"'कल' p", +today:"'आज' p", +tomorrow:"'कल' p", +nextWeek:"eeee 'को' p", +other:"P" +}; +var formatRelative$50=function formatRelative$50(token,_date,_baseDate,_options){return formatRelativeLocale$50[token];}; +//#endregion +//#region dist/date-fns/locale/hi.js +/** +* @category Locales +* @summary Hindi locale (India). +* @language Hindi +* @iso-639-2 hin +* @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) +*/ +var _hi={ +code:"hi", +formatDistance:formatDistance$50, +formatLong:formatLong$51, +formatRelative:formatRelative$50, +localize:localize$50, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^[०१२३४५६७८९]+/i, +parsePattern:/^[०१२३४५६७८९]+/i, +valueCallback:localeToNumber +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ईसा-पूर्व|ईस्वी)/i, +abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, +wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b/i,/^(a|c)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ति[1234]/i, +wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, +abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, +wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ज/i, +/^फ़/i, +/^मा/i, +/^अप्/i, +/^मई/i, +/^जू/i, +/^जु/i, +/^अग/i, +/^सि/i, +/^अक्तू/i, +/^न/i, +/^दि/i], + +any:[ +/^जन/i, +/^फ़/i, +/^मा/i, +/^अप्/i, +/^मई/i, +/^जू/i, +/^जु/i, +/^अग/i, +/^सि/i, +/^अक्तू/i, +/^नव/i, +/^दिस/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i, +short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, +abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, +wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^रवि/i, +/^सोम/i, +/^मंगल/i, +/^बुध/i, +/^गुरु/i, +/^शुक्र/i, +/^शनि/i], + +any:[ +/^रवि/i, +/^सोम/i, +/^मंगल/i, +/^बुध/i, +/^गुरु/i, +/^शुक्र/i, +/^शनि/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, +any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^पूर्वाह्न/i, +pm:/^अपराह्न/i, +midnight:/^मध्य/i, +noon:/^दो/i, +morning:/सु/i, +afternoon:/दो/i, +evening:/शा/i, +night:/रा/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/hr/_lib/formatDistance.js +var formatDistanceLocale$48={ +lessThanXSeconds:{ +one:{ +standalone:"manje od 1 sekunde", +withPrepositionAgo:"manje od 1 sekunde", +withPrepositionIn:"manje od 1 sekundu" +}, +dual:"manje od {{count}} sekunde", +other:"manje od {{count}} sekundi" +}, +xSeconds:{ +one:{ +standalone:"1 sekunda", +withPrepositionAgo:"1 sekunde", +withPrepositionIn:"1 sekundu" +}, +dual:"{{count}} sekunde", +other:"{{count}} sekundi" +}, +halfAMinute:"pola minute", +lessThanXMinutes:{ +one:{ +standalone:"manje od 1 minute", +withPrepositionAgo:"manje od 1 minute", +withPrepositionIn:"manje od 1 minutu" +}, +dual:"manje od {{count}} minute", +other:"manje od {{count}} minuta" +}, +xMinutes:{ +one:{ +standalone:"1 minuta", +withPrepositionAgo:"1 minute", +withPrepositionIn:"1 minutu" +}, +dual:"{{count}} minute", +other:"{{count}} minuta" +}, +aboutXHours:{ +one:{ +standalone:"oko 1 sat", +withPrepositionAgo:"oko 1 sat", +withPrepositionIn:"oko 1 sat" +}, +dual:"oko {{count}} sata", +other:"oko {{count}} sati" +}, +xHours:{ +one:{ +standalone:"1 sat", +withPrepositionAgo:"1 sat", +withPrepositionIn:"1 sat" +}, +dual:"{{count}} sata", +other:"{{count}} sati" +}, +xDays:{ +one:{ +standalone:"1 dan", +withPrepositionAgo:"1 dan", +withPrepositionIn:"1 dan" +}, +dual:"{{count}} dana", +other:"{{count}} dana" +}, +aboutXWeeks:{ +one:{ +standalone:"oko 1 tjedan", +withPrepositionAgo:"oko 1 tjedan", +withPrepositionIn:"oko 1 tjedan" +}, +dual:"oko {{count}} tjedna", +other:"oko {{count}} tjedana" +}, +xWeeks:{ +one:{ +standalone:"1 tjedan", +withPrepositionAgo:"1 tjedan", +withPrepositionIn:"1 tjedan" +}, +dual:"{{count}} tjedna", +other:"{{count}} tjedana" +}, +aboutXMonths:{ +one:{ +standalone:"oko 1 mjesec", +withPrepositionAgo:"oko 1 mjesec", +withPrepositionIn:"oko 1 mjesec" +}, +dual:"oko {{count}} mjeseca", +other:"oko {{count}} mjeseci" +}, +xMonths:{ +one:{ +standalone:"1 mjesec", +withPrepositionAgo:"1 mjesec", +withPrepositionIn:"1 mjesec" +}, +dual:"{{count}} mjeseca", +other:"{{count}} mjeseci" +}, +aboutXYears:{ +one:{ +standalone:"oko 1 godinu", +withPrepositionAgo:"oko 1 godinu", +withPrepositionIn:"oko 1 godinu" +}, +dual:"oko {{count}} godine", +other:"oko {{count}} godina" +}, +xYears:{ +one:{ +standalone:"1 godina", +withPrepositionAgo:"1 godine", +withPrepositionIn:"1 godinu" +}, +dual:"{{count}} godine", +other:"{{count}} godina" +}, +overXYears:{ +one:{ +standalone:"preko 1 godinu", +withPrepositionAgo:"preko 1 godinu", +withPrepositionIn:"preko 1 godinu" +}, +dual:"preko {{count}} godine", +other:"preko {{count}} godina" +}, +almostXYears:{ +one:{ +standalone:"gotovo 1 godinu", +withPrepositionAgo:"gotovo 1 godinu", +withPrepositionIn:"gotovo 1 godinu" +}, +dual:"gotovo {{count}} godine", +other:"gotovo {{count}} godina" +} +}; +var formatDistance$49=function formatDistance$49(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$48[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0)result=tokenValue.one.withPrepositionIn;else +result=tokenValue.one.withPrepositionAgo;}else +result=tokenValue.one.standalone;}else +if(count%10>1&&count%10<5&&String(count).substr(-2,1)!=="1")result=tokenValue.dual.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"za "+result;else +return"prije "+result; +return result; +}; +var formatLong$50={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM y.", +long:"d. MMMM y.", +medium:"d. MMM y.", +short:"dd. MM. y." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss (zzzz)", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'u' {{time}}", +long:"{{date}} 'u' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/hr/_lib/formatRelative.js +var formatRelativeLocale$49={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 0:return"'prošlu nedjelju u' p"; +case 3:return"'prošlu srijedu u' p"; +case 6:return"'prošlu subotu u' p"; +default:return"'prošli' EEEE 'u' p"; +} +}, +yesterday:"'jučer u' p", +today:"'danas u' p", +tomorrow:"'sutra u' p", +nextWeek:function nextWeek(date){ +switch(date.getDay()){ +case 0:return"'iduću nedjelju u' p"; +case 3:return"'iduću srijedu u' p"; +case 6:return"'iduću subotu u' p"; +default:return"'prošli' EEEE 'u' p"; +} +}, +other:"P" +}; +var formatRelative$49=function formatRelative$49(token,date,_baseDate,_options){ +var format=formatRelativeLocale$49[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/hr/_lib/localize.js +var eraValues$49={ +narrow:["pr.n.e.","AD"], +abbreviated:["pr. Kr.","po. Kr."], +wide:["Prije Krista","Poslije Krista"] +}; +var quarterValues$49={ +narrow:[ +"1.", +"2.", +"3.", +"4."], + +abbreviated:[ +"1. kv.", +"2. kv.", +"3. kv.", +"4. kv."], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$49={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"sij", +"velj", +"ožu", +"tra", +"svi", +"lip", +"srp", +"kol", +"ruj", +"lis", +"stu", +"pro"], + +wide:[ +"siječanj", +"veljača", +"ožujak", +"travanj", +"svibanj", +"lipanj", +"srpanj", +"kolovoz", +"rujan", +"listopad", +"studeni", +"prosinac"] + +}; +var formattingMonthValues$10={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"sij", +"velj", +"ožu", +"tra", +"svi", +"lip", +"srp", +"kol", +"ruj", +"lis", +"stu", +"pro"], + +wide:[ +"siječnja", +"veljače", +"ožujka", +"travnja", +"svibnja", +"lipnja", +"srpnja", +"kolovoza", +"rujna", +"listopada", +"studenog", +"prosinca"] + +}; +var dayValues$49={ +narrow:[ +"N", +"P", +"U", +"S", +"Č", +"P", +"S"], + +short:[ +"ned", +"pon", +"uto", +"sri", +"čet", +"pet", +"sub"], + +abbreviated:[ +"ned", +"pon", +"uto", +"sri", +"čet", +"pet", +"sub"], + +wide:[ +"nedjelja", +"ponedjeljak", +"utorak", +"srijeda", +"četvrtak", +"petak", +"subota"] + +}; +var formattingDayPeriodValues$39={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"popodne", +evening:"navečer", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"popodne", +evening:"navečer", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"poslije podne", +evening:"navečer", +night:"noću" +} +}; +var dayPeriodValues$49={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"popodne", +evening:"navečer", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"popodne", +evening:"navečer", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutro", +afternoon:"poslije podne", +evening:"navečer", +night:"noću" +} +}; +var ordinalNumber$49=function ordinalNumber$49(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/hr.js +/** +* @category Locales +* @summary Croatian locale. +* @language Croatian +* @iso-639-2 hrv +* @author Matija Marohnić [@silvenon](https://github.com/silvenon) +* @author Manico [@manico](https://github.com/manico) +* @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) +*/ +var _hr={ +code:"hr", +formatDistance:formatDistance$49, +formatLong:formatLong$50, +formatRelative:formatRelative$49, +localize:{ +ordinalNumber:ordinalNumber$49, +era:buildLocalizeFn({ +values:eraValues$49, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$49, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$49, +defaultWidth:"wide", +formattingValues:formattingMonthValues$10, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$49, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$49, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$39, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(pr\.n\.e\.|AD)/i, +abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, +wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^pr/i,/^(po|nova)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\.\s?kv\.?/i, +wide:/^[1234]\. kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(10|11|12|[123456789])\./i, +abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, +wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/1/i, +/2/i, +/3/i, +/4/i, +/5/i, +/6/i, +/7/i, +/8/i, +/9/i, +/10/i, +/11/i, +/12/i], + +abbreviated:[ +/^sij/i, +/^velj/i, +/^(ožu|ozu)/i, +/^tra/i, +/^svi/i, +/^lip/i, +/^srp/i, +/^kol/i, +/^ruj/i, +/^lis/i, +/^stu/i, +/^pro/i], + +wide:[ +/^sij/i, +/^velj/i, +/^(ožu|ozu)/i, +/^tra/i, +/^svi/i, +/^lip/i, +/^srp/i, +/^kol/i, +/^ruj/i, +/^lis/i, +/^stu/i, +/^pro/i] + +}, +defaultParseWidth:"wide" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npusčc]/i, +short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, +abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, +wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^su/i, +/^m/i, +/^tu/i, +/^w/i, +/^th/i, +/^f/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^pono/i, +noon:/^pod/i, +morning:/jutro/i, +afternoon:/(poslije\s|po)+podne/i, +evening:/(navece|naveče)/i, +night:/(nocu|noću)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ht/_lib/formatDistance.js +var formatDistanceLocale$47={ +lessThanXSeconds:{ +one:"mwens pase yon segond", +other:"mwens pase {{count}} segond" +}, +xSeconds:{ +one:"1 segond", +other:"{{count}} segond" +}, +halfAMinute:"30 segond", +lessThanXMinutes:{ +one:"mwens pase yon minit", +other:"mwens pase {{count}} minit" +}, +xMinutes:{ +one:"1 minit", +other:"{{count}} minit" +}, +aboutXHours:{ +one:"anviwon inè", +other:"anviwon {{count}} è" +}, +xHours:{ +one:"1 lè", +other:"{{count}} lè" +}, +xDays:{ +one:"1 jou", +other:"{{count}} jou" +}, +aboutXWeeks:{ +one:"anviwon 1 semèn", +other:"anviwon {{count}} semèn" +}, +xWeeks:{ +one:"1 semèn", +other:"{{count}} semèn" +}, +aboutXMonths:{ +one:"anviwon 1 mwa", +other:"anviwon {{count}} mwa" +}, +xMonths:{ +one:"1 mwa", +other:"{{count}} mwa" +}, +aboutXYears:{ +one:"anviwon 1 an", +other:"anviwon {{count}} an" +}, +xYears:{ +one:"1 an", +other:"{{count}} an" +}, +overXYears:{ +one:"plis pase 1 an", +other:"plis pase {{count}} an" +}, +almostXYears:{ +one:"prèske 1 an", +other:"prèske {{count}} an" +} +}; +var formatDistance$48=function formatDistance$48(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$47[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"nan "+result;else +return"sa fè "+result; +return result; +}; +var formatLong$49={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'nan lè' {{time}}", +long:"{{date}} 'nan lè' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ht/_lib/formatRelative.js +var formatRelativeLocale$48={ +lastWeek:"eeee 'pase nan lè' p", +yesterday:"'yè nan lè' p", +today:"'jodi a' p", +tomorrow:"'demen nan lè' p'", +nextWeek:"eeee 'pwochen nan lè' p", +other:"P" +}; +var formatRelative$48=function formatRelative$48(token,_date,_baseDate,_options){return formatRelativeLocale$48[token];}; +//#endregion +//#region dist/date-fns/locale/ht/_lib/localize.js +var eraValues$48={ +narrow:["av. J.-K","ap. J.-K"], +abbreviated:["av. J.-K","ap. J.-K"], +wide:["anvan Jezi Kris","apre Jezi Kris"] +}; +var quarterValues$48={ +narrow:[ +"T1", +"T2", +"T3", +"T4"], + +abbreviated:[ +"1ye trim.", +"2yèm trim.", +"3yèm trim.", +"4yèm trim."], + +wide:[ +"1ye trimès", +"2yèm trimès", +"3yèm trimès", +"4yèm trimès"] + +}; +var monthValues$48={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"O", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"janv.", +"fevr.", +"mas", +"avr.", +"me", +"jen", +"jiyè", +"out", +"sept.", +"okt.", +"nov.", +"des."], + +wide:[ +"janvye", +"fevrye", +"mas", +"avril", +"me", +"jen", +"jiyè", +"out", +"septanm", +"oktòb", +"novanm", +"desanm"] + +}; +var dayValues$48={ +narrow:[ +"D", +"L", +"M", +"M", +"J", +"V", +"S"], + +short:[ +"di", +"le", +"ma", +"mè", +"je", +"va", +"sa"], + +abbreviated:[ +"dim.", +"len.", +"mad.", +"mèk.", +"jed.", +"van.", +"sam."], + +wide:[ +"dimanch", +"lendi", +"madi", +"mèkredi", +"jedi", +"vandredi", +"samdi"] + +}; +var dayPeriodValues$48={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"minwit", +noon:"midi", +morning:"mat.", +afternoon:"ap.m.", +evening:"swa", +night:"mat." +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"minwit", +noon:"midi", +morning:"maten", +afternoon:"aprèmidi", +evening:"swa", +night:"maten" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"minwit", +noon:"midi", +morning:"nan maten", +afternoon:"nan aprèmidi", +evening:"nan aswè", +night:"nan maten" +} +}; +var ordinalNumber$48=function ordinalNumber$48(dirtyNumber,_options){ +var number=Number(dirtyNumber); +if(number===0)return String(number); +return number+(number===1?"ye":"yèm"); +}; +//#endregion +//#region dist/date-fns/locale/ht.js +/** +* @category Locales +* @summary Haitian Creole locale. +* @language Haitian Creole +* @iso-639-2 hat +* @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) +* @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) +*/ +var _ht={ +code:"ht", +formatDistance:formatDistance$48, +formatLong:formatLong$49, +formatRelative:formatRelative$48, +localize:{ +ordinalNumber:ordinalNumber$48, +era:buildLocalizeFn({ +values:eraValues$48, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$48, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$48, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$48, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$48, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ye|yèm)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, +abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, +wide:/^(avan Jezi Kris|apre Jezi Kris)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^av/i,/^ap/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^t[1234]/i, +wide:/^[1234](ye|yèm)? trimès/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, +wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^o/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^ma/i, +/^av/i, +/^me/i, +/^je/i, +/^ji/i, +/^ou/i, +/^s/i, +/^ok/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[lmjvsd]/i, +short:/^(di|le|ma|me|je|va|sa)/i, +abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i, +wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^j/i, +/^v/i, +/^s/i], + +any:[ +/^di/i, +/^le/i, +/^ma/i, +/^mè/i, +/^je/i, +/^va/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, +any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^min/i, +noon:/^mid/i, +morning:/mat/i, +afternoon:/ap/i, +evening:/sw/i, +night:/nwit/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/hu/_lib/formatDistance.js +var translations$1={ +about:"körülbelül", +over:"több mint", +almost:"majdnem", +lessthan:"kevesebb mint" +}; +var withoutSuffixes={ +xseconds:" másodperc", +halfaminute:"fél perc", +xminutes:" perc", +xhours:" óra", +xdays:" nap", +xweeks:" hét", +xmonths:" hónap", +xyears:" év" +}; +var withSuffixes={ +xseconds:{ +"-1":" másodperccel ezelőtt", +1:" másodperc múlva", +0:" másodperce" +}, +halfaminute:{ +"-1":"fél perccel ezelőtt", +1:"fél perc múlva", +0:"fél perce" +}, +xminutes:{ +"-1":" perccel ezelőtt", +1:" perc múlva", +0:" perce" +}, +xhours:{ +"-1":" órával ezelőtt", +1:" óra múlva", +0:" órája" +}, +xdays:{ +"-1":" nappal ezelőtt", +1:" nap múlva", +0:" napja" +}, +xweeks:{ +"-1":" héttel ezelőtt", +1:" hét múlva", +0:" hete" +}, +xmonths:{ +"-1":" hónappal ezelőtt", +1:" hónap múlva", +0:" hónapja" +}, +xyears:{ +"-1":" évvel ezelőtt", +1:" év múlva", +0:" éve" +} +}; +var formatDistance$47=function formatDistance$47(token,count,options){ +var adverb=token.match(/about|over|almost|lessthan/i); +var unit=adverb?token.replace(adverb[0],""):token; +var addSuffix=(options===null||options===void 0?void 0:options.addSuffix)===true; +var key=unit.toLowerCase(); +var comparison=(options===null||options===void 0?void 0:options.comparison)||0; +var translated=addSuffix?withSuffixes[key][comparison]:withoutSuffixes[key]; +var result=key==="halfaminute"?translated:count+translated; +if(adverb)result=translations$1[adverb[0].toLowerCase()]+" "+result; +return result; +}; +var formatLong$48={ +date:buildFormatLongFn({ +formats:{ +full:"y. MMMM d., EEEE", +long:"y. MMMM d.", +medium:"y. MMM d.", +short:"y. MM. dd." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/hu/_lib/formatRelative.js +var accusativeWeekdays$4=[ +"vasárnap", +"hétfőn", +"kedden", +"szerdán", +"csütörtökön", +"pénteken", +"szombaton"]; + +function week(isFuture){ +return function(date){ +var weekday=accusativeWeekdays$4[date.getDay()]; +return"".concat(isFuture?"":"'múlt' ","'").concat(weekday,"' p'-kor'"); +}; +} +var formatRelativeLocale$47={ +lastWeek:week(false), +yesterday:"'tegnap' p'-kor'", +today:"'ma' p'-kor'", +tomorrow:"'holnap' p'-kor'", +nextWeek:week(true), +other:"P" +}; +var formatRelative$47=function formatRelative$47(token,date){ +var format=formatRelativeLocale$47[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/hu/_lib/localize.js +var eraValues$47={ +narrow:["ie.","isz."], +abbreviated:["i. e.","i. sz."], +wide:["Krisztus előtt","időszámításunk szerint"] +}; +var quarterValues$47={ +narrow:[ +"1.", +"2.", +"3.", +"4."], + +abbreviated:[ +"1. n.év", +"2. n.év", +"3. n.év", +"4. n.év"], + +wide:[ +"1. negyedév", +"2. negyedév", +"3. negyedév", +"4. negyedév"] + +}; +var formattingQuarterValues$3={ +narrow:[ +"I.", +"II.", +"III.", +"IV."], + +abbreviated:[ +"I. n.év", +"II. n.év", +"III. n.év", +"IV. n.év"], + +wide:[ +"I. negyedév", +"II. negyedév", +"III. negyedév", +"IV. negyedév"] + +}; +var monthValues$47={ +narrow:[ +"J", +"F", +"M", +"Á", +"M", +"J", +"J", +"A", +"Sz", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"febr.", +"márc.", +"ápr.", +"máj.", +"jún.", +"júl.", +"aug.", +"szept.", +"okt.", +"nov.", +"dec."], + +wide:[ +"január", +"február", +"március", +"április", +"május", +"június", +"július", +"augusztus", +"szeptember", +"október", +"november", +"december"] + +}; +var dayValues$47={ +narrow:[ +"V", +"H", +"K", +"Sz", +"Cs", +"P", +"Sz"], + +short:[ +"V", +"H", +"K", +"Sze", +"Cs", +"P", +"Szo"], + +abbreviated:[ +"V", +"H", +"K", +"Sze", +"Cs", +"P", +"Szo"], + +wide:[ +"vasárnap", +"hétfő", +"kedd", +"szerda", +"csütörtök", +"péntek", +"szombat"] + +}; +var dayPeriodValues$47={ +narrow:{ +am:"de.", +pm:"du.", +midnight:"éjfél", +noon:"dél", +morning:"reggel", +afternoon:"du.", +evening:"este", +night:"éjjel" +}, +abbreviated:{ +am:"de.", +pm:"du.", +midnight:"éjfél", +noon:"dél", +morning:"reggel", +afternoon:"du.", +evening:"este", +night:"éjjel" +}, +wide:{ +am:"de.", +pm:"du.", +midnight:"éjfél", +noon:"dél", +morning:"reggel", +afternoon:"délután", +evening:"este", +night:"éjjel" +} +}; +var ordinalNumber$47=function ordinalNumber$47(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/hu.js +/** +* @category Locales +* @summary Hungarian locale. +* @language Hungarian +* @iso-639-2 hun +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +* @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) +*/ +var _hu={ +code:"hu", +formatDistance:formatDistance$47, +formatLong:formatLong$48, +formatRelative:formatRelative$47, +localize:{ +ordinalNumber:ordinalNumber$47, +era:buildLocalizeFn({ +values:eraValues$47, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$47, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;}, +formattingValues:formattingQuarterValues$3, +defaultFormattingWidth:"wide" +}), +month:buildLocalizeFn({ +values:monthValues$47, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$47, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$47, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ie\.|isz\.)/i, +abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, +wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/ie/i,/isz/i], +abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i], +any:[/előtt/i,/(szerint|i. sz.)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]\.?/i, +abbreviated:/^[1234]?\.?\s?n\.év/i, +wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1|I$/i, +/2|II$/i, +/3|III/i, +/4|IV/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmaásond]|sz/i, +abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, +wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a|á/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s|sz/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^már/i, +/^áp/i, +/^máj/i, +/^jún/i, +/^júl/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^([vhkpc]|sz|cs|sz)/i, +short:/^([vhkp]|sze|cs|szo)/i, +abbreviated:/^([vhkp]|sze|cs|szo)/i, +wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^v/i, +/^h/i, +/^k/i, +/^sz/i, +/^c/i, +/^p/i, +/^sz/i], + +any:[ +/^v/i, +/^h/i, +/^k/i, +/^sze/i, +/^c/i, +/^p/i, +/^szo/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^de\.?/i, +pm:/^du\.?/i, +midnight:/^éjf/i, +noon:/^dé/i, +morning:/reg/i, +afternoon:/^délu\.?/i, +evening:/es/i, +night:/éjj/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/hy/_lib/formatDistance.js +var formatDistanceLocale$46={ +lessThanXSeconds:{ +one:"ավելի քիչ քան 1 վայրկյան", +other:"ավելի քիչ քան {{count}} վայրկյան" +}, +xSeconds:{ +one:"1 վայրկյան", +other:"{{count}} վայրկյան" +}, +halfAMinute:"կես րոպե", +lessThanXMinutes:{ +one:"ավելի քիչ քան 1 րոպե", +other:"ավելի քիչ քան {{count}} րոպե" +}, +xMinutes:{ +one:"1 րոպե", +other:"{{count}} րոպե" +}, +aboutXHours:{ +one:"մոտ 1 ժամ", +other:"մոտ {{count}} ժամ" +}, +xHours:{ +one:"1 ժամ", +other:"{{count}} ժամ" +}, +xDays:{ +one:"1 օր", +other:"{{count}} օր" +}, +aboutXWeeks:{ +one:"մոտ 1 շաբաթ", +other:"մոտ {{count}} շաբաթ" +}, +xWeeks:{ +one:"1 շաբաթ", +other:"{{count}} շաբաթ" +}, +aboutXMonths:{ +one:"մոտ 1 ամիս", +other:"մոտ {{count}} ամիս" +}, +xMonths:{ +one:"1 ամիս", +other:"{{count}} ամիս" +}, +aboutXYears:{ +one:"մոտ 1 տարի", +other:"մոտ {{count}} տարի" +}, +xYears:{ +one:"1 տարի", +other:"{{count}} տարի" +}, +overXYears:{ +one:"ավելի քան 1 տարի", +other:"ավելի քան {{count}} տարի" +}, +almostXYears:{ +one:"համարյա 1 տարի", +other:"համարյա {{count}} տարի" +} +}; +var formatDistance$46=function formatDistance$46(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$46[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" հետո";else +return result+" առաջ"; +return result; +}; +var formatLong$47={ +date:buildFormatLongFn({ +formats:{ +full:"d MMMM, y, EEEE", +long:"d MMMM, y", +medium:"d MMM, y", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'ժ․'{{time}}", +long:"{{date}} 'ժ․'{{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/hy/_lib/formatRelative.js +var formatRelativeLocale$46={ +lastWeek:"'նախորդ' eeee p'֊ին'", +yesterday:"'երեկ' p'֊ին'", +today:"'այսօր' p'֊ին'", +tomorrow:"'վաղը' p'֊ին'", +nextWeek:"'հաջորդ' eeee p'֊ին'", +other:"P" +}; +var formatRelative$46=function formatRelative$46(token,_date,_baseDate,_options){return formatRelativeLocale$46[token];}; +//#endregion +//#region dist/date-fns/locale/hy/_lib/localize.js +var eraValues$46={ +narrow:["Ք","Մ"], +abbreviated:["ՔԱ","ՄԹ"], +wide:["Քրիստոսից առաջ","Մեր թվարկության"] +}; +var quarterValues$46={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Ք1", +"Ք2", +"Ք3", +"Ք4"], + +wide:[ +"1֊ին քառորդ", +"2֊րդ քառորդ", +"3֊րդ քառորդ", +"4֊րդ քառորդ"] + +}; +var monthValues$46={ +narrow:[ +"Հ", +"Փ", +"Մ", +"Ա", +"Մ", +"Հ", +"Հ", +"Օ", +"Ս", +"Հ", +"Ն", +"Դ"], + +abbreviated:[ +"հուն", +"փետ", +"մար", +"ապր", +"մայ", +"հուն", +"հուլ", +"օգս", +"սեպ", +"հոկ", +"նոյ", +"դեկ"], + +wide:[ +"հունվար", +"փետրվար", +"մարտ", +"ապրիլ", +"մայիս", +"հունիս", +"հուլիս", +"օգոստոս", +"սեպտեմբեր", +"հոկտեմբեր", +"նոյեմբեր", +"դեկտեմբեր"] + +}; +var dayValues$46={ +narrow:[ +"Կ", +"Ե", +"Ե", +"Չ", +"Հ", +"Ո", +"Շ"], + +short:[ +"կր", +"եր", +"եք", +"չք", +"հգ", +"ուր", +"շբ"], + +abbreviated:[ +"կիր", +"երկ", +"երք", +"չոր", +"հնգ", +"ուրբ", +"շաբ"], + +wide:[ +"կիրակի", +"երկուշաբթի", +"երեքշաբթի", +"չորեքշաբթի", +"հինգշաբթի", +"ուրբաթ", +"շաբաթ"] + +}; +var dayPeriodValues$46={ +narrow:{ +am:"a", +pm:"p", +midnight:"կեսգշ", +noon:"կեսօր", +morning:"առավոտ", +afternoon:"ցերեկ", +evening:"երեկո", +night:"գիշեր" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"կեսգիշեր", +noon:"կեսօր", +morning:"առավոտ", +afternoon:"ցերեկ", +evening:"երեկո", +night:"գիշեր" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"կեսգիշեր", +noon:"կեսօր", +morning:"առավոտ", +afternoon:"ցերեկ", +evening:"երեկո", +night:"գիշեր" +} +}; +var formattingDayPeriodValues$38={ +narrow:{ +am:"a", +pm:"p", +midnight:"կեսգշ", +noon:"կեսօր", +morning:"առավոտը", +afternoon:"ցերեկը", +evening:"երեկոյան", +night:"գիշերը" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"կեսգիշերին", +noon:"կեսօրին", +morning:"առավոտը", +afternoon:"ցերեկը", +evening:"երեկոյան", +night:"գիշերը" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"կեսգիշերին", +noon:"կեսօրին", +morning:"առավոտը", +afternoon:"ցերեկը", +evening:"երեկոյան", +night:"գիշերը" +} +}; +var ordinalNumber$46=function ordinalNumber$46(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100<10){ +if(rem100%10===1)return number+"֊ին"; +} +return number+"֊րդ"; +}; +//#endregion +//#region dist/date-fns/locale/hy.js +/** +* @category Locales +* @summary Armenian locale +* @language Armenian +* @iso-639-2 arm +* @author Alex Igityan [@alexigityan](https://github.com/alexigityan) +*/ +var _hy={ +code:"hy", +formatDistance:formatDistance$46, +formatLong:formatLong$47, +formatRelative:formatRelative$46, +localize:{ +ordinalNumber:ordinalNumber$46, +era:buildLocalizeFn({ +values:eraValues$46, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$46, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$46, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$46, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$46, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$38, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(Ք|Մ)/i, +abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, +wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^ք/i,/^մ/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ք[1234]/i, +wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[հփմաօսնդ]/i, +abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, +wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^հ/i, +/^փ/i, +/^մ/i, +/^ա/i, +/^մ/i, +/^հ/i, +/^հ/i, +/^օ/i, +/^ս/i, +/^հ/i, +/^ն/i, +/^դ/i], + +any:[ +/^հու/i, +/^փ/i, +/^մար/i, +/^ա/i, +/^մայ/i, +/^հուն/i, +/^հուլ/i, +/^օ/i, +/^ս/i, +/^հոկ/i, +/^ն/i, +/^դ/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[եչհոշկ]/i, +short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i, +abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, +wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^կ/i, +/^ե/i, +/^ե/i, +/^չ/i, +/^հ/i, +/^(ո|Ո)/, +/^շ/i], + +short:[ +/^կ/i, +/^եր/i, +/^եք/i, +/^չ/i, +/^հ/i, +/^(ո|Ո)/, +/^շ/i], + +abbreviated:[ +/^կ/i, +/^երկ/i, +/^երք/i, +/^չ/i, +/^հ/i, +/^(ո|Ո)/, +/^շ/i], + +wide:[ +/^կ/i, +/^երկ/i, +/^երե/i, +/^չ/i, +/^հ/i, +/^(ո|Ո)/, +/^շ/i] + +}, +defaultParseWidth:"wide" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, +any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/կեսգիշեր/i, +noon:/կեսօր/i, +morning:/առավոտ/i, +afternoon:/ցերեկ/i, +evening:/երեկո/i, +night:/գիշեր/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/id/_lib/formatDistance.js +var formatDistanceLocale$45={ +lessThanXSeconds:{ +one:"kurang dari 1 detik", +other:"kurang dari {{count}} detik" +}, +xSeconds:{ +one:"1 detik", +other:"{{count}} detik" +}, +halfAMinute:"setengah menit", +lessThanXMinutes:{ +one:"kurang dari 1 menit", +other:"kurang dari {{count}} menit" +}, +xMinutes:{ +one:"1 menit", +other:"{{count}} menit" +}, +aboutXHours:{ +one:"sekitar 1 jam", +other:"sekitar {{count}} jam" +}, +xHours:{ +one:"1 jam", +other:"{{count}} jam" +}, +xDays:{ +one:"1 hari", +other:"{{count}} hari" +}, +aboutXWeeks:{ +one:"sekitar 1 minggu", +other:"sekitar {{count}} minggu" +}, +xWeeks:{ +one:"1 minggu", +other:"{{count}} minggu" +}, +aboutXMonths:{ +one:"sekitar 1 bulan", +other:"sekitar {{count}} bulan" +}, +xMonths:{ +one:"1 bulan", +other:"{{count}} bulan" +}, +aboutXYears:{ +one:"sekitar 1 tahun", +other:"sekitar {{count}} tahun" +}, +xYears:{ +one:"1 tahun", +other:"{{count}} tahun" +}, +overXYears:{ +one:"lebih dari 1 tahun", +other:"lebih dari {{count}} tahun" +}, +almostXYears:{ +one:"hampir 1 tahun", +other:"hampir {{count}} tahun" +} +}; +var formatDistance$45=function formatDistance$45(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$45[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"dalam waktu "+result;else +return result+" yang lalu"; +return result; +}; +var formatLong$46={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"d/M/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH.mm.ss", +long:"HH.mm.ss", +medium:"HH.mm", +short:"HH.mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'pukul' {{time}}", +long:"{{date}} 'pukul' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/id/_lib/formatRelative.js +var formatRelativeLocale$45={ +lastWeek:"eeee 'lalu pukul' p", +yesterday:"'Kemarin pukul' p", +today:"'Hari ini pukul' p", +tomorrow:"'Besok pukul' p", +nextWeek:"eeee 'pukul' p", +other:"P" +}; +var formatRelative$45=function formatRelative$45(token,_date,_baseDate,_options){return formatRelativeLocale$45[token];}; +//#endregion +//#region dist/date-fns/locale/id/_lib/localize.js +var eraValues$45={ +narrow:["SM","M"], +abbreviated:["SM","M"], +wide:["Sebelum Masehi","Masehi"] +}; +var quarterValues$45={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"Kuartal ke-1", +"Kuartal ke-2", +"Kuartal ke-3", +"Kuartal ke-4"] + +}; +var monthValues$45={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mar", +"Apr", +"Mei", +"Jun", +"Jul", +"Agt", +"Sep", +"Okt", +"Nov", +"Des"], + +wide:[ +"Januari", +"Februari", +"Maret", +"April", +"Mei", +"Juni", +"Juli", +"Agustus", +"September", +"Oktober", +"November", +"Desember"] + +}; +var dayValues$45={ +narrow:[ +"M", +"S", +"S", +"R", +"K", +"J", +"S"], + +short:[ +"Min", +"Sen", +"Sel", +"Rab", +"Kam", +"Jum", +"Sab"], + +abbreviated:[ +"Min", +"Sen", +"Sel", +"Rab", +"Kam", +"Jum", +"Sab"], + +wide:[ +"Minggu", +"Senin", +"Selasa", +"Rabu", +"Kamis", +"Jumat", +"Sabtu"] + +}; +var dayPeriodValues$45={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +} +}; +var formattingDayPeriodValues$37={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"siang", +evening:"sore", +night:"malam" +} +}; +var ordinalNumber$45=function ordinalNumber$45(dirtyNumber,_options){ +return"ke-"+Number(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/id.js +/** +* @category Locales +* @summary Indonesian locale. +* @language Indonesian +* @iso-639-2 ind +* @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) +* @author Benget Nata [@bentinata](https://github.com/bentinata) +* @author Budi Irawan [@deerawan](https://github.com/deerawan) +* @author Try Ajitiono [@imballinst](https://github.com/imballinst) +*/ +var _id={ +code:"id", +formatDistance:formatDistance$45, +formatLong:formatLong$46, +formatRelative:formatRelative$45, +localize:{ +ordinalNumber:ordinalNumber$45, +era:buildLocalizeFn({ +values:eraValues$45, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$45, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$45, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$45, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$45, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$37, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^ke-(\d+)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(sm|m)/i, +abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, +wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^s/i,/^(m|e)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K-?\s[1234]/i, +wide:/^Kuartal ke-?\s?[1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, +wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^ma/i, +/^ap/i, +/^me/i, +/^jun/i, +/^jul/i, +/^ag/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[srkjm]/i, +short:/^(min|sen|sel|rab|kam|jum|sab)/i, +abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i, +wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^m/i, +/^s/i, +/^s/i, +/^r/i, +/^k/i, +/^j/i, +/^s/i], + +any:[ +/^m/i, +/^sen/i, +/^sel/i, +/^r/i, +/^k/i, +/^j/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, +any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^pm/i, +midnight:/^tengah m/i, +noon:/^tengah h/i, +morning:/pagi/i, +afternoon:/siang/i, +evening:/sore/i, +night:/malam/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/is/_lib/formatDistance.js +var formatDistanceLocale$44={ +lessThanXSeconds:{ +one:"minna en 1 sekúnda", +other:"minna en {{count}} sekúndur" +}, +xSeconds:{ +one:"1 sekúnda", +other:"{{count}} sekúndur" +}, +halfAMinute:"hálf mínúta", +lessThanXMinutes:{ +one:"minna en 1 mínúta", +other:"minna en {{count}} mínútur" +}, +xMinutes:{ +one:"1 mínúta", +other:"{{count}} mínútur" +}, +aboutXHours:{ +one:"u.þ.b. 1 klukkustund", +other:"u.þ.b. {{count}} klukkustundir" +}, +xHours:{ +one:"1 klukkustund", +other:"{{count}} klukkustundir" +}, +xDays:{ +one:"1 dagur", +other:"{{count}} dagar" +}, +aboutXWeeks:{ +one:"um viku", +other:"um {{count}} vikur" +}, +xWeeks:{ +one:"1 viku", +other:"{{count}} vikur" +}, +aboutXMonths:{ +one:"u.þ.b. 1 mánuður", +other:"u.þ.b. {{count}} mánuðir" +}, +xMonths:{ +one:"1 mánuður", +other:"{{count}} mánuðir" +}, +aboutXYears:{ +one:"u.þ.b. 1 ár", +other:"u.þ.b. {{count}} ár" +}, +xYears:{ +one:"1 ár", +other:"{{count}} ár" +}, +overXYears:{ +one:"meira en 1 ár", +other:"meira en {{count}} ár" +}, +almostXYears:{ +one:"næstum 1 ár", +other:"næstum {{count}} ár" +} +}; +var formatDistance$44=function formatDistance$44(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$44[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"í "+result;else +return result+" síðan"; +return result; +}; +var formatLong$45={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y", +long:"do MMMM y", +medium:"do MMM y", +short:"d.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"'kl'. HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kl.' {{time}}", +long:"{{date}} 'kl.' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/is/_lib/formatRelative.js +var formatRelativeLocale$44={ +lastWeek:"'síðasta' dddd 'kl.' p", +yesterday:"'í gær kl.' p", +today:"'í dag kl.' p", +tomorrow:"'á morgun kl.' p", +nextWeek:"dddd 'kl.' p", +other:"P" +}; +var formatRelative$44=function formatRelative$44(token,_date,_baseDate,_options){return formatRelativeLocale$44[token];}; +//#endregion +//#region dist/date-fns/locale/is/_lib/localize.js +var eraValues$44={ +narrow:["f.Kr.","e.Kr."], +abbreviated:["f.Kr.","e.Kr."], +wide:["fyrir Krist","eftir Krist"] +}; +var quarterValues$44={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1F", +"2F", +"3F", +"4F"], + +wide:[ +"1. fjórðungur", +"2. fjórðungur", +"3. fjórðungur", +"4. fjórðungur"] + +}; +var monthValues$44={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"Á", +"S", +"Ó", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mars", +"apríl", +"maí", +"júní", +"júlí", +"ágúst", +"sept.", +"okt.", +"nóv.", +"des."], + +wide:[ +"janúar", +"febrúar", +"mars", +"apríl", +"maí", +"júní", +"júlí", +"ágúst", +"september", +"október", +"nóvember", +"desember"] + +}; +var dayValues$44={ +narrow:[ +"S", +"M", +"Þ", +"M", +"F", +"F", +"L"], + +short:[ +"Su", +"Má", +"Þr", +"Mi", +"Fi", +"Fö", +"La"], + +abbreviated:[ +"sun.", +"mán.", +"þri.", +"mið.", +"fim.", +"fös.", +"lau."], + +wide:[ +"sunnudagur", +"mánudagur", +"þriðjudagur", +"miðvikudagur", +"fimmtudagur", +"föstudagur", +"laugardagur"] + +}; +var dayPeriodValues$44={ +narrow:{ +am:"f", +pm:"e", +midnight:"miðnætti", +noon:"hádegi", +morning:"morgunn", +afternoon:"síðdegi", +evening:"kvöld", +night:"nótt" +}, +abbreviated:{ +am:"f.h.", +pm:"e.h.", +midnight:"miðnætti", +noon:"hádegi", +morning:"morgunn", +afternoon:"síðdegi", +evening:"kvöld", +night:"nótt" +}, +wide:{ +am:"fyrir hádegi", +pm:"eftir hádegi", +midnight:"miðnætti", +noon:"hádegi", +morning:"morgunn", +afternoon:"síðdegi", +evening:"kvöld", +night:"nótt" +} +}; +var formattingDayPeriodValues$36={ +narrow:{ +am:"f", +pm:"e", +midnight:"á miðnætti", +noon:"á hádegi", +morning:"að morgni", +afternoon:"síðdegis", +evening:"um kvöld", +night:"um nótt" +}, +abbreviated:{ +am:"f.h.", +pm:"e.h.", +midnight:"á miðnætti", +noon:"á hádegi", +morning:"að morgni", +afternoon:"síðdegis", +evening:"um kvöld", +night:"um nótt" +}, +wide:{ +am:"fyrir hádegi", +pm:"eftir hádegi", +midnight:"á miðnætti", +noon:"á hádegi", +morning:"að morgni", +afternoon:"síðdegis", +evening:"um kvöld", +night:"um nótt" +} +}; +var ordinalNumber$44=function ordinalNumber$44(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/is.js +/** +* @category Locales +* @summary Icelandic locale. +* @language Icelandic +* @iso-639-2 isl +* @author Derek Blank [@derekblank](https://github.com/derekblank) +* @author Arnór Ýmir [@lamayg](https://github.com/lamayg) +*/ +var _is={ +code:"is", +formatDistance:formatDistance$44, +formatLong:formatLong$45, +formatRelative:formatRelative$44, +localize:{ +ordinalNumber:ordinalNumber$44, +era:buildLocalizeFn({ +values:eraValues$44, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$44, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$44, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$44, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$44, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$36, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)?/i, +parsePattern:/\d+(\.)?/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(f\.Kr\.|e\.Kr\.)/i, +abbreviated:/^(f\.Kr\.|e\.Kr\.)/i, +wide:/^(fyrir Krist|eftir Krist)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]\.?/i, +abbreviated:/^q[1234]\.?/i, +wide:/^[1234]\.? fjórðungur/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1\.?/i, +/2\.?/i, +/3\.?/i, +/4\.?/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmásónd]/i, +abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, +wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^á/i, +/^s/i, +/^ó/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maí/i, +/^jún/i, +/^júl/i, +/^áu/i, +/^s/i, +/^ó/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtwf]/i, +short:/^(su|má|þr|mi|fi|fö|la)/i, +abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i, +wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^þ/i, +/^m/i, +/^f/i, +/^f/i, +/^l/i], + +any:[ +/^su/i, +/^má/i, +/^þr/i, +/^mi/i, +/^fi/i, +/^fö/i, +/^la/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, +any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^f/i, +pm:/^e/i, +midnight:/^mi/i, +noon:/^há/i, +morning:/morgunn/i, +afternoon:/síðdegi/i, +evening:/kvöld/i, +night:/nótt/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/it/_lib/formatDistance.js +var formatDistanceLocale$43={ +lessThanXSeconds:{ +one:"meno di un secondo", +other:"meno di {{count}} secondi" +}, +xSeconds:{ +one:"un secondo", +other:"{{count}} secondi" +}, +halfAMinute:"alcuni secondi", +lessThanXMinutes:{ +one:"meno di un minuto", +other:"meno di {{count}} minuti" +}, +xMinutes:{ +one:"un minuto", +other:"{{count}} minuti" +}, +aboutXHours:{ +one:"circa un'ora", +other:"circa {{count}} ore" +}, +xHours:{ +one:"un'ora", +other:"{{count}} ore" +}, +xDays:{ +one:"un giorno", +other:"{{count}} giorni" +}, +aboutXWeeks:{ +one:"circa una settimana", +other:"circa {{count}} settimane" +}, +xWeeks:{ +one:"una settimana", +other:"{{count}} settimane" +}, +aboutXMonths:{ +one:"circa un mese", +other:"circa {{count}} mesi" +}, +xMonths:{ +one:"un mese", +other:"{{count}} mesi" +}, +aboutXYears:{ +one:"circa un anno", +other:"circa {{count}} anni" +}, +xYears:{ +one:"un anno", +other:"{{count}} anni" +}, +overXYears:{ +one:"più di un anno", +other:"più di {{count}} anni" +}, +almostXYears:{ +one:"quasi un anno", +other:"quasi {{count}} anni" +} +}; +var formatDistance$43=function formatDistance$43(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$43[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"tra "+result;else +return result+" fa"; +return result; +}; +var formatLong$44={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/it/_lib/formatRelative.js +var weekdays$2=[ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"]; + +function lastWeek$5(day){ +switch(day){ +case 0:return"'domenica scorsa alle' p"; +default:return"'"+weekdays$2[day]+" scorso alle' p"; +} +} +function thisWeek$5(day){ +return"'"+weekdays$2[day]+" alle' p"; +} +function nextWeek$5(day){ +switch(day){ +case 0:return"'domenica prossima alle' p"; +default:return"'"+weekdays$2[day]+" prossimo alle' p"; +} +} +var formatRelativeLocale$43={ +lastWeek:function lastWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$5(day);else +return lastWeek$5(day); +}, +yesterday:"'ieri alle' p", +today:"'oggi alle' p", +tomorrow:"'domani alle' p", +nextWeek:function nextWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$5(day);else +return nextWeek$5(day); +}, +other:"P" +}; +var formatRelative$43=function formatRelative$43(token,date,baseDate,options){ +var format=formatRelativeLocale$43[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/it/_lib/localize.js +var eraValues$43={ +narrow:["aC","dC"], +abbreviated:["a.C.","d.C."], +wide:["avanti Cristo","dopo Cristo"] +}; +var quarterValues$43={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1º trimestre", +"2º trimestre", +"3º trimestre", +"4º trimestre"] + +}; +var monthValues$43={ +narrow:[ +"G", +"F", +"M", +"A", +"M", +"G", +"L", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"gen", +"feb", +"mar", +"apr", +"mag", +"giu", +"lug", +"ago", +"set", +"ott", +"nov", +"dic"], + +wide:[ +"gennaio", +"febbraio", +"marzo", +"aprile", +"maggio", +"giugno", +"luglio", +"agosto", +"settembre", +"ottobre", +"novembre", +"dicembre"] + +}; +var dayValues$43={ +narrow:[ +"D", +"L", +"M", +"M", +"G", +"V", +"S"], + +short:[ +"dom", +"lun", +"mar", +"mer", +"gio", +"ven", +"sab"], + +abbreviated:[ +"dom", +"lun", +"mar", +"mer", +"gio", +"ven", +"sab"], + +wide:[ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"] + +}; +var dayPeriodValues$43={ +narrow:{ +am:"m.", +pm:"p.", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"mattina", +afternoon:"pomeriggio", +evening:"sera", +night:"notte" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"mattina", +afternoon:"pomeriggio", +evening:"sera", +night:"notte" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"mattina", +afternoon:"pomeriggio", +evening:"sera", +night:"notte" +} +}; +var formattingDayPeriodValues$35={ +narrow:{ +am:"m.", +pm:"p.", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"di mattina", +afternoon:"del pomeriggio", +evening:"di sera", +night:"di notte" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"di mattina", +afternoon:"del pomeriggio", +evening:"di sera", +night:"di notte" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"mezzanotte", +noon:"mezzogiorno", +morning:"di mattina", +afternoon:"del pomeriggio", +evening:"di sera", +night:"di notte" +} +}; +var ordinalNumber$43=function ordinalNumber$43(dirtyNumber,_options){ +var number=Number(dirtyNumber); +return String(number); +}; +var localize$43={ +ordinalNumber:ordinalNumber$43, +era:buildLocalizeFn({ +values:eraValues$43, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$43, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$43, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$43, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$43, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$35, +defaultFormattingWidth:"wide" +}) +}; +var match$43={ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(º)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(aC|dC)/i, +abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, +wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^a/i,/^(d|e)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^t[1234]/i, +wide:/^[1234](º)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[gfmalsond]/i, +abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, +wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +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], + +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] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmgvs]/i, +short:/^(do|lu|ma|me|gi|ve|sa)/i, +abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i, +wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^g/i, +/^v/i, +/^s/i], + +any:[ +/^d/i, +/^l/i, +/^ma/i, +/^me/i, +/^g/i, +/^v/i, +/^s/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, +any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mezza/i, +noon:/^mezzo/i, +morning:/mattina/i, +afternoon:/pomeriggio/i, +evening:/sera/i, +night:/notte/i +}}, +defaultParseWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/it.js +/** +* @category Locales +* @summary Italian locale. +* @language Italian +* @iso-639-2 ita +* @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) +* @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) +* @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) +*/ +var _it={ +code:"it", +formatDistance:formatDistance$43, +formatLong:formatLong$44, +formatRelative:formatRelative$43, +localize:localize$43, +match:match$43, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/it-CH.js +/** +* @category Locales +* @summary Italian locale (Switzerland). +* @language Italian +* @iso-639-2 ita +* @author Mike Peyer [@maic66](https://github.com/maic66) +*/ +var _itCH={ +code:"it-CH", +formatDistance:formatDistance$43, +formatLong:{ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}, +formatRelative:formatRelative$43, +localize:localize$43, +match:match$43, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/ja/_lib/formatDistance.js +var formatDistanceLocale$42={ +lessThanXSeconds:{ +one:"1秒未満", +other:"{{count}}秒未満", +oneWithSuffix:"約1秒", +otherWithSuffix:"約{{count}}秒" +}, +xSeconds:{ +one:"1秒", +other:"{{count}}秒" +}, +halfAMinute:"30秒", +lessThanXMinutes:{ +one:"1分未満", +other:"{{count}}分未満", +oneWithSuffix:"約1分", +otherWithSuffix:"約{{count}}分" +}, +xMinutes:{ +one:"1分", +other:"{{count}}分" +}, +aboutXHours:{ +one:"約1時間", +other:"約{{count}}時間" +}, +xHours:{ +one:"1時間", +other:"{{count}}時間" +}, +xDays:{ +one:"1日", +other:"{{count}}日" +}, +aboutXWeeks:{ +one:"約1週間", +other:"約{{count}}週間" +}, +xWeeks:{ +one:"1週間", +other:"{{count}}週間" +}, +aboutXMonths:{ +one:"約1か月", +other:"約{{count}}か月" +}, +xMonths:{ +one:"1か月", +other:"{{count}}か月" +}, +aboutXYears:{ +one:"約1年", +other:"約{{count}}年" +}, +xYears:{ +one:"1年", +other:"{{count}}年" +}, +overXYears:{ +one:"1年以上", +other:"{{count}}年以上" +}, +almostXYears:{ +one:"1年近く", +other:"{{count}}年近く" +} +}; +var formatDistance$42=function formatDistance$42(token,count,options){ +options=options||{}; +var result; +var tokenValue=formatDistanceLocale$42[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options.addSuffix&&tokenValue.oneWithSuffix)result=tokenValue.oneWithSuffix;else +result=tokenValue.one;}else +if(options.addSuffix&&tokenValue.otherWithSuffix)result=tokenValue.otherWithSuffix.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options.addSuffix)if(options.comparison&&options.comparison>0)return result+"後";else +return result+"前"; +return result; +}; +var formatLong$42={ +date:buildFormatLongFn({ +formats:{ +full:"y年M月d日EEEE", +long:"y年M月d日", +medium:"y/MM/dd", +short:"y/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H時mm分ss秒 zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ja/_lib/formatRelative.js +var formatRelativeLocale$42={ +lastWeek:"先週のeeeeのp", +yesterday:"昨日のp", +today:"今日のp", +tomorrow:"明日のp", +nextWeek:"翌週のeeeeのp", +other:"P" +}; +var formatRelative$42=function formatRelative$42(token,_date,_baseDate,_options){ +return formatRelativeLocale$42[token]; +}; +//#endregion +//#region dist/date-fns/locale/ja/_lib/localize.js +var eraValues$42={ +narrow:["BC","AC"], +abbreviated:["紀元前","西暦"], +wide:["紀元前","西暦"] +}; +var quarterValues$42={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"第1四半期", +"第2四半期", +"第3四半期", +"第4四半期"] + +}; +var monthValues$42={ +narrow:[ +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"10", +"11", +"12"], + +abbreviated:[ +"1月", +"2月", +"3月", +"4月", +"5月", +"6月", +"7月", +"8月", +"9月", +"10月", +"11月", +"12月"], + +wide:[ +"1月", +"2月", +"3月", +"4月", +"5月", +"6月", +"7月", +"8月", +"9月", +"10月", +"11月", +"12月"] + +}; +var dayValues$42={ +narrow:[ +"日", +"月", +"火", +"水", +"木", +"金", +"土"], + +short:[ +"日", +"月", +"火", +"水", +"木", +"金", +"土"], + +abbreviated:[ +"日", +"月", +"火", +"水", +"木", +"金", +"土"], + +wide:[ +"日曜日", +"月曜日", +"火曜日", +"水曜日", +"木曜日", +"金曜日", +"土曜日"] + +}; +var dayPeriodValues$42={ +narrow:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +}, +abbreviated:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +}, +wide:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +} +}; +var formattingDayPeriodValues$34={ +narrow:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +}, +abbreviated:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +}, +wide:{ +am:"午前", +pm:"午後", +midnight:"深夜", +noon:"正午", +morning:"朝", +afternoon:"午後", +evening:"夜", +night:"深夜" +} +}; +var ordinalNumber$42=function ordinalNumber$42(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(String(options===null||options===void 0?void 0:options.unit)){ +case"year":return"".concat(number,"\u5E74"); +case"quarter":return"\u7B2C".concat(number,"\u56DB\u534A\u671F"); +case"month":return"".concat(number,"\u6708"); +case"week":return"\u7B2C".concat(number,"\u9031"); +case"date":return"".concat(number,"\u65E5"); +case"hour":return"".concat(number,"\u6642"); +case"minute":return"".concat(number,"\u5206"); +case"second":return"".concat(number,"\u79D2"); +default:return"".concat(number); +} +}; +//#endregion +//#region dist/date-fns/locale/ja.js +/** +* @category Locales +* @summary Japanese locale. +* @language Japanese +* @iso-639-2 jpn +* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) +* @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) +* @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) +* @author Terrence Lam [@skyuplam](https://github.com/skyuplam) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var _ja={ +code:"ja", +formatDistance:formatDistance$42, +formatLong:formatLong$42, +formatRelative:formatRelative$42, +localize:{ +ordinalNumber:ordinalNumber$42, +era:buildLocalizeFn({ +values:eraValues$42, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$42, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$42, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$42, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$42, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$34, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(B\.?C\.?|A\.?D\.?)/i, +abbreviated:/^(紀元[前後]|西暦)/i, +wide:/^(紀元[前後]|西暦)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/^B/i,/^A/i], +any:[/^(紀元前)/i,/^(西暦|紀元後)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^Q[1234]/i, +wide:/^第[1234一二三四1234]四半期/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|一|1)/i, +/(2|二|2)/i, +/(3|三|3)/i, +/(4|四|4)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^([123456789]|1[012])/, +abbreviated:/^([123456789]|1[012])月/i, +wide:/^([123456789]|1[012])月/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^1\D/, +/^2/, +/^3/, +/^4/, +/^5/, +/^6/, +/^7/, +/^8/, +/^9/, +/^10/, +/^11/, +/^12/] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[日月火水木金土]/, +short:/^[日月火水木金土]/, +abbreviated:/^[日月火水木金土]/, +wide:/^[日月火水木金土]曜日/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^日/, +/^月/, +/^火/, +/^水/, +/^木/, +/^金/, +/^土/] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^(A|午前)/i, +pm:/^(P|午後)/i, +midnight:/^深夜|真夜中/i, +noon:/^正午/i, +morning:/^朝/i, +afternoon:/^午後/i, +evening:/^夜/i, +night:/^深夜/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ja-Hira/_lib/formatDistance.js +var formatDistanceLocale$41={ +lessThanXSeconds:{ +one:"1びょうみまん", +other:"{{count}}びょうみまん", +oneWithSuffix:"やく1びょう", +otherWithSuffix:"やく{{count}}びょう" +}, +xSeconds:{ +one:"1びょう", +other:"{{count}}びょう" +}, +halfAMinute:"30びょう", +lessThanXMinutes:{ +one:"1ぷんみまん", +other:"{{count}}ふんみまん", +oneWithSuffix:"やく1ぷん", +otherWithSuffix:"やく{{count}}ふん" +}, +xMinutes:{ +one:"1ぷん", +other:"{{count}}ふん" +}, +aboutXHours:{ +one:"やく1じかん", +other:"やく{{count}}じかん" +}, +xHours:{ +one:"1じかん", +other:"{{count}}じかん" +}, +xDays:{ +one:"1にち", +other:"{{count}}にち" +}, +aboutXWeeks:{ +one:"やく1しゅうかん", +other:"やく{{count}}しゅうかん" +}, +xWeeks:{ +one:"1しゅうかん", +other:"{{count}}しゅうかん" +}, +aboutXMonths:{ +one:"やく1かげつ", +other:"やく{{count}}かげつ" +}, +xMonths:{ +one:"1かげつ", +other:"{{count}}かげつ" +}, +aboutXYears:{ +one:"やく1ねん", +other:"やく{{count}}ねん" +}, +xYears:{ +one:"1ねん", +other:"{{count}}ねん" +}, +overXYears:{ +one:"1ねんいじょう", +other:"{{count}}ねんいじょう" +}, +almostXYears:{ +one:"1ねんちかく", +other:"{{count}}ねんちかく" +} +}; +var formatDistance$41=function formatDistance$41(token,count,options){ +options=options||{}; +var result; +var tokenValue=formatDistanceLocale$41[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options.addSuffix&&tokenValue.oneWithSuffix)result=tokenValue.oneWithSuffix;else +result=tokenValue.one;}else +if(options.addSuffix&&tokenValue.otherWithSuffix)result=tokenValue.otherWithSuffix.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options.addSuffix)if(options.comparison&&options.comparison>0)return result+"あと";else +return result+"まえ"; +return result; +}; +var formatLong$41={ +date:buildFormatLongFn({ +formats:{ +full:"yねんMがつdにちEEEE", +long:"yねんMがつdにち", +medium:"y/MM/dd", +short:"y/MM/dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"Hじmmふんssびょう zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ja-Hira/_lib/formatRelative.js +var formatRelativeLocale$41={ +lastWeek:"せんしゅうのeeeeのp", +yesterday:"きのうのp", +today:"きょうのp", +tomorrow:"あしたのp", +nextWeek:"よくしゅうのeeeeのp", +other:"P" +}; +var formatRelative$41=function formatRelative$41(token,_date,_baseDate,_options){ +return formatRelativeLocale$41[token]; +}; +//#endregion +//#region dist/date-fns/locale/ja-Hira/_lib/localize.js +var eraValues$41={ +narrow:["BC","AC"], +abbreviated:["きげんぜん","せいれき"], +wide:["きげんぜん","せいれき"] +}; +var quarterValues$41={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"だい1しはんき", +"だい2しはんき", +"だい3しはんき", +"だい4しはんき"] + +}; +var monthValues$41={ +narrow:[ +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"10", +"11", +"12"], + +abbreviated:[ +"1がつ", +"2がつ", +"3がつ", +"4がつ", +"5がつ", +"6がつ", +"7がつ", +"8がつ", +"9がつ", +"10がつ", +"11がつ", +"12がつ"], + +wide:[ +"1がつ", +"2がつ", +"3がつ", +"4がつ", +"5がつ", +"6がつ", +"7がつ", +"8がつ", +"9がつ", +"10がつ", +"11がつ", +"12がつ"] + +}; +var dayValues$41={ +narrow:[ +"にち", +"げつ", +"か", +"すい", +"もく", +"きん", +"ど"], + +short:[ +"にち", +"げつ", +"か", +"すい", +"もく", +"きん", +"ど"], + +abbreviated:[ +"にち", +"げつ", +"か", +"すい", +"もく", +"きん", +"ど"], + +wide:[ +"にちようび", +"げつようび", +"かようび", +"すいようび", +"もくようび", +"きんようび", +"どようび"] + +}; +var dayPeriodValues$41={ +narrow:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +}, +abbreviated:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +}, +wide:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +} +}; +var formattingDayPeriodValues$33={ +narrow:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +}, +abbreviated:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +}, +wide:{ +am:"ごぜん", +pm:"ごご", +midnight:"しんや", +noon:"しょうご", +morning:"あさ", +afternoon:"ごご", +evening:"よる", +night:"しんや" +} +}; +var ordinalNumber$41=function ordinalNumber$41(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(String(options===null||options===void 0?void 0:options.unit)){ +case"year":return"".concat(number,"\u306D\u3093"); +case"quarter":return"\u3060\u3044".concat(number,"\u3057\u306F\u3093\u304D"); +case"month":return"".concat(number,"\u304C\u3064"); +case"week":return"\u3060\u3044".concat(number,"\u3057\u3085\u3046"); +case"date":return"".concat(number,"\u306B\u3061"); +case"hour":return"".concat(number,"\u3058"); +case"minute":return"".concat(number,"\u3075\u3093"); +case"second":return"".concat(number,"\u3073\u3087\u3046"); +default:return"".concat(number); +} +}; +//#endregion +//#region dist/date-fns/locale/ja-Hira.js +/** +* @category Locales +* @summary Japanese (Hiragana) locale. +* @language Japanese (Hiragana) +* @iso-639-2 jpn +* @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) +*/ +var _jaHira={ +code:"ja-Hira", +formatDistance:formatDistance$41, +formatLong:formatLong$41, +formatRelative:formatRelative$41, +localize:{ +ordinalNumber:ordinalNumber$41, +era:buildLocalizeFn({ +values:eraValues$41, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$41, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$41, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$41, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$41, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$33, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(B\.?C\.?|A\.?D\.?)/i, +abbreviated:/^(きげん[前後]|せいれき)/i, +wide:/^(きげん[前後]|せいれき)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[/^B/i,/^A/i], +any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^Q[1234]/i, +wide:/^だい[1234一二三四1234]しはんき/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|一|1)/i, +/(2|二|2)/i, +/(3|三|3)/i, +/(4|四|4)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^([123456789]|1[012])/, +abbreviated:/^([123456789]|1[012])がつ/i, +wide:/^([123456789]|1[012])がつ/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^1\D/, +/^2/, +/^3/, +/^4/, +/^5/, +/^6/, +/^7/, +/^8/, +/^9/, +/^10/, +/^11/, +/^12/] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(にち|げつ|か|すい|もく|きん|ど)/, +short:/^(にち|げつ|か|すい|もく|きん|ど)/, +abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/, +wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^にち/, +/^げつ/, +/^か/, +/^すい/, +/^もく/, +/^きん/, +/^ど/] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^(A|ごぜん)/i, +pm:/^(P|ごご)/i, +midnight:/^しんや|まよなか/i, +noon:/^しょうご/i, +morning:/^あさ/i, +afternoon:/^ごご/i, +evening:/^よる/i, +night:/^しんや/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ka/_lib/formatDistance.js +var formatDistanceLocale$40={ +lessThanXSeconds:{ +past:"{{count}} წამზე ნაკლები ხნის წინ", +present:"{{count}} წამზე ნაკლები", +future:"{{count}} წამზე ნაკლებში" +}, +xSeconds:{ +past:"{{count}} წამის წინ", +present:"{{count}} წამი", +future:"{{count}} წამში" +}, +halfAMinute:{ +past:"ნახევარი წუთის წინ", +present:"ნახევარი წუთი", +future:"ნახევარი წუთში" +}, +lessThanXMinutes:{ +past:"{{count}} წუთზე ნაკლები ხნის წინ", +present:"{{count}} წუთზე ნაკლები", +future:"{{count}} წუთზე ნაკლებში" +}, +xMinutes:{ +past:"{{count}} წუთის წინ", +present:"{{count}} წუთი", +future:"{{count}} წუთში" +}, +aboutXHours:{ +past:"დაახლოებით {{count}} საათის წინ", +present:"დაახლოებით {{count}} საათი", +future:"დაახლოებით {{count}} საათში" +}, +xHours:{ +past:"{{count}} საათის წინ", +present:"{{count}} საათი", +future:"{{count}} საათში" +}, +xDays:{ +past:"{{count}} დღის წინ", +present:"{{count}} დღე", +future:"{{count}} დღეში" +}, +aboutXWeeks:{ +past:"დაახლოებით {{count}} კვირას წინ", +present:"დაახლოებით {{count}} კვირა", +future:"დაახლოებით {{count}} კვირაში" +}, +xWeeks:{ +past:"{{count}} კვირას კვირა", +present:"{{count}} კვირა", +future:"{{count}} კვირაში" +}, +aboutXMonths:{ +past:"დაახლოებით {{count}} თვის წინ", +present:"დაახლოებით {{count}} თვე", +future:"დაახლოებით {{count}} თვეში" +}, +xMonths:{ +past:"{{count}} თვის წინ", +present:"{{count}} თვე", +future:"{{count}} თვეში" +}, +aboutXYears:{ +past:"დაახლოებით {{count}} წლის წინ", +present:"დაახლოებით {{count}} წელი", +future:"დაახლოებით {{count}} წელში" +}, +xYears:{ +past:"{{count}} წლის წინ", +present:"{{count}} წელი", +future:"{{count}} წელში" +}, +overXYears:{ +past:"{{count}} წელზე მეტი ხნის წინ", +present:"{{count}} წელზე მეტი", +future:"{{count}} წელზე მეტი ხნის შემდეგ" +}, +almostXYears:{ +past:"თითქმის {{count}} წლის წინ", +present:"თითქმის {{count}} წელი", +future:"თითქმის {{count}} წელში" +} +}; +var formatDistance$40=function formatDistance$40(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$40[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(options!==null&&options!==void 0&&options.addSuffix&&options.comparison&&options.comparison>0)result=tokenValue.future.replace("{{count}}",String(count));else +if(options!==null&&options!==void 0&&options.addSuffix)result=tokenValue.past.replace("{{count}}",String(count));else +result=tokenValue.present.replace("{{count}}",String(count)); +return result; +}; +var formatLong$40={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM, y", +long:"do, MMMM, y", +medium:"d, MMM, y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}'-ზე'", +long:"{{date}} {{time}}'-ზე'", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ka/_lib/formatRelative.js +var formatRelativeLocale$40={ +lastWeek:"'წინა' eeee p'-ზე'", +yesterday:"'გუშინ' p'-ზე'", +today:"'დღეს' p'-ზე'", +tomorrow:"'ხვალ' p'-ზე'", +nextWeek:"'შემდეგი' eeee p'-ზე'", +other:"P" +}; +var formatRelative$40=function formatRelative$40(token,_date,_baseDate,_options){return formatRelativeLocale$40[token];}; +//#endregion +//#region dist/date-fns/locale/ka/_lib/localize.js +var eraValues$40={ +narrow:["ჩ.წ-მდე","ჩ.წ"], +abbreviated:["ჩვ.წ-მდე","ჩვ.წ"], +wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"] +}; +var quarterValues$40={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-ლი კვ", +"2-ე კვ", +"3-ე კვ", +"4-ე კვ"], + +wide:[ +"1-ლი კვარტალი", +"2-ე კვარტალი", +"3-ე კვარტალი", +"4-ე კვარტალი"] + +}; +var monthValues$40={ +narrow:[ +"ია", +"თე", +"მა", +"აპ", +"მს", +"ვნ", +"ვლ", +"აგ", +"სე", +"ოქ", +"ნო", +"დე"], + +abbreviated:[ +"იან", +"თებ", +"მარ", +"აპრ", +"მაი", +"ივნ", +"ივლ", +"აგვ", +"სექ", +"ოქტ", +"ნოე", +"დეკ"], + +wide:[ +"იანვარი", +"თებერვალი", +"მარტი", +"აპრილი", +"მაისი", +"ივნისი", +"ივლისი", +"აგვისტო", +"სექტემბერი", +"ოქტომბერი", +"ნოემბერი", +"დეკემბერი"] + +}; +var dayValues$40={ +narrow:[ +"კვ", +"ორ", +"სა", +"ოთ", +"ხუ", +"პა", +"შა"], + +short:[ +"კვი", +"ორშ", +"სამ", +"ოთხ", +"ხუთ", +"პარ", +"შაბ"], + +abbreviated:[ +"კვი", +"ორშ", +"სამ", +"ოთხ", +"ხუთ", +"პარ", +"შაბ"], + +wide:[ +"კვირა", +"ორშაბათი", +"სამშაბათი", +"ოთხშაბათი", +"ხუთშაბათი", +"პარასკევი", +"შაბათი"] + +}; +var dayPeriodValues$40={ +narrow:{ +am:"a", +pm:"p", +midnight:"შუაღამე", +noon:"შუადღე", +morning:"დილა", +afternoon:"საღამო", +evening:"საღამო", +night:"ღამე" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"შუაღამე", +noon:"შუადღე", +morning:"დილა", +afternoon:"საღამო", +evening:"საღამო", +night:"ღამე" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"შუაღამე", +noon:"შუადღე", +morning:"დილა", +afternoon:"საღამო", +evening:"საღამო", +night:"ღამე" +} +}; +var formattingDayPeriodValues$32={ +narrow:{ +am:"a", +pm:"p", +midnight:"შუაღამით", +noon:"შუადღისას", +morning:"დილით", +afternoon:"ნაშუადღევს", +evening:"საღამოს", +night:"ღამით" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"შუაღამით", +noon:"შუადღისას", +morning:"დილით", +afternoon:"ნაშუადღევს", +evening:"საღამოს", +night:"ღამით" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"შუაღამით", +noon:"შუადღისას", +morning:"დილით", +afternoon:"ნაშუადღევს", +evening:"საღამოს", +night:"ღამით" +} +}; +var ordinalNumber$40=function ordinalNumber$40(dirtyNumber){ +var number=Number(dirtyNumber); +if(number===1)return number+"-ლი"; +return number+"-ე"; +}; +//#endregion +//#region dist/date-fns/locale/ka.js +/** +* @category Locales +* @summary Georgian locale. +* @language Georgian +* @iso-639-2 geo +* @author Lado Lomidze [@Landish](https://github.com/Landish) +* @author Nick Shvelidze [@shvelo](https://github.com/shvelo) +*/ +var _ka={ +code:"ka", +formatDistance:formatDistance$40, +formatLong:formatLong$40, +formatRelative:formatRelative$40, +localize:{ +ordinalNumber:ordinalNumber$40, +era:buildLocalizeFn({ +values:eraValues$40, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$40, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$40, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$40, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$40, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$32, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-ლი|-ე)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ჩვ?\.წ)/i, +abbreviated:/^(ჩვ?\.წ)/i, +wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]-(ლი|ე)? კვ/i, +wide:/^[1234]-(ლი|ე)? კვარტალი/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:[ +/^ია/i, +/^თ/i, +/^მარ/i, +/^აპ/i, +/^მაი/i, +/^ი?ვნ/i, +/^ი?ვლ/i, +/^აგ/i, +/^ს/i, +/^ო/i, +/^ნ/i, +/^დ/i] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, +short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, +wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^კვ/i, +/^ორ/i, +/^სა/i, +/^ოთ/i, +/^ხუ/i, +/^პა/i, +/^შა/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^შუაღ/i, +noon:/^შუადღ/i, +morning:/^დილ/i, +afternoon:/ნაშუადღევს/i, +evening:/საღამო/i, +night:/ღამ/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/kk/_lib/formatDistance.js +var formatDistanceLocale$39={ +lessThanXSeconds:{ +regular:{ +one:"1 секундтан аз", +singularNominative:"{{count}} секундтан аз", +singularGenitive:"{{count}} секундтан аз", +pluralGenitive:"{{count}} секундтан аз" +}, +future:{ +one:"бір секундтан кейін", +singularNominative:"{{count}} секундтан кейін", +singularGenitive:"{{count}} секундтан кейін", +pluralGenitive:"{{count}} секундтан кейін" +} +}, +xSeconds:{ +regular:{ +singularNominative:"{{count}} секунд", +singularGenitive:"{{count}} секунд", +pluralGenitive:"{{count}} секунд" +}, +past:{ +singularNominative:"{{count}} секунд бұрын", +singularGenitive:"{{count}} секунд бұрын", +pluralGenitive:"{{count}} секунд бұрын" +}, +future:{ +singularNominative:"{{count}} секундтан кейін", +singularGenitive:"{{count}} секундтан кейін", +pluralGenitive:"{{count}} секундтан кейін" +} +}, +halfAMinute:function halfAMinute(options){ +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"жарты минут ішінде";else +return"жарты минут бұрын"; +return"жарты минут"; +}, +lessThanXMinutes:{ +regular:{ +one:"1 минуттан аз", +singularNominative:"{{count}} минуттан аз", +singularGenitive:"{{count}} минуттан аз", +pluralGenitive:"{{count}} минуттан аз" +}, +future:{ +one:"минуттан кем ", +singularNominative:"{{count}} минуттан кем", +singularGenitive:"{{count}} минуттан кем", +pluralGenitive:"{{count}} минуттан кем" +} +}, +xMinutes:{ +regular:{ +singularNominative:"{{count}} минут", +singularGenitive:"{{count}} минут", +pluralGenitive:"{{count}} минут" +}, +past:{ +singularNominative:"{{count}} минут бұрын", +singularGenitive:"{{count}} минут бұрын", +pluralGenitive:"{{count}} минут бұрын" +}, +future:{ +singularNominative:"{{count}} минуттан кейін", +singularGenitive:"{{count}} минуттан кейін", +pluralGenitive:"{{count}} минуттан кейін" +} +}, +aboutXHours:{ +regular:{ +singularNominative:"шамамен {{count}} сағат", +singularGenitive:"шамамен {{count}} сағат", +pluralGenitive:"шамамен {{count}} сағат" +}, +future:{ +singularNominative:"шамамен {{count}} сағаттан кейін", +singularGenitive:"шамамен {{count}} сағаттан кейін", +pluralGenitive:"шамамен {{count}} сағаттан кейін" +} +}, +xHours:{regular:{ +singularNominative:"{{count}} сағат", +singularGenitive:"{{count}} сағат", +pluralGenitive:"{{count}} сағат" +}}, +xDays:{ +regular:{ +singularNominative:"{{count}} күн", +singularGenitive:"{{count}} күн", +pluralGenitive:"{{count}} күн" +}, +future:{ +singularNominative:"{{count}} күннен кейін", +singularGenitive:"{{count}} күннен кейін", +pluralGenitive:"{{count}} күннен кейін" +} +}, +aboutXWeeks:{ +type:"weeks", +one:"шамамен 1 апта", +other:"шамамен {{count}} апта" +}, +xWeeks:{ +type:"weeks", +one:"1 апта", +other:"{{count}} апта" +}, +aboutXMonths:{ +regular:{ +singularNominative:"шамамен {{count}} ай", +singularGenitive:"шамамен {{count}} ай", +pluralGenitive:"шамамен {{count}} ай" +}, +future:{ +singularNominative:"шамамен {{count}} айдан кейін", +singularGenitive:"шамамен {{count}} айдан кейін", +pluralGenitive:"шамамен {{count}} айдан кейін" +} +}, +xMonths:{regular:{ +singularNominative:"{{count}} ай", +singularGenitive:"{{count}} ай", +pluralGenitive:"{{count}} ай" +}}, +aboutXYears:{ +regular:{ +singularNominative:"шамамен {{count}} жыл", +singularGenitive:"шамамен {{count}} жыл", +pluralGenitive:"шамамен {{count}} жыл" +}, +future:{ +singularNominative:"шамамен {{count}} жылдан кейін", +singularGenitive:"шамамен {{count}} жылдан кейін", +pluralGenitive:"шамамен {{count}} жылдан кейін" +} +}, +xYears:{ +regular:{ +singularNominative:"{{count}} жыл", +singularGenitive:"{{count}} жыл", +pluralGenitive:"{{count}} жыл" +}, +future:{ +singularNominative:"{{count}} жылдан кейін", +singularGenitive:"{{count}} жылдан кейін", +pluralGenitive:"{{count}} жылдан кейін" +} +}, +overXYears:{ +regular:{ +singularNominative:"{{count}} жылдан астам", +singularGenitive:"{{count}} жылдан астам", +pluralGenitive:"{{count}} жылдан астам" +}, +future:{ +singularNominative:"{{count}} жылдан астам", +singularGenitive:"{{count}} жылдан астам", +pluralGenitive:"{{count}} жылдан астам" +} +}, +almostXYears:{ +regular:{ +singularNominative:"{{count}} жылға жақын", +singularGenitive:"{{count}} жылға жақын", +pluralGenitive:"{{count}} жылға жақын" +}, +future:{ +singularNominative:"{{count}} жылдан кейін", +singularGenitive:"{{count}} жылдан кейін", +pluralGenitive:"{{count}} жылдан кейін" +} +} +}; +function declension$4(scheme,count){ +if(scheme.one&&count===1)return scheme.one; +var rem10=count%10; +var rem100=count%100; +if(rem10===1&&rem100!==11)return scheme.singularNominative.replace("{{count}}",String(count));else +if(rem10>=2&&rem10<=4&&(rem100<10||rem100>20))return scheme.singularGenitive.replace("{{count}}",String(count));else +return scheme.pluralGenitive.replace("{{count}}",String(count)); +} +var formatDistance$39=function formatDistance$39(token,count,options){ +var tokenValue=formatDistanceLocale$39[token]; +if(typeof tokenValue==="function")return tokenValue(options); +if(tokenValue.type==="weeks")return count===1?tokenValue.one:tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0){if(tokenValue.future)return declension$4(tokenValue.future,count);else +return declension$4(tokenValue.regular,count)+" кейін";}else +if(tokenValue.past)return declension$4(tokenValue.past,count);else +return declension$4(tokenValue.regular,count)+" бұрын";}else +return declension$4(tokenValue.regular,count); +}; +var formatLong$39={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y 'ж.'", +long:"do MMMM y 'ж.'", +medium:"d MMM y 'ж.'", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/kk/_lib/formatRelative.js +var accusativeWeekdays$3=[ +"жексенбіде", +"дүйсенбіде", +"сейсенбіде", +"сәрсенбіде", +"бейсенбіде", +"жұмада", +"сенбіде"]; + +function lastWeek$4(day){ +return"'өткен "+accusativeWeekdays$3[day]+" сағат' p'-де'"; +} +function thisWeek$4(day){ +return"'"+accusativeWeekdays$3[day]+" сағат' p'-де'"; +} +function nextWeek$4(day){ +return"'келесі "+accusativeWeekdays$3[day]+" сағат' p'-де'"; +} +var formatRelativeLocale$39={ +lastWeek:function lastWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$4(day);else +return lastWeek$4(day); +}, +yesterday:"'кеше сағат' p'-де'", +today:"'бүгін сағат' p'-де'", +tomorrow:"'ертең сағат' p'-де'", +nextWeek:function nextWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$4(day);else +return nextWeek$4(day); +}, +other:"P" +}; +var formatRelative$39=function formatRelative$39(token,date,baseDate,options){ +var format=formatRelativeLocale$39[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/kk/_lib/localize.js +var eraValues$39={ +narrow:["б.з.д.","б.з."], +abbreviated:["б.з.д.","б.з."], +wide:["біздің заманымызға дейін","біздің заманымыз"] +}; +var quarterValues$39={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-ші тоқ.", +"2-ші тоқ.", +"3-ші тоқ.", +"4-ші тоқ."], + +wide:[ +"1-ші тоқсан", +"2-ші тоқсан", +"3-ші тоқсан", +"4-ші тоқсан"] + +}; +var monthValues$39={ +narrow:[ +"Қ", +"А", +"Н", +"С", +"М", +"М", +"Ш", +"Т", +"Қ", +"Қ", +"Қ", +"Ж"], + +abbreviated:[ +"қаң", +"ақп", +"нау", +"сәу", +"мам", +"мау", +"шіл", +"там", +"қыр", +"қаз", +"қар", +"жел"], + +wide:[ +"қаңтар", +"ақпан", +"наурыз", +"сәуір", +"мамыр", +"маусым", +"шілде", +"тамыз", +"қыркүйек", +"қазан", +"қараша", +"желтоқсан"] + +}; +var formattingMonthValues$9={ +narrow:[ +"Қ", +"А", +"Н", +"С", +"М", +"М", +"Ш", +"Т", +"Қ", +"Қ", +"Қ", +"Ж"], + +abbreviated:[ +"қаң", +"ақп", +"нау", +"сәу", +"мам", +"мау", +"шіл", +"там", +"қыр", +"қаз", +"қар", +"жел"], + +wide:[ +"қаңтар", +"ақпан", +"наурыз", +"сәуір", +"мамыр", +"маусым", +"шілде", +"тамыз", +"қыркүйек", +"қазан", +"қараша", +"желтоқсан"] + +}; +var dayValues$39={ +narrow:[ +"Ж", +"Д", +"С", +"С", +"Б", +"Ж", +"С"], + +short:[ +"жс", +"дс", +"сс", +"ср", +"бс", +"жм", +"сб"], + +abbreviated:[ +"жс", +"дс", +"сс", +"ср", +"бс", +"жм", +"сб"], + +wide:[ +"жексенбі", +"дүйсенбі", +"сейсенбі", +"сәрсенбі", +"бейсенбі", +"жұма", +"сенбі"] + +}; +var dayPeriodValues$39={ +narrow:{ +am:"ТД", +pm:"ТК", +midnight:"түн ортасы", +noon:"түс", +morning:"таң", +afternoon:"күндіз", +evening:"кеш", +night:"түн" +}, +wide:{ +am:"ТД", +pm:"ТК", +midnight:"түн ортасы", +noon:"түс", +morning:"таң", +afternoon:"күндіз", +evening:"кеш", +night:"түн" +} +}; +var formattingDayPeriodValues$31={ +narrow:{ +am:"ТД", +pm:"ТК", +midnight:"түн ортасында", +noon:"түс", +morning:"таң", +afternoon:"күн", +evening:"кеш", +night:"түн" +}, +wide:{ +am:"ТД", +pm:"ТК", +midnight:"түн ортасында", +noon:"түсте", +morning:"таңертең", +afternoon:"күндіз", +evening:"кеште", +night:"түнде" +} +}; +var suffixes={ +0:"-ші", +1:"-ші", +2:"-ші", +3:"-ші", +4:"-ші", +5:"-ші", +6:"-шы", +7:"-ші", +8:"-ші", +9:"-шы", +10:"-шы", +20:"-шы", +30:"-шы", +40:"-шы", +50:"-ші", +60:"-шы", +70:"-ші", +80:"-ші", +90:"-шы", +100:"-ші" +}; +var ordinalNumber$39=function ordinalNumber$39(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var mod10=number%10; +var b=number>=100?100:null; +return number+(suffixes[number]||suffixes[mod10]||b&&suffixes[b]||""); +}; +//#endregion +//#region dist/date-fns/locale/kk.js +/** +* @category Locales +* @summary Kazakh locale. +* @language Kazakh +* @iso-639-2 kaz +* @author Nikita Bayev [@drugoi](https://github.com/drugoi) +*/ +var _kk={ +code:"kk", +formatDistance:formatDistance$39, +formatLong:formatLong$39, +formatRelative:formatRelative$39, +localize:{ +ordinalNumber:ordinalNumber$39, +era:buildLocalizeFn({ +values:eraValues$39, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$39, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$39, +defaultWidth:"wide", +formattingValues:formattingMonthValues$9, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$39, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$39, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$31, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(ші|шы))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((б )?з\.?\s?д\.?)/i, +abbreviated:/^((б )?з\.?\s?д\.?)/i, +wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^б/i,/^з/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?ші)? тоқ.?/i, +wide:/^[1234](-?ші)? тоқсан/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, +abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, +wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^қ/i, +/^а/i, +/^н/i, +/^с/i, +/^м/i, +/^м/i, +/^ш/i, +/^т/i, +/^қ/i, +/^қ/i, +/^қ/i, +/^ж/i], + +abbreviated:[ +/^қаң/i, +/^ақп/i, +/^нау/i, +/^сәу/i, +/^мам/i, +/^мау/i, +/^шіл/i, +/^там/i, +/^қыр/i, +/^қаз/i, +/^қар/i, +/^жел/i], + +any:[ +/^қ/i, +/^а/i, +/^н/i, +/^с/i, +/^м/i, +/^м/i, +/^ш/i, +/^т/i, +/^қ/i, +/^қ/i, +/^қ/i, +/^ж/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ж|д|с|с|б|ж|с)/i, +short:/^(жс|дс|сс|ср|бс|жм|сб)/i, +wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ж/i, +/^д/i, +/^с/i, +/^с/i, +/^б/i, +/^ж/i, +/^с/i], + +short:[ +/^жс/i, +/^дс/i, +/^сс/i, +/^ср/i, +/^бс/i, +/^жм/i, +/^сб/i], + +any:[ +/^ж[ек]/i, +/^д[үй]/i, +/^сe[й]/i, +/^сә[р]/i, +/^б[ей]/i, +/^ж[ұм]/i, +/^се[н]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, +wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, +any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^ТД/i, +pm:/^ТК/i, +midnight:/^түн орта/i, +noon:/^күндіз/i, +morning:/таң/i, +afternoon:/түс/i, +evening:/кеш/i, +night:/түн/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/km/_lib/formatDistance.js +var formatDistanceLocale$38={ +lessThanXSeconds:"តិចជាង {{count}} វិនាទី", +xSeconds:"{{count}} វិនាទី", +halfAMinute:"កន្លះនាទី", +lessThanXMinutes:"តិចជាង {{count}} នាទី", +xMinutes:"{{count}} នាទី", +aboutXHours:"ប្រហែល {{count}} ម៉ោង", +xHours:"{{count}} ម៉ោង", +xDays:"{{count}} ថ្ងៃ", +aboutXWeeks:"ប្រហែល {{count}} សប្តាហ៍", +xWeeks:"{{count}} សប្តាហ៍", +aboutXMonths:"ប្រហែល {{count}} ខែ", +xMonths:"{{count}} ខែ", +aboutXYears:"ប្រហែល {{count}} ឆ្នាំ", +xYears:"{{count}} ឆ្នាំ", +overXYears:"ជាង {{count}} ឆ្នាំ", +almostXYears:"ជិត {{count}} ឆ្នាំ" +}; +var formatDistance$38=function formatDistance$38(token,count,options){ +var result=formatDistanceLocale$38[token]; +if(typeof count==="number")result=result.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"ក្នុងរយៈពេល "+result;else +return result+"មុន"; +return result; +}; +var formatLong$38={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE do MMMM y", +long:"do MMMM y", +medium:"d MMM y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a", +long:"h:mm:ss a", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'ម៉ោង' {{time}}", +long:"{{date}} 'ម៉ោង' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/km/_lib/formatRelative.js +var formatRelativeLocale$38={ +lastWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", +yesterday:"'ម្សិលមិញនៅម៉ោង' p", +today:"'ថ្ងៃនេះម៉ោង' p", +tomorrow:"'ថ្ងៃស្អែកម៉ោង' p", +nextWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", +other:"P" +}; +var formatRelative$38=function formatRelative$38(token,_date,_baseDate,_options){return formatRelativeLocale$38[token];}; +//#endregion +//#region dist/date-fns/locale/km/_lib/localize.js +var eraValues$38={ +narrow:["ម.គស","គស"], +abbreviated:["មុនគ.ស","គ.ស"], +wide:["មុនគ្រិស្តសករាជ","នៃគ្រិស្តសករាជ"] +}; +var quarterValues$38={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"ត្រីមាសទី 1", +"ត្រីមាសទី 2", +"ត្រីមាសទី 3", +"ត្រីមាសទី 4"] + +}; +var monthValues$38={ +narrow:[ +"ម.ក", +"ក.ម", +"មិ", +"ម.ស", +"ឧ.ស", +"ម.ថ", +"ក.ដ", +"សី", +"កញ", +"តុ", +"វិ", +"ធ"], + +abbreviated:[ +"មករា", +"កុម្ភៈ", +"មីនា", +"មេសា", +"ឧសភា", +"មិថុនា", +"កក្កដា", +"សីហា", +"កញ្ញា", +"តុលា", +"វិច្ឆិកា", +"ធ្នូ"], + +wide:[ +"មករា", +"កុម្ភៈ", +"មីនា", +"មេសា", +"ឧសភា", +"មិថុនា", +"កក្កដា", +"សីហា", +"កញ្ញា", +"តុលា", +"វិច្ឆិកា", +"ធ្នូ"] + +}; +var dayValues$38={ +narrow:[ +"អា", +"ច", +"អ", +"ព", +"ព្រ", +"សុ", +"ស"], + +short:[ +"អា", +"ច", +"អ", +"ព", +"ព្រ", +"សុ", +"ស"], + +abbreviated:[ +"អា", +"ច", +"អ", +"ព", +"ព្រ", +"សុ", +"ស"], + +wide:[ +"អាទិត្យ", +"ចន្ទ", +"អង្គារ", +"ពុធ", +"ព្រហស្បតិ៍", +"សុក្រ", +"សៅរ៍"] + +}; +var dayPeriodValues$38={ +narrow:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +}, +abbreviated:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +}, +wide:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +} +}; +var formattingDayPeriodValues$30={ +narrow:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +}, +abbreviated:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +}, +wide:{ +am:"ព្រឹក", +pm:"ល្ងាច", +midnight:"​ពេលកណ្ដាលអធ្រាត្រ", +noon:"ពេលថ្ងៃត្រង់", +morning:"ពេលព្រឹក", +afternoon:"ពេលរសៀល", +evening:"ពេលល្ងាច", +night:"ពេលយប់" +} +}; +var ordinalNumber$38=function ordinalNumber$38(dirtyNumber,_){ +return Number(dirtyNumber).toString(); +}; +//#endregion +//#region dist/date-fns/locale/km.js +/** +* @category Locales +* @summary Khmer locale (Cambodian). +* @language Khmer +* @iso-639-2 khm +* @author Seanghay Yath [@seanghay](https://github.com/seanghay) +*/ +var _km={ +code:"km", +formatDistance:formatDistance$38, +formatLong:formatLong$38, +formatRelative:formatRelative$38, +localize:{ +ordinalNumber:ordinalNumber$38, +era:buildLocalizeFn({ +values:eraValues$38, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$38, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$38, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$38, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$38, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$30, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ម\.)?គស/i, +abbreviated:/^(មុន)?គ\.ស/i, +wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, +abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, +wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ម\.ក/i, +/^ក\.ម/i, +/^មិ/i, +/^ម\.ស/i, +/^ឧ\.ស/i, +/^ម\.ថ/i, +/^ក\.ដ/i, +/^សី/i, +/^កញ/i, +/^តុ/i, +/^វិ/i, +/^ធ/i], + +any:[ +/^មក/i, +/^កុ/i, +/^មីន/i, +/^មេ/i, +/^ឧស/i, +/^មិថ/i, +/^កក/i, +/^សី/i, +/^កញ/i, +/^តុ/i, +/^វិច/i, +/^ធ/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, +short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, +abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, +wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^អា/i, +/^ច/i, +/^អ/i, +/^ព/i, +/^ព្រ/i, +/^សុ/i, +/^ស/i], + +any:[ +/^អា/i, +/^ច/i, +/^អ/i, +/^ព/i, +/^ព្រ/i, +/^សុ/i, +/^សៅ/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, +any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ព្រឹក/i, +pm:/^ល្ងាច/i, +midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i, +noon:/^ពេលថ្ងៃត្រង់/i, +morning:/ពេលព្រឹក/i, +afternoon:/ពេលរសៀល/i, +evening:/ពេលល្ងាច/i, +night:/ពេលយប់/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/kn/_lib/formatDistance.js +var formatDistanceLocale$37={ +lessThanXSeconds:{ +one:{ +default:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", +future:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", +past:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" +}, +other:{ +default:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", +future:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", +past:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" +} +}, +xSeconds:{ +one:{ +default:"1 ಸೆಕೆಂಡ್", +future:"1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", +past:"1 ಸೆಕೆಂಡ್ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ಸೆಕೆಂಡುಗಳು", +future:"{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", +past:"{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ" +} +}, +halfAMinute:{other:{ +default:"ಅರ್ಧ ನಿಮಿಷ", +future:"ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", +past:"ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ" +}}, +lessThanXMinutes:{ +one:{ +default:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", +future:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", +past:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" +}, +other:{ +default:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", +future:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", +past:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" +} +}, +xMinutes:{ +one:{ +default:"1 ನಿಮಿಷ", +future:"1 ನಿಮಿಷದಲ್ಲಿ", +past:"1 ನಿಮಿಷದ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ನಿಮಿಷಗಳು", +future:"{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", +past:"{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ" +} +}, +aboutXHours:{ +one:{ +default:"ಸುಮಾರು 1 ಗಂಟೆ", +future:"ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", +past:"ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ" +}, +other:{ +default:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", +future:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", +past:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" +} +}, +xHours:{ +one:{ +default:"1 ಗಂಟೆ", +future:"1 ಗಂಟೆಯಲ್ಲಿ", +past:"1 ಗಂಟೆ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ಗಂಟೆಗಳು", +future:"{{count}} ಗಂಟೆಗಳಲ್ಲಿ", +past:"{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" +} +}, +xDays:{ +one:{ +default:"1 ದಿನ", +future:"1 ದಿನದಲ್ಲಿ", +past:"1 ದಿನದ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ದಿನಗಳು", +future:"{{count}} ದಿನಗಳಲ್ಲಿ", +past:"{{count}} ದಿನಗಳ ಹಿಂದೆ" +} +}, +aboutXMonths:{ +one:{ +default:"ಸುಮಾರು 1 ತಿಂಗಳು", +future:"ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", +past:"ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ" +}, +other:{ +default:"ಸುಮಾರು {{count}} ತಿಂಗಳು", +future:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", +past:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" +} +}, +xMonths:{ +one:{ +default:"1 ತಿಂಗಳು", +future:"1 ತಿಂಗಳಲ್ಲಿ", +past:"1 ತಿಂಗಳ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ತಿಂಗಳು", +future:"{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", +past:"{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" +} +}, +aboutXYears:{ +one:{ +default:"ಸುಮಾರು 1 ವರ್ಷ", +future:"ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", +past:"ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ" +}, +other:{ +default:"ಸುಮಾರು {{count}} ವರ್ಷಗಳು", +future:"ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", +past:"ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ" +} +}, +xYears:{ +one:{ +default:"1 ವರ್ಷ", +future:"1 ವರ್ಷದಲ್ಲಿ", +past:"1 ವರ್ಷದ ಹಿಂದೆ" +}, +other:{ +default:"{{count}} ವರ್ಷಗಳು", +future:"{{count}} ವರ್ಷಗಳಲ್ಲಿ", +past:"{{count}} ವರ್ಷಗಳ ಹಿಂದೆ" +} +}, +overXYears:{ +one:{ +default:"1 ವರ್ಷದ ಮೇಲೆ", +future:"1 ವರ್ಷದ ಮೇಲೆ", +past:"1 ವರ್ಷದ ಮೇಲೆ" +}, +other:{ +default:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ", +future:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ", +past:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ" +} +}, +almostXYears:{ +one:{ +default:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", +future:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", +past:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ" +}, +other:{ +default:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", +future:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", +past:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ" +} +} +}; +function getResultByTense(parentToken,options){ +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return parentToken.future;else +return parentToken.past; +return parentToken.default; +} +var formatDistance$37=function formatDistance$37(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$37[token]; +if(tokenValue.one&&count===1)result=getResultByTense(tokenValue.one,options);else +result=getResultByTense(tokenValue.other,options); +return result.replace("{{count}}",String(count)); +}; +var formatLong$37={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM d, y", +long:"MMMM d, y", +medium:"MMM d, y", +short:"d/M/yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"hh:mm:ss a zzzz", +long:"hh:mm:ss a z", +medium:"hh:mm:ss a", +short:"hh:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/kn/_lib/formatRelative.js +var formatRelativeLocale$37={ +lastWeek:"'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", +yesterday:"'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", +today:"'ಇಂದು' p 'ಕ್ಕೆ'", +tomorrow:"'ನಾಳೆ' p 'ಕ್ಕೆ'", +nextWeek:"eeee p 'ಕ್ಕೆ'", +other:"P" +}; +var formatRelative$37=function formatRelative$37(token,_date,_baseDate,_options){return formatRelativeLocale$37[token];}; +//#endregion +//#region dist/date-fns/locale/kn/_lib/localize.js +var eraValues$37={ +narrow:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"], +abbreviated:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"], +wide:["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"] +}; +var quarterValues$37={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"ತ್ರೈ 1", +"ತ್ರೈ 2", +"ತ್ರೈ 3", +"ತ್ರೈ 4"], + +wide:[ +"1ನೇ ತ್ರೈಮಾಸಿಕ", +"2ನೇ ತ್ರೈಮಾಸಿಕ", +"3ನೇ ತ್ರೈಮಾಸಿಕ", +"4ನೇ ತ್ರೈಮಾಸಿಕ"] + +}; +var monthValues$37={ +narrow:[ +"ಜ", +"ಫೆ", +"ಮಾ", +"ಏ", +"ಮೇ", +"ಜೂ", +"ಜು", +"ಆ", +"ಸೆ", +"ಅ", +"ನ", +"ಡಿ"], + +abbreviated:[ +"ಜನ", +"ಫೆಬ್ರ", +"ಮಾರ್ಚ್", +"ಏಪ್ರಿ", +"ಮೇ", +"ಜೂನ್", +"ಜುಲೈ", +"ಆಗ", +"ಸೆಪ್ಟೆಂ", +"ಅಕ್ಟೋ", +"ನವೆಂ", +"ಡಿಸೆಂ"], + +wide:[ +"ಜನವರಿ", +"ಫೆಬ್ರವರಿ", +"ಮಾರ್ಚ್", +"ಏಪ್ರಿಲ್", +"ಮೇ", +"ಜೂನ್", +"ಜುಲೈ", +"ಆಗಸ್ಟ್", +"ಸೆಪ್ಟೆಂಬರ್", +"ಅಕ್ಟೋಬರ್", +"ನವೆಂಬರ್", +"ಡಿಸೆಂಬರ್"] + +}; +var dayValues$37={ +narrow:[ +"ಭಾ", +"ಸೋ", +"ಮಂ", +"ಬು", +"ಗು", +"ಶು", +"ಶ"], + +short:[ +"ಭಾನು", +"ಸೋಮ", +"ಮಂಗಳ", +"ಬುಧ", +"ಗುರು", +"ಶುಕ್ರ", +"ಶನಿ"], + +abbreviated:[ +"ಭಾನು", +"ಸೋಮ", +"ಮಂಗಳ", +"ಬುಧ", +"ಗುರು", +"ಶುಕ್ರ", +"ಶನಿ"], + +wide:[ +"ಭಾನುವಾರ", +"ಸೋಮವಾರ", +"ಮಂಗಳವಾರ", +"ಬುಧವಾರ", +"ಗುರುವಾರ", +"ಶುಕ್ರವಾರ", +"ಶನಿವಾರ"] + +}; +var dayPeriodValues$37={ +narrow:{ +am:"ಪೂರ್ವಾಹ್ನ", +pm:"ಅಪರಾಹ್ನ", +midnight:"ಮಧ್ಯರಾತ್ರಿ", +noon:"ಮಧ್ಯಾಹ್ನ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾಹ್ನ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +}, +abbreviated:{ +am:"ಪೂರ್ವಾಹ್ನ", +pm:"ಅಪರಾಹ್ನ", +midnight:"ಮಧ್ಯರಾತ್ರಿ", +noon:"ಮಧ್ಯಾನ್ಹ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾನ್ಹ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +}, +wide:{ +am:"ಪೂರ್ವಾಹ್ನ", +pm:"ಅಪರಾಹ್ನ", +midnight:"ಮಧ್ಯರಾತ್ರಿ", +noon:"ಮಧ್ಯಾನ್ಹ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾನ್ಹ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +} +}; +var formattingDayPeriodValues$29={ +narrow:{ +am:"ಪೂ", +pm:"ಅ", +midnight:"ಮಧ್ಯರಾತ್ರಿ", +noon:"ಮಧ್ಯಾನ್ಹ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾನ್ಹ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +}, +abbreviated:{ +am:"ಪೂರ್ವಾಹ್ನ", +pm:"ಅಪರಾಹ್ನ", +midnight:"ಮಧ್ಯ ರಾತ್ರಿ", +noon:"ಮಧ್ಯಾನ್ಹ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾನ್ಹ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +}, +wide:{ +am:"ಪೂರ್ವಾಹ್ನ", +pm:"ಅಪರಾಹ್ನ", +midnight:"ಮಧ್ಯ ರಾತ್ರಿ", +noon:"ಮಧ್ಯಾನ್ಹ", +morning:"ಬೆಳಗ್ಗೆ", +afternoon:"ಮಧ್ಯಾನ್ಹ", +evening:"ಸಂಜೆ", +night:"ರಾತ್ರಿ" +} +}; +var ordinalNumber$37=function ordinalNumber$37(dirtyNumber,_options){ +return Number(dirtyNumber)+"ನೇ"; +}; +//#endregion +//#region dist/date-fns/locale/kn.js +/** +* @category Locales +* @summary Kannada locale (India). +* @language Kannada +* @iso-639-2 kan +* @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) +*/ +var _kn={ +code:"kn", +formatDistance:formatDistance$37, +formatLong:formatLong$37, +formatRelative:formatRelative$37, +localize:{ +ordinalNumber:ordinalNumber$37, +era:buildLocalizeFn({ +values:eraValues$37, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$37, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$37, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$37, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$37, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$29, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(ನೇ|ನೆ)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, +abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, +wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, +wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, +abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, +wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ಜ$/i, +/^ಫೆ/i, +/^ಮಾ/i, +/^ಏ/i, +/^ಮೇ/i, +/^ಜೂ/i, +/^ಜು$/i, +/^ಆ/i, +/^ಸೆ/i, +/^ಅ/i, +/^ನ/i, +/^ಡಿ/i], + +any:[ +/^ಜನ/i, +/^ಫೆ/i, +/^ಮಾ/i, +/^ಏ/i, +/^ಮೇ/i, +/^ಜೂನ್/i, +/^ಜುಲೈ/i, +/^ಆ/i, +/^ಸೆ/i, +/^ಅ/i, +/^ನ/i, +/^ಡಿ/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, +short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, +abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, +wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ಭಾ/i, +/^ಸೋ/i, +/^ಮ/i, +/^ಬು/i, +/^ಗು/i, +/^ಶು/i, +/^ಶ/i], + +any:[ +/^ಭಾ/i, +/^ಸೋ/i, +/^ಮ/i, +/^ಬು/i, +/^ಗು/i, +/^ಶು/i, +/^ಶ/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, +any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ಪೂ/i, +pm:/^ಅ/i, +midnight:/ಮಧ್ಯರಾತ್ರಿ/i, +noon:/ಮಧ್ಯಾನ್ಹ/i, +morning:/ಬೆಳಗ್ಗೆ/i, +afternoon:/ಮಧ್ಯಾನ್ಹ/i, +evening:/ಸಂಜೆ/i, +night:/ರಾತ್ರಿ/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ko/_lib/formatDistance.js +var formatDistanceLocale$36={ +lessThanXSeconds:{ +one:"1초 미만", +other:"{{count}}초 미만" +}, +xSeconds:{ +one:"1초", +other:"{{count}}초" +}, +halfAMinute:"30초", +lessThanXMinutes:{ +one:"1분 미만", +other:"{{count}}분 미만" +}, +xMinutes:{ +one:"1분", +other:"{{count}}분" +}, +aboutXHours:{ +one:"약 1시간", +other:"약 {{count}}시간" +}, +xHours:{ +one:"1시간", +other:"{{count}}시간" +}, +xDays:{ +one:"1일", +other:"{{count}}일" +}, +aboutXWeeks:{ +one:"약 1주", +other:"약 {{count}}주" +}, +xWeeks:{ +one:"1주", +other:"{{count}}주" +}, +aboutXMonths:{ +one:"약 1개월", +other:"약 {{count}}개월" +}, +xMonths:{ +one:"1개월", +other:"{{count}}개월" +}, +aboutXYears:{ +one:"약 1년", +other:"약 {{count}}년" +}, +xYears:{ +one:"1년", +other:"{{count}}년" +}, +overXYears:{ +one:"1년 이상", +other:"{{count}}년 이상" +}, +almostXYears:{ +one:"거의 1년", +other:"거의 {{count}}년" +} +}; +var formatDistance$36=function formatDistance$36(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$36[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" 후";else +return result+" 전"; +return result; +}; +var formatLong$36={ +date:buildFormatLongFn({ +formats:{ +full:"y년 M월 d일 EEEE", +long:"y년 M월 d일", +medium:"y.MM.dd", +short:"y.MM.dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"a H시 mm분 ss초 zzzz", +long:"a H:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ko/_lib/formatRelative.js +var formatRelativeLocale$36={ +lastWeek:"'지난' eeee p", +yesterday:"'어제' p", +today:"'오늘' p", +tomorrow:"'내일' p", +nextWeek:"'다음' eeee p", +other:"P" +}; +var formatRelative$36=function formatRelative$36(token,_date,_baseDate,_options){return formatRelativeLocale$36[token];}; +//#endregion +//#region dist/date-fns/locale/ko/_lib/localize.js +var eraValues$36={ +narrow:["BC","AD"], +abbreviated:["BC","AD"], +wide:["기원전","서기"] +}; +var quarterValues$36={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1분기", +"2분기", +"3분기", +"4분기"] + +}; +var monthValues$36={ +narrow:[ +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"10", +"11", +"12"], + +abbreviated:[ +"1월", +"2월", +"3월", +"4월", +"5월", +"6월", +"7월", +"8월", +"9월", +"10월", +"11월", +"12월"], + +wide:[ +"1월", +"2월", +"3월", +"4월", +"5월", +"6월", +"7월", +"8월", +"9월", +"10월", +"11월", +"12월"] + +}; +var dayValues$36={ +narrow:[ +"일", +"월", +"화", +"수", +"목", +"금", +"토"], + +short:[ +"일", +"월", +"화", +"수", +"목", +"금", +"토"], + +abbreviated:[ +"일", +"월", +"화", +"수", +"목", +"금", +"토"], + +wide:[ +"일요일", +"월요일", +"화요일", +"수요일", +"목요일", +"금요일", +"토요일"] + +}; +var dayPeriodValues$36={ +narrow:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +}, +abbreviated:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +}, +wide:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +} +}; +var formattingDayPeriodValues$28={ +narrow:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +}, +abbreviated:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +}, +wide:{ +am:"오전", +pm:"오후", +midnight:"자정", +noon:"정오", +morning:"아침", +afternoon:"오후", +evening:"저녁", +night:"밤" +} +}; +var ordinalNumber$36=function ordinalNumber$36(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(String(options===null||options===void 0?void 0:options.unit)){ +case"minute": +case"second":return String(number); +case"date":return number+"일"; +default:return number+"번째"; +} +}; +//#endregion +//#region dist/date-fns/locale/ko.js +/** +* @category Locales +* @summary Korean locale. +* @language Korean +* @iso-639-2 kor +* @author Hong Chulju [@angdev](https://github.com/angdev) +* @author Lee Seoyoen [@iamssen](https://github.com/iamssen) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var _ko={ +code:"ko", +formatDistance:formatDistance$36, +formatLong:formatLong$36, +formatRelative:formatRelative$36, +localize:{ +ordinalNumber:ordinalNumber$36, +era:buildLocalizeFn({ +values:eraValues$36, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$36, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$36, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$36, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$36, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$28, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(일|번째)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, +abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, +wide:/^(기원전|서기)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234]사?분기/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(1[012]|[123456789])/, +abbreviated:/^(1[012]|[123456789])월/i, +wide:/^(1[012]|[123456789])월/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^1월?$/, +/^2/, +/^3/, +/^4/, +/^5/, +/^6/, +/^7/, +/^8/, +/^9/, +/^10/, +/^11/, +/^12/] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[일월화수목금토]/, +short:/^[일월화수목금토]/, +abbreviated:/^[일월화수목금토]/, +wide:/^[일월화수목금토]요일/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^일/, +/^월/, +/^화/, +/^수/, +/^목/, +/^금/, +/^토/] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^(am|오전)/i, +pm:/^(pm|오후)/i, +midnight:/^자정/i, +noon:/^정오/i, +morning:/^아침/i, +afternoon:/^오후/i, +evening:/^저녁/i, +night:/^밤/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/lb/_lib/formatDistance.js +var formatDistanceLocale$35={ +lessThanXSeconds:{ +standalone:{ +one:"manner wéi eng Sekonn", +other:"manner wéi {{count}} Sekonnen" +}, +withPreposition:{ +one:"manner wéi enger Sekonn", +other:"manner wéi {{count}} Sekonnen" +} +}, +xSeconds:{ +standalone:{ +one:"eng Sekonn", +other:"{{count}} Sekonnen" +}, +withPreposition:{ +one:"enger Sekonn", +other:"{{count}} Sekonnen" +} +}, +halfAMinute:{ +standalone:"eng hallef Minutt", +withPreposition:"enger hallwer Minutt" +}, +lessThanXMinutes:{ +standalone:{ +one:"manner wéi eng Minutt", +other:"manner wéi {{count}} Minutten" +}, +withPreposition:{ +one:"manner wéi enger Minutt", +other:"manner wéi {{count}} Minutten" +} +}, +xMinutes:{ +standalone:{ +one:"eng Minutt", +other:"{{count}} Minutten" +}, +withPreposition:{ +one:"enger Minutt", +other:"{{count}} Minutten" +} +}, +aboutXHours:{ +standalone:{ +one:"ongeféier eng Stonn", +other:"ongeféier {{count}} Stonnen" +}, +withPreposition:{ +one:"ongeféier enger Stonn", +other:"ongeféier {{count}} Stonnen" +} +}, +xHours:{ +standalone:{ +one:"eng Stonn", +other:"{{count}} Stonnen" +}, +withPreposition:{ +one:"enger Stonn", +other:"{{count}} Stonnen" +} +}, +xDays:{ +standalone:{ +one:"een Dag", +other:"{{count}} Deeg" +}, +withPreposition:{ +one:"engem Dag", +other:"{{count}} Deeg" +} +}, +aboutXWeeks:{ +standalone:{ +one:"ongeféier eng Woch", +other:"ongeféier {{count}} Wochen" +}, +withPreposition:{ +one:"ongeféier enger Woche", +other:"ongeféier {{count}} Wochen" +} +}, +xWeeks:{ +standalone:{ +one:"eng Woch", +other:"{{count}} Wochen" +}, +withPreposition:{ +one:"enger Woch", +other:"{{count}} Wochen" +} +}, +aboutXMonths:{ +standalone:{ +one:"ongeféier ee Mount", +other:"ongeféier {{count}} Méint" +}, +withPreposition:{ +one:"ongeféier engem Mount", +other:"ongeféier {{count}} Méint" +} +}, +xMonths:{ +standalone:{ +one:"ee Mount", +other:"{{count}} Méint" +}, +withPreposition:{ +one:"engem Mount", +other:"{{count}} Méint" +} +}, +aboutXYears:{ +standalone:{ +one:"ongeféier ee Joer", +other:"ongeféier {{count}} Joer" +}, +withPreposition:{ +one:"ongeféier engem Joer", +other:"ongeféier {{count}} Joer" +} +}, +xYears:{ +standalone:{ +one:"ee Joer", +other:"{{count}} Joer" +}, +withPreposition:{ +one:"engem Joer", +other:"{{count}} Joer" +} +}, +overXYears:{ +standalone:{ +one:"méi wéi ee Joer", +other:"méi wéi {{count}} Joer" +}, +withPreposition:{ +one:"méi wéi engem Joer", +other:"méi wéi {{count}} Joer" +} +}, +almostXYears:{ +standalone:{ +one:"bal ee Joer", +other:"bal {{count}} Joer" +}, +withPreposition:{ +one:"bal engem Joer", +other:"bal {{count}} Joer" +} +} +}; +var EXCEPTION_CONSONANTS=[ +"d", +"h", +"n", +"t", +"z"]; + +var VOWELS=[ +"a,", +"e", +"i", +"o", +"u"]; + +var DIGITS_SPOKEN_N_NEEDED=[ +0, +1, +2, +3, +8, +9]; + +var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED=[ +40, +50, +60, +70]; + +function isFinalNNeeded(nextWords){ +var firstLetter=nextWords.charAt(0).toLowerCase(); +if(VOWELS.indexOf(firstLetter)!=-1||EXCEPTION_CONSONANTS.indexOf(firstLetter)!=-1)return true; +var firstWord=nextWords.split(" ")[0]; +var number=parseInt(firstWord); +if(!isNaN(number)&&DIGITS_SPOKEN_N_NEEDED.indexOf(number%10)!=-1&&FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0,2)))==-1)return true; +return false; +} +var formatDistance$35=function formatDistance$35(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$35[token]; +var usageGroup=options!==null&&options!==void 0&&options.addSuffix?tokenValue.withPreposition:tokenValue.standalone; +if(typeof usageGroup==="string")result=usageGroup;else +if(count===1)result=usageGroup.one;else +result=usageGroup.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"a"+(isFinalNNeeded(result)?"n":"")+" "+result;else +return"viru"+(isFinalNNeeded(result)?"n":"")+" "+result; +return result; +}; +var formatLong$35={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y", +long:"do MMMM y", +medium:"do MMM y", +short:"dd.MM.yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'um' {{time}}", +long:"{{date}} 'um' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/lb/_lib/formatRelative.js +var formatRelativeLocale$35={ +lastWeek:function lastWeek(date){ +var day=date.getDay(); +var result="'läschte"; +if(day===2||day===4)result+="n"; +result+="' eeee 'um' p"; +return result; +}, +yesterday:"'gëschter um' p", +today:"'haut um' p", +tomorrow:"'moien um' p", +nextWeek:"eeee 'um' p", +other:"P" +}; +var formatRelative$35=function formatRelative$35(token,date,_baseDate,_options){ +var format=formatRelativeLocale$35[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/lb/_lib/localize.js +var eraValues$35={ +narrow:["v.Chr.","n.Chr."], +abbreviated:["v.Chr.","n.Chr."], +wide:["viru Christus","no Christus"] +}; +var quarterValues$35={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. Quartal", +"2. Quartal", +"3. Quartal", +"4. Quartal"] + +}; +var monthValues$35={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mäe", +"Abr", +"Mee", +"Jun", +"Jul", +"Aug", +"Sep", +"Okt", +"Nov", +"Dez"], + +wide:[ +"Januar", +"Februar", +"Mäerz", +"Abrëll", +"Mee", +"Juni", +"Juli", +"August", +"September", +"Oktober", +"November", +"Dezember"] + +}; +var dayValues$35={ +narrow:[ +"S", +"M", +"D", +"M", +"D", +"F", +"S"], + +short:[ +"So", +"Mé", +"Dë", +"Më", +"Do", +"Fr", +"Sa"], + +abbreviated:[ +"So.", +"Mé.", +"Dë.", +"Më.", +"Do.", +"Fr.", +"Sa."], + +wide:[ +"Sonndeg", +"Méindeg", +"Dënschdeg", +"Mëttwoch", +"Donneschdeg", +"Freideg", +"Samschdeg"] + +}; +var dayPeriodValues$35={ +narrow:{ +am:"mo.", +pm:"nomë.", +midnight:"Mëtternuecht", +noon:"Mëtteg", +morning:"Moien", +afternoon:"Nomëtteg", +evening:"Owend", +night:"Nuecht" +}, +abbreviated:{ +am:"moies", +pm:"nomëttes", +midnight:"Mëtternuecht", +noon:"Mëtteg", +morning:"Moien", +afternoon:"Nomëtteg", +evening:"Owend", +night:"Nuecht" +}, +wide:{ +am:"moies", +pm:"nomëttes", +midnight:"Mëtternuecht", +noon:"Mëtteg", +morning:"Moien", +afternoon:"Nomëtteg", +evening:"Owend", +night:"Nuecht" +} +}; +var formattingDayPeriodValues$27={ +narrow:{ +am:"mo.", +pm:"nom.", +midnight:"Mëtternuecht", +noon:"mëttes", +morning:"moies", +afternoon:"nomëttes", +evening:"owes", +night:"nuets" +}, +abbreviated:{ +am:"moies", +pm:"nomëttes", +midnight:"Mëtternuecht", +noon:"mëttes", +morning:"moies", +afternoon:"nomëttes", +evening:"owes", +night:"nuets" +}, +wide:{ +am:"moies", +pm:"nomëttes", +midnight:"Mëtternuecht", +noon:"mëttes", +morning:"moies", +afternoon:"nomëttes", +evening:"owes", +night:"nuets" +} +}; +var ordinalNumber$35=function ordinalNumber$35(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/lb.js +/** +* @category Locales +* @summary Luxembourgish locale. +* @language Luxembourgish +* @iso-639-2 ltz +* @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) +*/ +var _lb={ +code:"lb", +formatDistance:formatDistance$35, +formatLong:formatLong$35, +formatRelative:formatRelative$35, +localize:{ +ordinalNumber:ordinalNumber$35, +era:buildLocalizeFn({ +values:eraValues$35, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$35, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$35, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$35, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$35, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$27, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, +abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, +wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^v/i,/^n/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](\.)? Quartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, +wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mä/i, +/^ab/i, +/^me/i, +/^jun/i, +/^jul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smdf]/i, +short:/^(so|mé|dë|më|do|fr|sa)/i, +abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, +wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^so/i, +/^mé/i, +/^dë/i, +/^më/i, +/^do/i, +/^f/i, +/^sa/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^m/i, +pm:/^n/i, +midnight:/^Mëtter/i, +noon:/^mëttes/i, +morning:/moies/i, +afternoon:/nomëttes/i, +evening:/owes/i, +night:/nuets/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/lt/_lib/formatDistance.js +var translations={ +xseconds_other:"sekundė_sekundžių_sekundes", +xminutes_one:"minutė_minutės_minutę", +xminutes_other:"minutės_minučių_minutes", +xhours_one:"valanda_valandos_valandą", +xhours_other:"valandos_valandų_valandas", +xdays_one:"diena_dienos_dieną", +xdays_other:"dienos_dienų_dienas", +xweeks_one:"savaitė_savaitės_savaitę", +xweeks_other:"savaitės_savaičių_savaites", +xmonths_one:"mėnuo_mėnesio_mėnesį", +xmonths_other:"mėnesiai_mėnesių_mėnesius", +xyears_one:"metai_metų_metus", +xyears_other:"metai_metų_metus", +about:"apie", +over:"daugiau nei", +almost:"beveik", +lessthan:"mažiau nei" +}; +var translateSeconds=function translateSeconds(_number,addSuffix,_key,isFuture){ +if(!addSuffix)return"kelios sekundės";else +return isFuture?"kelių sekundžių":"kelias sekundes"; +}; +var translateSingular=function translateSingular(_number,addSuffix,key,isFuture){ +return!addSuffix?forms(key)[0]:isFuture?forms(key)[1]:forms(key)[2]; +}; +var translate=function translate(number,addSuffix,key,isFuture){ +var result=number+" "; +if(number===1)return result+translateSingular(number,addSuffix,key,isFuture);else +if(!addSuffix)return result+(special(number)?forms(key)[1]:forms(key)[0]);else +if(isFuture)return result+forms(key)[1];else +return result+(special(number)?forms(key)[1]:forms(key)[2]); +}; +function special(number){ +return number%10===0||number>10&&number<20; +} +function forms(key){ +return translations[key].split("_"); +} +var formatDistanceLocale$34={ +lessThanXSeconds:{ +one:translateSeconds, +other:translate +}, +xSeconds:{ +one:translateSeconds, +other:translate +}, +halfAMinute:"pusė minutės", +lessThanXMinutes:{ +one:translateSingular, +other:translate +}, +xMinutes:{ +one:translateSingular, +other:translate +}, +aboutXHours:{ +one:translateSingular, +other:translate +}, +xHours:{ +one:translateSingular, +other:translate +}, +xDays:{ +one:translateSingular, +other:translate +}, +aboutXWeeks:{ +one:translateSingular, +other:translate +}, +xWeeks:{ +one:translateSingular, +other:translate +}, +aboutXMonths:{ +one:translateSingular, +other:translate +}, +xMonths:{ +one:translateSingular, +other:translate +}, +aboutXYears:{ +one:translateSingular, +other:translate +}, +xYears:{ +one:translateSingular, +other:translate +}, +overXYears:{ +one:translateSingular, +other:translate +}, +almostXYears:{ +one:translateSingular, +other:translate +} +}; +var formatDistance$34=function formatDistance$34(token,count,options){ +var adverb=token.match(/about|over|almost|lessthan/i); +var unit=adverb?token.replace(adverb[0],""):token; +var isFuture=(options===null||options===void 0?void 0:options.comparison)!==void 0&&options.comparison>0; +var result; +var tokenValue=formatDistanceLocale$34[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one(count,(options===null||options===void 0?void 0:options.addSuffix)===true,unit.toLowerCase()+"_one",isFuture);else +result=tokenValue.other(count,(options===null||options===void 0?void 0:options.addSuffix)===true,unit.toLowerCase()+"_other",isFuture); +if(adverb)result=translations[adverb[0].toLowerCase()]+" "+result; +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"po "+result;else +return"prieš "+result; +return result; +}; +var formatLong$34={ +date:buildFormatLongFn({ +formats:{ +full:"y 'm'. MMMM d 'd'., EEEE", +long:"y 'm'. MMMM d 'd'.", +medium:"y-MM-dd", +short:"y-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/lt/_lib/formatRelative.js +var formatRelativeLocale$34={ +lastWeek:"'Praėjusį' eeee p", +yesterday:"'Vakar' p", +today:"'Šiandien' p", +tomorrow:"'Rytoj' p", +nextWeek:"eeee p", +other:"P" +}; +var formatRelative$34=function formatRelative$34(token,_date,_baseDate,_options){return formatRelativeLocale$34[token];}; +//#endregion +//#region dist/date-fns/locale/lt/_lib/localize.js +var eraValues$34={ +narrow:["pr. Kr.","po Kr."], +abbreviated:["pr. Kr.","po Kr."], +wide:["prieš Kristų","po Kristaus"] +}; +var quarterValues$34={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"I ketv.", +"II ketv.", +"III ketv.", +"IV ketv."], + +wide:[ +"I ketvirtis", +"II ketvirtis", +"III ketvirtis", +"IV ketvirtis"] + +}; +var formattingQuarterValues$2={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"I k.", +"II k.", +"III k.", +"IV k."], + +wide:[ +"I ketvirtis", +"II ketvirtis", +"III ketvirtis", +"IV ketvirtis"] + +}; +var monthValues$34={ +narrow:[ +"S", +"V", +"K", +"B", +"G", +"B", +"L", +"R", +"R", +"S", +"L", +"G"], + +abbreviated:[ +"saus.", +"vas.", +"kov.", +"bal.", +"geg.", +"birž.", +"liep.", +"rugp.", +"rugs.", +"spal.", +"lapkr.", +"gruod."], + +wide:[ +"sausis", +"vasaris", +"kovas", +"balandis", +"gegužė", +"birželis", +"liepa", +"rugpjūtis", +"rugsėjis", +"spalis", +"lapkritis", +"gruodis"] + +}; +var formattingMonthValues$8={ +narrow:[ +"S", +"V", +"K", +"B", +"G", +"B", +"L", +"R", +"R", +"S", +"L", +"G"], + +abbreviated:[ +"saus.", +"vas.", +"kov.", +"bal.", +"geg.", +"birž.", +"liep.", +"rugp.", +"rugs.", +"spal.", +"lapkr.", +"gruod."], + +wide:[ +"sausio", +"vasario", +"kovo", +"balandžio", +"gegužės", +"birželio", +"liepos", +"rugpjūčio", +"rugsėjo", +"spalio", +"lapkričio", +"gruodžio"] + +}; +var dayValues$34={ +narrow:[ +"S", +"P", +"A", +"T", +"K", +"P", +"Š"], + +short:[ +"Sk", +"Pr", +"An", +"Tr", +"Kt", +"Pn", +"Št"], + +abbreviated:[ +"sk", +"pr", +"an", +"tr", +"kt", +"pn", +"št"], + +wide:[ +"sekmadienis", +"pirmadienis", +"antradienis", +"trečiadienis", +"ketvirtadienis", +"penktadienis", +"šeštadienis"] + +}; +var formattingDayValues$2={ +narrow:[ +"S", +"P", +"A", +"T", +"K", +"P", +"Š"], + +short:[ +"Sk", +"Pr", +"An", +"Tr", +"Kt", +"Pn", +"Št"], + +abbreviated:[ +"sk", +"pr", +"an", +"tr", +"kt", +"pn", +"št"], + +wide:[ +"sekmadienį", +"pirmadienį", +"antradienį", +"trečiadienį", +"ketvirtadienį", +"penktadienį", +"šeštadienį"] + +}; +var dayPeriodValues$34={ +narrow:{ +am:"pr. p.", +pm:"pop.", +midnight:"vidurnaktis", +noon:"vidurdienis", +morning:"rytas", +afternoon:"diena", +evening:"vakaras", +night:"naktis" +}, +abbreviated:{ +am:"priešpiet", +pm:"popiet", +midnight:"vidurnaktis", +noon:"vidurdienis", +morning:"rytas", +afternoon:"diena", +evening:"vakaras", +night:"naktis" +}, +wide:{ +am:"priešpiet", +pm:"popiet", +midnight:"vidurnaktis", +noon:"vidurdienis", +morning:"rytas", +afternoon:"diena", +evening:"vakaras", +night:"naktis" +} +}; +var formattingDayPeriodValues$26={ +narrow:{ +am:"pr. p.", +pm:"pop.", +midnight:"vidurnaktis", +noon:"perpiet", +morning:"rytas", +afternoon:"popietė", +evening:"vakaras", +night:"naktis" +}, +abbreviated:{ +am:"priešpiet", +pm:"popiet", +midnight:"vidurnaktis", +noon:"perpiet", +morning:"rytas", +afternoon:"popietė", +evening:"vakaras", +night:"naktis" +}, +wide:{ +am:"priešpiet", +pm:"popiet", +midnight:"vidurnaktis", +noon:"perpiet", +morning:"rytas", +afternoon:"popietė", +evening:"vakaras", +night:"naktis" +} +}; +var ordinalNumber$34=function ordinalNumber$34(dirtyNumber,_options){ +return Number(dirtyNumber)+"-oji"; +}; +//#endregion +//#region dist/date-fns/locale/lt.js +/** +* @category Locales +* @summary Lithuanian locale. +* @language Lithuanian +* @iso-639-2 lit +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +*/ +var _lt={ +code:"lt", +formatDistance:formatDistance$34, +formatLong:formatLong$34, +formatRelative:formatRelative$34, +localize:{ +ordinalNumber:ordinalNumber$34, +era:buildLocalizeFn({ +values:eraValues$34, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$34, +defaultWidth:"wide", +formattingValues:formattingQuarterValues$2, +defaultFormattingWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$34, +defaultWidth:"wide", +formattingValues:formattingMonthValues$8, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$34, +defaultWidth:"wide", +formattingValues:formattingDayValues$2, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$34, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$26, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-oji)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^p(r|o)\.?\s?(kr\.?|me)/i, +abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, +wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[/prieš/i,/(po|mūsų)/i], +any:[/^pr/i,/^(po|m)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^([1234])/i, +abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i, +wide:/^(I|II|III|IV)\s?ketvirtis/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/1/i, +/2/i, +/3/i, +/4/i], + +any:[ +/I$/i, +/II$/i, +/III/i, +/IV/i] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[svkbglr]/i, +abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, +wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^v/i, +/^k/i, +/^b/i, +/^g/i, +/^b/i, +/^l/i, +/^r/i, +/^r/i, +/^s/i, +/^l/i, +/^g/i], + +any:[ +/^saus/i, +/^vas/i, +/^kov/i, +/^bal/i, +/^geg/i, +/^birž/i, +/^liep/i, +/^rugp/i, +/^rugs/i, +/^spal/i, +/^lapkr/i, +/^gruod/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[spatkš]/i, +short:/^(sk|pr|an|tr|kt|pn|št)/i, +abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i, +wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^p/i, +/^a/i, +/^t/i, +/^k/i, +/^p/i, +/^š/i], + +wide:[ +/^se/i, +/^pi/i, +/^an/i, +/^tr/i, +/^ke/i, +/^pe/i, +/^še/i], + +any:[ +/^sk/i, +/^pr/i, +/^an/i, +/^tr/i, +/^kt/i, +/^pn/i, +/^št/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, +any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i +}, +defaultMatchWidth:"any", +parsePatterns:{ +narrow:{ +am:/^pr/i, +pm:/^pop./i, +midnight:/^vidurnaktis/i, +noon:/^(vidurdienis|perp)/i, +morning:/rytas/i, +afternoon:/(die|popietė)/i, +evening:/vakaras/i, +night:/naktis/i +}, +any:{ +am:/^pr/i, +pm:/^popiet$/i, +midnight:/^vidurnaktis/i, +noon:/^(vidurdienis|perp)/i, +morning:/rytas/i, +afternoon:/(die|popietė)/i, +evening:/vakaras/i, +night:/naktis/i +} +}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/lv/_lib/formatDistance.js +function buildLocalizeTokenFn$2(schema){ +return function(count,options){ +if(count===1){if(options!==null&&options!==void 0&&options.addSuffix)return schema.one[0].replace("{{time}}",schema.one[2]);else +return schema.one[0].replace("{{time}}",schema.one[1]);}else +{ +var rem=count%10===1&&count%100!==11; +if(options!==null&&options!==void 0&&options.addSuffix)return schema.other[0].replace("{{time}}",rem?schema.other[3]:schema.other[4]).replace("{{count}}",String(count));else +return schema.other[0].replace("{{time}}",rem?schema.other[1]:schema.other[2]).replace("{{count}}",String(count)); +} +}; +} +var formatDistanceLocale$33={ +lessThanXSeconds:buildLocalizeTokenFn$2({ +one:[ +"mazāk par {{time}}", +"sekundi", +"sekundi"], + +other:[ +"mazāk nekā {{count}} {{time}}", +"sekunde", +"sekundes", +"sekundes", +"sekundēm"] + +}), +xSeconds:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"sekunde", +"sekundes"], + +other:[ +"{{count}} {{time}}", +"sekunde", +"sekundes", +"sekundes", +"sekundēm"] + +}), +halfAMinute:function halfAMinute(_count,options){ +if(options!==null&&options!==void 0&&options.addSuffix)return"pusminūtes";else +return"pusminūte"; +}, +lessThanXMinutes:buildLocalizeTokenFn$2({ +one:[ +"mazāk par {{time}}", +"minūti", +"minūti"], + +other:[ +"mazāk nekā {{count}} {{time}}", +"minūte", +"minūtes", +"minūtes", +"minūtēm"] + +}), +xMinutes:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"minūte", +"minūtes"], + +other:[ +"{{count}} {{time}}", +"minūte", +"minūtes", +"minūtes", +"minūtēm"] + +}), +aboutXHours:buildLocalizeTokenFn$2({ +one:[ +"apmēram 1 {{time}}", +"stunda", +"stundas"], + +other:[ +"apmēram {{count}} {{time}}", +"stunda", +"stundas", +"stundas", +"stundām"] + +}), +xHours:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"stunda", +"stundas"], + +other:[ +"{{count}} {{time}}", +"stunda", +"stundas", +"stundas", +"stundām"] + +}), +xDays:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"diena", +"dienas"], + +other:[ +"{{count}} {{time}}", +"diena", +"dienas", +"dienas", +"dienām"] + +}), +aboutXWeeks:buildLocalizeTokenFn$2({ +one:[ +"apmēram 1 {{time}}", +"nedēļa", +"nedēļas"], + +other:[ +"apmēram {{count}} {{time}}", +"nedēļa", +"nedēļu", +"nedēļas", +"nedēļām"] + +}), +xWeeks:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"nedēļa", +"nedēļas"], + +other:[ +"{{count}} {{time}}", +"nedēļa", +"nedēļu", +"nedēļas", +"nedēļām"] + +}), +aboutXMonths:buildLocalizeTokenFn$2({ +one:[ +"apmēram 1 {{time}}", +"mēnesis", +"mēneša"], + +other:[ +"apmēram {{count}} {{time}}", +"mēnesis", +"mēneši", +"mēneša", +"mēnešiem"] + +}), +xMonths:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"mēnesis", +"mēneša"], + +other:[ +"{{count}} {{time}}", +"mēnesis", +"mēneši", +"mēneša", +"mēnešiem"] + +}), +aboutXYears:buildLocalizeTokenFn$2({ +one:[ +"apmēram 1 {{time}}", +"gads", +"gada"], + +other:[ +"apmēram {{count}} {{time}}", +"gads", +"gadi", +"gada", +"gadiem"] + +}), +xYears:buildLocalizeTokenFn$2({ +one:[ +"1 {{time}}", +"gads", +"gada"], + +other:[ +"{{count}} {{time}}", +"gads", +"gadi", +"gada", +"gadiem"] + +}), +overXYears:buildLocalizeTokenFn$2({ +one:[ +"ilgāk par 1 {{time}}", +"gadu", +"gadu"], + +other:[ +"vairāk nekā {{count}} {{time}}", +"gads", +"gadi", +"gada", +"gadiem"] + +}), +almostXYears:buildLocalizeTokenFn$2({ +one:[ +"gandrīz 1 {{time}}", +"gads", +"gada"], + +other:[ +"vairāk nekā {{count}} {{time}}", +"gads", +"gadi", +"gada", +"gadiem"] + +}) +}; +var formatDistance$33=function formatDistance$33(token,count,options){ +var result=formatDistanceLocale$33[token](count,options); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"pēc "+result;else +return"pirms "+result; +return result; +}; +var formatLong$33={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, y. 'gada' d. MMMM", +long:"y. 'gada' d. MMMM", +medium:"dd.MM.y.", +short:"dd.MM.y." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'plkst.' {{time}}", +long:"{{date}} 'plkst.' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/lv/_lib/formatRelative.js +var weekdays$1=[ +"svētdienā", +"pirmdienā", +"otrdienā", +"trešdienā", +"ceturtdienā", +"piektdienā", +"sestdienā"]; + +var formatRelativeLocale$33={ +lastWeek:function lastWeek(date,baseDate,options){ +if(isSameWeek(date,baseDate,options))return"eeee 'plkst.' p"; +return"'Pagājušā "+weekdays$1[date.getDay()]+" plkst.' p"; +}, +yesterday:"'Vakar plkst.' p", +today:"'Šodien plkst.' p", +tomorrow:"'Rīt plkst.' p", +nextWeek:function nextWeek(date,baseDate,options){ +if(isSameWeek(date,baseDate,options))return"eeee 'plkst.' p"; +return"'Nākamajā "+weekdays$1[date.getDay()]+" plkst.' p"; +}, +other:"P" +}; +var formatRelative$33=function formatRelative$33(token,date,baseDate,options){ +var format=formatRelativeLocale$33[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/lv/_lib/localize.js +var eraValues$33={ +narrow:["p.m.ē","m.ē"], +abbreviated:["p. m. ē.","m. ē."], +wide:["pirms mūsu ēras","mūsu ērā"] +}; +var quarterValues$33={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1. cet.", +"2. cet.", +"3. cet.", +"4. cet."], + +wide:[ +"pirmais ceturksnis", +"otrais ceturksnis", +"trešais ceturksnis", +"ceturtais ceturksnis"] + +}; +var formattingQuarterValues$1={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1. cet.", +"2. cet.", +"3. cet.", +"4. cet."], + +wide:[ +"pirmajā ceturksnī", +"otrajā ceturksnī", +"trešajā ceturksnī", +"ceturtajā ceturksnī"] + +}; +var monthValues$33={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"janv.", +"febr.", +"marts", +"apr.", +"maijs", +"jūn.", +"jūl.", +"aug.", +"sept.", +"okt.", +"nov.", +"dec."], + +wide:[ +"janvāris", +"februāris", +"marts", +"aprīlis", +"maijs", +"jūnijs", +"jūlijs", +"augusts", +"septembris", +"oktobris", +"novembris", +"decembris"] + +}; +var formattingMonthValues$7={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"janv.", +"febr.", +"martā", +"apr.", +"maijs", +"jūn.", +"jūl.", +"aug.", +"sept.", +"okt.", +"nov.", +"dec."], + +wide:[ +"janvārī", +"februārī", +"martā", +"aprīlī", +"maijā", +"jūnijā", +"jūlijā", +"augustā", +"septembrī", +"oktobrī", +"novembrī", +"decembrī"] + +}; +var dayValues$33={ +narrow:[ +"S", +"P", +"O", +"T", +"C", +"P", +"S"], + +short:[ +"Sv", +"P", +"O", +"T", +"C", +"Pk", +"S"], + +abbreviated:[ +"svētd.", +"pirmd.", +"otrd.", +"trešd.", +"ceturtd.", +"piektd.", +"sestd."], + +wide:[ +"svētdiena", +"pirmdiena", +"otrdiena", +"trešdiena", +"ceturtdiena", +"piektdiena", +"sestdiena"] + +}; +var formattingDayValues$1={ +narrow:[ +"S", +"P", +"O", +"T", +"C", +"P", +"S"], + +short:[ +"Sv", +"P", +"O", +"T", +"C", +"Pk", +"S"], + +abbreviated:[ +"svētd.", +"pirmd.", +"otrd.", +"trešd.", +"ceturtd.", +"piektd.", +"sestd."], + +wide:[ +"svētdienā", +"pirmdienā", +"otrdienā", +"trešdienā", +"ceturtdienā", +"piektdienā", +"sestdienā"] + +}; +var dayPeriodValues$33={ +narrow:{ +am:"am", +pm:"pm", +midnight:"pusn.", +noon:"pusd.", +morning:"rīts", +afternoon:"diena", +evening:"vakars", +night:"nakts" +}, +abbreviated:{ +am:"am", +pm:"pm", +midnight:"pusn.", +noon:"pusd.", +morning:"rīts", +afternoon:"pēcpusd.", +evening:"vakars", +night:"nakts" +}, +wide:{ +am:"am", +pm:"pm", +midnight:"pusnakts", +noon:"pusdienlaiks", +morning:"rīts", +afternoon:"pēcpusdiena", +evening:"vakars", +night:"nakts" +} +}; +var formattingDayPeriodValues$25={ +narrow:{ +am:"am", +pm:"pm", +midnight:"pusn.", +noon:"pusd.", +morning:"rītā", +afternoon:"dienā", +evening:"vakarā", +night:"naktī" +}, +abbreviated:{ +am:"am", +pm:"pm", +midnight:"pusn.", +noon:"pusd.", +morning:"rītā", +afternoon:"pēcpusd.", +evening:"vakarā", +night:"naktī" +}, +wide:{ +am:"am", +pm:"pm", +midnight:"pusnaktī", +noon:"pusdienlaikā", +morning:"rītā", +afternoon:"pēcpusdienā", +evening:"vakarā", +night:"naktī" +} +}; +var ordinalNumber$33=function ordinalNumber$33(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/lv.js +/** +* @category Locales +* @summary Latvian locale (Latvia). +* @language Latvian +* @iso-639-2 lav +* @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) +*/ +var _lv={ +code:"lv", +formatDistance:formatDistance$33, +formatLong:formatLong$33, +formatRelative:formatRelative$33, +localize:{ +ordinalNumber:ordinalNumber$33, +era:buildLocalizeFn({ +values:eraValues$33, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$33, +defaultWidth:"wide", +formattingValues:formattingQuarterValues$1, +defaultFormattingWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$33, +defaultWidth:"wide", +formattingValues:formattingMonthValues$7, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$33, +defaultWidth:"wide", +formattingValues:formattingDayValues$1, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$33, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$25, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(p\.m\.ē|m\.ē)/i, +abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i, +wide:/^(pirms mūsu ēras|mūsu ērā)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^p/i,/^m/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](\. cet\.)/i, +wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^1/i, +/^2/i, +/^3/i, +/^4/i], + +abbreviated:[ +/^1/i, +/^2/i, +/^3/i, +/^4/i], + +wide:[ +/^p/i, +/^o/i, +/^t/i, +/^c/i] + +}, +defaultParseWidth:"wide", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, +wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^mai/i, +/^jūn/i, +/^jūl/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[spotc]/i, +short:/^(sv|pi|o|t|c|pk|s)/i, +abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, +wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^p/i, +/^o/i, +/^t/i, +/^c/i, +/^p/i, +/^s/i], + +any:[ +/^sv/i, +/^pi/i, +/^o/i, +/^t/i, +/^c/i, +/^p/i, +/^se/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, +abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, +wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/^pusn/i, +noon:/^pusd/i, +morning:/^r/i, +afternoon:/^(d|pēc)/i, +evening:/^v/i, +night:/^n/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/mk/_lib/formatDistance.js +var formatDistanceLocale$32={ +lessThanXSeconds:{ +one:"помалку од секунда", +other:"помалку од {{count}} секунди" +}, +xSeconds:{ +one:"1 секунда", +other:"{{count}} секунди" +}, +halfAMinute:"половина минута", +lessThanXMinutes:{ +one:"помалку од минута", +other:"помалку од {{count}} минути" +}, +xMinutes:{ +one:"1 минута", +other:"{{count}} минути" +}, +aboutXHours:{ +one:"околу 1 час", +other:"околу {{count}} часа" +}, +xHours:{ +one:"1 час", +other:"{{count}} часа" +}, +xDays:{ +one:"1 ден", +other:"{{count}} дена" +}, +aboutXWeeks:{ +one:"околу 1 недела", +other:"околу {{count}} месеци" +}, +xWeeks:{ +one:"1 недела", +other:"{{count}} недели" +}, +aboutXMonths:{ +one:"околу 1 месец", +other:"околу {{count}} недели" +}, +xMonths:{ +one:"1 месец", +other:"{{count}} месеци" +}, +aboutXYears:{ +one:"околу 1 година", +other:"околу {{count}} години" +}, +xYears:{ +one:"1 година", +other:"{{count}} години" +}, +overXYears:{ +one:"повеќе од 1 година", +other:"повеќе од {{count}} години" +}, +almostXYears:{ +one:"безмалку 1 година", +other:"безмалку {{count}} години" +} +}; +var formatDistance$32=function formatDistance$32(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$32[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"за "+result;else +return"пред "+result; +return result; +}; +var formatLong$32={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, dd MMMM yyyy", +long:"dd MMMM yyyy", +medium:"dd MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}} {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/mk/_lib/formatRelative.js +var weekdays=[ +"недела", +"понеделник", +"вторник", +"среда", +"четврток", +"петок", +"сабота"]; + +function lastWeek$3(day){ +var weekday=weekdays[day]; +switch(day){ +case 0: +case 3: +case 6:return"'минатата "+weekday+" во' p"; +case 1: +case 2: +case 4: +case 5:return"'минатиот "+weekday+" во' p"; +} +} +function thisWeek$3(day){ +var weekday=weekdays[day]; +switch(day){ +case 0: +case 3: +case 6:return"'ова "+weekday+" вo' p"; +case 1: +case 2: +case 4: +case 5:return"'овој "+weekday+" вo' p"; +} +} +function nextWeek$3(day){ +var weekday=weekdays[day]; +switch(day){ +case 0: +case 3: +case 6:return"'следната "+weekday+" вo' p"; +case 1: +case 2: +case 4: +case 5:return"'следниот "+weekday+" вo' p"; +} +} +var formatRelativeLocale$32={ +lastWeek:function lastWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$3(day);else +return lastWeek$3(day); +}, +yesterday:"'вчера во' p", +today:"'денес во' p", +tomorrow:"'утре во' p", +nextWeek:function nextWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$3(day);else +return nextWeek$3(day); +}, +other:"P" +}; +var formatRelative$32=function formatRelative$32(token,date,baseDate,options){ +var format=formatRelativeLocale$32[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/mk/_lib/localize.js +var eraValues$32={ +narrow:["пр.н.е.","н.е."], +abbreviated:["пред н. е.","н. е."], +wide:["пред нашата ера","нашата ера"] +}; +var quarterValues$32={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-ви кв.", +"2-ри кв.", +"3-ти кв.", +"4-ти кв."], + +wide:[ +"1-ви квартал", +"2-ри квартал", +"3-ти квартал", +"4-ти квартал"] + +}; +var monthValues$32={ +abbreviated:[ +"јан", +"фев", +"мар", +"апр", +"мај", +"јун", +"јул", +"авг", +"септ", +"окт", +"ноем", +"дек"], + +wide:[ +"јануари", +"февруари", +"март", +"април", +"мај", +"јуни", +"јули", +"август", +"септември", +"октомври", +"ноември", +"декември"] + +}; +var dayValues$32={ +narrow:[ +"Н", +"П", +"В", +"С", +"Ч", +"П", +"С"], + +short:[ +"не", +"по", +"вт", +"ср", +"че", +"пе", +"са"], + +abbreviated:[ +"нед", +"пон", +"вто", +"сре", +"чет", +"пет", +"саб"], + +wide:[ +"недела", +"понеделник", +"вторник", +"среда", +"четврток", +"петок", +"сабота"] + +}; +var dayPeriodValues$32={wide:{ +am:"претпладне", +pm:"попладне", +midnight:"полноќ", +noon:"напладне", +morning:"наутро", +afternoon:"попладне", +evening:"навечер", +night:"ноќе" +}}; +var ordinalNumber$32=function ordinalNumber$32(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1:return number+"-ви"; +case 2:return number+"-ри"; +case 7: +case 8:return number+"-ми"; +} +return number+"-ти"; +}; +//#endregion +//#region dist/date-fns/locale/mk.js +/** +* @category Locales +* @summary Macedonian locale. +* @language Macedonian +* @iso-639-2 mkd +* @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) +* @author Altrim Beqiri [@altrim](https://github.com/altrim) +*/ +var _mk={ +code:"mk", +formatDistance:formatDistance$32, +formatLong:formatLong$32, +formatRelative:formatRelative$32, +localize:{ +ordinalNumber:ordinalNumber$32, +era:buildLocalizeFn({ +values:eraValues$32, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$32, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$32, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$32, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$32, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?[врмт][и])?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((пр)?н\.?\s?е\.?)/i, +abbreviated:/^((пр)?н\.?\s?е\.?)/i, +wide:/^(пред нашата ера|нашата ера)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^п/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[врт]?и?)? кв.?/i, +wide:/^[1234](-?[врт]?и?)? квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, +wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^ја/i, +/^Ф/i, +/^мар/i, +/^ап/i, +/^мај/i, +/^јун/i, +/^јул/i, +/^ав/i, +/^се/i, +/^окт/i, +/^но/i, +/^де/i] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[нпвсч]/i, +short:/^(не|по|вт|ср|че|пе|са)/i, +abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i, +wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^п/i, +/^в/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^н[ед]/i, +/^п[он]/i, +/^вт/i, +/^ср/i, +/^ч[ет]/i, +/^п[ет]/i, +/^с[аб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/претпладне/i, +pm:/попладне/i, +midnight:/полноќ/i, +noon:/напладне/i, +morning:/наутро/i, +afternoon:/попладне/i, +evening:/навечер/i, +night:/ноќе/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/mn/_lib/formatDistance.js +var formatDistanceLocale$31={ +lessThanXSeconds:{ +one:"секунд хүрэхгүй", +other:"{{count}} секунд хүрэхгүй" +}, +xSeconds:{ +one:"1 секунд", +other:"{{count}} секунд" +}, +halfAMinute:"хагас минут", +lessThanXMinutes:{ +one:"минут хүрэхгүй", +other:"{{count}} минут хүрэхгүй" +}, +xMinutes:{ +one:"1 минут", +other:"{{count}} минут" +}, +aboutXHours:{ +one:"ойролцоогоор 1 цаг", +other:"ойролцоогоор {{count}} цаг" +}, +xHours:{ +one:"1 цаг", +other:"{{count}} цаг" +}, +xDays:{ +one:"1 өдөр", +other:"{{count}} өдөр" +}, +aboutXWeeks:{ +one:"ойролцоогоор 1 долоо хоног", +other:"ойролцоогоор {{count}} долоо хоног" +}, +xWeeks:{ +one:"1 долоо хоног", +other:"{{count}} долоо хоног" +}, +aboutXMonths:{ +one:"ойролцоогоор 1 сар", +other:"ойролцоогоор {{count}} сар" +}, +xMonths:{ +one:"1 сар", +other:"{{count}} сар" +}, +aboutXYears:{ +one:"ойролцоогоор 1 жил", +other:"ойролцоогоор {{count}} жил" +}, +xYears:{ +one:"1 жил", +other:"{{count}} жил" +}, +overXYears:{ +one:"1 жил гаран", +other:"{{count}} жил гаран" +}, +almostXYears:{ +one:"бараг 1 жил", +other:"бараг {{count}} жил" +} +}; +var formatDistance$31=function formatDistance$31(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$31[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix){ +/** + * Append genitive case + */ +var words=result.split(" "); +var lastword=words.pop(); +result=words.join(" "); +switch(lastword){ +case"секунд": +result+=" секундийн"; +break; +case"минут": +result+=" минутын"; +break; +case"цаг": +result+=" цагийн"; +break; +case"өдөр": +result+=" өдрийн"; +break; +case"сар": +result+=" сарын"; +break; +case"жил": +result+=" жилийн"; +break; +case"хоног": +result+=" хоногийн"; +break; +case"гаран": +result+=" гараны"; +break; +case"хүрэхгүй": +result+=" хүрэхгүй хугацааны"; +break; +default:result+=lastword+"-н"; +} +if(options.comparison&&options.comparison>0)return result+" дараа";else +return result+" өмнө"; +} +return result; +}; +var formatLong$31={ +date:buildFormatLongFn({ +formats:{ +full:"y 'оны' MMMM'ын' d, EEEE 'гараг'", +long:"y 'оны' MMMM'ын' d", +medium:"y 'оны' MMM'ын' d", +short:"y.MM.dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/mn/_lib/formatRelative.js +var formatRelativeLocale$31={ +lastWeek:"'өнгөрсөн' eeee 'гарагийн' p 'цагт'", +yesterday:"'өчигдөр' p 'цагт'", +today:"'өнөөдөр' p 'цагт'", +tomorrow:"'маргааш' p 'цагт'", +nextWeek:"'ирэх' eeee 'гарагийн' p 'цагт'", +other:"P" +}; +var formatRelative$31=function formatRelative$31(token,_date,_baseDate,_options){return formatRelativeLocale$31[token];}; +//#endregion +//#region dist/date-fns/locale/mn/_lib/localize.js +var eraValues$31={ +narrow:["НТӨ","НТ"], +abbreviated:["НТӨ","НТ"], +wide:["нийтийн тооллын өмнөх","нийтийн тооллын"] +}; +var quarterValues$31={ +narrow:[ +"I", +"II", +"III", +"IV"], + +abbreviated:[ +"I улирал", +"II улирал", +"III улирал", +"IV улирал"], + +wide:[ +"1-р улирал", +"2-р улирал", +"3-р улирал", +"4-р улирал"] + +}; +var monthValues$31={ +narrow:[ +"I", +"II", +"III", +"IV", +"V", +"VI", +"VII", +"VIII", +"IX", +"X", +"XI", +"XII"], + +abbreviated:[ +"1-р сар", +"2-р сар", +"3-р сар", +"4-р сар", +"5-р сар", +"6-р сар", +"7-р сар", +"8-р сар", +"9-р сар", +"10-р сар", +"11-р сар", +"12-р сар"], + +wide:[ +"Нэгдүгээр сар", +"Хоёрдугаар сар", +"Гуравдугаар сар", +"Дөрөвдүгээр сар", +"Тавдугаар сар", +"Зургаадугаар сар", +"Долоодугаар сар", +"Наймдугаар сар", +"Есдүгээр сар", +"Аравдугаар сар", +"Арваннэгдүгээр сар", +"Арван хоёрдугаар сар"] + +}; +var formattingMonthValues$6={ +narrow:[ +"I", +"II", +"III", +"IV", +"V", +"VI", +"VII", +"VIII", +"IX", +"X", +"XI", +"XII"], + +abbreviated:[ +"1-р сар", +"2-р сар", +"3-р сар", +"4-р сар", +"5-р сар", +"6-р сар", +"7-р сар", +"8-р сар", +"9-р сар", +"10-р сар", +"11-р сар", +"12-р сар"], + +wide:[ +"нэгдүгээр сар", +"хоёрдугаар сар", +"гуравдугаар сар", +"дөрөвдүгээр сар", +"тавдугаар сар", +"зургаадугаар сар", +"долоодугаар сар", +"наймдугаар сар", +"есдүгээр сар", +"аравдугаар сар", +"арваннэгдүгээр сар", +"арван хоёрдугаар сар"] + +}; +var dayValues$31={ +narrow:[ +"Н", +"Д", +"М", +"Л", +"П", +"Б", +"Б"], + +short:[ +"Ня", +"Да", +"Мя", +"Лх", +"Пү", +"Ба", +"Бя"], + +abbreviated:[ +"Ням", +"Дав", +"Мяг", +"Лха", +"Пүр", +"Баа", +"Бям"], + +wide:[ +"Ням", +"Даваа", +"Мягмар", +"Лхагва", +"Пүрэв", +"Баасан", +"Бямба"] + +}; +var formattingDayValues={ +narrow:[ +"Н", +"Д", +"М", +"Л", +"П", +"Б", +"Б"], + +short:[ +"Ня", +"Да", +"Мя", +"Лх", +"Пү", +"Ба", +"Бя"], + +abbreviated:[ +"Ням", +"Дав", +"Мяг", +"Лха", +"Пүр", +"Баа", +"Бям"], + +wide:[ +"ням", +"даваа", +"мягмар", +"лхагва", +"пүрэв", +"баасан", +"бямба"] + +}; +var dayPeriodValues$31={ +narrow:{ +am:"ү.ө.", +pm:"ү.х.", +midnight:"шөнө дунд", +noon:"үд дунд", +morning:"өглөө", +afternoon:"өдөр", +evening:"орой", +night:"шөнө" +}, +abbreviated:{ +am:"ү.ө.", +pm:"ү.х.", +midnight:"шөнө дунд", +noon:"үд дунд", +morning:"өглөө", +afternoon:"өдөр", +evening:"орой", +night:"шөнө" +}, +wide:{ +am:"ү.ө.", +pm:"ү.х.", +midnight:"шөнө дунд", +noon:"үд дунд", +morning:"өглөө", +afternoon:"өдөр", +evening:"орой", +night:"шөнө" +} +}; +var ordinalNumber$31=function ordinalNumber$31(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/mn.js +/** +* @category Locales +* @summary Mongolian locale. +* @language Mongolian +* @iso-639-2 mon +* @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) +*/ +var _mn={ +code:"mn", +formatDistance:formatDistance$31, +formatLong:formatLong$31, +formatRelative:formatRelative$31, +localize:{ +ordinalNumber:ordinalNumber$31, +era:buildLocalizeFn({ +values:eraValues$31, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$31, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$31, +defaultWidth:"wide", +formattingValues:formattingMonthValues$6, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$31, +defaultWidth:"wide", +formattingValues:formattingDayValues, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$31, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/\d+/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(нтө|нт)/i, +abbreviated:/^(нтө|нт)/i, +wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^(iv|iii|ii|i)/i, +abbreviated:/^(iv|iii|ii|i) улирал/i, +wide:/^[1-4]-р улирал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^(i(\s|$)|1)/i, +/^(ii(\s|$)|2)/i, +/^(iii(\s|$)|3)/i, +/^(iv(\s|$)|4)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, +abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, +wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^i$/i, +/^ii$/i, +/^iii$/i, +/^iv$/i, +/^v$/i, +/^vi$/i, +/^vii$/i, +/^viii$/i, +/^ix$/i, +/^x$/i, +/^xi$/i, +/^xii$/i], + +any:[ +/^(1|нэгдүгээр)/i, +/^(2|хоёрдугаар)/i, +/^(3|гуравдугаар)/i, +/^(4|дөрөвдүгээр)/i, +/^(5|тавдугаар)/i, +/^(6|зургаадугаар)/i, +/^(7|долоодугаар)/i, +/^(8|наймдугаар)/i, +/^(9|есдүгээр)/i, +/^(10|аравдугаар)/i, +/^(11|арван нэгдүгээр)/i, +/^(12|арван хоёрдугаар)/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[ндмлпбб]/i, +short:/^(ня|да|мя|лх|пү|ба|бя)/i, +abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i, +wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^д/i, +/^м/i, +/^л/i, +/^п/i, +/^б/i, +/^б/i], + +any:[ +/^ня/i, +/^да/i, +/^мя/i, +/^лх/i, +/^пү/i, +/^ба/i, +/^бя/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, +any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ү\.ө\./i, +pm:/^ү\.х\./i, +midnight:/^шөнө дунд/i, +noon:/^үд дунд/i, +morning:/өглөө/i, +afternoon:/өдөр/i, +evening:/орой/i, +night:/шөнө/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ms/_lib/formatDistance.js +var formatDistanceLocale$30={ +lessThanXSeconds:{ +one:"kurang dari 1 saat", +other:"kurang dari {{count}} saat" +}, +xSeconds:{ +one:"1 saat", +other:"{{count}} saat" +}, +halfAMinute:"setengah minit", +lessThanXMinutes:{ +one:"kurang dari 1 minit", +other:"kurang dari {{count}} minit" +}, +xMinutes:{ +one:"1 minit", +other:"{{count}} minit" +}, +aboutXHours:{ +one:"sekitar 1 jam", +other:"sekitar {{count}} jam" +}, +xHours:{ +one:"1 jam", +other:"{{count}} jam" +}, +xDays:{ +one:"1 hari", +other:"{{count}} hari" +}, +aboutXWeeks:{ +one:"sekitar 1 minggu", +other:"sekitar {{count}} minggu" +}, +xWeeks:{ +one:"1 minggu", +other:"{{count}} minggu" +}, +aboutXMonths:{ +one:"sekitar 1 bulan", +other:"sekitar {{count}} bulan" +}, +xMonths:{ +one:"1 bulan", +other:"{{count}} bulan" +}, +aboutXYears:{ +one:"sekitar 1 tahun", +other:"sekitar {{count}} tahun" +}, +xYears:{ +one:"1 tahun", +other:"{{count}} tahun" +}, +overXYears:{ +one:"lebih dari 1 tahun", +other:"lebih dari {{count}} tahun" +}, +almostXYears:{ +one:"hampir 1 tahun", +other:"hampir {{count}} tahun" +} +}; +var formatDistance$30=function formatDistance$30(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$30[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"dalam masa "+result;else +return result+" yang lalu"; +return result; +}; +var formatLong$30={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"d/M/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH.mm.ss", +long:"HH.mm.ss", +medium:"HH.mm", +short:"HH.mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'pukul' {{time}}", +long:"{{date}} 'pukul' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ms/_lib/formatRelative.js +var formatRelativeLocale$30={ +lastWeek:"eeee 'lepas pada jam' p", +yesterday:"'Semalam pada jam' p", +today:"'Hari ini pada jam' p", +tomorrow:"'Esok pada jam' p", +nextWeek:"eeee 'pada jam' p", +other:"P" +}; +var formatRelative$30=function formatRelative$30(token,_date,_baseDate,_options){return formatRelativeLocale$30[token];}; +//#endregion +//#region dist/date-fns/locale/ms/_lib/localize.js +var eraValues$30={ +narrow:["SM","M"], +abbreviated:["SM","M"], +wide:["Sebelum Masihi","Masihi"] +}; +var quarterValues$30={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"S1", +"S2", +"S3", +"S4"], + +wide:[ +"Suku pertama", +"Suku kedua", +"Suku ketiga", +"Suku keempat"] + +}; +var monthValues$30={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"O", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Feb", +"Mac", +"Apr", +"Mei", +"Jun", +"Jul", +"Ogo", +"Sep", +"Okt", +"Nov", +"Dis"], + +wide:[ +"Januari", +"Februari", +"Mac", +"April", +"Mei", +"Jun", +"Julai", +"Ogos", +"September", +"Oktober", +"November", +"Disember"] + +}; +var dayValues$30={ +narrow:[ +"A", +"I", +"S", +"R", +"K", +"J", +"S"], + +short:[ +"Ahd", +"Isn", +"Sel", +"Rab", +"Kha", +"Jum", +"Sab"], + +abbreviated:[ +"Ahd", +"Isn", +"Sel", +"Rab", +"Kha", +"Jum", +"Sab"], + +wide:[ +"Ahad", +"Isnin", +"Selasa", +"Rabu", +"Khamis", +"Jumaat", +"Sabtu"] + +}; +var dayPeriodValues$30={ +narrow:{ +am:"am", +pm:"pm", +midnight:"tgh malam", +noon:"tgh hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +} +}; +var formattingDayPeriodValues$24={ +narrow:{ +am:"am", +pm:"pm", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"tengah malam", +noon:"tengah hari", +morning:"pagi", +afternoon:"tengah hari", +evening:"petang", +night:"malam" +} +}; +var ordinalNumber$30=function ordinalNumber$30(dirtyNumber,_options){ +return"ke-"+Number(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ms.js +/** +* @category Locales +* @summary Malay locale. +* @language Malay +* @iso-639-2 msa +* @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) +*/ +var _ms={ +code:"ms", +formatDistance:formatDistance$30, +formatLong:formatLong$30, +formatRelative:formatRelative$30, +localize:{ +ordinalNumber:ordinalNumber$30, +era:buildLocalizeFn({ +values:eraValues$30, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$30, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$30, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$30, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$30, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$24, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^ke-(\d+)?/i, +parsePattern:/petama|\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(sm|m)/i, +abbreviated:/^(s\.?\s?m\.?|m\.?)/i, +wide:/^(sebelum masihi|masihi)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^s/i,/^(m)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^S[1234]/i, +wide:/Suku (pertama|kedua|ketiga|keempat)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/pertama|1/i, +/kedua|2/i, +/ketiga|3/i, +/keempat|4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, +wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^o/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^ma/i, +/^ap/i, +/^me/i, +/^jun/i, +/^jul/i, +/^og/i, +/^s/i, +/^ok/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[aisrkj]/i, +short:/^(ahd|isn|sel|rab|kha|jum|sab)/i, +abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i, +wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^a/i, +/^i/i, +/^s/i, +/^r/i, +/^k/i, +/^j/i, +/^s/i], + +any:[ +/^a/i, +/^i/i, +/^se/i, +/^r/i, +/^k/i, +/^j/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, +any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^pm/i, +midnight:/^tengah m/i, +noon:/^tengah h/i, +morning:/pa/i, +afternoon:/tengah h/i, +evening:/pe/i, +night:/m/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/mt/_lib/formatDistance.js +var formatDistanceLocale$29={ +lessThanXSeconds:{ +one:"inqas minn sekonda", +other:"inqas minn {{count}} sekondi" +}, +xSeconds:{ +one:"sekonda", +other:"{{count}} sekondi" +}, +halfAMinute:"nofs minuta", +lessThanXMinutes:{ +one:"inqas minn minuta", +other:"inqas minn {{count}} minuti" +}, +xMinutes:{ +one:"minuta", +other:"{{count}} minuti" +}, +aboutXHours:{ +one:"madwar siegħa", +other:"madwar {{count}} siegħat" +}, +xHours:{ +one:"siegħa", +other:"{{count}} siegħat" +}, +xDays:{ +one:"ġurnata", +other:"{{count}} ġranet" +}, +aboutXWeeks:{ +one:"madwar ġimgħa", +other:"madwar {{count}} ġimgħat" +}, +xWeeks:{ +one:"ġimgħa", +other:"{{count}} ġimgħat" +}, +aboutXMonths:{ +one:"madwar xahar", +other:"madwar {{count}} xhur" +}, +xMonths:{ +one:"xahar", +other:"{{count}} xhur" +}, +aboutXYears:{ +one:"madwar sena", +two:"madwar sentejn", +other:"madwar {{count}} snin" +}, +xYears:{ +one:"sena", +two:"sentejn", +other:"{{count}} snin" +}, +overXYears:{ +one:"aktar minn sena", +two:"aktar minn sentejn", +other:"aktar minn {{count}} snin" +}, +almostXYears:{ +one:"kważi sena", +two:"kważi sentejn", +other:"kważi {{count}} snin" +} +}; +var formatDistance$29=function formatDistance$29(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$29[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +if(count===2&&tokenValue.two)result=tokenValue.two;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"f'"+result;else +return result+" ilu"; +return result; +}; +var formatLong$29={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/mt/_lib/formatRelative.js +var formatRelativeLocale$29={ +lastWeek:"eeee 'li għadda' 'fil-'p", +yesterday:"'Il-bieraħ fil-'p", +today:"'Illum fil-'p", +tomorrow:"'Għada fil-'p", +nextWeek:"eeee 'fil-'p", +other:"P" +}; +var formatRelative$29=function formatRelative$29(token,_date,_baseDate,_options){return formatRelativeLocale$29[token];}; +//#endregion +//#region dist/date-fns/locale/mt/_lib/localize.js +var eraValues$29={ +narrow:["Q","W"], +abbreviated:["QK","WK"], +wide:["qabel Kristu","wara Kristu"] +}; +var quarterValues$29={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1. kwart", +"2. kwart", +"3. kwart", +"4. kwart"] + +}; +var monthValues$29={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"Ġ", +"L", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Jan", +"Fra", +"Mar", +"Apr", +"Mej", +"Ġun", +"Lul", +"Aww", +"Set", +"Ott", +"Nov", +"Diċ"], + +wide:[ +"Jannar", +"Frar", +"Marzu", +"April", +"Mejju", +"Ġunju", +"Lulju", +"Awwissu", +"Settembru", +"Ottubru", +"Novembru", +"Diċembru"] + +}; +var dayValues$29={ +narrow:[ +"Ħ", +"T", +"T", +"E", +"Ħ", +"Ġ", +"S"], + +short:[ +"Ħa", +"Tn", +"Tl", +"Er", +"Ħa", +"Ġi", +"Si"], + +abbreviated:[ +"Ħad", +"Tne", +"Tli", +"Erb", +"Ħam", +"Ġim", +"Sib"], + +wide:[ +"Il-Ħadd", +"It-Tnejn", +"It-Tlieta", +"L-Erbgħa", +"Il-Ħamis", +"Il-Ġimgħa", +"Is-Sibt"] + +}; +var dayPeriodValues$29={ +narrow:{ +am:"a", +pm:"p", +midnight:"nofsillejl", +noon:"nofsinhar", +morning:"għodwa", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"lejl" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"nofsillejl", +noon:"nofsinhar", +morning:"għodwa", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"lejl" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"nofsillejl", +noon:"nofsinhar", +morning:"għodwa", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"lejl" +} +}; +var formattingDayPeriodValues$23={ +narrow:{ +am:"a", +pm:"p", +midnight:"f'nofsillejl", +noon:"f'nofsinhar", +morning:"filgħodu", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"billejl" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"f'nofsillejl", +noon:"f'nofsinhar", +morning:"filgħodu", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"billejl" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"f'nofsillejl", +noon:"f'nofsinhar", +morning:"filgħodu", +afternoon:"wara nofsinhar", +evening:"filgħaxija", +night:"billejl" +} +}; +var ordinalNumber$29=function ordinalNumber$29(dirtyNumber,_options){ +return Number(dirtyNumber)+"º"; +}; +//#endregion +//#region dist/date-fns/locale/mt.js +/** +* @category Locales +* @summary Maltese locale. +* @language Maltese +* @iso-639-2 mlt +* @author Andras Matzon [@amatzon](@link https://github.com/amatzon) +* @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) +*/ +var _mt={ +code:"mt", +formatDistance:formatDistance$29, +formatLong:formatLong$29, +formatRelative:formatRelative$29, +localize:{ +ordinalNumber:ordinalNumber$29, +era:buildLocalizeFn({ +values:eraValues$29, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$29, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$29, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$29, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$29, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$23, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(º)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(q|w)/i, +abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, +wide:/^(qabel kristu|before common era|wara kristu|common era)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^k[1234]/i, +wide:/^[1234](\.)? kwart/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmaglsond]/i, +abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, +wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^ġ/i, +/^l/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^mej/i, +/^ġ/i, +/^l/i, +/^aw/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[ħteġs]/i, +short:/^(ħa|tn|tl|er|ħa|ġi|si)/i, +abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i, +wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ħ/i, +/^t/i, +/^t/i, +/^e/i, +/^ħ/i, +/^ġ/i, +/^s/i], + +any:[ +/^(il-)?ħad/i, +/^(it-)?tn/i, +/^(it-)?tl/i, +/^(l-)?er/i, +/^(il-)?ham/i, +/^(il-)?ġi/i, +/^(is-)?si/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, +any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^f'nofsillejl/i, +noon:/^f'nofsinhar/i, +morning:/għodwa/i, +afternoon:/wara(\s.*)nofsinhar/i, +evening:/filgħaxija/i, +night:/lejl/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/nb/_lib/formatDistance.js +var formatDistanceLocale$28={ +lessThanXSeconds:{ +one:"mindre enn ett sekund", +other:"mindre enn {{count}} sekunder" +}, +xSeconds:{ +one:"ett sekund", +other:"{{count}} sekunder" +}, +halfAMinute:"et halvt minutt", +lessThanXMinutes:{ +one:"mindre enn ett minutt", +other:"mindre enn {{count}} minutter" +}, +xMinutes:{ +one:"ett minutt", +other:"{{count}} minutter" +}, +aboutXHours:{ +one:"omtrent en time", +other:"omtrent {{count}} timer" +}, +xHours:{ +one:"en time", +other:"{{count}} timer" +}, +xDays:{ +one:"en dag", +other:"{{count}} dager" +}, +aboutXWeeks:{ +one:"omtrent en uke", +other:"omtrent {{count}} uker" +}, +xWeeks:{ +one:"en uke", +other:"{{count}} uker" +}, +aboutXMonths:{ +one:"omtrent en måned", +other:"omtrent {{count}} måneder" +}, +xMonths:{ +one:"en måned", +other:"{{count}} måneder" +}, +aboutXYears:{ +one:"omtrent ett år", +other:"omtrent {{count}} år" +}, +xYears:{ +one:"ett år", +other:"{{count}} år" +}, +overXYears:{ +one:"over ett år", +other:"over {{count}} år" +}, +almostXYears:{ +one:"nesten ett år", +other:"nesten {{count}} år" +} +}; +var formatDistance$28=function formatDistance$28(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$28[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"om "+result;else +return result+" siden"; +return result; +}; +var formatLong$28={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d. MMMM y", +long:"d. MMMM y", +medium:"d. MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"'kl'. HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kl.' {{time}}", +long:"{{date}} 'kl.' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/nb/_lib/formatRelative.js +var formatRelativeLocale$28={ +lastWeek:"'forrige' eeee 'kl.' p", +yesterday:"'i går kl.' p", +today:"'i dag kl.' p", +tomorrow:"'i morgen kl.' p", +nextWeek:"EEEE 'kl.' p", +other:"P" +}; +var formatRelative$28=function formatRelative$28(token,_date,_baseDate,_options){return formatRelativeLocale$28[token];}; +//#endregion +//#region dist/date-fns/locale/nb/_lib/localize.js +var eraValues$28={ +narrow:["f.Kr.","e.Kr."], +abbreviated:["f.Kr.","e.Kr."], +wide:["før Kristus","etter Kristus"] +}; +var quarterValues$28={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$28={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mars", +"apr.", +"mai", +"juni", +"juli", +"aug.", +"sep.", +"okt.", +"nov.", +"des."], + +wide:[ +"januar", +"februar", +"mars", +"april", +"mai", +"juni", +"juli", +"august", +"september", +"oktober", +"november", +"desember"] + +}; +var dayValues$28={ +narrow:[ +"S", +"M", +"T", +"O", +"T", +"F", +"L"], + +short:[ +"sø", +"ma", +"ti", +"on", +"to", +"fr", +"lø"], + +abbreviated:[ +"søn", +"man", +"tir", +"ons", +"tor", +"fre", +"lør"], + +wide:[ +"søndag", +"mandag", +"tirsdag", +"onsdag", +"torsdag", +"fredag", +"lørdag"] + +}; +var dayPeriodValues$28={ +narrow:{ +am:"a", +pm:"p", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på etterm.", +evening:"på kvelden", +night:"på natten" +}, +abbreviated:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på etterm.", +evening:"på kvelden", +night:"på natten" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnatt", +noon:"middag", +morning:"på morgenen", +afternoon:"på ettermiddagen", +evening:"på kvelden", +night:"på natten" +} +}; +var ordinalNumber$28=function ordinalNumber$28(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/nb.js +/** +* @category Locales +* @summary Norwegian Bokmål locale. +* @language Norwegian Bokmål +* @iso-639-2 nob +* @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Dag Stuan [@dagstuan](https://github.com/dagstuan) +*/ +var _nb={ +code:"nb", +formatDistance:formatDistance$28, +formatLong:formatLong$28, +formatRelative:formatRelative$28, +localize:{ +ordinalNumber:ordinalNumber$28, +era:buildLocalizeFn({ +values:eraValues$28, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$28, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$28, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$28, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$28, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, +abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, +wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^f/i,/^e/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](\.)? kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, +wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^aug/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtofl]/i, +short:/^(sø|ma|ti|on|to|fr|lø)/i, +abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i, +wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^s/i, +/^m/i, +/^ti/i, +/^o/i, +/^to/i, +/^f/i, +/^l/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, +any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a(\.?\s?m\.?)?$/i, +pm:/^p(\.?\s?m\.?)?$/i, +midnight:/^midn/i, +noon:/^midd/i, +morning:/morgen/i, +afternoon:/ettermiddag/i, +evening:/kveld/i, +night:/natt/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/nl/_lib/formatDistance.js +var formatDistanceLocale$27={ +lessThanXSeconds:{ +one:"minder dan een seconde", +other:"minder dan {{count}} seconden" +}, +xSeconds:{ +one:"1 seconde", +other:"{{count}} seconden" +}, +halfAMinute:"een halve minuut", +lessThanXMinutes:{ +one:"minder dan een minuut", +other:"minder dan {{count}} minuten" +}, +xMinutes:{ +one:"een minuut", +other:"{{count}} minuten" +}, +aboutXHours:{ +one:"ongeveer 1 uur", +other:"ongeveer {{count}} uur" +}, +xHours:{ +one:"1 uur", +other:"{{count}} uur" +}, +xDays:{ +one:"1 dag", +other:"{{count}} dagen" +}, +aboutXWeeks:{ +one:"ongeveer 1 week", +other:"ongeveer {{count}} weken" +}, +xWeeks:{ +one:"1 week", +other:"{{count}} weken" +}, +aboutXMonths:{ +one:"ongeveer 1 maand", +other:"ongeveer {{count}} maanden" +}, +xMonths:{ +one:"1 maand", +other:"{{count}} maanden" +}, +aboutXYears:{ +one:"ongeveer 1 jaar", +other:"ongeveer {{count}} jaar" +}, +xYears:{ +one:"1 jaar", +other:"{{count}} jaar" +}, +overXYears:{ +one:"meer dan 1 jaar", +other:"meer dan {{count}} jaar" +}, +almostXYears:{ +one:"bijna 1 jaar", +other:"bijna {{count}} jaar" +} +}; +var formatDistance$27=function formatDistance$27(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$27[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"over "+result;else +return result+" geleden"; +return result; +}; +var formatLong$27={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd-MM-y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'om' {{time}}", +long:"{{date}} 'om' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/nl/_lib/formatRelative.js +var formatRelativeLocale$27={ +lastWeek:"'afgelopen' eeee 'om' p", +yesterday:"'gisteren om' p", +today:"'vandaag om' p", +tomorrow:"'morgen om' p", +nextWeek:"eeee 'om' p", +other:"P" +}; +var formatRelative$27=function formatRelative$27(token,_date,_baseDate,_options){return formatRelativeLocale$27[token];}; +//#endregion +//#region dist/date-fns/locale/nl/_lib/localize.js +var eraValues$27={ +narrow:["v.C.","n.C."], +abbreviated:["v.Chr.","n.Chr."], +wide:["voor Christus","na Christus"] +}; +var quarterValues$27={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1e kwartaal", +"2e kwartaal", +"3e kwartaal", +"4e kwartaal"] + +}; +var monthValues$27={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mrt.", +"apr.", +"mei", +"jun.", +"jul.", +"aug.", +"sep.", +"okt.", +"nov.", +"dec."], + +wide:[ +"januari", +"februari", +"maart", +"april", +"mei", +"juni", +"juli", +"augustus", +"september", +"oktober", +"november", +"december"] + +}; +var dayValues$27={ +narrow:[ +"Z", +"M", +"D", +"W", +"D", +"V", +"Z"], + +short:[ +"zo", +"ma", +"di", +"wo", +"do", +"vr", +"za"], + +abbreviated:[ +"zon", +"maa", +"din", +"woe", +"don", +"vri", +"zat"], + +wide:[ +"zondag", +"maandag", +"dinsdag", +"woensdag", +"donderdag", +"vrijdag", +"zaterdag"] + +}; +var dayPeriodValues$27={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middaguur", +morning:"'s ochtends", +afternoon:"'s middags", +evening:"'s avonds", +night:"'s nachts" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middaguur", +morning:"'s ochtends", +afternoon:"'s middags", +evening:"'s avonds", +night:"'s nachts" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middaguur", +morning:"'s ochtends", +afternoon:"'s middags", +evening:"'s avonds", +night:"'s nachts" +} +}; +var ordinalNumber$27=function ordinalNumber$27(dirtyNumber,_options){ +return Number(dirtyNumber)+"e"; +}; +//#endregion +//#region dist/date-fns/locale/nl.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Edo Rivai [@edorivai](https://github.com/edorivai) +* @author Niels Keurentjes [@curry684](https://github.com/curry684) +* @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) +*/ +var _nl={ +code:"nl", +formatDistance:formatDistance$27, +formatLong:formatLong$27, +formatRelative:formatRelative$27, +localize:{ +ordinalNumber:ordinalNumber$27, +era:buildLocalizeFn({ +values:eraValues$27, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$27, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$27, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$27, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$27, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)e?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([vn]\.? ?C\.?)/, +abbreviated:/^([vn]\. ?Chr\.?)/, +wide:/^((voor|na) Christus)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^v/,/^n/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K[1234]/i, +wide:/^[1234]e kwartaal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, +wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^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] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[zmdwv]/i, +short:/^(zo|ma|di|wo|do|vr|za)/i, +abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i, +wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^z/i, +/^m/i, +/^d/i, +/^w/i, +/^d/i, +/^v/i, +/^z/i], + +any:[ +/^zo/i, +/^ma/i, +/^di/i, +/^wo/i, +/^do/i, +/^vr/i, +/^za/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/^middernacht/i, +noon:/^het middaguur/i, +morning:/ochtend/i, +afternoon:/middag/i, +evening:/avond/i, +night:/nacht/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/nl-BE/_lib/formatDistance.js +var formatDistanceLocale$26={ +lessThanXSeconds:{ +one:"minder dan een seconde", +other:"minder dan {{count}} seconden" +}, +xSeconds:{ +one:"1 seconde", +other:"{{count}} seconden" +}, +halfAMinute:"een halve minuut", +lessThanXMinutes:{ +one:"minder dan een minuut", +other:"minder dan {{count}} minuten" +}, +xMinutes:{ +one:"een minuut", +other:"{{count}} minuten" +}, +aboutXHours:{ +one:"ongeveer 1 uur", +other:"ongeveer {{count}} uur" +}, +xHours:{ +one:"1 uur", +other:"{{count}} uur" +}, +xDays:{ +one:"1 dag", +other:"{{count}} dagen" +}, +aboutXWeeks:{ +one:"ongeveer 1 week", +other:"ongeveer {{count}} weken" +}, +xWeeks:{ +one:"1 week", +other:"{{count}} weken" +}, +aboutXMonths:{ +one:"ongeveer 1 maand", +other:"ongeveer {{count}} maanden" +}, +xMonths:{ +one:"1 maand", +other:"{{count}} maanden" +}, +aboutXYears:{ +one:"ongeveer 1 jaar", +other:"ongeveer {{count}} jaar" +}, +xYears:{ +one:"1 jaar", +other:"{{count}} jaar" +}, +overXYears:{ +one:"meer dan 1 jaar", +other:"meer dan {{count}} jaar" +}, +almostXYears:{ +one:"bijna 1 jaar", +other:"bijna {{count}} jaar" +} +}; +var formatDistance$26=function formatDistance$26(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$26[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"over "+result;else +return result+" geleden"; +return result; +}; +var formatLong$26={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'om' {{time}}", +long:"{{date}} 'om' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/nl-BE/_lib/formatRelative.js +var formatRelativeLocale$26={ +lastWeek:"'vorige' eeee 'om' p", +yesterday:"'gisteren om' p", +today:"'vandaag om' p", +tomorrow:"'morgen om' p", +nextWeek:"eeee 'om' p", +other:"P" +}; +var formatRelative$26=function formatRelative$26(token,_date,_baseDate,_options){return formatRelativeLocale$26[token];}; +//#endregion +//#region dist/date-fns/locale/nl-BE/_lib/localize.js +var eraValues$26={ +narrow:["v.C.","n.C."], +abbreviated:["v.Chr.","n.Chr."], +wide:["voor Christus","na Christus"] +}; +var quarterValues$26={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"K1", +"K2", +"K3", +"K4"], + +wide:[ +"1e kwartaal", +"2e kwartaal", +"3e kwartaal", +"4e kwartaal"] + +}; +var monthValues$26={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mrt.", +"apr.", +"mei", +"jun.", +"jul.", +"aug.", +"sep.", +"okt.", +"nov.", +"dec."], + +wide:[ +"januari", +"februari", +"maart", +"april", +"mei", +"juni", +"juli", +"augustus", +"september", +"oktober", +"november", +"december"] + +}; +var dayValues$26={ +narrow:[ +"Z", +"M", +"D", +"W", +"D", +"V", +"Z"], + +short:[ +"zo", +"ma", +"di", +"wo", +"do", +"vr", +"za"], + +abbreviated:[ +"zon", +"maa", +"din", +"woe", +"don", +"vri", +"zat"], + +wide:[ +"zondag", +"maandag", +"dinsdag", +"woensdag", +"donderdag", +"vrijdag", +"zaterdag"] + +}; +var dayPeriodValues$26={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middag", +morning:"'s ochtends", +afternoon:"'s namiddags", +evening:"'s avonds", +night:"'s nachts" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middag", +morning:"'s ochtends", +afternoon:"'s namiddags", +evening:"'s avonds", +night:"'s nachts" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"middernacht", +noon:"het middag", +morning:"'s ochtends", +afternoon:"'s namiddags", +evening:"'s avonds", +night:"'s nachts" +} +}; +var ordinalNumber$26=function ordinalNumber$26(dirtyNumber,_options){ +return Number(dirtyNumber)+"e"; +}; +//#endregion +//#region dist/date-fns/locale/nl-BE.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var _nlBE={ +code:"nl-BE", +formatDistance:formatDistance$26, +formatLong:formatLong$26, +formatRelative:formatRelative$26, +localize:{ +ordinalNumber:ordinalNumber$26, +era:buildLocalizeFn({ +values:eraValues$26, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$26, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$26, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$26, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$26, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)e?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([vn]\.? ?C\.?)/, +abbreviated:/^([vn]\. ?Chr\.?)/, +wide:/^((voor|na) Christus)/ +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^v/,/^n/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^K[1234]/i, +wide:/^[1234]e kwartaal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, +wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^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] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[zmdwv]/i, +short:/^(zo|ma|di|wo|do|vr|za)/i, +abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i, +wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^z/i, +/^m/i, +/^d/i, +/^w/i, +/^d/i, +/^v/i, +/^z/i], + +any:[ +/^zo/i, +/^ma/i, +/^di/i, +/^wo/i, +/^do/i, +/^vr/i, +/^za/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/^middernacht/i, +noon:/^het middaguur/i, +morning:/ochtend/i, +afternoon:/middag/i, +evening:/avond/i, +night:/nacht/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/nn/_lib/formatDistance.js +var formatDistanceLocale$25={ +lessThanXSeconds:{ +one:"mindre enn eitt sekund", +other:"mindre enn {{count}} sekund" +}, +xSeconds:{ +one:"eitt sekund", +other:"{{count}} sekund" +}, +halfAMinute:"eit halvt minutt", +lessThanXMinutes:{ +one:"mindre enn eitt minutt", +other:"mindre enn {{count}} minutt" +}, +xMinutes:{ +one:"eitt minutt", +other:"{{count}} minutt" +}, +aboutXHours:{ +one:"omtrent ein time", +other:"omtrent {{count}} timar" +}, +xHours:{ +one:"ein time", +other:"{{count}} timar" +}, +xDays:{ +one:"ein dag", +other:"{{count}} dagar" +}, +aboutXWeeks:{ +one:"omtrent ei veke", +other:"omtrent {{count}} veker" +}, +xWeeks:{ +one:"ei veke", +other:"{{count}} veker" +}, +aboutXMonths:{ +one:"omtrent ein månad", +other:"omtrent {{count}} månader" +}, +xMonths:{ +one:"ein månad", +other:"{{count}} månader" +}, +aboutXYears:{ +one:"omtrent eitt år", +other:"omtrent {{count}} år" +}, +xYears:{ +one:"eitt år", +other:"{{count}} år" +}, +overXYears:{ +one:"over eitt år", +other:"over {{count}} år" +}, +almostXYears:{ +one:"nesten eitt år", +other:"nesten {{count}} år" +} +}; +var wordMapping$1=[ +"null", +"ein", +"to", +"tre", +"fire", +"fem", +"seks", +"sju", +"åtte", +"ni", +"ti", +"elleve", +"tolv"]; + +var formatDistance$25=function formatDistance$25(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$25[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count<13?wordMapping$1[count]:String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"om "+result;else +return result+" sidan"; +return result; +}; +var formatLong$25={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d. MMMM y", +long:"d. MMMM y", +medium:"d. MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"'kl'. HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kl.' {{time}}", +long:"{{date}} 'kl.' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/nn/_lib/formatRelative.js +var formatRelativeLocale$25={ +lastWeek:"'førre' eeee 'kl.' p", +yesterday:"'i går kl.' p", +today:"'i dag kl.' p", +tomorrow:"'i morgon kl.' p", +nextWeek:"EEEE 'kl.' p", +other:"P" +}; +var formatRelative$25=function formatRelative$25(token,_date,_baseDate,_options){return formatRelativeLocale$25[token];}; +//#endregion +//#region dist/date-fns/locale/nn/_lib/localize.js +var eraValues$25={ +narrow:["f.Kr.","e.Kr."], +abbreviated:["f.Kr.","e.Kr."], +wide:["før Kristus","etter Kristus"] +}; +var quarterValues$25={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$25={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mars", +"apr.", +"mai", +"juni", +"juli", +"aug.", +"sep.", +"okt.", +"nov.", +"des."], + +wide:[ +"januar", +"februar", +"mars", +"april", +"mai", +"juni", +"juli", +"august", +"september", +"oktober", +"november", +"desember"] + +}; +var dayValues$25={ +narrow:[ +"S", +"M", +"T", +"O", +"T", +"F", +"L"], + +short:[ +"su", +"må", +"ty", +"on", +"to", +"fr", +"lau"], + +abbreviated:[ +"sun", +"mån", +"tys", +"ons", +"tor", +"fre", +"laur"], + +wide:[ +"sundag", +"måndag", +"tysdag", +"onsdag", +"torsdag", +"fredag", +"laurdag"] + +}; +var dayPeriodValues$25={ +narrow:{ +am:"a", +pm:"p", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på etterm.", +evening:"på kvelden", +night:"på natta" +}, +abbreviated:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på etterm.", +evening:"på kvelden", +night:"på natta" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"midnatt", +noon:"middag", +morning:"på morgonen", +afternoon:"på ettermiddagen", +evening:"på kvelden", +night:"på natta" +} +}; +var ordinalNumber$25=function ordinalNumber$25(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/nn.js +/** +* @category Locales +* @summary Norwegian Nynorsk locale. +* @language Norwegian Nynorsk +* @iso-639-2 nno +* @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) +*/ +var _nn={ +code:"nn", +formatDistance:formatDistance$25, +formatLong:formatLong$25, +formatRelative:formatRelative$25, +localize:{ +ordinalNumber:ordinalNumber$25, +era:buildLocalizeFn({ +values:eraValues$25, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$25, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$25, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$25, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$25, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, +abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, +wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^f/i,/^e/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](\.)? kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, +wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^aug/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtofl]/i, +short:/^(su|må|ty|on|to|fr|la)/i, +abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i, +wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^s/i, +/^m/i, +/^ty/i, +/^o/i, +/^to/i, +/^f/i, +/^l/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, +any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a(\.?\s?m\.?)?$/i, +pm:/^p(\.?\s?m\.?)?$/i, +midnight:/^midn/i, +noon:/^midd/i, +morning:/morgon/i, +afternoon:/ettermiddag/i, +evening:/kveld/i, +night:/natt/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/oc/_lib/formatDistance.js +var formatDistanceLocale$24={ +lessThanXSeconds:{ +one:"mens d’una segonda", +other:"mens de {{count}} segondas" +}, +xSeconds:{ +one:"1 segonda", +other:"{{count}} segondas" +}, +halfAMinute:"30 segondas", +lessThanXMinutes:{ +one:"mens d’una minuta", +other:"mens de {{count}} minutas" +}, +xMinutes:{ +one:"1 minuta", +other:"{{count}} minutas" +}, +aboutXHours:{ +one:"environ 1 ora", +other:"environ {{count}} oras" +}, +xHours:{ +one:"1 ora", +other:"{{count}} oras" +}, +xDays:{ +one:"1 jorn", +other:"{{count}} jorns" +}, +aboutXWeeks:{ +one:"environ 1 setmana", +other:"environ {{count}} setmanas" +}, +xWeeks:{ +one:"1 setmana", +other:"{{count}} setmanas" +}, +aboutXMonths:{ +one:"environ 1 mes", +other:"environ {{count}} meses" +}, +xMonths:{ +one:"1 mes", +other:"{{count}} meses" +}, +aboutXYears:{ +one:"environ 1 an", +other:"environ {{count}} ans" +}, +xYears:{ +one:"1 an", +other:"{{count}} ans" +}, +overXYears:{ +one:"mai d’un an", +other:"mai de {{count}} ans" +}, +almostXYears:{ +one:"gaireben un an", +other:"gaireben {{count}} ans" +} +}; +var formatDistance$24=function formatDistance$24(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$24[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"d’aquí "+result;else +return"fa "+result; +return result; +}; +var formatLong$24={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d 'de' MMMM y", +long:"d 'de' MMMM y", +medium:"d MMM y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'a' {{time}}", +long:"{{date}} 'a' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/oc/_lib/formatRelative.js +var formatRelativeLocale$24={ +lastWeek:"eeee 'passat a' p", +yesterday:"'ièr a' p", +today:"'uèi a' p", +tomorrow:"'deman a' p", +nextWeek:"eeee 'a' p", +other:"P" +}; +var formatRelative$24=function formatRelative$24(token,_date,_baseDate,_options){return formatRelativeLocale$24[token];}; +//#endregion +//#region dist/date-fns/locale/oc/_lib/localize.js +var eraValues$24={ +narrow:["ab. J.C.","apr. J.C."], +abbreviated:["ab. J.C.","apr. J.C."], +wide:["abans Jèsus-Crist","après Jèsus-Crist"] +}; +var quarterValues$24={ +narrow:[ +"T1", +"T2", +"T3", +"T4"], + +abbreviated:[ +"1èr trim.", +"2nd trim.", +"3en trim.", +"4en trim."], + +wide:[ +"1èr trimèstre", +"2nd trimèstre", +"3en trimèstre", +"4en trimèstre"] + +}; +var monthValues$24={ +narrow:[ +"GN", +"FB", +"MÇ", +"AB", +"MA", +"JN", +"JL", +"AG", +"ST", +"OC", +"NV", +"DC"], + +abbreviated:[ +"gen.", +"febr.", +"març", +"abr.", +"mai", +"junh", +"jul.", +"ag.", +"set.", +"oct.", +"nov.", +"dec."], + +wide:[ +"genièr", +"febrièr", +"març", +"abril", +"mai", +"junh", +"julhet", +"agost", +"setembre", +"octòbre", +"novembre", +"decembre"] + +}; +var dayValues$24={ +narrow:[ +"dg.", +"dl.", +"dm.", +"dc.", +"dj.", +"dv.", +"ds."], + +short:[ +"dg.", +"dl.", +"dm.", +"dc.", +"dj.", +"dv.", +"ds."], + +abbreviated:[ +"dg.", +"dl.", +"dm.", +"dc.", +"dj.", +"dv.", +"ds."], + +wide:[ +"dimenge", +"diluns", +"dimars", +"dimècres", +"dijòus", +"divendres", +"dissabte"] + +}; +var dayPeriodValues$24={ +narrow:{ +am:"am", +pm:"pm", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"matin", +afternoon:"aprèp-miègjorn", +evening:"vèspre", +night:"nuèch" +}, +abbreviated:{ +am:"a.m.", +pm:"p.m.", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"matin", +afternoon:"aprèp-miègjorn", +evening:"vèspre", +night:"nuèch" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"matin", +afternoon:"aprèp-miègjorn", +evening:"vèspre", +night:"nuèch" +} +}; +var formattingDayPeriodValues$22={ +narrow:{ +am:"am", +pm:"pm", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"del matin", +afternoon:"de l’aprèp-miègjorn", +evening:"del ser", +night:"de la nuèch" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"del matin", +afternoon:"de l’aprèp-miègjorn", +evening:"del ser", +night:"de la nuèch" +}, +wide:{ +am:"ante meridiem", +pm:"post meridiem", +midnight:"mièjanuèch", +noon:"miègjorn", +morning:"del matin", +afternoon:"de l’aprèp-miègjorn", +evening:"del ser", +night:"de la nuèch" +} +}; +var ordinalNumber$24=function ordinalNumber$24(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +var ordinal; +switch(number){ +case 1: +ordinal="èr"; +break; +case 2: +ordinal="nd"; +break; +default:ordinal="en"; +} +if(unit==="year"||unit==="week"||unit==="hour"||unit==="minute"||unit==="second")ordinal+="a"; +return number+ordinal; +}; +//#endregion +//#region dist/date-fns/locale/oc.js +/** +* @category Locales +* @summary Occitan locale. +* @language Occitan +* @iso-639-2 oci +* @author Quentin PAGÈS +*/ +var _oc={ +code:"oc", +formatDistance:formatDistance$24, +formatLong:formatLong$24, +formatRelative:formatRelative$24, +localize:{ +ordinalNumber:ordinalNumber$24, +era:buildLocalizeFn({ +values:eraValues$24, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$24, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$24, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$24, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$24, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$22, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(èr|nd|en)?[a]?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, +abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, +wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^ab/i,/^ap/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^T[1234]/i, +abbreviated:/^[1234](èr|nd|en)? trim\.?/i, +wide:/^[1234](èr|nd|en)? trimèstre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, +abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, +wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^g/i, +/^f/i, +/^ma[r?]|MÇ/i, +/^ab/i, +/^ma[i?]/i, +/^ju[n?]|JN/i, +/^ju[l?]|JL/i, +/^ag/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^d[glmcjvs]\.?/i, +short:/^d[glmcjvs]\.?/i, +abbreviated:/^d[glmcjvs]\.?/i, +wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^dg/i, +/^dl/i, +/^dm/i, +/^dc/i, +/^dj/i, +/^dv/i, +/^ds/i], + +short:[ +/^dg/i, +/^dl/i, +/^dm/i, +/^dc/i, +/^dj/i, +/^dv/i, +/^ds/i], + +abbreviated:[ +/^dg/i, +/^dl/i, +/^dm/i, +/^dc/i, +/^dj/i, +/^dv/i, +/^ds/i], + +any:[ +/^dg|dime/i, +/^dl|dil/i, +/^dm|dima/i, +/^dc|dimè/i, +/^dj|dij/i, +/^dv|div/i, +/^ds|dis/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/(^a)|ante meridiem/i, +pm:/(^p)|post meridiem/i, +midnight:/^mièj/i, +noon:/^mièg/i, +morning:/matin/i, +afternoon:/aprèp-miègjorn/i, +evening:/vèspre|ser/i, +night:/nuèch/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/pl/_lib/formatDistance.js +var formatDistanceLocale$23={ +lessThanXSeconds:{ +one:{ +regular:"mniej niż sekunda", +past:"mniej niż sekundę", +future:"mniej niż sekundę" +}, +twoFour:"mniej niż {{count}} sekundy", +other:"mniej niż {{count}} sekund" +}, +xSeconds:{ +one:{ +regular:"sekunda", +past:"sekundę", +future:"sekundę" +}, +twoFour:"{{count}} sekundy", +other:"{{count}} sekund" +}, +halfAMinute:{ +one:"pół minuty", +twoFour:"pół minuty", +other:"pół minuty" +}, +lessThanXMinutes:{ +one:{ +regular:"mniej niż minuta", +past:"mniej niż minutę", +future:"mniej niż minutę" +}, +twoFour:"mniej niż {{count}} minuty", +other:"mniej niż {{count}} minut" +}, +xMinutes:{ +one:{ +regular:"minuta", +past:"minutę", +future:"minutę" +}, +twoFour:"{{count}} minuty", +other:"{{count}} minut" +}, +aboutXHours:{ +one:{ +regular:"około godziny", +past:"około godziny", +future:"około godzinę" +}, +twoFour:"około {{count}} godziny", +other:"około {{count}} godzin" +}, +xHours:{ +one:{ +regular:"godzina", +past:"godzinę", +future:"godzinę" +}, +twoFour:"{{count}} godziny", +other:"{{count}} godzin" +}, +xDays:{ +one:{ +regular:"dzień", +past:"dzień", +future:"1 dzień" +}, +twoFour:"{{count}} dni", +other:"{{count}} dni" +}, +aboutXWeeks:{ +one:"około tygodnia", +twoFour:"około {{count}} tygodni", +other:"około {{count}} tygodni" +}, +xWeeks:{ +one:"tydzień", +twoFour:"{{count}} tygodnie", +other:"{{count}} tygodni" +}, +aboutXMonths:{ +one:"około miesiąc", +twoFour:"około {{count}} miesiące", +other:"około {{count}} miesięcy" +}, +xMonths:{ +one:"miesiąc", +twoFour:"{{count}} miesiące", +other:"{{count}} miesięcy" +}, +aboutXYears:{ +one:"około rok", +twoFour:"około {{count}} lata", +other:"około {{count}} lat" +}, +xYears:{ +one:"rok", +twoFour:"{{count}} lata", +other:"{{count}} lat" +}, +overXYears:{ +one:"ponad rok", +twoFour:"ponad {{count}} lata", +other:"ponad {{count}} lat" +}, +almostXYears:{ +one:"prawie rok", +twoFour:"prawie {{count}} lata", +other:"prawie {{count}} lat" +} +}; +function declensionGroup$1(scheme,count){ +if(count===1)return scheme.one; +var rem100=count%100; +if(rem100<=20&&rem100>10)return scheme.other; +var rem10=rem100%10; +if(rem10>=2&&rem10<=4)return scheme.twoFour; +return scheme.other; +} +function declension$3(scheme,count,time){ +var group=declensionGroup$1(scheme,count); +return(typeof group==="string"?group:group[time]).replace("{{count}}",String(count)); +} +var formatDistance$23=function formatDistance$23(token,count,options){ +var scheme=formatDistanceLocale$23[token]; +if(!(options!==null&&options!==void 0&&options.addSuffix))return declension$3(scheme,count,"regular"); +if(options.comparison&&options.comparison>0)return"za "+declension$3(scheme,count,"future");else +return declension$3(scheme,count,"past")+" temu"; +}; +var formatLong$23={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y", +long:"do MMMM y", +medium:"do MMM y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/pl/_lib/formatRelative.js +var adjectivesLastWeek={ +masculine:"ostatni", +feminine:"ostatnia" +}; +var adjectivesThisWeek={ +masculine:"ten", +feminine:"ta" +}; +var adjectivesNextWeek={ +masculine:"następny", +feminine:"następna" +}; +var dayGrammaticalGender={ +0:"feminine", +1:"masculine", +2:"masculine", +3:"feminine", +4:"masculine", +5:"masculine", +6:"feminine" +}; +function dayAndTimeWithAdjective(token,date,baseDate,options){ +var adjectives; +if(isSameWeek(date,baseDate,options))adjectives=adjectivesThisWeek;else +if(token==="lastWeek")adjectives=adjectivesLastWeek;else +if(token==="nextWeek")adjectives=adjectivesNextWeek;else +throw new Error("Cannot determine adjectives for token ".concat(token)); +var grammaticalGender=dayGrammaticalGender[date.getDay()]; +return"'".concat(adjectives[grammaticalGender],"' eeee 'o' p"); +} +var formatRelativeLocale$23={ +lastWeek:dayAndTimeWithAdjective, +yesterday:"'wczoraj o' p", +today:"'dzisiaj o' p", +tomorrow:"'jutro o' p", +nextWeek:dayAndTimeWithAdjective, +other:"P" +}; +var formatRelative$23=function formatRelative$23(token,date,baseDate,options){ +var format=formatRelativeLocale$23[token]; +if(typeof format==="function")return format(token,date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/pl/_lib/localize.js +var eraValues$23={ +narrow:["p.n.e.","n.e."], +abbreviated:["p.n.e.","n.e."], +wide:["przed naszą erą","naszej ery"] +}; +var quarterValues$23={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"I kw.", +"II kw.", +"III kw.", +"IV kw."], + +wide:[ +"I kwartał", +"II kwartał", +"III kwartał", +"IV kwartał"] + +}; +var monthValues$23={ +narrow:[ +"S", +"L", +"M", +"K", +"M", +"C", +"L", +"S", +"W", +"P", +"L", +"G"], + +abbreviated:[ +"sty", +"lut", +"mar", +"kwi", +"maj", +"cze", +"lip", +"sie", +"wrz", +"paź", +"lis", +"gru"], + +wide:[ +"styczeń", +"luty", +"marzec", +"kwiecień", +"maj", +"czerwiec", +"lipiec", +"sierpień", +"wrzesień", +"październik", +"listopad", +"grudzień"] + +}; +var monthFormattingValues={ +narrow:[ +"s", +"l", +"m", +"k", +"m", +"c", +"l", +"s", +"w", +"p", +"l", +"g"], + +abbreviated:[ +"sty", +"lut", +"mar", +"kwi", +"maj", +"cze", +"lip", +"sie", +"wrz", +"paź", +"lis", +"gru"], + +wide:[ +"stycznia", +"lutego", +"marca", +"kwietnia", +"maja", +"czerwca", +"lipca", +"sierpnia", +"września", +"października", +"listopada", +"grudnia"] + +}; +var dayValues$23={ +narrow:[ +"N", +"P", +"W", +"Ś", +"C", +"P", +"S"], + +short:[ +"nie", +"pon", +"wto", +"śro", +"czw", +"pią", +"sob"], + +abbreviated:[ +"niedz.", +"pon.", +"wt.", +"śr.", +"czw.", +"pt.", +"sob."], + +wide:[ +"niedziela", +"poniedziałek", +"wtorek", +"środa", +"czwartek", +"piątek", +"sobota"] + +}; +var dayFormattingValues={ +narrow:[ +"n", +"p", +"w", +"ś", +"c", +"p", +"s"], + +short:[ +"nie", +"pon", +"wto", +"śro", +"czw", +"pią", +"sob"], + +abbreviated:[ +"niedz.", +"pon.", +"wt.", +"śr.", +"czw.", +"pt.", +"sob."], + +wide:[ +"niedziela", +"poniedziałek", +"wtorek", +"środa", +"czwartek", +"piątek", +"sobota"] + +}; +var dayPeriodValues$23={ +narrow:{ +am:"a", +pm:"p", +midnight:"półn.", +noon:"poł", +morning:"rano", +afternoon:"popoł.", +evening:"wiecz.", +night:"noc" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"północ", +noon:"południe", +morning:"rano", +afternoon:"popołudnie", +evening:"wieczór", +night:"noc" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"północ", +noon:"południe", +morning:"rano", +afternoon:"popołudnie", +evening:"wieczór", +night:"noc" +} +}; +var dayPeriodFormattingValues={ +narrow:{ +am:"a", +pm:"p", +midnight:"o półn.", +noon:"w poł.", +morning:"rano", +afternoon:"po poł.", +evening:"wiecz.", +night:"w nocy" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"o północy", +noon:"w południe", +morning:"rano", +afternoon:"po południu", +evening:"wieczorem", +night:"w nocy" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"o północy", +noon:"w południe", +morning:"rano", +afternoon:"po południu", +evening:"wieczorem", +night:"w nocy" +} +}; +var ordinalNumber$23=function ordinalNumber$23(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/pl.js +/** +* @category Locales +* @summary Polish locale. +* @language Polish +* @iso-639-2 pol +* @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) +* @author Just RAG [@justrag](https://github.com/justrag) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) +*/ +var _pl={ +code:"pl", +formatDistance:formatDistance$23, +formatLong:formatLong$23, +formatRelative:formatRelative$23, +localize:{ +ordinalNumber:ordinalNumber$23, +era:buildLocalizeFn({ +values:eraValues$23, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$23, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$23, +defaultWidth:"wide", +formattingValues:monthFormattingValues, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$23, +defaultWidth:"wide", +formattingValues:dayFormattingValues, +defaultFormattingWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$23, +defaultWidth:"wide", +formattingValues:dayPeriodFormattingValues, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, +abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, +wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^p/i,/^n/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^(I|II|III|IV)\s*kw\.?/i, +wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/1/i, +/2/i, +/3/i, +/4/i], + +any:[ +/^I kw/i, +/^II kw/i, +/^III kw/i, +/^IV kw/i] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[slmkcwpg]/i, +abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, +wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^l/i, +/^m/i, +/^k/i, +/^m/i, +/^c/i, +/^l/i, +/^s/i, +/^w/i, +/^p/i, +/^l/i, +/^g/i], + +any:[ +/^st/i, +/^lu/i, +/^mar/i, +/^k/i, +/^maj/i, +/^c/i, +/^lip/i, +/^si/i, +/^w/i, +/^p/i, +/^lis/i, +/^g/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npwścs]/i, +short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, +abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, +wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^n/i, +/^p/i, +/^w/i, +/^ś/i, +/^c/i, +/^p/i, +/^s/i], + +abbreviated:[ +/^n/i, +/^po/i, +/^w/i, +/^(ś|s)r/i, +/^c/i, +/^pt/i, +/^so/i], + +any:[ +/^n/i, +/^po/i, +/^w/i, +/^(ś|s)r/i, +/^c/i, +/^pi/i, +/^so/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, +any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i +}, +defaultMatchWidth:"any", +parsePatterns:{ +narrow:{ +am:/^a$/i, +pm:/^p$/i, +midnight:/pó(ł|l)n/i, +noon:/po(ł|l)/i, +morning:/rano/i, +afternoon:/po\s*po(ł|l)/i, +evening:/wiecz/i, +night:/noc/i +}, +any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/pó(ł|l)n/i, +noon:/po(ł|l)/i, +morning:/rano/i, +afternoon:/po\s*po(ł|l)/i, +evening:/wiecz/i, +night:/noc/i +} +}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/pt/_lib/formatDistance.js +var formatDistanceLocale$22={ +lessThanXSeconds:{ +one:"menos de um segundo", +other:"menos de {{count}} segundos" +}, +xSeconds:{ +one:"1 segundo", +other:"{{count}} segundos" +}, +halfAMinute:"meio minuto", +lessThanXMinutes:{ +one:"menos de um minuto", +other:"menos de {{count}} minutos" +}, +xMinutes:{ +one:"1 minuto", +other:"{{count}} minutos" +}, +aboutXHours:{ +one:"aproximadamente 1 hora", +other:"aproximadamente {{count}} horas" +}, +xHours:{ +one:"1 hora", +other:"{{count}} horas" +}, +xDays:{ +one:"1 dia", +other:"{{count}} dias" +}, +aboutXWeeks:{ +one:"aproximadamente 1 semana", +other:"aproximadamente {{count}} semanas" +}, +xWeeks:{ +one:"1 semana", +other:"{{count}} semanas" +}, +aboutXMonths:{ +one:"aproximadamente 1 mês", +other:"aproximadamente {{count}} meses" +}, +xMonths:{ +one:"1 mês", +other:"{{count}} meses" +}, +aboutXYears:{ +one:"aproximadamente 1 ano", +other:"aproximadamente {{count}} anos" +}, +xYears:{ +one:"1 ano", +other:"{{count}} anos" +}, +overXYears:{ +one:"mais de 1 ano", +other:"mais de {{count}} anos" +}, +almostXYears:{ +one:"quase 1 ano", +other:"quase {{count}} anos" +} +}; +var formatDistance$22=function formatDistance$22(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$22[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"daqui a "+result;else +return"há "+result; +return result; +}; +var formatLong$22={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d 'de' MMMM 'de' y", +long:"d 'de' MMMM 'de' y", +medium:"d 'de' MMM 'de' y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'às' {{time}}", +long:"{{date}} 'às' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/pt/_lib/formatRelative.js +var formatRelativeLocale$22={ +lastWeek:function lastWeek(date){ +var weekday=date.getDay(); +return"'"+(weekday===0||weekday===6?"último":"última")+"' eeee 'às' p"; +}, +yesterday:"'ontem às' p", +today:"'hoje às' p", +tomorrow:"'amanhã às' p", +nextWeek:"eeee 'às' p", +other:"P" +}; +var formatRelative$22=function formatRelative$22(token,date,_baseDate,_options){ +var format=formatRelativeLocale$22[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/pt/_lib/localize.js +var eraValues$22={ +narrow:["aC","dC"], +abbreviated:["a.C.","d.C."], +wide:["antes de Cristo","depois de Cristo"] +}; +var quarterValues$22={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1º trimestre", +"2º trimestre", +"3º trimestre", +"4º trimestre"] + +}; +var monthValues$22={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan", +"fev", +"mar", +"abr", +"mai", +"jun", +"jul", +"ago", +"set", +"out", +"nov", +"dez"], + +wide:[ +"janeiro", +"fevereiro", +"março", +"abril", +"maio", +"junho", +"julho", +"agosto", +"setembro", +"outubro", +"novembro", +"dezembro"] + +}; +var dayValues$22={ +narrow:[ +"d", +"s", +"t", +"q", +"q", +"s", +"s"], + +short:[ +"dom", +"seg", +"ter", +"qua", +"qui", +"sex", +"sáb"], + +abbreviated:[ +"dom", +"seg", +"ter", +"qua", +"qui", +"sex", +"sáb"], + +wide:[ +"domingo", +"segunda-feira", +"terça-feira", +"quarta-feira", +"quinta-feira", +"sexta-feira", +"sábado"] + +}; +var dayPeriodValues$22={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"manhã", +afternoon:"tarde", +evening:"noite", +night:"madrugada" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"manhã", +afternoon:"tarde", +evening:"noite", +night:"madrugada" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"manhã", +afternoon:"tarde", +evening:"noite", +night:"madrugada" +} +}; +var formattingDayPeriodValues$21={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"da manhã", +afternoon:"da tarde", +evening:"da noite", +night:"da madrugada" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"da manhã", +afternoon:"da tarde", +evening:"da noite", +night:"da madrugada" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"da manhã", +afternoon:"da tarde", +evening:"da noite", +night:"da madrugada" +} +}; +var ordinalNumber$22=function ordinalNumber$22(dirtyNumber,_options){ +return Number(dirtyNumber)+"º"; +}; +//#endregion +//#region dist/date-fns/locale/pt.js +/** +* @category Locales +* @summary Portuguese locale. +* @language Portuguese +* @iso-639-2 por +* @author Dário Freire [@dfreire](https://github.com/dfreire) +* @author Adrián de la Rosa [@adrm](https://github.com/adrm) +*/ +var _pt={ +code:"pt", +formatDistance:formatDistance$22, +formatLong:formatLong$22, +formatRelative:formatRelative$22, +localize:{ +ordinalNumber:ordinalNumber$22, +era:buildLocalizeFn({ +values:eraValues$22, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$22, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$22, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$22, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$22, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$21, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(º|ª)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ac|dc|a|d)/i, +abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, +wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[/^ac/i,/^dc/i], +wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^[1234](º|ª)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, +wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ab/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^ag/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dstq]/i, +short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, +abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, +wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^s/i, +/^t/i, +/^q/i, +/^q/i, +/^s/i, +/^s/i], + +any:[ +/^d/i, +/^seg/i, +/^t/i, +/^qua/i, +/^qui/i, +/^sex/i, +/^s[áa]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, +any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^meia/i, +noon:/^meio/i, +morning:/manh[ãa]/i, +afternoon:/tarde/i, +evening:/noite/i, +night:/madrugada/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/formatDistance.js +var formatDistanceLocale$21={ +lessThanXSeconds:{ +one:"menos de um segundo", +other:"menos de {{count}} segundos" +}, +xSeconds:{ +one:"1 segundo", +other:"{{count}} segundos" +}, +halfAMinute:"meio minuto", +lessThanXMinutes:{ +one:"menos de um minuto", +other:"menos de {{count}} minutos" +}, +xMinutes:{ +one:"1 minuto", +other:"{{count}} minutos" +}, +aboutXHours:{ +one:"cerca de 1 hora", +other:"cerca de {{count}} horas" +}, +xHours:{ +one:"1 hora", +other:"{{count}} horas" +}, +xDays:{ +one:"1 dia", +other:"{{count}} dias" +}, +aboutXWeeks:{ +one:"cerca de 1 semana", +other:"cerca de {{count}} semanas" +}, +xWeeks:{ +one:"1 semana", +other:"{{count}} semanas" +}, +aboutXMonths:{ +one:"cerca de 1 mês", +other:"cerca de {{count}} meses" +}, +xMonths:{ +one:"1 mês", +other:"{{count}} meses" +}, +aboutXYears:{ +one:"cerca de 1 ano", +other:"cerca de {{count}} anos" +}, +xYears:{ +one:"1 ano", +other:"{{count}} anos" +}, +overXYears:{ +one:"mais de 1 ano", +other:"mais de {{count}} anos" +}, +almostXYears:{ +one:"quase 1 ano", +other:"quase {{count}} anos" +} +}; +var formatDistance$21=function formatDistance$21(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$21[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"em "+result;else +return"há "+result; +return result; +}; +var formatLong$21={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d 'de' MMMM 'de' y", +long:"d 'de' MMMM 'de' y", +medium:"d MMM y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'às' {{time}}", +long:"{{date}} 'às' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/formatRelative.js +var formatRelativeLocale$21={ +lastWeek:function lastWeek(date){ +var weekday=date.getDay(); +return"'"+(weekday===0||weekday===6?"último":"última")+"' eeee 'às' p"; +}, +yesterday:"'ontem às' p", +today:"'hoje às' p", +tomorrow:"'amanhã às' p", +nextWeek:"eeee 'às' p", +other:"P" +}; +var formatRelative$21=function formatRelative$21(token,date,_baseDate,_options){ +var format=formatRelativeLocale$21[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/localize.js +var eraValues$21={ +narrow:["AC","DC"], +abbreviated:["AC","DC"], +wide:["antes de cristo","depois de cristo"] +}; +var quarterValues$21={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"1º trimestre", +"2º trimestre", +"3º trimestre", +"4º trimestre"] + +}; +var monthValues$21={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan", +"fev", +"mar", +"abr", +"mai", +"jun", +"jul", +"ago", +"set", +"out", +"nov", +"dez"], + +wide:[ +"janeiro", +"fevereiro", +"março", +"abril", +"maio", +"junho", +"julho", +"agosto", +"setembro", +"outubro", +"novembro", +"dezembro"] + +}; +var dayValues$21={ +narrow:[ +"D", +"S", +"T", +"Q", +"Q", +"S", +"S"], + +short:[ +"dom", +"seg", +"ter", +"qua", +"qui", +"sex", +"sab"], + +abbreviated:[ +"domingo", +"segunda", +"terça", +"quarta", +"quinta", +"sexta", +"sábado"], + +wide:[ +"domingo", +"segunda-feira", +"terça-feira", +"quarta-feira", +"quinta-feira", +"sexta-feira", +"sábado"] + +}; +var dayPeriodValues$21={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"manhã", +afternoon:"tarde", +evening:"tarde", +night:"noite" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"manhã", +afternoon:"tarde", +evening:"tarde", +night:"noite" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"meia-noite", +noon:"meio-dia", +morning:"manhã", +afternoon:"tarde", +evening:"tarde", +night:"noite" +} +}; +var formattingDayPeriodValues$20={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"md", +morning:"da manhã", +afternoon:"da tarde", +evening:"da tarde", +night:"da noite" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"meia-noite", +noon:"meio-dia", +morning:"da manhã", +afternoon:"da tarde", +evening:"da tarde", +night:"da noite" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"meia-noite", +noon:"meio-dia", +morning:"da manhã", +afternoon:"da tarde", +evening:"da tarde", +night:"da noite" +} +}; +var ordinalNumber$21=function ordinalNumber$21(dirtyNumber,options){ +var number=Number(dirtyNumber); +if((options===null||options===void 0?void 0:options.unit)==="week")return number+"ª"; +return number+"º"; +}; +//#endregion +//#region dist/date-fns/locale/pt-BR.js +/** +* @category Locales +* @summary Portuguese locale (Brazil). +* @language Portuguese +* @iso-639-2 por +* @author Lucas Duailibe [@duailibe](https://github.com/duailibe) +* @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) +*/ +var _ptBR={ +code:"pt-BR", +formatDistance:formatDistance$21, +formatLong:formatLong$21, +formatRelative:formatRelative$21, +localize:{ +ordinalNumber:ordinalNumber$21, +era:buildLocalizeFn({ +values:eraValues$21, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$21, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$21, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$21, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$21, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$20, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)[ºªo]?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ac|dc|a|d)/i, +abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i, +wide:/^(antes de cristo|depois de cristo)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[/^ac/i,/^dc/i], +wide:[/^antes de cristo/i,/^depois de cristo/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^[1234](º)? trimestre/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmajsond]/i, +abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, +wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^fev/i, +/^mar/i, +/^abr/i, +/^mai/i, +/^jun/i, +/^jul/i, +/^ago/i, +/^set/i, +/^out/i, +/^nov/i, +/^dez/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(dom|[23456]ª?|s[aá]b)/i, +short:/^(dom|[23456]ª?|s[aá]b)/i, +abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, +wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +short:[ +/^d/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^s[aá]/i], + +narrow:[ +/^d/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^s[aá]/i], + +any:[ +/^d/i, +/^seg/i, +/^t/i, +/^qua/i, +/^qui/i, +/^sex/i, +/^s[aá]b/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i, +any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mn|^meia[-\s]noite/i, +noon:/^md|^meio[-\s]dia/i, +morning:/manhã/i, +afternoon:/tarde/i, +evening:/tarde/i, +night:/noite/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ro/_lib/formatDistance.js +var formatDistanceLocale$20={ +lessThanXSeconds:{ +one:"mai puțin de o secundă", +other:"mai puțin de {{count}} secunde" +}, +xSeconds:{ +one:"1 secundă", +other:"{{count}} secunde" +}, +halfAMinute:"jumătate de minut", +lessThanXMinutes:{ +one:"mai puțin de un minut", +other:"mai puțin de {{count}} minute" +}, +xMinutes:{ +one:"1 minut", +other:"{{count}} minute" +}, +aboutXHours:{ +one:"circa 1 oră", +other:"circa {{count}} ore" +}, +xHours:{ +one:"1 oră", +other:"{{count}} ore" +}, +xDays:{ +one:"1 zi", +other:"{{count}} zile" +}, +aboutXWeeks:{ +one:"circa o săptămână", +other:"circa {{count}} săptămâni" +}, +xWeeks:{ +one:"1 săptămână", +other:"{{count}} săptămâni" +}, +aboutXMonths:{ +one:"circa 1 lună", +other:"circa {{count}} luni" +}, +xMonths:{ +one:"1 lună", +other:"{{count}} luni" +}, +aboutXYears:{ +one:"circa 1 an", +other:"circa {{count}} ani" +}, +xYears:{ +one:"1 an", +other:"{{count}} ani" +}, +overXYears:{ +one:"peste 1 an", +other:"peste {{count}} ani" +}, +almostXYears:{ +one:"aproape 1 an", +other:"aproape {{count}} ani" +} +}; +var formatDistance$20=function formatDistance$20(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$20[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"în "+result;else +return result+" în urmă"; +return result; +}; +var formatLong$20={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM yyyy", +long:"d MMMM yyyy", +medium:"d MMM yyyy", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'la' {{time}}", +long:"{{date}} 'la' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ro/_lib/formatRelative.js +var formatRelativeLocale$20={ +lastWeek:"eeee 'trecută la' p", +yesterday:"'ieri la' p", +today:"'astăzi la' p", +tomorrow:"'mâine la' p", +nextWeek:"eeee 'viitoare la' p", +other:"P" +}; +var formatRelative$20=function formatRelative$20(token,_date,_baseDate,_options){return formatRelativeLocale$20[token];}; +//#endregion +//#region dist/date-fns/locale/ro/_lib/localize.js +var eraValues$20={ +narrow:["Î","D"], +abbreviated:["Î.d.C.","D.C."], +wide:["Înainte de Cristos","După Cristos"] +}; +var quarterValues$20={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"T1", +"T2", +"T3", +"T4"], + +wide:[ +"primul trimestru", +"al doilea trimestru", +"al treilea trimestru", +"al patrulea trimestru"] + +}; +var monthValues$20={ +narrow:[ +"I", +"F", +"M", +"A", +"M", +"I", +"I", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"ian", +"feb", +"mar", +"apr", +"mai", +"iun", +"iul", +"aug", +"sep", +"oct", +"noi", +"dec"], + +wide:[ +"ianuarie", +"februarie", +"martie", +"aprilie", +"mai", +"iunie", +"iulie", +"august", +"septembrie", +"octombrie", +"noiembrie", +"decembrie"] + +}; +var dayValues$20={ +narrow:[ +"d", +"l", +"m", +"m", +"j", +"v", +"s"], + +short:[ +"du", +"lu", +"ma", +"mi", +"jo", +"vi", +"sâ"], + +abbreviated:[ +"dum", +"lun", +"mar", +"mie", +"joi", +"vin", +"sâm"], + +wide:[ +"duminică", +"luni", +"marți", +"miercuri", +"joi", +"vineri", +"sâmbătă"] + +}; +var dayPeriodValues$20={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"ami", +morning:"dim", +afternoon:"da", +evening:"s", +night:"n" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"miezul nopții", +noon:"amiază", +morning:"dimineață", +afternoon:"după-amiază", +evening:"seară", +night:"noapte" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"miezul nopții", +noon:"amiază", +morning:"dimineață", +afternoon:"după-amiază", +evening:"seară", +night:"noapte" +} +}; +var formattingDayPeriodValues$19={ +narrow:{ +am:"a", +pm:"p", +midnight:"mn", +noon:"amiază", +morning:"dimineață", +afternoon:"după-amiază", +evening:"seară", +night:"noapte" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"miezul nopții", +noon:"amiază", +morning:"dimineață", +afternoon:"după-amiază", +evening:"seară", +night:"noapte" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"miezul nopții", +noon:"amiază", +morning:"dimineață", +afternoon:"după-amiază", +evening:"seară", +night:"noapte" +} +}; +var ordinalNumber$20=function ordinalNumber$20(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ro.js +/** +* @category Locales +* @summary Romanian locale. +* @language Romanian +* @iso-639-2 ron +* @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) +* @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) +* @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) +*/ +var _ro={ +code:"ro", +formatDistance:formatDistance$20, +formatLong:formatLong$20, +formatRelative:formatRelative$20, +localize:{ +ordinalNumber:ordinalNumber$20, +era:buildLocalizeFn({ +values:eraValues$20, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$20, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$20, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$20, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$20, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$19, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(Î|D)/i, +abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, +wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[/^ÎC/i,/^DC/i], +wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i] +}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^T[1234]/i, +wide:/^trimestrul [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[ifmaasond]/i, +abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, +wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^i/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^i/i, +/^i/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ia/i, +/^f/i, +/^mar/i, +/^ap/i, +/^mai/i, +/^iun/i, +/^iul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dlmjvs]/i, +short:/^(d|l|ma|mi|j|v|s)/i, +abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i, +wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^l/i, +/^m/i, +/^m/i, +/^j/i, +/^v/i, +/^s/i], + +any:[ +/^d/i, +/^l/i, +/^ma/i, +/^mi/i, +/^j/i, +/^v/i, +/^s/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, +any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^mn/i, +noon:/amiaza/i, +morning:/dimineaţa/i, +afternoon:/după-amiaza/i, +evening:/seara/i, +night:/noaptea/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ru/_lib/formatDistance.js +function declension$2(scheme,count){ +if(scheme.one!==void 0&&count===1)return scheme.one; +var rem10=count%10; +var rem100=count%100; +if(rem10===1&&rem100!==11)return scheme.singularNominative.replace("{{count}}",String(count));else +if(rem10>=2&&rem10<=4&&(rem100<10||rem100>20))return scheme.singularGenitive.replace("{{count}}",String(count));else +return scheme.pluralGenitive.replace("{{count}}",String(count)); +} +function buildLocalizeTokenFn$1(scheme){ +return function(count,options){ +if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0){if(scheme.future)return declension$2(scheme.future,count);else +return"через "+declension$2(scheme.regular,count);}else +if(scheme.past)return declension$2(scheme.past,count);else +return declension$2(scheme.regular,count)+" назад";}else +return declension$2(scheme.regular,count); +}; +} +var formatDistanceLocale$19={ +lessThanXSeconds:buildLocalizeTokenFn$1({ +regular:{ +one:"меньше секунды", +singularNominative:"меньше {{count}} секунды", +singularGenitive:"меньше {{count}} секунд", +pluralGenitive:"меньше {{count}} секунд" +}, +future:{ +one:"меньше, чем через секунду", +singularNominative:"меньше, чем через {{count}} секунду", +singularGenitive:"меньше, чем через {{count}} секунды", +pluralGenitive:"меньше, чем через {{count}} секунд" +} +}), +xSeconds:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"{{count}} секунда", +singularGenitive:"{{count}} секунды", +pluralGenitive:"{{count}} секунд" +}, +past:{ +singularNominative:"{{count}} секунду назад", +singularGenitive:"{{count}} секунды назад", +pluralGenitive:"{{count}} секунд назад" +}, +future:{ +singularNominative:"через {{count}} секунду", +singularGenitive:"через {{count}} секунды", +pluralGenitive:"через {{count}} секунд" +} +}), +halfAMinute:function halfAMinute(_count,options){ +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"через полминуты";else +return"полминуты назад"; +return"полминуты"; +}, +lessThanXMinutes:buildLocalizeTokenFn$1({ +regular:{ +one:"меньше минуты", +singularNominative:"меньше {{count}} минуты", +singularGenitive:"меньше {{count}} минут", +pluralGenitive:"меньше {{count}} минут" +}, +future:{ +one:"меньше, чем через минуту", +singularNominative:"меньше, чем через {{count}} минуту", +singularGenitive:"меньше, чем через {{count}} минуты", +pluralGenitive:"меньше, чем через {{count}} минут" +} +}), +xMinutes:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"{{count}} минута", +singularGenitive:"{{count}} минуты", +pluralGenitive:"{{count}} минут" +}, +past:{ +singularNominative:"{{count}} минуту назад", +singularGenitive:"{{count}} минуты назад", +pluralGenitive:"{{count}} минут назад" +}, +future:{ +singularNominative:"через {{count}} минуту", +singularGenitive:"через {{count}} минуты", +pluralGenitive:"через {{count}} минут" +} +}), +aboutXHours:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"около {{count}} часа", +singularGenitive:"около {{count}} часов", +pluralGenitive:"около {{count}} часов" +}, +future:{ +singularNominative:"приблизительно через {{count}} час", +singularGenitive:"приблизительно через {{count}} часа", +pluralGenitive:"приблизительно через {{count}} часов" +} +}), +xHours:buildLocalizeTokenFn$1({regular:{ +singularNominative:"{{count}} час", +singularGenitive:"{{count}} часа", +pluralGenitive:"{{count}} часов" +}}), +xDays:buildLocalizeTokenFn$1({regular:{ +singularNominative:"{{count}} день", +singularGenitive:"{{count}} дня", +pluralGenitive:"{{count}} дней" +}}), +aboutXWeeks:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"около {{count}} недели", +singularGenitive:"около {{count}} недель", +pluralGenitive:"около {{count}} недель" +}, +future:{ +singularNominative:"приблизительно через {{count}} неделю", +singularGenitive:"приблизительно через {{count}} недели", +pluralGenitive:"приблизительно через {{count}} недель" +} +}), +xWeeks:buildLocalizeTokenFn$1({regular:{ +singularNominative:"{{count}} неделя", +singularGenitive:"{{count}} недели", +pluralGenitive:"{{count}} недель" +}}), +aboutXMonths:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"около {{count}} месяца", +singularGenitive:"около {{count}} месяцев", +pluralGenitive:"около {{count}} месяцев" +}, +future:{ +singularNominative:"приблизительно через {{count}} месяц", +singularGenitive:"приблизительно через {{count}} месяца", +pluralGenitive:"приблизительно через {{count}} месяцев" +} +}), +xMonths:buildLocalizeTokenFn$1({regular:{ +singularNominative:"{{count}} месяц", +singularGenitive:"{{count}} месяца", +pluralGenitive:"{{count}} месяцев" +}}), +aboutXYears:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"около {{count}} года", +singularGenitive:"около {{count}} лет", +pluralGenitive:"около {{count}} лет" +}, +future:{ +singularNominative:"приблизительно через {{count}} год", +singularGenitive:"приблизительно через {{count}} года", +pluralGenitive:"приблизительно через {{count}} лет" +} +}), +xYears:buildLocalizeTokenFn$1({regular:{ +singularNominative:"{{count}} год", +singularGenitive:"{{count}} года", +pluralGenitive:"{{count}} лет" +}}), +overXYears:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"больше {{count}} года", +singularGenitive:"больше {{count}} лет", +pluralGenitive:"больше {{count}} лет" +}, +future:{ +singularNominative:"больше, чем через {{count}} год", +singularGenitive:"больше, чем через {{count}} года", +pluralGenitive:"больше, чем через {{count}} лет" +} +}), +almostXYears:buildLocalizeTokenFn$1({ +regular:{ +singularNominative:"почти {{count}} год", +singularGenitive:"почти {{count}} года", +pluralGenitive:"почти {{count}} лет" +}, +future:{ +singularNominative:"почти через {{count}} год", +singularGenitive:"почти через {{count}} года", +pluralGenitive:"почти через {{count}} лет" +} +}) +}; +var formatDistance$19=function formatDistance$19(token,count,options){ +return formatDistanceLocale$19[token](count,options); +}; +var formatLong$19={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM y 'г.'", +long:"d MMMM y 'г.'", +medium:"d MMM y 'г.'", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/ru/_lib/formatRelative.js +var accusativeWeekdays$2=[ +"воскресенье", +"понедельник", +"вторник", +"среду", +"четверг", +"пятницу", +"субботу"]; + +function lastWeek$2(day){ +var weekday=accusativeWeekdays$2[day]; +switch(day){ +case 0:return"'в прошлое "+weekday+" в' p"; +case 1: +case 2: +case 4:return"'в прошлый "+weekday+" в' p"; +case 3: +case 5: +case 6:return"'в прошлую "+weekday+" в' p"; +} +} +function thisWeek$2(day){ +var weekday=accusativeWeekdays$2[day]; +if(day===2)return"'во "+weekday+" в' p";else +return"'в "+weekday+" в' p"; +} +function nextWeek$2(day){ +var weekday=accusativeWeekdays$2[day]; +switch(day){ +case 0:return"'в следующее "+weekday+" в' p"; +case 1: +case 2: +case 4:return"'в следующий "+weekday+" в' p"; +case 3: +case 5: +case 6:return"'в следующую "+weekday+" в' p"; +} +} +var formatRelativeLocale$19={ +lastWeek:function lastWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$2(day);else +return lastWeek$2(day); +}, +yesterday:"'вчера в' p", +today:"'сегодня в' p", +tomorrow:"'завтра в' p", +nextWeek:function nextWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$2(day);else +return nextWeek$2(day); +}, +other:"P" +}; +var formatRelative$19=function formatRelative$19(token,date,baseDate,options){ +var format=formatRelativeLocale$19[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/ru/_lib/localize.js +var eraValues$19={ +narrow:["до н.э.","н.э."], +abbreviated:["до н. э.","н. э."], +wide:["до нашей эры","нашей эры"] +}; +var quarterValues$19={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-й кв.", +"2-й кв.", +"3-й кв.", +"4-й кв."], + +wide:[ +"1-й квартал", +"2-й квартал", +"3-й квартал", +"4-й квартал"] + +}; +var monthValues$19={ +narrow:[ +"Я", +"Ф", +"М", +"А", +"М", +"И", +"И", +"А", +"С", +"О", +"Н", +"Д"], + +abbreviated:[ +"янв.", +"фев.", +"март", +"апр.", +"май", +"июнь", +"июль", +"авг.", +"сент.", +"окт.", +"нояб.", +"дек."], + +wide:[ +"январь", +"февраль", +"март", +"апрель", +"май", +"июнь", +"июль", +"август", +"сентябрь", +"октябрь", +"ноябрь", +"декабрь"] + +}; +var formattingMonthValues$5={ +narrow:[ +"Я", +"Ф", +"М", +"А", +"М", +"И", +"И", +"А", +"С", +"О", +"Н", +"Д"], + +abbreviated:[ +"янв.", +"фев.", +"мар.", +"апр.", +"мая", +"июн.", +"июл.", +"авг.", +"сент.", +"окт.", +"нояб.", +"дек."], + +wide:[ +"января", +"февраля", +"марта", +"апреля", +"мая", +"июня", +"июля", +"августа", +"сентября", +"октября", +"ноября", +"декабря"] + +}; +var dayValues$19={ +narrow:[ +"В", +"П", +"В", +"С", +"Ч", +"П", +"С"], + +short:[ +"вс", +"пн", +"вт", +"ср", +"чт", +"пт", +"сб"], + +abbreviated:[ +"вск", +"пнд", +"втр", +"срд", +"чтв", +"птн", +"суб"], + +wide:[ +"воскресенье", +"понедельник", +"вторник", +"среда", +"четверг", +"пятница", +"суббота"] + +}; +var dayPeriodValues$19={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"полн.", +noon:"полд.", +morning:"утро", +afternoon:"день", +evening:"веч.", +night:"ночь" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"полн.", +noon:"полд.", +morning:"утро", +afternoon:"день", +evening:"веч.", +night:"ночь" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"полночь", +noon:"полдень", +morning:"утро", +afternoon:"день", +evening:"вечер", +night:"ночь" +} +}; +var formattingDayPeriodValues$18={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"полн.", +noon:"полд.", +morning:"утра", +afternoon:"дня", +evening:"веч.", +night:"ночи" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"полн.", +noon:"полд.", +morning:"утра", +afternoon:"дня", +evening:"веч.", +night:"ночи" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"полночь", +noon:"полдень", +morning:"утра", +afternoon:"дня", +evening:"вечера", +night:"ночи" +} +}; +var ordinalNumber$19=function ordinalNumber$19(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +var suffix; +if(unit==="date")suffix="-е";else +if(unit==="week"||unit==="minute"||unit==="second")suffix="-я";else +suffix="-й"; +return number+suffix; +}; +//#endregion +//#region dist/date-fns/locale/ru.js +/** +* @category Locales +* @summary Russian locale. +* @language Russian +* @iso-639-2 rus +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var _ru={ +code:"ru", +formatDistance:formatDistance$19, +formatLong:formatLong$19, +formatRelative:formatRelative$19, +localize:{ +ordinalNumber:ordinalNumber$19, +era:buildLocalizeFn({ +values:eraValues$19, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$19, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$19, +defaultWidth:"wide", +formattingValues:formattingMonthValues$5, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$19, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$19, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$18, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((до )?н\.?\s?э\.?)/i, +abbreviated:/^((до )?н\.?\s?э\.?)/i, +wide:/^(до нашей эры|нашей эры|наша эра)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^д/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i, +wide:/^[1234](-?[ыои]?й?)? квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[яфмаисонд]/i, +abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, +wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^я/i, +/^ф/i, +/^м/i, +/^а/i, +/^м/i, +/^и/i, +/^и/i, +/^а/i, +/^с/i, +/^о/i, +/^н/i, +/^я/i], + +any:[ +/^я/i, +/^ф/i, +/^мар/i, +/^ап/i, +/^ма[йя]/i, +/^июн/i, +/^июл/i, +/^ав/i, +/^с/i, +/^о/i, +/^н/i, +/^д/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[впсч]/i, +short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, +abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, +wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^в/i, +/^п/i, +/^в/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^в[ос]/i, +/^п[он]/i, +/^в/i, +/^ср/i, +/^ч/i, +/^п[ят]/i, +/^с[уб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, +abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, +wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^дп/i, +pm:/^пп/i, +midnight:/^полн/i, +noon:/^полд/i, +morning:/^у/i, +afternoon:/^д[ен]/i, +evening:/^в/i, +night:/^н/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/se/_lib/formatDistance.js +var formatDistanceLocale$18={ +lessThanXSeconds:{ +one:"unnit go ovtta sekundda", +other:"unnit go {{count}} sekundda" +}, +xSeconds:{ +one:"sekundda", +other:"{{count}} sekundda" +}, +halfAMinute:"bealle minuhta", +lessThanXMinutes:{ +one:"unnit go bealle minuhta", +other:"unnit go {{count}} minuhta" +}, +xMinutes:{ +one:"minuhta", +other:"{{count}} minuhta" +}, +aboutXHours:{ +one:"sullii ovtta diimmu", +other:"sullii {{count}} diimmu" +}, +xHours:{ +one:"diimmu", +other:"{{count}} diimmu" +}, +xDays:{ +one:"beaivvi", +other:"{{count}} beaivvi" +}, +aboutXWeeks:{ +one:"sullii ovtta vahku", +other:"sullii {{count}} vahku" +}, +xWeeks:{ +one:"vahku", +other:"{{count}} vahku" +}, +aboutXMonths:{ +one:"sullii ovtta mánu", +other:"sullii {{count}} mánu" +}, +xMonths:{ +one:"mánu", +other:"{{count}} mánu" +}, +aboutXYears:{ +one:"sullii ovtta jagi", +other:"sullii {{count}} jagi" +}, +xYears:{ +one:"jagi", +other:"{{count}} jagi" +}, +overXYears:{ +one:"guhkit go jagi", +other:"guhkit go {{count}} jagi" +}, +almostXYears:{ +one:"measta jagi", +other:"measta {{count}} jagi" +} +}; +var formatDistance$18=function formatDistance$18(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$18[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"geahčen "+result;else +return result+" áigi"; +return result; +}; +var formatLong$18={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE MMMM d. 'b.' y", +long:"MMMM d. 'b.' y", +medium:"MMM d. 'b.' y", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"'dii.' HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'dii.' {{time}}", +long:"{{date}} 'dii.' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/se/_lib/formatRelative.js +var formatRelativeLocale$18={ +lastWeek:"'ovddit' eeee 'dii.' p", +yesterday:"'ikte dii.' p", +today:"'odne dii.' p", +tomorrow:"'ihtin dii.' p", +nextWeek:"EEEE 'dii.' p", +other:"P" +}; +var formatRelative$18=function formatRelative$18(token,_date,_baseDate,_options){return formatRelativeLocale$18[token];}; +//#endregion +//#region dist/date-fns/locale/se/_lib/localize.js +var eraValues$18={ +narrow:["o.Kr.","m.Kr."], +abbreviated:["o.Kr.","m.Kr."], +wide:["ovdal Kristusa","maŋŋel Kristusa"] +}; +var quarterValues$18={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. kvartála", +"2. kvartála", +"3. kvartála", +"4. kvartála"] + +}; +var monthValues$18={ +narrow:[ +"O", +"G", +"N", +"C", +"M", +"G", +"S", +"B", +"Č", +"G", +"S", +"J"], + +abbreviated:[ +"ođđa", +"guov", +"njuk", +"cuo", +"mies", +"geas", +"suoi", +"borg", +"čakč", +"golg", +"skáb", +"juov"], + +wide:[ +"ođđajagemánnu", +"guovvamánnu", +"njukčamánnu", +"cuoŋománnu", +"miessemánnu", +"geassemánnu", +"suoidnemánnu", +"borgemánnu", +"čakčamánnu", +"golggotmánnu", +"skábmamánnu", +"juovlamánnu"] + +}; +var dayValues$18={ +narrow:[ +"S", +"V", +"M", +"G", +"D", +"B", +"L"], + +short:[ +"sotn", +"vuos", +"maŋ", +"gask", +"duor", +"bear", +"láv"], + +abbreviated:[ +"sotn", +"vuos", +"maŋ", +"gask", +"duor", +"bear", +"láv"], + +wide:[ +"sotnabeaivi", +"vuossárga", +"maŋŋebárga", +"gaskavahkku", +"duorastat", +"bearjadat", +"lávvardat"] + +}; +var dayPeriodValues$18={ +narrow:{ +am:"a", +pm:"p", +midnight:"gaskaidja", +noon:"gaskabeaivi", +morning:"iđđes", +afternoon:"maŋŋel gaska.", +evening:"eahkes", +night:"ihkku" +}, +abbreviated:{ +am:"a.m.", +pm:"p.m.", +midnight:"gaskaidja", +noon:"gaskabeaivvi", +morning:"iđđes", +afternoon:"maŋŋel gaskabea.", +evening:"eahkes", +night:"ihkku" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"gaskaidja", +noon:"gaskabeavvi", +morning:"iđđes", +afternoon:"maŋŋel gaskabeaivvi", +evening:"eahkes", +night:"ihkku" +} +}; +var ordinalNumber$18=function ordinalNumber$18(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/se.js +/** +* @category Locales +* @summary Northern Sámi locale. +* @language Northern Sámi +* @iso-639-2 sme +* @author Audun Rundberg [@audunru](https://github.com/audunru) +*/ +var _se={ +code:"se", +formatDistance:formatDistance$18, +formatLong:formatLong$18, +formatRelative:formatRelative$18, +localize:{ +ordinalNumber:ordinalNumber$18, +era:buildLocalizeFn({ +values:eraValues$18, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$18, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$18, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$18, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$18, +defaultWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, +abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, +wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^o/i,/^m/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](\.)? kvartála/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[ogncmsbčj]/i, +abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, +wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^o/i, +/^g/i, +/^n/i, +/^c/i, +/^m/i, +/^g/i, +/^s/i, +/^b/i, +/^č/i, +/^g/i, +/^s/i, +/^j/i], + +any:[ +/^o/i, +/^gu/i, +/^n/i, +/^c/i, +/^m/i, +/^ge/i, +/^su/i, +/^b/i, +/^č/i, +/^go/i, +/^sk/i, +/^j/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[svmgdbl]/i, +short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, +abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, +wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^s/i, +/^v/i, +/^m/i, +/^g/i, +/^d/i, +/^b/i, +/^l/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, +any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a(\.?\s?m\.?)?$/i, +pm:/^p(\.?\s?m\.?)?$/i, +midnight:/^gaskai/i, +noon:/^gaskab/i, +morning:/iđđes/i, +afternoon:/maŋŋel gaskabeaivvi/i, +evening:/eahkes/i, +night:/ihkku/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/sk/_lib/formatDistance.js +function declensionGroup(scheme,count){ +if(count===1&&scheme.one)return scheme.one; +if(count>=2&&count<=4&&scheme.twoFour)return scheme.twoFour; +return scheme.other; +} +function declension$1(scheme,count,time){ +return declensionGroup(scheme,count)[time].replace("{{count}}",String(count)); +} +function extractPreposition(token){ +return[ +"lessThan", +"about", +"over", +"almost"]. +filter(function(preposition){ +return!!token.match(new RegExp("^"+preposition)); +})[0]; +} +function prefixPreposition(preposition){ +var translation=""; +if(preposition==="almost")translation="takmer"; +if(preposition==="about")translation="približne"; +return translation.length>0?translation+" ":""; +} +function suffixPreposition(preposition){ +var translation=""; +if(preposition==="lessThan")translation="menej než"; +if(preposition==="over")translation="viac než"; +return translation.length>0?translation+" ":""; +} +function lowercaseFirstLetter(string){ +return string.charAt(0).toLowerCase()+string.slice(1); +} +var formatDistanceLocale$17={ +xSeconds:{ +one:{ +present:"sekunda", +past:"sekundou", +future:"sekundu" +}, +twoFour:{ +present:"{{count}} sekundy", +past:"{{count}} sekundami", +future:"{{count}} sekundy" +}, +other:{ +present:"{{count}} sekúnd", +past:"{{count}} sekundami", +future:"{{count}} sekúnd" +} +}, +halfAMinute:{other:{ +present:"pol minúty", +past:"pol minútou", +future:"pol minúty" +}}, +xMinutes:{ +one:{ +present:"minúta", +past:"minútou", +future:"minútu" +}, +twoFour:{ +present:"{{count}} minúty", +past:"{{count}} minútami", +future:"{{count}} minúty" +}, +other:{ +present:"{{count}} minút", +past:"{{count}} minútami", +future:"{{count}} minút" +} +}, +xHours:{ +one:{ +present:"hodina", +past:"hodinou", +future:"hodinu" +}, +twoFour:{ +present:"{{count}} hodiny", +past:"{{count}} hodinami", +future:"{{count}} hodiny" +}, +other:{ +present:"{{count}} hodín", +past:"{{count}} hodinami", +future:"{{count}} hodín" +} +}, +xDays:{ +one:{ +present:"deň", +past:"dňom", +future:"deň" +}, +twoFour:{ +present:"{{count}} dni", +past:"{{count}} dňami", +future:"{{count}} dni" +}, +other:{ +present:"{{count}} dní", +past:"{{count}} dňami", +future:"{{count}} dní" +} +}, +xWeeks:{ +one:{ +present:"týždeň", +past:"týždňom", +future:"týždeň" +}, +twoFour:{ +present:"{{count}} týždne", +past:"{{count}} týždňami", +future:"{{count}} týždne" +}, +other:{ +present:"{{count}} týždňov", +past:"{{count}} týždňami", +future:"{{count}} týždňov" +} +}, +xMonths:{ +one:{ +present:"mesiac", +past:"mesiacom", +future:"mesiac" +}, +twoFour:{ +present:"{{count}} mesiace", +past:"{{count}} mesiacmi", +future:"{{count}} mesiace" +}, +other:{ +present:"{{count}} mesiacov", +past:"{{count}} mesiacmi", +future:"{{count}} mesiacov" +} +}, +xYears:{ +one:{ +present:"rok", +past:"rokom", +future:"rok" +}, +twoFour:{ +present:"{{count}} roky", +past:"{{count}} rokmi", +future:"{{count}} roky" +}, +other:{ +present:"{{count}} rokov", +past:"{{count}} rokmi", +future:"{{count}} rokov" +} +} +}; +var formatDistance$17=function formatDistance$17(token,count,options){ +var preposition=extractPreposition(token)||""; +var scheme=formatDistanceLocale$17[lowercaseFirstLetter(token.substring(preposition.length))]; +if(!(options!==null&&options!==void 0&&options.addSuffix))return prefixPreposition(preposition)+suffixPreposition(preposition)+declension$1(scheme,count,"present"); +if(options.comparison&&options.comparison>0)return prefixPreposition(preposition)+"o "+suffixPreposition(preposition)+declension$1(scheme,count,"future");else +return prefixPreposition(preposition)+"pred "+suffixPreposition(preposition)+declension$1(scheme,count,"past"); +}; +var formatLong$17={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d. MMMM y", +long:"d. MMMM y", +medium:"d. M. y", +short:"d. M. y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}}, {{time}}", +long:"{{date}}, {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sk/_lib/formatRelative.js +var accusativeWeekdays$1=[ +"nedeľu", +"pondelok", +"utorok", +"stredu", +"štvrtok", +"piatok", +"sobotu"]; + +function lastWeek$1(day){ +var weekday=accusativeWeekdays$1[day]; +switch(day){ +case 0: +case 3: +case 6:return"'minulú "+weekday+" o' p"; +default:return"'minulý' eeee 'o' p"; +} +} +function thisWeek$1(day){ +var weekday=accusativeWeekdays$1[day]; +if(day===4)return"'vo' eeee 'o' p";else +return"'v "+weekday+" o' p"; +} +function nextWeek$1(day){ +var weekday=accusativeWeekdays$1[day]; +switch(day){ +case 0: +case 4: +case 6:return"'budúcu "+weekday+" o' p"; +default:return"'budúci' eeee 'o' p"; +} +} +var formatRelativeLocale$17={ +lastWeek:function lastWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$1(day);else +return lastWeek$1(day); +}, +yesterday:"'včera o' p", +today:"'dnes o' p", +tomorrow:"'zajtra o' p", +nextWeek:function nextWeek(date,baseDate,options){ +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek$1(day);else +return nextWeek$1(day); +}, +other:"P" +}; +var formatRelative$17=function formatRelative$17(token,date,baseDate,options){ +var format=formatRelativeLocale$17[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/sk/_lib/localize.js +var eraValues$17={ +narrow:["pred Kr.","po Kr."], +abbreviated:["pred Kr.","po Kr."], +wide:["pred Kristom","po Kristovi"] +}; +var quarterValues$17={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1. štvrťrok", +"2. štvrťrok", +"3. štvrťrok", +"4. štvrťrok"] + +}; +var monthValues$17={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"máj", +"jún", +"júl", +"aug", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"január", +"február", +"marec", +"apríl", +"máj", +"jún", +"júl", +"august", +"september", +"október", +"november", +"december"] + +}; +var formattingMonthValues$4={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"máj", +"jún", +"júl", +"aug", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januára", +"februára", +"marca", +"apríla", +"mája", +"júna", +"júla", +"augusta", +"septembra", +"októbra", +"novembra", +"decembra"] + +}; +var dayValues$17={ +narrow:[ +"n", +"p", +"u", +"s", +"š", +"p", +"s"], + +short:[ +"ne", +"po", +"ut", +"st", +"št", +"pi", +"so"], + +abbreviated:[ +"ne", +"po", +"ut", +"st", +"št", +"pi", +"so"], + +wide:[ +"nedeľa", +"pondelok", +"utorok", +"streda", +"štvrtok", +"piatok", +"sobota"] + +}; +var dayPeriodValues$17={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"poln.", +noon:"pol.", +morning:"ráno", +afternoon:"pop.", +evening:"več.", +night:"noc" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"poln.", +noon:"pol.", +morning:"ráno", +afternoon:"popol.", +evening:"večer", +night:"noc" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"polnoc", +noon:"poludnie", +morning:"ráno", +afternoon:"popoludnie", +evening:"večer", +night:"noc" +} +}; +var formattingDayPeriodValues$17={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"o poln.", +noon:"nap.", +morning:"ráno", +afternoon:"pop.", +evening:"več.", +night:"v n." +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"o poln.", +noon:"napol.", +morning:"ráno", +afternoon:"popol.", +evening:"večer", +night:"v noci" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"o polnoci", +noon:"napoludnie", +morning:"ráno", +afternoon:"popoludní", +evening:"večer", +night:"v noci" +} +}; +var ordinalNumber$17=function ordinalNumber$17(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/sk.js +/** +* @category Locales +* @summary Slovak locale. +* @language Slovak +* @iso-639-2 slk +* @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) +*/ +var _sk={ +code:"sk", +formatDistance:formatDistance$17, +formatLong:formatLong$17, +formatRelative:formatRelative$17, +localize:{ +ordinalNumber:ordinalNumber$17, +era:buildLocalizeFn({ +values:eraValues$17, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$17, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$17, +defaultWidth:"wide", +formattingValues:formattingMonthValues$4, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$17, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$17, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$17, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\.?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, +abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, +wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^pr/i,/^(po|n)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234]\. [šs]tvr[ťt]rok/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, +wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^m[áa]j/i, +/^j[úu]n/i, +/^j[úu]l/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npusšp]/i, +short:/^(ne|po|ut|st|št|pi|so)/i, +abbreviated:/^(ne|po|ut|st|št|pi|so)/i, +wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^n/i, +/^p/i, +/^u/i, +/^s/i, +/^š/i, +/^p/i, +/^s/i], + +any:[ +/^n/i, +/^po/i, +/^u/i, +/^st/i, +/^(št|stv)/i, +/^pi/i, +/^so/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, +abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, +any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^am/i, +pm:/^pm/i, +midnight:/poln/i, +noon:/^(nap|(na)?pol(\.|u))/i, +morning:/^r[áa]no/i, +afternoon:/^pop/i, +evening:/^ve[čc]/i, +night:/^(noc|v n\.)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/sl/_lib/formatDistance.js +function isPluralType$1(val){ +return val.one!==void 0; +} +var formatDistanceLocale$16={ +lessThanXSeconds:{ +present:{ +one:"manj kot {{count}} sekunda", +two:"manj kot {{count}} sekundi", +few:"manj kot {{count}} sekunde", +other:"manj kot {{count}} sekund" +}, +past:{ +one:"manj kot {{count}} sekundo", +two:"manj kot {{count}} sekundama", +few:"manj kot {{count}} sekundami", +other:"manj kot {{count}} sekundami" +}, +future:{ +one:"manj kot {{count}} sekundo", +two:"manj kot {{count}} sekundi", +few:"manj kot {{count}} sekunde", +other:"manj kot {{count}} sekund" +} +}, +xSeconds:{ +present:{ +one:"{{count}} sekunda", +two:"{{count}} sekundi", +few:"{{count}} sekunde", +other:"{{count}} sekund" +}, +past:{ +one:"{{count}} sekundo", +two:"{{count}} sekundama", +few:"{{count}} sekundami", +other:"{{count}} sekundami" +}, +future:{ +one:"{{count}} sekundo", +two:"{{count}} sekundi", +few:"{{count}} sekunde", +other:"{{count}} sekund" +} +}, +halfAMinute:"pol minute", +lessThanXMinutes:{ +present:{ +one:"manj kot {{count}} minuta", +two:"manj kot {{count}} minuti", +few:"manj kot {{count}} minute", +other:"manj kot {{count}} minut" +}, +past:{ +one:"manj kot {{count}} minuto", +two:"manj kot {{count}} minutama", +few:"manj kot {{count}} minutami", +other:"manj kot {{count}} minutami" +}, +future:{ +one:"manj kot {{count}} minuto", +two:"manj kot {{count}} minuti", +few:"manj kot {{count}} minute", +other:"manj kot {{count}} minut" +} +}, +xMinutes:{ +present:{ +one:"{{count}} minuta", +two:"{{count}} minuti", +few:"{{count}} minute", +other:"{{count}} minut" +}, +past:{ +one:"{{count}} minuto", +two:"{{count}} minutama", +few:"{{count}} minutami", +other:"{{count}} minutami" +}, +future:{ +one:"{{count}} minuto", +two:"{{count}} minuti", +few:"{{count}} minute", +other:"{{count}} minut" +} +}, +aboutXHours:{ +present:{ +one:"približno {{count}} ura", +two:"približno {{count}} uri", +few:"približno {{count}} ure", +other:"približno {{count}} ur" +}, +past:{ +one:"približno {{count}} uro", +two:"približno {{count}} urama", +few:"približno {{count}} urami", +other:"približno {{count}} urami" +}, +future:{ +one:"približno {{count}} uro", +two:"približno {{count}} uri", +few:"približno {{count}} ure", +other:"približno {{count}} ur" +} +}, +xHours:{ +present:{ +one:"{{count}} ura", +two:"{{count}} uri", +few:"{{count}} ure", +other:"{{count}} ur" +}, +past:{ +one:"{{count}} uro", +two:"{{count}} urama", +few:"{{count}} urami", +other:"{{count}} urami" +}, +future:{ +one:"{{count}} uro", +two:"{{count}} uri", +few:"{{count}} ure", +other:"{{count}} ur" +} +}, +xDays:{ +present:{ +one:"{{count}} dan", +two:"{{count}} dni", +few:"{{count}} dni", +other:"{{count}} dni" +}, +past:{ +one:"{{count}} dnem", +two:"{{count}} dnevoma", +few:"{{count}} dnevi", +other:"{{count}} dnevi" +}, +future:{ +one:"{{count}} dan", +two:"{{count}} dni", +few:"{{count}} dni", +other:"{{count}} dni" +} +}, +aboutXWeeks:{ +one:"približno {{count}} teden", +two:"približno {{count}} tedna", +few:"približno {{count}} tedne", +other:"približno {{count}} tednov" +}, +xWeeks:{ +one:"{{count}} teden", +two:"{{count}} tedna", +few:"{{count}} tedne", +other:"{{count}} tednov" +}, +aboutXMonths:{ +present:{ +one:"približno {{count}} mesec", +two:"približno {{count}} meseca", +few:"približno {{count}} mesece", +other:"približno {{count}} mesecev" +}, +past:{ +one:"približno {{count}} mesecem", +two:"približno {{count}} mesecema", +few:"približno {{count}} meseci", +other:"približno {{count}} meseci" +}, +future:{ +one:"približno {{count}} mesec", +two:"približno {{count}} meseca", +few:"približno {{count}} mesece", +other:"približno {{count}} mesecev" +} +}, +xMonths:{ +present:{ +one:"{{count}} mesec", +two:"{{count}} meseca", +few:"{{count}} meseci", +other:"{{count}} mesecev" +}, +past:{ +one:"{{count}} mesecem", +two:"{{count}} mesecema", +few:"{{count}} meseci", +other:"{{count}} meseci" +}, +future:{ +one:"{{count}} mesec", +two:"{{count}} meseca", +few:"{{count}} mesece", +other:"{{count}} mesecev" +} +}, +aboutXYears:{ +present:{ +one:"približno {{count}} leto", +two:"približno {{count}} leti", +few:"približno {{count}} leta", +other:"približno {{count}} let" +}, +past:{ +one:"približno {{count}} letom", +two:"približno {{count}} letoma", +few:"približno {{count}} leti", +other:"približno {{count}} leti" +}, +future:{ +one:"približno {{count}} leto", +two:"približno {{count}} leti", +few:"približno {{count}} leta", +other:"približno {{count}} let" +} +}, +xYears:{ +present:{ +one:"{{count}} leto", +two:"{{count}} leti", +few:"{{count}} leta", +other:"{{count}} let" +}, +past:{ +one:"{{count}} letom", +two:"{{count}} letoma", +few:"{{count}} leti", +other:"{{count}} leti" +}, +future:{ +one:"{{count}} leto", +two:"{{count}} leti", +few:"{{count}} leta", +other:"{{count}} let" +} +}, +overXYears:{ +present:{ +one:"več kot {{count}} leto", +two:"več kot {{count}} leti", +few:"več kot {{count}} leta", +other:"več kot {{count}} let" +}, +past:{ +one:"več kot {{count}} letom", +two:"več kot {{count}} letoma", +few:"več kot {{count}} leti", +other:"več kot {{count}} leti" +}, +future:{ +one:"več kot {{count}} leto", +two:"več kot {{count}} leti", +few:"več kot {{count}} leta", +other:"več kot {{count}} let" +} +}, +almostXYears:{ +present:{ +one:"skoraj {{count}} leto", +two:"skoraj {{count}} leti", +few:"skoraj {{count}} leta", +other:"skoraj {{count}} let" +}, +past:{ +one:"skoraj {{count}} letom", +two:"skoraj {{count}} letoma", +few:"skoraj {{count}} leti", +other:"skoraj {{count}} leti" +}, +future:{ +one:"skoraj {{count}} leto", +two:"skoraj {{count}} leti", +few:"skoraj {{count}} leta", +other:"skoraj {{count}} let" +} +} +}; +function getFormFromCount(count){ +switch(count%100){ +case 1:return"one"; +case 2:return"two"; +case 3: +case 4:return"few"; +default:return"other"; +} +} +var formatDistance$16=function formatDistance$16(token,count,options){ +var result=""; +var tense="present"; +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0){ +tense="future"; +result="čez "; +}else{ +tense="past"; +result="pred "; +} +var tokenValue=formatDistanceLocale$16[token]; +if(typeof tokenValue==="string")result+=tokenValue;else +{ +var form=getFormFromCount(count); +if(isPluralType$1(tokenValue))result+=tokenValue[form].replace("{{count}}",String(count));else +result+=tokenValue[tense][form].replace("{{count}}",String(count)); +} +return result; +}; +var formatLong$16={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, dd. MMMM y", +long:"dd. MMMM y", +medium:"d. MMM y", +short:"d. MM. yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sl/_lib/formatRelative.js +var formatRelativeLocale$16={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 0:return"'prejšnjo nedeljo ob' p"; +case 3:return"'prejšnjo sredo ob' p"; +case 6:return"'prejšnjo soboto ob' p"; +default:return"'prejšnji' EEEE 'ob' p"; +} +}, +yesterday:"'včeraj ob' p", +today:"'danes ob' p", +tomorrow:"'jutri ob' p", +nextWeek:function nextWeek(date){ +switch(date.getDay()){ +case 0:return"'naslednjo nedeljo ob' p"; +case 3:return"'naslednjo sredo ob' p"; +case 6:return"'naslednjo soboto ob' p"; +default:return"'naslednji' EEEE 'ob' p"; +} +}, +other:"P" +}; +var formatRelative$16=function formatRelative$16(token,date,_baseDate,_options){ +var format=formatRelativeLocale$16[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/sl/_lib/localize.js +var eraValues$16={ +narrow:["pr. n. št.","po n. št."], +abbreviated:["pr. n. št.","po n. št."], +wide:["pred našim štetjem","po našem štetju"] +}; +var quarterValues$16={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1. čet.", +"2. čet.", +"3. čet.", +"4. čet."], + +wide:[ +"1. četrtletje", +"2. četrtletje", +"3. četrtletje", +"4. četrtletje"] + +}; +var monthValues$16={ +narrow:[ +"j", +"f", +"m", +"a", +"m", +"j", +"j", +"a", +"s", +"o", +"n", +"d"], + +abbreviated:[ +"jan.", +"feb.", +"mar.", +"apr.", +"maj", +"jun.", +"jul.", +"avg.", +"sep.", +"okt.", +"nov.", +"dec."], + +wide:[ +"januar", +"februar", +"marec", +"april", +"maj", +"junij", +"julij", +"avgust", +"september", +"oktober", +"november", +"december"] + +}; +var dayValues$16={ +narrow:[ +"n", +"p", +"t", +"s", +"č", +"p", +"s"], + +short:[ +"ned.", +"pon.", +"tor.", +"sre.", +"čet.", +"pet.", +"sob."], + +abbreviated:[ +"ned.", +"pon.", +"tor.", +"sre.", +"čet.", +"pet.", +"sob."], + +wide:[ +"nedelja", +"ponedeljek", +"torek", +"sreda", +"četrtek", +"petek", +"sobota"] + +}; +var dayPeriodValues$16={ +narrow:{ +am:"d", +pm:"p", +midnight:"24.00", +noon:"12.00", +morning:"j", +afternoon:"p", +evening:"v", +night:"n" +}, +abbreviated:{ +am:"dop.", +pm:"pop.", +midnight:"poln.", +noon:"pold.", +morning:"jut.", +afternoon:"pop.", +evening:"več.", +night:"noč" +}, +wide:{ +am:"dop.", +pm:"pop.", +midnight:"polnoč", +noon:"poldne", +morning:"jutro", +afternoon:"popoldne", +evening:"večer", +night:"noč" +} +}; +var formattingDayPeriodValues$16={ +narrow:{ +am:"d", +pm:"p", +midnight:"24.00", +noon:"12.00", +morning:"zj", +afternoon:"p", +evening:"zv", +night:"po" +}, +abbreviated:{ +am:"dop.", +pm:"pop.", +midnight:"opoln.", +noon:"opold.", +morning:"zjut.", +afternoon:"pop.", +evening:"zveč.", +night:"ponoči" +}, +wide:{ +am:"dop.", +pm:"pop.", +midnight:"opolnoči", +noon:"opoldne", +morning:"zjutraj", +afternoon:"popoldan", +evening:"zvečer", +night:"ponoči" +} +}; +var ordinalNumber$16=function ordinalNumber$16(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/sl.js +/** +* @category Locales +* @summary Slovenian locale. +* @language Slovenian +* @iso-639-2 slv +* @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) +* @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) +*/ +var _sl={ +code:"sl", +formatDistance:formatDistance$16, +formatLong:formatLong$16, +formatRelative:formatRelative$16, +localize:{ +ordinalNumber:ordinalNumber$16, +era:buildLocalizeFn({ +values:eraValues$16, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$16, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$16, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$16, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$16, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$16, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i, +wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\.\s?[čc]et\.?/i, +wide:/^[1234]\. [čc]etrtletje/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, +wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +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], + +abbreviated:[ +/^ja/i, +/^fe/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^av/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +wide:[ +/^ja/i, +/^fe/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^av/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"wide" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[nptsčc]/i, +short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, +abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, +wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^n/i, +/^p/i, +/^t/i, +/^s/i, +/^[cč]/i, +/^p/i, +/^s/i], + +any:[ +/^n/i, +/^po/i, +/^t/i, +/^sr/i, +/^[cč]/i, +/^pe/i, +/^so/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, +any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i +}, +defaultMatchWidth:"any", +parsePatterns:{ +narrow:{ +am:/^d/i, +pm:/^p/i, +midnight:/^24/i, +noon:/^12/i, +morning:/^(z?j)/i, +afternoon:/^p/i, +evening:/^(z?v)/i, +night:/^(n|po)/i +}, +any:{ +am:/^dop\./i, +pm:/^pop\./i, +midnight:/^o?poln/i, +noon:/^o?pold/i, +morning:/j/i, +afternoon:/^pop\./i, +evening:/^z?ve/i, +night:/(po)?no/i +} +}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/sq/_lib/formatDistance.js +var formatDistanceLocale$15={ +lessThanXSeconds:{ +one:"më pak se një sekondë", +other:"më pak se {{count}} sekonda" +}, +xSeconds:{ +one:"1 sekondë", +other:"{{count}} sekonda" +}, +halfAMinute:"gjysëm minuti", +lessThanXMinutes:{ +one:"më pak se një minute", +other:"më pak se {{count}} minuta" +}, +xMinutes:{ +one:"1 minutë", +other:"{{count}} minuta" +}, +aboutXHours:{ +one:"rreth 1 orë", +other:"rreth {{count}} orë" +}, +xHours:{ +one:"1 orë", +other:"{{count}} orë" +}, +xDays:{ +one:"1 ditë", +other:"{{count}} ditë" +}, +aboutXWeeks:{ +one:"rreth 1 javë", +other:"rreth {{count}} javë" +}, +xWeeks:{ +one:"1 javë", +other:"{{count}} javë" +}, +aboutXMonths:{ +one:"rreth 1 muaj", +other:"rreth {{count}} muaj" +}, +xMonths:{ +one:"1 muaj", +other:"{{count}} muaj" +}, +aboutXYears:{ +one:"rreth 1 vit", +other:"rreth {{count}} vite" +}, +xYears:{ +one:"1 vit", +other:"{{count}} vite" +}, +overXYears:{ +one:"mbi 1 vit", +other:"mbi {{count}} vite" +}, +almostXYears:{ +one:"pothuajse 1 vit", +other:"pothuajse {{count}} vite" +} +}; +var formatDistance$15=function formatDistance$15(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$15[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"në "+result;else +return result+" më parë"; +return result; +}; +var formatLong$15={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'në' {{time}}", +long:"{{date}} 'në' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sq/_lib/formatRelative.js +var formatRelativeLocale$15={ +lastWeek:"'të' eeee 'e shkuar në' p", +yesterday:"'dje në' p", +today:"'sot në' p", +tomorrow:"'nesër në' p", +nextWeek:"eeee 'at' p", +other:"P" +}; +var formatRelative$15=function formatRelative$15(token,_date,_baseDate,_options){return formatRelativeLocale$15[token];}; +//#endregion +//#region dist/date-fns/locale/sq/_lib/localize.js +var eraValues$15={ +narrow:["P","M"], +abbreviated:["PK","MK"], +wide:["Para Krishtit","Mbas Krishtit"] +}; +var quarterValues$15={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"4-mujori I", +"4-mujori II", +"4-mujori III", +"4-mujori IV"] + +}; +var monthValues$15={ +narrow:[ +"J", +"S", +"M", +"P", +"M", +"Q", +"K", +"G", +"S", +"T", +"N", +"D"], + +abbreviated:[ +"Jan", +"Shk", +"Mar", +"Pri", +"Maj", +"Qer", +"Kor", +"Gus", +"Sht", +"Tet", +"Nën", +"Dhj"], + +wide:[ +"Janar", +"Shkurt", +"Mars", +"Prill", +"Maj", +"Qershor", +"Korrik", +"Gusht", +"Shtator", +"Tetor", +"Nëntor", +"Dhjetor"] + +}; +var dayValues$15={ +narrow:[ +"D", +"H", +"M", +"M", +"E", +"P", +"S"], + +short:[ +"Di", +"Hë", +"Ma", +"Më", +"En", +"Pr", +"Sh"], + +abbreviated:[ +"Die", +"Hën", +"Mar", +"Mër", +"Enj", +"Pre", +"Sht"], + +wide:[ +"Dielë", +"Hënë", +"Martë", +"Mërkurë", +"Enjte", +"Premte", +"Shtunë"] + +}; +var dayPeriodValues$15={ +narrow:{ +am:"p", +pm:"m", +midnight:"m", +noon:"d", +morning:"mëngjes", +afternoon:"dite", +evening:"mbrëmje", +night:"natë" +}, +abbreviated:{ +am:"PD", +pm:"MD", +midnight:"mesnëtë", +noon:"drek", +morning:"mëngjes", +afternoon:"mbasdite", +evening:"mbrëmje", +night:"natë" +}, +wide:{ +am:"p.d.", +pm:"m.d.", +midnight:"mesnëtë", +noon:"drek", +morning:"mëngjes", +afternoon:"mbasdite", +evening:"mbrëmje", +night:"natë" +} +}; +var formattingDayPeriodValues$15={ +narrow:{ +am:"p", +pm:"m", +midnight:"m", +noon:"d", +morning:"në mëngjes", +afternoon:"në mbasdite", +evening:"në mbrëmje", +night:"në mesnatë" +}, +abbreviated:{ +am:"PD", +pm:"MD", +midnight:"mesnatë", +noon:"drek", +morning:"në mëngjes", +afternoon:"në mbasdite", +evening:"në mbrëmje", +night:"në mesnatë" +}, +wide:{ +am:"p.d.", +pm:"m.d.", +midnight:"mesnatë", +noon:"drek", +morning:"në mëngjes", +afternoon:"në mbasdite", +evening:"në mbrëmje", +night:"në mesnatë" +} +}; +var ordinalNumber$15=function ordinalNumber$15(dirtyNumber,options){ +var number=Number(dirtyNumber); +if((options===null||options===void 0?void 0:options.unit)==="hour")return String(number); +if(number===1)return number+"-rë"; +if(number===4)return number+"t"; +return number+"-të"; +}; +//#endregion +//#region dist/date-fns/locale/sq.js +/** +* @category Locales +* @summary Albanian locale. +* @language Shqip +* @iso-639-2 sqi +* @author Ardit Dine [@arditdine](https://github.com/arditdine) +*/ +var _sq={ +code:"sq", +formatDistance:formatDistance$15, +formatLong:formatLong$15, +formatRelative:formatRelative$15, +localize:{ +ordinalNumber:ordinalNumber$15, +era:buildLocalizeFn({ +values:eraValues$15, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$15, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$15, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$15, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$15, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$15, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-rë|-të|t|)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(p|m)/i, +abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, +wide:/^(para krishtit|mbas krishtit)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b/i,/^(p|m)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234]-mujori (i{1,3}|iv)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jsmpqkftnd]/i, +abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, +wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^s/i, +/^m/i, +/^p/i, +/^m/i, +/^q/i, +/^k/i, +/^g/i, +/^s/i, +/^t/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^shk/i, +/^mar/i, +/^pri/i, +/^maj/i, +/^qer/i, +/^kor/i, +/^gu/i, +/^sht/i, +/^tet/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[dhmeps]/i, +short:/^(di|hë|ma|më|en|pr|sh)/i, +abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i, +wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^d/i, +/^h/i, +/^m/i, +/^m/i, +/^e/i, +/^p/i, +/^s/i], + +any:[ +/^d/i, +/^h/i, +/^ma/i, +/^më/i, +/^e/i, +/^p/i, +/^s/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, +any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^p/i, +pm:/^m/i, +midnight:/^me/i, +noon:/^dr/i, +morning:/mëngjes/i, +afternoon:/mbasdite/i, +evening:/mbrëmje/i, +night:/natë/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/sr/_lib/formatDistance.js +var formatDistanceLocale$14={ +lessThanXSeconds:{ +one:{ +standalone:"мање од 1 секунде", +withPrepositionAgo:"мање од 1 секунде", +withPrepositionIn:"мање од 1 секунду" +}, +dual:"мање од {{count}} секунде", +other:"мање од {{count}} секунди" +}, +xSeconds:{ +one:{ +standalone:"1 секунда", +withPrepositionAgo:"1 секунде", +withPrepositionIn:"1 секунду" +}, +dual:"{{count}} секунде", +other:"{{count}} секунди" +}, +halfAMinute:"пола минуте", +lessThanXMinutes:{ +one:{ +standalone:"мање од 1 минуте", +withPrepositionAgo:"мање од 1 минуте", +withPrepositionIn:"мање од 1 минуту" +}, +dual:"мање од {{count}} минуте", +other:"мање од {{count}} минута" +}, +xMinutes:{ +one:{ +standalone:"1 минута", +withPrepositionAgo:"1 минуте", +withPrepositionIn:"1 минуту" +}, +dual:"{{count}} минуте", +other:"{{count}} минута" +}, +aboutXHours:{ +one:{ +standalone:"око 1 сат", +withPrepositionAgo:"око 1 сат", +withPrepositionIn:"око 1 сат" +}, +dual:"око {{count}} сата", +other:"око {{count}} сати" +}, +xHours:{ +one:{ +standalone:"1 сат", +withPrepositionAgo:"1 сат", +withPrepositionIn:"1 сат" +}, +dual:"{{count}} сата", +other:"{{count}} сати" +}, +xDays:{ +one:{ +standalone:"1 дан", +withPrepositionAgo:"1 дан", +withPrepositionIn:"1 дан" +}, +dual:"{{count}} дана", +other:"{{count}} дана" +}, +aboutXWeeks:{ +one:{ +standalone:"око 1 недељу", +withPrepositionAgo:"око 1 недељу", +withPrepositionIn:"око 1 недељу" +}, +dual:"око {{count}} недеље", +other:"око {{count}} недеље" +}, +xWeeks:{ +one:{ +standalone:"1 недељу", +withPrepositionAgo:"1 недељу", +withPrepositionIn:"1 недељу" +}, +dual:"{{count}} недеље", +other:"{{count}} недеље" +}, +aboutXMonths:{ +one:{ +standalone:"око 1 месец", +withPrepositionAgo:"око 1 месец", +withPrepositionIn:"око 1 месец" +}, +dual:"око {{count}} месеца", +other:"око {{count}} месеци" +}, +xMonths:{ +one:{ +standalone:"1 месец", +withPrepositionAgo:"1 месец", +withPrepositionIn:"1 месец" +}, +dual:"{{count}} месеца", +other:"{{count}} месеци" +}, +aboutXYears:{ +one:{ +standalone:"око 1 годину", +withPrepositionAgo:"око 1 годину", +withPrepositionIn:"око 1 годину" +}, +dual:"око {{count}} године", +other:"око {{count}} година" +}, +xYears:{ +one:{ +standalone:"1 година", +withPrepositionAgo:"1 године", +withPrepositionIn:"1 годину" +}, +dual:"{{count}} године", +other:"{{count}} година" +}, +overXYears:{ +one:{ +standalone:"преко 1 годину", +withPrepositionAgo:"преко 1 годину", +withPrepositionIn:"преко 1 годину" +}, +dual:"преко {{count}} године", +other:"преко {{count}} година" +}, +almostXYears:{ +one:{ +standalone:"готово 1 годину", +withPrepositionAgo:"готово 1 годину", +withPrepositionIn:"готово 1 годину" +}, +dual:"готово {{count}} године", +other:"готово {{count}} година" +} +}; +var formatDistance$14=function formatDistance$14(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$14[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0)result=tokenValue.one.withPrepositionIn;else +result=tokenValue.one.withPrepositionAgo;}else +result=tokenValue.one.standalone;}else +if(count%10>1&&count%10<5&&String(count).substr(-2,1)!=="1")result=tokenValue.dual.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"за "+result;else +return"пре "+result; +return result; +}; +var formatLong$14={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM yyyy.", +long:"d. MMMM yyyy.", +medium:"d. MMM yy.", +short:"dd. MM. yy." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss (zzzz)", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'у' {{time}}", +long:"{{date}} 'у' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sr/_lib/formatRelative.js +var formatRelativeLocale$14={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 0:return"'прошле недеље у' p"; +case 3:return"'прошле среде у' p"; +case 6:return"'прошле суботе у' p"; +default:return"'прошли' EEEE 'у' p"; +} +}, +yesterday:"'јуче у' p", +today:"'данас у' p", +tomorrow:"'сутра у' p", +nextWeek:function nextWeek(date){ +switch(date.getDay()){ +case 0:return"'следеће недеље у' p"; +case 3:return"'следећу среду у' p"; +case 6:return"'следећу суботу у' p"; +default:return"'следећи' EEEE 'у' p"; +} +}, +other:"P" +}; +var formatRelative$14=function formatRelative$14(token,date,_baseDate,_options){ +var format=formatRelativeLocale$14[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/sr/_lib/localize.js +var eraValues$14={ +narrow:["пр.н.е.","АД"], +abbreviated:["пр. Хр.","по. Хр."], +wide:["Пре Христа","После Христа"] +}; +var quarterValues$14={ +narrow:[ +"1.", +"2.", +"3.", +"4."], + +abbreviated:[ +"1. кв.", +"2. кв.", +"3. кв.", +"4. кв."], + +wide:[ +"1. квартал", +"2. квартал", +"3. квартал", +"4. квартал"] + +}; +var monthValues$14={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"јан", +"феб", +"мар", +"апр", +"мај", +"јун", +"јул", +"авг", +"сеп", +"окт", +"нов", +"дец"], + +wide:[ +"јануар", +"фебруар", +"март", +"април", +"мај", +"јун", +"јул", +"август", +"септембар", +"октобар", +"новембар", +"децембар"] + +}; +var formattingMonthValues$3={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"јан", +"феб", +"мар", +"апр", +"мај", +"јун", +"јул", +"авг", +"сеп", +"окт", +"нов", +"дец"], + +wide:[ +"јануар", +"фебруар", +"март", +"април", +"мај", +"јун", +"јул", +"август", +"септембар", +"октобар", +"новембар", +"децембар"] + +}; +var dayValues$14={ +narrow:[ +"Н", +"П", +"У", +"С", +"Ч", +"П", +"С"], + +short:[ +"нед", +"пон", +"уто", +"сре", +"чет", +"пет", +"суб"], + +abbreviated:[ +"нед", +"пон", +"уто", +"сре", +"чет", +"пет", +"суб"], + +wide:[ +"недеља", +"понедељак", +"уторак", +"среда", +"четвртак", +"петак", +"субота"] + +}; +var formattingDayPeriodValues$14={ +narrow:{ +am:"АМ", +pm:"ПМ", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"поподне", +evening:"увече", +night:"ноћу" +}, +abbreviated:{ +am:"АМ", +pm:"ПМ", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"поподне", +evening:"увече", +night:"ноћу" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"после подне", +evening:"увече", +night:"ноћу" +} +}; +var dayPeriodValues$14={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"поподне", +evening:"увече", +night:"ноћу" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"поподне", +evening:"увече", +night:"ноћу" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"поноћ", +noon:"подне", +morning:"ујутру", +afternoon:"после подне", +evening:"увече", +night:"ноћу" +} +}; +var ordinalNumber$14=function ordinalNumber$14(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/sr.js +/** +* @category Locales +* @summary Serbian cyrillic locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var _sr={ +code:"sr", +formatDistance:formatDistance$14, +formatLong:formatLong$14, +formatRelative:formatRelative$14, +localize:{ +ordinalNumber:ordinalNumber$14, +era:buildLocalizeFn({ +values:eraValues$14, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$14, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$14, +defaultWidth:"wide", +formattingValues:formattingMonthValues$3, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$14, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$14, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$14, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(пр\.н\.е\.|АД)/i, +abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, +wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^пр/i,/^(по|нова)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\.\s?кв\.?/i, +wide:/^[1234]\. квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(10|11|12|[123456789])\./i, +abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, +wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^1/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^7/i, +/^8/i, +/^9/i, +/^10/i, +/^11/i, +/^12/i], + +any:[ +/^ја/i, +/^ф/i, +/^мар/i, +/^ап/i, +/^мај/i, +/^јун/i, +/^јул/i, +/^авг/i, +/^с/i, +/^о/i, +/^н/i, +/^д/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[пусчн]/i, +short:/^(нед|пон|уто|сре|чет|пет|суб)/i, +abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i, +wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^п/i, +/^у/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i, +/^н/i], + +any:[ +/^нед/i, +/^пон/i, +/^уто/i, +/^сре/i, +/^чет/i, +/^пет/i, +/^суб/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^поно/i, +noon:/^под/i, +morning:/ујутру/i, +afternoon:/(после\s|по)+подне/i, +evening:/(увече)/i, +night:/(ноћу)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/sr-Latn/_lib/formatDistance.js +var formatDistanceLocale$13={ +lessThanXSeconds:{ +one:{ +standalone:"manje od 1 sekunde", +withPrepositionAgo:"manje od 1 sekunde", +withPrepositionIn:"manje od 1 sekundu" +}, +dual:"manje od {{count}} sekunde", +other:"manje od {{count}} sekundi" +}, +xSeconds:{ +one:{ +standalone:"1 sekunda", +withPrepositionAgo:"1 sekunde", +withPrepositionIn:"1 sekundu" +}, +dual:"{{count}} sekunde", +other:"{{count}} sekundi" +}, +halfAMinute:"pola minute", +lessThanXMinutes:{ +one:{ +standalone:"manje od 1 minute", +withPrepositionAgo:"manje od 1 minute", +withPrepositionIn:"manje od 1 minutu" +}, +dual:"manje od {{count}} minute", +other:"manje od {{count}} minuta" +}, +xMinutes:{ +one:{ +standalone:"1 minuta", +withPrepositionAgo:"1 minute", +withPrepositionIn:"1 minutu" +}, +dual:"{{count}} minute", +other:"{{count}} minuta" +}, +aboutXHours:{ +one:{ +standalone:"oko 1 sat", +withPrepositionAgo:"oko 1 sat", +withPrepositionIn:"oko 1 sat" +}, +dual:"oko {{count}} sata", +other:"oko {{count}} sati" +}, +xHours:{ +one:{ +standalone:"1 sat", +withPrepositionAgo:"1 sat", +withPrepositionIn:"1 sat" +}, +dual:"{{count}} sata", +other:"{{count}} sati" +}, +xDays:{ +one:{ +standalone:"1 dan", +withPrepositionAgo:"1 dan", +withPrepositionIn:"1 dan" +}, +dual:"{{count}} dana", +other:"{{count}} dana" +}, +aboutXWeeks:{ +one:{ +standalone:"oko 1 nedelju", +withPrepositionAgo:"oko 1 nedelju", +withPrepositionIn:"oko 1 nedelju" +}, +dual:"oko {{count}} nedelje", +other:"oko {{count}} nedelje" +}, +xWeeks:{ +one:{ +standalone:"1 nedelju", +withPrepositionAgo:"1 nedelju", +withPrepositionIn:"1 nedelju" +}, +dual:"{{count}} nedelje", +other:"{{count}} nedelje" +}, +aboutXMonths:{ +one:{ +standalone:"oko 1 mesec", +withPrepositionAgo:"oko 1 mesec", +withPrepositionIn:"oko 1 mesec" +}, +dual:"oko {{count}} meseca", +other:"oko {{count}} meseci" +}, +xMonths:{ +one:{ +standalone:"1 mesec", +withPrepositionAgo:"1 mesec", +withPrepositionIn:"1 mesec" +}, +dual:"{{count}} meseca", +other:"{{count}} meseci" +}, +aboutXYears:{ +one:{ +standalone:"oko 1 godinu", +withPrepositionAgo:"oko 1 godinu", +withPrepositionIn:"oko 1 godinu" +}, +dual:"oko {{count}} godine", +other:"oko {{count}} godina" +}, +xYears:{ +one:{ +standalone:"1 godina", +withPrepositionAgo:"1 godine", +withPrepositionIn:"1 godinu" +}, +dual:"{{count}} godine", +other:"{{count}} godina" +}, +overXYears:{ +one:{ +standalone:"preko 1 godinu", +withPrepositionAgo:"preko 1 godinu", +withPrepositionIn:"preko 1 godinu" +}, +dual:"preko {{count}} godine", +other:"preko {{count}} godina" +}, +almostXYears:{ +one:{ +standalone:"gotovo 1 godinu", +withPrepositionAgo:"gotovo 1 godinu", +withPrepositionIn:"gotovo 1 godinu" +}, +dual:"gotovo {{count}} godine", +other:"gotovo {{count}} godina" +} +}; +var formatDistance$13=function formatDistance$13(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$13[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1){if(options!==null&&options!==void 0&&options.addSuffix){if(options.comparison&&options.comparison>0)result=tokenValue.one.withPrepositionIn;else +result=tokenValue.one.withPrepositionAgo;}else +result=tokenValue.one.standalone;}else +if(count%10>1&&count%10<5&&String(count).substr(-2,1)!=="1")result=tokenValue.dual.replace("{{count}}",String(count));else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"za "+result;else +return"pre "+result; +return result; +}; +var formatLong$13={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d. MMMM yyyy.", +long:"d. MMMM yyyy.", +medium:"d. MMM yy.", +short:"dd. MM. yy." +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss (zzzz)", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'u' {{time}}", +long:"{{date}} 'u' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sr-Latn/_lib/formatRelative.js +var formatRelativeLocale$13={ +lastWeek:function lastWeek(date){ +switch(date.getDay()){ +case 0:return"'prošle nedelje u' p"; +case 3:return"'prošle srede u' p"; +case 6:return"'prošle subote u' p"; +default:return"'prošli' EEEE 'u' p"; +} +}, +yesterday:"'juče u' p", +today:"'danas u' p", +tomorrow:"'sutra u' p", +nextWeek:function nextWeek(date){ +switch(date.getDay()){ +case 0:return"'sledeće nedelje u' p"; +case 3:return"'sledeću sredu u' p"; +case 6:return"'sledeću subotu u' p"; +default:return"'sledeći' EEEE 'u' p"; +} +}, +other:"P" +}; +var formatRelative$13=function formatRelative$13(token,date,_baseDate,_options){ +var format=formatRelativeLocale$13[token]; +if(typeof format==="function")return format(date); +return format; +}; +//#endregion +//#region dist/date-fns/locale/sr-Latn/_lib/localize.js +var eraValues$13={ +narrow:["pr.n.e.","AD"], +abbreviated:["pr. Hr.","po. Hr."], +wide:["Pre Hrista","Posle Hrista"] +}; +var quarterValues$13={ +narrow:[ +"1.", +"2.", +"3.", +"4."], + +abbreviated:[ +"1. kv.", +"2. kv.", +"3. kv.", +"4. kv."], + +wide:[ +"1. kvartal", +"2. kvartal", +"3. kvartal", +"4. kvartal"] + +}; +var monthValues$13={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"maj", +"jun", +"jul", +"avg", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januar", +"februar", +"mart", +"april", +"maj", +"jun", +"jul", +"avgust", +"septembar", +"oktobar", +"novembar", +"decembar"] + +}; +var formattingMonthValues$2={ +narrow:[ +"1.", +"2.", +"3.", +"4.", +"5.", +"6.", +"7.", +"8.", +"9.", +"10.", +"11.", +"12."], + +abbreviated:[ +"jan", +"feb", +"mar", +"apr", +"maj", +"jun", +"jul", +"avg", +"sep", +"okt", +"nov", +"dec"], + +wide:[ +"januar", +"februar", +"mart", +"april", +"maj", +"jun", +"jul", +"avgust", +"septembar", +"oktobar", +"novembar", +"decembar"] + +}; +var dayValues$13={ +narrow:[ +"N", +"P", +"U", +"S", +"Č", +"P", +"S"], + +short:[ +"ned", +"pon", +"uto", +"sre", +"čet", +"pet", +"sub"], + +abbreviated:[ +"ned", +"pon", +"uto", +"sre", +"čet", +"pet", +"sub"], + +wide:[ +"nedelja", +"ponedeljak", +"utorak", +"sreda", +"četvrtak", +"petak", +"subota"] + +}; +var formattingDayPeriodValues$13={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"posle podne", +evening:"uveče", +night:"noću" +} +}; +var dayPeriodValues$13={ +narrow:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"popodne", +evening:"uveče", +night:"noću" +}, +wide:{ +am:"AM", +pm:"PM", +midnight:"ponoć", +noon:"podne", +morning:"ujutru", +afternoon:"posle podne", +evening:"uveče", +night:"noću" +} +}; +var ordinalNumber$13=function ordinalNumber$13(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/sr-Latn.js +/** +* @category Locales +* @summary Serbian latin locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var _srLatn={ +code:"sr-Latn", +formatDistance:formatDistance$13, +formatLong:formatLong$13, +formatRelative:formatRelative$13, +localize:{ +ordinalNumber:ordinalNumber$13, +era:buildLocalizeFn({ +values:eraValues$13, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$13, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$13, +defaultWidth:"wide", +formattingValues:formattingMonthValues$2, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$13, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$13, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$13, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)\./i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(pr\.n\.e\.|AD)/i, +abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, +wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^pr/i,/^(po|nova)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]\.\s?kv\.?/i, +wide:/^[1234]\. kvartal/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(10|11|12|[123456789])\./i, +abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, +wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^1/i, +/^2/i, +/^3/i, +/^4/i, +/^5/i, +/^6/i, +/^7/i, +/^8/i, +/^9/i, +/^10/i, +/^11/i, +/^12/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^avg/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[npusčc]/i, +short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, +abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, +wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^s/i, +/^m/i, +/^t/i, +/^w/i, +/^t/i, +/^f/i, +/^s/i], + +any:[ +/^su/i, +/^m/i, +/^tu/i, +/^w/i, +/^th/i, +/^f/i, +/^sa/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^pono/i, +noon:/^pod/i, +morning:/jutro/i, +afternoon:/(posle\s|po)+podne/i, +evening:/(uvece|uveče)/i, +night:/(nocu|noću)/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/sv/_lib/formatDistance.js +var formatDistanceLocale$12={ +lessThanXSeconds:{ +one:"mindre än en sekund", +other:"mindre än {{count}} sekunder" +}, +xSeconds:{ +one:"en sekund", +other:"{{count}} sekunder" +}, +halfAMinute:"en halv minut", +lessThanXMinutes:{ +one:"mindre än en minut", +other:"mindre än {{count}} minuter" +}, +xMinutes:{ +one:"en minut", +other:"{{count}} minuter" +}, +aboutXHours:{ +one:"ungefär en timme", +other:"ungefär {{count}} timmar" +}, +xHours:{ +one:"en timme", +other:"{{count}} timmar" +}, +xDays:{ +one:"en dag", +other:"{{count}} dagar" +}, +aboutXWeeks:{ +one:"ungefär en vecka", +other:"ungefär {{count}} veckor" +}, +xWeeks:{ +one:"en vecka", +other:"{{count}} veckor" +}, +aboutXMonths:{ +one:"ungefär en månad", +other:"ungefär {{count}} månader" +}, +xMonths:{ +one:"en månad", +other:"{{count}} månader" +}, +aboutXYears:{ +one:"ungefär ett år", +other:"ungefär {{count}} år" +}, +xYears:{ +one:"ett år", +other:"{{count}} år" +}, +overXYears:{ +one:"över ett år", +other:"över {{count}} år" +}, +almostXYears:{ +one:"nästan ett år", +other:"nästan {{count}} år" +} +}; +var wordMapping=[ +"noll", +"en", +"två", +"tre", +"fyra", +"fem", +"sex", +"sju", +"åtta", +"nio", +"tio", +"elva", +"tolv"]; + +var formatDistance$12=function formatDistance$12(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$12[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count<13?wordMapping[count]:String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return"om "+result;else +return result+" sedan"; +return result; +}; +var formatLong$12={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE d MMMM y", +long:"d MMMM y", +medium:"d MMM y", +short:"y-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"'kl'. HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'kl.' {{time}}", +long:"{{date}} 'kl.' {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/sv/_lib/formatRelative.js +var formatRelativeLocale$12={ +lastWeek:"'i' EEEE's kl.' p", +yesterday:"'igår kl.' p", +today:"'idag kl.' p", +tomorrow:"'imorgon kl.' p", +nextWeek:"EEEE 'kl.' p", +other:"P" +}; +var formatRelative$12=function formatRelative$12(token,_date,_baseDate,_options){return formatRelativeLocale$12[token];}; +//#endregion +//#region dist/date-fns/locale/sv/_lib/localize.js +var eraValues$12={ +narrow:["f.Kr.","e.Kr."], +abbreviated:["f.Kr.","e.Kr."], +wide:["före Kristus","efter Kristus"] +}; +var quarterValues$12={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"1:a kvartalet", +"2:a kvartalet", +"3:e kvartalet", +"4:e kvartalet"] + +}; +var monthValues$12={ +narrow:[ +"J", +"F", +"M", +"A", +"M", +"J", +"J", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"jan.", +"feb.", +"mars", +"apr.", +"maj", +"juni", +"juli", +"aug.", +"sep.", +"okt.", +"nov.", +"dec."], + +wide:[ +"januari", +"februari", +"mars", +"april", +"maj", +"juni", +"juli", +"augusti", +"september", +"oktober", +"november", +"december"] + +}; +var dayValues$12={ +narrow:[ +"S", +"M", +"T", +"O", +"T", +"F", +"L"], + +short:[ +"sö", +"må", +"ti", +"on", +"to", +"fr", +"lö"], + +abbreviated:[ +"sön", +"mån", +"tis", +"ons", +"tors", +"fre", +"lör"], + +wide:[ +"söndag", +"måndag", +"tisdag", +"onsdag", +"torsdag", +"fredag", +"lördag"] + +}; +var dayPeriodValues$12={ +narrow:{ +am:"fm", +pm:"em", +midnight:"midnatt", +noon:"middag", +morning:"morg.", +afternoon:"efterm.", +evening:"kväll", +night:"natt" +}, +abbreviated:{ +am:"f.m.", +pm:"e.m.", +midnight:"midnatt", +noon:"middag", +morning:"morgon", +afternoon:"efterm.", +evening:"kväll", +night:"natt" +}, +wide:{ +am:"förmiddag", +pm:"eftermiddag", +midnight:"midnatt", +noon:"middag", +morning:"morgon", +afternoon:"eftermiddag", +evening:"kväll", +night:"natt" +} +}; +var formattingDayPeriodValues$12={ +narrow:{ +am:"fm", +pm:"em", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på efterm.", +evening:"på kvällen", +night:"på natten" +}, +abbreviated:{ +am:"fm", +pm:"em", +midnight:"midnatt", +noon:"middag", +morning:"på morg.", +afternoon:"på efterm.", +evening:"på kvällen", +night:"på natten" +}, +wide:{ +am:"fm", +pm:"em", +midnight:"midnatt", +noon:"middag", +morning:"på morgonen", +afternoon:"på eftermiddagen", +evening:"på kvällen", +night:"på natten" +} +}; +var ordinalNumber$12=function ordinalNumber$12(dirtyNumber,_options){ +var number=Number(dirtyNumber); +var rem100=number%100; +if(rem100>20||rem100<10)switch(rem100%10){ +case 1: +case 2:return number+":a"; +} +return number+":e"; +}; +//#endregion +//#region dist/date-fns/locale/sv.js +/** +* @category Locales +* @summary Swedish locale. +* @language Swedish +* @iso-639-2 swe +* @author Johannes Ulén [@ejulen](https://github.com/ejulen) +* @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) +* @author Henrik Andersson [@limelights](https://github.com/limelights) +*/ +var _sv={ +code:"sv", +formatDistance:formatDistance$12, +formatLong:formatLong$12, +formatRelative:formatRelative$12, +localize:{ +ordinalNumber:ordinalNumber$12, +era:buildLocalizeFn({ +values:eraValues$12, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$12, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$12, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$12, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$12, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$12, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(:a|:e)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, +abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, +wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^f/i,/^[ev]/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](:a|:e)? kvartalet/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[jfmasond]/i, +abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, +wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^j/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^j/i, +/^j/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ja/i, +/^f/i, +/^mar/i, +/^ap/i, +/^maj/i, +/^jun/i, +/^jul/i, +/^au/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[smtofl]/i, +short:/^(sö|må|ti|on|to|fr|lö)/i, +abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i, +wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/^s/i, +/^m/i, +/^ti/i, +/^o/i, +/^to/i, +/^f/i, +/^l/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^f/i, +pm:/^e/i, +midnight:/^midn/i, +noon:/^midd/i, +morning:/morgon/i, +afternoon:/eftermiddag/i, +evening:/kväll/i, +night:/natt/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/ta/_lib/formatDistance.js +function isPluralType(val){ +return val.one!==void 0; +} +var formatDistanceLocale$11={ +lessThanXSeconds:{ +one:{ +default:"ஒரு வினாடிக்கு குறைவாக", +in:"ஒரு வினாடிக்குள்", +ago:"ஒரு வினாடிக்கு முன்பு" +}, +other:{ +default:"{{count}} வினாடிகளுக்கு குறைவாக", +in:"{{count}} வினாடிகளுக்குள்", +ago:"{{count}} வினாடிகளுக்கு முன்பு" +} +}, +xSeconds:{ +one:{ +default:"1 வினாடி", +in:"1 வினாடியில்", +ago:"1 வினாடி முன்பு" +}, +other:{ +default:"{{count}} விநாடிகள்", +in:"{{count}} வினாடிகளில்", +ago:"{{count}} விநாடிகளுக்கு முன்பு" +} +}, +halfAMinute:{ +default:"அரை நிமிடம்", +in:"அரை நிமிடத்தில்", +ago:"அரை நிமிடம் முன்பு" +}, +lessThanXMinutes:{ +one:{ +default:"ஒரு நிமிடத்திற்கும் குறைவாக", +in:"ஒரு நிமிடத்திற்குள்", +ago:"ஒரு நிமிடத்திற்கு முன்பு" +}, +other:{ +default:"{{count}} நிமிடங்களுக்கும் குறைவாக", +in:"{{count}} நிமிடங்களுக்குள்", +ago:"{{count}} நிமிடங்களுக்கு முன்பு" +} +}, +xMinutes:{ +one:{ +default:"1 நிமிடம்", +in:"1 நிமிடத்தில்", +ago:"1 நிமிடம் முன்பு" +}, +other:{ +default:"{{count}} நிமிடங்கள்", +in:"{{count}} நிமிடங்களில்", +ago:"{{count}} நிமிடங்களுக்கு முன்பு" +} +}, +aboutXHours:{ +one:{ +default:"சுமார் 1 மணி நேரம்", +in:"சுமார் 1 மணி நேரத்தில்", +ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு" +}, +other:{ +default:"சுமார் {{count}} மணி நேரம்", +in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு", +ago:"சுமார் {{count}} மணி நேரத்தில்" +} +}, +xHours:{ +one:{ +default:"1 மணி நேரம்", +in:"1 மணி நேரத்தில்", +ago:"1 மணி நேரத்திற்கு முன்பு" +}, +other:{ +default:"{{count}} மணி நேரம்", +in:"{{count}} மணி நேரத்தில்", +ago:"{{count}} மணி நேரத்திற்கு முன்பு" +} +}, +xDays:{ +one:{ +default:"1 நாள்", +in:"1 நாளில்", +ago:"1 நாள் முன்பு" +}, +other:{ +default:"{{count}} நாட்கள்", +in:"{{count}} நாட்களில்", +ago:"{{count}} நாட்களுக்கு முன்பு" +} +}, +aboutXWeeks:{ +one:{ +default:"சுமார் 1 வாரம்", +in:"சுமார் 1 வாரத்தில்", +ago:"சுமார் 1 வாரம் முன்பு" +}, +other:{ +default:"சுமார் {{count}} வாரங்கள்", +in:"சுமார் {{count}} வாரங்களில்", +ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு" +} +}, +xWeeks:{ +one:{ +default:"1 வாரம்", +in:"1 வாரத்தில்", +ago:"1 வாரம் முன்பு" +}, +other:{ +default:"{{count}} வாரங்கள்", +in:"{{count}} வாரங்களில்", +ago:"{{count}} வாரங்களுக்கு முன்பு" +} +}, +aboutXMonths:{ +one:{ +default:"சுமார் 1 மாதம்", +in:"சுமார் 1 மாதத்தில்", +ago:"சுமார் 1 மாதத்திற்கு முன்பு" +}, +other:{ +default:"சுமார் {{count}} மாதங்கள்", +in:"சுமார் {{count}} மாதங்களில்", +ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு" +} +}, +xMonths:{ +one:{ +default:"1 மாதம்", +in:"1 மாதத்தில்", +ago:"1 மாதம் முன்பு" +}, +other:{ +default:"{{count}} மாதங்கள்", +in:"{{count}} மாதங்களில்", +ago:"{{count}} மாதங்களுக்கு முன்பு" +} +}, +aboutXYears:{ +one:{ +default:"சுமார் 1 வருடம்", +in:"சுமார் 1 ஆண்டில்", +ago:"சுமார் 1 வருடம் முன்பு" +}, +other:{ +default:"சுமார் {{count}} ஆண்டுகள்", +in:"சுமார் {{count}} ஆண்டுகளில்", +ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு" +} +}, +xYears:{ +one:{ +default:"1 வருடம்", +in:"1 ஆண்டில்", +ago:"1 வருடம் முன்பு" +}, +other:{ +default:"{{count}} ஆண்டுகள்", +in:"{{count}} ஆண்டுகளில்", +ago:"{{count}} ஆண்டுகளுக்கு முன்பு" +} +}, +overXYears:{ +one:{ +default:"1 வருடத்திற்கு மேல்", +in:"1 வருடத்திற்கும் மேலாக", +ago:"1 வருடம் முன்பு" +}, +other:{ +default:"{{count}} ஆண்டுகளுக்கும் மேலாக", +in:"{{count}} ஆண்டுகளில்", +ago:"{{count}} ஆண்டுகளுக்கு முன்பு" +} +}, +almostXYears:{ +one:{ +default:"கிட்டத்தட்ட 1 வருடம்", +in:"கிட்டத்தட்ட 1 ஆண்டில்", +ago:"கிட்டத்தட்ட 1 வருடம் முன்பு" +}, +other:{ +default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்", +in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்", +ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு" +} +} +}; +var formatDistance$11=function formatDistance$11(token,count,options){ +var tense=options!==null&&options!==void 0&&options.addSuffix?options.comparison&&options.comparison>0?"in":"ago":"default"; +var tokenValue=formatDistanceLocale$11[token]; +if(!isPluralType(tokenValue))return tokenValue[tense]; +if(count===1)return tokenValue.one[tense];else +return tokenValue.other[tense].replace("{{count}}",String(count)); +}; +var formatLong$11={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, d MMMM, y", +long:"d MMMM, y", +medium:"d MMM, y", +short:"d/M/yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"a h:mm:ss zzzz", +long:"a h:mm:ss z", +medium:"a h:mm:ss", +short:"a h:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ta/_lib/formatRelative.js +var formatRelativeLocale$11={ +lastWeek:"'கடந்த' eeee p 'மணிக்கு'", +yesterday:"'நேற்று ' p 'மணிக்கு'", +today:"'இன்று ' p 'மணிக்கு'", +tomorrow:"'நாளை ' p 'மணிக்கு'", +nextWeek:"eeee p 'மணிக்கு'", +other:"P" +}; +var formatRelative$11=function formatRelative$11(token,_date,_baseDate,_options){return formatRelativeLocale$11[token];}; +//#endregion +//#region dist/date-fns/locale/ta/_lib/localize.js +var eraValues$11={ +narrow:["கி.மு.","கி.பி."], +abbreviated:["கி.மு.","கி.பி."], +wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"] +}; +var quarterValues$11={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"காலா.1", +"காலா.2", +"காலா.3", +"காலா.4"], + +wide:[ +"ஒன்றாம் காலாண்டு", +"இரண்டாம் காலாண்டு", +"மூன்றாம் காலாண்டு", +"நான்காம் காலாண்டு"] + +}; +var monthValues$11={ +narrow:[ +"ஜ", +"பி", +"மா", +"ஏ", +"மே", +"ஜூ", +"ஜூ", +"ஆ", +"செ", +"அ", +"ந", +"டி"], + +abbreviated:[ +"ஜன.", +"பிப்.", +"மார்.", +"ஏப்.", +"மே", +"ஜூன்", +"ஜூலை", +"ஆக.", +"செப்.", +"அக்.", +"நவ.", +"டிச."], + +wide:[ +"ஜனவரி", +"பிப்ரவரி", +"மார்ச்", +"ஏப்ரல்", +"மே", +"ஜூன்", +"ஜூலை", +"ஆகஸ்ட்", +"செப்டம்பர்", +"அக்டோபர்", +"நவம்பர்", +"டிசம்பர்"] + +}; +var dayValues$11={ +narrow:[ +"ஞா", +"தி", +"செ", +"பு", +"வி", +"வெ", +"ச"], + +short:[ +"ஞா", +"தி", +"செ", +"பு", +"வி", +"வெ", +"ச"], + +abbreviated:[ +"ஞாயி.", +"திங்.", +"செவ்.", +"புத.", +"வியா.", +"வெள்.", +"சனி"], + +wide:[ +"ஞாயிறு", +"திங்கள்", +"செவ்வாய்", +"புதன்", +"வியாழன்", +"வெள்ளி", +"சனி"] + +}; +var dayPeriodValues$11={ +narrow:{ +am:"மு.ப", +pm:"பி.ப", +midnight:"நள்.", +noon:"நண்.", +morning:"கா.", +afternoon:"மதி.", +evening:"மா.", +night:"இர." +}, +abbreviated:{ +am:"முற்பகல்", +pm:"பிற்பகல்", +midnight:"நள்ளிரவு", +noon:"நண்பகல்", +morning:"காலை", +afternoon:"மதியம்", +evening:"மாலை", +night:"இரவு" +}, +wide:{ +am:"முற்பகல்", +pm:"பிற்பகல்", +midnight:"நள்ளிரவு", +noon:"நண்பகல்", +morning:"காலை", +afternoon:"மதியம்", +evening:"மாலை", +night:"இரவு" +} +}; +var formattingDayPeriodValues$11={ +narrow:{ +am:"மு.ப", +pm:"பி.ப", +midnight:"நள்.", +noon:"நண்.", +morning:"கா.", +afternoon:"மதி.", +evening:"மா.", +night:"இர." +}, +abbreviated:{ +am:"முற்பகல்", +pm:"பிற்பகல்", +midnight:"நள்ளிரவு", +noon:"நண்பகல்", +morning:"காலை", +afternoon:"மதியம்", +evening:"மாலை", +night:"இரவு" +}, +wide:{ +am:"முற்பகல்", +pm:"பிற்பகல்", +midnight:"நள்ளிரவு", +noon:"நண்பகல்", +morning:"காலை", +afternoon:"மதியம்", +evening:"மாலை", +night:"இரவு" +} +}; +var ordinalNumber$11=function ordinalNumber$11(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ta.js +/** +* @category Locales +* @summary Tamil locale (India). +* @language Tamil +* @iso-639-2 tam +* @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) +*/ +var _ta={ +code:"ta", +formatDistance:formatDistance$11, +formatLong:formatLong$11, +formatRelative:formatRelative$11, +localize:{ +ordinalNumber:ordinalNumber$11, +era:buildLocalizeFn({ +values:eraValues$11, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$11, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$11, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$11, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$11, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$11, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(வது)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(கி.மு.|கி.பி.)/i, +abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, +wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^காலா.[1234]/i, +wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/1/i, +/2/i, +/3/i, +/4/i], + +any:[ +/(1|காலா.1|ஒன்றாம்)/i, +/(2|காலா.2|இரண்டாம்)/i, +/(3|காலா.3|மூன்றாம்)/i, +/(4|காலா.4|நான்காம்)/i] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, +abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, +wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ஜ$/i, +/^பி/i, +/^மா/i, +/^ஏ/i, +/^மே/i, +/^ஜூ/i, +/^ஜூ/i, +/^ஆ/i, +/^செ/i, +/^அ/i, +/^ந/i, +/^டி/i], + +any:[ +/^ஜன/i, +/^பி/i, +/^மா/i, +/^ஏ/i, +/^மே/i, +/^ஜூன்/i, +/^ஜூலை/i, +/^ஆ/i, +/^செ/i, +/^அ/i, +/^ந/i, +/^டி/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i, +short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i, +abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, +wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ஞா/i, +/^தி/i, +/^செ/i, +/^பு/i, +/^வி/i, +/^வெ/i, +/^ச/i], + +any:[ +/^ஞா/i, +/^தி/i, +/^செ/i, +/^பு/i, +/^வி/i, +/^வெ/i, +/^ச/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, +any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^மு/i, +pm:/^பி/i, +midnight:/^நள்/i, +noon:/^நண்/i, +morning:/காலை/i, +afternoon:/மதியம்/i, +evening:/மாலை/i, +night:/இரவு/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/te/_lib/formatDistance.js +var formatDistanceLocale$10={ +lessThanXSeconds:{ +standalone:{ +one:"సెకను కన్నా తక్కువ", +other:"{{count}} సెకన్ల కన్నా తక్కువ" +}, +withPreposition:{ +one:"సెకను", +other:"{{count}} సెకన్ల" +} +}, +xSeconds:{ +standalone:{ +one:"ఒక సెకను", +other:"{{count}} సెకన్ల" +}, +withPreposition:{ +one:"ఒక సెకను", +other:"{{count}} సెకన్ల" +} +}, +halfAMinute:{ +standalone:"అర నిమిషం", +withPreposition:"అర నిమిషం" +}, +lessThanXMinutes:{ +standalone:{ +one:"ఒక నిమిషం కన్నా తక్కువ", +other:"{{count}} నిమిషాల కన్నా తక్కువ" +}, +withPreposition:{ +one:"ఒక నిమిషం", +other:"{{count}} నిమిషాల" +} +}, +xMinutes:{ +standalone:{ +one:"ఒక నిమిషం", +other:"{{count}} నిమిషాలు" +}, +withPreposition:{ +one:"ఒక నిమిషం", +other:"{{count}} నిమిషాల" +} +}, +aboutXHours:{ +standalone:{ +one:"సుమారు ఒక గంట", +other:"సుమారు {{count}} గంటలు" +}, +withPreposition:{ +one:"సుమారు ఒక గంట", +other:"సుమారు {{count}} గంటల" +} +}, +xHours:{ +standalone:{ +one:"ఒక గంట", +other:"{{count}} గంటలు" +}, +withPreposition:{ +one:"ఒక గంట", +other:"{{count}} గంటల" +} +}, +xDays:{ +standalone:{ +one:"ఒక రోజు", +other:"{{count}} రోజులు" +}, +withPreposition:{ +one:"ఒక రోజు", +other:"{{count}} రోజుల" +} +}, +aboutXWeeks:{ +standalone:{ +one:"సుమారు ఒక వారం", +other:"సుమారు {{count}} వారాలు" +}, +withPreposition:{ +one:"సుమారు ఒక వారం", +other:"సుమారు {{count}} వారాలల" +} +}, +xWeeks:{ +standalone:{ +one:"ఒక వారం", +other:"{{count}} వారాలు" +}, +withPreposition:{ +one:"ఒక వారం", +other:"{{count}} వారాలల" +} +}, +aboutXMonths:{ +standalone:{ +one:"సుమారు ఒక నెల", +other:"సుమారు {{count}} నెలలు" +}, +withPreposition:{ +one:"సుమారు ఒక నెల", +other:"సుమారు {{count}} నెలల" +} +}, +xMonths:{ +standalone:{ +one:"ఒక నెల", +other:"{{count}} నెలలు" +}, +withPreposition:{ +one:"ఒక నెల", +other:"{{count}} నెలల" +} +}, +aboutXYears:{ +standalone:{ +one:"సుమారు ఒక సంవత్సరం", +other:"సుమారు {{count}} సంవత్సరాలు" +}, +withPreposition:{ +one:"సుమారు ఒక సంవత్సరం", +other:"సుమారు {{count}} సంవత్సరాల" +} +}, +xYears:{ +standalone:{ +one:"ఒక సంవత్సరం", +other:"{{count}} సంవత్సరాలు" +}, +withPreposition:{ +one:"ఒక సంవత్సరం", +other:"{{count}} సంవత్సరాల" +} +}, +overXYears:{ +standalone:{ +one:"ఒక సంవత్సరం పైగా", +other:"{{count}} సంవత్సరాలకు పైగా" +}, +withPreposition:{ +one:"ఒక సంవత్సరం", +other:"{{count}} సంవత్సరాల" +} +}, +almostXYears:{ +standalone:{ +one:"దాదాపు ఒక సంవత్సరం", +other:"దాదాపు {{count}} సంవత్సరాలు" +}, +withPreposition:{ +one:"దాదాపు ఒక సంవత్సరం", +other:"దాదాపు {{count}} సంవత్సరాల" +} +} +}; +var formatDistance$10=function formatDistance$10(token,count,options){ +var result; +var tokenValue=options!==null&&options!==void 0&&options.addSuffix?formatDistanceLocale$10[token].withPreposition:formatDistanceLocale$10[token].standalone; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"లో";else +return result+" క్రితం"; +return result; +}; +var formatLong$10={ +date:buildFormatLongFn({ +formats:{ +full:"d, MMMM y, EEEE", +long:"d MMMM, y", +medium:"d MMM, y", +short:"dd-MM-yy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}'కి'", +long:"{{date}} {{time}}'కి'", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/te/_lib/formatRelative.js +var formatRelativeLocale$10={ +lastWeek:"'గత' eeee p", +yesterday:"'నిన్న' p", +today:"'ఈ రోజు' p", +tomorrow:"'రేపు' p", +nextWeek:"'తదుపరి' eeee p", +other:"P" +}; +var formatRelative$10=function formatRelative$10(token,_date,_baseDate,_options){return formatRelativeLocale$10[token];}; +//#endregion +//#region dist/date-fns/locale/te/_lib/localize.js +var eraValues$10={ +narrow:["క్రీ.పూ.","క్రీ.శ."], +abbreviated:["క్రీ.పూ.","క్రీ.శ."], +wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"] +}; +var quarterValues$10={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"త్రై1", +"త్రై2", +"త్రై3", +"త్రై4"], + +wide:[ +"1వ త్రైమాసికం", +"2వ త్రైమాసికం", +"3వ త్రైమాసికం", +"4వ త్రైమాసికం"] + +}; +var monthValues$10={ +narrow:[ +"జ", +"ఫి", +"మా", +"ఏ", +"మే", +"జూ", +"జు", +"ఆ", +"సె", +"అ", +"న", +"డి"], + +abbreviated:[ +"జన", +"ఫిబ్ర", +"మార్చి", +"ఏప్రి", +"మే", +"జూన్", +"జులై", +"ఆగ", +"సెప్టెం", +"అక్టో", +"నవం", +"డిసెం"], + +wide:[ +"జనవరి", +"ఫిబ్రవరి", +"మార్చి", +"ఏప్రిల్", +"మే", +"జూన్", +"జులై", +"ఆగస్టు", +"సెప్టెంబర్", +"అక్టోబర్", +"నవంబర్", +"డిసెంబర్"] + +}; +var dayValues$10={ +narrow:[ +"ఆ", +"సో", +"మ", +"బు", +"గు", +"శు", +"శ"], + +short:[ +"ఆది", +"సోమ", +"మంగళ", +"బుధ", +"గురు", +"శుక్ర", +"శని"], + +abbreviated:[ +"ఆది", +"సోమ", +"మంగళ", +"బుధ", +"గురు", +"శుక్ర", +"శని"], + +wide:[ +"ఆదివారం", +"సోమవారం", +"మంగళవారం", +"బుధవారం", +"గురువారం", +"శుక్రవారం", +"శనివారం"] + +}; +var dayPeriodValues$10={ +narrow:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +}, +abbreviated:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +}, +wide:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +} +}; +var formattingDayPeriodValues$10={ +narrow:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +}, +abbreviated:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +}, +wide:{ +am:"పూర్వాహ్నం", +pm:"అపరాహ్నం", +midnight:"అర్ధరాత్రి", +noon:"మిట్టమధ్యాహ్నం", +morning:"ఉదయం", +afternoon:"మధ్యాహ్నం", +evening:"సాయంత్రం", +night:"రాత్రి" +} +}; +var ordinalNumber$10=function ordinalNumber$10(dirtyNumber,_options){ +return Number(dirtyNumber)+"వ"; +}; +//#endregion +//#region dist/date-fns/locale/te.js +/** +* @category Locales +* @summary Telugu locale +* @language Telugu +* @iso-639-2 tel +* @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) +*/ +var _te={ +code:"te", +formatDistance:formatDistance$10, +formatLong:formatLong$10, +formatRelative:formatRelative$10, +localize:{ +ordinalNumber:ordinalNumber$10, +era:buildLocalizeFn({ +values:eraValues$10, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$10, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$10, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$10, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$10, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$10, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(వ)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, +abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, +wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^త్రై[1234]/i, +wide:/^[1234](వ)? త్రైమాసికం/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, +abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, +wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^జ/i, +/^ఫి/i, +/^మా/i, +/^ఏ/i, +/^మే/i, +/^జూ/i, +/^జు/i, +/^ఆ/i, +/^సె/i, +/^అ/i, +/^న/i, +/^డి/i], + +any:[ +/^జన/i, +/^ఫి/i, +/^మా/i, +/^ఏ/i, +/^మే/i, +/^జూన్/i, +/^జులై/i, +/^ఆగ/i, +/^సె/i, +/^అ/i, +/^న/i, +/^డి/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i, +short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, +abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, +wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ఆ/i, +/^సో/i, +/^మ/i, +/^బు/i, +/^గు/i, +/^శు/i, +/^శ/i], + +any:[ +/^ఆది/i, +/^సోమ/i, +/^మం/i, +/^బుధ/i, +/^గురు/i, +/^శుక్ర/i, +/^శని/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, +any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^పూర్వాహ్నం/i, +pm:/^అపరాహ్నం/i, +midnight:/^అర్ధ/i, +noon:/^మిట్ట/i, +morning:/ఉదయం/i, +afternoon:/మధ్యాహ్నం/i, +evening:/సాయంత్రం/i, +night:/రాత్రి/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/th/_lib/formatDistance.js +var formatDistanceLocale$9={ +lessThanXSeconds:{ +one:"น้อยกว่า 1 วินาที", +other:"น้อยกว่า {{count}} วินาที" +}, +xSeconds:{ +one:"1 วินาที", +other:"{{count}} วินาที" +}, +halfAMinute:"ครึ่งนาที", +lessThanXMinutes:{ +one:"น้อยกว่า 1 นาที", +other:"น้อยกว่า {{count}} นาที" +}, +xMinutes:{ +one:"1 นาที", +other:"{{count}} นาที" +}, +aboutXHours:{ +one:"ประมาณ 1 ชั่วโมง", +other:"ประมาณ {{count}} ชั่วโมง" +}, +xHours:{ +one:"1 ชั่วโมง", +other:"{{count}} ชั่วโมง" +}, +xDays:{ +one:"1 วัน", +other:"{{count}} วัน" +}, +aboutXWeeks:{ +one:"ประมาณ 1 สัปดาห์", +other:"ประมาณ {{count}} สัปดาห์" +}, +xWeeks:{ +one:"1 สัปดาห์", +other:"{{count}} สัปดาห์" +}, +aboutXMonths:{ +one:"ประมาณ 1 เดือน", +other:"ประมาณ {{count}} เดือน" +}, +xMonths:{ +one:"1 เดือน", +other:"{{count}} เดือน" +}, +aboutXYears:{ +one:"ประมาณ 1 ปี", +other:"ประมาณ {{count}} ปี" +}, +xYears:{ +one:"1 ปี", +other:"{{count}} ปี" +}, +overXYears:{ +one:"มากกว่า 1 ปี", +other:"มากกว่า {{count}} ปี" +}, +almostXYears:{ +one:"เกือบ 1 ปี", +other:"เกือบ {{count}} ปี" +} +}; +var formatDistance$9=function formatDistance$9(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$9[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0){if(token==="halfAMinute")return"ใน"+result;else +return"ใน "+result;}else +return result+"ที่ผ่านมา"; +return result; +}; +var formatLong$9={ +date:buildFormatLongFn({ +formats:{ +full:"วันEEEEที่ do MMMM y", +long:"do MMMM y", +medium:"d MMM y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss น. zzzz", +long:"H:mm:ss น. z", +medium:"H:mm:ss น.", +short:"H:mm น." +}, +defaultWidth:"medium" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'เวลา' {{time}}", +long:"{{date}} 'เวลา' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/th/_lib/formatRelative.js +var formatRelativeLocale$9={ +lastWeek:"eeee'ที่แล้วเวลา' p", +yesterday:"'เมื่อวานนี้เวลา' p", +today:"'วันนี้เวลา' p", +tomorrow:"'พรุ่งนี้เวลา' p", +nextWeek:"eeee 'เวลา' p", +other:"P" +}; +var formatRelative$9=function formatRelative$9(token,_date,_baseDate,_options){return formatRelativeLocale$9[token];}; +//#endregion +//#region dist/date-fns/locale/th/_lib/localize.js +var eraValues$9={ +narrow:["B","คศ"], +abbreviated:["BC","ค.ศ."], +wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"] +}; +var quarterValues$9={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"ไตรมาสแรก", +"ไตรมาสที่สอง", +"ไตรมาสที่สาม", +"ไตรมาสที่สี่"] + +}; +var dayValues$9={ +narrow:[ +"อา.", +"จ.", +"อ.", +"พ.", +"พฤ.", +"ศ.", +"ส."], + +short:[ +"อา.", +"จ.", +"อ.", +"พ.", +"พฤ.", +"ศ.", +"ส."], + +abbreviated:[ +"อา.", +"จ.", +"อ.", +"พ.", +"พฤ.", +"ศ.", +"ส."], + +wide:[ +"อาทิตย์", +"จันทร์", +"อังคาร", +"พุธ", +"พฤหัสบดี", +"ศุกร์", +"เสาร์"] + +}; +var monthValues$9={ +narrow:[ +"ม.ค.", +"ก.พ.", +"มี.ค.", +"เม.ย.", +"พ.ค.", +"มิ.ย.", +"ก.ค.", +"ส.ค.", +"ก.ย.", +"ต.ค.", +"พ.ย.", +"ธ.ค."], + +abbreviated:[ +"ม.ค.", +"ก.พ.", +"มี.ค.", +"เม.ย.", +"พ.ค.", +"มิ.ย.", +"ก.ค.", +"ส.ค.", +"ก.ย.", +"ต.ค.", +"พ.ย.", +"ธ.ค."], + +wide:[ +"มกราคม", +"กุมภาพันธ์", +"มีนาคม", +"เมษายน", +"พฤษภาคม", +"มิถุนายน", +"กรกฎาคม", +"สิงหาคม", +"กันยายน", +"ตุลาคม", +"พฤศจิกายน", +"ธันวาคม"] + +}; +var dayPeriodValues$9={ +narrow:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"เช้า", +afternoon:"บ่าย", +evening:"เย็น", +night:"กลางคืน" +}, +abbreviated:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"เช้า", +afternoon:"บ่าย", +evening:"เย็น", +night:"กลางคืน" +}, +wide:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"เช้า", +afternoon:"บ่าย", +evening:"เย็น", +night:"กลางคืน" +} +}; +var formattingDayPeriodValues$9={ +narrow:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"ตอนเช้า", +afternoon:"ตอนกลางวัน", +evening:"ตอนเย็น", +night:"ตอนกลางคืน" +}, +abbreviated:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"ตอนเช้า", +afternoon:"ตอนกลางวัน", +evening:"ตอนเย็น", +night:"ตอนกลางคืน" +}, +wide:{ +am:"ก่อนเที่ยง", +pm:"หลังเที่ยง", +midnight:"เที่ยงคืน", +noon:"เที่ยง", +morning:"ตอนเช้า", +afternoon:"ตอนกลางวัน", +evening:"ตอนเย็น", +night:"ตอนกลางคืน" +} +}; +var ordinalNumber$9=function ordinalNumber$9(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/th.js +/** +* @category Locales +* @summary Thai locale. +* @language Thai +* @iso-639-2 tha +* @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) +* @author [@hawkup](https://github.com/hawkup) +* @author Jirawat I. [@nodtem66](https://github.com/nodtem66) +*/ +var _th={ +code:"th", +formatDistance:formatDistance$9, +formatLong:formatLong$9, +formatRelative:formatRelative$9, +localize:{ +ordinalNumber:ordinalNumber$9, +era:buildLocalizeFn({ +values:eraValues$9, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$9, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$9, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$9, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$9, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$9, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^\d+/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^([bB]|[aA]|คศ)/i, +abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, +wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^ไตรมาส(ที่)? ?[1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|แรก|หนึ่ง)/i, +/(2|สอง)/i, +/(3|สาม)/i, +/(4|สี่)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, +abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, +wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[ +/^มก/i, +/^กุม/i, +/^มี/i, +/^เม/i, +/^พฤษ/i, +/^มิ/i, +/^กรก/i, +/^ส/i, +/^กัน/i, +/^ต/i, +/^พฤศ/i, +/^ธ/i], + +any:[ +/^ม\.?ค\.?/i, +/^ก\.?พ\.?/i, +/^มี\.?ค\.?/i, +/^เม\.?ย\.?/i, +/^พ\.?ค\.?/i, +/^มิ\.?ย\.?/i, +/^ก\.?ค\.?/i, +/^ส\.?ค\.?/i, +/^ก\.?ย\.?/i, +/^ต\.?ค\.?/i, +/^พ\.?ย\.?/i, +/^ธ\.?ค\.?/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, +short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, +abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, +wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +wide:[ +/^อา/i, +/^จั/i, +/^อั/i, +/^พุธ/i, +/^พฤ/i, +/^ศ/i, +/^เส/i], + +any:[ +/^อา/i, +/^จ/i, +/^อ/i, +/^พ(?!ฤ)/i, +/^พฤ/i, +/^ศ/i, +/^ส/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ก่อนเที่ยง/i, +pm:/^หลังเที่ยง/i, +midnight:/^เที่ยงคืน/i, +noon:/^เที่ยง/i, +morning:/เช้า/i, +afternoon:/บ่าย/i, +evening:/เย็น/i, +night:/กลางคืน/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/tr/_lib/formatDistance.js +var formatDistanceLocale$8={ +lessThanXSeconds:{ +one:"bir saniyeden az", +other:"{{count}} saniyeden az" +}, +xSeconds:{ +one:"1 saniye", +other:"{{count}} saniye" +}, +halfAMinute:"yarım dakika", +lessThanXMinutes:{ +one:"bir dakikadan az", +other:"{{count}} dakikadan az" +}, +xMinutes:{ +one:"1 dakika", +other:"{{count}} dakika" +}, +aboutXHours:{ +one:"yaklaşık 1 saat", +other:"yaklaşık {{count}} saat" +}, +xHours:{ +one:"1 saat", +other:"{{count}} saat" +}, +xDays:{ +one:"1 gün", +other:"{{count}} gün" +}, +aboutXWeeks:{ +one:"yaklaşık 1 hafta", +other:"yaklaşık {{count}} hafta" +}, +xWeeks:{ +one:"1 hafta", +other:"{{count}} hafta" +}, +aboutXMonths:{ +one:"yaklaşık 1 ay", +other:"yaklaşık {{count}} ay" +}, +xMonths:{ +one:"1 ay", +other:"{{count}} ay" +}, +aboutXYears:{ +one:"yaklaşık 1 yıl", +other:"yaklaşık {{count}} yıl" +}, +xYears:{ +one:"1 yıl", +other:"{{count}} yıl" +}, +overXYears:{ +one:"1 yıldan fazla", +other:"{{count}} yıldan fazla" +}, +almostXYears:{ +one:"neredeyse 1 yıl", +other:"neredeyse {{count}} yıl" +} +}; +var formatDistance$8=function formatDistance$8(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$8[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",count.toString()); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" sonra";else +return result+" önce"; +return result; +}; +var formatLong$8={ +date:buildFormatLongFn({ +formats:{ +full:"d MMMM y EEEE", +long:"d MMMM y", +medium:"d MMM y", +short:"dd.MM.yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'saat' {{time}}", +long:"{{date}} 'saat' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/tr/_lib/formatRelative.js +var formatRelativeLocale$8={ +lastWeek:"'geçen hafta' eeee 'saat' p", +yesterday:"'dün saat' p", +today:"'bugün saat' p", +tomorrow:"'yarın saat' p", +nextWeek:"eeee 'saat' p", +other:"P" +}; +var formatRelative$8=function formatRelative$8(token,_date,_baseDate,_options){return formatRelativeLocale$8[token];}; +//#endregion +//#region dist/date-fns/locale/tr/_lib/localize.js +var eraValues$8={ +narrow:["MÖ","MS"], +abbreviated:["MÖ","MS"], +wide:["Milattan Önce","Milattan Sonra"] +}; +var quarterValues$8={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1Ç", +"2Ç", +"3Ç", +"4Ç"], + +wide:[ +"İlk çeyrek", +"İkinci Çeyrek", +"Üçüncü çeyrek", +"Son çeyrek"] + +}; +var monthValues$8={ +narrow:[ +"O", +"Ş", +"M", +"N", +"M", +"H", +"T", +"A", +"E", +"E", +"K", +"A"], + +abbreviated:[ +"Oca", +"Şub", +"Mar", +"Nis", +"May", +"Haz", +"Tem", +"Ağu", +"Eyl", +"Eki", +"Kas", +"Ara"], + +wide:[ +"Ocak", +"Şubat", +"Mart", +"Nisan", +"Mayıs", +"Haziran", +"Temmuz", +"Ağustos", +"Eylül", +"Ekim", +"Kasım", +"Aralık"] + +}; +var dayValues$8={ +narrow:[ +"P", +"P", +"S", +"Ç", +"P", +"C", +"C"], + +short:[ +"Pz", +"Pt", +"Sa", +"Ça", +"Pe", +"Cu", +"Ct"], + +abbreviated:[ +"Paz", +"Pzt", +"Sal", +"Çar", +"Per", +"Cum", +"Cts"], + +wide:[ +"Pazar", +"Pazartesi", +"Salı", +"Çarşamba", +"Perşembe", +"Cuma", +"Cumartesi"] + +}; +var dayPeriodValues$8={ +narrow:{ +am:"öö", +pm:"ös", +midnight:"gy", +noon:"ö", +morning:"sa", +afternoon:"ös", +evening:"ak", +night:"ge" +}, +abbreviated:{ +am:"ÖÖ", +pm:"ÖS", +midnight:"gece yarısı", +noon:"öğle", +morning:"sabah", +afternoon:"öğleden sonra", +evening:"akşam", +night:"gece" +}, +wide:{ +am:"Ö.Ö.", +pm:"Ö.S.", +midnight:"gece yarısı", +noon:"öğle", +morning:"sabah", +afternoon:"öğleden sonra", +evening:"akşam", +night:"gece" +} +}; +var formattingDayPeriodValues$8={ +narrow:{ +am:"öö", +pm:"ös", +midnight:"gy", +noon:"ö", +morning:"sa", +afternoon:"ös", +evening:"ak", +night:"ge" +}, +abbreviated:{ +am:"ÖÖ", +pm:"ÖS", +midnight:"gece yarısı", +noon:"öğlen", +morning:"sabahleyin", +afternoon:"öğleden sonra", +evening:"akşamleyin", +night:"geceleyin" +}, +wide:{ +am:"ö.ö.", +pm:"ö.s.", +midnight:"gece yarısı", +noon:"öğlen", +morning:"sabahleyin", +afternoon:"öğleden sonra", +evening:"akşamleyin", +night:"geceleyin" +} +}; +var ordinalNumber$8=function ordinalNumber$8(dirtyNumber,_options){ +return Number(dirtyNumber)+"."; +}; +//#endregion +//#region dist/date-fns/locale/tr.js +/** +* @category Locales +* @summary Turkish locale. +* @language Turkish +* @iso-639-2 tur +* @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) +* @author Berkay Sargın [@berkaey](https://github.com/berkaey) +* @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) +* @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) +* @author İsmail Kayar [@ikayar](https://github.com/ikayar) +* +* +*/ +var _tr={ +code:"tr", +formatDistance:formatDistance$8, +formatLong:formatLong$8, +formatRelative:formatRelative$8, +localize:{ +ordinalNumber:ordinalNumber$8, +era:buildLocalizeFn({ +values:eraValues$8, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$8, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} +}), +month:buildLocalizeFn({ +values:monthValues$8, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$8, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$8, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$8, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(\.)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){ +return parseInt(value,10); +} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(mö|ms)/i, +abbreviated:/^(mö|ms)/i, +wide:/^(milattan önce|milattan sonra)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]ç/i, +wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +any:[ +/1/i, +/2/i, +/3/i, +/4/i], + +abbreviated:[ +/1ç/i, +/2ç/i, +/3ç/i, +/4ç/i], + +wide:[ +/^(i|İ)lk çeyrek/i, +/(i|İ)kinci çeyrek/i, +/üçüncü çeyrek/i, +/son çeyrek/i] + +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[oşmnhtaek]/i, +abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, +wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^o/i, +/^ş/i, +/^m/i, +/^n/i, +/^m/i, +/^h/i, +/^t/i, +/^a/i, +/^e/i, +/^e/i, +/^k/i, +/^a/i], + +any:[ +/^o/i, +/^ş/i, +/^mar/i, +/^n/i, +/^may/i, +/^h/i, +/^t/i, +/^ağ/i, +/^ey/i, +/^ek/i, +/^k/i, +/^ar/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[psçc]/i, +short:/^(pz|pt|sa|ça|pe|cu|ct)/i, +abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i, +wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^p/i, +/^p/i, +/^s/i, +/^ç/i, +/^p/i, +/^c/i, +/^c/i], + +any:[ +/^pz/i, +/^pt/i, +/^sa/i, +/^ça/i, +/^pe/i, +/^cu/i, +/^ct/i], + +wide:[ +/^pazar(?!tesi)/i, +/^pazartesi/i, +/^salı/i, +/^çarşamba/i, +/^perşembe/i, +/^cuma(?!rtesi)/i, +/^cumartesi/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i, +any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ö\.?ö\.?/i, +pm:/^ö\.?s\.?/i, +midnight:/^(gy|gece yarısı)/i, +noon:/^öğ/i, +morning:/^sa/i, +afternoon:/^öğleden sonra/i, +evening:/^ak/i, +night:/^ge/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/ug/_lib/formatDistance.js +var formatDistanceLocale$7={ +lessThanXSeconds:{ +one:"بىر سىكۇنت ئىچىدە", +other:"سىكۇنت ئىچىدە {{count}}" +}, +xSeconds:{ +one:"بىر سىكۇنت", +other:"سىكۇنت {{count}}" +}, +halfAMinute:"يىرىم مىنۇت", +lessThanXMinutes:{ +one:"بىر مىنۇت ئىچىدە", +other:"مىنۇت ئىچىدە {{count}}" +}, +xMinutes:{ +one:"بىر مىنۇت", +other:"مىنۇت {{count}}" +}, +aboutXHours:{ +one:"تەخمىنەن بىر سائەت", +other:"سائەت {{count}} تەخمىنەن" +}, +xHours:{ +one:"بىر سائەت", +other:"سائەت {{count}}" +}, +xDays:{ +one:"بىر كۈن", +other:"كۈن {{count}}" +}, +aboutXWeeks:{ +one:"تەخمىنەن بىرھەپتە", +other:"ھەپتە {{count}} تەخمىنەن" +}, +xWeeks:{ +one:"بىرھەپتە", +other:"ھەپتە {{count}}" +}, +aboutXMonths:{ +one:"تەخمىنەن بىر ئاي", +other:"ئاي {{count}} تەخمىنەن" +}, +xMonths:{ +one:"بىر ئاي", +other:"ئاي {{count}}" +}, +aboutXYears:{ +one:"تەخمىنەن بىر يىل", +other:"يىل {{count}} تەخمىنەن" +}, +xYears:{ +one:"بىر يىل", +other:"يىل {{count}}" +}, +overXYears:{ +one:"بىر يىلدىن ئارتۇق", +other:"يىلدىن ئارتۇق {{count}}" +}, +almostXYears:{ +one:"ئاساسەن بىر يىل", +other:"يىل {{count}} ئاساسەن" +} +}; +var formatDistance$7=function formatDistance$7(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$7[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result;else +return result+" بولدى"; +return result; +}; +var formatLong$7={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, MMMM do, y", +long:"MMMM do, y", +medium:"MMM d, y", +short:"MM/dd/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss a zzzz", +long:"h:mm:ss a z", +medium:"h:mm:ss a", +short:"h:mm a" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'دە' {{time}}", +long:"{{date}} 'دە' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/ug/_lib/formatRelative.js +var formatRelativeLocale$7={ +lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p", +yesterday:"'تۈنۈگۈن دە' p", +today:"'بۈگۈن دە' p", +tomorrow:"'ئەتە دە' p", +nextWeek:"eeee 'دە' p", +other:"P" +}; +var formatRelative$7=function formatRelative$7(token,_date,_baseDate,_options){return formatRelativeLocale$7[token];}; +//#endregion +//#region dist/date-fns/locale/ug/_lib/localize.js +var eraValues$7={ +narrow:["ب","ك"], +abbreviated:["ب","ك"], +wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"] +}; +var quarterValues$7={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1", +"2", +"3", +"4"], + +wide:[ +"بىرىنجى چارەك", +"ئىككىنجى چارەك", +"ئۈچىنجى چارەك", +"تۆتىنجى چارەك"] + +}; +var monthValues$7={ +narrow:[ +"ي", +"ف", +"م", +"ا", +"م", +"ى", +"ى", +"ا", +"س", +"ۆ", +"ن", +"د"], + +abbreviated:[ +"يانۋار", +"فېۋىرال", +"مارت", +"ئاپرىل", +"ماي", +"ئىيۇن", +"ئىيول", +"ئاۋغۇست", +"سىنتەبىر", +"ئۆكتەبىر", +"نويابىر", +"دىكابىر"], + +wide:[ +"يانۋار", +"فېۋىرال", +"مارت", +"ئاپرىل", +"ماي", +"ئىيۇن", +"ئىيول", +"ئاۋغۇست", +"سىنتەبىر", +"ئۆكتەبىر", +"نويابىر", +"دىكابىر"] + +}; +var dayValues$7={ +narrow:[ +"ي", +"د", +"س", +"چ", +"پ", +"ج", +"ش"], + +short:[ +"ي", +"د", +"س", +"چ", +"پ", +"ج", +"ش"], + +abbreviated:[ +"يەكشەنبە", +"دۈشەنبە", +"سەيشەنبە", +"چارشەنبە", +"پەيشەنبە", +"جۈمە", +"شەنبە"], + +wide:[ +"يەكشەنبە", +"دۈشەنبە", +"سەيشەنبە", +"چارشەنبە", +"پەيشەنبە", +"جۈمە", +"شەنبە"] + +}; +var dayPeriodValues$7={ +narrow:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەن", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشىم", +night:"كىچە" +}, +abbreviated:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەن", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشىم", +night:"كىچە" +}, +wide:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەن", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشىم", +night:"كىچە" +} +}; +var formattingDayPeriodValues$7={ +narrow:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەندە", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشامدا", +night:"كىچىدە" +}, +abbreviated:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەندە", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشامدا", +night:"كىچىدە" +}, +wide:{ +am:"ئە", +pm:"چ", +midnight:"ك", +noon:"چ", +morning:"ئەتىگەندە", +afternoon:"چۈشتىن كىيىن", +evening:"ئاخشامدا", +night:"كىچىدە" +} +}; +var ordinalNumber$7=function ordinalNumber$7(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/ug.js +/** +* @category Locales +* @summary Uighur locale +* @language Uighur +* @iso-639-2 uig +* @author Abduwaly M. [@abduwaly](https://github.com/abduwaly) +*/ +var _ug={ +code:"ug", +formatDistance:formatDistance$7, +formatLong:formatLong$7, +formatRelative:formatRelative$7, +localize:{ +ordinalNumber:ordinalNumber$7, +era:buildLocalizeFn({ +values:eraValues$7, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$7, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$7, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$7, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$7, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$7, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(th|st|nd|rd)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(ب|ك)/i, +wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^بۇرۇن/i,/^كىيىن/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^چ[1234]/i, +wide:/^چارەك [1234]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[يفمئامئ‍ئاسۆند]/i, +abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i, +wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/i, +/^ف/i, +/^م/i, +/^ا/i, +/^م/i, +/^ى‍/i, +/^ى‍/i, +/^ا‍/i, +/^س/i, +/^ۆ/i, +/^ن/i, +/^د/i], + +any:[ +/^يان/i, +/^فېۋ/i, +/^مار/i, +/^ئاپ/i, +/^ماي/i, +/^ئىيۇن/i, +/^ئىيول/i, +/^ئاۋ/i, +/^سىن/i, +/^ئۆك/i, +/^نوي/i, +/^دىك/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[دسچپجشي]/i, +short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, +abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, +wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^ي/i, +/^د/i, +/^س/i, +/^چ/i, +/^پ/i, +/^ج/i, +/^ش/i], + +any:[ +/^ي/i, +/^د/i, +/^س/i, +/^چ/i, +/^پ/i, +/^ج/i, +/^ش/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i, +any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^ئە/i, +pm:/^چ/i, +midnight:/^ك/i, +noon:/^چ/i, +morning:/ئەتىگەن/i, +afternoon:/چۈشتىن كىيىن/i, +evening:/ئاخشىم/i, +night:/كىچە/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/uk/_lib/formatDistance.js +function declension(scheme,count){ +if(scheme.one!==void 0&&count===1)return scheme.one; +var rem10=count%10; +var rem100=count%100; +if(rem10===1&&rem100!==11)return scheme.singularNominative.replace("{{count}}",String(count));else +if(rem10>=2&&rem10<=4&&(rem100<10||rem100>20))return scheme.singularGenitive.replace("{{count}}",String(count));else +return scheme.pluralGenitive.replace("{{count}}",String(count)); +} +function buildLocalizeTokenFn(scheme){ +return function(count,options){ +if(options&&options.addSuffix){if(options.comparison&&options.comparison>0){if(scheme.future)return declension(scheme.future,count);else +return"за "+declension(scheme.regular,count);}else +if(scheme.past)return declension(scheme.past,count);else +return declension(scheme.regular,count)+" тому";}else +return declension(scheme.regular,count); +}; +} +var halfAtMinute=function halfAtMinute(_,options){ +if(options&&options.addSuffix)if(options.comparison&&options.comparison>0)return"за півхвилини";else +return"півхвилини тому"; +return"півхвилини"; +}; +var formatDistanceLocale$6={ +lessThanXSeconds:buildLocalizeTokenFn({ +regular:{ +one:"менше секунди", +singularNominative:"менше {{count}} секунди", +singularGenitive:"менше {{count}} секунд", +pluralGenitive:"менше {{count}} секунд" +}, +future:{ +one:"менше, ніж за секунду", +singularNominative:"менше, ніж за {{count}} секунду", +singularGenitive:"менше, ніж за {{count}} секунди", +pluralGenitive:"менше, ніж за {{count}} секунд" +} +}), +xSeconds:buildLocalizeTokenFn({ +regular:{ +singularNominative:"{{count}} секунда", +singularGenitive:"{{count}} секунди", +pluralGenitive:"{{count}} секунд" +}, +past:{ +singularNominative:"{{count}} секунду тому", +singularGenitive:"{{count}} секунди тому", +pluralGenitive:"{{count}} секунд тому" +}, +future:{ +singularNominative:"за {{count}} секунду", +singularGenitive:"за {{count}} секунди", +pluralGenitive:"за {{count}} секунд" +} +}), +halfAMinute:halfAtMinute, +lessThanXMinutes:buildLocalizeTokenFn({ +regular:{ +one:"менше хвилини", +singularNominative:"менше {{count}} хвилини", +singularGenitive:"менше {{count}} хвилин", +pluralGenitive:"менше {{count}} хвилин" +}, +future:{ +one:"менше, ніж за хвилину", +singularNominative:"менше, ніж за {{count}} хвилину", +singularGenitive:"менше, ніж за {{count}} хвилини", +pluralGenitive:"менше, ніж за {{count}} хвилин" +} +}), +xMinutes:buildLocalizeTokenFn({ +regular:{ +singularNominative:"{{count}} хвилина", +singularGenitive:"{{count}} хвилини", +pluralGenitive:"{{count}} хвилин" +}, +past:{ +singularNominative:"{{count}} хвилину тому", +singularGenitive:"{{count}} хвилини тому", +pluralGenitive:"{{count}} хвилин тому" +}, +future:{ +singularNominative:"за {{count}} хвилину", +singularGenitive:"за {{count}} хвилини", +pluralGenitive:"за {{count}} хвилин" +} +}), +aboutXHours:buildLocalizeTokenFn({ +regular:{ +singularNominative:"близько {{count}} години", +singularGenitive:"близько {{count}} годин", +pluralGenitive:"близько {{count}} годин" +}, +future:{ +singularNominative:"приблизно за {{count}} годину", +singularGenitive:"приблизно за {{count}} години", +pluralGenitive:"приблизно за {{count}} годин" +} +}), +xHours:buildLocalizeTokenFn({regular:{ +singularNominative:"{{count}} годину", +singularGenitive:"{{count}} години", +pluralGenitive:"{{count}} годин" +}}), +xDays:buildLocalizeTokenFn({regular:{ +singularNominative:"{{count}} день", +singularGenitive:"{{count}} днi", +pluralGenitive:"{{count}} днів" +}}), +aboutXWeeks:buildLocalizeTokenFn({ +regular:{ +singularNominative:"близько {{count}} тижня", +singularGenitive:"близько {{count}} тижнів", +pluralGenitive:"близько {{count}} тижнів" +}, +future:{ +singularNominative:"приблизно за {{count}} тиждень", +singularGenitive:"приблизно за {{count}} тижні", +pluralGenitive:"приблизно за {{count}} тижнів" +} +}), +xWeeks:buildLocalizeTokenFn({regular:{ +singularNominative:"{{count}} тиждень", +singularGenitive:"{{count}} тижні", +pluralGenitive:"{{count}} тижнів" +}}), +aboutXMonths:buildLocalizeTokenFn({ +regular:{ +singularNominative:"близько {{count}} місяця", +singularGenitive:"близько {{count}} місяців", +pluralGenitive:"близько {{count}} місяців" +}, +future:{ +singularNominative:"приблизно за {{count}} місяць", +singularGenitive:"приблизно за {{count}} місяці", +pluralGenitive:"приблизно за {{count}} місяців" +} +}), +xMonths:buildLocalizeTokenFn({regular:{ +singularNominative:"{{count}} місяць", +singularGenitive:"{{count}} місяці", +pluralGenitive:"{{count}} місяців" +}}), +aboutXYears:buildLocalizeTokenFn({ +regular:{ +singularNominative:"близько {{count}} року", +singularGenitive:"близько {{count}} років", +pluralGenitive:"близько {{count}} років" +}, +future:{ +singularNominative:"приблизно за {{count}} рік", +singularGenitive:"приблизно за {{count}} роки", +pluralGenitive:"приблизно за {{count}} років" +} +}), +xYears:buildLocalizeTokenFn({regular:{ +singularNominative:"{{count}} рік", +singularGenitive:"{{count}} роки", +pluralGenitive:"{{count}} років" +}}), +overXYears:buildLocalizeTokenFn({ +regular:{ +singularNominative:"більше {{count}} року", +singularGenitive:"більше {{count}} років", +pluralGenitive:"більше {{count}} років" +}, +future:{ +singularNominative:"більше, ніж за {{count}} рік", +singularGenitive:"більше, ніж за {{count}} роки", +pluralGenitive:"більше, ніж за {{count}} років" +} +}), +almostXYears:buildLocalizeTokenFn({ +regular:{ +singularNominative:"майже {{count}} рік", +singularGenitive:"майже {{count}} роки", +pluralGenitive:"майже {{count}} років" +}, +future:{ +singularNominative:"майже за {{count}} рік", +singularGenitive:"майже за {{count}} роки", +pluralGenitive:"майже за {{count}} років" +} +}) +}; +var formatDistance$6=function formatDistance$6(token,count,options){ +options=options||{}; +return formatDistanceLocale$6[token](count,options); +}; +var formatLong$6={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM y 'р.'", +long:"do MMMM y 'р.'", +medium:"d MMM y 'р.'", +short:"dd.MM.y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} 'о' {{time}}", +long:"{{date}} 'о' {{time}}", +medium:"{{date}}, {{time}}", +short:"{{date}}, {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/uk/_lib/formatRelative.js +var accusativeWeekdays=[ +"неділю", +"понеділок", +"вівторок", +"середу", +"четвер", +"п’ятницю", +"суботу"]; + +function lastWeek(day){ +var weekday=accusativeWeekdays[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у минулу "+weekday+" о' p"; +case 1: +case 2: +case 4:return"'у минулий "+weekday+" о' p"; +} +} +function thisWeek(day){ +return"'у "+accusativeWeekdays[day]+" о' p"; +} +function nextWeek(day){ +var weekday=accusativeWeekdays[day]; +switch(day){ +case 0: +case 3: +case 5: +case 6:return"'у наступну "+weekday+" о' p"; +case 1: +case 2: +case 4:return"'у наступний "+weekday+" о' p"; +} +} +var lastWeekFormat=function lastWeekFormat(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek(day);else +return lastWeek(day); +}; +var nextWeekFormat=function nextWeekFormat(dirtyDate,baseDate,options){ +var date=toDate(dirtyDate); +var day=date.getDay(); +if(isSameWeek(date,baseDate,options))return thisWeek(day);else +return nextWeek(day); +}; +var formatRelativeLocale$6={ +lastWeek:lastWeekFormat, +yesterday:"'вчора о' p", +today:"'сьогодні о' p", +tomorrow:"'завтра о' p", +nextWeek:nextWeekFormat, +other:"P" +}; +var formatRelative$6=function formatRelative$6(token,date,baseDate,options){ +var format=formatRelativeLocale$6[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/uk/_lib/localize.js +var eraValues$6={ +narrow:["до н.е.","н.е."], +abbreviated:["до н. е.","н. е."], +wide:["до нашої ери","нашої ери"] +}; +var quarterValues$6={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-й кв.", +"2-й кв.", +"3-й кв.", +"4-й кв."], + +wide:[ +"1-й квартал", +"2-й квартал", +"3-й квартал", +"4-й квартал"] + +}; +var monthValues$6={ +narrow:[ +"С", +"Л", +"Б", +"К", +"Т", +"Ч", +"Л", +"С", +"В", +"Ж", +"Л", +"Г"], + +abbreviated:[ +"січ.", +"лют.", +"берез.", +"квіт.", +"трав.", +"черв.", +"лип.", +"серп.", +"верес.", +"жовт.", +"листоп.", +"груд."], + +wide:[ +"січень", +"лютий", +"березень", +"квітень", +"травень", +"червень", +"липень", +"серпень", +"вересень", +"жовтень", +"листопад", +"грудень"] + +}; +var formattingMonthValues$1={ +narrow:[ +"С", +"Л", +"Б", +"К", +"Т", +"Ч", +"Л", +"С", +"В", +"Ж", +"Л", +"Г"], + +abbreviated:[ +"січ.", +"лют.", +"берез.", +"квіт.", +"трав.", +"черв.", +"лип.", +"серп.", +"верес.", +"жовт.", +"листоп.", +"груд."], + +wide:[ +"січня", +"лютого", +"березня", +"квітня", +"травня", +"червня", +"липня", +"серпня", +"вересня", +"жовтня", +"листопада", +"грудня"] + +}; +var dayValues$6={ +narrow:[ +"Н", +"П", +"В", +"С", +"Ч", +"П", +"С"], + +short:[ +"нд", +"пн", +"вт", +"ср", +"чт", +"пт", +"сб"], + +abbreviated:[ +"нед", +"пон", +"вів", +"сер", +"чтв", +"птн", +"суб"], + +wide:[ +"неділя", +"понеділок", +"вівторок", +"середа", +"четвер", +"п’ятниця", +"субота"] + +}; +var dayPeriodValues$6={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"півн.", +noon:"пол.", +morning:"ранок", +afternoon:"день", +evening:"веч.", +night:"ніч" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"півн.", +noon:"пол.", +morning:"ранок", +afternoon:"день", +evening:"веч.", +night:"ніч" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"північ", +noon:"полудень", +morning:"ранок", +afternoon:"день", +evening:"вечір", +night:"ніч" +} +}; +var formattingDayPeriodValues$6={ +narrow:{ +am:"ДП", +pm:"ПП", +midnight:"півн.", +noon:"пол.", +morning:"ранку", +afternoon:"дня", +evening:"веч.", +night:"ночі" +}, +abbreviated:{ +am:"ДП", +pm:"ПП", +midnight:"півн.", +noon:"пол.", +morning:"ранку", +afternoon:"дня", +evening:"веч.", +night:"ночі" +}, +wide:{ +am:"ДП", +pm:"ПП", +midnight:"північ", +noon:"полудень", +morning:"ранку", +afternoon:"дня", +evening:"веч.", +night:"ночі" +} +}; +var ordinalNumber$6=function ordinalNumber$6(dirtyNumber,options){ +var unit=String(options===null||options===void 0?void 0:options.unit); +var number=Number(dirtyNumber); +var suffix; +if(unit==="date"){if(number===3||number===23)suffix="-є";else +suffix="-е";}else +if(unit==="minute"||unit==="second"||unit==="hour")suffix="-а";else +suffix="-й"; +return number+suffix; +}; +//#endregion +//#region dist/date-fns/locale/uk.js +/** +* @category Locales +* @summary Ukrainian locale. +* @language Ukrainian +* @iso-639-2 ukr +* @author Andrii Korzh [@korzhyk](https://github.com/korzhyk) +* @author Andriy Shcherbyak [@shcherbyakdev](https://github.com/shcherbyakdev) +*/ +var _uk={ +code:"uk", +formatDistance:formatDistance$6, +formatLong:formatLong$6, +formatRelative:formatRelative$6, +localize:{ +ordinalNumber:ordinalNumber$6, +era:buildLocalizeFn({ +values:eraValues$6, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$6, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$6, +defaultWidth:"wide", +formattingValues:formattingMonthValues$1, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$6, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$6, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$6, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(-?(е|й|є|а|я))?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^((до )?н\.?\s?е\.?)/i, +abbreviated:/^((до )?н\.?\s?е\.?)/i, +wide:/^(до нашої ери|нашої ери|наша ера)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^д/i,/^н/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234](-?[иі]?й?)? кв.?/i, +wide:/^[1234](-?[иі]?й?)? квартал/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[слбктчвжг]/i, +abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i, +wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^с/i, +/^л/i, +/^б/i, +/^к/i, +/^т/i, +/^ч/i, +/^л/i, +/^с/i, +/^в/i, +/^ж/i, +/^л/i, +/^г/i], + +any:[ +/^сі/i, +/^лю/i, +/^б/i, +/^к/i, +/^т/i, +/^ч/i, +/^лип/i, +/^се/i, +/^в/i, +/^ж/i, +/^лис/i, +/^г/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[нпвсч]/i, +short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i, +abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i, +wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^н/i, +/^п/i, +/^в/i, +/^с/i, +/^ч/i, +/^п/i, +/^с/i], + +any:[ +/^н/i, +/^п[он]/i, +/^в/i, +/^с[ер]/i, +/^ч/i, +/^п\W*?[ят]/i, +/^с[уб]/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, +abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, +wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^дп/i, +pm:/^пп/i, +midnight:/^півн/i, +noon:/^пол/i, +morning:/^р/i, +afternoon:/^д[ен]/i, +evening:/^в/i, +night:/^н/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/uz/_lib/formatDistance.js +var formatDistanceLocale$5={ +lessThanXSeconds:{ +one:"sekunddan kam", +other:"{{count}} sekunddan kam" +}, +xSeconds:{ +one:"1 sekund", +other:"{{count}} sekund" +}, +halfAMinute:"yarim minut", +lessThanXMinutes:{ +one:"bir minutdan kam", +other:"{{count}} minutdan kam" +}, +xMinutes:{ +one:"1 minut", +other:"{{count}} minut" +}, +aboutXHours:{ +one:"tahminan 1 soat", +other:"tahminan {{count}} soat" +}, +xHours:{ +one:"1 soat", +other:"{{count}} soat" +}, +xDays:{ +one:"1 kun", +other:"{{count}} kun" +}, +aboutXWeeks:{ +one:"tahminan 1 hafta", +other:"tahminan {{count}} hafta" +}, +xWeeks:{ +one:"1 hafta", +other:"{{count}} hafta" +}, +aboutXMonths:{ +one:"tahminan 1 oy", +other:"tahminan {{count}} oy" +}, +xMonths:{ +one:"1 oy", +other:"{{count}} oy" +}, +aboutXYears:{ +one:"tahminan 1 yil", +other:"tahminan {{count}} yil" +}, +xYears:{ +one:"1 yil", +other:"{{count}} yil" +}, +overXYears:{ +one:"1 yildan ko'p", +other:"{{count}} yildan ko'p" +}, +almostXYears:{ +one:"deyarli 1 yil", +other:"deyarli {{count}} yil" +} +}; +var formatDistance$5=function formatDistance$5(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$5[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" dan keyin";else +return result+" oldin"; +return result; +}; +var formatLong$5={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM, y", +long:"do MMMM, y", +medium:"d MMM, y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"h:mm:ss zzzz", +long:"h:mm:ss z", +medium:"h:mm:ss", +short:"h:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/uz/_lib/formatRelative.js +var formatRelativeLocale$5={ +lastWeek:"'oldingi' eeee p 'da'", +yesterday:"'kecha' p 'da'", +today:"'bugun' p 'da'", +tomorrow:"'ertaga' p 'da'", +nextWeek:"eeee p 'da'", +other:"P" +}; +var formatRelative$5=function formatRelative$5(token,_date,_baseDate,_options){return formatRelativeLocale$5[token];}; +//#endregion +//#region dist/date-fns/locale/uz/_lib/localize.js +var eraValues$5={ +narrow:["M.A","M."], +abbreviated:["M.A","M."], +wide:["Miloddan Avvalgi","Milodiy"] +}; +var quarterValues$5={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"CH.1", +"CH.2", +"CH.3", +"CH.4"], + +wide:[ +"1-chi chorak", +"2-chi chorak", +"3-chi chorak", +"4-chi chorak"] + +}; +var monthValues$5={ +narrow:[ +"Y", +"F", +"M", +"A", +"M", +"I", +"I", +"A", +"S", +"O", +"N", +"D"], + +abbreviated:[ +"Yan", +"Fev", +"Mar", +"Apr", +"May", +"Iyun", +"Iyul", +"Avg", +"Sen", +"Okt", +"Noy", +"Dek"], + +wide:[ +"Yanvar", +"Fevral", +"Mart", +"Aprel", +"May", +"Iyun", +"Iyul", +"Avgust", +"Sentabr", +"Oktabr", +"Noyabr", +"Dekabr"] + +}; +var dayValues$5={ +narrow:[ +"Y", +"D", +"S", +"CH", +"P", +"J", +"SH"], + +short:[ +"Ya", +"Du", +"Se", +"Cho", +"Pa", +"Ju", +"Sha"], + +abbreviated:[ +"Yak", +"Dush", +"Sesh", +"Chor", +"Pay", +"Jum", +"Shan"], + +wide:[ +"Yakshanba", +"Dushanba", +"Seshanba", +"Chorshanba", +"Payshanba", +"Juma", +"Shanba"] + +}; +var dayPeriodValues$5={ +narrow:{ +am:"a", +pm:"p", +midnight:"y.t", +noon:"p.", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"yarim tun", +noon:"peshin", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"yarim tun", +noon:"peshin", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +} +}; +var formattingDayPeriodValues$5={ +narrow:{ +am:"a", +pm:"p", +midnight:"y.t", +noon:"p.", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"yarim tun", +noon:"peshin", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +}, +wide:{ +am:"a.m.", +pm:"p.m.", +midnight:"yarim tun", +noon:"peshin", +morning:"ertalab", +afternoon:"tushdan keyin", +evening:"kechqurun", +night:"tun" +} +}; +var ordinalNumber$5=function ordinalNumber$5(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/uz.js +/** +* @category Locales +* @summary Uzbek locale. +* @language Uzbek +* @iso-639-2 uzb +* @author Mukhammadali [@mukhammadali](https://github.com/Mukhammadali) +*/ +var _uz={ +code:"uz", +formatDistance:formatDistance$5, +formatLong:formatLong$5, +formatRelative:formatRelative$5, +localize:{ +ordinalNumber:ordinalNumber$5, +era:buildLocalizeFn({ +values:eraValues$5, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$5, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$5, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$5, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$5, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$5, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(chi)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(m\.a|m\.)/i, +abbreviated:/^(m\.a\.?\s?m\.?)/i, +wide:/^(miloddan avval|miloddan keyin)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^b/i,/^(a|c)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^q[1234]/i, +wide:/^[1234](chi)? chorak/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[yfmasond]/i, +abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i, +wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^y/i, +/^f/i, +/^m/i, +/^a/i, +/^m/i, +/^i/i, +/^i/i, +/^a/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i], + +any:[ +/^ya/i, +/^f/i, +/^mar/i, +/^ap/i, +/^may/i, +/^iyun/i, +/^iyul/i, +/^av/i, +/^s/i, +/^o/i, +/^n/i, +/^d/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[ydschj]/i, +short:/^(ya|du|se|cho|pa|ju|sha)/i, +abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i, +wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^y/i, +/^d/i, +/^s/i, +/^ch/i, +/^p/i, +/^j/i, +/^sh/i], + +any:[ +/^ya/i, +/^d/i, +/^se/i, +/^ch/i, +/^p/i, +/^j/i, +/^sh/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i, +any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i +}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^a/i, +pm:/^p/i, +midnight:/^y\.t/i, +noon:/^pe/i, +morning:/ertalab/i, +afternoon:/tushdan keyin/i, +evening:/kechqurun/i, +night:/tun/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/uz-Cyrl/_lib/formatDistance.js +var formatDistanceLocale$4={ +lessThanXSeconds:{ +one:"1 сониядан кам", +other:"{{count}} сониядан кам" +}, +xSeconds:{ +one:"1 сония", +other:"{{count}} сония" +}, +halfAMinute:"ярим дақиқа", +lessThanXMinutes:{ +one:"1 дақиқадан кам", +other:"{{count}} дақиқадан кам" +}, +xMinutes:{ +one:"1 дақиқа", +other:"{{count}} дақиқа" +}, +aboutXHours:{ +one:"тахминан 1 соат", +other:"тахминан {{count}} соат" +}, +xHours:{ +one:"1 соат", +other:"{{count}} соат" +}, +xDays:{ +one:"1 кун", +other:"{{count}} кун" +}, +aboutXWeeks:{ +one:"тахминан 1 хафта", +other:"тахминан {{count}} хафта" +}, +xWeeks:{ +one:"1 хафта", +other:"{{count}} хафта" +}, +aboutXMonths:{ +one:"тахминан 1 ой", +other:"тахминан {{count}} ой" +}, +xMonths:{ +one:"1 ой", +other:"{{count}} ой" +}, +aboutXYears:{ +one:"тахминан 1 йил", +other:"тахминан {{count}} йил" +}, +xYears:{ +one:"1 йил", +other:"{{count}} йил" +}, +overXYears:{ +one:"1 йилдан кўп", +other:"{{count}} йилдан кўп" +}, +almostXYears:{ +one:"деярли 1 йил", +other:"деярли {{count}} йил" +} +}; +var formatDistance$4=function formatDistance$4(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$4[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"дан кейин";else +return result+" олдин"; +return result; +}; +var formatLong$4={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, do MMMM, y", +long:"do MMMM, y", +medium:"d MMM, y", +short:"dd/MM/yyyy" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"H:mm:ss zzzz", +long:"H:mm:ss z", +medium:"H:mm:ss", +short:"H:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{any:"{{date}}, {{time}}"}, +defaultWidth:"any" +}) +}; +//#endregion +//#region dist/date-fns/locale/uz-Cyrl/_lib/formatRelative.js +var formatRelativeLocale$4={ +lastWeek:"'ўтган' eeee p 'да'", +yesterday:"'кеча' p 'да'", +today:"'бугун' p 'да'", +tomorrow:"'эртага' p 'да'", +nextWeek:"eeee p 'да'", +other:"P" +}; +var formatRelative$4=function formatRelative$4(token,_date,_baseDate,_options){return formatRelativeLocale$4[token];}; +//#endregion +//#region dist/date-fns/locale/uz-Cyrl/_lib/localize.js +var eraValues$4={ +narrow:["М.А","М"], +abbreviated:["М.А","М"], +wide:["Милоддан Аввалги","Милодий"] +}; +var quarterValues$4={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"1-чор.", +"2-чор.", +"3-чор.", +"4-чор."], + +wide:[ +"1-чорак", +"2-чорак", +"3-чорак", +"4-чорак"] + +}; +var monthValues$4={ +narrow:[ +"Я", +"Ф", +"М", +"А", +"М", +"И", +"И", +"А", +"С", +"О", +"Н", +"Д"], + +abbreviated:[ +"янв", +"фев", +"мар", +"апр", +"май", +"июн", +"июл", +"авг", +"сен", +"окт", +"ноя", +"дек"], + +wide:[ +"январ", +"феврал", +"март", +"апрел", +"май", +"июн", +"июл", +"август", +"сентабр", +"октабр", +"ноябр", +"декабр"] + +}; +var dayValues$4={ +narrow:[ +"Я", +"Д", +"С", +"Ч", +"П", +"Ж", +"Ш"], + +short:[ +"як", +"ду", +"се", +"чо", +"па", +"жу", +"ша"], + +abbreviated:[ +"якш", +"душ", +"сеш", +"чор", +"пай", +"жум", +"шан"], + +wide:[ +"якшанба", +"душанба", +"сешанба", +"чоршанба", +"пайшанба", +"жума", +"шанба"] + +}; +var dayPeriodValues$4={any:{ +am:"П.О.", +pm:"П.К.", +midnight:"ярим тун", +noon:"пешин", +morning:"эрталаб", +afternoon:"пешиндан кейин", +evening:"кечаси", +night:"тун" +}}; +var formattingDayPeriodValues$4={any:{ +am:"П.О.", +pm:"П.К.", +midnight:"ярим тун", +noon:"пешин", +morning:"эрталаб", +afternoon:"пешиндан кейин", +evening:"кечаси", +night:"тун" +}}; +var ordinalNumber$4=function ordinalNumber$4(dirtyNumber,_options){ +return String(dirtyNumber); +}; +//#endregion +//#region dist/date-fns/locale/uz-Cyrl.js +/** +* @category Locales +* @summary Uzbek Cyrillic locale. +* @language Uzbek +* @iso-639-2 uzb +* @author Kamronbek Shodmonov [@kamronbek28](https://github.com/kamronbek28) +*/ +var _uzCyrl={ +code:"uz-Cyrl", +formatDistance:formatDistance$4, +formatLong:formatLong$4, +formatRelative:formatRelative$4, +localize:{ +ordinalNumber:ordinalNumber$4, +era:buildLocalizeFn({ +values:eraValues$4, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$4, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$4, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$4, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$4, +defaultWidth:"any", +formattingValues:formattingDayPeriodValues$4, +defaultFormattingWidth:"any" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)(чи)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(м\.а|м\.)/i, +abbreviated:/^(м\.а|м\.)/i, +wide:/^(милоддан аввал|милоддан кейин)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^м/i,/^а/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^[1234]-чор./i, +wide:/^[1234]-чорак/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/1/i, +/2/i, +/3/i, +/4/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^[яфмамииасонд]/i, +abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i, +wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^я/i, +/^ф/i, +/^м/i, +/^а/i, +/^м/i, +/^и/i, +/^и/i, +/^а/i, +/^с/i, +/^о/i, +/^н/i, +/^д/i], + +any:[ +/^я/i, +/^ф/i, +/^мар/i, +/^ап/i, +/^май/i, +/^июн/i, +/^июл/i, +/^ав/i, +/^с/i, +/^о/i, +/^н/i, +/^д/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[ядсчпжш]/i, +short:/^(як|ду|се|чо|па|жу|ша)/i, +abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i, +wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^я/i, +/^д/i, +/^с/i, +/^ч/i, +/^п/i, +/^ж/i, +/^ш/i], + +any:[ +/^як/i, +/^ду/i, +/^се/i, +/^чор/i, +/^пай/i, +/^жу/i, +/^шан/i] + +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^п\.о\./i, +pm:/^п\.к\./i, +midnight:/^ярим тун/i, +noon:/^пешиндан кейин/i, +morning:/эрталаб/i, +afternoon:/пешиндан кейин/i, +evening:/кечаси/i, +night:/тун/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/vi/_lib/formatDistance.js +var formatDistanceLocale$3={ +lessThanXSeconds:{ +one:"dưới 1 giây", +other:"dưới {{count}} giây" +}, +xSeconds:{ +one:"1 giây", +other:"{{count}} giây" +}, +halfAMinute:"nửa phút", +lessThanXMinutes:{ +one:"dưới 1 phút", +other:"dưới {{count}} phút" +}, +xMinutes:{ +one:"1 phút", +other:"{{count}} phút" +}, +aboutXHours:{ +one:"khoảng 1 giờ", +other:"khoảng {{count}} giờ" +}, +xHours:{ +one:"1 giờ", +other:"{{count}} giờ" +}, +xDays:{ +one:"1 ngày", +other:"{{count}} ngày" +}, +aboutXWeeks:{ +one:"khoảng 1 tuần", +other:"khoảng {{count}} tuần" +}, +xWeeks:{ +one:"1 tuần", +other:"{{count}} tuần" +}, +aboutXMonths:{ +one:"khoảng 1 tháng", +other:"khoảng {{count}} tháng" +}, +xMonths:{ +one:"1 tháng", +other:"{{count}} tháng" +}, +aboutXYears:{ +one:"khoảng 1 năm", +other:"khoảng {{count}} năm" +}, +xYears:{ +one:"1 năm", +other:"{{count}} năm" +}, +overXYears:{ +one:"hơn 1 năm", +other:"hơn {{count}} năm" +}, +almostXYears:{ +one:"gần 1 năm", +other:"gần {{count}} năm" +} +}; +var formatDistance$3=function formatDistance$3(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$3[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+" nữa";else +return result+" trước"; +return result; +}; +var formatLong$3={ +date:buildFormatLongFn({ +formats:{ +full:"EEEE, 'ngày' d MMMM 'năm' y", +long:"'ngày' d MMMM 'năm' y", +medium:"d MMM 'năm' y", +short:"dd/MM/y" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"HH:mm:ss zzzz", +long:"HH:mm:ss z", +medium:"HH:mm:ss", +short:"HH:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/vi/_lib/formatRelative.js +var formatRelativeLocale$3={ +lastWeek:"eeee 'tuần trước vào lúc' p", +yesterday:"'hôm qua vào lúc' p", +today:"'hôm nay vào lúc' p", +tomorrow:"'ngày mai vào lúc' p", +nextWeek:"eeee 'tới vào lúc' p", +other:"P" +}; +var formatRelative$3=function formatRelative$3(token,_date,_baseDate,_options){return formatRelativeLocale$3[token];}; +//#endregion +//#region dist/date-fns/locale/vi/_lib/localize.js +var eraValues$3={ +narrow:["TCN","SCN"], +abbreviated:["trước CN","sau CN"], +wide:["trước Công Nguyên","sau Công Nguyên"] +}; +var quarterValues$3={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"Quý 1", +"Quý 2", +"Quý 3", +"Quý 4"] + +}; +var formattingQuarterValues={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"Q1", +"Q2", +"Q3", +"Q4"], + +wide:[ +"quý I", +"quý II", +"quý III", +"quý IV"] + +}; +var monthValues$3={ +narrow:[ +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"10", +"11", +"12"], + +abbreviated:[ +"Thg 1", +"Thg 2", +"Thg 3", +"Thg 4", +"Thg 5", +"Thg 6", +"Thg 7", +"Thg 8", +"Thg 9", +"Thg 10", +"Thg 11", +"Thg 12"], + +wide:[ +"Tháng Một", +"Tháng Hai", +"Tháng Ba", +"Tháng Tư", +"Tháng Năm", +"Tháng Sáu", +"Tháng Bảy", +"Tháng Tám", +"Tháng Chín", +"Tháng Mười", +"Tháng Mười Một", +"Tháng Mười Hai"] + +}; +var formattingMonthValues={ +narrow:[ +"01", +"02", +"03", +"04", +"05", +"06", +"07", +"08", +"09", +"10", +"11", +"12"], + +abbreviated:[ +"thg 1", +"thg 2", +"thg 3", +"thg 4", +"thg 5", +"thg 6", +"thg 7", +"thg 8", +"thg 9", +"thg 10", +"thg 11", +"thg 12"], + +wide:[ +"tháng 01", +"tháng 02", +"tháng 03", +"tháng 04", +"tháng 05", +"tháng 06", +"tháng 07", +"tháng 08", +"tháng 09", +"tháng 10", +"tháng 11", +"tháng 12"] + +}; +var dayValues$3={ +narrow:[ +"CN", +"T2", +"T3", +"T4", +"T5", +"T6", +"T7"], + +short:[ +"CN", +"Th 2", +"Th 3", +"Th 4", +"Th 5", +"Th 6", +"Th 7"], + +abbreviated:[ +"CN", +"Thứ 2", +"Thứ 3", +"Thứ 4", +"Thứ 5", +"Thứ 6", +"Thứ 7"], + +wide:[ +"Chủ Nhật", +"Thứ Hai", +"Thứ Ba", +"Thứ Tư", +"Thứ Năm", +"Thứ Sáu", +"Thứ Bảy"] + +}; +var dayPeriodValues$3={ +narrow:{ +am:"am", +pm:"pm", +midnight:"nửa đêm", +noon:"tr", +morning:"sg", +afternoon:"ch", +evening:"tối", +night:"đêm" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"nửa đêm", +noon:"trưa", +morning:"sáng", +afternoon:"chiều", +evening:"tối", +night:"đêm" +}, +wide:{ +am:"SA", +pm:"CH", +midnight:"nửa đêm", +noon:"trưa", +morning:"sáng", +afternoon:"chiều", +evening:"tối", +night:"đêm" +} +}; +var formattingDayPeriodValues$3={ +narrow:{ +am:"am", +pm:"pm", +midnight:"nửa đêm", +noon:"tr", +morning:"sg", +afternoon:"ch", +evening:"tối", +night:"đêm" +}, +abbreviated:{ +am:"AM", +pm:"PM", +midnight:"nửa đêm", +noon:"trưa", +morning:"sáng", +afternoon:"chiều", +evening:"tối", +night:"đêm" +}, +wide:{ +am:"SA", +pm:"CH", +midnight:"nửa đêm", +noon:"giữa trưa", +morning:"vào buổi sáng", +afternoon:"vào buổi chiều", +evening:"vào buổi tối", +night:"vào ban đêm" +} +}; +var ordinalNumber$3=function ordinalNumber$3(dirtyNumber,options){ +var number=Number(dirtyNumber); +var unit=options===null||options===void 0?void 0:options.unit; +if(unit==="quarter")switch(number){ +case 1:return"I"; +case 2:return"II"; +case 3:return"III"; +case 4:return"IV"; +}else +if(unit==="day")switch(number){ +case 1:return"thứ 2"; +case 2:return"thứ 3"; +case 3:return"thứ 4"; +case 4:return"thứ 5"; +case 5:return"thứ 6"; +case 6:return"thứ 7"; +case 7:return"chủ nhật"; +}else +if(unit==="week"){if(number===1)return"thứ nhất";else +return"thứ "+number;}else +if(unit==="dayOfYear")if(number===1)return"đầu tiên";else +return"thứ "+number; +return String(number); +}; +//#endregion +//#region dist/date-fns/locale/vi.js +/** +* @category Locales +* @summary Vietnamese locale (Vietnam). +* @language Vietnamese +* @iso-639-2 vie +* @author Thanh Tran [@trongthanh](https://github.com/trongthanh) +* @author Leroy Hopson [@lihop](https://github.com/lihop) +*/ +var _vi={ +code:"vi", +formatDistance:formatDistance$3, +formatLong:formatLong$3, +formatRelative:formatRelative$3, +localize:{ +ordinalNumber:ordinalNumber$3, +era:buildLocalizeFn({ +values:eraValues$3, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$3, +defaultWidth:"wide", +formattingValues:formattingQuarterValues, +defaultFormattingWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$3, +defaultWidth:"wide", +formattingValues:formattingMonthValues, +defaultFormattingWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$3, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$3, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$3, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(\d+)/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(tcn|scn)/i, +abbreviated:/^(trước CN|sau CN)/i, +wide:/^(trước Công Nguyên|sau Công Nguyên)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^t/i,/^s/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^([1234]|i{1,3}v?)/i, +abbreviated:/^q([1234]|i{1,3}v?)/i, +wide:/^quý ([1234]|i{1,3}v?)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|i)$/i, +/(2|ii)$/i, +/(3|iii)$/i, +/(4|iv)$/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(0?[2-9]|10|11|12|0?1)/i, +abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i, +wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/0?1$/i, +/0?2/i, +/3/, +/4/, +/5/, +/6/, +/7/, +/8/, +/9/, +/10/, +/11/, +/12/], + +abbreviated:[ +/^thg[ _]?0?1(?!\d)/i, +/^thg[ _]?0?2/i, +/^thg[ _]?0?3/i, +/^thg[ _]?0?4/i, +/^thg[ _]?0?5/i, +/^thg[ _]?0?6/i, +/^thg[ _]?0?7/i, +/^thg[ _]?0?8/i, +/^thg[ _]?0?9/i, +/^thg[ _]?10/i, +/^thg[ _]?11/i, +/^thg[ _]?12/i], + +wide:[ +/^tháng ?(Một|0?1(?!\d))/i, +/^tháng ?(Hai|0?2)/i, +/^tháng ?(Ba|0?3)/i, +/^tháng ?(Tư|0?4)/i, +/^tháng ?(Năm|0?5)/i, +/^tháng ?(Sáu|0?6)/i, +/^tháng ?(Bảy|0?7)/i, +/^tháng ?(Tám|0?8)/i, +/^tháng ?(Chín|0?9)/i, +/^tháng ?(Mười|10)/i, +/^tháng ?(Mười ?Một|11)/i, +/^tháng ?(Mười ?Hai|12)/i] + +}, +defaultParseWidth:"wide" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i, +short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, +abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, +wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/CN/i, +/2/i, +/3/i, +/4/i, +/5/i, +/6/i, +/7/i], + +short:[ +/CN/i, +/2/i, +/3/i, +/4/i, +/5/i, +/6/i, +/7/i], + +abbreviated:[ +/CN/i, +/2/i, +/3/i, +/4/i, +/5/i, +/6/i, +/7/i], + +wide:[ +/(Chủ|Chúa) ?Nhật/i, +/Hai/i, +/Ba/i, +/Tư/i, +/Năm/i, +/Sáu/i, +/Bảy/i] + +}, +defaultParseWidth:"wide" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{ +narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, +abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, +wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:{ +am:/^(a|sa)/i, +pm:/^(p|ch[^i]*)/i, +midnight:/nửa đêm/i, +noon:/trưa/i, +morning:/sáng/i, +afternoon:/chiều/i, +evening:/tối/i, +night:/^đêm/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/zh-CN/_lib/formatDistance.js +var formatDistanceLocale$2={ +lessThanXSeconds:{ +one:"不到 1 秒", +other:"不到 {{count}} 秒" +}, +xSeconds:{ +one:"1 秒", +other:"{{count}} 秒" +}, +halfAMinute:"半分钟", +lessThanXMinutes:{ +one:"不到 1 分钟", +other:"不到 {{count}} 分钟" +}, +xMinutes:{ +one:"1 分钟", +other:"{{count}} 分钟" +}, +xHours:{ +one:"1 小时", +other:"{{count}} 小时" +}, +aboutXHours:{ +one:"大约 1 小时", +other:"大约 {{count}} 小时" +}, +xDays:{ +one:"1 天", +other:"{{count}} 天" +}, +aboutXWeeks:{ +one:"大约 1 个星期", +other:"大约 {{count}} 个星期" +}, +xWeeks:{ +one:"1 个星期", +other:"{{count}} 个星期" +}, +aboutXMonths:{ +one:"大约 1 个月", +other:"大约 {{count}} 个月" +}, +xMonths:{ +one:"1 个月", +other:"{{count}} 个月" +}, +aboutXYears:{ +one:"大约 1 年", +other:"大约 {{count}} 年" +}, +xYears:{ +one:"1 年", +other:"{{count}} 年" +}, +overXYears:{ +one:"超过 1 年", +other:"超过 {{count}} 年" +}, +almostXYears:{ +one:"将近 1 年", +other:"将近 {{count}} 年" +} +}; +var formatDistance$2=function formatDistance$2(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$2[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"内";else +return result+"前"; +return result; +}; +var formatLong$2={ +date:buildFormatLongFn({ +formats:{ +full:"y'年'M'月'd'日' EEEE", +long:"y'年'M'月'd'日'", +medium:"yyyy-MM-dd", +short:"yy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"zzzz a h:mm:ss", +long:"z a h:mm:ss", +medium:"a h:mm:ss", +short:"a h:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/zh-CN/_lib/formatRelative.js +function checkWeek(date,baseDate,options){ +var baseFormat="eeee p"; +if(isSameWeek(date,baseDate,options))return baseFormat;else +if(date.getTime()>baseDate.getTime())return"'下个'eeee p"; +return"'上个'eeee p"; +} +var formatRelativeLocale$2={ +lastWeek:checkWeek, +yesterday:"'昨天' p", +today:"'今天' p", +tomorrow:"'明天' p", +nextWeek:checkWeek, +other:"PP p" +}; +var formatRelative$2=function formatRelative$2(token,date,baseDate,options){ +var format=formatRelativeLocale$2[token]; +if(typeof format==="function")return format(date,baseDate,options); +return format; +}; +//#endregion +//#region dist/date-fns/locale/zh-CN/_lib/localize.js +var eraValues$2={ +narrow:["前","公元"], +abbreviated:["前","公元"], +wide:["公元前","公元"] +}; +var quarterValues$2={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"第一季", +"第二季", +"第三季", +"第四季"], + +wide:[ +"第一季度", +"第二季度", +"第三季度", +"第四季度"] + +}; +var monthValues$2={ +narrow:[ +"一", +"二", +"三", +"四", +"五", +"六", +"七", +"八", +"九", +"十", +"十一", +"十二"], + +abbreviated:[ +"1月", +"2月", +"3月", +"4月", +"5月", +"6月", +"7月", +"8月", +"9月", +"10月", +"11月", +"12月"], + +wide:[ +"一月", +"二月", +"三月", +"四月", +"五月", +"六月", +"七月", +"八月", +"九月", +"十月", +"十一月", +"十二月"] + +}; +var dayValues$2={ +narrow:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +short:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +abbreviated:[ +"周日", +"周一", +"周二", +"周三", +"周四", +"周五", +"周六"], + +wide:[ +"星期日", +"星期一", +"星期二", +"星期三", +"星期四", +"星期五", +"星期六"] + +}; +var dayPeriodValues$2={ +narrow:{ +am:"上", +pm:"下", +midnight:"凌晨", +noon:"午", +morning:"早", +afternoon:"下午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜间" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜间" +} +}; +var formattingDayPeriodValues$2={ +narrow:{ +am:"上", +pm:"下", +midnight:"凌晨", +noon:"午", +morning:"早", +afternoon:"下午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜间" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜间" +} +}; +var ordinalNumber$2=function ordinalNumber$2(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(options===null||options===void 0?void 0:options.unit){ +case"date":return number.toString()+"日"; +case"hour":return number.toString()+"时"; +case"minute":return number.toString()+"分"; +case"second":return number.toString()+"秒"; +default:return"第 "+number.toString(); +} +}; +//#endregion +//#region dist/date-fns/locale/zh-CN.js +/** +* @category Locales +* @summary Chinese Simplified locale. +* @language Chinese Simplified +* @iso-639-2 zho +* @author Changyu Geng [@KingMario](https://github.com/KingMario) +* @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl) +* @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao) +* @author Carney Wu [@cubicwork](https://github.com/cubicwork) +* @author Terrence Lam [@skyuplam](https://github.com/skyuplam) +*/ +var _zhCN={ +code:"zh-CN", +formatDistance:formatDistance$2, +formatLong:formatLong$2, +formatRelative:formatRelative$2, +localize:{ +ordinalNumber:ordinalNumber$2, +era:buildLocalizeFn({ +values:eraValues$2, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$2, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$2, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$2, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$2, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$2, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(前)/i, +abbreviated:/^(前)/i, +wide:/^(公元前|公元)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(前)/i,/^(公元)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^第[一二三四]刻/i, +wide:/^第[一二三四]刻钟/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|一)/i, +/(2|二)/i, +/(3|三)/i, +/(4|四)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i, +abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i, +wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^一/i, +/^二/i, +/^三/i, +/^四/i, +/^五/i, +/^六/i, +/^七/i, +/^八/i, +/^九/i, +/^十(?!(一|二))/i, +/^十一/i, +/^十二/i], + +any:[ +/^(一|1(?!\d))/i, +/^(二|2)/i, +/^(三|3)/i, +/^(四|4)/i, +/^(五|5)/i, +/^(六|6)/i, +/^(七|7)/i, +/^(八|8)/i, +/^(九|9)/i, +/^(十(?!(一|二))|10)/i, +/^(十一|11)/i, +/^(十二|12)/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[一二三四五六日]/i, +short:/^[一二三四五六日]/i, +abbreviated:/^周[一二三四五六日]/i, +wide:/^星期[一二三四五六日]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/日/i, +/一/i, +/二/i, +/三/i, +/四/i, +/五/i, +/六/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^上午?/i, +pm:/^下午?/i, +midnight:/^午夜/i, +noon:/^[中正]午/i, +morning:/^早上/i, +afternoon:/^下午/i, +evening:/^晚上?/i, +night:/^凌晨/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale/zh-HK/_lib/formatDistance.js +var formatDistanceLocale$1={ +lessThanXSeconds:{ +one:"少於 1 秒", +other:"少於 {{count}} 秒" +}, +xSeconds:{ +one:"1 秒", +other:"{{count}} 秒" +}, +halfAMinute:"半分鐘", +lessThanXMinutes:{ +one:"少於 1 分鐘", +other:"少於 {{count}} 分鐘" +}, +xMinutes:{ +one:"1 分鐘", +other:"{{count}} 分鐘" +}, +xHours:{ +one:"1 小時", +other:"{{count}} 小時" +}, +aboutXHours:{ +one:"大約 1 小時", +other:"大約 {{count}} 小時" +}, +xDays:{ +one:"1 天", +other:"{{count}} 天" +}, +aboutXWeeks:{ +one:"大約 1 個星期", +other:"大約 {{count}} 個星期" +}, +xWeeks:{ +one:"1 個星期", +other:"{{count}} 個星期" +}, +aboutXMonths:{ +one:"大約 1 個月", +other:"大約 {{count}} 個月" +}, +xMonths:{ +one:"1 個月", +other:"{{count}} 個月" +}, +aboutXYears:{ +one:"大約 1 年", +other:"大約 {{count}} 年" +}, +xYears:{ +one:"1 年", +other:"{{count}} 年" +}, +overXYears:{ +one:"超過 1 年", +other:"超過 {{count}} 年" +}, +almostXYears:{ +one:"將近 1 年", +other:"將近 {{count}} 年" +} +}; +var formatDistance$1=function formatDistance$1(token,count,options){ +var result; +var tokenValue=formatDistanceLocale$1[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"內";else +return result+"前"; +return result; +}; +var formatLong$1={ +date:buildFormatLongFn({ +formats:{ +full:"y'年'M'月'd'日' EEEE", +long:"y'年'M'月'd'日'", +medium:"yyyy-MM-dd", +short:"yy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"zzzz a h:mm:ss", +long:"z a h:mm:ss", +medium:"a h:mm:ss", +short:"a h:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/zh-HK/_lib/formatRelative.js +var formatRelativeLocale$1={ +lastWeek:"'上個'eeee p", +yesterday:"'昨天' p", +today:"'今天' p", +tomorrow:"'明天' p", +nextWeek:"'下個'eeee p", +other:"P" +}; +var formatRelative$1=function formatRelative$1(token,_date,_baseDate,_options){return formatRelativeLocale$1[token];}; +//#endregion +//#region dist/date-fns/locale/zh-HK/_lib/localize.js +var eraValues$1={ +narrow:["前","公元"], +abbreviated:["前","公元"], +wide:["公元前","公元"] +}; +var quarterValues$1={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"第一季", +"第二季", +"第三季", +"第四季"], + +wide:[ +"第一季度", +"第二季度", +"第三季度", +"第四季度"] + +}; +var monthValues$1={ +narrow:[ +"一", +"二", +"三", +"四", +"五", +"六", +"七", +"八", +"九", +"十", +"十一", +"十二"], + +abbreviated:[ +"1月", +"2月", +"3月", +"4月", +"5月", +"6月", +"7月", +"8月", +"9月", +"10月", +"11月", +"12月"], + +wide:[ +"一月", +"二月", +"三月", +"四月", +"五月", +"六月", +"七月", +"八月", +"九月", +"十月", +"十一月", +"十二月"] + +}; +var dayValues$1={ +narrow:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +short:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +abbreviated:[ +"週日", +"週一", +"週二", +"週三", +"週四", +"週五", +"週六"], + +wide:[ +"星期日", +"星期一", +"星期二", +"星期三", +"星期四", +"星期五", +"星期六"] + +}; +var dayPeriodValues$1={ +narrow:{ +am:"上", +pm:"下", +midnight:"午夜", +noon:"晌", +morning:"早", +afternoon:"午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"午夜", +noon:"中午", +morning:"上午", +afternoon:"下午", +evening:"晚上", +night:"夜晚" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"午夜", +noon:"中午", +morning:"上午", +afternoon:"下午", +evening:"晚上", +night:"夜晚" +} +}; +var formattingDayPeriodValues$1={ +narrow:{ +am:"上", +pm:"下", +midnight:"午夜", +noon:"晌", +morning:"早", +afternoon:"午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"午夜", +noon:"中午", +morning:"上午", +afternoon:"下午", +evening:"晚上", +night:"夜晚" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"午夜", +noon:"中午", +morning:"上午", +afternoon:"下午", +evening:"晚上", +night:"夜晚" +} +}; +var ordinalNumber$1=function ordinalNumber$1(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(options===null||options===void 0?void 0:options.unit){ +case"date":return number+"日"; +case"hour":return number+"時"; +case"minute":return number+"分"; +case"second":return number+"秒"; +default:return"第 "+number; +} +}; +//#endregion +//#region dist/date-fns/locale/zh-HK.js +/** +* @category Locales +* @summary Chinese Traditional locale. +* @language Chinese Traditional +* @iso-639-2 zho +* @author Gary Ip [@gaplo](https://github.com/gaplo) +*/ +var _zhHK={ +code:"zh-HK", +formatDistance:formatDistance$1, +formatLong:formatLong$1, +formatRelative:formatRelative$1, +localize:{ +ordinalNumber:ordinalNumber$1, +era:buildLocalizeFn({ +values:eraValues$1, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues$1, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues$1, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues$1, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues$1, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues$1, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(前)/i, +abbreviated:/^(前)/i, +wide:/^(公元前|公元)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(前)/i,/^(公元)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^第[一二三四]季/i, +wide:/^第[一二三四]季度/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|一)/i, +/(2|二)/i, +/(3|三)/i, +/(4|四)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i, +abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i, +wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^一/i, +/^二/i, +/^三/i, +/^四/i, +/^五/i, +/^六/i, +/^七/i, +/^八/i, +/^九/i, +/^十(?!(一|二))/i, +/^十一/i, +/^十二/i], + +any:[ +/^(一|1(?!\d))/i, +/^(二|2)/i, +/^(三|3)/i, +/^(四|4)/i, +/^(五|5)/i, +/^(六|6)/i, +/^(七|7)/i, +/^(八|8)/i, +/^(九|9)/i, +/^(十(?!(一|二))|10)/i, +/^(十一|11)/i, +/^(十二|12)/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[一二三四五六日]/i, +short:/^[一二三四五六日]/i, +abbreviated:/^週[一二三四五六日]/i, +wide:/^星期[一二三四五六日]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/日/i, +/一/i, +/二/i, +/三/i, +/四/i, +/五/i, +/六/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^上午?/i, +pm:/^下午?/i, +midnight:/^午夜/i, +noon:/^[中正]午/i, +morning:/^早上/i, +afternoon:/^下午/i, +evening:/^晚上?/i, +night:/^凌晨/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:0, +firstWeekContainsDate:1 +} +}; +//#endregion +//#region dist/date-fns/locale/zh-TW/_lib/formatDistance.js +var formatDistanceLocale={ +lessThanXSeconds:{ +one:"少於 1 秒", +other:"少於 {{count}} 秒" +}, +xSeconds:{ +one:"1 秒", +other:"{{count}} 秒" +}, +halfAMinute:"半分鐘", +lessThanXMinutes:{ +one:"少於 1 分鐘", +other:"少於 {{count}} 分鐘" +}, +xMinutes:{ +one:"1 分鐘", +other:"{{count}} 分鐘" +}, +xHours:{ +one:"1 小時", +other:"{{count}} 小時" +}, +aboutXHours:{ +one:"大約 1 小時", +other:"大約 {{count}} 小時" +}, +xDays:{ +one:"1 天", +other:"{{count}} 天" +}, +aboutXWeeks:{ +one:"大約 1 個星期", +other:"大約 {{count}} 個星期" +}, +xWeeks:{ +one:"1 個星期", +other:"{{count}} 個星期" +}, +aboutXMonths:{ +one:"大約 1 個月", +other:"大約 {{count}} 個月" +}, +xMonths:{ +one:"1 個月", +other:"{{count}} 個月" +}, +aboutXYears:{ +one:"大約 1 年", +other:"大約 {{count}} 年" +}, +xYears:{ +one:"1 年", +other:"{{count}} 年" +}, +overXYears:{ +one:"超過 1 年", +other:"超過 {{count}} 年" +}, +almostXYears:{ +one:"將近 1 年", +other:"將近 {{count}} 年" +} +}; +var formatDistance=function formatDistance(token,count,options){ +var result; +var tokenValue=formatDistanceLocale[token]; +if(typeof tokenValue==="string")result=tokenValue;else +if(count===1)result=tokenValue.one;else +result=tokenValue.other.replace("{{count}}",String(count)); +if(options!==null&&options!==void 0&&options.addSuffix)if(options.comparison&&options.comparison>0)return result+"內";else +return result+"前"; +return result; +}; +var formatLong={ +date:buildFormatLongFn({ +formats:{ +full:"y'年'M'月'd'日' EEEE", +long:"y'年'M'月'd'日'", +medium:"yyyy-MM-dd", +short:"yy-MM-dd" +}, +defaultWidth:"full" +}), +time:buildFormatLongFn({ +formats:{ +full:"zzzz a h:mm:ss", +long:"z a h:mm:ss", +medium:"a h:mm:ss", +short:"a h:mm" +}, +defaultWidth:"full" +}), +dateTime:buildFormatLongFn({ +formats:{ +full:"{{date}} {{time}}", +long:"{{date}} {{time}}", +medium:"{{date}} {{time}}", +short:"{{date}} {{time}}" +}, +defaultWidth:"full" +}) +}; +//#endregion +//#region dist/date-fns/locale/zh-TW/_lib/formatRelative.js +var formatRelativeLocale={ +lastWeek:"'上個'eeee p", +yesterday:"'昨天' p", +today:"'今天' p", +tomorrow:"'明天' p", +nextWeek:"'下個'eeee p", +other:"P" +}; +var formatRelative=function formatRelative(token,_date,_baseDate,_options){return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/zh-TW/_lib/localize.js +var eraValues={ +narrow:["前","公元"], +abbreviated:["前","公元"], +wide:["公元前","公元"] +}; +var quarterValues={ +narrow:[ +"1", +"2", +"3", +"4"], + +abbreviated:[ +"第一刻", +"第二刻", +"第三刻", +"第四刻"], + +wide:[ +"第一刻鐘", +"第二刻鐘", +"第三刻鐘", +"第四刻鐘"] + +}; +var monthValues={ +narrow:[ +"一", +"二", +"三", +"四", +"五", +"六", +"七", +"八", +"九", +"十", +"十一", +"十二"], + +abbreviated:[ +"1月", +"2月", +"3月", +"4月", +"5月", +"6月", +"7月", +"8月", +"9月", +"10月", +"11月", +"12月"], + +wide:[ +"一月", +"二月", +"三月", +"四月", +"五月", +"六月", +"七月", +"八月", +"九月", +"十月", +"十一月", +"十二月"] + +}; +var dayValues={ +narrow:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +short:[ +"日", +"一", +"二", +"三", +"四", +"五", +"六"], + +abbreviated:[ +"週日", +"週一", +"週二", +"週三", +"週四", +"週五", +"週六"], + +wide:[ +"星期日", +"星期一", +"星期二", +"星期三", +"星期四", +"星期五", +"星期六"] + +}; +var dayPeriodValues={ +narrow:{ +am:"上", +pm:"下", +midnight:"凌晨", +noon:"午", +morning:"早", +afternoon:"下午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜間" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜間" +} +}; +var formattingDayPeriodValues={ +narrow:{ +am:"上", +pm:"下", +midnight:"凌晨", +noon:"午", +morning:"早", +afternoon:"下午", +evening:"晚", +night:"夜" +}, +abbreviated:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜間" +}, +wide:{ +am:"上午", +pm:"下午", +midnight:"凌晨", +noon:"中午", +morning:"早晨", +afternoon:"中午", +evening:"晚上", +night:"夜間" +} +}; +var ordinalNumber=function ordinalNumber(dirtyNumber,options){ +var number=Number(dirtyNumber); +switch(options===null||options===void 0?void 0:options.unit){ +case"date":return number+"日"; +case"hour":return number+"時"; +case"minute":return number+"分"; +case"second":return number+"秒"; +default:return"第 "+number; +} +}; +//#endregion +//#region dist/date-fns/locale/zh-TW.js +/** +* @category Locales +* @summary Chinese Traditional locale. +* @language Chinese Traditional +* @iso-639-2 zho +* @author tonypai [@tpai](https://github.com/tpai) +* @author Jack Hsu [@jackhsu978](https://github.com/jackhsu978) +* @author Terrence Lam [@skyuplam](https://github.com/skyuplam) +*/ +var _zhTW={ +code:"zh-TW", +formatDistance:formatDistance, +formatLong:formatLong, +formatRelative:formatRelative, +localize:{ +ordinalNumber:ordinalNumber, +era:buildLocalizeFn({ +values:eraValues, +defaultWidth:"wide" +}), +quarter:buildLocalizeFn({ +values:quarterValues, +defaultWidth:"wide", +argumentCallback:function argumentCallback(quarter){return quarter-1;} +}), +month:buildLocalizeFn({ +values:monthValues, +defaultWidth:"wide" +}), +day:buildLocalizeFn({ +values:dayValues, +defaultWidth:"wide" +}), +dayPeriod:buildLocalizeFn({ +values:dayPeriodValues, +defaultWidth:"wide", +formattingValues:formattingDayPeriodValues, +defaultFormattingWidth:"wide" +}) +}, +match:{ +ordinalNumber:buildMatchPatternFn({ +matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i, +parsePattern:/\d+/i, +valueCallback:function valueCallback(value){return parseInt(value,10);} +}), +era:buildMatchFn({ +matchPatterns:{ +narrow:/^(前)/i, +abbreviated:/^(前)/i, +wide:/^(公元前|公元)/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[/^(前)/i,/^(公元)/i]}, +defaultParseWidth:"any" +}), +quarter:buildMatchFn({ +matchPatterns:{ +narrow:/^[1234]/i, +abbreviated:/^第[一二三四]刻/i, +wide:/^第[一二三四]刻鐘/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/(1|一)/i, +/(2|二)/i, +/(3|三)/i, +/(4|四)/i] +}, +defaultParseWidth:"any", +valueCallback:function valueCallback(index){return index+1;} +}), +month:buildMatchFn({ +matchPatterns:{ +narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i, +abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i, +wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i +}, +defaultMatchWidth:"wide", +parsePatterns:{ +narrow:[ +/^一/i, +/^二/i, +/^三/i, +/^四/i, +/^五/i, +/^六/i, +/^七/i, +/^八/i, +/^九/i, +/^十(?!(一|二))/i, +/^十一/i, +/^十二/i], + +any:[ +/^(一|1(?!\d))/i, +/^(二|2)/i, +/^(三|3)/i, +/^(四|4)/i, +/^(五|5)/i, +/^(六|6)/i, +/^(七|7)/i, +/^(八|8)/i, +/^(九|9)/i, +/^(十(?!(一|二))|10)/i, +/^(十一|11)/i, +/^(十二|12)/i] + +}, +defaultParseWidth:"any" +}), +day:buildMatchFn({ +matchPatterns:{ +narrow:/^[一二三四五六日]/i, +short:/^[一二三四五六日]/i, +abbreviated:/^週[一二三四五六日]/i, +wide:/^星期[一二三四五六日]/i +}, +defaultMatchWidth:"wide", +parsePatterns:{any:[ +/日/i, +/一/i, +/二/i, +/三/i, +/四/i, +/五/i, +/六/i] +}, +defaultParseWidth:"any" +}), +dayPeriod:buildMatchFn({ +matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i}, +defaultMatchWidth:"any", +parsePatterns:{any:{ +am:/^上午?/i, +pm:/^下午?/i, +midnight:/^午夜/i, +noon:/^[中正]午/i, +morning:/^早上/i, +afternoon:/^下午/i, +evening:/^晚上?/i, +night:/^凌晨/i +}}, +defaultParseWidth:"any" +}) +}, +options:{ +weekStartsOn:1, +firstWeekContainsDate:4 +} +}; +//#endregion +//#region dist/date-fns/locale.js +var locale_exports=/* @__PURE__ */__exportAll({ +af:function af(){return _af;}, +ar:function ar(){return _ar;}, +arDZ:function arDZ(){return _arDZ;}, +arEG:function arEG(){return _arEG;}, +arMA:function arMA(){return _arMA;}, +arSA:function arSA(){return _arSA;}, +arTN:function arTN(){return _arTN;}, +az:function az(){return _az;}, +be:function be(){return _be;}, +beTarask:function beTarask(){return _beTarask;}, +bg:function bg(){return _bg;}, +bn:function bn(){return _bn;}, +bs:function bs(){return _bs;}, +ca:function ca(){return _ca;}, +ckb:function ckb(){return _ckb;}, +cs:function cs(){return _cs;}, +cy:function cy(){return _cy;}, +da:function da(){return _da;}, +de:function de(){return _de;}, +deAT:function deAT(){return _deAT;}, +el:function el(){return _el;}, +enAU:function enAU(){return _enAU;}, +enCA:function enCA(){return _enCA;}, +enGB:function enGB(){return _enGB;}, +enIE:function enIE(){return _enIE;}, +enIN:function enIN(){return _enIN;}, +enNZ:function enNZ(){return _enNZ;}, +enUS:function enUS(){return _enUS;}, +enZA:function enZA(){return _enZA;}, +eo:function eo(){return _eo;}, +es:function es(){return _es;}, +et:function et(){return _et;}, +eu:function eu(){return _eu;}, +faIR:function faIR(){return _faIR;}, +fi:function fi(){return _fi;}, +fr:function fr(){return _fr;}, +frCA:function frCA(){return _frCA;}, +frCH:function frCH(){return _frCH;}, +fy:function fy(){return _fy;}, +gd:function gd(){return _gd;}, +gl:function gl(){return _gl;}, +gu:function gu(){return _gu;}, +he:function he(){return _he;}, +hi:function hi(){return _hi;}, +hr:function hr(){return _hr;}, +ht:function ht(){return _ht;}, +hu:function hu(){return _hu;}, +hy:function hy(){return _hy;}, +id:function id(){return _id;}, +is:function is(){return _is;}, +it:function it(){return _it;}, +itCH:function itCH(){return _itCH;}, +ja:function ja(){return _ja;}, +jaHira:function jaHira(){return _jaHira;}, +ka:function ka(){return _ka;}, +kk:function kk(){return _kk;}, +km:function km(){return _km;}, +kn:function kn(){return _kn;}, +ko:function ko(){return _ko;}, +lb:function lb(){return _lb;}, +lt:function lt(){return _lt;}, +lv:function lv(){return _lv;}, +mk:function mk(){return _mk;}, +mn:function mn(){return _mn;}, +ms:function ms(){return _ms;}, +mt:function mt(){return _mt;}, +nb:function nb(){return _nb;}, +nl:function nl(){return _nl;}, +nlBE:function nlBE(){return _nlBE;}, +nn:function nn(){return _nn;}, +oc:function oc(){return _oc;}, +pl:function pl(){return _pl;}, +pt:function pt(){return _pt;}, +ptBR:function ptBR(){return _ptBR;}, +ro:function ro(){return _ro;}, +ru:function ru(){return _ru;}, +se:function se(){return _se;}, +sk:function sk(){return _sk;}, +sl:function sl(){return _sl;}, +sq:function sq(){return _sq;}, +sr:function sr(){return _sr;}, +srLatn:function srLatn(){return _srLatn;}, +sv:function sv(){return _sv;}, +ta:function ta(){return _ta;}, +te:function te(){return _te;}, +th:function th(){return _th;}, +tr:function tr(){return _tr;}, +ug:function ug(){return _ug;}, +uk:function uk(){return _uk;}, +uz:function uz(){return _uz;}, +uzCyrl:function uzCyrl(){return _uzCyrl;}, +vi:function vi(){return _vi;}, +zhCN:function zhCN(){return _zhCN;}, +zhHK:function zhHK(){return _zhHK;}, +zhTW:function zhTW(){return _zhTW;} +}); +//#endregion +//#region dist/date-fns/_entries/locale/cdn.js +window.dateFns=_objectSpread(_objectSpread({}, +window.dateFns),{},{ +locale:_objectSpread(_objectSpread({},(_window$dateFns= +window.dateFns)===null||_window$dateFns===void 0?void 0:_window$dateFns.locale), +locale_exports)}); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cdn.min.js b/node_modules/date-fns/locale/cdn.min.js new file mode 100644 index 000000000..75314a168 --- /dev/null +++ b/node_modules/date-fns/locale/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`oor `+r:r+` gelede`:r};function d(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var ae={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},oe={lastWeek:`'verlede' eeee 'om' p`,yesterday:`'gister om' p`,today:`'vandag om' p`,tomorrow:`'môre om' p`,nextWeek:`eeee 'om' p`,other:`P`},se=function(e,t,n,r){return oe[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var ce={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n<20)switch(n){case 1:case 8:return t+`ste`;default:return t+`de`}return t+`ste`},era:f({values:{narrow:[`vC`,`nC`],abbreviated:[`vC`,`nC`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1ste kwartaal`,`2de kwartaal`,`3de kwartaal`,`4de kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mrt`,`Apr`,`Mei`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januarie`,`Februarie`,`Maart`,`April`,`Mei`,`Junie`,`Julie`,`Augustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`W`,`D`,`V`,`S`],short:[`So`,`Ma`,`Di`,`Wo`,`Do`,`Vr`,`Sa`],abbreviated:[`Son`,`Maa`,`Din`,`Woe`,`Don`,`Vry`,`Sat`],wide:[`Sondag`,`Maandag`,`Dinsdag`,`Woensdag`,`Donderdag`,`Vrydag`,`Saterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`},abbreviated:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`},wide:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`middaguur`,morning:`oggend`,afternoon:`middag`,evening:`laat middag`,night:`aand`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`},abbreviated:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`},wide:{am:`vm`,pm:`nm`,midnight:`middernag`,noon:`uur die middag`,morning:`uur die oggend`,afternoon:`uur die middag`,evening:`uur die aand`,night:`uur die aand`}},defaultFormattingWidth:`wide`})};function p(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?ue(s,function(e){return e.test(o)}):le(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var ee=t.slice(o.length);return{value:l,rest:ee}}}function le(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ue(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var de={code:`af`,formatDistance:ie,formatLong:ae,formatRelative:se,localize:ce,match:{ordinalNumber:m({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},fe={lessThanXSeconds:{one:`أقل من ثانية`,two:`أقل من ثانيتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية واحدة`,two:`ثانيتان`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نصف دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقائق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة واحدة`,two:`دقيقتان`,threeToTen:`{{count}} دقائق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة واحدة تقريباً`,two:`ساعتين تقريبا`,threeToTen:`{{count}} ساعات تقريباً`,other:`{{count}} ساعة تقريباً`},xHours:{one:`ساعة واحدة`,two:`ساعتان`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم واحد`,two:`يومان`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`أسبوع واحد تقريبا`,two:`أسبوعين تقريبا`,threeToTen:`{{count}} أسابيع تقريبا`,other:`{{count}} أسبوعا تقريبا`},xWeeks:{one:`أسبوع واحد`,two:`أسبوعان`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوعا`},aboutXMonths:{one:`شهر واحد تقريباً`,two:`شهرين تقريبا`,threeToTen:`{{count}} أشهر تقريبا`,other:`{{count}} شهرا تقريباً`},xMonths:{one:`شهر واحد`,two:`شهران`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهرا`},aboutXYears:{one:`سنة واحدة تقريباً`,two:`سنتين تقريبا`,threeToTen:`{{count}} سنوات تقريباً`,other:`{{count}} سنة تقريباً`},xYears:{one:`سنة واحد`,two:`سنتان`,threeToTen:`{{count}} سنوات`,other:`{{count}} سنة`},overXYears:{one:`أكثر من سنة`,two:`أكثر من سنتين`,threeToTen:`أكثر من {{count}} سنوات`,other:`أكثر من {{count}} سنة`},almostXYears:{one:`ما يقارب سنة واحدة`,two:`ما يقارب سنتين`,threeToTen:`ما يقارب {{count}} سنوات`,other:`ما يقارب {{count}} سنة`}},pe=function(e,t,n){var r=fe[e],i=typeof r==`string`?r:t===1?r.one:t===2?r.two:t<=10?r.threeToTen.replace(`{{count}}`,String(t)):r.other.replace(`{{count}}`,String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`خلال `+i:`منذ `+i:i},me={date:d({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss`,long:`HH:mm:ss`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'عند الساعة' {{time}}`,long:`{{date}} 'عند الساعة' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},he={lastWeek:`eeee 'الماضي عند الساعة' p`,yesterday:`'الأمس عند الساعة' p`,today:`'اليوم عند الساعة' p`,tomorrow:`'غدا عند الساعة' p`,nextWeek:`eeee 'القادم عند الساعة' p`,other:`P`},ge={code:`ar`,formatDistance:pe,formatLong:me,formatRelative:function(e){return he[e]},localize:{ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`المساء`,night:`الليل`,midnight:`منتصف الليل`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},abbreviated:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`},wide:{am:`ص`,pm:`م`,morning:`في الصباح`,noon:`الظهر`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`,midnight:`منتصف الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:`wide`,parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^يناير/i,/^فبراير/i,/^مارس/i,/^أبريل/i,/^مايو/i,/^يونيو/i,/^يوليو/i,/^أغسطس/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}},_e={lessThanXSeconds:{one:`أقل من ثانية واحدة`,two:`أقل من ثانتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية واحدة`,two:`ثانتين`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نصف دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقائق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة واحدة`,two:`دقيقتين`,threeToTen:`{{count}} دقائق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة واحدة تقريباً`,two:`ساعتين تقريباً`,threeToTen:`{{count}} ساعات تقريباً`,other:`{{count}} ساعة تقريباً`},xHours:{one:`ساعة واحدة`,two:`ساعتين`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم واحد`,two:`يومين`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`أسبوع واحد تقريباً`,two:`أسبوعين تقريباً`,threeToTen:`{{count}} أسابيع تقريباً`,other:`{{count}} أسبوع تقريباً`},xWeeks:{one:`أسبوع واحد`,two:`أسبوعين`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوع`},aboutXMonths:{one:`شهر واحد تقريباً`,two:`شهرين تقريباً`,threeToTen:`{{count}} أشهر تقريباً`,other:`{{count}} شهر تقريباً`},xMonths:{one:`شهر واحد`,two:`شهرين`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهر`},aboutXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`},xYears:{one:`عام واحد`,two:`عامين`,threeToTen:`{{count}} أعوام`,other:`{{count}} عام`},overXYears:{one:`أكثر من عام`,two:`أكثر من عامين`,threeToTen:`أكثر من {{count}} أعوام`,other:`أكثر من {{count}} عام`},almostXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`}},ve=function(e,t,n){n||={};var r=_e[e],i=typeof r==`string`?r:t===1?r.one:t===2?r.two:t<=10?r.threeToTen.replace(`{{count}}`,String(t)):r.other.replace(`{{count}}`,String(t));return n.addSuffix?n.comparison&&n.comparison>0?`في خلال `+i:`منذ `+i:i},ye={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},be={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},xe={code:`ar-DZ`,formatDistance:ve,formatLong:ye,formatRelative:function(e,t,n,r){return be[e]},localize:{ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`ج`,`ف`,`م`,`أ`,`م`,`ج`,`ج`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`جانـ`,`فيفـ`,`مارس`,`أفريل`,`مايـ`,`جوانـ`,`جويـ`,`أوت`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return Number(e)+1}}),month:p({matchPatterns:{narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Se={lessThanXSeconds:{one:`أقل من ثانية`,two:`أقل من ثانيتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية`,two:`ثانيتين`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نص دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقايق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة`,two:`دقيقتين`,threeToTen:`{{count}} دقايق`,other:`{{count}} دقيقة`},aboutXHours:{one:`حوالي ساعة`,two:`حوالي ساعتين`,threeToTen:`حوالي {{count}} ساعات`,other:`حوالي {{count}} ساعة`},xHours:{one:`ساعة`,two:`ساعتين`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم`,two:`يومين`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`حوالي أسبوع`,two:`حوالي أسبوعين`,threeToTen:`حوالي {{count}} أسابيع`,other:`حوالي {{count}} أسبوع`},xWeeks:{one:`أسبوع`,two:`أسبوعين`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوع`},aboutXMonths:{one:`حوالي شهر`,two:`حوالي شهرين`,threeToTen:`حوالي {{count}} أشهر`,other:`حوالي {{count}} شهر`},xMonths:{one:`شهر`,two:`شهرين`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهر`},aboutXYears:{one:`حوالي سنة`,two:`حوالي سنتين`,threeToTen:`حوالي {{count}} سنين`,other:`حوالي {{count}} سنة`},xYears:{one:`عام`,two:`عامين`,threeToTen:`{{count}} أعوام`,other:`{{count}} عام`},overXYears:{one:`أكثر من سنة`,two:`أكثر من سنتين`,threeToTen:`أكثر من {{count}} سنين`,other:`أكثر من {{count}} سنة`},almostXYears:{one:`عام تقريبًا`,two:`عامين تقريبًا`,threeToTen:`{{count}} أعوام تقريبًا`,other:`{{count}} عام تقريبًا`}},Ce=function(e,t,n){var r,i=Se[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:t<=10?i.threeToTen.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`في خلال ${r}`:`منذ ${r}`:r},we={date:d({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`dd/MMM/y`,short:`d/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'الساعة' {{time}}`,long:`{{date}} 'الساعة' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Te={lastWeek:`eeee 'اللي جاي الساعة' p`,yesterday:`'إمبارح الساعة' p`,today:`'النهاردة الساعة' p`,tomorrow:`'بكرة الساعة' p`,nextWeek:`eeee 'الساعة' p`,other:`P`},Ee={code:`ar-EG`,formatDistance:Ce,formatLong:we,formatRelative:function(e,t,n,r){return Te[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م`,`ب.م`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`مايو`,`يونـ`,`يولـ`,`أغسـ`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهراً`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,morning:`في الصباح`,noon:`ظهراً`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ق/g,/^ب/g]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:`wide`,parsePatterns:{wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},De={lessThanXSeconds:{one:`أقل من ثانية واحدة`,two:`أقل من ثانتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية واحدة`,two:`ثانتين`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نصف دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقائق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة واحدة`,two:`دقيقتين`,threeToTen:`{{count}} دقائق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة واحدة تقريباً`,two:`ساعتين تقريباً`,threeToTen:`{{count}} ساعات تقريباً`,other:`{{count}} ساعة تقريباً`},xHours:{one:`ساعة واحدة`,two:`ساعتين`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم واحد`,two:`يومين`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`أسبوع واحد تقريباً`,two:`أسبوعين تقريباً`,threeToTen:`{{count}} أسابيع تقريباً`,other:`{{count}} أسبوع تقريباً`},xWeeks:{one:`أسبوع واحد`,two:`أسبوعين`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوع`},aboutXMonths:{one:`شهر واحد تقريباً`,two:`شهرين تقريباً`,threeToTen:`{{count}} أشهر تقريباً`,other:`{{count}} شهر تقريباً`},xMonths:{one:`شهر واحد`,two:`شهرين`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهر`},aboutXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`},xYears:{one:`عام واحد`,two:`عامين`,threeToTen:`{{count}} أعوام`,other:`{{count}} عام`},overXYears:{one:`أكثر من عام`,two:`أكثر من عامين`,threeToTen:`أكثر من {{count}} أعوام`,other:`أكثر من {{count}} عام`},almostXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`}},Oe=function(e,t,n){n||={};var r=De[e],i=typeof r==`string`?r:t===1?r.one:t===2?r.two:t<=10?r.threeToTen.replace(`{{count}}`,String(t)):r.other.replace(`{{count}}`,String(t));return n.addSuffix?n.comparison&&n.comparison>0?`في خلال `+i:`منذ `+i:i},ke={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ae={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},je={code:`ar-MA`,formatDistance:Oe,formatLong:ke,formatRelative:function(e,t,n,r){return Ae[e]},localize:{ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`غ`,`ش`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`ماي`,`يونـ`,`يولـ`,`غشت`,`شتنـ`,`أكتـ`,`نونـ`,`دجنـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`ماي`,`يونيو`,`يوليوز`,`غشت`,`شتنبر`,`أكتوبر`,`نونبر`,`دجنبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الإثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return Number(e)+1}}),month:p({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^غ/i,/^ش/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^فب/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^غشت/i,/^ش/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الإثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^إث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Me={lessThanXSeconds:{one:`أقل من ثانية واحدة`,two:`أقل من ثانتين`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية واحدة`,two:`ثانتين`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نصف دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقائق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة واحدة`,two:`دقيقتين`,threeToTen:`{{count}} دقائق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة واحدة تقريباً`,two:`ساعتين تقريباً`,threeToTen:`{{count}} ساعات تقريباً`,other:`{{count}} ساعة تقريباً`},xHours:{one:`ساعة واحدة`,two:`ساعتين`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`يوم واحد`,two:`يومين`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`أسبوع واحد تقريباً`,two:`أسبوعين تقريباً`,threeToTen:`{{count}} أسابيع تقريباً`,other:`{{count}} أسبوع تقريباً`},xWeeks:{one:`أسبوع واحد`,two:`أسبوعين`,threeToTen:`{{count}} أسابيع`,other:`{{count}} أسبوع`},aboutXMonths:{one:`شهر واحد تقريباً`,two:`شهرين تقريباً`,threeToTen:`{{count}} أشهر تقريباً`,other:`{{count}} شهر تقريباً`},xMonths:{one:`شهر واحد`,two:`شهرين`,threeToTen:`{{count}} أشهر`,other:`{{count}} شهر`},aboutXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`},xYears:{one:`عام واحد`,two:`عامين`,threeToTen:`{{count}} أعوام`,other:`{{count}} عام`},overXYears:{one:`أكثر من عام`,two:`أكثر من عامين`,threeToTen:`أكثر من {{count}} أعوام`,other:`أكثر من {{count}} عام`},almostXYears:{one:`عام واحد تقريباً`,two:`عامين تقريباً`,threeToTen:`{{count}} أعوام تقريباً`,other:`{{count}} عام تقريباً`}},Ne=function(e,t,n){var r,i=Me[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:t<=10?i.threeToTen.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`في خلال `+r:`منذ `+r:r},Pe={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'عند' {{time}}`,long:`{{date}} 'عند' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Fe={lastWeek:`'أخر' eeee 'عند' p`,yesterday:`'أمس عند' p`,today:`'اليوم عند' p`,tomorrow:`'غداً عند' p`,nextWeek:`eeee 'عند' p`,other:`P`},Ie={code:`ar-SA`,formatDistance:Ne,formatLong:Pe,formatRelative:function(e,t,n,r){return Fe[e]},localize:{ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`أ`,`م`,`ي`,`ي`,`أ`,`س`,`أ`,`ن`,`د`],abbreviated:[`ينا`,`فبر`,`مارس`,`أبريل`,`مايو`,`يونـ`,`يولـ`,`أغسـ`,`سبتـ`,`أكتـ`,`نوفـ`,`ديسـ`],wide:[`يناير`,`فبراير`,`مارس`,`أبريل`,`مايو`,`يونيو`,`يوليو`,`أغسطس`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنـ`,`ثلا`,`أربـ`,`خميـ`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظهر`,evening:`مساءاً`,night:`ليلاً`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`م`,midnight:`ن`,noon:`ظ`,morning:`في الصباح`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`},abbreviated:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`في الصباح`,afternoon:`بعد الظهر`,evening:`في المساء`,night:`في الليل`},wide:{am:`ص`,pm:`م`,midnight:`نصف الليل`,noon:`ظهر`,morning:`صباحاً`,afternoon:`بعد الظـهر`,evening:`في المساء`,night:`في الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Le={lessThanXSeconds:{one:`أقل من ثانية`,two:`أقل من زوز ثواني`,threeToTen:`أقل من {{count}} ثواني`,other:`أقل من {{count}} ثانية`},xSeconds:{one:`ثانية`,two:`زوز ثواني`,threeToTen:`{{count}} ثواني`,other:`{{count}} ثانية`},halfAMinute:`نص دقيقة`,lessThanXMinutes:{one:`أقل من دقيقة`,two:`أقل من دقيقتين`,threeToTen:`أقل من {{count}} دقايق`,other:`أقل من {{count}} دقيقة`},xMinutes:{one:`دقيقة`,two:`دقيقتين`,threeToTen:`{{count}} دقايق`,other:`{{count}} دقيقة`},aboutXHours:{one:`ساعة تقريب`,two:`ساعتين تقريب`,threeToTen:`{{count}} سوايع تقريب`,other:`{{count}} ساعة تقريب`},xHours:{one:`ساعة`,two:`ساعتين`,threeToTen:`{{count}} سوايع`,other:`{{count}} ساعة`},xDays:{one:`نهار`,two:`نهارين`,threeToTen:`{{count}} أيام`,other:`{{count}} يوم`},aboutXWeeks:{one:`جمعة تقريب`,two:`جمعتين تقريب`,threeToTen:`{{count}} جماع تقريب`,other:`{{count}} جمعة تقريب`},xWeeks:{one:`جمعة`,two:`جمعتين`,threeToTen:`{{count}} جماع`,other:`{{count}} جمعة`},aboutXMonths:{one:`شهر تقريب`,two:`شهرين تقريب`,threeToTen:`{{count}} أشهرة تقريب`,other:`{{count}} شهر تقريب`},xMonths:{one:`شهر`,two:`شهرين`,threeToTen:`{{count}} أشهرة`,other:`{{count}} شهر`},aboutXYears:{one:`عام تقريب`,two:`عامين تقريب`,threeToTen:`{{count}} أعوام تقريب`,other:`{{count}} عام تقريب`},xYears:{one:`عام`,two:`عامين`,threeToTen:`{{count}} أعوام`,other:`{{count}} عام`},overXYears:{one:`أكثر من عام`,two:`أكثر من عامين`,threeToTen:`أكثر من {{count}} أعوام`,other:`أكثر من {{count}} عام`},almostXYears:{one:`عام تقريب`,two:`عامين تقريب`,threeToTen:`{{count}} أعوام تقريب`,other:`{{count}} عام تقريب`}},Re=function(e,t,n){var r=Le[e],i=typeof r==`string`?r:t===1?r.one:t===2?r.two:t<=10?r.threeToTen.replace(`{{count}}`,String(t)):r.other.replace(`{{count}}`,String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`في `+i:`عندو `+i:i},ze={date:d({formats:{full:`EEEE، do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss`,long:`HH:mm:ss`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'مع' {{time}}`,long:`{{date}} 'مع' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Be={lastWeek:`eeee 'إلي فات مع' p`,yesterday:`'البارح مع' p`,today:`'اليوم مع' p`,tomorrow:`'غدوة مع' p`,nextWeek:`eeee 'الجمعة الجاية مع' p 'نهار'`,other:`P`},Ve={code:`ar-TN`,formatDistance:Re,formatLong:ze,formatRelative:function(e){return Be[e]},localize:{ordinalNumber:function(e){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل الميلاد`,`بعد الميلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`الربع الأول`,`الربع الثاني`,`الربع الثالث`,`الربع الرابع`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`د`,`ن`,`أ`,`س`,`أ`,`ج`,`ج`,`م`,`أ`,`م`,`ف`,`ج`],abbreviated:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`],wide:[`جانفي`,`فيفري`,`مارس`,`أفريل`,`ماي`,`جوان`,`جويلية`,`أوت`,`سبتمبر`,`أكتوبر`,`نوفمبر`,`ديسمبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ح`,`ن`,`ث`,`ر`,`خ`,`ج`,`س`],short:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],abbreviated:[`أحد`,`اثنين`,`ثلاثاء`,`أربعاء`,`خميس`,`جمعة`,`سبت`],wide:[`الأحد`,`الاثنين`,`الثلاثاء`,`الأربعاء`,`الخميس`,`الجمعة`,`السبت`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`},abbreviated:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`},wide:{am:`ص`,pm:`ع`,morning:`الصباح`,noon:`القايلة`,afternoon:`بعد القايلة`,evening:`العشية`,night:`الليل`,midnight:`نص الليل`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`},abbreviated:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`},wide:{am:`ص`,pm:`ع`,morning:`في الصباح`,noon:`في القايلة`,afternoon:`بعد القايلة`,evening:`في العشية`,night:`في الليل`,midnight:`نص الليل`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:`wide`,parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[جفمأسند]/,abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جانفي/i,/^فيفري/i,/^مارس/i,/^أفريل/i,/^ماي/i,/^جوان/i,/^جويلية/i,/^أوت/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/,any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ص/,pm:/^ع/,midnight:/نص الليل/,noon:/قايلة/,afternoon:/بعد القايلة/,morning:/صباح/,evening:/عشية/,night:/ليل/}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},He={lessThanXSeconds:{one:`bir saniyədən az`,other:`{{count}} bir saniyədən az`},xSeconds:{one:`1 saniyə`,other:`{{count}} saniyə`},halfAMinute:`yarım dəqiqə`,lessThanXMinutes:{one:`bir dəqiqədən az`,other:`{{count}} bir dəqiqədən az`},xMinutes:{one:`bir dəqiqə`,other:`{{count}} dəqiqə`},aboutXHours:{one:`təxminən 1 saat`,other:`təxminən {{count}} saat`},xHours:{one:`1 saat`,other:`{{count}} saat`},xDays:{one:`1 gün`,other:`{{count}} gün`},aboutXWeeks:{one:`təxminən 1 həftə`,other:`təxminən {{count}} həftə`},xWeeks:{one:`1 həftə`,other:`{{count}} həftə`},aboutXMonths:{one:`təxminən 1 ay`,other:`təxminən {{count}} ay`},xMonths:{one:`1 ay`,other:`{{count}} ay`},aboutXYears:{one:`təxminən 1 il`,other:`təxminən {{count}} il`},xYears:{one:`1 il`,other:`{{count}} il`},overXYears:{one:`1 ildən çox`,other:`{{count}} ildən çox`},almostXYears:{one:`demək olar ki 1 il`,other:`demək olar ki {{count}} il`}},Ue=function(e,t,n){var r,i=He[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` sonra`:r+` əvvəl`:r},We={date:d({formats:{full:`EEEE, do MMMM y 'il'`,long:`do MMMM y 'il'`,medium:`d MMM y 'il'`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}} - 'də'`,long:`{{date}} {{time}} - 'də'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ge={lastWeek:`'sonuncu' eeee p -'də'`,yesterday:`'dünən' p -'də'`,today:`'bugün' p -'də'`,tomorrow:`'sabah' p -'də'`,nextWeek:`eeee p -'də'`,other:`P`},Ke=function(e,t,n,r){return Ge[e]},qe={narrow:[`e.ə`,`b.e`],abbreviated:[`e.ə`,`b.e`],wide:[`eramızdan əvvəl`,`bizim era`]},Je={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1ci kvartal`,`2ci kvartal`,`3cü kvartal`,`4cü kvartal`]},Ye={narrow:[`Y`,`F`,`M`,`A`,`M`,`İ`,`İ`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Yan`,`Fev`,`Mar`,`Apr`,`May`,`İyun`,`İyul`,`Avq`,`Sen`,`Okt`,`Noy`,`Dek`],wide:[`Yanvar`,`Fevral`,`Mart`,`Aprel`,`May`,`İyun`,`İyul`,`Avqust`,`Sentyabr`,`Oktyabr`,`Noyabr`,`Dekabr`]},Xe={narrow:[`B.`,`B.e`,`Ç.a`,`Ç.`,`C.a`,`C.`,`Ş.`],short:[`B.`,`B.e`,`Ç.a`,`Ç.`,`C.a`,`C.`,`Ş.`],abbreviated:[`Baz`,`Baz.e`,`Çər.a`,`Çər`,`Cüm.a`,`Cüm`,`Şə`],wide:[`Bazar`,`Bazar ertəsi`,`Çərşənbə axşamı`,`Çərşənbə`,`Cümə axşamı`,`Cümə`,`Şənbə`]},Ze={narrow:{am:`am`,pm:`pm`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`}},Qe={narrow:{am:`a`,pm:`p`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gecəyarı`,noon:`gün`,morning:`səhər`,afternoon:`gündüz`,evening:`axşam`,night:`gecə`}},h={1:`-inci`,5:`-inci`,8:`-inci`,70:`-inci`,80:`-inci`,2:`-nci`,7:`-nci`,20:`-nci`,50:`-nci`,3:`-üncü`,4:`-üncü`,100:`-üncü`,6:`-ncı`,9:`-uncu`,10:`-uncu`,30:`-uncu`,60:`-ıncı`,90:`-ıncı`},$e=function(e){if(e===0)return e+`-ıncı`;var t=e%10,n=e%100-t,r=e>=100?100:null;return h[t]?h[t]:h[n]?h[n]:r===null?``:h[r]},et={code:`az`,formatDistance:Ue,formatLong:We,formatRelative:Ke,localize:{ordinalNumber:function(e,t){var n=Number(e);return n+$e(n)},era:f({values:qe,defaultWidth:`wide`}),quarter:f({values:Je,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Ye,defaultWidth:`wide`}),day:f({values:Xe,defaultWidth:`wide`}),dayPeriod:f({values:Ze,defaultWidth:`wide`,formattingValues:Qe,defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:`narrow`}),day:p({matchPatterns:{narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function g(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function _(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?g(e.future,t):`праз `+g(e.regular,t):e.past?g(e.past,t):g(e.regular,t)+` таму`:g(e.regular,t)}}var tt={lessThanXSeconds:_({regular:{one:`менш за секунду`,singularNominative:`менш за {{count}} секунду`,singularGenitive:`менш за {{count}} секунды`,pluralGenitive:`менш за {{count}} секунд`},future:{one:`менш, чым праз секунду`,singularNominative:`менш, чым праз {{count}} секунду`,singularGenitive:`менш, чым праз {{count}} секунды`,pluralGenitive:`менш, чым праз {{count}} секунд`}}),xSeconds:_({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду таму`,singularGenitive:`{{count}} секунды таму`,pluralGenitive:`{{count}} секунд таму`},future:{singularNominative:`праз {{count}} секунду`,singularGenitive:`праз {{count}} секунды`,pluralGenitive:`праз {{count}} секунд`}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?`праз паўхвіліны`:`паўхвіліны таму`:`паўхвіліны`},lessThanXMinutes:_({regular:{one:`менш за хвіліну`,singularNominative:`менш за {{count}} хвіліну`,singularGenitive:`менш за {{count}} хвіліны`,pluralGenitive:`менш за {{count}} хвілін`},future:{one:`менш, чым праз хвіліну`,singularNominative:`менш, чым праз {{count}} хвіліну`,singularGenitive:`менш, чым праз {{count}} хвіліны`,pluralGenitive:`менш, чым праз {{count}} хвілін`}}),xMinutes:_({regular:{singularNominative:`{{count}} хвіліна`,singularGenitive:`{{count}} хвіліны`,pluralGenitive:`{{count}} хвілін`},past:{singularNominative:`{{count}} хвіліну таму`,singularGenitive:`{{count}} хвіліны таму`,pluralGenitive:`{{count}} хвілін таму`},future:{singularNominative:`праз {{count}} хвіліну`,singularGenitive:`праз {{count}} хвіліны`,pluralGenitive:`праз {{count}} хвілін`}}),aboutXHours:_({regular:{singularNominative:`каля {{count}} гадзіны`,singularGenitive:`каля {{count}} гадзін`,pluralGenitive:`каля {{count}} гадзін`},future:{singularNominative:`прыблізна праз {{count}} гадзіну`,singularGenitive:`прыблізна праз {{count}} гадзіны`,pluralGenitive:`прыблізна праз {{count}} гадзін`}}),xHours:_({regular:{singularNominative:`{{count}} гадзіна`,singularGenitive:`{{count}} гадзіны`,pluralGenitive:`{{count}} гадзін`},past:{singularNominative:`{{count}} гадзіну таму`,singularGenitive:`{{count}} гадзіны таму`,pluralGenitive:`{{count}} гадзін таму`},future:{singularNominative:`праз {{count}} гадзіну`,singularGenitive:`праз {{count}} гадзіны`,pluralGenitive:`праз {{count}} гадзін`}}),xDays:_({regular:{singularNominative:`{{count}} дзень`,singularGenitive:`{{count}} дні`,pluralGenitive:`{{count}} дзён`}}),aboutXWeeks:_({regular:{singularNominative:`каля {{count}} тыдні`,singularGenitive:`каля {{count}} тыдняў`,pluralGenitive:`каля {{count}} тыдняў`},future:{singularNominative:`прыблізна праз {{count}} тыдзень`,singularGenitive:`прыблізна праз {{count}} тыдні`,pluralGenitive:`прыблізна праз {{count}} тыдняў`}}),xWeeks:_({regular:{singularNominative:`{{count}} тыдзень`,singularGenitive:`{{count}} тыдні`,pluralGenitive:`{{count}} тыдняў`}}),aboutXMonths:_({regular:{singularNominative:`каля {{count}} месяца`,singularGenitive:`каля {{count}} месяцаў`,pluralGenitive:`каля {{count}} месяцаў`},future:{singularNominative:`прыблізна праз {{count}} месяц`,singularGenitive:`прыблізна праз {{count}} месяцы`,pluralGenitive:`прыблізна праз {{count}} месяцаў`}}),xMonths:_({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяцы`,pluralGenitive:`{{count}} месяцаў`}}),aboutXYears:_({regular:{singularNominative:`каля {{count}} года`,singularGenitive:`каля {{count}} гадоў`,pluralGenitive:`каля {{count}} гадоў`},future:{singularNominative:`прыблізна праз {{count}} год`,singularGenitive:`прыблізна праз {{count}} гады`,pluralGenitive:`прыблізна праз {{count}} гадоў`}}),xYears:_({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} гады`,pluralGenitive:`{{count}} гадоў`}}),overXYears:_({regular:{singularNominative:`больш за {{count}} год`,singularGenitive:`больш за {{count}} гады`,pluralGenitive:`больш за {{count}} гадоў`},future:{singularNominative:`больш, чым праз {{count}} год`,singularGenitive:`больш, чым праз {{count}} гады`,pluralGenitive:`больш, чым праз {{count}} гадоў`}}),almostXYears:_({regular:{singularNominative:`амаль {{count}} год`,singularGenitive:`амаль {{count}} гады`,pluralGenitive:`амаль {{count}} гадоў`},future:{singularNominative:`амаль праз {{count}} год`,singularGenitive:`амаль праз {{count}} гады`,pluralGenitive:`амаль праз {{count}} гадоў`}})},nt=function(e,t,n){return n||={},tt[e](t,n)},rt={date:d({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},it=Symbol.for(`constructDateFrom`);function at(e,t){return typeof e==`function`?e(t):e&&u(e)===`object`&&it in e?e[it](t):e instanceof Date?new e.constructor(t):new Date(t)}function ot(e){var t=[...arguments].slice(1),n=at.bind(null,e||t.find(function(e){return u(e)===`object`}));return t.map(n)}var st={};function ct(){return st}function v(e,t){return at(t||e,e)}function lt(e,t){var n,r,i=ct(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=v(e,t?.in),s=o.getDay(),c=(s=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function S(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?x(e.future,t):`праз `+x(e.regular,t):e.past?x(e.past,t):x(e.regular,t)+` таму`:x(e.regular,t)}}var ht={lessThanXSeconds:S({regular:{one:`менш за секунду`,singularNominative:`менш за {{count}} секунду`,singularGenitive:`менш за {{count}} секунды`,pluralGenitive:`менш за {{count}} секунд`},future:{one:`менш, чым праз секунду`,singularNominative:`менш, чым праз {{count}} секунду`,singularGenitive:`менш, чым праз {{count}} секунды`,pluralGenitive:`менш, чым праз {{count}} секунд`}}),xSeconds:S({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду таму`,singularGenitive:`{{count}} секунды таму`,pluralGenitive:`{{count}} секунд таму`},future:{singularNominative:`праз {{count}} секунду`,singularGenitive:`праз {{count}} секунды`,pluralGenitive:`праз {{count}} секунд`}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?`праз паўхвіліны`:`паўхвіліны таму`:`паўхвіліны`},lessThanXMinutes:S({regular:{one:`менш за хвіліну`,singularNominative:`менш за {{count}} хвіліну`,singularGenitive:`менш за {{count}} хвіліны`,pluralGenitive:`менш за {{count}} хвілін`},future:{one:`менш, чым праз хвіліну`,singularNominative:`менш, чым праз {{count}} хвіліну`,singularGenitive:`менш, чым праз {{count}} хвіліны`,pluralGenitive:`менш, чым праз {{count}} хвілін`}}),xMinutes:S({regular:{singularNominative:`{{count}} хвіліна`,singularGenitive:`{{count}} хвіліны`,pluralGenitive:`{{count}} хвілін`},past:{singularNominative:`{{count}} хвіліну таму`,singularGenitive:`{{count}} хвіліны таму`,pluralGenitive:`{{count}} хвілін таму`},future:{singularNominative:`праз {{count}} хвіліну`,singularGenitive:`праз {{count}} хвіліны`,pluralGenitive:`праз {{count}} хвілін`}}),aboutXHours:S({regular:{singularNominative:`каля {{count}} гадзіны`,singularGenitive:`каля {{count}} гадзін`,pluralGenitive:`каля {{count}} гадзін`},future:{singularNominative:`прыблізна праз {{count}} гадзіну`,singularGenitive:`прыблізна праз {{count}} гадзіны`,pluralGenitive:`прыблізна праз {{count}} гадзін`}}),xHours:S({regular:{singularNominative:`{{count}} гадзіна`,singularGenitive:`{{count}} гадзіны`,pluralGenitive:`{{count}} гадзін`},past:{singularNominative:`{{count}} гадзіну таму`,singularGenitive:`{{count}} гадзіны таму`,pluralGenitive:`{{count}} гадзін таму`},future:{singularNominative:`праз {{count}} гадзіну`,singularGenitive:`праз {{count}} гадзіны`,pluralGenitive:`праз {{count}} гадзін`}}),xDays:S({regular:{singularNominative:`{{count}} дзень`,singularGenitive:`{{count}} дні`,pluralGenitive:`{{count}} дзён`}}),aboutXWeeks:S({regular:{singularNominative:`каля {{count}} тыдні`,singularGenitive:`каля {{count}} тыдняў`,pluralGenitive:`каля {{count}} тыдняў`},future:{singularNominative:`прыблізна праз {{count}} тыдзень`,singularGenitive:`прыблізна праз {{count}} тыдні`,pluralGenitive:`прыблізна праз {{count}} тыдняў`}}),xWeeks:S({regular:{singularNominative:`{{count}} тыдзень`,singularGenitive:`{{count}} тыдні`,pluralGenitive:`{{count}} тыдняў`}}),aboutXMonths:S({regular:{singularNominative:`каля {{count}} месяца`,singularGenitive:`каля {{count}} месяцаў`,pluralGenitive:`каля {{count}} месяцаў`},future:{singularNominative:`прыблізна праз {{count}} месяц`,singularGenitive:`прыблізна праз {{count}} месяцы`,pluralGenitive:`прыблізна праз {{count}} месяцаў`}}),xMonths:S({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяцы`,pluralGenitive:`{{count}} месяцаў`}}),aboutXYears:S({regular:{singularNominative:`каля {{count}} года`,singularGenitive:`каля {{count}} гадоў`,pluralGenitive:`каля {{count}} гадоў`},future:{singularNominative:`прыблізна праз {{count}} год`,singularGenitive:`прыблізна праз {{count}} гады`,pluralGenitive:`прыблізна праз {{count}} гадоў`}}),xYears:S({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} гады`,pluralGenitive:`{{count}} гадоў`}}),overXYears:S({regular:{singularNominative:`больш за {{count}} год`,singularGenitive:`больш за {{count}} гады`,pluralGenitive:`больш за {{count}} гадоў`},future:{singularNominative:`больш, чым праз {{count}} год`,singularGenitive:`больш, чым праз {{count}} гады`,pluralGenitive:`больш, чым праз {{count}} гадоў`}}),almostXYears:S({regular:{singularNominative:`амаль {{count}} год`,singularGenitive:`амаль {{count}} гады`,pluralGenitive:`амаль {{count}} гадоў`},future:{singularNominative:`амаль праз {{count}} год`,singularGenitive:`амаль праз {{count}} гады`,pluralGenitive:`амаль праз {{count}} гадоў`}})},gt=function(e,t,n){return n||={},ht[e](t,n)},_t={date:d({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},C=[`нядзелю`,`панядзелак`,`аўторак`,`сераду`,`чацьвер`,`пятніцу`,`суботу`];function vt(e){var t=C[e];switch(e){case 0:case 3:case 5:case 6:return`'у мінулую `+t+` а' p`;case 1:case 2:case 4:return`'у мінулы `+t+` а' p`}}function yt(e){return`'у `+C[e]+` а' p`}function bt(e){var t=C[e];switch(e){case 0:case 3:case 5:case 6:return`'у наступную `+t+` а' p`;case 1:case 2:case 4:return`'у наступны `+t+` а' p`}}var xt={lastWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?yt(i):vt(i)},yesterday:`'учора а' p`,today:`'сёньня а' p`,tomorrow:`'заўтра а' p`,nextWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?yt(i):bt(i)},other:`P`},St={code:`be-tarask`,formatDistance:gt,formatLong:_t,formatRelative:function(e,t,n,r){var i=xt[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=String(t?.unit),r=Number(e);return r+(n===`date`?`-га`:n===`hour`||n===`minute`||n===`second`?`-я`:(r%10==2||r%10==3)&&r%100!=12&&r%100!=13?`-і`:`-ы`)},era:f({values:{narrow:[`да н.э.`,`н.э.`],abbreviated:[`да н. э.`,`н. э.`],wide:[`да нашай эры`,`нашай эры`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ы кв.`,`2-і кв.`,`3-і кв.`,`4-ы кв.`],wide:[`1-ы квартал`,`2-і квартал`,`3-і квартал`,`4-ы квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`С`,`Л`,`С`,`К`,`Т`,`Ч`,`Л`,`Ж`,`В`,`К`,`Л`,`С`],abbreviated:[`студз.`,`лют.`,`сак.`,`крас.`,`трав.`,`чэрв.`,`ліп.`,`жн.`,`вер.`,`кастр.`,`ліст.`,`сьнеж.`],wide:[`студзень`,`люты`,`сакавік`,`красавік`,`травень`,`чэрвень`,`ліпень`,`жнівень`,`верасень`,`кастрычнік`,`лістапад`,`сьнежань`]},defaultWidth:`wide`,formattingValues:{narrow:[`С`,`Л`,`С`,`К`,`Т`,`Ч`,`Л`,`Ж`,`В`,`К`,`Л`,`С`],abbreviated:[`студз.`,`лют.`,`сак.`,`крас.`,`трав.`,`чэрв.`,`ліп.`,`жн.`,`вер.`,`кастр.`,`ліст.`,`сьнеж.`],wide:[`студзеня`,`лютага`,`сакавіка`,`красавіка`,`траўня`,`чэрвеня`,`ліпеня`,`жніўня`,`верасня`,`кастрычніка`,`лістапада`,`сьнежня`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`П`,`А`,`С`,`Ч`,`П`,`С`],short:[`нд`,`пн`,`аў`,`ср`,`чц`,`пт`,`сб`],abbreviated:[`нядз`,`пан`,`аўт`,`сер`,`чаць`,`пят`,`суб`],wide:[`нядзеля`,`панядзелак`,`аўторак`,`серада`,`чацьвер`,`пятніца`,`субота`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ДП`,pm:`ПП`,midnight:`поўн.`,noon:`поўд.`,morning:`ран.`,afternoon:`дзень`,evening:`веч.`,night:`ноч`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`поўн.`,noon:`поўд.`,morning:`ран.`,afternoon:`дзень`,evening:`веч.`,night:`ноч`},wide:{am:`ДП`,pm:`ПП`,midnight:`поўнач`,noon:`поўдзень`,morning:`раніца`,afternoon:`дзень`,evening:`вечар`,night:`ноч`}},defaultWidth:`any`,formattingValues:{narrow:{am:`ДП`,pm:`ПП`,midnight:`поўн.`,noon:`поўд.`,morning:`ран.`,afternoon:`дня`,evening:`веч.`,night:`ночы`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`поўн.`,noon:`поўд.`,morning:`ран.`,afternoon:`дня`,evening:`веч.`,night:`ночы`},wide:{am:`ДП`,pm:`ПП`,midnight:`поўнач`,noon:`поўдзень`,morning:`раніцы`,afternoon:`дня`,evening:`вечара`,night:`ночы`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ct={lessThanXSeconds:{one:`по-малко от секунда`,other:`по-малко от {{count}} секунди`},xSeconds:{one:`1 секунда`,other:`{{count}} секунди`},halfAMinute:`половин минута`,lessThanXMinutes:{one:`по-малко от минута`,other:`по-малко от {{count}} минути`},xMinutes:{one:`1 минута`,other:`{{count}} минути`},aboutXHours:{one:`около час`,other:`около {{count}} часа`},xHours:{one:`1 час`,other:`{{count}} часа`},xDays:{one:`1 ден`,other:`{{count}} дни`},aboutXWeeks:{one:`около седмица`,other:`около {{count}} седмици`},xWeeks:{one:`1 седмица`,other:`{{count}} седмици`},aboutXMonths:{one:`около месец`,other:`около {{count}} месеца`},xMonths:{one:`1 месец`,other:`{{count}} месеца`},aboutXYears:{one:`около година`,other:`около {{count}} години`},xYears:{one:`1 година`,other:`{{count}} години`},overXYears:{one:`над година`,other:`над {{count}} години`},almostXYears:{one:`почти година`,other:`почти {{count}} години`}},wt=function(e,t,n){var r,i=Ct[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`след `+r:`преди `+r:r},Tt={date:d({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},w=[`неделя`,`понеделник`,`вторник`,`сряда`,`четвъртък`,`петък`,`събота`];function Et(e){var t=w[e];switch(e){case 0:case 3:case 6:return`'миналата `+t+` в' p`;case 1:case 2:case 4:case 5:return`'миналия `+t+` в' p`}}function Dt(e){var t=w[e];return e===2?`'във `+t+` в' p`:`'в `+t+` в' p`}function Ot(e){var t=w[e];switch(e){case 0:case 3:case 6:return`'следващата `+t+` в' p`;case 1:case 2:case 4:case 5:return`'следващия `+t+` в' p`}}var kt={lastWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?Dt(i):Et(i)},yesterday:`'вчера в' p`,today:`'днес в' p`,tomorrow:`'утре в' p`,nextWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?Dt(i):Ot(i)},other:`P`},At=function(e,t,n,r){var i=kt[e];return typeof i==`function`?i(t,n,r):i},jt={narrow:[`пр.н.е.`,`н.е.`],abbreviated:[`преди н. е.`,`н. е.`],wide:[`преди новата ера`,`новата ера`]},Mt={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-во тримес.`,`2-ро тримес.`,`3-то тримес.`,`4-то тримес.`],wide:[`1-во тримесечие`,`2-ро тримесечие`,`3-то тримесечие`,`4-то тримесечие`]},Nt={abbreviated:[`яну`,`фев`,`мар`,`апр`,`май`,`юни`,`юли`,`авг`,`сеп`,`окт`,`ное`,`дек`],wide:[`януари`,`февруари`,`март`,`април`,`май`,`юни`,`юли`,`август`,`септември`,`октомври`,`ноември`,`декември`]},Pt={narrow:[`Н`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`нд`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`нед`,`пон`,`вто`,`сря`,`чет`,`пет`,`съб`],wide:[`неделя`,`понеделник`,`вторник`,`сряда`,`четвъртък`,`петък`,`събота`]},Ft={wide:{am:`преди обяд`,pm:`след обяд`,midnight:`в полунощ`,noon:`на обяд`,morning:`сутринта`,afternoon:`следобед`,evening:`вечерта`,night:`през нощта`}};function It(e){return e===`year`||e===`week`||e===`minute`||e===`second`}function Lt(e){return e===`quarter`}function T(e,t,n,r,i){var a=Lt(t)?i:It(t)?r:n;return e+`-`+a}var Rt={code:`bg`,formatDistance:wt,formatLong:Tt,formatRelative:At,localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;if(n===0)return T(0,r,`ев`,`ева`,`ево`);if(n%1e3==0)return T(n,r,`ен`,`на`,`но`);if(n%100==0)return T(n,r,`тен`,`тна`,`тно`);var i=n%100;if(i>20||i<10)switch(i%10){case 1:return T(n,r,`ви`,`ва`,`во`);case 2:return T(n,r,`ри`,`ра`,`ро`);case 7:case 8:return T(n,r,`ми`,`ма`,`мо`)}return T(n,r,`ти`,`та`,`то`)},era:f({values:jt,defaultWidth:`wide`}),quarter:f({values:Mt,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Nt,defaultWidth:`wide`}),day:f({values:Pt,defaultWidth:`wide`}),dayPeriod:f({values:Ft,defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},zt={locale:{1:`১`,2:`২`,3:`৩`,4:`৪`,5:`৫`,6:`৬`,7:`৭`,8:`৮`,9:`৯`,0:`০`},number:{"১":`1`,"২":`2`,"৩":`3`,"৪":`4`,"৫":`5`,"৬":`6`,"৭":`7`,"৮":`8`,"৯":`9`,"০":`0`}},Bt={narrow:[`খ্রিঃপূঃ`,`খ্রিঃ`],abbreviated:[`খ্রিঃপূর্ব`,`খ্রিঃ`],wide:[`খ্রিস্টপূর্ব`,`খ্রিস্টাব্দ`]},Vt={narrow:[`১`,`২`,`৩`,`৪`],abbreviated:[`১ত্রৈ`,`২ত্রৈ`,`৩ত্রৈ`,`৪ত্রৈ`],wide:[`১ম ত্রৈমাসিক`,`২য় ত্রৈমাসিক`,`৩য় ত্রৈমাসিক`,`৪র্থ ত্রৈমাসিক`]},Ht={narrow:[`জানু`,`ফেব্রু`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্ট`,`অক্টো`,`নভে`,`ডিসে`],abbreviated:[`জানু`,`ফেব্রু`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্ট`,`অক্টো`,`নভে`,`ডিসে`],wide:[`জানুয়ারি`,`ফেব্রুয়ারি`,`মার্চ`,`এপ্রিল`,`মে`,`জুন`,`জুলাই`,`আগস্ট`,`সেপ্টেম্বর`,`অক্টোবর`,`নভেম্বর`,`ডিসেম্বর`]},Ut={narrow:[`র`,`সো`,`ম`,`বু`,`বৃ`,`শু`,`শ`],short:[`রবি`,`সোম`,`মঙ্গল`,`বুধ`,`বৃহ`,`শুক্র`,`শনি`],abbreviated:[`রবি`,`সোম`,`মঙ্গল`,`বুধ`,`বৃহ`,`শুক্র`,`শনি`],wide:[`রবিবার`,`সোমবার`,`মঙ্গলবার`,`বুধবার`,`বৃহস্পতিবার `,`শুক্রবার`,`শনিবার`]},Wt={narrow:{am:`পূ`,pm:`অপ`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`},abbreviated:{am:`পূর্বাহ্ন`,pm:`অপরাহ্ন`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`},wide:{am:`পূর্বাহ্ন`,pm:`অপরাহ্ন`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`}},Gt={narrow:{am:`পূ`,pm:`অপ`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`},abbreviated:{am:`পূর্বাহ্ন`,pm:`অপরাহ্ন`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`},wide:{am:`পূর্বাহ্ন`,pm:`অপরাহ্ন`,midnight:`মধ্যরাত`,noon:`মধ্যাহ্ন`,morning:`সকাল`,afternoon:`বিকাল`,evening:`সন্ধ্যা`,night:`রাত`}};function Kt(e,t){if(e>18&&e<=31)return t+`শে`;switch(e){case 1:return t+`লা`;case 2:case 3:return t+`রা`;case 4:return t+`ঠা`;default:return t+`ই`}}var qt=function(e,t){var n=Number(e),r=Jt(n);if(t?.unit===`date`)return Kt(n,r);if(n>10||n===0)return r+`তম`;switch(n%10){case 2:case 3:return r+`য়`;case 4:return r+`র্থ`;case 6:return r+`ষ্ঠ`;default:return r+`ম`}};function Jt(e){return e.toString().replace(/\d/g,function(e){return zt.locale[e]})}var Yt={ordinalNumber:qt,era:f({values:Bt,defaultWidth:`wide`}),quarter:f({values:Vt,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Ht,defaultWidth:`wide`}),day:f({values:Ut,defaultWidth:`wide`}),dayPeriod:f({values:Wt,defaultWidth:`wide`,formattingValues:Gt,defaultFormattingWidth:`wide`})},Xt={lessThanXSeconds:{one:`প্রায় ১ সেকেন্ড`,other:`প্রায় {{count}} সেকেন্ড`},xSeconds:{one:`১ সেকেন্ড`,other:`{{count}} সেকেন্ড`},halfAMinute:`আধ মিনিট`,lessThanXMinutes:{one:`প্রায় ১ মিনিট`,other:`প্রায় {{count}} মিনিট`},xMinutes:{one:`১ মিনিট`,other:`{{count}} মিনিট`},aboutXHours:{one:`প্রায় ১ ঘন্টা`,other:`প্রায় {{count}} ঘন্টা`},xHours:{one:`১ ঘন্টা`,other:`{{count}} ঘন্টা`},xDays:{one:`১ দিন`,other:`{{count}} দিন`},aboutXWeeks:{one:`প্রায় ১ সপ্তাহ`,other:`প্রায় {{count}} সপ্তাহ`},xWeeks:{one:`১ সপ্তাহ`,other:`{{count}} সপ্তাহ`},aboutXMonths:{one:`প্রায় ১ মাস`,other:`প্রায় {{count}} মাস`},xMonths:{one:`১ মাস`,other:`{{count}} মাস`},aboutXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`},xYears:{one:`১ বছর`,other:`{{count}} বছর`},overXYears:{one:`১ বছরের বেশি`,other:`{{count}} বছরের বেশি`},almostXYears:{one:`প্রায় ১ বছর`,other:`প্রায় {{count}} বছর`}},Zt=function(e,t,n){var r,i=Xt[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,Jt(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` এর মধ্যে`:r+` আগে`:r},Qt={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}} 'সময়'`,long:`{{date}} {{time}} 'সময়'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},$t={lastWeek:`'গত' eeee 'সময়' p`,yesterday:`'গতকাল' 'সময়' p`,today:`'আজ' 'সময়' p`,tomorrow:`'আগামীকাল' 'সময়' p`,nextWeek:`eeee 'সময়' p`,other:`P`},en={code:`bn`,formatDistance:Zt,formatLong:Qt,formatRelative:function(e,t,n,r){return $t[e]},localize:Yt,match:{ordinalNumber:m({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:`wide`}),quarter:p({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:`wide`}),dayPeriod:p({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},tn={lessThanXSeconds:{one:{standalone:`manje od 1 sekunde`,withPrepositionAgo:`manje od 1 sekunde`,withPrepositionIn:`manje od 1 sekundu`},dual:`manje od {{count}} sekunde`,other:`manje od {{count}} sekundi`},xSeconds:{one:{standalone:`1 sekunda`,withPrepositionAgo:`1 sekunde`,withPrepositionIn:`1 sekundu`},dual:`{{count}} sekunde`,other:`{{count}} sekundi`},halfAMinute:`pola minute`,lessThanXMinutes:{one:{standalone:`manje od 1 minute`,withPrepositionAgo:`manje od 1 minute`,withPrepositionIn:`manje od 1 minutu`},dual:`manje od {{count}} minute`,other:`manje od {{count}} minuta`},xMinutes:{one:{standalone:`1 minuta`,withPrepositionAgo:`1 minute`,withPrepositionIn:`1 minutu`},dual:`{{count}} minute`,other:`{{count}} minuta`},aboutXHours:{one:{standalone:`oko 1 sat`,withPrepositionAgo:`oko 1 sat`,withPrepositionIn:`oko 1 sat`},dual:`oko {{count}} sata`,other:`oko {{count}} sati`},xHours:{one:{standalone:`1 sat`,withPrepositionAgo:`1 sat`,withPrepositionIn:`1 sat`},dual:`{{count}} sata`,other:`{{count}} sati`},xDays:{one:{standalone:`1 dan`,withPrepositionAgo:`1 dan`,withPrepositionIn:`1 dan`},dual:`{{count}} dana`,other:`{{count}} dana`},aboutXWeeks:{one:{standalone:`oko 1 sedmicu`,withPrepositionAgo:`oko 1 sedmicu`,withPrepositionIn:`oko 1 sedmicu`},dual:`oko {{count}} sedmice`,other:`oko {{count}} sedmice`},xWeeks:{one:{standalone:`1 sedmicu`,withPrepositionAgo:`1 sedmicu`,withPrepositionIn:`1 sedmicu`},dual:`{{count}} sedmice`,other:`{{count}} sedmice`},aboutXMonths:{one:{standalone:`oko 1 mjesec`,withPrepositionAgo:`oko 1 mjesec`,withPrepositionIn:`oko 1 mjesec`},dual:`oko {{count}} mjeseca`,other:`oko {{count}} mjeseci`},xMonths:{one:{standalone:`1 mjesec`,withPrepositionAgo:`1 mjesec`,withPrepositionIn:`1 mjesec`},dual:`{{count}} mjeseca`,other:`{{count}} mjeseci`},aboutXYears:{one:{standalone:`oko 1 godinu`,withPrepositionAgo:`oko 1 godinu`,withPrepositionIn:`oko 1 godinu`},dual:`oko {{count}} godine`,other:`oko {{count}} godina`},xYears:{one:{standalone:`1 godina`,withPrepositionAgo:`1 godine`,withPrepositionIn:`1 godinu`},dual:`{{count}} godine`,other:`{{count}} godina`},overXYears:{one:{standalone:`preko 1 godinu`,withPrepositionAgo:`preko 1 godinu`,withPrepositionIn:`preko 1 godinu`},dual:`preko {{count}} godine`,other:`preko {{count}} godina`},almostXYears:{one:{standalone:`gotovo 1 godinu`,withPrepositionAgo:`gotovo 1 godinu`,withPrepositionIn:`gotovo 1 godinu`},dual:`gotovo {{count}} godine`,other:`gotovo {{count}} godina`}},nn=function(e,t,n){var r,i=tn[e];return r=typeof i==`string`?i:t===1?n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`prije `+r:r},rn={date:d({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},an={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošle nedjelje u' p`;case 3:return`'prošle srijede u' p`;case 6:return`'prošle subote u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'juče u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'sljedeće nedjelje u' p`;case 3:return`'sljedeću srijedu u' p`;case 6:return`'sljedeću subotu u' p`;default:return`'sljedeći' EEEE 'u' p`}},other:`P`},on={code:`bs`,formatDistance:nn,formatLong:rn,formatRelative:function(e,t,n,r){var i=an[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){var n=Number(e);return String(n)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Hr.`,`po. Hr.`],wide:[`Prije Hrista`,`Poslije Hrista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`juni`,`juli`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`juni`,`juli`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],wide:[`nedjelja`,`ponedjeljak`,`utorak`,`srijeda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`poslije podne`,evening:`uveče`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`poslije podne`,evening:`uveče`,night:`noću`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},sn={lessThanXSeconds:{one:`menys d'un segon`,eleven:`menys d'onze segons`,other:`menys de {{count}} segons`},xSeconds:{one:`1 segon`,other:`{{count}} segons`},halfAMinute:`mig minut`,lessThanXMinutes:{one:`menys d'un minut`,eleven:`menys d'onze minuts`,other:`menys de {{count}} minuts`},xMinutes:{one:`1 minut`,other:`{{count}} minuts`},aboutXHours:{one:`aproximadament una hora`,other:`aproximadament {{count}} hores`},xHours:{one:`1 hora`,other:`{{count}} hores`},xDays:{one:`1 dia`,other:`{{count}} dies`},aboutXWeeks:{one:`aproximadament una setmana`,other:`aproximadament {{count}} setmanes`},xWeeks:{one:`1 setmana`,other:`{{count}} setmanes`},aboutXMonths:{one:`aproximadament un mes`,other:`aproximadament {{count}} mesos`},xMonths:{one:`1 mes`,other:`{{count}} mesos`},aboutXYears:{one:`aproximadament un any`,other:`aproximadament {{count}} anys`},xYears:{one:`1 any`,other:`{{count}} anys`},overXYears:{one:`més d'un any`,eleven:`més d'onze anys`,other:`més de {{count}} anys`},almostXYears:{one:`gairebé un any`,other:`gairebé {{count}} anys`}},cn=function(e,t,n){var r,i=sn[e];return r=typeof i==`string`?i:t===1?i.one:t===11&&i.eleven?i.eleven:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`fa `+r:r},ln={date:d({formats:{full:`EEEE, d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'a les' {{time}}`,long:`{{date}} 'a les' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},un={lastWeek:`'el' eeee 'passat a la' LT`,yesterday:`'ahir a la' p`,today:`'avui a la' p`,tomorrow:`'demà a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},dn={lastWeek:`'el' eeee 'passat a les' p`,yesterday:`'ahir a les' p`,today:`'avui a les' p`,tomorrow:`'demà a les' p`,nextWeek:`eeee 'a les' p`,other:`P`},fn={code:`ca`,formatDistance:cn,formatLong:ln,formatRelative:function(e,t,n,r){return t.getHours()===1?un[e]:dn[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`r`;case 2:return n+`n`;case 3:return n+`r`;case 4:return n+`t`}return n+`è`},era:f({values:{narrow:[`aC`,`dC`],abbreviated:[`a. de C.`,`d. de C.`],wide:[`abans de Crist`,`després de Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1r trimestre`,`2n trimestre`,`3r trimestre`,`4t trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`GN`,`FB`,`MÇ`,`AB`,`MG`,`JN`,`JL`,`AG`,`ST`,`OC`,`NV`,`DS`],abbreviated:[`gen.`,`febr.`,`març`,`abr.`,`maig`,`juny`,`jul.`,`ag.`,`set.`,`oct.`,`nov.`,`des.`],wide:[`gener`,`febrer`,`març`,`abril`,`maig`,`juny`,`juliol`,`agost`,`setembre`,`octubre`,`novembre`,`desembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],short:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],abbreviated:[`dg.`,`dl.`,`dt.`,`dm.`,`dj.`,`dv.`,`ds.`],wide:[`diumenge`,`dilluns`,`dimarts`,`dimecres`,`dijous`,`divendres`,`dissabte`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`mitjanit`,noon:`migdia`,morning:`matí`,afternoon:`tarda`,evening:`vespre`,night:`nit`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`},abbreviated:{am:`AM`,pm:`PM`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`de la mitjanit`,noon:`del migdia`,morning:`del matí`,afternoon:`de la tarda`,evening:`del vespre`,night:`de la nit`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(è|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},defaultParseWidth:`wide`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:`wide`}),day:p({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:`wide`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},pn={lessThanXSeconds:{one:`کەمتر لە یەک چرکە`,other:`کەمتر لە {{count}} چرکە`},xSeconds:{one:`1 چرکە`,other:`{{count}} چرکە`},halfAMinute:`نیو کاتژمێر`,lessThanXMinutes:{one:`کەمتر لە یەک خولەک`,other:`کەمتر لە {{count}} خولەک`},xMinutes:{one:`1 خولەک`,other:`{{count}} خولەک`},aboutXHours:{one:`دەوروبەری 1 کاتژمێر`,other:`دەوروبەری {{count}} کاتژمێر`},xHours:{one:`1 کاتژمێر`,other:`{{count}} کاتژمێر`},xDays:{one:`1 ڕۆژ`,other:`{{count}} ژۆژ`},aboutXWeeks:{one:`دەوروبەری 1 هەفتە`,other:`دوروبەری {{count}} هەفتە`},xWeeks:{one:`1 هەفتە`,other:`{{count}} هەفتە`},aboutXMonths:{one:`داوروبەری 1 مانگ`,other:`دەوروبەری {{count}} مانگ`},xMonths:{one:`1 مانگ`,other:`{{count}} مانگ`},aboutXYears:{one:`دەوروبەری 1 ساڵ`,other:`دەوروبەری {{count}} ساڵ`},xYears:{one:`1 ساڵ`,other:`{{count}} ساڵ`},overXYears:{one:`زیاتر لە ساڵێک`,other:`زیاتر لە {{count}} ساڵ`},almostXYears:{one:`بەنزیکەیی ساڵێک `,other:`بەنزیکەیی {{count}} ساڵ`}},mn=function(e,t,n){var r,i=pn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`لە ماوەی `+r+`دا`:r+`پێش ئێستا`:r},hn={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'کاتژمێر' {{time}}`,long:`{{date}} 'کاتژمێر' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},gn={lastWeek:`'هەفتەی ڕابردوو' eeee 'کاتژمێر' p`,yesterday:`'دوێنێ کاتژمێر' p`,today:`'ئەمڕۆ کاتژمێر' p`,tomorrow:`'بەیانی کاتژمێر' p`,nextWeek:`eeee 'کاتژمێر' p`,other:`P`},_n={code:`ckb`,formatDistance:mn,formatLong:hn,formatRelative:function(e,t,n,r){return gn[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`پ`,`د`],abbreviated:[`پ-ز`,`د-ز`],wide:[`پێش زاین`,`دوای زاین`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`چ1م`,`چ2م`,`چ3م`,`چ4م`],wide:[`چارەگی یەکەم`,`چارەگی دووەم`,`چارەگی سێیەم`,`چارەگی چوارەم`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ک-د`,`ش`,`ئا`,`ن`,`م`,`ح`,`ت`,`ئا`,`ئە`,`تش-ی`,`تش-د`,`ک-ی`],abbreviated:[`کان-دوو`,`شوب`,`ئاد`,`نیس`,`مایس`,`حوز`,`تەم`,`ئاب`,`ئەل`,`تش-یەک`,`تش-دوو`,`کان-یەک`],wide:[`کانوونی دووەم`,`شوبات`,`ئادار`,`نیسان`,`مایس`,`حوزەیران`,`تەمموز`,`ئاب`,`ئەیلول`,`تشرینی یەکەم`,`تشرینی دووەم`,`کانوونی یەکەم`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ی-ش`,`د-ش`,`س-ش`,`چ-ش`,`پ-ش`,`هە`,`ش`],short:[`یە-شە`,`دوو-شە`,`سێ-شە`,`چو-شە`,`پێ-شە`,`هەی`,`شە`],abbreviated:[`یەک-شەم`,`دوو-شەم`,`سێ-شەم`,`چوار-شەم`,`پێنج-شەم`,`هەینی`,`شەمە`],wide:[`یەک شەمە`,`دوو شەمە`,`سێ شەمە`,`چوار شەمە`,`پێنج شەمە`,`هەینی`,`شەمە`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`پ`,pm:`د`,midnight:`ن-ش`,noon:`ن`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`},abbreviated:{am:`پ-ن`,pm:`د-ن`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`},wide:{am:`پێش نیوەڕۆ`,pm:`دوای نیوەڕۆ`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`پ`,pm:`د`,midnight:`ن-ش`,noon:`ن`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`},abbreviated:{am:`پ-ن`,pm:`د-ن`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`},wide:{am:`پێش نیوەڕۆ`,pm:`دوای نیوەڕۆ`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(پ|د)/i,abbreviated:/^(پ-ز|د.ز)/i,wide:/^(پێش زاین| دوای زاین)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^د/g,/^پ/g]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^م[1234]چ/i,wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/چارەگی یەکەم/,/چارەگی دووەم/,/چارەگی سيیەم/,/چارەگی چوارەم/],any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i,abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i,wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ک-د/i,/^ش/i,/^ئا/i,/^ن/i,/^م/i,/^ح/i,/^ت/i,/^ئا/i,/^ئە/i,/^تش-ی/i,/^تش-د/i,/^ک-ی/i],any:[/^کان-دوو/i,/^شوب/i,/^ئاد/i,/^نیس/i,/^مایس/i,/^حوز/i,/^تەم/i,/^ئاب/i,/^ئەل/i,/^تش-یەک/i,/^تش-دوو/i,/^|کان-یەک/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ش|ی|د|س|چ|پ|هە)/i,short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i,abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i,wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i,abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/,wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/,any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^د/i,pm:/^پ/i,midnight:/^ن-ش/i,noon:/^ن/i,morning:/بەیانی/i,afternoon:/دواینیوەڕۆ/i,evening:/ئێوارە/i,night:/شەو/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},vn={lessThanXSeconds:{one:{regular:`méně než 1 sekunda`,past:`před méně než 1 sekundou`,future:`za méně než 1 sekundu`},few:{regular:`méně než {{count}} sekundy`,past:`před méně než {{count}} sekundami`,future:`za méně než {{count}} sekundy`},many:{regular:`méně než {{count}} sekund`,past:`před méně než {{count}} sekundami`,future:`za méně než {{count}} sekund`}},xSeconds:{one:{regular:`1 sekunda`,past:`před 1 sekundou`,future:`za 1 sekundu`},few:{regular:`{{count}} sekundy`,past:`před {{count}} sekundami`,future:`za {{count}} sekundy`},many:{regular:`{{count}} sekund`,past:`před {{count}} sekundami`,future:`za {{count}} sekund`}},halfAMinute:{type:`other`,other:{regular:`půl minuty`,past:`před půl minutou`,future:`za půl minuty`}},lessThanXMinutes:{one:{regular:`méně než 1 minuta`,past:`před méně než 1 minutou`,future:`za méně než 1 minutu`},few:{regular:`méně než {{count}} minuty`,past:`před méně než {{count}} minutami`,future:`za méně než {{count}} minuty`},many:{regular:`méně než {{count}} minut`,past:`před méně než {{count}} minutami`,future:`za méně než {{count}} minut`}},xMinutes:{one:{regular:`1 minuta`,past:`před 1 minutou`,future:`za 1 minutu`},few:{regular:`{{count}} minuty`,past:`před {{count}} minutami`,future:`za {{count}} minuty`},many:{regular:`{{count}} minut`,past:`před {{count}} minutami`,future:`za {{count}} minut`}},aboutXHours:{one:{regular:`přibližně 1 hodina`,past:`přibližně před 1 hodinou`,future:`přibližně za 1 hodinu`},few:{regular:`přibližně {{count}} hodiny`,past:`přibližně před {{count}} hodinami`,future:`přibližně za {{count}} hodiny`},many:{regular:`přibližně {{count}} hodin`,past:`přibližně před {{count}} hodinami`,future:`přibližně za {{count}} hodin`}},xHours:{one:{regular:`1 hodina`,past:`před 1 hodinou`,future:`za 1 hodinu`},few:{regular:`{{count}} hodiny`,past:`před {{count}} hodinami`,future:`za {{count}} hodiny`},many:{regular:`{{count}} hodin`,past:`před {{count}} hodinami`,future:`za {{count}} hodin`}},xDays:{one:{regular:`1 den`,past:`před 1 dnem`,future:`za 1 den`},few:{regular:`{{count}} dny`,past:`před {{count}} dny`,future:`za {{count}} dny`},many:{regular:`{{count}} dní`,past:`před {{count}} dny`,future:`za {{count}} dní`}},aboutXWeeks:{one:{regular:`přibližně 1 týden`,past:`přibližně před 1 týdnem`,future:`přibližně za 1 týden`},few:{regular:`přibližně {{count}} týdny`,past:`přibližně před {{count}} týdny`,future:`přibližně za {{count}} týdny`},many:{regular:`přibližně {{count}} týdnů`,past:`přibližně před {{count}} týdny`,future:`přibližně za {{count}} týdnů`}},xWeeks:{one:{regular:`1 týden`,past:`před 1 týdnem`,future:`za 1 týden`},few:{regular:`{{count}} týdny`,past:`před {{count}} týdny`,future:`za {{count}} týdny`},many:{regular:`{{count}} týdnů`,past:`před {{count}} týdny`,future:`za {{count}} týdnů`}},aboutXMonths:{one:{regular:`přibližně 1 měsíc`,past:`přibližně před 1 měsícem`,future:`přibližně za 1 měsíc`},few:{regular:`přibližně {{count}} měsíce`,past:`přibližně před {{count}} měsíci`,future:`přibližně za {{count}} měsíce`},many:{regular:`přibližně {{count}} měsíců`,past:`přibližně před {{count}} měsíci`,future:`přibližně za {{count}} měsíců`}},xMonths:{one:{regular:`1 měsíc`,past:`před 1 měsícem`,future:`za 1 měsíc`},few:{regular:`{{count}} měsíce`,past:`před {{count}} měsíci`,future:`za {{count}} měsíce`},many:{regular:`{{count}} měsíců`,past:`před {{count}} měsíci`,future:`za {{count}} měsíců`}},aboutXYears:{one:{regular:`přibližně 1 rok`,past:`přibližně před 1 rokem`,future:`přibližně za 1 rok`},few:{regular:`přibližně {{count}} roky`,past:`přibližně před {{count}} roky`,future:`přibližně za {{count}} roky`},many:{regular:`přibližně {{count}} roků`,past:`přibližně před {{count}} roky`,future:`přibližně za {{count}} roků`}},xYears:{one:{regular:`1 rok`,past:`před 1 rokem`,future:`za 1 rok`},few:{regular:`{{count}} roky`,past:`před {{count}} roky`,future:`za {{count}} roky`},many:{regular:`{{count}} roků`,past:`před {{count}} roky`,future:`za {{count}} roků`}},overXYears:{one:{regular:`více než 1 rok`,past:`před více než 1 rokem`,future:`za více než 1 rok`},few:{regular:`více než {{count}} roky`,past:`před více než {{count}} roky`,future:`za více než {{count}} roky`},many:{regular:`více než {{count}} roků`,past:`před více než {{count}} roky`,future:`za více než {{count}} roků`}},almostXYears:{one:{regular:`skoro 1 rok`,past:`skoro před 1 rokem`,future:`skoro za 1 rok`},few:{regular:`skoro {{count}} roky`,past:`skoro před {{count}} roky`,future:`skoro za {{count}} roky`},many:{regular:`skoro {{count}} roků`,past:`skoro před {{count}} roky`,future:`skoro za {{count}} roků`}}},yn=function(e,t,n){var r,i=vn[e];r=i.type===`other`?i.other:t===1?i.one:t>1&&t<5?i.few:i.many;var a=n?.addSuffix===!0,o=n?.comparison;return(a&&o===-1?r.past:a&&o===1?r.future:r.regular).replace(`{{count}}`,String(t))},bn={date:d({formats:{full:`EEEE, d. MMMM yyyy`,long:`d. MMMM yyyy`,medium:`d. M. yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'v' {{time}}`,long:`{{date}} 'v' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},xn=[`neděli`,`pondělí`,`úterý`,`středu`,`čtvrtek`,`pátek`,`sobotu`],Sn={lastWeek:`'poslední' eeee 've' p`,yesterday:`'včera v' p`,today:`'dnes v' p`,tomorrow:`'zítra v' p`,nextWeek:function(e){return`'v `+xn[e.getDay()]+` o' p`},other:`P`},Cn={code:`cs`,formatDistance:yn,formatLong:bn,formatRelative:function(e,t){var n=Sn[e];return typeof n==`function`?n(t):n},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`př. n. l.`,`n. l.`],abbreviated:[`př. n. l.`,`n. l.`],wide:[`před naším letopočtem`,`našeho letopočtu`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`],wide:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`leden`,`únor`,`březen`,`duben`,`květen`,`červen`,`červenec`,`srpen`,`září`,`říjen`,`listopad`,`prosinec`]},defaultWidth:`wide`,formattingValues:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`ledna`,`února`,`března`,`dubna`,`května`,`června`,`července`,`srpna`,`září`,`října`,`listopadu`,`prosince`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],short:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],abbreviated:[`ned`,`pon`,`úte`,`stř`,`čtv`,`pát`,`sob`],wide:[`neděle`,`pondělí`,`úterý`,`středa`,`čtvrtek`,`pátek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},wn={lessThanXSeconds:{one:`llai na eiliad`,other:`llai na {{count}} eiliad`},xSeconds:{one:`1 eiliad`,other:`{{count}} eiliad`},halfAMinute:`hanner munud`,lessThanXMinutes:{one:`llai na munud`,two:`llai na 2 funud`,other:`llai na {{count}} munud`},xMinutes:{one:`1 munud`,two:`2 funud`,other:`{{count}} munud`},aboutXHours:{one:`tua 1 awr`,other:`tua {{count}} awr`},xHours:{one:`1 awr`,other:`{{count}} awr`},xDays:{one:`1 diwrnod`,two:`2 ddiwrnod`,other:`{{count}} diwrnod`},aboutXWeeks:{one:`tua 1 wythnos`,two:`tua pythefnos`,other:`tua {{count}} wythnos`},xWeeks:{one:`1 wythnos`,two:`pythefnos`,other:`{{count}} wythnos`},aboutXMonths:{one:`tua 1 mis`,two:`tua 2 fis`,other:`tua {{count}} mis`},xMonths:{one:`1 mis`,two:`2 fis`,other:`{{count}} mis`},aboutXYears:{one:`tua 1 flwyddyn`,two:`tua 2 flynedd`,other:`tua {{count}} mlynedd`},xYears:{one:`1 flwyddyn`,two:`2 flynedd`,other:`{{count}} mlynedd`},overXYears:{one:`dros 1 flwyddyn`,two:`dros 2 flynedd`,other:`dros {{count}} mlynedd`},almostXYears:{one:`bron 1 flwyddyn`,two:`bron 2 flynedd`,other:`bron {{count}} mlynedd`}},Tn=function(e,t,n){var r,i=wn[e];return r=typeof i==`string`?i:t===1?i.one:t===2&&i.two?i.two:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`mewn `+r:r+` yn ôl`:r},En={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'am' {{time}}`,long:`{{date}} 'am' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Dn={lastWeek:`eeee 'diwethaf am' p`,yesterday:`'ddoe am' p`,today:`'heddiw am' p`,tomorrow:`'yfory am' p`,nextWeek:`eeee 'am' p`,other:`P`},On={code:`cy`,formatDistance:Tn,formatLong:En,formatRelative:function(e,t,n,r){return Dn[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);if(n<20)switch(n){case 0:return n+`fed`;case 1:return n+`af`;case 2:return n+`ail`;case 3:case 4:return n+`ydd`;case 5:case 6:return n+`ed`;case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+`fed`;case 11:case 13:case 14:case 16:case 17:case 19:return n+`eg`}else if(n>=50&&n<=60||n===80||n>=100)return n+`fed`;return n+`ain`},era:f({values:{narrow:[`C`,`O`],abbreviated:[`CC`,`OC`],wide:[`Cyn Crist`,`Ar ôl Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Ch1`,`Ch2`,`Ch3`,`Ch4`],wide:[`Chwarter 1af`,`2ail chwarter`,`3ydd chwarter`,`4ydd chwarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`Ch`,`Ma`,`E`,`Mi`,`Me`,`G`,`A`,`Md`,`H`,`T`,`Rh`],abbreviated:[`Ion`,`Chwe`,`Maw`,`Ebr`,`Mai`,`Meh`,`Gor`,`Aws`,`Med`,`Hyd`,`Tach`,`Rhag`],wide:[`Ionawr`,`Chwefror`,`Mawrth`,`Ebrill`,`Mai`,`Mehefin`,`Gorffennaf`,`Awst`,`Medi`,`Hydref`,`Tachwedd`,`Rhagfyr`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`Ll`,`M`,`M`,`I`,`G`,`S`],short:[`Su`,`Ll`,`Ma`,`Me`,`Ia`,`Gw`,`Sa`],abbreviated:[`Sul`,`Llun`,`Maw`,`Mer`,`Iau`,`Gwe`,`Sad`],wide:[`dydd Sul`,`dydd Llun`,`dydd Mawrth`,`dydd Mercher`,`dydd Iau`,`dydd Gwener`,`dydd Sadwrn`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`b`,pm:`h`,midnight:`hn`,noon:`hd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`},abbreviated:{am:`yb`,pm:`yh`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`},wide:{am:`y.b.`,pm:`y.h.`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`b`,pm:`h`,midnight:`hn`,noon:`hd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`},abbreviated:{am:`yb`,pm:`yh`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`},wide:{am:`y.b.`,pm:`y.h.`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},kn={lessThanXSeconds:{one:`mindre end ét sekund`,other:`mindre end {{count}} sekunder`},xSeconds:{one:`1 sekund`,other:`{{count}} sekunder`},halfAMinute:`ét halvt minut`,lessThanXMinutes:{one:`mindre end ét minut`,other:`mindre end {{count}} minutter`},xMinutes:{one:`1 minut`,other:`{{count}} minutter`},aboutXHours:{one:`cirka 1 time`,other:`cirka {{count}} timer`},xHours:{one:`1 time`,other:`{{count}} timer`},xDays:{one:`1 dag`,other:`{{count}} dage`},aboutXWeeks:{one:`cirka 1 uge`,other:`cirka {{count}} uger`},xWeeks:{one:`1 uge`,other:`{{count}} uger`},aboutXMonths:{one:`cirka 1 måned`,other:`cirka {{count}} måneder`},xMonths:{one:`1 måned`,other:`{{count}} måneder`},aboutXYears:{one:`cirka 1 år`,other:`cirka {{count}} år`},xYears:{one:`1 år`,other:`{{count}} år`},overXYears:{one:`over 1 år`,other:`over {{count}} år`},almostXYears:{one:`næsten 1 år`,other:`næsten {{count}} år`}},An=function(e,t,n){var r,i=kn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`om `+r:r+` siden`:r},jn={date:d({formats:{full:`EEEE 'den' d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kl'. {{time}}`,long:`{{date}} 'kl'. {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Mn={lastWeek:`'sidste' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgen kl.' p`,nextWeek:`'på' eeee 'kl.' p`,other:`P`},Nn={code:`da`,formatDistance:An,formatLong:jn,formatRelative:function(e,t,n,r){return Mn[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`fvt`,`vt`],abbreviated:[`f.v.t.`,`v.t.`],wide:[`før vesterlandsk tidsregning`,`vesterlandsk tidsregning`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. kvt.`,`2. kvt.`,`3. kvt.`,`4. kvt.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januar`,`februar`,`marts`,`april`,`maj`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],abbreviated:[`søn.`,`man.`,`tir.`,`ons.`,`tor.`,`fre.`,`lør.`],wide:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Pn={lessThanXSeconds:{standalone:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`},withPreposition:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`}},xSeconds:{standalone:{one:`1 Sekunde`,other:`{{count}} Sekunden`},withPreposition:{one:`1 Sekunde`,other:`{{count}} Sekunden`}},halfAMinute:{standalone:`eine halbe Minute`,withPreposition:`einer halben Minute`},lessThanXMinutes:{standalone:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`},withPreposition:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`}},xMinutes:{standalone:{one:`1 Minute`,other:`{{count}} Minuten`},withPreposition:{one:`1 Minute`,other:`{{count}} Minuten`}},aboutXHours:{standalone:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`},withPreposition:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`}},xHours:{standalone:{one:`1 Stunde`,other:`{{count}} Stunden`},withPreposition:{one:`1 Stunde`,other:`{{count}} Stunden`}},xDays:{standalone:{one:`1 Tag`,other:`{{count}} Tage`},withPreposition:{one:`1 Tag`,other:`{{count}} Tagen`}},aboutXWeeks:{standalone:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`},withPreposition:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`}},xWeeks:{standalone:{one:`1 Woche`,other:`{{count}} Wochen`},withPreposition:{one:`1 Woche`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`etwa 1 Monat`,other:`etwa {{count}} Monate`},withPreposition:{one:`etwa 1 Monat`,other:`etwa {{count}} Monaten`}},xMonths:{standalone:{one:`1 Monat`,other:`{{count}} Monate`},withPreposition:{one:`1 Monat`,other:`{{count}} Monaten`}},aboutXYears:{standalone:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahre`},withPreposition:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahren`}},xYears:{standalone:{one:`1 Jahr`,other:`{{count}} Jahre`},withPreposition:{one:`1 Jahr`,other:`{{count}} Jahren`}},overXYears:{standalone:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahre`},withPreposition:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahren`}},almostXYears:{standalone:{one:`fast 1 Jahr`,other:`fast {{count}} Jahre`},withPreposition:{one:`fast 1 Jahr`,other:`fast {{count}} Jahren`}}},Fn=function(e,t,n){var r,i=n!=null&&n.addSuffix?Pn[e].withPreposition:Pn[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r},In={date:d({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Ln={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},Rn=function(e,t,n,r){return Ln[e]},zn={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},Bn={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},Vn={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},Hn={narrow:Vn.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:Vn.wide},Un={ordinalNumber:function(e){return Number(e)+`.`},era:f({values:zn,defaultWidth:`wide`}),quarter:f({values:Bn,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Vn,formattingValues:Hn,defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},Wn={ordinalNumber:m({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:p({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},Gn={code:`de`,formatDistance:Fn,formatLong:In,formatRelative:Rn,localize:Un,match:Wn,options:{weekStartsOn:1,firstWeekContainsDate:4}},Kn={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},qn={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},E={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jän`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Jänner`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},Jn={narrow:E.narrow,abbreviated:[`Jän.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:E.wide},Yn={code:`de-AT`,formatDistance:Fn,formatLong:In,formatRelative:Rn,localize:{ordinalNumber:function(e){return Number(e)+`.`},era:f({values:Kn,defaultWidth:`wide`}),quarter:f({values:qn,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:E,formattingValues:Jn,defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},match:Wn,options:{weekStartsOn:1,firstWeekContainsDate:4}},Xn={lessThanXSeconds:{one:`λιγότερο από ένα δευτερόλεπτο`,other:`λιγότερο από {{count}} δευτερόλεπτα`},xSeconds:{one:`1 δευτερόλεπτο`,other:`{{count}} δευτερόλεπτα`},halfAMinute:`μισό λεπτό`,lessThanXMinutes:{one:`λιγότερο από ένα λεπτό`,other:`λιγότερο από {{count}} λεπτά`},xMinutes:{one:`1 λεπτό`,other:`{{count}} λεπτά`},aboutXHours:{one:`περίπου 1 ώρα`,other:`περίπου {{count}} ώρες`},xHours:{one:`1 ώρα`,other:`{{count}} ώρες`},xDays:{one:`1 ημέρα`,other:`{{count}} ημέρες`},aboutXWeeks:{one:`περίπου 1 εβδομάδα`,other:`περίπου {{count}} εβδομάδες`},xWeeks:{one:`1 εβδομάδα`,other:`{{count}} εβδομάδες`},aboutXMonths:{one:`περίπου 1 μήνας`,other:`περίπου {{count}} μήνες`},xMonths:{one:`1 μήνας`,other:`{{count}} μήνες`},aboutXYears:{one:`περίπου 1 χρόνο`,other:`περίπου {{count}} χρόνια`},xYears:{one:`1 χρόνο`,other:`{{count}} χρόνια`},overXYears:{one:`πάνω από 1 χρόνο`,other:`πάνω από {{count}} χρόνια`},almostXYears:{one:`περίπου 1 χρόνο`,other:`περίπου {{count}} χρόνια`}},Zn=function(e,t,n){var r,i=Xn[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`σε `+r:r+` πριν`:r},Qn={date:d({formats:{full:`EEEE, d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`d/M/yy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} - {{time}}`,long:`{{date}} - {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},$n={lastWeek:function(e){switch(e.getDay()){case 6:return`'το προηγούμενο' eeee 'στις' p`;default:return`'την προηγούμενη' eeee 'στις' p`}},yesterday:`'χθες στις' p`,today:`'σήμερα στις' p`,tomorrow:`'αύριο στις' p`,nextWeek:`eeee 'στις' p`,other:`P`},er={code:`el`,formatDistance:Zn,formatLong:Qn,formatRelative:function(e,t){var n=$n[e];return typeof n==`function`?n(t):n},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n+(r===`year`||r===`month`?`ος`:r===`week`||r===`dayOfYear`||r===`day`||r===`hour`||r===`date`?`η`:`ο`)},era:f({values:{narrow:[`πΧ`,`μΧ`],abbreviated:[`π.Χ.`,`μ.Χ.`],wide:[`προ Χριστού`,`μετά Χριστόν`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Τ1`,`Τ2`,`Τ3`,`Τ4`],wide:[`1ο τρίμηνο`,`2ο τρίμηνο`,`3ο τρίμηνο`,`4ο τρίμηνο`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μάρ`,`Απρ`,`Μάι`,`Ιούν`,`Ιούλ`,`Αύγ`,`Σεπ`,`Οκτ`,`Νοέ`,`Δεκ`],wide:[`Ιανουάριος`,`Φεβρουάριος`,`Μάρτιος`,`Απρίλιος`,`Μάιος`,`Ιούνιος`,`Ιούλιος`,`Αύγουστος`,`Σεπτέμβριος`,`Οκτώβριος`,`Νοέμβριος`,`Δεκέμβριος`]},defaultWidth:`wide`,formattingValues:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μαρ`,`Απρ`,`Μαΐ`,`Ιουν`,`Ιουλ`,`Αυγ`,`Σεπ`,`Οκτ`,`Νοε`,`Δεκ`],wide:[`Ιανουαρίου`,`Φεβρουαρίου`,`Μαρτίου`,`Απριλίου`,`Μαΐου`,`Ιουνίου`,`Ιουλίου`,`Αυγούστου`,`Σεπτεμβρίου`,`Οκτωβρίου`,`Νοεμβρίου`,`Δεκεμβρίου`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Κ`,`Δ`,`T`,`Τ`,`Π`,`Π`,`Σ`],short:[`Κυ`,`Δε`,`Τρ`,`Τε`,`Πέ`,`Πα`,`Σά`],abbreviated:[`Κυρ`,`Δευ`,`Τρί`,`Τετ`,`Πέμ`,`Παρ`,`Σάβ`],wide:[`Κυριακή`,`Δευτέρα`,`Τρίτη`,`Τετάρτη`,`Πέμπτη`,`Παρασκευή`,`Σάββατο`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`πμ`,pm:`μμ`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},abbreviated:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},wide:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},tr={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},D=function(e,t,n){var r,i=tr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},nr={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},O=function(e,t,n,r){return rr[e]},k={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:f({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},A={ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},ir={code:`en-AU`,formatDistance:D,formatLong:nr,formatRelative:O,localize:k,match:A,options:{weekStartsOn:1,firstWeekContainsDate:4}},ar={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`a second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`a minute`,other:`{{count}} minutes`},aboutXHours:{one:`about an hour`,other:`about {{count}} hours`},xHours:{one:`an hour`,other:`{{count}} hours`},xDays:{one:`a day`,other:`{{count}} days`},aboutXWeeks:{one:`about a week`,other:`about {{count}} weeks`},xWeeks:{one:`a week`,other:`{{count}} weeks`},aboutXMonths:{one:`about a month`,other:`about {{count}} months`},xMonths:{one:`a month`,other:`{{count}} months`},aboutXYears:{one:`about a year`,other:`about {{count}} years`},xYears:{one:`a year`,other:`{{count}} years`},overXYears:{one:`over a year`,other:`over {{count}} years`},almostXYears:{one:`almost a year`,other:`almost {{count}} years`}},or={code:`en-CA`,formatDistance:function(e,t,n){var r,i=ar[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},formatLong:{date:d({formats:{full:`EEEE, MMMM do, yyyy`,long:`MMMM do, yyyy`,medium:`MMM d, yyyy`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:O,localize:k,match:A,options:{weekStartsOn:0,firstWeekContainsDate:1}},sr={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},cr={code:`en-GB`,formatDistance:D,formatLong:sr,formatRelative:O,localize:k,match:A,options:{weekStartsOn:1,firstWeekContainsDate:4}},lr={code:`en-IE`,formatDistance:D,formatLong:sr,formatRelative:O,localize:k,match:A,options:{weekStartsOn:1,firstWeekContainsDate:4}},ur={code:`en-IN`,formatDistance:D,formatLong:{date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM, yyyy`,medium:`d MMM, yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:O,localize:k,match:A,options:{weekStartsOn:1,firstWeekContainsDate:4}},dr={code:`en-NZ`,formatDistance:D,formatLong:{date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:O,localize:k,match:A,options:{weekStartsOn:1,firstWeekContainsDate:4}},fr={code:`en-US`,formatDistance:D,formatLong:{date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:O,localize:k,match:A,options:{weekStartsOn:0,firstWeekContainsDate:1}},pr={code:`en-ZA`,formatDistance:D,formatLong:{date:d({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:O,localize:k,match:A,options:{weekStartsOn:0,firstWeekContainsDate:1}},mr={lessThanXSeconds:{one:`malpli ol sekundo`,other:`malpli ol {{count}} sekundoj`},xSeconds:{one:`1 sekundo`,other:`{{count}} sekundoj`},halfAMinute:`duonminuto`,lessThanXMinutes:{one:`malpli ol minuto`,other:`malpli ol {{count}} minutoj`},xMinutes:{one:`1 minuto`,other:`{{count}} minutoj`},aboutXHours:{one:`proksimume 1 horo`,other:`proksimume {{count}} horoj`},xHours:{one:`1 horo`,other:`{{count}} horoj`},xDays:{one:`1 tago`,other:`{{count}} tagoj`},aboutXMonths:{one:`proksimume 1 monato`,other:`proksimume {{count}} monatoj`},xWeeks:{one:`1 semajno`,other:`{{count}} semajnoj`},aboutXWeeks:{one:`proksimume 1 semajno`,other:`proksimume {{count}} semajnoj`},xMonths:{one:`1 monato`,other:`{{count}} monatoj`},aboutXYears:{one:`proksimume 1 jaro`,other:`proksimume {{count}} jaroj`},xYears:{one:`1 jaro`,other:`{{count}} jaroj`},overXYears:{one:`pli ol 1 jaro`,other:`pli ol {{count}} jaroj`},almostXYears:{one:`preskaŭ 1 jaro`,other:`preskaŭ {{count}} jaroj`}},hr=function(e,t,n){var r,i=mr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n!=null&&n.comparison&&n.comparison>0?`post `+r:`antaŭ `+r:r},gr={date:d({formats:{full:`EEEE, do 'de' MMMM y`,long:`y-MMMM-dd`,medium:`y-MMM-dd`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`Ho 'horo kaj' m:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},_r={lastWeek:`'pasinta' eeee 'je' p`,yesterday:`'hieraŭ je' p`,today:`'hodiaŭ je' p`,tomorrow:`'morgaŭ je' p`,nextWeek:`eeee 'je' p`,other:`P`},vr={code:`eo`,formatDistance:hr,formatLong:gr,formatRelative:function(e,t,n,r){return _r[e]},localize:{ordinalNumber:function(e){return Number(e)+`-a`},era:f({values:{narrow:[`aK`,`pK`],abbreviated:[`a.K.E.`,`p.K.E.`],wide:[`antaŭ Komuna Erao`,`Komuna Erao`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1-a kvaronjaro`,`2-a kvaronjaro`,`3-a kvaronjaro`,`4-a kvaronjaro`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`aŭg`,`sep`,`okt`,`nov`,`dec`],wide:[`januaro`,`februaro`,`marto`,`aprilo`,`majo`,`junio`,`julio`,`aŭgusto`,`septembro`,`oktobro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`Ĵ`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`ĵa`,`ve`,`sa`],abbreviated:[`dim`,`lun`,`mar`,`mer`,`ĵaŭ`,`ven`,`sab`],wide:[`dimanĉo`,`lundo`,`mardo`,`merkredo`,`ĵaŭdo`,`vendredo`,`sabato`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},abbreviated:{am:`a.t.m.`,pm:`p.t.m.`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},wide:{am:`antaŭtagmeze`,pm:`posttagmeze`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?a)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^[kp]/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},yr={lessThanXSeconds:{one:`menos de un segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos de un minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`alrededor de 1 hora`,other:`alrededor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 día`,other:`{{count}} días`},aboutXWeeks:{one:`alrededor de 1 semana`,other:`alrededor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`alrededor de 1 mes`,other:`alrededor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`alrededor de 1 año`,other:`alrededor de {{count}} años`},xYears:{one:`1 año`,other:`{{count}} años`},overXYears:{one:`más de 1 año`,other:`más de {{count}} años`},almostXYears:{one:`casi 1 año`,other:`casi {{count}} años`}},br=function(e,t,n){var r,i=yr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hace `+r:r},xr={date:d({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Sr={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},Cr={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},wr={code:`es`,formatDistance:br,formatLong:xr,formatRelative:function(e,t,n,r){return t.getHours()===1?Sr[e]:Cr[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:`wide`,parsePatterns:{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],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]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Tr={lessThanXSeconds:{standalone:{one:`vähem kui üks sekund`,other:`vähem kui {{count}} sekundit`},withPreposition:{one:`vähem kui ühe sekundi`,other:`vähem kui {{count}} sekundi`}},xSeconds:{standalone:{one:`üks sekund`,other:`{{count}} sekundit`},withPreposition:{one:`ühe sekundi`,other:`{{count}} sekundi`}},halfAMinute:{standalone:`pool minutit`,withPreposition:`poole minuti`},lessThanXMinutes:{standalone:{one:`vähem kui üks minut`,other:`vähem kui {{count}} minutit`},withPreposition:{one:`vähem kui ühe minuti`,other:`vähem kui {{count}} minuti`}},xMinutes:{standalone:{one:`üks minut`,other:`{{count}} minutit`},withPreposition:{one:`ühe minuti`,other:`{{count}} minuti`}},aboutXHours:{standalone:{one:`umbes üks tund`,other:`umbes {{count}} tundi`},withPreposition:{one:`umbes ühe tunni`,other:`umbes {{count}} tunni`}},xHours:{standalone:{one:`üks tund`,other:`{{count}} tundi`},withPreposition:{one:`ühe tunni`,other:`{{count}} tunni`}},xDays:{standalone:{one:`üks päev`,other:`{{count}} päeva`},withPreposition:{one:`ühe päeva`,other:`{{count}} päeva`}},aboutXWeeks:{standalone:{one:`umbes üks nädal`,other:`umbes {{count}} nädalat`},withPreposition:{one:`umbes ühe nädala`,other:`umbes {{count}} nädala`}},xWeeks:{standalone:{one:`üks nädal`,other:`{{count}} nädalat`},withPreposition:{one:`ühe nädala`,other:`{{count}} nädala`}},aboutXMonths:{standalone:{one:`umbes üks kuu`,other:`umbes {{count}} kuud`},withPreposition:{one:`umbes ühe kuu`,other:`umbes {{count}} kuu`}},xMonths:{standalone:{one:`üks kuu`,other:`{{count}} kuud`},withPreposition:{one:`ühe kuu`,other:`{{count}} kuu`}},aboutXYears:{standalone:{one:`umbes üks aasta`,other:`umbes {{count}} aastat`},withPreposition:{one:`umbes ühe aasta`,other:`umbes {{count}} aasta`}},xYears:{standalone:{one:`üks aasta`,other:`{{count}} aastat`},withPreposition:{one:`ühe aasta`,other:`{{count}} aasta`}},overXYears:{standalone:{one:`rohkem kui üks aasta`,other:`rohkem kui {{count}} aastat`},withPreposition:{one:`rohkem kui ühe aasta`,other:`rohkem kui {{count}} aasta`}},almostXYears:{standalone:{one:`peaaegu üks aasta`,other:`peaaegu {{count}} aastat`},withPreposition:{one:`peaaegu ühe aasta`,other:`peaaegu {{count}} aasta`}}},Er=function(e,t,n){var r=n!=null&&n.addSuffix?Tr[e].withPreposition:Tr[e].standalone,i=typeof r==`string`?r:t===1?r.one:r.other.replace(`{{count}}`,String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+` pärast`:i+` eest`:i},Dr={date:d({formats:{full:`EEEE, d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kell' {{time}}`,long:`{{date}} 'kell' {{time}}`,medium:`{{date}}. {{time}}`,short:`{{date}}. {{time}}`},defaultWidth:`full`})},Or={lastWeek:`'eelmine' eeee 'kell' p`,yesterday:`'eile kell' p`,today:`'täna kell' p`,tomorrow:`'homme kell' p`,nextWeek:`'järgmine' eeee 'kell' p`,other:`P`},kr=function(e,t,n,r){return Or[e]},Ar={narrow:[`e.m.a`,`m.a.j`],abbreviated:[`e.m.a`,`m.a.j`],wide:[`enne meie ajaarvamist`,`meie ajaarvamise järgi`]},jr={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},Mr={narrow:[`J`,`V`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jaan`,`veebr`,`märts`,`apr`,`mai`,`juuni`,`juuli`,`aug`,`sept`,`okt`,`nov`,`dets`],wide:[`jaanuar`,`veebruar`,`märts`,`aprill`,`mai`,`juuni`,`juuli`,`august`,`september`,`oktoober`,`november`,`detsember`]},Nr={narrow:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],short:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],abbreviated:[`pühap.`,`esmasp.`,`teisip.`,`kolmap.`,`neljap.`,`reede.`,`laup.`],wide:[`pühapäev`,`esmaspäev`,`teisipäev`,`kolmapäev`,`neljapäev`,`reede`,`laupäev`]},Pr={code:`et`,formatDistance:Er,formatLong:Dr,formatRelative:kr,localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:Ar,defaultWidth:`wide`}),quarter:f({values:jr,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Mr,defaultWidth:`wide`,formattingValues:Mr,defaultFormattingWidth:`wide`}),day:f({values:Nr,defaultWidth:`wide`,formattingValues:Nr,defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},abbreviated:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},wide:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},abbreviated:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},wide:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Fr={lessThanXSeconds:{one:`segundo bat baino gutxiago`,other:`{{count}} segundo baino gutxiago`},xSeconds:{one:`1 segundo`,other:`{{count}} segundo`},halfAMinute:`minutu erdi`,lessThanXMinutes:{one:`minutu bat baino gutxiago`,other:`{{count}} minutu baino gutxiago`},xMinutes:{one:`1 minutu`,other:`{{count}} minutu`},aboutXHours:{one:`1 ordu gutxi gorabehera`,other:`{{count}} ordu gutxi gorabehera`},xHours:{one:`1 ordu`,other:`{{count}} ordu`},xDays:{one:`1 egun`,other:`{{count}} egun`},aboutXWeeks:{one:`aste 1 inguru`,other:`{{count}} aste inguru`},xWeeks:{one:`1 aste`,other:`{{count}} astean`},aboutXMonths:{one:`1 hilabete gutxi gorabehera`,other:`{{count}} hilabete gutxi gorabehera`},xMonths:{one:`1 hilabete`,other:`{{count}} hilabete`},aboutXYears:{one:`1 urte gutxi gorabehera`,other:`{{count}} urte gutxi gorabehera`},xYears:{one:`1 urte`,other:`{{count}} urte`},overXYears:{one:`1 urte baino gehiago`,other:`{{count}} urte baino gehiago`},almostXYears:{one:`ia 1 urte`,other:`ia {{count}} urte`}},Ir=function(e,t,n){var r,i=Fr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`duela `+r:r},Lr={date:d({formats:{full:`EEEE, y'ko' MMMM'ren' d'a' y'ren'`,long:`y'ko' MMMM'ren' d'a'`,medium:`y MMM d`,short:`yy/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'tan' {{time}}`,long:`{{date}} 'tan' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Rr={lastWeek:`'joan den' eeee, LT`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},zr={lastWeek:`'joan den' eeee, p`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},Br={code:`eu`,formatDistance:Ir,formatLong:Lr,formatRelative:function(e,t){return t.getHours()===1?Rr[e]:zr[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`k.a.`,`k.o.`],abbreviated:[`k.a.`,`k.o.`],wide:[`kristo aurretik`,`kristo ondoren`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1H`,`2H`,`3H`,`4H`],wide:[`1. hiruhilekoa`,`2. hiruhilekoa`,`3. hiruhilekoa`,`4. hiruhilekoa`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`u`,`o`,`m`,`a`,`m`,`e`,`u`,`a`,`i`,`u`,`a`,`a`],abbreviated:[`urt`,`ots`,`mar`,`api`,`mai`,`eka`,`uzt`,`abu`,`ira`,`urr`,`aza`,`abe`],wide:[`urtarrila`,`otsaila`,`martxoa`,`apirila`,`maiatza`,`ekaina`,`uztaila`,`abuztua`,`iraila`,`urria`,`azaroa`,`abendua`]},defaultWidth:`wide`}),day:f({values:{narrow:[`i`,`a`,`a`,`a`,`o`,`o`,`l`],short:[`ig`,`al`,`as`,`az`,`og`,`or`,`lr`],abbreviated:[`iga`,`ast`,`ast`,`ast`,`ost`,`ost`,`lar`],wide:[`igandea`,`astelehena`,`asteartea`,`asteazkena`,`osteguna`,`ostirala`,`larunbata`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:`wide`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:`wide`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Vr={lessThanXSeconds:{one:`کمتر از یک ثانیه`,other:`کمتر از {{count}} ثانیه`},xSeconds:{one:`1 ثانیه`,other:`{{count}} ثانیه`},halfAMinute:`نیم دقیقه`,lessThanXMinutes:{one:`کمتر از یک دقیقه`,other:`کمتر از {{count}} دقیقه`},xMinutes:{one:`1 دقیقه`,other:`{{count}} دقیقه`},aboutXHours:{one:`حدود 1 ساعت`,other:`حدود {{count}} ساعت`},xHours:{one:`1 ساعت`,other:`{{count}} ساعت`},xDays:{one:`1 روز`,other:`{{count}} روز`},aboutXWeeks:{one:`حدود 1 هفته`,other:`حدود {{count}} هفته`},xWeeks:{one:`1 هفته`,other:`{{count}} هفته`},aboutXMonths:{one:`حدود 1 ماه`,other:`حدود {{count}} ماه`},xMonths:{one:`1 ماه`,other:`{{count}} ماه`},aboutXYears:{one:`حدود 1 سال`,other:`حدود {{count}} سال`},xYears:{one:`1 سال`,other:`{{count}} سال`},overXYears:{one:`بیشتر از 1 سال`,other:`بیشتر از {{count}} سال`},almostXYears:{one:`نزدیک 1 سال`,other:`نزدیک {{count}} سال`}},Hr=function(e,t,n){var r,i=Vr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`در `+r:r+` قبل`:r},Ur={date:d({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'در' {{time}}`,long:`{{date}} 'در' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Wr={lastWeek:`eeee 'گذشته در' p`,yesterday:`'دیروز در' p`,today:`'امروز در' p`,tomorrow:`'فردا در' p`,nextWeek:`eeee 'در' p`,other:`P`},Gr={code:`fa-IR`,formatDistance:Hr,formatLong:Ur,formatRelative:function(e,t,n,r){return Wr[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل از میلاد`,`بعد از میلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`س‌م1`,`س‌م2`,`س‌م3`,`س‌م4`],wide:[`سه‌ماهه 1`,`سه‌ماهه 2`,`سه‌ماهه 3`,`سه‌ماهه 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ژ`,`ف`,`م`,`آ`,`م`,`ج`,`ج`,`آ`,`س`,`ا`,`ن`,`د`],abbreviated:[`ژانـ`,`فور`,`مارس`,`آپر`,`می`,`جون`,`جولـ`,`آگو`,`سپتـ`,`اکتـ`,`نوامـ`,`دسامـ`],wide:[`ژانویه`,`فوریه`,`مارس`,`آپریل`,`می`,`جون`,`جولای`,`آگوست`,`سپتامبر`,`اکتبر`,`نوامبر`,`دسامبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ی`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`1ش`,`2ش`,`3ش`,`4ش`,`5ش`,`ج`,`ش`],abbreviated:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`],wide:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}};function Kr(e){return e.replace(/sekuntia?/,`sekunnin`)}function qr(e){return e.replace(/minuuttia?/,`minuutin`)}function Jr(e){return e.replace(/tuntia?/,`tunnin`)}function Yr(e){return e.replace(/päivää?/,`päivän`)}function Xr(e){return e.replace(/(viikko|viikkoa)/,`viikon`)}function Zr(e){return e.replace(/(kuukausi|kuukautta)/,`kuukauden`)}function j(e){return e.replace(/(vuosi|vuotta)/,`vuoden`)}var Qr={lessThanXSeconds:{one:`alle sekunti`,other:`alle {{count}} sekuntia`,futureTense:Kr},xSeconds:{one:`sekunti`,other:`{{count}} sekuntia`,futureTense:Kr},halfAMinute:{one:`puoli minuuttia`,other:`puoli minuuttia`,futureTense:function(e){return`puolen minuutin`}},lessThanXMinutes:{one:`alle minuutti`,other:`alle {{count}} minuuttia`,futureTense:qr},xMinutes:{one:`minuutti`,other:`{{count}} minuuttia`,futureTense:qr},aboutXHours:{one:`noin tunti`,other:`noin {{count}} tuntia`,futureTense:Jr},xHours:{one:`tunti`,other:`{{count}} tuntia`,futureTense:Jr},xDays:{one:`päivä`,other:`{{count}} päivää`,futureTense:Yr},aboutXWeeks:{one:`noin viikko`,other:`noin {{count}} viikkoa`,futureTense:Xr},xWeeks:{one:`viikko`,other:`{{count}} viikkoa`,futureTense:Xr},aboutXMonths:{one:`noin kuukausi`,other:`noin {{count}} kuukautta`,futureTense:Zr},xMonths:{one:`kuukausi`,other:`{{count}} kuukautta`,futureTense:Zr},aboutXYears:{one:`noin vuosi`,other:`noin {{count}} vuotta`,futureTense:j},xYears:{one:`vuosi`,other:`{{count}} vuotta`,futureTense:j},overXYears:{one:`yli vuosi`,other:`yli {{count}} vuotta`,futureTense:j},almostXYears:{one:`lähes vuosi`,other:`lähes {{count}} vuotta`,futureTense:j}},$r=function(e,t,n){var r=Qr[e],i=t===1?r.one:r.other.replace(`{{count}}`,String(t));return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r.futureTense(i)+` kuluttua`:i+` sitten`:i},ei={date:d({formats:{full:`eeee d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`d.M.y`},defaultWidth:`full`}),time:d({formats:{full:`HH.mm.ss zzzz`,long:`HH.mm.ss z`,medium:`HH.mm.ss`,short:`HH.mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'klo' {{time}}`,long:`{{date}} 'klo' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ti={lastWeek:`'viime' eeee 'klo' p`,yesterday:`'eilen klo' p`,today:`'tänään klo' p`,tomorrow:`'huomenna klo' p`,nextWeek:`'ensi' eeee 'klo' p`,other:`P`},ni=function(e,t,n,r){return ti[e]},ri={narrow:[`eaa.`,`jaa.`],abbreviated:[`eaa.`,`jaa.`],wide:[`ennen ajanlaskun alkua`,`jälkeen ajanlaskun alun`]},ii={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartaali`,`2. kvartaali`,`3. kvartaali`,`4. kvartaali`]},M={narrow:[`T`,`H`,`M`,`H`,`T`,`K`,`H`,`E`,`S`,`L`,`M`,`J`],abbreviated:[`tammi`,`helmi`,`maalis`,`huhti`,`touko`,`kesä`,`heinä`,`elo`,`syys`,`loka`,`marras`,`joulu`],wide:[`tammikuu`,`helmikuu`,`maaliskuu`,`huhtikuu`,`toukokuu`,`kesäkuu`,`heinäkuu`,`elokuu`,`syyskuu`,`lokakuu`,`marraskuu`,`joulukuu`]},ai={narrow:M.narrow,abbreviated:M.abbreviated,wide:[`tammikuuta`,`helmikuuta`,`maaliskuuta`,`huhtikuuta`,`toukokuuta`,`kesäkuuta`,`heinäkuuta`,`elokuuta`,`syyskuuta`,`lokakuuta`,`marraskuuta`,`joulukuuta`]},N={narrow:[`S`,`M`,`T`,`K`,`T`,`P`,`L`],short:[`su`,`ma`,`ti`,`ke`,`to`,`pe`,`la`],abbreviated:[`sunn.`,`maan.`,`tiis.`,`kesk.`,`torst.`,`perj.`,`la`],wide:[`sunnuntai`,`maanantai`,`tiistai`,`keskiviikko`,`torstai`,`perjantai`,`lauantai`]},oi={narrow:N.narrow,short:N.short,abbreviated:N.abbreviated,wide:[`sunnuntaina`,`maanantaina`,`tiistaina`,`keskiviikkona`,`torstaina`,`perjantaina`,`lauantaina`]},si={code:`fi`,formatDistance:$r,formatLong:ei,formatRelative:ni,localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:ri,defaultWidth:`wide`}),quarter:f({values:ii,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:M,defaultWidth:`wide`,formattingValues:ai,defaultFormattingWidth:`wide`}),day:f({values:N,defaultWidth:`wide`,formattingValues:oi,defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},abbreviated:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},wide:{am:`ap`,pm:`ip`,midnight:`keskiyöllä`,noon:`keskipäivällä`,morning:`aamupäivällä`,afternoon:`iltapäivällä`,evening:`illalla`,night:`yöllä`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ci={lessThanXSeconds:{one:`moins d’une seconde`,other:`moins de {{count}} secondes`},xSeconds:{one:`1 seconde`,other:`{{count}} secondes`},halfAMinute:`30 secondes`,lessThanXMinutes:{one:`moins d’une minute`,other:`moins de {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`environ 1 heure`,other:`environ {{count}} heures`},xHours:{one:`1 heure`,other:`{{count}} heures`},xDays:{one:`1 jour`,other:`{{count}} jours`},aboutXWeeks:{one:`environ 1 semaine`,other:`environ {{count}} semaines`},xWeeks:{one:`1 semaine`,other:`{{count}} semaines`},aboutXMonths:{one:`environ 1 mois`,other:`environ {{count}} mois`},xMonths:{one:`1 mois`,other:`{{count}} mois`},aboutXYears:{one:`environ 1 an`,other:`environ {{count}} ans`},xYears:{one:`1 an`,other:`{{count}} ans`},overXYears:{one:`plus d’un an`,other:`plus de {{count}} ans`},almostXYears:{one:`presqu’un an`,other:`presque {{count}} ans`}},P=function(e,t,n){var r,i=ci[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`dans `+r:`il y a `+r:r},li={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},ui={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},di=function(e,t,n,r){return ui[e]},fi={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},pi={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},mi={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},hi={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},gi={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},_i=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},vi=[`MMM`,`MMMM`],F={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&vi.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:_i,era:f({values:fi,defaultWidth:`wide`}),quarter:f({values:pi,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:mi,defaultWidth:`wide`}),day:f({values:hi,defaultWidth:`wide`}),dayPeriod:f({values:gi,defaultWidth:`wide`})},I={ordinalNumber:m({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:p({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})},yi={code:`fr`,formatDistance:P,formatLong:li,formatRelative:di,localize:F,match:I,options:{weekStartsOn:1,firstWeekContainsDate:4}},bi={code:`fr-CA`,formatDistance:P,formatLong:{date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`yy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:di,localize:F,match:I,options:{weekStartsOn:0,firstWeekContainsDate:1}},xi={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Si={lastWeek:`eeee 'la semaine dernière à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'la semaine prochaine à' p`,other:`P`},Ci={code:`fr-CH`,formatDistance:P,formatLong:xi,formatRelative:function(e,t,n,r){return Si[e]},localize:F,match:I,options:{weekStartsOn:1,firstWeekContainsDate:4}},wi={lessThanXSeconds:{one:`minder as 1 sekonde`,other:`minder as {{count}} sekonden`},xSeconds:{one:`1 sekonde`,other:`{{count}} sekonden`},halfAMinute:`oardel minút`,lessThanXMinutes:{one:`minder as 1 minút`,other:`minder as {{count}} minuten`},xMinutes:{one:`1 minút`,other:`{{count}} minuten`},aboutXHours:{one:`sawat 1 oere`,other:`sawat {{count}} oere`},xHours:{one:`1 oere`,other:`{{count}} oere`},xDays:{one:`1 dei`,other:`{{count}} dagen`},aboutXWeeks:{one:`sawat 1 wike`,other:`sawat {{count}} wiken`},xWeeks:{one:`1 wike`,other:`{{count}} wiken`},aboutXMonths:{one:`sawat 1 moanne`,other:`sawat {{count}} moannen`},xMonths:{one:`1 moanne`,other:`{{count}} moannen`},aboutXYears:{one:`sawat 1 jier`,other:`sawat {{count}} jier`},xYears:{one:`1 jier`,other:`{{count}} jier`},overXYears:{one:`mear as 1 jier`,other:`mear as {{count}}s jier`},almostXYears:{one:`hast 1 jier`,other:`hast {{count}} jier`}},Ti=function(e,t,n){var r,i=wi[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`oer `+r:r+` lyn`:r},Ei={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd-MM-y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Di={lastWeek:`'ôfrûne' eeee 'om' p`,yesterday:`'juster om' p`,today:`'hjoed om' p`,tomorrow:`'moarn om' p`,nextWeek:`eeee 'om' p`,other:`P`},Oi={code:`fy`,formatDistance:Ti,formatLong:Ei,formatRelative:function(e,t,n,r){return Di[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`f.K.`,`n.K.`],abbreviated:[`f.Kr.`,`n.Kr.`],wide:[`foar Kristus`,`nei Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e fearnsjier`,`2e fearnsjier`,`3e fearnsjier`,`4e fearnsjier`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mai.`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`jannewaris`,`febrewaris`,`maart`,`april`,`maaie`,`juny`,`july`,`augustus`,`septimber`,`oktober`,`novimber`,`desimber`]},defaultWidth:`wide`}),day:f({values:{narrow:[`s`,`m`,`t`,`w`,`t`,`f`,`s`],short:[`si`,`mo`,`ti`,`wo`,`to`,`fr`,`so`],abbreviated:[`snein`,`moa`,`tii`,`woa`,`ton`,`fre`,`sneon`],wide:[`snein`,`moandei`,`tiisdei`,`woansdei`,`tongersdei`,`freed`,`sneon`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ki={lessThanXSeconds:{one:`nas lugha na diog`,other:`nas lugha na {{count}} diogan`},xSeconds:{one:`1 diog`,two:`2 dhiog`,twenty:`20 diog`,other:`{{count}} diogan`},halfAMinute:`leth mhionaid`,lessThanXMinutes:{one:`nas lugha na mionaid`,other:`nas lugha na {{count}} mionaidean`},xMinutes:{one:`1 mionaid`,two:`2 mhionaid`,twenty:`20 mionaid`,other:`{{count}} mionaidean`},aboutXHours:{one:`mu uair de thìde`,other:`mu {{count}} uairean de thìde`},xHours:{one:`1 uair de thìde`,two:`2 uair de thìde`,twenty:`20 uair de thìde`,other:`{{count}} uairean de thìde`},xDays:{one:`1 là`,other:`{{count}} là`},aboutXWeeks:{one:`mu 1 seachdain`,other:`mu {{count}} seachdainean`},xWeeks:{one:`1 seachdain`,other:`{{count}} seachdainean`},aboutXMonths:{one:`mu mhìos`,other:`mu {{count}} mìosan`},xMonths:{one:`1 mìos`,other:`{{count}} mìosan`},aboutXYears:{one:`mu bhliadhna`,other:`mu {{count}} bliadhnaichean`},xYears:{one:`1 bhliadhna`,other:`{{count}} bliadhna`},overXYears:{one:`còrr is bliadhna`,other:`còrr is {{count}} bliadhnaichean`},almostXYears:{one:`cha mhòr bliadhna`,other:`cha mhòr {{count}} bliadhnaichean`}},Ai=function(e,t,n){var r,i=ki[e];return r=typeof i==`string`?i:t===1?i.one:t===2&&i.two?i.two:t===20&&i.twenty?i.twenty:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`ann an `+r:`o chionn `+r:r},ji={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'aig' {{time}}`,long:`{{date}} 'aig' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Mi={lastWeek:`'mu dheireadh' eeee 'aig' p`,yesterday:`'an-dè aig' p`,today:`'an-diugh aig' p`,tomorrow:`'a-màireach aig' p`,nextWeek:`eeee 'aig' p`,other:`P`},Ni={code:`gd`,formatDistance:Ai,formatLong:ji,formatRelative:function(e,t,n,r){return Mi[e]},localize:{ordinalNumber:function(e){var t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+`d`;case 2:return t+`na`}return n===12?t+`na`:t+`mh`},era:f({values:{narrow:[`R`,`A`],abbreviated:[`RC`,`AD`],wide:[`ro Chrìosta`,`anno domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`C1`,`C2`,`C3`,`C4`],wide:[`a' chiad chairteal`,`an dàrna cairteal`,`an treas cairteal`,`an ceathramh cairteal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`F`,`G`,`M`,`G`,`C`,`Ò`,`I`,`L`,`S`,`D`,`S`,`D`],abbreviated:[`Faoi`,`Gear`,`Màrt`,`Gibl`,`Cèit`,`Ògmh`,`Iuch`,`Lùn`,`Sult`,`Dàmh`,`Samh`,`Dùbh`],wide:[`Am Faoilleach`,`An Gearran`,`Am Màrt`,`An Giblean`,`An Cèitean`,`An t-Ògmhios`,`An t-Iuchar`,`An Lùnastal`,`An t-Sultain`,`An Dàmhair`,`An t-Samhain`,`An Dùbhlachd`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`C`,`A`,`H`,`S`],short:[`Dò`,`Lu`,`Mà`,`Ci`,`Ar`,`Ha`,`Sa`],abbreviated:[`Did`,`Dil`,`Dim`,`Dic`,`Dia`,`Dih`,`Dis`],wide:[`Didòmhnaich`,`Diluain`,`Dimàirt`,`Diciadain`,`Diardaoin`,`Dihaoine`,`Disathairne`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Pi={lessThanXSeconds:{one:`menos dun segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos dun minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`arredor dunha hora`,other:`arredor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 día`,other:`{{count}} días`},aboutXWeeks:{one:`arredor dunha semana`,other:`arredor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`arredor de 1 mes`,other:`arredor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`arredor dun ano`,other:`arredor de {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`máis dun ano`,other:`máis de {{count}} anos`},almostXYears:{one:`case un ano`,other:`case {{count}} anos`}},Fi=function(e,t,n){var r,i=Pi[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hai `+r:r},Ii={date:d({formats:{full:`EEEE, d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'ás' {{time}}`,long:`{{date}} 'ás' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Li={lastWeek:`'o' eeee 'pasado á' LT`,yesterday:`'onte á' p`,today:`'hoxe á' p`,tomorrow:`'mañá á' p`,nextWeek:`eeee 'á' p`,other:`P`},Ri={lastWeek:`'o' eeee 'pasado ás' p`,yesterday:`'onte ás' p`,today:`'hoxe ás' p`,tomorrow:`'mañá ás' p`,nextWeek:`eeee 'ás' p`,other:`P`},zi={code:`gl`,formatDistance:Fi,formatLong:Ii,formatRelative:function(e,t,n,r){return t.getHours()===1?Li[e]:Ri[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`despois de cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`xan`,`feb`,`mar`,`abr`,`mai`,`xun`,`xul`,`ago`,`set`,`out`,`nov`,`dec`],wide:[`xaneiro`,`febreiro`,`marzo`,`abril`,`maio`,`xuño`,`xullo`,`agosto`,`setembro`,`outubro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`me`,`xo`,`ve`,`sa`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`xov`,`ven`,`sab`],wide:[`domingo`,`luns`,`martes`,`mércores`,`xoves`,`venres`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañá`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Bi={lessThanXSeconds:{one:`હમણાં`,other:`​આશરે {{count}} સેકંડ`},xSeconds:{one:`1 સેકંડ`,other:`{{count}} સેકંડ`},halfAMinute:`અડધી મિનિટ`,lessThanXMinutes:{one:`આ મિનિટ`,other:`​આશરે {{count}} મિનિટ`},xMinutes:{one:`1 મિનિટ`,other:`{{count}} મિનિટ`},aboutXHours:{one:`​આશરે 1 કલાક`,other:`​આશરે {{count}} કલાક`},xHours:{one:`1 કલાક`,other:`{{count}} કલાક`},xDays:{one:`1 દિવસ`,other:`{{count}} દિવસ`},aboutXWeeks:{one:`આશરે 1 અઠવાડિયું`,other:`આશરે {{count}} અઠવાડિયા`},xWeeks:{one:`1 અઠવાડિયું`,other:`{{count}} અઠવાડિયા`},aboutXMonths:{one:`આશરે 1 મહિનો`,other:`આશરે {{count}} મહિના`},xMonths:{one:`1 મહિનો`,other:`{{count}} મહિના`},aboutXYears:{one:`આશરે 1 વર્ષ`,other:`આશરે {{count}} વર્ષ`},xYears:{one:`1 વર્ષ`,other:`{{count}} વર્ષ`},overXYears:{one:`1 વર્ષથી વધુ`,other:`{{count}} વર્ષથી વધુ`},almostXYears:{one:`લગભગ 1 વર્ષ`,other:`લગભગ {{count}} વર્ષ`}},Vi=function(e,t,n){var r,i=Bi[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`માં`:r+` પહેલાં`:r},Hi={date:d({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:d({formats:{full:`hh:mm:ss a zzzz`,long:`hh:mm:ss a z`,medium:`hh:mm:ss a`,short:`hh:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Ui={lastWeek:`'પાછલા' eeee p`,yesterday:`'ગઈકાલે' p`,today:`'આજે' p`,tomorrow:`'આવતીકાલે' p`,nextWeek:`eeee p`,other:`P`},Wi={code:`gu`,formatDistance:Vi,formatLong:Hi,formatRelative:function(e,t,n,r){return Ui[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ઈસપૂ`,`ઈસ`],abbreviated:[`ઈ.સ.પૂર્વે`,`ઈ.સ.`],wide:[`ઈસવીસન પૂર્વે`,`ઈસવીસન`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1લો ત્રિમાસ`,`2જો ત્રિમાસ`,`3જો ત્રિમાસ`,`4થો ત્રિમાસ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`જા`,`ફે`,`મા`,`એ`,`મે`,`જૂ`,`જુ`,`ઓ`,`સ`,`ઓ`,`ન`,`ડિ`],abbreviated:[`જાન્યુ`,`ફેબ્રુ`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઈ`,`ઑગસ્ટ`,`સપ્ટે`,`ઓક્ટો`,`નવે`,`ડિસે`],wide:[`જાન્યુઆરી`,`ફેબ્રુઆરી`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઇ`,`ઓગસ્ટ`,`સપ્ટેમ્બર`,`ઓક્ટોબર`,`નવેમ્બર`,`ડિસેમ્બર`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],short:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],abbreviated:[`રવિ`,`સોમ`,`મંગળ`,`બુધ`,`ગુરુ`,`શુક્ર`,`શનિ`],wide:[`રવિવાર`,`સોમવાર`,`મંગળવાર`,`બુધવાર`,`ગુરુવાર`,`શુક્રવાર`,`શનિવાર`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બ.`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Gi={lessThanXSeconds:{one:`פחות משנייה`,two:`פחות משתי שניות`,other:`פחות מ־{{count}} שניות`},xSeconds:{one:`שנייה`,two:`שתי שניות`,other:`{{count}} שניות`},halfAMinute:`חצי דקה`,lessThanXMinutes:{one:`פחות מדקה`,two:`פחות משתי דקות`,other:`פחות מ־{{count}} דקות`},xMinutes:{one:`דקה`,two:`שתי דקות`,other:`{{count}} דקות`},aboutXHours:{one:`כשעה`,two:`כשעתיים`,other:`כ־{{count}} שעות`},xHours:{one:`שעה`,two:`שעתיים`,other:`{{count}} שעות`},xDays:{one:`יום`,two:`יומיים`,other:`{{count}} ימים`},aboutXWeeks:{one:`כשבוע`,two:`כשבועיים`,other:`כ־{{count}} שבועות`},xWeeks:{one:`שבוע`,two:`שבועיים`,other:`{{count}} שבועות`},aboutXMonths:{one:`כחודש`,two:`כחודשיים`,other:`כ־{{count}} חודשים`},xMonths:{one:`חודש`,two:`חודשיים`,other:`{{count}} חודשים`},aboutXYears:{one:`כשנה`,two:`כשנתיים`,other:`כ־{{count}} שנים`},xYears:{one:`שנה`,two:`שנתיים`,other:`{{count}} שנים`},overXYears:{one:`יותר משנה`,two:`יותר משנתיים`,other:`יותר מ־{{count}} שנים`},almostXYears:{one:`כמעט שנה`,two:`כמעט שנתיים`,other:`כמעט {{count}} שנים`}},Ki=function(e,t,n){if(e===`xDays`&&n!=null&&n.addSuffix&&t<=2)return n.comparison&&n.comparison>0?t===1?`מחר`:`מחרתיים`:t===1?`אתמול`:`שלשום`;var r,i=Gi[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`בעוד `+r:`לפני `+r:r},qi={date:d({formats:{full:`EEEE, d בMMMM y`,long:`d בMMMM y`,medium:`d בMMM y`,short:`d.M.y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'בשעה' {{time}}`,long:`{{date}} 'בשעה' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ji={lastWeek:`eeee 'שעבר בשעה' p`,yesterday:`'אתמול בשעה' p`,today:`'היום בשעה' p`,tomorrow:`'מחר בשעה' p`,nextWeek:`eeee 'בשעה' p`,other:`P`},Yi=function(e,t,n,r){return Ji[e]},Xi={ordinalNumber:function(e,t){var n=Number(e);if(n<=0||n>10)return String(n);var r=String(t?.unit),i=[`year`,`hour`,`minute`,`second`].indexOf(r)>=0,a=[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שביעי`,`שמיני`,`תשיעי`,`עשירי`],o=[`ראשונה`,`שנייה`,`שלישית`,`רביעית`,`חמישית`,`שישית`,`שביעית`,`שמינית`,`תשיעית`,`עשירית`],s=n-1;return i?o[s]:a[s]},era:f({values:{narrow:[`לפנה״ס`,`לספירה`],abbreviated:[`לפנה״ס`,`לספירה`],wide:[`לפני הספירה`,`לספירה`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`רבעון 1`,`רבעון 2`,`רבעון 3`,`רבעון 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`ינו׳`,`פבר׳`,`מרץ`,`אפר׳`,`מאי`,`יוני`,`יולי`,`אוג׳`,`ספט׳`,`אוק׳`,`נוב׳`,`דצמ׳`],wide:[`ינואר`,`פברואר`,`מרץ`,`אפריל`,`מאי`,`יוני`,`יולי`,`אוגוסט`,`ספטמבר`,`אוקטובר`,`נובמבר`,`דצמבר`]},defaultWidth:`wide`}),day:f({values:{narrow:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],short:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],abbreviated:[`יום א׳`,`יום ב׳`,`יום ג׳`,`יום ד׳`,`יום ה׳`,`יום ו׳`,`שבת`],wide:[`יום ראשון`,`יום שני`,`יום שלישי`,`יום רביעי`,`יום חמישי`,`יום שישי`,`יום שבת`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`בצהריים`,evening:`בערב`,night:`בלילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`}},defaultFormattingWidth:`wide`})},Zi=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,Qi=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,$i={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},ea={any:[/^לפ/i,/^לס/i]},ta={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},na={any:[/1/i,/2/i,/3/i,/4/i]},ra={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},ia={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},aa={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},oa={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},sa={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},ca={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},la=[`רא`,`שנ`,`של`,`רב`,`ח`,`שי`,`שב`,`שמ`,`ת`,`ע`],ua={code:`he`,formatDistance:Ki,formatLong:qi,formatRelative:Yi,localize:Xi,match:{ordinalNumber:m({matchPattern:Zi,parsePattern:Qi,valueCallback:function(e){var t=parseInt(e,10);return isNaN(t)?la.indexOf(e)+1:t}}),era:p({matchPatterns:$i,defaultMatchWidth:`wide`,parsePatterns:ea,defaultParseWidth:`any`}),quarter:p({matchPatterns:ta,defaultMatchWidth:`wide`,parsePatterns:na,defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:ra,defaultMatchWidth:`wide`,parsePatterns:ia,defaultParseWidth:`any`}),day:p({matchPatterns:aa,defaultMatchWidth:`wide`,parsePatterns:oa,defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:sa,defaultMatchWidth:`any`,parsePatterns:ca,defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},da={locale:{1:`१`,2:`२`,3:`३`,4:`४`,5:`५`,6:`६`,7:`७`,8:`८`,9:`९`,0:`०`},number:{"१":`1`,"२":`2`,"३":`3`,"४":`4`,"५":`5`,"६":`6`,"७":`7`,"८":`8`,"९":`9`,"०":`0`}},fa={narrow:[`ईसा-पूर्व`,`ईस्वी`],abbreviated:[`ईसा-पूर्व`,`ईस्वी`],wide:[`ईसा-पूर्व`,`ईसवी सन`]},pa={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ति1`,`ति2`,`ति3`,`ति4`],wide:[`पहली तिमाही`,`दूसरी तिमाही`,`तीसरी तिमाही`,`चौथी तिमाही`]},ma={narrow:[`ज`,`फ़`,`मा`,`अ`,`मई`,`जू`,`जु`,`अग`,`सि`,`अक्टू`,`न`,`दि`],abbreviated:[`जन`,`फ़र`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुल`,`अग`,`सित`,`अक्टू`,`नव`,`दिस`],wide:[`जनवरी`,`फ़रवरी`,`मार्च`,`अप्रैल`,`मई`,`जून`,`जुलाई`,`अगस्त`,`सितंबर`,`अक्टूबर`,`नवंबर`,`दिसंबर`]},ha={narrow:[`र`,`सो`,`मं`,`बु`,`गु`,`शु`,`श`],short:[`र`,`सो`,`मं`,`बु`,`गु`,`शु`,`श`],abbreviated:[`रवि`,`सोम`,`मंगल`,`बुध`,`गुरु`,`शुक्र`,`शनि`],wide:[`रविवार`,`सोमवार`,`मंगलवार`,`बुधवार`,`गुरुवार`,`शुक्रवार`,`शनिवार`]},ga={narrow:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`},abbreviated:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`},wide:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`}},_a={narrow:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`},abbreviated:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`},wide:{am:`पूर्वाह्न`,pm:`अपराह्न`,midnight:`मध्यरात्रि`,noon:`दोपहर`,morning:`सुबह`,afternoon:`दोपहर`,evening:`शाम`,night:`रात`}},va=function(e,t){return ba(Number(e))};function ya(e){var t=e.toString().replace(/[१२३४५६७८९०]/g,function(e){return da.number[e]});return Number(t)}function ba(e){return e.toString().replace(/\d/g,function(e){return da.locale[e]})}var xa={ordinalNumber:va,era:f({values:fa,defaultWidth:`wide`}),quarter:f({values:pa,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:ma,defaultWidth:`wide`}),day:f({values:ha,defaultWidth:`wide`}),dayPeriod:f({values:ga,defaultWidth:`wide`,formattingValues:_a,defaultFormattingWidth:`wide`})},Sa={lessThanXSeconds:{one:`१ सेकंड से कम`,other:`{{count}} सेकंड से कम`},xSeconds:{one:`१ सेकंड`,other:`{{count}} सेकंड`},halfAMinute:`आधा मिनट`,lessThanXMinutes:{one:`१ मिनट से कम`,other:`{{count}} मिनट से कम`},xMinutes:{one:`१ मिनट`,other:`{{count}} मिनट`},aboutXHours:{one:`लगभग १ घंटा`,other:`लगभग {{count}} घंटे`},xHours:{one:`१ घंटा`,other:`{{count}} घंटे`},xDays:{one:`१ दिन`,other:`{{count}} दिन`},aboutXWeeks:{one:`लगभग १ सप्ताह`,other:`लगभग {{count}} सप्ताह`},xWeeks:{one:`१ सप्ताह`,other:`{{count}} सप्ताह`},aboutXMonths:{one:`लगभग १ महीना`,other:`लगभग {{count}} महीने`},xMonths:{one:`१ महीना`,other:`{{count}} महीने`},aboutXYears:{one:`लगभग १ वर्ष`,other:`लगभग {{count}} वर्ष`},xYears:{one:`१ वर्ष`,other:`{{count}} वर्ष`},overXYears:{one:`१ वर्ष से अधिक`,other:`{{count}} वर्ष से अधिक`},almostXYears:{one:`लगभग १ वर्ष`,other:`लगभग {{count}} वर्ष`}},Ca=function(e,t,n){var r,i=Sa[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,ba(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`मे `:r+` पहले`:r},wa={date:d({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'को' {{time}}`,long:`{{date}} 'को' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ta={lastWeek:`'पिछले' eeee p`,yesterday:`'कल' p`,today:`'आज' p`,tomorrow:`'कल' p`,nextWeek:`eeee 'को' p`,other:`P`},Ea={code:`hi`,formatDistance:Ca,formatLong:wa,formatRelative:function(e,t,n,r){return Ta[e]},localize:xa,match:{ordinalNumber:m({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:ya}),era:p({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}},Da={lessThanXSeconds:{one:{standalone:`manje od 1 sekunde`,withPrepositionAgo:`manje od 1 sekunde`,withPrepositionIn:`manje od 1 sekundu`},dual:`manje od {{count}} sekunde`,other:`manje od {{count}} sekundi`},xSeconds:{one:{standalone:`1 sekunda`,withPrepositionAgo:`1 sekunde`,withPrepositionIn:`1 sekundu`},dual:`{{count}} sekunde`,other:`{{count}} sekundi`},halfAMinute:`pola minute`,lessThanXMinutes:{one:{standalone:`manje od 1 minute`,withPrepositionAgo:`manje od 1 minute`,withPrepositionIn:`manje od 1 minutu`},dual:`manje od {{count}} minute`,other:`manje od {{count}} minuta`},xMinutes:{one:{standalone:`1 minuta`,withPrepositionAgo:`1 minute`,withPrepositionIn:`1 minutu`},dual:`{{count}} minute`,other:`{{count}} minuta`},aboutXHours:{one:{standalone:`oko 1 sat`,withPrepositionAgo:`oko 1 sat`,withPrepositionIn:`oko 1 sat`},dual:`oko {{count}} sata`,other:`oko {{count}} sati`},xHours:{one:{standalone:`1 sat`,withPrepositionAgo:`1 sat`,withPrepositionIn:`1 sat`},dual:`{{count}} sata`,other:`{{count}} sati`},xDays:{one:{standalone:`1 dan`,withPrepositionAgo:`1 dan`,withPrepositionIn:`1 dan`},dual:`{{count}} dana`,other:`{{count}} dana`},aboutXWeeks:{one:{standalone:`oko 1 tjedan`,withPrepositionAgo:`oko 1 tjedan`,withPrepositionIn:`oko 1 tjedan`},dual:`oko {{count}} tjedna`,other:`oko {{count}} tjedana`},xWeeks:{one:{standalone:`1 tjedan`,withPrepositionAgo:`1 tjedan`,withPrepositionIn:`1 tjedan`},dual:`{{count}} tjedna`,other:`{{count}} tjedana`},aboutXMonths:{one:{standalone:`oko 1 mjesec`,withPrepositionAgo:`oko 1 mjesec`,withPrepositionIn:`oko 1 mjesec`},dual:`oko {{count}} mjeseca`,other:`oko {{count}} mjeseci`},xMonths:{one:{standalone:`1 mjesec`,withPrepositionAgo:`1 mjesec`,withPrepositionIn:`1 mjesec`},dual:`{{count}} mjeseca`,other:`{{count}} mjeseci`},aboutXYears:{one:{standalone:`oko 1 godinu`,withPrepositionAgo:`oko 1 godinu`,withPrepositionIn:`oko 1 godinu`},dual:`oko {{count}} godine`,other:`oko {{count}} godina`},xYears:{one:{standalone:`1 godina`,withPrepositionAgo:`1 godine`,withPrepositionIn:`1 godinu`},dual:`{{count}} godine`,other:`{{count}} godina`},overXYears:{one:{standalone:`preko 1 godinu`,withPrepositionAgo:`preko 1 godinu`,withPrepositionIn:`preko 1 godinu`},dual:`preko {{count}} godine`,other:`preko {{count}} godina`},almostXYears:{one:{standalone:`gotovo 1 godinu`,withPrepositionAgo:`gotovo 1 godinu`,withPrepositionIn:`gotovo 1 godinu`},dual:`gotovo {{count}} godine`,other:`gotovo {{count}} godina`}},Oa=function(e,t,n){var r,i=Da[e];return r=typeof i==`string`?i:t===1?n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`prije `+r:r},ka={date:d({formats:{full:`EEEE, d. MMMM y.`,long:`d. MMMM y.`,medium:`d. MMM y.`,short:`dd. MM. y.`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Aa={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošlu nedjelju u' p`;case 3:return`'prošlu srijedu u' p`;case 6:return`'prošlu subotu u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'jučer u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'iduću nedjelju u' p`;case 3:return`'iduću srijedu u' p`;case 6:return`'iduću subotu u' p`;default:return`'prošli' EEEE 'u' p`}},other:`P`},ja={code:`hr`,formatDistance:Oa,formatLong:ka,formatRelative:function(e,t,n,r){var i=Aa[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Kr.`,`po. Kr.`],wide:[`Prije Krista`,`Poslije Krista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječanj`,`veljača`,`ožujak`,`travanj`,`svibanj`,`lipanj`,`srpanj`,`kolovoz`,`rujan`,`listopad`,`studeni`,`prosinac`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječnja`,`veljače`,`ožujka`,`travnja`,`svibnja`,`lipnja`,`srpnja`,`kolovoza`,`rujna`,`listopada`,`studenog`,`prosinca`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],wide:[`nedjelja`,`ponedjeljak`,`utorak`,`srijeda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:`wide`}),day:p({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ma={lessThanXSeconds:{one:`mwens pase yon segond`,other:`mwens pase {{count}} segond`},xSeconds:{one:`1 segond`,other:`{{count}} segond`},halfAMinute:`30 segond`,lessThanXMinutes:{one:`mwens pase yon minit`,other:`mwens pase {{count}} minit`},xMinutes:{one:`1 minit`,other:`{{count}} minit`},aboutXHours:{one:`anviwon inè`,other:`anviwon {{count}} è`},xHours:{one:`1 lè`,other:`{{count}} lè`},xDays:{one:`1 jou`,other:`{{count}} jou`},aboutXWeeks:{one:`anviwon 1 semèn`,other:`anviwon {{count}} semèn`},xWeeks:{one:`1 semèn`,other:`{{count}} semèn`},aboutXMonths:{one:`anviwon 1 mwa`,other:`anviwon {{count}} mwa`},xMonths:{one:`1 mwa`,other:`{{count}} mwa`},aboutXYears:{one:`anviwon 1 an`,other:`anviwon {{count}} an`},xYears:{one:`1 an`,other:`{{count}} an`},overXYears:{one:`plis pase 1 an`,other:`plis pase {{count}} an`},almostXYears:{one:`prèske 1 an`,other:`prèske {{count}} an`}},Na=function(e,t,n){var r,i=Ma[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`nan `+r:`sa fè `+r:r},Pa={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'nan lè' {{time}}`,long:`{{date}} 'nan lè' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Fa={lastWeek:`eeee 'pase nan lè' p`,yesterday:`'yè nan lè' p`,today:`'jodi a' p`,tomorrow:`'demen nan lè' p'`,nextWeek:`eeee 'pwochen nan lè' p`,other:`P`},Ia={code:`ht`,formatDistance:Na,formatLong:Pa,formatRelative:function(e,t,n,r){return Fa[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);return n===0?String(n):n+(n===1?`ye`:`yèm`)},era:f({values:{narrow:[`av. J.-K`,`ap. J.-K`],abbreviated:[`av. J.-K`,`ap. J.-K`],wide:[`anvan Jezi Kris`,`apre Jezi Kris`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1ye trim.`,`2yèm trim.`,`3yèm trim.`,`4yèm trim.`],wide:[`1ye trimès`,`2yèm trimès`,`3yèm trimès`,`4yèm trimès`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`O`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`fevr.`,`mas`,`avr.`,`me`,`jen`,`jiyè`,`out`,`sept.`,`okt.`,`nov.`,`des.`],wide:[`janvye`,`fevrye`,`mas`,`avril`,`me`,`jen`,`jiyè`,`out`,`septanm`,`oktòb`,`novanm`,`desanm`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`le`,`ma`,`mè`,`je`,`va`,`sa`],abbreviated:[`dim.`,`len.`,`mad.`,`mèk.`,`jed.`,`van.`,`sam.`],wide:[`dimanch`,`lendi`,`madi`,`mèkredi`,`jedi`,`vandredi`,`samdi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`swa`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`maten`,afternoon:`aprèmidi`,evening:`swa`,night:`maten`},wide:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`nan maten`,afternoon:`nan aprèmidi`,evening:`nan aswè`,night:`nan maten`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},La={about:`körülbelül`,over:`több mint`,almost:`majdnem`,lessthan:`kevesebb mint`},Ra={xseconds:` másodperc`,halfaminute:`fél perc`,xminutes:` perc`,xhours:` óra`,xdays:` nap`,xweeks:` hét`,xmonths:` hónap`,xyears:` év`},za={xseconds:{"-1":` másodperccel ezelőtt`,1:` másodperc múlva`,0:` másodperce`},halfaminute:{"-1":`fél perccel ezelőtt`,1:`fél perc múlva`,0:`fél perce`},xminutes:{"-1":` perccel ezelőtt`,1:` perc múlva`,0:` perce`},xhours:{"-1":` órával ezelőtt`,1:` óra múlva`,0:` órája`},xdays:{"-1":` nappal ezelőtt`,1:` nap múlva`,0:` napja`},xweeks:{"-1":` héttel ezelőtt`,1:` hét múlva`,0:` hete`},xmonths:{"-1":` hónappal ezelőtt`,1:` hónap múlva`,0:` hónapja`},xyears:{"-1":` évvel ezelőtt`,1:` év múlva`,0:` éve`}},Ba=function(e,t,n){var r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],``):e,a=n?.addSuffix===!0,o=i.toLowerCase(),s=n?.comparison||0,c=a?za[o][s]:Ra[o],l=o===`halfaminute`?c:t+c;return r&&(l=La[r[0].toLowerCase()]+` `+l),l},Va={date:d({formats:{full:`y. MMMM d., EEEE`,long:`y. MMMM d.`,medium:`y. MMM d.`,short:`y. MM. dd.`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Ha=[`vasárnap`,`hétfőn`,`kedden`,`szerdán`,`csütörtökön`,`pénteken`,`szombaton`];function Ua(e){return function(t){var n=Ha[t.getDay()];return`${e?``:`'múlt' `}'${n}' p'-kor'`}}var Wa={lastWeek:Ua(!1),yesterday:`'tegnap' p'-kor'`,today:`'ma' p'-kor'`,tomorrow:`'holnap' p'-kor'`,nextWeek:Ua(!0),other:`P`},Ga={code:`hu`,formatDistance:Ba,formatLong:Va,formatRelative:function(e,t){var n=Wa[e];return typeof n==`function`?n(t):n},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`ie.`,`isz.`],abbreviated:[`i. e.`,`i. sz.`],wide:[`Krisztus előtt`,`időszámításunk szerint`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. n.év`,`2. n.év`,`3. n.év`,`4. n.év`],wide:[`1. negyedév`,`2. negyedév`,`3. negyedév`,`4. negyedév`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1},formattingValues:{narrow:[`I.`,`II.`,`III.`,`IV.`],abbreviated:[`I. n.év`,`II. n.év`,`III. n.év`,`IV. n.év`],wide:[`I. negyedév`,`II. negyedév`,`III. negyedév`,`IV. negyedév`]},defaultFormattingWidth:`wide`}),month:f({values:{narrow:[`J`,`F`,`M`,`Á`,`M`,`J`,`J`,`A`,`Sz`,`O`,`N`,`D`],abbreviated:[`jan.`,`febr.`,`márc.`,`ápr.`,`máj.`,`jún.`,`júl.`,`aug.`,`szept.`,`okt.`,`nov.`,`dec.`],wide:[`január`,`február`,`március`,`április`,`május`,`június`,`július`,`augusztus`,`szeptember`,`október`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Sz`],short:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],abbreviated:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],wide:[`vasárnap`,`hétfő`,`kedd`,`szerda`,`csütörtök`,`péntek`,`szombat`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},abbreviated:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},wide:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`délután`,evening:`este`,night:`éjjel`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ka={lessThanXSeconds:{one:`ավելի քիչ քան 1 վայրկյան`,other:`ավելի քիչ քան {{count}} վայրկյան`},xSeconds:{one:`1 վայրկյան`,other:`{{count}} վայրկյան`},halfAMinute:`կես րոպե`,lessThanXMinutes:{one:`ավելի քիչ քան 1 րոպե`,other:`ավելի քիչ քան {{count}} րոպե`},xMinutes:{one:`1 րոպե`,other:`{{count}} րոպե`},aboutXHours:{one:`մոտ 1 ժամ`,other:`մոտ {{count}} ժամ`},xHours:{one:`1 ժամ`,other:`{{count}} ժամ`},xDays:{one:`1 օր`,other:`{{count}} օր`},aboutXWeeks:{one:`մոտ 1 շաբաթ`,other:`մոտ {{count}} շաբաթ`},xWeeks:{one:`1 շաբաթ`,other:`{{count}} շաբաթ`},aboutXMonths:{one:`մոտ 1 ամիս`,other:`մոտ {{count}} ամիս`},xMonths:{one:`1 ամիս`,other:`{{count}} ամիս`},aboutXYears:{one:`մոտ 1 տարի`,other:`մոտ {{count}} տարի`},xYears:{one:`1 տարի`,other:`{{count}} տարի`},overXYears:{one:`ավելի քան 1 տարի`,other:`ավելի քան {{count}} տարի`},almostXYears:{one:`համարյա 1 տարի`,other:`համարյա {{count}} տարի`}},qa=function(e,t,n){var r,i=Ka[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` հետո`:r+` առաջ`:r},Ja={date:d({formats:{full:`d MMMM, y, EEEE`,long:`d MMMM, y`,medium:`d MMM, y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'ժ․'{{time}}`,long:`{{date}} 'ժ․'{{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ya={lastWeek:`'նախորդ' eeee p'֊ին'`,yesterday:`'երեկ' p'֊ին'`,today:`'այսօր' p'֊ին'`,tomorrow:`'վաղը' p'֊ին'`,nextWeek:`'հաջորդ' eeee p'֊ին'`,other:`P`},Xa={code:`hy`,formatDistance:qa,formatLong:Ja,formatRelative:function(e,t,n,r){return Ya[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;return r<10&&r%10==1?n+`֊ին`:n+`֊րդ`},era:f({values:{narrow:[`Ք`,`Մ`],abbreviated:[`ՔԱ`,`ՄԹ`],wide:[`Քրիստոսից առաջ`,`Մեր թվարկության`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Ք1`,`Ք2`,`Ք3`,`Ք4`],wide:[`1֊ին քառորդ`,`2֊րդ քառորդ`,`3֊րդ քառորդ`,`4֊րդ քառորդ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Հ`,`Փ`,`Մ`,`Ա`,`Մ`,`Հ`,`Հ`,`Օ`,`Ս`,`Հ`,`Ն`,`Դ`],abbreviated:[`հուն`,`փետ`,`մար`,`ապր`,`մայ`,`հուն`,`հուլ`,`օգս`,`սեպ`,`հոկ`,`նոյ`,`դեկ`],wide:[`հունվար`,`փետրվար`,`մարտ`,`ապրիլ`,`մայիս`,`հունիս`,`հուլիս`,`օգոստոս`,`սեպտեմբեր`,`հոկտեմբեր`,`նոյեմբեր`,`դեկտեմբեր`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Կ`,`Ե`,`Ե`,`Չ`,`Հ`,`Ո`,`Շ`],short:[`կր`,`եր`,`եք`,`չք`,`հգ`,`ուր`,`շբ`],abbreviated:[`կիր`,`երկ`,`երք`,`չոր`,`հնգ`,`ուրբ`,`շաբ`],wide:[`կիրակի`,`երկուշաբթի`,`երեքշաբթի`,`չորեքշաբթի`,`հինգշաբթի`,`ուրբաթ`,`շաբաթ`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:`wide`}),dayPeriod:p({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Za={lessThanXSeconds:{one:`kurang dari 1 detik`,other:`kurang dari {{count}} detik`},xSeconds:{one:`1 detik`,other:`{{count}} detik`},halfAMinute:`setengah menit`,lessThanXMinutes:{one:`kurang dari 1 menit`,other:`kurang dari {{count}} menit`},xMinutes:{one:`1 menit`,other:`{{count}} menit`},aboutXHours:{one:`sekitar 1 jam`,other:`sekitar {{count}} jam`},xHours:{one:`1 jam`,other:`{{count}} jam`},xDays:{one:`1 hari`,other:`{{count}} hari`},aboutXWeeks:{one:`sekitar 1 minggu`,other:`sekitar {{count}} minggu`},xWeeks:{one:`1 minggu`,other:`{{count}} minggu`},aboutXMonths:{one:`sekitar 1 bulan`,other:`sekitar {{count}} bulan`},xMonths:{one:`1 bulan`,other:`{{count}} bulan`},aboutXYears:{one:`sekitar 1 tahun`,other:`sekitar {{count}} tahun`},xYears:{one:`1 tahun`,other:`{{count}} tahun`},overXYears:{one:`lebih dari 1 tahun`,other:`lebih dari {{count}} tahun`},almostXYears:{one:`hampir 1 tahun`,other:`hampir {{count}} tahun`}},Qa=function(e,t,n){var r,i=Za[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`dalam waktu `+r:r+` yang lalu`:r},$a={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`d/M/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},eo={lastWeek:`eeee 'lalu pukul' p`,yesterday:`'Kemarin pukul' p`,today:`'Hari ini pukul' p`,tomorrow:`'Besok pukul' p`,nextWeek:`eeee 'pukul' p`,other:`P`},to={code:`id`,formatDistance:Qa,formatLong:$a,formatRelative:function(e,t,n,r){return eo[e]},localize:{ordinalNumber:function(e,t){return`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masehi`,`Masehi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`Kuartal ke-1`,`Kuartal ke-2`,`Kuartal ke-3`,`Kuartal ke-4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agt`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`M`,`S`,`S`,`R`,`K`,`J`,`S`],short:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],abbreviated:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],wide:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},no={lessThanXSeconds:{one:`minna en 1 sekúnda`,other:`minna en {{count}} sekúndur`},xSeconds:{one:`1 sekúnda`,other:`{{count}} sekúndur`},halfAMinute:`hálf mínúta`,lessThanXMinutes:{one:`minna en 1 mínúta`,other:`minna en {{count}} mínútur`},xMinutes:{one:`1 mínúta`,other:`{{count}} mínútur`},aboutXHours:{one:`u.þ.b. 1 klukkustund`,other:`u.þ.b. {{count}} klukkustundir`},xHours:{one:`1 klukkustund`,other:`{{count}} klukkustundir`},xDays:{one:`1 dagur`,other:`{{count}} dagar`},aboutXWeeks:{one:`um viku`,other:`um {{count}} vikur`},xWeeks:{one:`1 viku`,other:`{{count}} vikur`},aboutXMonths:{one:`u.þ.b. 1 mánuður`,other:`u.þ.b. {{count}} mánuðir`},xMonths:{one:`1 mánuður`,other:`{{count}} mánuðir`},aboutXYears:{one:`u.þ.b. 1 ár`,other:`u.þ.b. {{count}} ár`},xYears:{one:`1 ár`,other:`{{count}} ár`},overXYears:{one:`meira en 1 ár`,other:`meira en {{count}} ár`},almostXYears:{one:`næstum 1 ár`,other:`næstum {{count}} ár`}},ro=function(e,t,n){var r,i=no[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`í `+r:r+` síðan`:r},io={date:d({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`d.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ao={lastWeek:`'síðasta' dddd 'kl.' p`,yesterday:`'í gær kl.' p`,today:`'í dag kl.' p`,tomorrow:`'á morgun kl.' p`,nextWeek:`dddd 'kl.' p`,other:`P`},oo={code:`is`,formatDistance:ro,formatLong:io,formatRelative:function(e,t,n,r){return ao[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`fyrir Krist`,`eftir Krist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1F`,`2F`,`3F`,`4F`],wide:[`1. fjórðungur`,`2. fjórðungur`,`3. fjórðungur`,`4. fjórðungur`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`Á`,`S`,`Ó`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`sept.`,`okt.`,`nóv.`,`des.`],wide:[`janúar`,`febrúar`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`september`,`október`,`nóvember`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`Þ`,`M`,`F`,`F`,`L`],short:[`Su`,`Má`,`Þr`,`Mi`,`Fi`,`Fö`,`La`],abbreviated:[`sun.`,`mán.`,`þri.`,`mið.`,`fim.`,`fös.`,`lau.`],wide:[`sunnudagur`,`mánudagur`,`þriðjudagur`,`miðvikudagur`,`fimmtudagur`,`föstudagur`,`laugardagur`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`f`,pm:`e`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`f`,pm:`e`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},so={lessThanXSeconds:{one:`meno di un secondo`,other:`meno di {{count}} secondi`},xSeconds:{one:`un secondo`,other:`{{count}} secondi`},halfAMinute:`alcuni secondi`,lessThanXMinutes:{one:`meno di un minuto`,other:`meno di {{count}} minuti`},xMinutes:{one:`un minuto`,other:`{{count}} minuti`},aboutXHours:{one:`circa un'ora`,other:`circa {{count}} ore`},xHours:{one:`un'ora`,other:`{{count}} ore`},xDays:{one:`un giorno`,other:`{{count}} giorni`},aboutXWeeks:{one:`circa una settimana`,other:`circa {{count}} settimane`},xWeeks:{one:`una settimana`,other:`{{count}} settimane`},aboutXMonths:{one:`circa un mese`,other:`circa {{count}} mesi`},xMonths:{one:`un mese`,other:`{{count}} mesi`},aboutXYears:{one:`circa un anno`,other:`circa {{count}} anni`},xYears:{one:`un anno`,other:`{{count}} anni`},overXYears:{one:`più di un anno`,other:`più di {{count}} anni`},almostXYears:{one:`quasi un anno`,other:`quasi {{count}} anni`}},co=function(e,t,n){var r,i=so[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`tra `+r:r+` fa`:r},lo={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},L=[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`];function uo(e){switch(e){case 0:return`'domenica scorsa alle' p`;default:return`'`+L[e]+` scorso alle' p`}}function fo(e){return`'`+L[e]+` alle' p`}function po(e){switch(e){case 0:return`'domenica prossima alle' p`;default:return`'`+L[e]+` prossimo alle' p`}}var mo={lastWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?fo(r):uo(r)},yesterday:`'ieri alle' p`,today:`'oggi alle' p`,tomorrow:`'domani alle' p`,nextWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?fo(r):po(r)},other:`P`},ho=function(e,t,n,r){var i=mo[e];return typeof i==`function`?i(t,n,r):i},go={ordinalNumber:function(e,t){var n=Number(e);return String(n)},era:f({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`avanti Cristo`,`dopo Cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`G`,`F`,`M`,`A`,`M`,`G`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`gen`,`feb`,`mar`,`apr`,`mag`,`giu`,`lug`,`ago`,`set`,`ott`,`nov`,`dic`],wide:[`gennaio`,`febbraio`,`marzo`,`aprile`,`maggio`,`giugno`,`luglio`,`agosto`,`settembre`,`ottobre`,`novembre`,`dicembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`G`,`V`,`S`],short:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`gio`,`ven`,`sab`],wide:[`domenica`,`lunedì`,`martedì`,`mercoledì`,`giovedì`,`venerdì`,`sabato`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`mattina`,afternoon:`pomeriggio`,evening:`sera`,night:`notte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m.`,pm:`p.`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`},wide:{am:`AM`,pm:`PM`,midnight:`mezzanotte`,noon:`mezzogiorno`,morning:`di mattina`,afternoon:`del pomeriggio`,evening:`di sera`,night:`di notte`}},defaultFormattingWidth:`wide`})},_o={ordinalNumber:m({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{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],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]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})},vo={code:`it`,formatDistance:co,formatLong:lo,formatRelative:ho,localize:go,match:_o,options:{weekStartsOn:1,firstWeekContainsDate:4}},yo={code:`it-CH`,formatDistance:co,formatLong:{date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},formatRelative:ho,localize:go,match:_o,options:{weekStartsOn:1,firstWeekContainsDate:4}},bo={lessThanXSeconds:{one:`1秒未満`,other:`{{count}}秒未満`,oneWithSuffix:`約1秒`,otherWithSuffix:`約{{count}}秒`},xSeconds:{one:`1秒`,other:`{{count}}秒`},halfAMinute:`30秒`,lessThanXMinutes:{one:`1分未満`,other:`{{count}}分未満`,oneWithSuffix:`約1分`,otherWithSuffix:`約{{count}}分`},xMinutes:{one:`1分`,other:`{{count}}分`},aboutXHours:{one:`約1時間`,other:`約{{count}}時間`},xHours:{one:`1時間`,other:`{{count}}時間`},xDays:{one:`1日`,other:`{{count}}日`},aboutXWeeks:{one:`約1週間`,other:`約{{count}}週間`},xWeeks:{one:`1週間`,other:`{{count}}週間`},aboutXMonths:{one:`約1か月`,other:`約{{count}}か月`},xMonths:{one:`1か月`,other:`{{count}}か月`},aboutXYears:{one:`約1年`,other:`約{{count}}年`},xYears:{one:`1年`,other:`{{count}}年`},overXYears:{one:`1年以上`,other:`{{count}}年以上`},almostXYears:{one:`1年近く`,other:`{{count}}年近く`}},xo=function(e,t,n){n||={};var r,i=bo[e];return r=typeof i==`string`?i:t===1?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+`後`:r+`前`:r},So={date:d({formats:{full:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`H時mm分ss秒 zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Co={lastWeek:`先週のeeeeのp`,yesterday:`昨日のp`,today:`今日のp`,tomorrow:`明日のp`,nextWeek:`翌週のeeeeのp`,other:`P`},wo={code:`ja`,formatDistance:xo,formatLong:So,formatRelative:function(e,t,n,r){return Co[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],abbreviated:[`紀元前`,`西暦`],wide:[`紀元前`,`西暦`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`第1四半期`,`第2四半期`,`第3四半期`,`第4四半期`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},defaultWidth:`wide`}),day:f({values:{narrow:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],short:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],abbreviated:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],wide:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},To={lessThanXSeconds:{one:`1びょうみまん`,other:`{{count}}びょうみまん`,oneWithSuffix:`やく1びょう`,otherWithSuffix:`やく{{count}}びょう`},xSeconds:{one:`1びょう`,other:`{{count}}びょう`},halfAMinute:`30びょう`,lessThanXMinutes:{one:`1ぷんみまん`,other:`{{count}}ふんみまん`,oneWithSuffix:`やく1ぷん`,otherWithSuffix:`やく{{count}}ふん`},xMinutes:{one:`1ぷん`,other:`{{count}}ふん`},aboutXHours:{one:`やく1じかん`,other:`やく{{count}}じかん`},xHours:{one:`1じかん`,other:`{{count}}じかん`},xDays:{one:`1にち`,other:`{{count}}にち`},aboutXWeeks:{one:`やく1しゅうかん`,other:`やく{{count}}しゅうかん`},xWeeks:{one:`1しゅうかん`,other:`{{count}}しゅうかん`},aboutXMonths:{one:`やく1かげつ`,other:`やく{{count}}かげつ`},xMonths:{one:`1かげつ`,other:`{{count}}かげつ`},aboutXYears:{one:`やく1ねん`,other:`やく{{count}}ねん`},xYears:{one:`1ねん`,other:`{{count}}ねん`},overXYears:{one:`1ねんいじょう`,other:`{{count}}ねんいじょう`},almostXYears:{one:`1ねんちかく`,other:`{{count}}ねんちかく`}},Eo=function(e,t,n){n||={};var r,i=To[e];return r=typeof i==`string`?i:t===1?n.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:n.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+`あと`:r+`まえ`:r},Do={date:d({formats:{full:`yねんMがつdにちEEEE`,long:`yねんMがつdにち`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:d({formats:{full:`Hじmmふんssびょう zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Oo={lastWeek:`せんしゅうのeeeeのp`,yesterday:`きのうのp`,today:`きょうのp`,tomorrow:`あしたのp`,nextWeek:`よくしゅうのeeeeのp`,other:`P`},ko={code:`ja-Hira`,formatDistance:Eo,formatLong:Do,formatRelative:function(e,t,n,r){return Oo[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}ねん`;case`quarter`:return`だい${n}しはんき`;case`month`:return`${n}がつ`;case`week`:return`だい${n}しゅう`;case`date`:return`${n}にち`;case`hour`:return`${n}じ`;case`minute`:return`${n}ふん`;case`second`:return`${n}びょう`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],abbreviated:[`きげんぜん`,`せいれき`],wide:[`きげんぜん`,`せいれき`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`だい1しはんき`,`だい2しはんき`,`だい3しはんき`,`だい4しはんき`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`],wide:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`]},defaultWidth:`wide`}),day:f({values:{narrow:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],short:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],abbreviated:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],wide:[`にちようび`,`げつようび`,`かようび`,`すいようび`,`もくようび`,`きんようび`,`どようび`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},abbreviated:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},wide:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},abbreviated:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},wide:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Ao={lessThanXSeconds:{past:`{{count}} წამზე ნაკლები ხნის წინ`,present:`{{count}} წამზე ნაკლები`,future:`{{count}} წამზე ნაკლებში`},xSeconds:{past:`{{count}} წამის წინ`,present:`{{count}} წამი`,future:`{{count}} წამში`},halfAMinute:{past:`ნახევარი წუთის წინ`,present:`ნახევარი წუთი`,future:`ნახევარი წუთში`},lessThanXMinutes:{past:`{{count}} წუთზე ნაკლები ხნის წინ`,present:`{{count}} წუთზე ნაკლები`,future:`{{count}} წუთზე ნაკლებში`},xMinutes:{past:`{{count}} წუთის წინ`,present:`{{count}} წუთი`,future:`{{count}} წუთში`},aboutXHours:{past:`დაახლოებით {{count}} საათის წინ`,present:`დაახლოებით {{count}} საათი`,future:`დაახლოებით {{count}} საათში`},xHours:{past:`{{count}} საათის წინ`,present:`{{count}} საათი`,future:`{{count}} საათში`},xDays:{past:`{{count}} დღის წინ`,present:`{{count}} დღე`,future:`{{count}} დღეში`},aboutXWeeks:{past:`დაახლოებით {{count}} კვირას წინ`,present:`დაახლოებით {{count}} კვირა`,future:`დაახლოებით {{count}} კვირაში`},xWeeks:{past:`{{count}} კვირას კვირა`,present:`{{count}} კვირა`,future:`{{count}} კვირაში`},aboutXMonths:{past:`დაახლოებით {{count}} თვის წინ`,present:`დაახლოებით {{count}} თვე`,future:`დაახლოებით {{count}} თვეში`},xMonths:{past:`{{count}} თვის წინ`,present:`{{count}} თვე`,future:`{{count}} თვეში`},aboutXYears:{past:`დაახლოებით {{count}} წლის წინ`,present:`დაახლოებით {{count}} წელი`,future:`დაახლოებით {{count}} წელში`},xYears:{past:`{{count}} წლის წინ`,present:`{{count}} წელი`,future:`{{count}} წელში`},overXYears:{past:`{{count}} წელზე მეტი ხნის წინ`,present:`{{count}} წელზე მეტი`,future:`{{count}} წელზე მეტი ხნის შემდეგ`},almostXYears:{past:`თითქმის {{count}} წლის წინ`,present:`თითქმის {{count}} წელი`,future:`თითქმის {{count}} წელში`}},jo=function(e,t,n){var r,i=Ao[e];return r=typeof i==`string`?i:n!=null&&n.addSuffix&&n.comparison&&n.comparison>0?i.future.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?i.past.replace(`{{count}}`,String(t)):i.present.replace(`{{count}}`,String(t)),r},Mo={date:d({formats:{full:`EEEE, do MMMM, y`,long:`do, MMMM, y`,medium:`d, MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}'-ზე'`,long:`{{date}} {{time}}'-ზე'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},No={lastWeek:`'წინა' eeee p'-ზე'`,yesterday:`'გუშინ' p'-ზე'`,today:`'დღეს' p'-ზე'`,tomorrow:`'ხვალ' p'-ზე'`,nextWeek:`'შემდეგი' eeee p'-ზე'`,other:`P`},Po={code:`ka`,formatDistance:jo,formatLong:Mo,formatRelative:function(e,t,n,r){return No[e]},localize:{ordinalNumber:function(e){var t=Number(e);return t===1?t+`-ლი`:t+`-ე`},era:f({values:{narrow:[`ჩ.წ-მდე`,`ჩ.წ`],abbreviated:[`ჩვ.წ-მდე`,`ჩვ.წ`],wide:[`ჩვენს წელთაღრიცხვამდე`,`ჩვენი წელთაღრიცხვით`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ლი კვ`,`2-ე კვ`,`3-ე კვ`,`4-ე კვ`],wide:[`1-ლი კვარტალი`,`2-ე კვარტალი`,`3-ე კვარტალი`,`4-ე კვარტალი`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ია`,`თე`,`მა`,`აპ`,`მს`,`ვნ`,`ვლ`,`აგ`,`სე`,`ოქ`,`ნო`,`დე`],abbreviated:[`იან`,`თებ`,`მარ`,`აპრ`,`მაი`,`ივნ`,`ივლ`,`აგვ`,`სექ`,`ოქტ`,`ნოე`,`დეკ`],wide:[`იანვარი`,`თებერვალი`,`მარტი`,`აპრილი`,`მაისი`,`ივნისი`,`ივლისი`,`აგვისტო`,`სექტემბერი`,`ოქტომბერი`,`ნოემბერი`,`დეკემბერი`]},defaultWidth:`wide`}),day:f({values:{narrow:[`კვ`,`ორ`,`სა`,`ოთ`,`ხუ`,`პა`,`შა`],short:[`კვი`,`ორშ`,`სამ`,`ოთხ`,`ხუთ`,`პარ`,`შაბ`],abbreviated:[`კვი`,`ორშ`,`სამ`,`ოთხ`,`ხუთ`,`პარ`,`შაბ`],wide:[`კვირა`,`ორშაბათი`,`სამშაბათი`,`ოთხშაბათი`,`ხუთშაბათი`,`პარასკევი`,`შაბათი`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`},abbreviated:{am:`AM`,pm:`PM`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`},abbreviated:{am:`AM`,pm:`PM`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-ლი|-ე)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:`any`,parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Fo={lessThanXSeconds:{regular:{one:`1 секундтан аз`,singularNominative:`{{count}} секундтан аз`,singularGenitive:`{{count}} секундтан аз`,pluralGenitive:`{{count}} секундтан аз`},future:{one:`бір секундтан кейін`,singularNominative:`{{count}} секундтан кейін`,singularGenitive:`{{count}} секундтан кейін`,pluralGenitive:`{{count}} секундтан кейін`}},xSeconds:{regular:{singularNominative:`{{count}} секунд`,singularGenitive:`{{count}} секунд`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунд бұрын`,singularGenitive:`{{count}} секунд бұрын`,pluralGenitive:`{{count}} секунд бұрын`},future:{singularNominative:`{{count}} секундтан кейін`,singularGenitive:`{{count}} секундтан кейін`,pluralGenitive:`{{count}} секундтан кейін`}},halfAMinute:function(e){return e!=null&&e.addSuffix?e.comparison&&e.comparison>0?`жарты минут ішінде`:`жарты минут бұрын`:`жарты минут`},lessThanXMinutes:{regular:{one:`1 минуттан аз`,singularNominative:`{{count}} минуттан аз`,singularGenitive:`{{count}} минуттан аз`,pluralGenitive:`{{count}} минуттан аз`},future:{one:`минуттан кем `,singularNominative:`{{count}} минуттан кем`,singularGenitive:`{{count}} минуттан кем`,pluralGenitive:`{{count}} минуттан кем`}},xMinutes:{regular:{singularNominative:`{{count}} минут`,singularGenitive:`{{count}} минут`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минут бұрын`,singularGenitive:`{{count}} минут бұрын`,pluralGenitive:`{{count}} минут бұрын`},future:{singularNominative:`{{count}} минуттан кейін`,singularGenitive:`{{count}} минуттан кейін`,pluralGenitive:`{{count}} минуттан кейін`}},aboutXHours:{regular:{singularNominative:`шамамен {{count}} сағат`,singularGenitive:`шамамен {{count}} сағат`,pluralGenitive:`шамамен {{count}} сағат`},future:{singularNominative:`шамамен {{count}} сағаттан кейін`,singularGenitive:`шамамен {{count}} сағаттан кейін`,pluralGenitive:`шамамен {{count}} сағаттан кейін`}},xHours:{regular:{singularNominative:`{{count}} сағат`,singularGenitive:`{{count}} сағат`,pluralGenitive:`{{count}} сағат`}},xDays:{regular:{singularNominative:`{{count}} күн`,singularGenitive:`{{count}} күн`,pluralGenitive:`{{count}} күн`},future:{singularNominative:`{{count}} күннен кейін`,singularGenitive:`{{count}} күннен кейін`,pluralGenitive:`{{count}} күннен кейін`}},aboutXWeeks:{type:`weeks`,one:`шамамен 1 апта`,other:`шамамен {{count}} апта`},xWeeks:{type:`weeks`,one:`1 апта`,other:`{{count}} апта`},aboutXMonths:{regular:{singularNominative:`шамамен {{count}} ай`,singularGenitive:`шамамен {{count}} ай`,pluralGenitive:`шамамен {{count}} ай`},future:{singularNominative:`шамамен {{count}} айдан кейін`,singularGenitive:`шамамен {{count}} айдан кейін`,pluralGenitive:`шамамен {{count}} айдан кейін`}},xMonths:{regular:{singularNominative:`{{count}} ай`,singularGenitive:`{{count}} ай`,pluralGenitive:`{{count}} ай`}},aboutXYears:{regular:{singularNominative:`шамамен {{count}} жыл`,singularGenitive:`шамамен {{count}} жыл`,pluralGenitive:`шамамен {{count}} жыл`},future:{singularNominative:`шамамен {{count}} жылдан кейін`,singularGenitive:`шамамен {{count}} жылдан кейін`,pluralGenitive:`шамамен {{count}} жылдан кейін`}},xYears:{regular:{singularNominative:`{{count}} жыл`,singularGenitive:`{{count}} жыл`,pluralGenitive:`{{count}} жыл`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}},overXYears:{regular:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`},future:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`}},almostXYears:{regular:{singularNominative:`{{count}} жылға жақын`,singularGenitive:`{{count}} жылға жақын`,pluralGenitive:`{{count}} жылға жақын`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}}};function R(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}var Io=function(e,t,n){var r=Fo[e];return typeof r==`function`?r(n):r.type===`weeks`?t===1?r.one:r.other.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r.future?R(r.future,t):R(r.regular,t)+` кейін`:r.past?R(r.past,t):R(r.regular,t)+` бұрын`:R(r.regular,t)},Lo={date:d({formats:{full:`EEEE, do MMMM y 'ж.'`,long:`do MMMM y 'ж.'`,medium:`d MMM y 'ж.'`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},z=[`жексенбіде`,`дүйсенбіде`,`сейсенбіде`,`сәрсенбіде`,`бейсенбіде`,`жұмада`,`сенбіде`];function Ro(e){return`'өткен `+z[e]+` сағат' p'-де'`}function zo(e){return`'`+z[e]+` сағат' p'-де'`}function Bo(e){return`'келесі `+z[e]+` сағат' p'-де'`}var Vo={lastWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?zo(r):Ro(r)},yesterday:`'кеше сағат' p'-де'`,today:`'бүгін сағат' p'-де'`,tomorrow:`'ертең сағат' p'-де'`,nextWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?zo(r):Bo(r)},other:`P`},Ho=function(e,t,n,r){var i=Vo[e];return typeof i==`function`?i(t,n,r):i},Uo={narrow:[`б.з.д.`,`б.з.`],abbreviated:[`б.з.д.`,`б.з.`],wide:[`біздің заманымызға дейін`,`біздің заманымыз`]},Wo={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ші тоқ.`,`2-ші тоқ.`,`3-ші тоқ.`,`4-ші тоқ.`],wide:[`1-ші тоқсан`,`2-ші тоқсан`,`3-ші тоқсан`,`4-ші тоқсан`]},Go={narrow:[`Қ`,`А`,`Н`,`С`,`М`,`М`,`Ш`,`Т`,`Қ`,`Қ`,`Қ`,`Ж`],abbreviated:[`қаң`,`ақп`,`нау`,`сәу`,`мам`,`мау`,`шіл`,`там`,`қыр`,`қаз`,`қар`,`жел`],wide:[`қаңтар`,`ақпан`,`наурыз`,`сәуір`,`мамыр`,`маусым`,`шілде`,`тамыз`,`қыркүйек`,`қазан`,`қараша`,`желтоқсан`]},Ko={narrow:[`Қ`,`А`,`Н`,`С`,`М`,`М`,`Ш`,`Т`,`Қ`,`Қ`,`Қ`,`Ж`],abbreviated:[`қаң`,`ақп`,`нау`,`сәу`,`мам`,`мау`,`шіл`,`там`,`қыр`,`қаз`,`қар`,`жел`],wide:[`қаңтар`,`ақпан`,`наурыз`,`сәуір`,`мамыр`,`маусым`,`шілде`,`тамыз`,`қыркүйек`,`қазан`,`қараша`,`желтоқсан`]},qo={narrow:[`Ж`,`Д`,`С`,`С`,`Б`,`Ж`,`С`],short:[`жс`,`дс`,`сс`,`ср`,`бс`,`жм`,`сб`],abbreviated:[`жс`,`дс`,`сс`,`ср`,`бс`,`жм`,`сб`],wide:[`жексенбі`,`дүйсенбі`,`сейсенбі`,`сәрсенбі`,`бейсенбі`,`жұма`,`сенбі`]},Jo={narrow:{am:`ТД`,pm:`ТК`,midnight:`түн ортасы`,noon:`түс`,morning:`таң`,afternoon:`күндіз`,evening:`кеш`,night:`түн`},wide:{am:`ТД`,pm:`ТК`,midnight:`түн ортасы`,noon:`түс`,morning:`таң`,afternoon:`күндіз`,evening:`кеш`,night:`түн`}},Yo={narrow:{am:`ТД`,pm:`ТК`,midnight:`түн ортасында`,noon:`түс`,morning:`таң`,afternoon:`күн`,evening:`кеш`,night:`түн`},wide:{am:`ТД`,pm:`ТК`,midnight:`түн ортасында`,noon:`түсте`,morning:`таңертең`,afternoon:`күндіз`,evening:`кеште`,night:`түнде`}},B={0:`-ші`,1:`-ші`,2:`-ші`,3:`-ші`,4:`-ші`,5:`-ші`,6:`-шы`,7:`-ші`,8:`-ші`,9:`-шы`,10:`-шы`,20:`-шы`,30:`-шы`,40:`-шы`,50:`-ші`,60:`-шы`,70:`-ші`,80:`-ші`,90:`-шы`,100:`-ші`},Xo={code:`kk`,formatDistance:Io,formatLong:Lo,formatRelative:Ho,localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%10,i=n>=100?100:null;return n+(B[n]||B[r]||i&&B[i]||``)},era:f({values:Uo,defaultWidth:`wide`}),quarter:f({values:Wo,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:Go,defaultWidth:`wide`,formattingValues:Ko,defaultFormattingWidth:`wide`}),day:f({values:qo,defaultWidth:`wide`}),dayPeriod:f({values:Jo,defaultWidth:`any`,formattingValues:Yo,defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Zo={lessThanXSeconds:`តិចជាង {{count}} វិនាទី`,xSeconds:`{{count}} វិនាទី`,halfAMinute:`កន្លះនាទី`,lessThanXMinutes:`តិចជាង {{count}} នាទី`,xMinutes:`{{count}} នាទី`,aboutXHours:`ប្រហែល {{count}} ម៉ោង`,xHours:`{{count}} ម៉ោង`,xDays:`{{count}} ថ្ងៃ`,aboutXWeeks:`ប្រហែល {{count}} សប្តាហ៍`,xWeeks:`{{count}} សប្តាហ៍`,aboutXMonths:`ប្រហែល {{count}} ខែ`,xMonths:`{{count}} ខែ`,aboutXYears:`ប្រហែល {{count}} ឆ្នាំ`,xYears:`{{count}} ឆ្នាំ`,overXYears:`ជាង {{count}} ឆ្នាំ`,almostXYears:`ជិត {{count}} ឆ្នាំ`},Qo=function(e,t,n){var r=Zo[e];return typeof t==`number`&&(r=r.replace(`{{count}}`,t.toString())),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`ក្នុងរយៈពេល `+r:r+`មុន`:r},$o={date:d({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a`,long:`h:mm:ss a`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'ម៉ោង' {{time}}`,long:`{{date}} 'ម៉ោង' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},es={lastWeek:`'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p`,yesterday:`'ម្សិលមិញនៅម៉ោង' p`,today:`'ថ្ងៃនេះម៉ោង' p`,tomorrow:`'ថ្ងៃស្អែកម៉ោង' p`,nextWeek:`'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p`,other:`P`},ts={code:`km`,formatDistance:Qo,formatLong:$o,formatRelative:function(e,t,n,r){return es[e]},localize:{ordinalNumber:function(e,t){return Number(e).toString()},era:f({values:{narrow:[`ម.គស`,`គស`],abbreviated:[`មុនគ.ស`,`គ.ស`],wide:[`មុនគ្រិស្តសករាជ`,`នៃគ្រិស្តសករាជ`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`ត្រីមាសទី 1`,`ត្រីមាសទី 2`,`ត្រីមាសទី 3`,`ត្រីមាសទី 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ម.ក`,`ក.ម`,`មិ`,`ម.ស`,`ឧ.ស`,`ម.ថ`,`ក.ដ`,`សី`,`កញ`,`តុ`,`វិ`,`ធ`],abbreviated:[`មករា`,`កុម្ភៈ`,`មីនា`,`មេសា`,`ឧសភា`,`មិថុនា`,`កក្កដា`,`សីហា`,`កញ្ញា`,`តុលា`,`វិច្ឆិកា`,`ធ្នូ`],wide:[`មករា`,`កុម្ភៈ`,`មីនា`,`មេសា`,`ឧសភា`,`មិថុនា`,`កក្កដា`,`សីហា`,`កញ្ញា`,`តុលា`,`វិច្ឆិកា`,`ធ្នូ`]},defaultWidth:`wide`}),day:f({values:{narrow:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],short:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],abbreviated:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],wide:[`អាទិត្យ`,`ចន្ទ`,`អង្គារ`,`ពុធ`,`ព្រហស្បតិ៍`,`សុក្រ`,`សៅរ៍`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},abbreviated:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},wide:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},abbreviated:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},wide:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ns={lessThanXSeconds:{one:{default:`1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`,future:`1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`,past:`1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`},other:{default:`{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`,future:`{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`,past:`{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ`}},xSeconds:{one:{default:`1 ಸೆಕೆಂಡ್`,future:`1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ`,past:`1 ಸೆಕೆಂಡ್ ಹಿಂದೆ`},other:{default:`{{count}} ಸೆಕೆಂಡುಗಳು`,future:`{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ`,past:`{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ`}},halfAMinute:{other:{default:`ಅರ್ಧ ನಿಮಿಷ`,future:`ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ`,past:`ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ`}},lessThanXMinutes:{one:{default:`1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`,future:`1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`,past:`1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`},other:{default:`{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`,future:`{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`,past:`{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ`}},xMinutes:{one:{default:`1 ನಿಮಿಷ`,future:`1 ನಿಮಿಷದಲ್ಲಿ`,past:`1 ನಿಮಿಷದ ಹಿಂದೆ`},other:{default:`{{count}} ನಿಮಿಷಗಳು`,future:`{{count}} ನಿಮಿಷಗಳಲ್ಲಿ`,past:`{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ`}},aboutXHours:{one:{default:`ಸುಮಾರು 1 ಗಂಟೆ`,future:`ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ`,past:`ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ`},other:{default:`ಸುಮಾರು {{count}} ಗಂಟೆಗಳು`,future:`ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ`,past:`ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ`}},xHours:{one:{default:`1 ಗಂಟೆ`,future:`1 ಗಂಟೆಯಲ್ಲಿ`,past:`1 ಗಂಟೆ ಹಿಂದೆ`},other:{default:`{{count}} ಗಂಟೆಗಳು`,future:`{{count}} ಗಂಟೆಗಳಲ್ಲಿ`,past:`{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ`}},xDays:{one:{default:`1 ದಿನ`,future:`1 ದಿನದಲ್ಲಿ`,past:`1 ದಿನದ ಹಿಂದೆ`},other:{default:`{{count}} ದಿನಗಳು`,future:`{{count}} ದಿನಗಳಲ್ಲಿ`,past:`{{count}} ದಿನಗಳ ಹಿಂದೆ`}},aboutXMonths:{one:{default:`ಸುಮಾರು 1 ತಿಂಗಳು`,future:`ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ`,past:`ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ`},other:{default:`ಸುಮಾರು {{count}} ತಿಂಗಳು`,future:`ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ`,past:`ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ`}},xMonths:{one:{default:`1 ತಿಂಗಳು`,future:`1 ತಿಂಗಳಲ್ಲಿ`,past:`1 ತಿಂಗಳ ಹಿಂದೆ`},other:{default:`{{count}} ತಿಂಗಳು`,future:`{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ`,past:`{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ`}},aboutXYears:{one:{default:`ಸುಮಾರು 1 ವರ್ಷ`,future:`ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ`,past:`ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ`},other:{default:`ಸುಮಾರು {{count}} ವರ್ಷಗಳು`,future:`ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ`,past:`ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ`}},xYears:{one:{default:`1 ವರ್ಷ`,future:`1 ವರ್ಷದಲ್ಲಿ`,past:`1 ವರ್ಷದ ಹಿಂದೆ`},other:{default:`{{count}} ವರ್ಷಗಳು`,future:`{{count}} ವರ್ಷಗಳಲ್ಲಿ`,past:`{{count}} ವರ್ಷಗಳ ಹಿಂದೆ`}},overXYears:{one:{default:`1 ವರ್ಷದ ಮೇಲೆ`,future:`1 ವರ್ಷದ ಮೇಲೆ`,past:`1 ವರ್ಷದ ಮೇಲೆ`},other:{default:`{{count}} ವರ್ಷಗಳ ಮೇಲೆ`,future:`{{count}} ವರ್ಷಗಳ ಮೇಲೆ`,past:`{{count}} ವರ್ಷಗಳ ಮೇಲೆ`}},almostXYears:{one:{default:`ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ`,future:`ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ`,past:`ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ`},other:{default:`ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ`,future:`ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ`,past:`ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ`}}};function rs(e,t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?e.future:e.past:e.default}var is=function(e,t,n){var r,i=ns[e];return r=i.one&&t===1?rs(i.one,n):rs(i.other,n),r.replace(`{{count}}`,String(t))},as={date:d({formats:{full:`EEEE, MMMM d, y`,long:`MMMM d, y`,medium:`MMM d, y`,short:`d/M/yy`},defaultWidth:`full`}),time:d({formats:{full:`hh:mm:ss a zzzz`,long:`hh:mm:ss a z`,medium:`hh:mm:ss a`,short:`hh:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},os={lastWeek:`'ಕಳೆದ' eeee p 'ಕ್ಕೆ'`,yesterday:`'ನಿನ್ನೆ' p 'ಕ್ಕೆ'`,today:`'ಇಂದು' p 'ಕ್ಕೆ'`,tomorrow:`'ನಾಳೆ' p 'ಕ್ಕೆ'`,nextWeek:`eeee p 'ಕ್ಕೆ'`,other:`P`},ss={code:`kn`,formatDistance:is,formatLong:as,formatRelative:function(e,t,n,r){return os[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`ನೇ`},era:f({values:{narrow:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],abbreviated:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],wide:[`ಕ್ರಿಸ್ತ ಪೂರ್ವ`,`ಕ್ರಿಸ್ತ ಶಕ`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ತ್ರೈ 1`,`ತ್ರೈ 2`,`ತ್ರೈ 3`,`ತ್ರೈ 4`],wide:[`1ನೇ ತ್ರೈಮಾಸಿಕ`,`2ನೇ ತ್ರೈಮಾಸಿಕ`,`3ನೇ ತ್ರೈಮಾಸಿಕ`,`4ನೇ ತ್ರೈಮಾಸಿಕ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ಜ`,`ಫೆ`,`ಮಾ`,`ಏ`,`ಮೇ`,`ಜೂ`,`ಜು`,`ಆ`,`ಸೆ`,`ಅ`,`ನ`,`ಡಿ`],abbreviated:[`ಜನ`,`ಫೆಬ್ರ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿ`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗ`,`ಸೆಪ್ಟೆಂ`,`ಅಕ್ಟೋ`,`ನವೆಂ`,`ಡಿಸೆಂ`],wide:[`ಜನವರಿ`,`ಫೆಬ್ರವರಿ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿಲ್`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗಸ್ಟ್`,`ಸೆಪ್ಟೆಂಬರ್`,`ಅಕ್ಟೋಬರ್`,`ನವೆಂಬರ್`,`ಡಿಸೆಂಬರ್`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ಭಾ`,`ಸೋ`,`ಮಂ`,`ಬು`,`ಗು`,`ಶು`,`ಶ`],short:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],abbreviated:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],wide:[`ಭಾನುವಾರ`,`ಸೋಮವಾರ`,`ಮಂಗಳವಾರ`,`ಬುಧವಾರ`,`ಗುರುವಾರ`,`ಶುಕ್ರವಾರ`,`ಶನಿವಾರ`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾಹ್ನ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾಹ್ನ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},abbreviated:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},wide:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ಪೂ`,pm:`ಅ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},abbreviated:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯ ರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},wide:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯ ರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},cs={lessThanXSeconds:{one:`1초 미만`,other:`{{count}}초 미만`},xSeconds:{one:`1초`,other:`{{count}}초`},halfAMinute:`30초`,lessThanXMinutes:{one:`1분 미만`,other:`{{count}}분 미만`},xMinutes:{one:`1분`,other:`{{count}}분`},aboutXHours:{one:`약 1시간`,other:`약 {{count}}시간`},xHours:{one:`1시간`,other:`{{count}}시간`},xDays:{one:`1일`,other:`{{count}}일`},aboutXWeeks:{one:`약 1주`,other:`약 {{count}}주`},xWeeks:{one:`1주`,other:`{{count}}주`},aboutXMonths:{one:`약 1개월`,other:`약 {{count}}개월`},xMonths:{one:`1개월`,other:`{{count}}개월`},aboutXYears:{one:`약 1년`,other:`약 {{count}}년`},xYears:{one:`1년`,other:`{{count}}년`},overXYears:{one:`1년 이상`,other:`{{count}}년 이상`},almostXYears:{one:`거의 1년`,other:`거의 {{count}}년`}},ls=function(e,t,n){var r,i=cs[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` 후`:r+` 전`:r},us={date:d({formats:{full:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:d({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ds={lastWeek:`'지난' eeee p`,yesterday:`'어제' p`,today:`'오늘' p`,tomorrow:`'내일' p`,nextWeek:`'다음' eeee p`,other:`P`},fs={code:`ko`,formatDistance:ls,formatLong:us,formatRelative:function(e,t,n,r){return ds[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:f({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],wide:[`기원전`,`서기`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1분기`,`2분기`,`3분기`,`4분기`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],wide:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},defaultWidth:`wide`}),day:f({values:{narrow:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],short:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],abbreviated:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],wide:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},ps={lessThanXSeconds:{standalone:{one:`manner wéi eng Sekonn`,other:`manner wéi {{count}} Sekonnen`},withPreposition:{one:`manner wéi enger Sekonn`,other:`manner wéi {{count}} Sekonnen`}},xSeconds:{standalone:{one:`eng Sekonn`,other:`{{count}} Sekonnen`},withPreposition:{one:`enger Sekonn`,other:`{{count}} Sekonnen`}},halfAMinute:{standalone:`eng hallef Minutt`,withPreposition:`enger hallwer Minutt`},lessThanXMinutes:{standalone:{one:`manner wéi eng Minutt`,other:`manner wéi {{count}} Minutten`},withPreposition:{one:`manner wéi enger Minutt`,other:`manner wéi {{count}} Minutten`}},xMinutes:{standalone:{one:`eng Minutt`,other:`{{count}} Minutten`},withPreposition:{one:`enger Minutt`,other:`{{count}} Minutten`}},aboutXHours:{standalone:{one:`ongeféier eng Stonn`,other:`ongeféier {{count}} Stonnen`},withPreposition:{one:`ongeféier enger Stonn`,other:`ongeféier {{count}} Stonnen`}},xHours:{standalone:{one:`eng Stonn`,other:`{{count}} Stonnen`},withPreposition:{one:`enger Stonn`,other:`{{count}} Stonnen`}},xDays:{standalone:{one:`een Dag`,other:`{{count}} Deeg`},withPreposition:{one:`engem Dag`,other:`{{count}} Deeg`}},aboutXWeeks:{standalone:{one:`ongeféier eng Woch`,other:`ongeféier {{count}} Wochen`},withPreposition:{one:`ongeféier enger Woche`,other:`ongeféier {{count}} Wochen`}},xWeeks:{standalone:{one:`eng Woch`,other:`{{count}} Wochen`},withPreposition:{one:`enger Woch`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`ongeféier ee Mount`,other:`ongeféier {{count}} Méint`},withPreposition:{one:`ongeféier engem Mount`,other:`ongeféier {{count}} Méint`}},xMonths:{standalone:{one:`ee Mount`,other:`{{count}} Méint`},withPreposition:{one:`engem Mount`,other:`{{count}} Méint`}},aboutXYears:{standalone:{one:`ongeféier ee Joer`,other:`ongeféier {{count}} Joer`},withPreposition:{one:`ongeféier engem Joer`,other:`ongeféier {{count}} Joer`}},xYears:{standalone:{one:`ee Joer`,other:`{{count}} Joer`},withPreposition:{one:`engem Joer`,other:`{{count}} Joer`}},overXYears:{standalone:{one:`méi wéi ee Joer`,other:`méi wéi {{count}} Joer`},withPreposition:{one:`méi wéi engem Joer`,other:`méi wéi {{count}} Joer`}},almostXYears:{standalone:{one:`bal ee Joer`,other:`bal {{count}} Joer`},withPreposition:{one:`bal engem Joer`,other:`bal {{count}} Joer`}}},ms=[`d`,`h`,`n`,`t`,`z`],hs=[`a,`,`e`,`i`,`o`,`u`],gs=[0,1,2,3,8,9],_s=[40,50,60,70];function vs(e){var t=e.charAt(0).toLowerCase();if(hs.indexOf(t)!=-1||ms.indexOf(t)!=-1)return!0;var n=e.split(` `)[0],r=parseInt(n);return!isNaN(r)&&gs.indexOf(r%10)!=-1&&_s.indexOf(parseInt(n.substring(0,2)))==-1}var ys=function(e,t,n){var r,i=ps[e],a=n!=null&&n.addSuffix?i.withPreposition:i.standalone;return r=typeof a==`string`?a:t===1?a.one:a.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`a`+(vs(r)?`n`:``)+` `+r:`viru`+(vs(r)?`n`:``)+` `+r:r},bs={date:d({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.yy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},xs={lastWeek:function(e){var t=e.getDay(),n=`'läschte`;return(t===2||t===4)&&(n+=`n`),n+=`' eeee 'um' p`,n},yesterday:`'gëschter um' p`,today:`'haut um' p`,tomorrow:`'moien um' p`,nextWeek:`eeee 'um' p`,other:`P`},Ss={code:`lb`,formatDistance:ys,formatLong:bs,formatRelative:function(e,t,n,r){var i=xs[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`viru Christus`,`no Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mäe`,`Abr`,`Mee`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`Mäerz`,`Abrëll`,`Mee`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mé`,`Dë`,`Më`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mé.`,`Dë.`,`Më.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonndeg`,`Méindeg`,`Dënschdeg`,`Mëttwoch`,`Donneschdeg`,`Freideg`,`Samschdeg`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`mo.`,pm:`nomë.`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`mo.`,pm:`nom.`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Cs={xseconds_other:`sekundė_sekundžių_sekundes`,xminutes_one:`minutė_minutės_minutę`,xminutes_other:`minutės_minučių_minutes`,xhours_one:`valanda_valandos_valandą`,xhours_other:`valandos_valandų_valandas`,xdays_one:`diena_dienos_dieną`,xdays_other:`dienos_dienų_dienas`,xweeks_one:`savaitė_savaitės_savaitę`,xweeks_other:`savaitės_savaičių_savaites`,xmonths_one:`mėnuo_mėnesio_mėnesį`,xmonths_other:`mėnesiai_mėnesių_mėnesius`,xyears_one:`metai_metų_metus`,xyears_other:`metai_metų_metus`,about:`apie`,over:`daugiau nei`,almost:`beveik`,lessthan:`mažiau nei`},ws=function(e,t,n,r){return t?r?`kelių sekundžių`:`kelias sekundes`:`kelios sekundės`},V=function(e,t,n,r){return t?r?U(n)[1]:U(n)[2]:U(n)[0]},H=function(e,t,n,r){var i=e+` `;return e===1?i+V(e,t,n,r):t?r?i+U(n)[1]:i+(Ts(e)?U(n)[1]:U(n)[2]):i+(Ts(e)?U(n)[1]:U(n)[0])};function Ts(e){return e%10==0||e>10&&e<20}function U(e){return Cs[e].split(`_`)}var Es={lessThanXSeconds:{one:ws,other:H},xSeconds:{one:ws,other:H},halfAMinute:`pusė minutės`,lessThanXMinutes:{one:V,other:H},xMinutes:{one:V,other:H},aboutXHours:{one:V,other:H},xHours:{one:V,other:H},xDays:{one:V,other:H},aboutXWeeks:{one:V,other:H},xWeeks:{one:V,other:H},aboutXMonths:{one:V,other:H},xMonths:{one:V,other:H},aboutXYears:{one:V,other:H},xYears:{one:V,other:H},overXYears:{one:V,other:H},almostXYears:{one:V,other:H}},Ds=function(e,t,n){var r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],``):e,a=n?.comparison!==void 0&&n.comparison>0,o,s=Es[e];return o=typeof s==`string`?s:t===1?s.one(t,n?.addSuffix===!0,i.toLowerCase()+`_one`,a):s.other(t,n?.addSuffix===!0,i.toLowerCase()+`_other`,a),r&&(o=Cs[r[0].toLowerCase()]+` `+o),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`po `+o:`prieš `+o:o},Os={date:d({formats:{full:`y 'm'. MMMM d 'd'., EEEE`,long:`y 'm'. MMMM d 'd'.`,medium:`y-MM-dd`,short:`y-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ks={lastWeek:`'Praėjusį' eeee p`,yesterday:`'Vakar' p`,today:`'Šiandien' p`,tomorrow:`'Rytoj' p`,nextWeek:`eeee p`,other:`P`},As={code:`lt`,formatDistance:Ds,formatLong:Os,formatRelative:function(e,t,n,r){return ks[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`-oji`},era:f({values:{narrow:[`pr. Kr.`,`po Kr.`],abbreviated:[`pr. Kr.`,`po Kr.`],wide:[`prieš Kristų`,`po Kristaus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I ketv.`,`II ketv.`,`III ketv.`,`IV ketv.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I k.`,`II k.`,`III k.`,`IV k.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultFormattingWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausis`,`vasaris`,`kovas`,`balandis`,`gegužė`,`birželis`,`liepa`,`rugpjūtis`,`rugsėjis`,`spalis`,`lapkritis`,`gruodis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausio`,`vasario`,`kovo`,`balandžio`,`gegužės`,`birželio`,`liepos`,`rugpjūčio`,`rugsėjo`,`spalio`,`lapkričio`,`gruodžio`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienis`,`pirmadienis`,`antradienis`,`trečiadienis`,`ketvirtadienis`,`penktadienis`,`šeštadienis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienį`,`pirmadienį`,`antradienį`,`trečiadienį`,`ketvirtadienį`,`penktadienį`,`šeštadienį`]},defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function W(e){return function(t,n){if(t===1)return n!=null&&n.addSuffix?e.one[0].replace(`{{time}}`,e.one[2]):e.one[0].replace(`{{time}}`,e.one[1]);var r=t%10==1&&t%100!=11;return n!=null&&n.addSuffix?e.other[0].replace(`{{time}}`,r?e.other[3]:e.other[4]).replace(`{{count}}`,String(t)):e.other[0].replace(`{{time}}`,r?e.other[1]:e.other[2]).replace(`{{count}}`,String(t))}}var js={lessThanXSeconds:W({one:[`mazāk par {{time}}`,`sekundi`,`sekundi`],other:[`mazāk nekā {{count}} {{time}}`,`sekunde`,`sekundes`,`sekundes`,`sekundēm`]}),xSeconds:W({one:[`1 {{time}}`,`sekunde`,`sekundes`],other:[`{{count}} {{time}}`,`sekunde`,`sekundes`,`sekundes`,`sekundēm`]}),halfAMinute:function(e,t){return t!=null&&t.addSuffix?`pusminūtes`:`pusminūte`},lessThanXMinutes:W({one:[`mazāk par {{time}}`,`minūti`,`minūti`],other:[`mazāk nekā {{count}} {{time}}`,`minūte`,`minūtes`,`minūtes`,`minūtēm`]}),xMinutes:W({one:[`1 {{time}}`,`minūte`,`minūtes`],other:[`{{count}} {{time}}`,`minūte`,`minūtes`,`minūtes`,`minūtēm`]}),aboutXHours:W({one:[`apmēram 1 {{time}}`,`stunda`,`stundas`],other:[`apmēram {{count}} {{time}}`,`stunda`,`stundas`,`stundas`,`stundām`]}),xHours:W({one:[`1 {{time}}`,`stunda`,`stundas`],other:[`{{count}} {{time}}`,`stunda`,`stundas`,`stundas`,`stundām`]}),xDays:W({one:[`1 {{time}}`,`diena`,`dienas`],other:[`{{count}} {{time}}`,`diena`,`dienas`,`dienas`,`dienām`]}),aboutXWeeks:W({one:[`apmēram 1 {{time}}`,`nedēļa`,`nedēļas`],other:[`apmēram {{count}} {{time}}`,`nedēļa`,`nedēļu`,`nedēļas`,`nedēļām`]}),xWeeks:W({one:[`1 {{time}}`,`nedēļa`,`nedēļas`],other:[`{{count}} {{time}}`,`nedēļa`,`nedēļu`,`nedēļas`,`nedēļām`]}),aboutXMonths:W({one:[`apmēram 1 {{time}}`,`mēnesis`,`mēneša`],other:[`apmēram {{count}} {{time}}`,`mēnesis`,`mēneši`,`mēneša`,`mēnešiem`]}),xMonths:W({one:[`1 {{time}}`,`mēnesis`,`mēneša`],other:[`{{count}} {{time}}`,`mēnesis`,`mēneši`,`mēneša`,`mēnešiem`]}),aboutXYears:W({one:[`apmēram 1 {{time}}`,`gads`,`gada`],other:[`apmēram {{count}} {{time}}`,`gads`,`gadi`,`gada`,`gadiem`]}),xYears:W({one:[`1 {{time}}`,`gads`,`gada`],other:[`{{count}} {{time}}`,`gads`,`gadi`,`gada`,`gadiem`]}),overXYears:W({one:[`ilgāk par 1 {{time}}`,`gadu`,`gadu`],other:[`vairāk nekā {{count}} {{time}}`,`gads`,`gadi`,`gada`,`gadiem`]}),almostXYears:W({one:[`gandrīz 1 {{time}}`,`gads`,`gada`],other:[`vairāk nekā {{count}} {{time}}`,`gads`,`gadi`,`gada`,`gadiem`]})},Ms=function(e,t,n){var r=js[e](t,n);return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`pēc `+r:`pirms `+r:r},Ns={date:d({formats:{full:`EEEE, y. 'gada' d. MMMM`,long:`y. 'gada' d. MMMM`,medium:`dd.MM.y.`,short:`dd.MM.y.`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'plkst.' {{time}}`,long:`{{date}} 'plkst.' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ps=[`svētdienā`,`pirmdienā`,`otrdienā`,`trešdienā`,`ceturtdienā`,`piektdienā`,`sestdienā`],Fs={lastWeek:function(e,t,n){return y(e,t,n)?`eeee 'plkst.' p`:`'Pagājušā `+Ps[e.getDay()]+` plkst.' p`},yesterday:`'Vakar plkst.' p`,today:`'Šodien plkst.' p`,tomorrow:`'Rīt plkst.' p`,nextWeek:function(e,t,n){return y(e,t,n)?`eeee 'plkst.' p`:`'Nākamajā `+Ps[e.getDay()]+` plkst.' p`},other:`P`},Is={code:`lv`,formatDistance:Ms,formatLong:Ns,formatRelative:function(e,t,n,r){var i=Fs[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`p.m.ē`,`m.ē`],abbreviated:[`p. m. ē.`,`m. ē.`],wide:[`pirms mūsu ēras`,`mūsu ērā`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. cet.`,`2. cet.`,`3. cet.`,`4. cet.`],wide:[`pirmais ceturksnis`,`otrais ceturksnis`,`trešais ceturksnis`,`ceturtais ceturksnis`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. cet.`,`2. cet.`,`3. cet.`,`4. cet.`],wide:[`pirmajā ceturksnī`,`otrajā ceturksnī`,`trešajā ceturksnī`,`ceturtajā ceturksnī`]},defaultFormattingWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`febr.`,`marts`,`apr.`,`maijs`,`jūn.`,`jūl.`,`aug.`,`sept.`,`okt.`,`nov.`,`dec.`],wide:[`janvāris`,`februāris`,`marts`,`aprīlis`,`maijs`,`jūnijs`,`jūlijs`,`augusts`,`septembris`,`oktobris`,`novembris`,`decembris`]},defaultWidth:`wide`,formattingValues:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`febr.`,`martā`,`apr.`,`maijs`,`jūn.`,`jūl.`,`aug.`,`sept.`,`okt.`,`nov.`,`dec.`],wide:[`janvārī`,`februārī`,`martā`,`aprīlī`,`maijā`,`jūnijā`,`jūlijā`,`augustā`,`septembrī`,`oktobrī`,`novembrī`,`decembrī`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`S`,`P`,`O`,`T`,`C`,`P`,`S`],short:[`Sv`,`P`,`O`,`T`,`C`,`Pk`,`S`],abbreviated:[`svētd.`,`pirmd.`,`otrd.`,`trešd.`,`ceturtd.`,`piektd.`,`sestd.`],wide:[`svētdiena`,`pirmdiena`,`otrdiena`,`trešdiena`,`ceturtdiena`,`piektdiena`,`sestdiena`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`P`,`O`,`T`,`C`,`P`,`S`],short:[`Sv`,`P`,`O`,`T`,`C`,`Pk`,`S`],abbreviated:[`svētd.`,`pirmd.`,`otrd.`,`trešd.`,`ceturtd.`,`piektd.`,`sestd.`],wide:[`svētdienā`,`pirmdienā`,`otrdienā`,`trešdienā`,`ceturtdienā`,`piektdienā`,`sestdienā`]},defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`pusn.`,noon:`pusd.`,morning:`rīts`,afternoon:`diena`,evening:`vakars`,night:`nakts`},abbreviated:{am:`am`,pm:`pm`,midnight:`pusn.`,noon:`pusd.`,morning:`rīts`,afternoon:`pēcpusd.`,evening:`vakars`,night:`nakts`},wide:{am:`am`,pm:`pm`,midnight:`pusnakts`,noon:`pusdienlaiks`,morning:`rīts`,afternoon:`pēcpusdiena`,evening:`vakars`,night:`nakts`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`pusn.`,noon:`pusd.`,morning:`rītā`,afternoon:`dienā`,evening:`vakarā`,night:`naktī`},abbreviated:{am:`am`,pm:`pm`,midnight:`pusn.`,noon:`pusd.`,morning:`rītā`,afternoon:`pēcpusd.`,evening:`vakarā`,night:`naktī`},wide:{am:`am`,pm:`pm`,midnight:`pusnaktī`,noon:`pusdienlaikā`,morning:`rītā`,afternoon:`pēcpusdienā`,evening:`vakarā`,night:`naktī`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:`wide`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ls={lessThanXSeconds:{one:`помалку од секунда`,other:`помалку од {{count}} секунди`},xSeconds:{one:`1 секунда`,other:`{{count}} секунди`},halfAMinute:`половина минута`,lessThanXMinutes:{one:`помалку од минута`,other:`помалку од {{count}} минути`},xMinutes:{one:`1 минута`,other:`{{count}} минути`},aboutXHours:{one:`околу 1 час`,other:`околу {{count}} часа`},xHours:{one:`1 час`,other:`{{count}} часа`},xDays:{one:`1 ден`,other:`{{count}} дена`},aboutXWeeks:{one:`околу 1 недела`,other:`околу {{count}} месеци`},xWeeks:{one:`1 недела`,other:`{{count}} недели`},aboutXMonths:{one:`околу 1 месец`,other:`околу {{count}} недели`},xMonths:{one:`1 месец`,other:`{{count}} месеци`},aboutXYears:{one:`околу 1 година`,other:`околу {{count}} години`},xYears:{one:`1 година`,other:`{{count}} години`},overXYears:{one:`повеќе од 1 година`,other:`повеќе од {{count}} години`},almostXYears:{one:`безмалку 1 година`,other:`безмалку {{count}} години`}},Rs=function(e,t,n){var r,i=Ls[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`за `+r:`пред `+r:r},zs={date:d({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},G=[`недела`,`понеделник`,`вторник`,`среда`,`четврток`,`петок`,`сабота`];function Bs(e){var t=G[e];switch(e){case 0:case 3:case 6:return`'минатата `+t+` во' p`;case 1:case 2:case 4:case 5:return`'минатиот `+t+` во' p`}}function Vs(e){var t=G[e];switch(e){case 0:case 3:case 6:return`'ова `+t+` вo' p`;case 1:case 2:case 4:case 5:return`'овој `+t+` вo' p`}}function Hs(e){var t=G[e];switch(e){case 0:case 3:case 6:return`'следната `+t+` вo' p`;case 1:case 2:case 4:case 5:return`'следниот `+t+` вo' p`}}var Us={lastWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?Vs(r):Bs(r)},yesterday:`'вчера во' p`,today:`'денес во' p`,tomorrow:`'утре во' p`,nextWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?Vs(r):Hs(r)},other:`P`},Ws={code:`mk`,formatDistance:Rs,formatLong:zs,formatRelative:function(e,t,n,r){var i=Us[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`-ви`;case 2:return n+`-ри`;case 7:case 8:return n+`-ми`}return n+`-ти`},era:f({values:{narrow:[`пр.н.е.`,`н.е.`],abbreviated:[`пред н. е.`,`н. е.`],wide:[`пред нашата ера`,`нашата ера`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ви кв.`,`2-ри кв.`,`3-ти кв.`,`4-ти кв.`],wide:[`1-ви квартал`,`2-ри квартал`,`3-ти квартал`,`4-ти квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{abbreviated:[`јан`,`фев`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`септ`,`окт`,`ноем`,`дек`],wide:[`јануари`,`февруари`,`март`,`април`,`мај`,`јуни`,`јули`,`август`,`септември`,`октомври`,`ноември`,`декември`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Н`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`не`,`по`,`вт`,`ср`,`че`,`пе`,`са`],abbreviated:[`нед`,`пон`,`вто`,`сре`,`чет`,`пет`,`саб`],wide:[`недела`,`понеделник`,`вторник`,`среда`,`четврток`,`петок`,`сабота`]},defaultWidth:`wide`}),dayPeriod:f({values:{wide:{am:`претпладне`,pm:`попладне`,midnight:`полноќ`,noon:`напладне`,morning:`наутро`,afternoon:`попладне`,evening:`навечер`,night:`ноќе`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Gs={lessThanXSeconds:{one:`секунд хүрэхгүй`,other:`{{count}} секунд хүрэхгүй`},xSeconds:{one:`1 секунд`,other:`{{count}} секунд`},halfAMinute:`хагас минут`,lessThanXMinutes:{one:`минут хүрэхгүй`,other:`{{count}} минут хүрэхгүй`},xMinutes:{one:`1 минут`,other:`{{count}} минут`},aboutXHours:{one:`ойролцоогоор 1 цаг`,other:`ойролцоогоор {{count}} цаг`},xHours:{one:`1 цаг`,other:`{{count}} цаг`},xDays:{one:`1 өдөр`,other:`{{count}} өдөр`},aboutXWeeks:{one:`ойролцоогоор 1 долоо хоног`,other:`ойролцоогоор {{count}} долоо хоног`},xWeeks:{one:`1 долоо хоног`,other:`{{count}} долоо хоног`},aboutXMonths:{one:`ойролцоогоор 1 сар`,other:`ойролцоогоор {{count}} сар`},xMonths:{one:`1 сар`,other:`{{count}} сар`},aboutXYears:{one:`ойролцоогоор 1 жил`,other:`ойролцоогоор {{count}} жил`},xYears:{one:`1 жил`,other:`{{count}} жил`},overXYears:{one:`1 жил гаран`,other:`{{count}} жил гаран`},almostXYears:{one:`бараг 1 жил`,other:`бараг {{count}} жил`}},Ks=function(e,t,n){var r,i=Gs[e];if(r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix){var a=r.split(` `),o=a.pop();switch(r=a.join(` `),o){case`секунд`:r+=` секундийн`;break;case`минут`:r+=` минутын`;break;case`цаг`:r+=` цагийн`;break;case`өдөр`:r+=` өдрийн`;break;case`сар`:r+=` сарын`;break;case`жил`:r+=` жилийн`;break;case`хоног`:r+=` хоногийн`;break;case`гаран`:r+=` гараны`;break;case`хүрэхгүй`:r+=` хүрэхгүй хугацааны`;break;default:r+=o+`-н`}return n.comparison&&n.comparison>0?r+` дараа`:r+` өмнө`}return r},qs={date:d({formats:{full:`y 'оны' MMMM'ын' d, EEEE 'гараг'`,long:`y 'оны' MMMM'ын' d`,medium:`y 'оны' MMM'ын' d`,short:`y.MM.dd`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Js={lastWeek:`'өнгөрсөн' eeee 'гарагийн' p 'цагт'`,yesterday:`'өчигдөр' p 'цагт'`,today:`'өнөөдөр' p 'цагт'`,tomorrow:`'маргааш' p 'цагт'`,nextWeek:`'ирэх' eeee 'гарагийн' p 'цагт'`,other:`P`},Ys={code:`mn`,formatDistance:Ks,formatLong:qs,formatRelative:function(e,t,n,r){return Js[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`НТӨ`,`НТ`],abbreviated:[`НТӨ`,`НТ`],wide:[`нийтийн тооллын өмнөх`,`нийтийн тооллын`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`I`,`II`,`III`,`IV`],abbreviated:[`I улирал`,`II улирал`,`III улирал`,`IV улирал`],wide:[`1-р улирал`,`2-р улирал`,`3-р улирал`,`4-р улирал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`Нэгдүгээр сар`,`Хоёрдугаар сар`,`Гуравдугаар сар`,`Дөрөвдүгээр сар`,`Тавдугаар сар`,`Зургаадугаар сар`,`Долоодугаар сар`,`Наймдугаар сар`,`Есдүгээр сар`,`Аравдугаар сар`,`Арваннэгдүгээр сар`,`Арван хоёрдугаар сар`]},defaultWidth:`wide`,formattingValues:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`нэгдүгээр сар`,`хоёрдугаар сар`,`гуравдугаар сар`,`дөрөвдүгээр сар`,`тавдугаар сар`,`зургаадугаар сар`,`долоодугаар сар`,`наймдугаар сар`,`есдүгээр сар`,`аравдугаар сар`,`арваннэгдүгээр сар`,`арван хоёрдугаар сар`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`Ням`,`Даваа`,`Мягмар`,`Лхагва`,`Пүрэв`,`Баасан`,`Бямба`]},defaultWidth:`wide`,formattingValues:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`ням`,`даваа`,`мягмар`,`лхагва`,`пүрэв`,`баасан`,`бямба`]},defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`},abbreviated:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`},wide:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Xs={lessThanXSeconds:{one:`kurang dari 1 saat`,other:`kurang dari {{count}} saat`},xSeconds:{one:`1 saat`,other:`{{count}} saat`},halfAMinute:`setengah minit`,lessThanXMinutes:{one:`kurang dari 1 minit`,other:`kurang dari {{count}} minit`},xMinutes:{one:`1 minit`,other:`{{count}} minit`},aboutXHours:{one:`sekitar 1 jam`,other:`sekitar {{count}} jam`},xHours:{one:`1 jam`,other:`{{count}} jam`},xDays:{one:`1 hari`,other:`{{count}} hari`},aboutXWeeks:{one:`sekitar 1 minggu`,other:`sekitar {{count}} minggu`},xWeeks:{one:`1 minggu`,other:`{{count}} minggu`},aboutXMonths:{one:`sekitar 1 bulan`,other:`sekitar {{count}} bulan`},xMonths:{one:`1 bulan`,other:`{{count}} bulan`},aboutXYears:{one:`sekitar 1 tahun`,other:`sekitar {{count}} tahun`},xYears:{one:`1 tahun`,other:`{{count}} tahun`},overXYears:{one:`lebih dari 1 tahun`,other:`lebih dari {{count}} tahun`},almostXYears:{one:`hampir 1 tahun`,other:`hampir {{count}} tahun`}},Zs=function(e,t,n){var r,i=Xs[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`dalam masa `+r:r+` yang lalu`:r},Qs={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`d/M/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},$s={lastWeek:`eeee 'lepas pada jam' p`,yesterday:`'Semalam pada jam' p`,today:`'Hari ini pada jam' p`,tomorrow:`'Esok pada jam' p`,nextWeek:`eeee 'pada jam' p`,other:`P`},ec={code:`ms`,formatDistance:Zs,formatLong:Qs,formatRelative:function(e,t,n,r){return $s[e]},localize:{ordinalNumber:function(e,t){return`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masihi`,`Masihi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`S1`,`S2`,`S3`,`S4`],wide:[`Suku pertama`,`Suku kedua`,`Suku ketiga`,`Suku keempat`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`O`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mac`,`Apr`,`Mei`,`Jun`,`Jul`,`Ogo`,`Sep`,`Okt`,`Nov`,`Dis`],wide:[`Januari`,`Februari`,`Mac`,`April`,`Mei`,`Jun`,`Julai`,`Ogos`,`September`,`Oktober`,`November`,`Disember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`A`,`I`,`S`,`R`,`K`,`J`,`S`],short:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],abbreviated:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],wide:[`Ahad`,`Isnin`,`Selasa`,`Rabu`,`Khamis`,`Jumaat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`tgh malam`,noon:`tgh hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},tc={lessThanXSeconds:{one:`inqas minn sekonda`,other:`inqas minn {{count}} sekondi`},xSeconds:{one:`sekonda`,other:`{{count}} sekondi`},halfAMinute:`nofs minuta`,lessThanXMinutes:{one:`inqas minn minuta`,other:`inqas minn {{count}} minuti`},xMinutes:{one:`minuta`,other:`{{count}} minuti`},aboutXHours:{one:`madwar siegħa`,other:`madwar {{count}} siegħat`},xHours:{one:`siegħa`,other:`{{count}} siegħat`},xDays:{one:`ġurnata`,other:`{{count}} ġranet`},aboutXWeeks:{one:`madwar ġimgħa`,other:`madwar {{count}} ġimgħat`},xWeeks:{one:`ġimgħa`,other:`{{count}} ġimgħat`},aboutXMonths:{one:`madwar xahar`,other:`madwar {{count}} xhur`},xMonths:{one:`xahar`,other:`{{count}} xhur`},aboutXYears:{one:`madwar sena`,two:`madwar sentejn`,other:`madwar {{count}} snin`},xYears:{one:`sena`,two:`sentejn`,other:`{{count}} snin`},overXYears:{one:`aktar minn sena`,two:`aktar minn sentejn`,other:`aktar minn {{count}} snin`},almostXYears:{one:`kważi sena`,two:`kważi sentejn`,other:`kważi {{count}} snin`}},nc=function(e,t,n){var r,i=tc[e];return r=typeof i==`string`?i:t===1?i.one:t===2&&i.two?i.two:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`f'`+r:r+` ilu`:r},rc={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ic={lastWeek:`eeee 'li għadda' 'fil-'p`,yesterday:`'Il-bieraħ fil-'p`,today:`'Illum fil-'p`,tomorrow:`'Għada fil-'p`,nextWeek:`eeee 'fil-'p`,other:`P`},ac={code:`mt`,formatDistance:nc,formatLong:rc,formatRelative:function(e,t,n,r){return ic[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`Q`,`W`],abbreviated:[`QK`,`WK`],wide:[`qabel Kristu`,`wara Kristu`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kwart`,`2. kwart`,`3. kwart`,`4. kwart`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`Ġ`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Fra`,`Mar`,`Apr`,`Mej`,`Ġun`,`Lul`,`Aww`,`Set`,`Ott`,`Nov`,`Diċ`],wide:[`Jannar`,`Frar`,`Marzu`,`April`,`Mejju`,`Ġunju`,`Lulju`,`Awwissu`,`Settembru`,`Ottubru`,`Novembru`,`Diċembru`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Ħ`,`T`,`T`,`E`,`Ħ`,`Ġ`,`S`],short:[`Ħa`,`Tn`,`Tl`,`Er`,`Ħa`,`Ġi`,`Si`],abbreviated:[`Ħad`,`Tne`,`Tli`,`Erb`,`Ħam`,`Ġim`,`Sib`],wide:[`Il-Ħadd`,`It-Tnejn`,`It-Tlieta`,`L-Erbgħa`,`Il-Ħamis`,`Il-Ġimgħa`,`Is-Sibt`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},oc={lessThanXSeconds:{one:`mindre enn ett sekund`,other:`mindre enn {{count}} sekunder`},xSeconds:{one:`ett sekund`,other:`{{count}} sekunder`},halfAMinute:`et halvt minutt`,lessThanXMinutes:{one:`mindre enn ett minutt`,other:`mindre enn {{count}} minutter`},xMinutes:{one:`ett minutt`,other:`{{count}} minutter`},aboutXHours:{one:`omtrent en time`,other:`omtrent {{count}} timer`},xHours:{one:`en time`,other:`{{count}} timer`},xDays:{one:`en dag`,other:`{{count}} dager`},aboutXWeeks:{one:`omtrent en uke`,other:`omtrent {{count}} uker`},xWeeks:{one:`en uke`,other:`{{count}} uker`},aboutXMonths:{one:`omtrent en måned`,other:`omtrent {{count}} måneder`},xMonths:{one:`en måned`,other:`{{count}} måneder`},aboutXYears:{one:`omtrent ett år`,other:`omtrent {{count}} år`},xYears:{one:`ett år`,other:`{{count}} år`},overXYears:{one:`over ett år`,other:`over {{count}} år`},almostXYears:{one:`nesten ett år`,other:`nesten {{count}} år`}},sc=function(e,t,n){var r,i=oc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`om `+r:r+` siden`:r},cc={date:d({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},lc={lastWeek:`'forrige' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgen kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},uc={code:`nb`,formatDistance:sc,formatLong:cc,formatRelative:function(e,t,n,r){return lc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],abbreviated:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],wide:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgenen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natten`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},dc={lessThanXSeconds:{one:`minder dan een seconde`,other:`minder dan {{count}} seconden`},xSeconds:{one:`1 seconde`,other:`{{count}} seconden`},halfAMinute:`een halve minuut`,lessThanXMinutes:{one:`minder dan een minuut`,other:`minder dan {{count}} minuten`},xMinutes:{one:`een minuut`,other:`{{count}} minuten`},aboutXHours:{one:`ongeveer 1 uur`,other:`ongeveer {{count}} uur`},xHours:{one:`1 uur`,other:`{{count}} uur`},xDays:{one:`1 dag`,other:`{{count}} dagen`},aboutXWeeks:{one:`ongeveer 1 week`,other:`ongeveer {{count}} weken`},xWeeks:{one:`1 week`,other:`{{count}} weken`},aboutXMonths:{one:`ongeveer 1 maand`,other:`ongeveer {{count}} maanden`},xMonths:{one:`1 maand`,other:`{{count}} maanden`},aboutXYears:{one:`ongeveer 1 jaar`,other:`ongeveer {{count}} jaar`},xYears:{one:`1 jaar`,other:`{{count}} jaar`},overXYears:{one:`meer dan 1 jaar`,other:`meer dan {{count}} jaar`},almostXYears:{one:`bijna 1 jaar`,other:`bijna {{count}} jaar`}},fc=function(e,t,n){var r,i=dc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`over `+r:r+` geleden`:r},pc={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd-MM-y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},mc={lastWeek:`'afgelopen' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen om' p`,nextWeek:`eeee 'om' p`,other:`P`},hc={code:`nl`,formatDistance:fc,formatLong:pc,formatRelative:function(e,t,n,r){return mc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^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]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},gc={lessThanXSeconds:{one:`minder dan een seconde`,other:`minder dan {{count}} seconden`},xSeconds:{one:`1 seconde`,other:`{{count}} seconden`},halfAMinute:`een halve minuut`,lessThanXMinutes:{one:`minder dan een minuut`,other:`minder dan {{count}} minuten`},xMinutes:{one:`een minuut`,other:`{{count}} minuten`},aboutXHours:{one:`ongeveer 1 uur`,other:`ongeveer {{count}} uur`},xHours:{one:`1 uur`,other:`{{count}} uur`},xDays:{one:`1 dag`,other:`{{count}} dagen`},aboutXWeeks:{one:`ongeveer 1 week`,other:`ongeveer {{count}} weken`},xWeeks:{one:`1 week`,other:`{{count}} weken`},aboutXMonths:{one:`ongeveer 1 maand`,other:`ongeveer {{count}} maanden`},xMonths:{one:`1 maand`,other:`{{count}} maanden`},aboutXYears:{one:`ongeveer 1 jaar`,other:`ongeveer {{count}} jaar`},xYears:{one:`1 jaar`,other:`{{count}} jaar`},overXYears:{one:`meer dan 1 jaar`,other:`meer dan {{count}} jaar`},almostXYears:{one:`bijna 1 jaar`,other:`bijna {{count}} jaar`}},_c=function(e,t,n){var r,i=gc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`over `+r:r+` geleden`:r},vc={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},yc={lastWeek:`'vorige' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen om' p`,nextWeek:`eeee 'om' p`,other:`P`},bc={code:`nl-BE`,formatDistance:_c,formatLong:vc,formatRelative:function(e,t,n,r){return yc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^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]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},xc={lessThanXSeconds:{one:`mindre enn eitt sekund`,other:`mindre enn {{count}} sekund`},xSeconds:{one:`eitt sekund`,other:`{{count}} sekund`},halfAMinute:`eit halvt minutt`,lessThanXMinutes:{one:`mindre enn eitt minutt`,other:`mindre enn {{count}} minutt`},xMinutes:{one:`eitt minutt`,other:`{{count}} minutt`},aboutXHours:{one:`omtrent ein time`,other:`omtrent {{count}} timar`},xHours:{one:`ein time`,other:`{{count}} timar`},xDays:{one:`ein dag`,other:`{{count}} dagar`},aboutXWeeks:{one:`omtrent ei veke`,other:`omtrent {{count}} veker`},xWeeks:{one:`ei veke`,other:`{{count}} veker`},aboutXMonths:{one:`omtrent ein månad`,other:`omtrent {{count}} månader`},xMonths:{one:`ein månad`,other:`{{count}} månader`},aboutXYears:{one:`omtrent eitt år`,other:`omtrent {{count}} år`},xYears:{one:`eitt år`,other:`{{count}} år`},overXYears:{one:`over eitt år`,other:`over {{count}} år`},almostXYears:{one:`nesten eitt år`,other:`nesten {{count}} år`}},Sc=[`null`,`ein`,`to`,`tre`,`fire`,`fem`,`seks`,`sju`,`åtte`,`ni`,`ti`,`elleve`,`tolv`],Cc=function(e,t,n){var r,i=xc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t<13?Sc[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`om `+r:r+` sidan`:r},wc={date:d({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Tc={lastWeek:`'førre' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},Ec={code:`nn`,formatDistance:Cc,formatLong:wc,formatRelative:function(e,t,n,r){return Tc[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`su`,`må`,`ty`,`on`,`to`,`fr`,`lau`],abbreviated:[`sun`,`mån`,`tys`,`ons`,`tor`,`fre`,`laur`],wide:[`sundag`,`måndag`,`tysdag`,`onsdag`,`torsdag`,`fredag`,`laurdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natta`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Dc={lessThanXSeconds:{one:`mens d’una segonda`,other:`mens de {{count}} segondas`},xSeconds:{one:`1 segonda`,other:`{{count}} segondas`},halfAMinute:`30 segondas`,lessThanXMinutes:{one:`mens d’una minuta`,other:`mens de {{count}} minutas`},xMinutes:{one:`1 minuta`,other:`{{count}} minutas`},aboutXHours:{one:`environ 1 ora`,other:`environ {{count}} oras`},xHours:{one:`1 ora`,other:`{{count}} oras`},xDays:{one:`1 jorn`,other:`{{count}} jorns`},aboutXWeeks:{one:`environ 1 setmana`,other:`environ {{count}} setmanas`},xWeeks:{one:`1 setmana`,other:`{{count}} setmanas`},aboutXMonths:{one:`environ 1 mes`,other:`environ {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`environ 1 an`,other:`environ {{count}} ans`},xYears:{one:`1 an`,other:`{{count}} ans`},overXYears:{one:`mai d’un an`,other:`mai de {{count}} ans`},almostXYears:{one:`gaireben un an`,other:`gaireben {{count}} ans`}},Oc=function(e,t,n){var r,i=Dc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`d’aquí `+r:`fa `+r:r},kc={date:d({formats:{full:`EEEE d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'a' {{time}}`,long:`{{date}} 'a' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ac={lastWeek:`eeee 'passat a' p`,yesterday:`'ièr a' p`,today:`'uèi a' p`,tomorrow:`'deman a' p`,nextWeek:`eeee 'a' p`,other:`P`},jc={code:`oc`,formatDistance:Oc,formatLong:kc,formatRelative:function(e,t,n,r){return Ac[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit,i;switch(n){case 1:i=`èr`;break;case 2:i=`nd`;break;default:i=`en`}return(r===`year`||r===`week`||r===`hour`||r===`minute`||r===`second`)&&(i+=`a`),n+i},era:f({values:{narrow:[`ab. J.C.`,`apr. J.C.`],abbreviated:[`ab. J.C.`,`apr. J.C.`],wide:[`abans Jèsus-Crist`,`après Jèsus-Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1èr trim.`,`2nd trim.`,`3en trim.`,`4en trim.`],wide:[`1èr trimèstre`,`2nd trimèstre`,`3en trimèstre`,`4en trimèstre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`GN`,`FB`,`MÇ`,`AB`,`MA`,`JN`,`JL`,`AG`,`ST`,`OC`,`NV`,`DC`],abbreviated:[`gen.`,`febr.`,`març`,`abr.`,`mai`,`junh`,`jul.`,`ag.`,`set.`,`oct.`,`nov.`,`dec.`],wide:[`genièr`,`febrièr`,`març`,`abril`,`mai`,`junh`,`julhet`,`agost`,`setembre`,`octòbre`,`novembre`,`decembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],short:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],abbreviated:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],wide:[`dimenge`,`diluns`,`dimars`,`dimècres`,`dijòus`,`divendres`,`dissabte`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Mc={lessThanXSeconds:{one:{regular:`mniej niż sekunda`,past:`mniej niż sekundę`,future:`mniej niż sekundę`},twoFour:`mniej niż {{count}} sekundy`,other:`mniej niż {{count}} sekund`},xSeconds:{one:{regular:`sekunda`,past:`sekundę`,future:`sekundę`},twoFour:`{{count}} sekundy`,other:`{{count}} sekund`},halfAMinute:{one:`pół minuty`,twoFour:`pół minuty`,other:`pół minuty`},lessThanXMinutes:{one:{regular:`mniej niż minuta`,past:`mniej niż minutę`,future:`mniej niż minutę`},twoFour:`mniej niż {{count}} minuty`,other:`mniej niż {{count}} minut`},xMinutes:{one:{regular:`minuta`,past:`minutę`,future:`minutę`},twoFour:`{{count}} minuty`,other:`{{count}} minut`},aboutXHours:{one:{regular:`około godziny`,past:`około godziny`,future:`około godzinę`},twoFour:`około {{count}} godziny`,other:`około {{count}} godzin`},xHours:{one:{regular:`godzina`,past:`godzinę`,future:`godzinę`},twoFour:`{{count}} godziny`,other:`{{count}} godzin`},xDays:{one:{regular:`dzień`,past:`dzień`,future:`1 dzień`},twoFour:`{{count}} dni`,other:`{{count}} dni`},aboutXWeeks:{one:`około tygodnia`,twoFour:`około {{count}} tygodni`,other:`około {{count}} tygodni`},xWeeks:{one:`tydzień`,twoFour:`{{count}} tygodnie`,other:`{{count}} tygodni`},aboutXMonths:{one:`około miesiąc`,twoFour:`około {{count}} miesiące`,other:`około {{count}} miesięcy`},xMonths:{one:`miesiąc`,twoFour:`{{count}} miesiące`,other:`{{count}} miesięcy`},aboutXYears:{one:`około rok`,twoFour:`około {{count}} lata`,other:`około {{count}} lat`},xYears:{one:`rok`,twoFour:`{{count}} lata`,other:`{{count}} lat`},overXYears:{one:`ponad rok`,twoFour:`ponad {{count}} lata`,other:`ponad {{count}} lat`},almostXYears:{one:`prawie rok`,twoFour:`prawie {{count}} lata`,other:`prawie {{count}} lat`}};function Nc(e,t){if(t===1)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function K(e,t,n){var r=Nc(e,t);return(typeof r==`string`?r:r[n]).replace(`{{count}}`,String(t))}var Pc=function(e,t,n){var r=Mc[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+K(r,t,`future`):K(r,t,`past`)+` temu`:K(r,t,`regular`)},Fc={date:d({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ic={masculine:`ostatni`,feminine:`ostatnia`},Lc={masculine:`ten`,feminine:`ta`},Rc={masculine:`następny`,feminine:`następna`},zc={0:`feminine`,1:`masculine`,2:`masculine`,3:`feminine`,4:`masculine`,5:`masculine`,6:`feminine`};function Bc(e,t,n,r){var i;if(y(t,n,r))i=Lc;else if(e===`lastWeek`)i=Ic;else if(e===`nextWeek`)i=Rc;else throw Error(`Cannot determine adjectives for token ${e}`);var a=zc[t.getDay()];return`'${i[a]}' eeee 'o' p`}var Vc={lastWeek:Bc,yesterday:`'wczoraj o' p`,today:`'dzisiaj o' p`,tomorrow:`'jutro o' p`,nextWeek:Bc,other:`P`},Hc={code:`pl`,formatDistance:Pc,formatLong:Fc,formatRelative:function(e,t,n,r){var i=Vc[e];return typeof i==`function`?i(e,t,n,r):i},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`p.n.e.`,`n.e.`],abbreviated:[`p.n.e.`,`n.e.`],wide:[`przed naszą erą`,`naszej ery`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I kw.`,`II kw.`,`III kw.`,`IV kw.`],wide:[`I kwartał`,`II kwartał`,`III kwartał`,`IV kwartał`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`S`,`L`,`M`,`K`,`M`,`C`,`L`,`S`,`W`,`P`,`L`,`G`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`styczeń`,`luty`,`marzec`,`kwiecień`,`maj`,`czerwiec`,`lipiec`,`sierpień`,`wrzesień`,`październik`,`listopad`,`grudzień`]},defaultWidth:`wide`,formattingValues:{narrow:[`s`,`l`,`m`,`k`,`m`,`c`,`l`,`s`,`w`,`p`,`l`,`g`],abbreviated:[`sty`,`lut`,`mar`,`kwi`,`maj`,`cze`,`lip`,`sie`,`wrz`,`paź`,`lis`,`gru`],wide:[`stycznia`,`lutego`,`marca`,`kwietnia`,`maja`,`czerwca`,`lipca`,`sierpnia`,`września`,`października`,`listopada`,`grudnia`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`W`,`Ś`,`C`,`P`,`S`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultWidth:`wide`,formattingValues:{narrow:[`n`,`p`,`w`,`ś`,`c`,`p`,`s`],short:[`nie`,`pon`,`wto`,`śro`,`czw`,`pią`,`sob`],abbreviated:[`niedz.`,`pon.`,`wt.`,`śr.`,`czw.`,`pt.`,`sob.`],wide:[`niedziela`,`poniedziałek`,`wtorek`,`środa`,`czwartek`,`piątek`,`sobota`]},defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`półn.`,noon:`poł`,morning:`rano`,afternoon:`popoł.`,evening:`wiecz.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`północ`,noon:`południe`,morning:`rano`,afternoon:`popołudnie`,evening:`wieczór`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`o półn.`,noon:`w poł.`,morning:`rano`,afternoon:`po poł.`,evening:`wiecz.`,night:`w nocy`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`},wide:{am:`AM`,pm:`PM`,midnight:`o północy`,noon:`w południe`,morning:`rano`,afternoon:`po południu`,evening:`wieczorem`,night:`w nocy`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Uc={lessThanXSeconds:{one:`menos de um segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`meio minuto`,lessThanXMinutes:{one:`menos de um minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`aproximadamente 1 hora`,other:`aproximadamente {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dia`,other:`{{count}} dias`},aboutXWeeks:{one:`aproximadamente 1 semana`,other:`aproximadamente {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`aproximadamente 1 mês`,other:`aproximadamente {{count}} meses`},xMonths:{one:`1 mês`,other:`{{count}} meses`},aboutXYears:{one:`aproximadamente 1 ano`,other:`aproximadamente {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`mais de 1 ano`,other:`mais de {{count}} anos`},almostXYears:{one:`quase 1 ano`,other:`quase {{count}} anos`}},Wc=function(e,t,n){var r,i=Uc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`daqui a `+r:`há `+r:r},Gc={date:d({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d 'de' MMM 'de' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Kc={lastWeek:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},qc={code:`pt`,formatDistance:Wc,formatLong:Gc,formatRelative:function(e,t,n,r){var i=Kc[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}},Jc={lessThanXSeconds:{one:`menos de um segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`meio minuto`,lessThanXMinutes:{one:`menos de um minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`cerca de 1 hora`,other:`cerca de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dia`,other:`{{count}} dias`},aboutXWeeks:{one:`cerca de 1 semana`,other:`cerca de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`cerca de 1 mês`,other:`cerca de {{count}} meses`},xMonths:{one:`1 mês`,other:`{{count}} meses`},aboutXYears:{one:`cerca de 1 ano`,other:`cerca de {{count}} anos`},xYears:{one:`1 ano`,other:`{{count}} anos`},overXYears:{one:`mais de 1 ano`,other:`mais de {{count}} anos`},almostXYears:{one:`quase 1 ano`,other:`quase {{count}} anos`}},Yc=function(e,t,n){var r,i=Jc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`em `+r:`há `+r:r},Xc={date:d({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Zc={lastWeek:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},Qc={code:`pt-BR`,formatDistance:Yc,formatLong:Xc,formatRelative:function(e,t,n,r){var i=Zc[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){var n=Number(e);return t?.unit===`week`?n+`ª`:n+`º`},era:f({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`depois de cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`S`,`T`,`Q`,`Q`,`S`,`S`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],abbreviated:[`domingo`,`segunda`,`terça`,`quarta`,`quinta`,`sexta`,`sábado`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},$c={lessThanXSeconds:{one:`mai puțin de o secundă`,other:`mai puțin de {{count}} secunde`},xSeconds:{one:`1 secundă`,other:`{{count}} secunde`},halfAMinute:`jumătate de minut`,lessThanXMinutes:{one:`mai puțin de un minut`,other:`mai puțin de {{count}} minute`},xMinutes:{one:`1 minut`,other:`{{count}} minute`},aboutXHours:{one:`circa 1 oră`,other:`circa {{count}} ore`},xHours:{one:`1 oră`,other:`{{count}} ore`},xDays:{one:`1 zi`,other:`{{count}} zile`},aboutXWeeks:{one:`circa o săptămână`,other:`circa {{count}} săptămâni`},xWeeks:{one:`1 săptămână`,other:`{{count}} săptămâni`},aboutXMonths:{one:`circa 1 lună`,other:`circa {{count}} luni`},xMonths:{one:`1 lună`,other:`{{count}} luni`},aboutXYears:{one:`circa 1 an`,other:`circa {{count}} ani`},xYears:{one:`1 an`,other:`{{count}} ani`},overXYears:{one:`peste 1 an`,other:`peste {{count}} ani`},almostXYears:{one:`aproape 1 an`,other:`aproape {{count}} ani`}},el=function(e,t,n){var r,i=$c[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`în `+r:r+` în urmă`:r},tl={date:d({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'la' {{time}}`,long:`{{date}} 'la' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},nl={lastWeek:`eeee 'trecută la' p`,yesterday:`'ieri la' p`,today:`'astăzi la' p`,tomorrow:`'mâine la' p`,nextWeek:`eeee 'viitoare la' p`,other:`P`},rl={code:`ro`,formatDistance:el,formatLong:tl,formatRelative:function(e,t,n,r){return nl[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`Î`,`D`],abbreviated:[`Î.d.C.`,`D.C.`],wide:[`Înainte de Cristos`,`După Cristos`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`primul trimestru`,`al doilea trimestru`,`al treilea trimestru`,`al patrulea trimestru`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`F`,`M`,`A`,`M`,`I`,`I`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`ian`,`feb`,`mar`,`apr`,`mai`,`iun`,`iul`,`aug`,`sep`,`oct`,`noi`,`dec`],wide:[`ianuarie`,`februarie`,`martie`,`aprilie`,`mai`,`iunie`,`iulie`,`august`,`septembrie`,`octombrie`,`noiembrie`,`decembrie`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`du`,`lu`,`ma`,`mi`,`jo`,`vi`,`sâ`],abbreviated:[`dum`,`lun`,`mar`,`mie`,`joi`,`vin`,`sâm`],wide:[`duminică`,`luni`,`marți`,`miercuri`,`joi`,`vineri`,`sâmbătă`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`ami`,morning:`dim`,afternoon:`da`,evening:`s`,night:`n`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};function q(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function J(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?q(e.future,t):`через `+q(e.regular,t):e.past?q(e.past,t):q(e.regular,t)+` назад`:q(e.regular,t)}}var il={lessThanXSeconds:J({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:J({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду назад`,singularGenitive:`{{count}} секунды назад`,pluralGenitive:`{{count}} секунд назад`},future:{singularNominative:`через {{count}} секунду`,singularGenitive:`через {{count}} секунды`,pluralGenitive:`через {{count}} секунд`}}),halfAMinute:function(e,t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`},lessThanXMinutes:J({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:J({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:J({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:J({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:J({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:J({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:J({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:J({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:J({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:J({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:J({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:J({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:J({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},al=function(e,t,n){return il[e](t,n)},ol={date:d({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},Y=[`воскресенье`,`понедельник`,`вторник`,`среду`,`четверг`,`пятницу`,`субботу`];function sl(e){var t=Y[e];switch(e){case 0:return`'в прошлое `+t+` в' p`;case 1:case 2:case 4:return`'в прошлый `+t+` в' p`;case 3:case 5:case 6:return`'в прошлую `+t+` в' p`}}function cl(e){var t=Y[e];return e===2?`'во `+t+` в' p`:`'в `+t+` в' p`}function ll(e){var t=Y[e];switch(e){case 0:return`'в следующее `+t+` в' p`;case 1:case 2:case 4:return`'в следующий `+t+` в' p`;case 3:case 5:case 6:return`'в следующую `+t+` в' p`}}var ul={lastWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?cl(r):sl(r)},yesterday:`'вчера в' p`,today:`'сегодня в' p`,tomorrow:`'завтра в' p`,nextWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?cl(r):ll(r)},other:`P`},dl={code:`ru`,formatDistance:al,formatLong:ol,formatRelative:function(e,t,n,r){var i=ul[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n+(r===`date`?`-е`:r===`week`||r===`minute`||r===`second`?`-я`:`-й`)},era:f({values:{narrow:[`до н.э.`,`н.э.`],abbreviated:[`до н. э.`,`н. э.`],wide:[`до нашей эры`,`нашей эры`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-й кв.`,`2-й кв.`,`3-й кв.`,`4-й кв.`],wide:[`1-й квартал`,`2-й квартал`,`3-й квартал`,`4-й квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`]},defaultWidth:`wide`,formattingValues:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`мар.`,`апр.`,`мая`,`июн.`,`июл.`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`января`,`февраля`,`марта`,`апреля`,`мая`,`июня`,`июля`,`августа`,`сентября`,`октября`,`ноября`,`декабря`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`В`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`вск`,`пнд`,`втр`,`срд`,`чтв`,`птн`,`суб`],wide:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утро`,afternoon:`день`,evening:`вечер`,night:`ночь`}},defaultWidth:`any`,formattingValues:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утра`,afternoon:`дня`,evening:`вечера`,night:`ночи`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},fl={lessThanXSeconds:{one:`unnit go ovtta sekundda`,other:`unnit go {{count}} sekundda`},xSeconds:{one:`sekundda`,other:`{{count}} sekundda`},halfAMinute:`bealle minuhta`,lessThanXMinutes:{one:`unnit go bealle minuhta`,other:`unnit go {{count}} minuhta`},xMinutes:{one:`minuhta`,other:`{{count}} minuhta`},aboutXHours:{one:`sullii ovtta diimmu`,other:`sullii {{count}} diimmu`},xHours:{one:`diimmu`,other:`{{count}} diimmu`},xDays:{one:`beaivvi`,other:`{{count}} beaivvi`},aboutXWeeks:{one:`sullii ovtta vahku`,other:`sullii {{count}} vahku`},xWeeks:{one:`vahku`,other:`{{count}} vahku`},aboutXMonths:{one:`sullii ovtta mánu`,other:`sullii {{count}} mánu`},xMonths:{one:`mánu`,other:`{{count}} mánu`},aboutXYears:{one:`sullii ovtta jagi`,other:`sullii {{count}} jagi`},xYears:{one:`jagi`,other:`{{count}} jagi`},overXYears:{one:`guhkit go jagi`,other:`guhkit go {{count}} jagi`},almostXYears:{one:`measta jagi`,other:`measta {{count}} jagi`}},pl=function(e,t,n){var r,i=fl[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`geahčen `+r:r+` áigi`:r},ml={date:d({formats:{full:`EEEE MMMM d. 'b.' y`,long:`MMMM d. 'b.' y`,medium:`MMM d. 'b.' y`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`'dii.' HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'dii.' {{time}}`,long:`{{date}} 'dii.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},hl={lastWeek:`'ovddit' eeee 'dii.' p`,yesterday:`'ikte dii.' p`,today:`'odne dii.' p`,tomorrow:`'ihtin dii.' p`,nextWeek:`EEEE 'dii.' p`,other:`P`},gl={code:`se`,formatDistance:pl,formatLong:ml,formatRelative:function(e,t,n,r){return hl[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`o.Kr.`,`m.Kr.`],abbreviated:[`o.Kr.`,`m.Kr.`],wide:[`ovdal Kristusa`,`maŋŋel Kristusa`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartála`,`2. kvartála`,`3. kvartála`,`4. kvartála`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`O`,`G`,`N`,`C`,`M`,`G`,`S`,`B`,`Č`,`G`,`S`,`J`],abbreviated:[`ođđa`,`guov`,`njuk`,`cuo`,`mies`,`geas`,`suoi`,`borg`,`čakč`,`golg`,`skáb`,`juov`],wide:[`ođđajagemánnu`,`guovvamánnu`,`njukčamánnu`,`cuoŋománnu`,`miessemánnu`,`geassemánnu`,`suoidnemánnu`,`borgemánnu`,`čakčamánnu`,`golggotmánnu`,`skábmamánnu`,`juovlamánnu`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`V`,`M`,`G`,`D`,`B`,`L`],short:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],abbreviated:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],wide:[`sotnabeaivi`,`vuossárga`,`maŋŋebárga`,`gaskavahkku`,`duorastat`,`bearjadat`,`lávvardat`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`gaskaidja`,noon:`gaskabeaivi`,morning:`iđđes`,afternoon:`maŋŋel gaska.`,evening:`eahkes`,night:`ihkku`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeaivvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabea.`,evening:`eahkes`,night:`ihkku`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeavvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabeaivvi`,evening:`eahkes`,night:`ihkku`}},defaultWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^o/i,/^m/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function _l(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function X(e,t,n){return _l(e,t)[n].replace(`{{count}}`,String(t))}function vl(e){return[`lessThan`,`about`,`over`,`almost`].filter(function(t){return!!e.match(RegExp(`^`+t))})[0]}function Z(e){var t=``;return e===`almost`&&(t=`takmer`),e===`about`&&(t=`približne`),t.length>0?t+` `:``}function yl(e){var t=``;return e===`lessThan`&&(t=`menej než`),e===`over`&&(t=`viac než`),t.length>0?t+` `:``}function bl(e){return e.charAt(0).toLowerCase()+e.slice(1)}var xl={xSeconds:{one:{present:`sekunda`,past:`sekundou`,future:`sekundu`},twoFour:{present:`{{count}} sekundy`,past:`{{count}} sekundami`,future:`{{count}} sekundy`},other:{present:`{{count}} sekúnd`,past:`{{count}} sekundami`,future:`{{count}} sekúnd`}},halfAMinute:{other:{present:`pol minúty`,past:`pol minútou`,future:`pol minúty`}},xMinutes:{one:{present:`minúta`,past:`minútou`,future:`minútu`},twoFour:{present:`{{count}} minúty`,past:`{{count}} minútami`,future:`{{count}} minúty`},other:{present:`{{count}} minút`,past:`{{count}} minútami`,future:`{{count}} minút`}},xHours:{one:{present:`hodina`,past:`hodinou`,future:`hodinu`},twoFour:{present:`{{count}} hodiny`,past:`{{count}} hodinami`,future:`{{count}} hodiny`},other:{present:`{{count}} hodín`,past:`{{count}} hodinami`,future:`{{count}} hodín`}},xDays:{one:{present:`deň`,past:`dňom`,future:`deň`},twoFour:{present:`{{count}} dni`,past:`{{count}} dňami`,future:`{{count}} dni`},other:{present:`{{count}} dní`,past:`{{count}} dňami`,future:`{{count}} dní`}},xWeeks:{one:{present:`týždeň`,past:`týždňom`,future:`týždeň`},twoFour:{present:`{{count}} týždne`,past:`{{count}} týždňami`,future:`{{count}} týždne`},other:{present:`{{count}} týždňov`,past:`{{count}} týždňami`,future:`{{count}} týždňov`}},xMonths:{one:{present:`mesiac`,past:`mesiacom`,future:`mesiac`},twoFour:{present:`{{count}} mesiace`,past:`{{count}} mesiacmi`,future:`{{count}} mesiace`},other:{present:`{{count}} mesiacov`,past:`{{count}} mesiacmi`,future:`{{count}} mesiacov`}},xYears:{one:{present:`rok`,past:`rokom`,future:`rok`},twoFour:{present:`{{count}} roky`,past:`{{count}} rokmi`,future:`{{count}} roky`},other:{present:`{{count}} rokov`,past:`{{count}} rokmi`,future:`{{count}} rokov`}}},Sl=function(e,t,n){var r=vl(e)||``,i=xl[bl(e.substring(r.length))];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?Z(r)+`o `+yl(r)+X(i,t,`future`):Z(r)+`pred `+yl(r)+X(i,t,`past`):Z(r)+yl(r)+X(i,t,`present`)},Cl={date:d({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. M. y`,short:`d. M. y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}}, {{time}}`,long:`{{date}}, {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},wl=[`nedeľu`,`pondelok`,`utorok`,`stredu`,`štvrtok`,`piatok`,`sobotu`];function Tl(e){var t=wl[e];switch(e){case 0:case 3:case 6:return`'minulú `+t+` o' p`;default:return`'minulý' eeee 'o' p`}}function El(e){var t=wl[e];return e===4?`'vo' eeee 'o' p`:`'v `+t+` o' p`}function Dl(e){var t=wl[e];switch(e){case 0:case 4:case 6:return`'budúcu `+t+` o' p`;default:return`'budúci' eeee 'o' p`}}var Ol={lastWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?El(r):Tl(r)},yesterday:`'včera o' p`,today:`'dnes o' p`,tomorrow:`'zajtra o' p`,nextWeek:function(e,t,n){var r=e.getDay();return y(e,t,n)?El(r):Dl(r)},other:`P`},kl={code:`sk`,formatDistance:Sl,formatLong:Cl,formatRelative:function(e,t,n,r){var i=Ol[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pred Kr.`,`po Kr.`],abbreviated:[`pred Kr.`,`po Kr.`],wide:[`pred Kristom`,`po Kristovi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. štvrťrok`,`2. štvrťrok`,`3. štvrťrok`,`4. štvrťrok`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`január`,`február`,`marec`,`apríl`,`máj`,`jún`,`júl`,`august`,`september`,`október`,`november`,`december`]},defaultWidth:`wide`,formattingValues:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`máj`,`jún`,`júl`,`aug`,`sep`,`okt`,`nov`,`dec`],wide:[`januára`,`februára`,`marca`,`apríla`,`mája`,`júna`,`júla`,`augusta`,`septembra`,`októbra`,`novembra`,`decembra`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`n`,`p`,`u`,`s`,`š`,`p`,`s`],short:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],abbreviated:[`ne`,`po`,`ut`,`st`,`št`,`pi`,`so`],wide:[`nedeľa`,`pondelok`,`utorok`,`streda`,`štvrtok`,`piatok`,`sobota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`noc`},abbreviated:{am:`AM`,pm:`PM`,midnight:`poln.`,noon:`pol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`noc`},wide:{am:`AM`,pm:`PM`,midnight:`polnoc`,noon:`poludnie`,morning:`ráno`,afternoon:`popoludnie`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`nap.`,morning:`ráno`,afternoon:`pop.`,evening:`več.`,night:`v n.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`o poln.`,noon:`napol.`,morning:`ráno`,afternoon:`popol.`,evening:`večer`,night:`v noci`},wide:{am:`AM`,pm:`PM`,midnight:`o polnoci`,noon:`napoludnie`,morning:`ráno`,afternoon:`popoludní`,evening:`večer`,night:`v noci`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function Al(e){return e.one!==void 0}var jl={lessThanXSeconds:{present:{one:`manj kot {{count}} sekunda`,two:`manj kot {{count}} sekundi`,few:`manj kot {{count}} sekunde`,other:`manj kot {{count}} sekund`},past:{one:`manj kot {{count}} sekundo`,two:`manj kot {{count}} sekundama`,few:`manj kot {{count}} sekundami`,other:`manj kot {{count}} sekundami`},future:{one:`manj kot {{count}} sekundo`,two:`manj kot {{count}} sekundi`,few:`manj kot {{count}} sekunde`,other:`manj kot {{count}} sekund`}},xSeconds:{present:{one:`{{count}} sekunda`,two:`{{count}} sekundi`,few:`{{count}} sekunde`,other:`{{count}} sekund`},past:{one:`{{count}} sekundo`,two:`{{count}} sekundama`,few:`{{count}} sekundami`,other:`{{count}} sekundami`},future:{one:`{{count}} sekundo`,two:`{{count}} sekundi`,few:`{{count}} sekunde`,other:`{{count}} sekund`}},halfAMinute:`pol minute`,lessThanXMinutes:{present:{one:`manj kot {{count}} minuta`,two:`manj kot {{count}} minuti`,few:`manj kot {{count}} minute`,other:`manj kot {{count}} minut`},past:{one:`manj kot {{count}} minuto`,two:`manj kot {{count}} minutama`,few:`manj kot {{count}} minutami`,other:`manj kot {{count}} minutami`},future:{one:`manj kot {{count}} minuto`,two:`manj kot {{count}} minuti`,few:`manj kot {{count}} minute`,other:`manj kot {{count}} minut`}},xMinutes:{present:{one:`{{count}} minuta`,two:`{{count}} minuti`,few:`{{count}} minute`,other:`{{count}} minut`},past:{one:`{{count}} minuto`,two:`{{count}} minutama`,few:`{{count}} minutami`,other:`{{count}} minutami`},future:{one:`{{count}} minuto`,two:`{{count}} minuti`,few:`{{count}} minute`,other:`{{count}} minut`}},aboutXHours:{present:{one:`približno {{count}} ura`,two:`približno {{count}} uri`,few:`približno {{count}} ure`,other:`približno {{count}} ur`},past:{one:`približno {{count}} uro`,two:`približno {{count}} urama`,few:`približno {{count}} urami`,other:`približno {{count}} urami`},future:{one:`približno {{count}} uro`,two:`približno {{count}} uri`,few:`približno {{count}} ure`,other:`približno {{count}} ur`}},xHours:{present:{one:`{{count}} ura`,two:`{{count}} uri`,few:`{{count}} ure`,other:`{{count}} ur`},past:{one:`{{count}} uro`,two:`{{count}} urama`,few:`{{count}} urami`,other:`{{count}} urami`},future:{one:`{{count}} uro`,two:`{{count}} uri`,few:`{{count}} ure`,other:`{{count}} ur`}},xDays:{present:{one:`{{count}} dan`,two:`{{count}} dni`,few:`{{count}} dni`,other:`{{count}} dni`},past:{one:`{{count}} dnem`,two:`{{count}} dnevoma`,few:`{{count}} dnevi`,other:`{{count}} dnevi`},future:{one:`{{count}} dan`,two:`{{count}} dni`,few:`{{count}} dni`,other:`{{count}} dni`}},aboutXWeeks:{one:`približno {{count}} teden`,two:`približno {{count}} tedna`,few:`približno {{count}} tedne`,other:`približno {{count}} tednov`},xWeeks:{one:`{{count}} teden`,two:`{{count}} tedna`,few:`{{count}} tedne`,other:`{{count}} tednov`},aboutXMonths:{present:{one:`približno {{count}} mesec`,two:`približno {{count}} meseca`,few:`približno {{count}} mesece`,other:`približno {{count}} mesecev`},past:{one:`približno {{count}} mesecem`,two:`približno {{count}} mesecema`,few:`približno {{count}} meseci`,other:`približno {{count}} meseci`},future:{one:`približno {{count}} mesec`,two:`približno {{count}} meseca`,few:`približno {{count}} mesece`,other:`približno {{count}} mesecev`}},xMonths:{present:{one:`{{count}} mesec`,two:`{{count}} meseca`,few:`{{count}} meseci`,other:`{{count}} mesecev`},past:{one:`{{count}} mesecem`,two:`{{count}} mesecema`,few:`{{count}} meseci`,other:`{{count}} meseci`},future:{one:`{{count}} mesec`,two:`{{count}} meseca`,few:`{{count}} mesece`,other:`{{count}} mesecev`}},aboutXYears:{present:{one:`približno {{count}} leto`,two:`približno {{count}} leti`,few:`približno {{count}} leta`,other:`približno {{count}} let`},past:{one:`približno {{count}} letom`,two:`približno {{count}} letoma`,few:`približno {{count}} leti`,other:`približno {{count}} leti`},future:{one:`približno {{count}} leto`,two:`približno {{count}} leti`,few:`približno {{count}} leta`,other:`približno {{count}} let`}},xYears:{present:{one:`{{count}} leto`,two:`{{count}} leti`,few:`{{count}} leta`,other:`{{count}} let`},past:{one:`{{count}} letom`,two:`{{count}} letoma`,few:`{{count}} leti`,other:`{{count}} leti`},future:{one:`{{count}} leto`,two:`{{count}} leti`,few:`{{count}} leta`,other:`{{count}} let`}},overXYears:{present:{one:`več kot {{count}} leto`,two:`več kot {{count}} leti`,few:`več kot {{count}} leta`,other:`več kot {{count}} let`},past:{one:`več kot {{count}} letom`,two:`več kot {{count}} letoma`,few:`več kot {{count}} leti`,other:`več kot {{count}} leti`},future:{one:`več kot {{count}} leto`,two:`več kot {{count}} leti`,few:`več kot {{count}} leta`,other:`več kot {{count}} let`}},almostXYears:{present:{one:`skoraj {{count}} leto`,two:`skoraj {{count}} leti`,few:`skoraj {{count}} leta`,other:`skoraj {{count}} let`},past:{one:`skoraj {{count}} letom`,two:`skoraj {{count}} letoma`,few:`skoraj {{count}} leti`,other:`skoraj {{count}} leti`},future:{one:`skoraj {{count}} leto`,two:`skoraj {{count}} leti`,few:`skoraj {{count}} leta`,other:`skoraj {{count}} let`}}};function Ml(e){switch(e%100){case 1:return`one`;case 2:return`two`;case 3:case 4:return`few`;default:return`other`}}var Nl=function(e,t,n){var r=``,i=`present`;n!=null&&n.addSuffix&&(n.comparison&&n.comparison>0?(i=`future`,r=`čez `):(i=`past`,r=`pred `));var a=jl[e];if(typeof a==`string`)r+=a;else{var o=Ml(t);Al(a)?r+=a[o].replace(`{{count}}`,String(t)):r+=a[i][o].replace(`{{count}}`,String(t))}return r},Pl={date:d({formats:{full:`EEEE, dd. MMMM y`,long:`dd. MMMM y`,medium:`d. MMM y`,short:`d. MM. yy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Fl={lastWeek:function(e){switch(e.getDay()){case 0:return`'prejšnjo nedeljo ob' p`;case 3:return`'prejšnjo sredo ob' p`;case 6:return`'prejšnjo soboto ob' p`;default:return`'prejšnji' EEEE 'ob' p`}},yesterday:`'včeraj ob' p`,today:`'danes ob' p`,tomorrow:`'jutri ob' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'naslednjo nedeljo ob' p`;case 3:return`'naslednjo sredo ob' p`;case 6:return`'naslednjo soboto ob' p`;default:return`'naslednji' EEEE 'ob' p`}},other:`P`},Il={code:`sl`,formatDistance:Nl,formatLong:Pl,formatRelative:function(e,t,n,r){var i=Fl[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr. n. št.`,`po n. št.`],abbreviated:[`pr. n. št.`,`po n. št.`],wide:[`pred našim štetjem`,`po našem štetju`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čet.`,`2. čet.`,`3. čet.`,`4. čet.`],wide:[`1. četrtletje`,`2. četrtletje`,`3. četrtletje`,`4. četrtletje`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`jun.`,`jul.`,`avg.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januar`,`februar`,`marec`,`april`,`maj`,`junij`,`julij`,`avgust`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`n`,`p`,`t`,`s`,`č`,`p`,`s`],short:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],abbreviated:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],wide:[`nedelja`,`ponedeljek`,`torek`,`sreda`,`četrtek`,`petek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`j`,afternoon:`p`,evening:`v`,night:`n`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`poln.`,noon:`pold.`,morning:`jut.`,afternoon:`pop.`,evening:`več.`,night:`noč`},wide:{am:`dop.`,pm:`pop.`,midnight:`polnoč`,noon:`poldne`,morning:`jutro`,afternoon:`popoldne`,evening:`večer`,night:`noč`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`zj`,afternoon:`p`,evening:`zv`,night:`po`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`opoln.`,noon:`opold.`,morning:`zjut.`,afternoon:`pop.`,evening:`zveč.`,night:`ponoči`},wide:{am:`dop.`,pm:`pop.`,midnight:`opolnoči`,noon:`opoldne`,morning:`zjutraj`,afternoon:`popoldan`,evening:`zvečer`,night:`ponoči`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{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],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`wide`}),day:p({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ll={lessThanXSeconds:{one:`më pak se një sekondë`,other:`më pak se {{count}} sekonda`},xSeconds:{one:`1 sekondë`,other:`{{count}} sekonda`},halfAMinute:`gjysëm minuti`,lessThanXMinutes:{one:`më pak se një minute`,other:`më pak se {{count}} minuta`},xMinutes:{one:`1 minutë`,other:`{{count}} minuta`},aboutXHours:{one:`rreth 1 orë`,other:`rreth {{count}} orë`},xHours:{one:`1 orë`,other:`{{count}} orë`},xDays:{one:`1 ditë`,other:`{{count}} ditë`},aboutXWeeks:{one:`rreth 1 javë`,other:`rreth {{count}} javë`},xWeeks:{one:`1 javë`,other:`{{count}} javë`},aboutXMonths:{one:`rreth 1 muaj`,other:`rreth {{count}} muaj`},xMonths:{one:`1 muaj`,other:`{{count}} muaj`},aboutXYears:{one:`rreth 1 vit`,other:`rreth {{count}} vite`},xYears:{one:`1 vit`,other:`{{count}} vite`},overXYears:{one:`mbi 1 vit`,other:`mbi {{count}} vite`},almostXYears:{one:`pothuajse 1 vit`,other:`pothuajse {{count}} vite`}},Rl=function(e,t,n){var r,i=Ll[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`në `+r:r+` më parë`:r},zl={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'në' {{time}}`,long:`{{date}} 'në' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Bl={lastWeek:`'të' eeee 'e shkuar në' p`,yesterday:`'dje në' p`,today:`'sot në' p`,tomorrow:`'nesër në' p`,nextWeek:`eeee 'at' p`,other:`P`},Vl={code:`sq`,formatDistance:Rl,formatLong:zl,formatRelative:function(e,t,n,r){return Bl[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);return t?.unit===`hour`?String(n):n===1?n+`-rë`:n===4?n+`t`:n+`-të`},era:f({values:{narrow:[`P`,`M`],abbreviated:[`PK`,`MK`],wide:[`Para Krishtit`,`Mbas Krishtit`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`4-mujori I`,`4-mujori II`,`4-mujori III`,`4-mujori IV`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`S`,`M`,`P`,`M`,`Q`,`K`,`G`,`S`,`T`,`N`,`D`],abbreviated:[`Jan`,`Shk`,`Mar`,`Pri`,`Maj`,`Qer`,`Kor`,`Gus`,`Sht`,`Tet`,`Nën`,`Dhj`],wide:[`Janar`,`Shkurt`,`Mars`,`Prill`,`Maj`,`Qershor`,`Korrik`,`Gusht`,`Shtator`,`Tetor`,`Nëntor`,`Dhjetor`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`H`,`M`,`M`,`E`,`P`,`S`],short:[`Di`,`Hë`,`Ma`,`Më`,`En`,`Pr`,`Sh`],abbreviated:[`Die`,`Hën`,`Mar`,`Mër`,`Enj`,`Pre`,`Sht`],wide:[`Dielë`,`Hënë`,`Martë`,`Mërkurë`,`Enjte`,`Premte`,`Shtunë`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`mëngjes`,afternoon:`dite`,evening:`mbrëmje`,night:`natë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Hl={lessThanXSeconds:{one:{standalone:`мање од 1 секунде`,withPrepositionAgo:`мање од 1 секунде`,withPrepositionIn:`мање од 1 секунду`},dual:`мање од {{count}} секунде`,other:`мање од {{count}} секунди`},xSeconds:{one:{standalone:`1 секунда`,withPrepositionAgo:`1 секунде`,withPrepositionIn:`1 секунду`},dual:`{{count}} секунде`,other:`{{count}} секунди`},halfAMinute:`пола минуте`,lessThanXMinutes:{one:{standalone:`мање од 1 минуте`,withPrepositionAgo:`мање од 1 минуте`,withPrepositionIn:`мање од 1 минуту`},dual:`мање од {{count}} минуте`,other:`мање од {{count}} минута`},xMinutes:{one:{standalone:`1 минута`,withPrepositionAgo:`1 минуте`,withPrepositionIn:`1 минуту`},dual:`{{count}} минуте`,other:`{{count}} минута`},aboutXHours:{one:{standalone:`око 1 сат`,withPrepositionAgo:`око 1 сат`,withPrepositionIn:`око 1 сат`},dual:`око {{count}} сата`,other:`око {{count}} сати`},xHours:{one:{standalone:`1 сат`,withPrepositionAgo:`1 сат`,withPrepositionIn:`1 сат`},dual:`{{count}} сата`,other:`{{count}} сати`},xDays:{one:{standalone:`1 дан`,withPrepositionAgo:`1 дан`,withPrepositionIn:`1 дан`},dual:`{{count}} дана`,other:`{{count}} дана`},aboutXWeeks:{one:{standalone:`око 1 недељу`,withPrepositionAgo:`око 1 недељу`,withPrepositionIn:`око 1 недељу`},dual:`око {{count}} недеље`,other:`око {{count}} недеље`},xWeeks:{one:{standalone:`1 недељу`,withPrepositionAgo:`1 недељу`,withPrepositionIn:`1 недељу`},dual:`{{count}} недеље`,other:`{{count}} недеље`},aboutXMonths:{one:{standalone:`око 1 месец`,withPrepositionAgo:`око 1 месец`,withPrepositionIn:`око 1 месец`},dual:`око {{count}} месеца`,other:`око {{count}} месеци`},xMonths:{one:{standalone:`1 месец`,withPrepositionAgo:`1 месец`,withPrepositionIn:`1 месец`},dual:`{{count}} месеца`,other:`{{count}} месеци`},aboutXYears:{one:{standalone:`око 1 годину`,withPrepositionAgo:`око 1 годину`,withPrepositionIn:`око 1 годину`},dual:`око {{count}} године`,other:`око {{count}} година`},xYears:{one:{standalone:`1 година`,withPrepositionAgo:`1 године`,withPrepositionIn:`1 годину`},dual:`{{count}} године`,other:`{{count}} година`},overXYears:{one:{standalone:`преко 1 годину`,withPrepositionAgo:`преко 1 годину`,withPrepositionIn:`преко 1 годину`},dual:`преко {{count}} године`,other:`преко {{count}} година`},almostXYears:{one:{standalone:`готово 1 годину`,withPrepositionAgo:`готово 1 годину`,withPrepositionIn:`готово 1 годину`},dual:`готово {{count}} године`,other:`готово {{count}} година`}},Ul=function(e,t,n){var r,i=Hl[e];return r=typeof i==`string`?i:t===1?n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`за `+r:`пре `+r:r},Wl={date:d({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'у' {{time}}`,long:`{{date}} 'у' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Gl={lastWeek:function(e){switch(e.getDay()){case 0:return`'прошле недеље у' p`;case 3:return`'прошле среде у' p`;case 6:return`'прошле суботе у' p`;default:return`'прошли' EEEE 'у' p`}},yesterday:`'јуче у' p`,today:`'данас у' p`,tomorrow:`'сутра у' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'следеће недеље у' p`;case 3:return`'следећу среду у' p`;case 6:return`'следећу суботу у' p`;default:return`'следећи' EEEE 'у' p`}},other:`P`},Kl={code:`sr`,formatDistance:Ul,formatLong:Wl,formatRelative:function(e,t,n,r){var i=Gl[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`пр.н.е.`,`АД`],abbreviated:[`пр. Хр.`,`по. Хр.`],wide:[`Пре Христа`,`После Христа`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. кв.`,`2. кв.`,`3. кв.`,`4. кв.`],wide:[`1. квартал`,`2. квартал`,`3. квартал`,`4. квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`П`,`У`,`С`,`Ч`,`П`,`С`],short:[`нед`,`пон`,`уто`,`сре`,`чет`,`пет`,`суб`],abbreviated:[`нед`,`пон`,`уто`,`сре`,`чет`,`пет`,`суб`],wide:[`недеља`,`понедељак`,`уторак`,`среда`,`четвртак`,`петак`,`субота`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},abbreviated:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},wide:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`после подне`,evening:`увече`,night:`ноћу`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`АМ`,pm:`ПМ`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},abbreviated:{am:`АМ`,pm:`ПМ`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},wide:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`после подне`,evening:`увече`,night:`ноћу`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},ql={lessThanXSeconds:{one:{standalone:`manje od 1 sekunde`,withPrepositionAgo:`manje od 1 sekunde`,withPrepositionIn:`manje od 1 sekundu`},dual:`manje od {{count}} sekunde`,other:`manje od {{count}} sekundi`},xSeconds:{one:{standalone:`1 sekunda`,withPrepositionAgo:`1 sekunde`,withPrepositionIn:`1 sekundu`},dual:`{{count}} sekunde`,other:`{{count}} sekundi`},halfAMinute:`pola minute`,lessThanXMinutes:{one:{standalone:`manje od 1 minute`,withPrepositionAgo:`manje od 1 minute`,withPrepositionIn:`manje od 1 minutu`},dual:`manje od {{count}} minute`,other:`manje od {{count}} minuta`},xMinutes:{one:{standalone:`1 minuta`,withPrepositionAgo:`1 minute`,withPrepositionIn:`1 minutu`},dual:`{{count}} minute`,other:`{{count}} minuta`},aboutXHours:{one:{standalone:`oko 1 sat`,withPrepositionAgo:`oko 1 sat`,withPrepositionIn:`oko 1 sat`},dual:`oko {{count}} sata`,other:`oko {{count}} sati`},xHours:{one:{standalone:`1 sat`,withPrepositionAgo:`1 sat`,withPrepositionIn:`1 sat`},dual:`{{count}} sata`,other:`{{count}} sati`},xDays:{one:{standalone:`1 dan`,withPrepositionAgo:`1 dan`,withPrepositionIn:`1 dan`},dual:`{{count}} dana`,other:`{{count}} dana`},aboutXWeeks:{one:{standalone:`oko 1 nedelju`,withPrepositionAgo:`oko 1 nedelju`,withPrepositionIn:`oko 1 nedelju`},dual:`oko {{count}} nedelje`,other:`oko {{count}} nedelje`},xWeeks:{one:{standalone:`1 nedelju`,withPrepositionAgo:`1 nedelju`,withPrepositionIn:`1 nedelju`},dual:`{{count}} nedelje`,other:`{{count}} nedelje`},aboutXMonths:{one:{standalone:`oko 1 mesec`,withPrepositionAgo:`oko 1 mesec`,withPrepositionIn:`oko 1 mesec`},dual:`oko {{count}} meseca`,other:`oko {{count}} meseci`},xMonths:{one:{standalone:`1 mesec`,withPrepositionAgo:`1 mesec`,withPrepositionIn:`1 mesec`},dual:`{{count}} meseca`,other:`{{count}} meseci`},aboutXYears:{one:{standalone:`oko 1 godinu`,withPrepositionAgo:`oko 1 godinu`,withPrepositionIn:`oko 1 godinu`},dual:`oko {{count}} godine`,other:`oko {{count}} godina`},xYears:{one:{standalone:`1 godina`,withPrepositionAgo:`1 godine`,withPrepositionIn:`1 godinu`},dual:`{{count}} godine`,other:`{{count}} godina`},overXYears:{one:{standalone:`preko 1 godinu`,withPrepositionAgo:`preko 1 godinu`,withPrepositionIn:`preko 1 godinu`},dual:`preko {{count}} godine`,other:`preko {{count}} godina`},almostXYears:{one:{standalone:`gotovo 1 godinu`,withPrepositionAgo:`gotovo 1 godinu`,withPrepositionIn:`gotovo 1 godinu`},dual:`gotovo {{count}} godine`,other:`gotovo {{count}} godina`}},Jl=function(e,t,n){var r,i=ql[e];return r=typeof i==`string`?i:t===1?n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`pre `+r:r},Yl={date:d({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Xl={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošle nedelje u' p`;case 3:return`'prošle srede u' p`;case 6:return`'prošle subote u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'juče u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'sledeće nedelje u' p`;case 3:return`'sledeću sredu u' p`;case 6:return`'sledeću subotu u' p`;default:return`'sledeći' EEEE 'u' p`}},other:`P`},Zl={code:`sr-Latn`,formatDistance:Jl,formatLong:Yl,formatRelative:function(e,t,n,r){var i=Xl[e];return typeof i==`function`?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Hr.`,`po. Hr.`],wide:[`Pre Hrista`,`Posle Hrista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],wide:[`nedelja`,`ponedeljak`,`utorak`,`sreda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,night:`noću`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Ql={lessThanXSeconds:{one:`mindre än en sekund`,other:`mindre än {{count}} sekunder`},xSeconds:{one:`en sekund`,other:`{{count}} sekunder`},halfAMinute:`en halv minut`,lessThanXMinutes:{one:`mindre än en minut`,other:`mindre än {{count}} minuter`},xMinutes:{one:`en minut`,other:`{{count}} minuter`},aboutXHours:{one:`ungefär en timme`,other:`ungefär {{count}} timmar`},xHours:{one:`en timme`,other:`{{count}} timmar`},xDays:{one:`en dag`,other:`{{count}} dagar`},aboutXWeeks:{one:`ungefär en vecka`,other:`ungefär {{count}} veckor`},xWeeks:{one:`en vecka`,other:`{{count}} veckor`},aboutXMonths:{one:`ungefär en månad`,other:`ungefär {{count}} månader`},xMonths:{one:`en månad`,other:`{{count}} månader`},aboutXYears:{one:`ungefär ett år`,other:`ungefär {{count}} år`},xYears:{one:`ett år`,other:`{{count}} år`},overXYears:{one:`över ett år`,other:`över {{count}} år`},almostXYears:{one:`nästan ett år`,other:`nästan {{count}} år`}},$l=[`noll`,`en`,`två`,`tre`,`fyra`,`fem`,`sex`,`sju`,`åtta`,`nio`,`tio`,`elva`,`tolv`],eu=function(e,t,n){var r,i=Ql[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t<13?$l[t]:String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`om `+r:r+` sedan`:r},tu={date:d({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`y-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},nu={lastWeek:`'i' EEEE's kl.' p`,yesterday:`'igår kl.' p`,today:`'idag kl.' p`,tomorrow:`'imorgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},ru={code:`sv`,formatDistance:eu,formatLong:tu,formatRelative:function(e,t,n,r){return nu[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+`:a`}return n+`:e`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`före Kristus`,`efter Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1:a kvartalet`,`2:a kvartalet`,`3:e kvartalet`,`4:e kvartalet`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`maj`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`mars`,`april`,`maj`,`juni`,`juli`,`augusti`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sö`,`må`,`ti`,`on`,`to`,`fr`,`lö`],abbreviated:[`sön`,`mån`,`tis`,`ons`,`tors`,`fre`,`lör`],wide:[`söndag`,`måndag`,`tisdag`,`onsdag`,`torsdag`,`fredag`,`lördag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`morg.`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},abbreviated:{am:`f.m.`,pm:`e.m.`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},wide:{am:`förmiddag`,pm:`eftermiddag`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`eftermiddag`,evening:`kväll`,night:`natt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},abbreviated:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},wide:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på eftermiddagen`,evening:`på kvällen`,night:`på natten`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function iu(e){return e.one!==void 0}var au={lessThanXSeconds:{one:{default:`ஒரு வினாடிக்கு குறைவாக`,in:`ஒரு வினாடிக்குள்`,ago:`ஒரு வினாடிக்கு முன்பு`},other:{default:`{{count}} வினாடிகளுக்கு குறைவாக`,in:`{{count}} வினாடிகளுக்குள்`,ago:`{{count}} வினாடிகளுக்கு முன்பு`}},xSeconds:{one:{default:`1 வினாடி`,in:`1 வினாடியில்`,ago:`1 வினாடி முன்பு`},other:{default:`{{count}} விநாடிகள்`,in:`{{count}} வினாடிகளில்`,ago:`{{count}} விநாடிகளுக்கு முன்பு`}},halfAMinute:{default:`அரை நிமிடம்`,in:`அரை நிமிடத்தில்`,ago:`அரை நிமிடம் முன்பு`},lessThanXMinutes:{one:{default:`ஒரு நிமிடத்திற்கும் குறைவாக`,in:`ஒரு நிமிடத்திற்குள்`,ago:`ஒரு நிமிடத்திற்கு முன்பு`},other:{default:`{{count}} நிமிடங்களுக்கும் குறைவாக`,in:`{{count}} நிமிடங்களுக்குள்`,ago:`{{count}} நிமிடங்களுக்கு முன்பு`}},xMinutes:{one:{default:`1 நிமிடம்`,in:`1 நிமிடத்தில்`,ago:`1 நிமிடம் முன்பு`},other:{default:`{{count}} நிமிடங்கள்`,in:`{{count}} நிமிடங்களில்`,ago:`{{count}} நிமிடங்களுக்கு முன்பு`}},aboutXHours:{one:{default:`சுமார் 1 மணி நேரம்`,in:`சுமார் 1 மணி நேரத்தில்`,ago:`சுமார் 1 மணி நேரத்திற்கு முன்பு`},other:{default:`சுமார் {{count}} மணி நேரம்`,in:`சுமார் {{count}} மணி நேரத்திற்கு முன்பு`,ago:`சுமார் {{count}} மணி நேரத்தில்`}},xHours:{one:{default:`1 மணி நேரம்`,in:`1 மணி நேரத்தில்`,ago:`1 மணி நேரத்திற்கு முன்பு`},other:{default:`{{count}} மணி நேரம்`,in:`{{count}} மணி நேரத்தில்`,ago:`{{count}} மணி நேரத்திற்கு முன்பு`}},xDays:{one:{default:`1 நாள்`,in:`1 நாளில்`,ago:`1 நாள் முன்பு`},other:{default:`{{count}} நாட்கள்`,in:`{{count}} நாட்களில்`,ago:`{{count}} நாட்களுக்கு முன்பு`}},aboutXWeeks:{one:{default:`சுமார் 1 வாரம்`,in:`சுமார் 1 வாரத்தில்`,ago:`சுமார் 1 வாரம் முன்பு`},other:{default:`சுமார் {{count}} வாரங்கள்`,in:`சுமார் {{count}} வாரங்களில்`,ago:`சுமார் {{count}} வாரங்களுக்கு முன்பு`}},xWeeks:{one:{default:`1 வாரம்`,in:`1 வாரத்தில்`,ago:`1 வாரம் முன்பு`},other:{default:`{{count}} வாரங்கள்`,in:`{{count}} வாரங்களில்`,ago:`{{count}} வாரங்களுக்கு முன்பு`}},aboutXMonths:{one:{default:`சுமார் 1 மாதம்`,in:`சுமார் 1 மாதத்தில்`,ago:`சுமார் 1 மாதத்திற்கு முன்பு`},other:{default:`சுமார் {{count}} மாதங்கள்`,in:`சுமார் {{count}} மாதங்களில்`,ago:`சுமார் {{count}} மாதங்களுக்கு முன்பு`}},xMonths:{one:{default:`1 மாதம்`,in:`1 மாதத்தில்`,ago:`1 மாதம் முன்பு`},other:{default:`{{count}} மாதங்கள்`,in:`{{count}} மாதங்களில்`,ago:`{{count}} மாதங்களுக்கு முன்பு`}},aboutXYears:{one:{default:`சுமார் 1 வருடம்`,in:`சுமார் 1 ஆண்டில்`,ago:`சுமார் 1 வருடம் முன்பு`},other:{default:`சுமார் {{count}} ஆண்டுகள்`,in:`சுமார் {{count}} ஆண்டுகளில்`,ago:`சுமார் {{count}} ஆண்டுகளுக்கு முன்பு`}},xYears:{one:{default:`1 வருடம்`,in:`1 ஆண்டில்`,ago:`1 வருடம் முன்பு`},other:{default:`{{count}} ஆண்டுகள்`,in:`{{count}} ஆண்டுகளில்`,ago:`{{count}} ஆண்டுகளுக்கு முன்பு`}},overXYears:{one:{default:`1 வருடத்திற்கு மேல்`,in:`1 வருடத்திற்கும் மேலாக`,ago:`1 வருடம் முன்பு`},other:{default:`{{count}} ஆண்டுகளுக்கும் மேலாக`,in:`{{count}} ஆண்டுகளில்`,ago:`{{count}} ஆண்டுகளுக்கு முன்பு`}},almostXYears:{one:{default:`கிட்டத்தட்ட 1 வருடம்`,in:`கிட்டத்தட்ட 1 ஆண்டில்`,ago:`கிட்டத்தட்ட 1 வருடம் முன்பு`},other:{default:`கிட்டத்தட்ட {{count}} ஆண்டுகள்`,in:`கிட்டத்தட்ட {{count}} ஆண்டுகளில்`,ago:`கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு`}}},ou=function(e,t,n){var r=n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in`:`ago`:`default`,i=au[e];return iu(i)?t===1?i.one[r]:i.other[r].replace(`{{count}}`,String(t)):i[r]},su={date:d({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:d({formats:{full:`a h:mm:ss zzzz`,long:`a h:mm:ss z`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},cu={lastWeek:`'கடந்த' eeee p 'மணிக்கு'`,yesterday:`'நேற்று ' p 'மணிக்கு'`,today:`'இன்று ' p 'மணிக்கு'`,tomorrow:`'நாளை ' p 'மணிக்கு'`,nextWeek:`eeee p 'மணிக்கு'`,other:`P`},lu={code:`ta`,formatDistance:ou,formatLong:su,formatRelative:function(e,t,n,r){return cu[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`கி.மு.`,`கி.பி.`],abbreviated:[`கி.மு.`,`கி.பி.`],wide:[`கிறிஸ்துவுக்கு முன்`,`அன்னோ டோமினி`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`காலா.1`,`காலா.2`,`காலா.3`,`காலா.4`],wide:[`ஒன்றாம் காலாண்டு`,`இரண்டாம் காலாண்டு`,`மூன்றாம் காலாண்டு`,`நான்காம் காலாண்டு`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ஜ`,`பி`,`மா`,`ஏ`,`மே`,`ஜூ`,`ஜூ`,`ஆ`,`செ`,`அ`,`ந`,`டி`],abbreviated:[`ஜன.`,`பிப்.`,`மார்.`,`ஏப்.`,`மே`,`ஜூன்`,`ஜூலை`,`ஆக.`,`செப்.`,`அக்.`,`நவ.`,`டிச.`],wide:[`ஜனவரி`,`பிப்ரவரி`,`மார்ச்`,`ஏப்ரல்`,`மே`,`ஜூன்`,`ஜூலை`,`ஆகஸ்ட்`,`செப்டம்பர்`,`அக்டோபர்`,`நவம்பர்`,`டிசம்பர்`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],short:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],abbreviated:[`ஞாயி.`,`திங்.`,`செவ்.`,`புத.`,`வியா.`,`வெள்.`,`சனி`],wide:[`ஞாயிறு`,`திங்கள்`,`செவ்வாய்`,`புதன்`,`வியாழன்`,`வெள்ளி`,`சனி`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`மு.ப`,pm:`பி.ப`,midnight:`நள்.`,noon:`நண்.`,morning:`கா.`,afternoon:`மதி.`,evening:`மா.`,night:`இர.`},abbreviated:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`},wide:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`மு.ப`,pm:`பி.ப`,midnight:`நள்.`,noon:`நண்.`,morning:`கா.`,afternoon:`மதி.`,evening:`மா.`,night:`இர.`},abbreviated:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`},wide:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},uu={lessThanXSeconds:{standalone:{one:`సెకను కన్నా తక్కువ`,other:`{{count}} సెకన్ల కన్నా తక్కువ`},withPreposition:{one:`సెకను`,other:`{{count}} సెకన్ల`}},xSeconds:{standalone:{one:`ఒక సెకను`,other:`{{count}} సెకన్ల`},withPreposition:{one:`ఒక సెకను`,other:`{{count}} సెకన్ల`}},halfAMinute:{standalone:`అర నిమిషం`,withPreposition:`అర నిమిషం`},lessThanXMinutes:{standalone:{one:`ఒక నిమిషం కన్నా తక్కువ`,other:`{{count}} నిమిషాల కన్నా తక్కువ`},withPreposition:{one:`ఒక నిమిషం`,other:`{{count}} నిమిషాల`}},xMinutes:{standalone:{one:`ఒక నిమిషం`,other:`{{count}} నిమిషాలు`},withPreposition:{one:`ఒక నిమిషం`,other:`{{count}} నిమిషాల`}},aboutXHours:{standalone:{one:`సుమారు ఒక గంట`,other:`సుమారు {{count}} గంటలు`},withPreposition:{one:`సుమారు ఒక గంట`,other:`సుమారు {{count}} గంటల`}},xHours:{standalone:{one:`ఒక గంట`,other:`{{count}} గంటలు`},withPreposition:{one:`ఒక గంట`,other:`{{count}} గంటల`}},xDays:{standalone:{one:`ఒక రోజు`,other:`{{count}} రోజులు`},withPreposition:{one:`ఒక రోజు`,other:`{{count}} రోజుల`}},aboutXWeeks:{standalone:{one:`సుమారు ఒక వారం`,other:`సుమారు {{count}} వారాలు`},withPreposition:{one:`సుమారు ఒక వారం`,other:`సుమారు {{count}} వారాలల`}},xWeeks:{standalone:{one:`ఒక వారం`,other:`{{count}} వారాలు`},withPreposition:{one:`ఒక వారం`,other:`{{count}} వారాలల`}},aboutXMonths:{standalone:{one:`సుమారు ఒక నెల`,other:`సుమారు {{count}} నెలలు`},withPreposition:{one:`సుమారు ఒక నెల`,other:`సుమారు {{count}} నెలల`}},xMonths:{standalone:{one:`ఒక నెల`,other:`{{count}} నెలలు`},withPreposition:{one:`ఒక నెల`,other:`{{count}} నెలల`}},aboutXYears:{standalone:{one:`సుమారు ఒక సంవత్సరం`,other:`సుమారు {{count}} సంవత్సరాలు`},withPreposition:{one:`సుమారు ఒక సంవత్సరం`,other:`సుమారు {{count}} సంవత్సరాల`}},xYears:{standalone:{one:`ఒక సంవత్సరం`,other:`{{count}} సంవత్సరాలు`},withPreposition:{one:`ఒక సంవత్సరం`,other:`{{count}} సంవత్సరాల`}},overXYears:{standalone:{one:`ఒక సంవత్సరం పైగా`,other:`{{count}} సంవత్సరాలకు పైగా`},withPreposition:{one:`ఒక సంవత్సరం`,other:`{{count}} సంవత్సరాల`}},almostXYears:{standalone:{one:`దాదాపు ఒక సంవత్సరం`,other:`దాదాపు {{count}} సంవత్సరాలు`},withPreposition:{one:`దాదాపు ఒక సంవత్సరం`,other:`దాదాపు {{count}} సంవత్సరాల`}}},du=function(e,t,n){var r,i=n!=null&&n.addSuffix?uu[e].withPreposition:uu[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`లో`:r+` క్రితం`:r},fu={date:d({formats:{full:`d, MMMM y, EEEE`,long:`d MMMM, y`,medium:`d MMM, y`,short:`dd-MM-yy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}'కి'`,long:`{{date}} {{time}}'కి'`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},pu={lastWeek:`'గత' eeee p`,yesterday:`'నిన్న' p`,today:`'ఈ రోజు' p`,tomorrow:`'రేపు' p`,nextWeek:`'తదుపరి' eeee p`,other:`P`},mu={code:`te`,formatDistance:du,formatLong:fu,formatRelative:function(e,t,n,r){return pu[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`వ`},era:f({values:{narrow:[`క్రీ.పూ.`,`క్రీ.శ.`],abbreviated:[`క్రీ.పూ.`,`క్రీ.శ.`],wide:[`క్రీస్తు పూర్వం`,`క్రీస్తుశకం`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`త్రై1`,`త్రై2`,`త్రై3`,`త్రై4`],wide:[`1వ త్రైమాసికం`,`2వ త్రైమాసికం`,`3వ త్రైమాసికం`,`4వ త్రైమాసికం`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`జ`,`ఫి`,`మా`,`ఏ`,`మే`,`జూ`,`జు`,`ఆ`,`సె`,`అ`,`న`,`డి`],abbreviated:[`జన`,`ఫిబ్ర`,`మార్చి`,`ఏప్రి`,`మే`,`జూన్`,`జులై`,`ఆగ`,`సెప్టెం`,`అక్టో`,`నవం`,`డిసెం`],wide:[`జనవరి`,`ఫిబ్రవరి`,`మార్చి`,`ఏప్రిల్`,`మే`,`జూన్`,`జులై`,`ఆగస్టు`,`సెప్టెంబర్`,`అక్టోబర్`,`నవంబర్`,`డిసెంబర్`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ఆ`,`సో`,`మ`,`బు`,`గు`,`శు`,`శ`],short:[`ఆది`,`సోమ`,`మంగళ`,`బుధ`,`గురు`,`శుక్ర`,`శని`],abbreviated:[`ఆది`,`సోమ`,`మంగళ`,`బుధ`,`గురు`,`శుక్ర`,`శని`],wide:[`ఆదివారం`,`సోమవారం`,`మంగళవారం`,`బుధవారం`,`గురువారం`,`శుక్రవారం`,`శనివారం`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},abbreviated:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},wide:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},abbreviated:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},wide:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(వ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},hu={lessThanXSeconds:{one:`น้อยกว่า 1 วินาที`,other:`น้อยกว่า {{count}} วินาที`},xSeconds:{one:`1 วินาที`,other:`{{count}} วินาที`},halfAMinute:`ครึ่งนาที`,lessThanXMinutes:{one:`น้อยกว่า 1 นาที`,other:`น้อยกว่า {{count}} นาที`},xMinutes:{one:`1 นาที`,other:`{{count}} นาที`},aboutXHours:{one:`ประมาณ 1 ชั่วโมง`,other:`ประมาณ {{count}} ชั่วโมง`},xHours:{one:`1 ชั่วโมง`,other:`{{count}} ชั่วโมง`},xDays:{one:`1 วัน`,other:`{{count}} วัน`},aboutXWeeks:{one:`ประมาณ 1 สัปดาห์`,other:`ประมาณ {{count}} สัปดาห์`},xWeeks:{one:`1 สัปดาห์`,other:`{{count}} สัปดาห์`},aboutXMonths:{one:`ประมาณ 1 เดือน`,other:`ประมาณ {{count}} เดือน`},xMonths:{one:`1 เดือน`,other:`{{count}} เดือน`},aboutXYears:{one:`ประมาณ 1 ปี`,other:`ประมาณ {{count}} ปี`},xYears:{one:`1 ปี`,other:`{{count}} ปี`},overXYears:{one:`มากกว่า 1 ปี`,other:`มากกว่า {{count}} ปี`},almostXYears:{one:`เกือบ 1 ปี`,other:`เกือบ {{count}} ปี`}},gu=function(e,t,n){var r,i=hu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e===`halfAMinute`?`ใน`+r:`ใน `+r:r+`ที่ผ่านมา`:r},_u={date:d({formats:{full:`วันEEEEที่ do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss น. zzzz`,long:`H:mm:ss น. z`,medium:`H:mm:ss น.`,short:`H:mm น.`},defaultWidth:`medium`}),dateTime:d({formats:{full:`{{date}} 'เวลา' {{time}}`,long:`{{date}} 'เวลา' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},vu={lastWeek:`eeee'ที่แล้วเวลา' p`,yesterday:`'เมื่อวานนี้เวลา' p`,today:`'วันนี้เวลา' p`,tomorrow:`'พรุ่งนี้เวลา' p`,nextWeek:`eeee 'เวลา' p`,other:`P`},yu={code:`th`,formatDistance:gu,formatLong:_u,formatRelative:function(e,t,n,r){return vu[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`B`,`คศ`],abbreviated:[`BC`,`ค.ศ.`],wide:[`ปีก่อนคริสตกาล`,`คริสต์ศักราช`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`ไตรมาสแรก`,`ไตรมาสที่สอง`,`ไตรมาสที่สาม`,`ไตรมาสที่สี่`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],abbreviated:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],wide:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`]},defaultWidth:`wide`}),day:f({values:{narrow:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],short:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],abbreviated:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],wide:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`},abbreviated:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`},wide:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`},abbreviated:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`},wide:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},bu={lessThanXSeconds:{one:`bir saniyeden az`,other:`{{count}} saniyeden az`},xSeconds:{one:`1 saniye`,other:`{{count}} saniye`},halfAMinute:`yarım dakika`,lessThanXMinutes:{one:`bir dakikadan az`,other:`{{count}} dakikadan az`},xMinutes:{one:`1 dakika`,other:`{{count}} dakika`},aboutXHours:{one:`yaklaşık 1 saat`,other:`yaklaşık {{count}} saat`},xHours:{one:`1 saat`,other:`{{count}} saat`},xDays:{one:`1 gün`,other:`{{count}} gün`},aboutXWeeks:{one:`yaklaşık 1 hafta`,other:`yaklaşık {{count}} hafta`},xWeeks:{one:`1 hafta`,other:`{{count}} hafta`},aboutXMonths:{one:`yaklaşık 1 ay`,other:`yaklaşık {{count}} ay`},xMonths:{one:`1 ay`,other:`{{count}} ay`},aboutXYears:{one:`yaklaşık 1 yıl`,other:`yaklaşık {{count}} yıl`},xYears:{one:`1 yıl`,other:`{{count}} yıl`},overXYears:{one:`1 yıldan fazla`,other:`{{count}} yıldan fazla`},almostXYears:{one:`neredeyse 1 yıl`,other:`neredeyse {{count}} yıl`}},xu=function(e,t,n){var r,i=bu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` sonra`:r+` önce`:r},Su={date:d({formats:{full:`d MMMM y EEEE`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'saat' {{time}}`,long:`{{date}} 'saat' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Cu={lastWeek:`'geçen hafta' eeee 'saat' p`,yesterday:`'dün saat' p`,today:`'bugün saat' p`,tomorrow:`'yarın saat' p`,nextWeek:`eeee 'saat' p`,other:`P`},wu={code:`tr`,formatDistance:xu,formatLong:Su,formatRelative:function(e,t,n,r){return Cu[e]},localize:{ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`MÖ`,`MS`],abbreviated:[`MÖ`,`MS`],wide:[`Milattan Önce`,`Milattan Sonra`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1Ç`,`2Ç`,`3Ç`,`4Ç`],wide:[`İlk çeyrek`,`İkinci Çeyrek`,`Üçüncü çeyrek`,`Son çeyrek`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`O`,`Ş`,`M`,`N`,`M`,`H`,`T`,`A`,`E`,`E`,`K`,`A`],abbreviated:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],wide:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`]},defaultWidth:`wide`}),day:f({values:{narrow:[`P`,`P`,`S`,`Ç`,`P`,`C`,`C`],short:[`Pz`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],abbreviated:[`Paz`,`Pzt`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],wide:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`},wide:{am:`Ö.Ö.`,pm:`Ö.S.`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`},wide:{am:`ö.ö.`,pm:`ö.s.`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Tu={lessThanXSeconds:{one:`بىر سىكۇنت ئىچىدە`,other:`سىكۇنت ئىچىدە {{count}}`},xSeconds:{one:`بىر سىكۇنت`,other:`سىكۇنت {{count}}`},halfAMinute:`يىرىم مىنۇت`,lessThanXMinutes:{one:`بىر مىنۇت ئىچىدە`,other:`مىنۇت ئىچىدە {{count}}`},xMinutes:{one:`بىر مىنۇت`,other:`مىنۇت {{count}}`},aboutXHours:{one:`تەخمىنەن بىر سائەت`,other:`سائەت {{count}} تەخمىنەن`},xHours:{one:`بىر سائەت`,other:`سائەت {{count}}`},xDays:{one:`بىر كۈن`,other:`كۈن {{count}}`},aboutXWeeks:{one:`تەخمىنەن بىرھەپتە`,other:`ھەپتە {{count}} تەخمىنەن`},xWeeks:{one:`بىرھەپتە`,other:`ھەپتە {{count}}`},aboutXMonths:{one:`تەخمىنەن بىر ئاي`,other:`ئاي {{count}} تەخمىنەن`},xMonths:{one:`بىر ئاي`,other:`ئاي {{count}}`},aboutXYears:{one:`تەخمىنەن بىر يىل`,other:`يىل {{count}} تەخمىنەن`},xYears:{one:`بىر يىل`,other:`يىل {{count}}`},overXYears:{one:`بىر يىلدىن ئارتۇق`,other:`يىلدىن ئارتۇق {{count}}`},almostXYears:{one:`ئاساسەن بىر يىل`,other:`يىل {{count}} ئاساسەن`}},Eu=function(e,t,n){var r,i=Tu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r:r+` بولدى`:r},Du={date:d({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'دە' {{time}}`,long:`{{date}} 'دە' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Ou={lastWeek:`'ئ‍ۆتكەن' eeee 'دە' p`,yesterday:`'تۈنۈگۈن دە' p`,today:`'بۈگۈن دە' p`,tomorrow:`'ئەتە دە' p`,nextWeek:`eeee 'دە' p`,other:`P`},ku={code:`ug`,formatDistance:Eu,formatLong:Du,formatRelative:function(e,t,n,r){return Ou[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ب`,`ك`],abbreviated:[`ب`,`ك`],wide:[`مىيلادىدىن بۇرۇن`,`مىيلادىدىن كىيىن`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1`,`2`,`3`,`4`],wide:[`بىرىنجى چارەك`,`ئىككىنجى چارەك`,`ئۈچىنجى چارەك`,`تۆتىنجى چارەك`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ي`,`ف`,`م`,`ا`,`م`,`ى`,`ى`,`ا`,`س`,`ۆ`,`ن`,`د`],abbreviated:[`يانۋار`,`فېۋىرال`,`مارت`,`ئاپرىل`,`ماي`,`ئىيۇن`,`ئىيول`,`ئاۋغۇست`,`سىنتەبىر`,`ئۆكتەبىر`,`نويابىر`,`دىكابىر`],wide:[`يانۋار`,`فېۋىرال`,`مارت`,`ئاپرىل`,`ماي`,`ئىيۇن`,`ئىيول`,`ئاۋغۇست`,`سىنتەبىر`,`ئۆكتەبىر`,`نويابىر`,`دىكابىر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ي`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`ي`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],abbreviated:[`يەكشەنبە`,`دۈشەنبە`,`سەيشەنبە`,`چارشەنبە`,`پەيشەنبە`,`جۈمە`,`شەنبە`],wide:[`يەكشەنبە`,`دۈشەنبە`,`سەيشەنبە`,`چارشەنبە`,`پەيشەنبە`,`جۈمە`,`شەنبە`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەن`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشىم`,night:`كىچە`},abbreviated:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەن`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشىم`,night:`كىچە`},wide:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەن`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشىم`,night:`كىچە`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەندە`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشامدا`,night:`كىچىدە`},abbreviated:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەندە`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشامدا`,night:`كىچىدە`},wide:{am:`ئە`,pm:`چ`,midnight:`ك`,noon:`چ`,morning:`ئەتىگەندە`,afternoon:`چۈشتىن كىيىن`,evening:`ئاخشامدا`,night:`كىچىدە`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^بۇرۇن/i,/^كىيىن/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function $(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Q(e.future,t):`за `+Q(e.regular,t):e.past?Q(e.past,t):Q(e.regular,t)+` тому`:Q(e.regular,t)}}var Au={lessThanXSeconds:$({regular:{one:`менше секунди`,singularNominative:`менше {{count}} секунди`,singularGenitive:`менше {{count}} секунд`,pluralGenitive:`менше {{count}} секунд`},future:{one:`менше, ніж за секунду`,singularNominative:`менше, ніж за {{count}} секунду`,singularGenitive:`менше, ніж за {{count}} секунди`,pluralGenitive:`менше, ніж за {{count}} секунд`}}),xSeconds:$({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунди`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду тому`,singularGenitive:`{{count}} секунди тому`,pluralGenitive:`{{count}} секунд тому`},future:{singularNominative:`за {{count}} секунду`,singularGenitive:`за {{count}} секунди`,pluralGenitive:`за {{count}} секунд`}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?`за півхвилини`:`півхвилини тому`:`півхвилини`},lessThanXMinutes:$({regular:{one:`менше хвилини`,singularNominative:`менше {{count}} хвилини`,singularGenitive:`менше {{count}} хвилин`,pluralGenitive:`менше {{count}} хвилин`},future:{one:`менше, ніж за хвилину`,singularNominative:`менше, ніж за {{count}} хвилину`,singularGenitive:`менше, ніж за {{count}} хвилини`,pluralGenitive:`менше, ніж за {{count}} хвилин`}}),xMinutes:$({regular:{singularNominative:`{{count}} хвилина`,singularGenitive:`{{count}} хвилини`,pluralGenitive:`{{count}} хвилин`},past:{singularNominative:`{{count}} хвилину тому`,singularGenitive:`{{count}} хвилини тому`,pluralGenitive:`{{count}} хвилин тому`},future:{singularNominative:`за {{count}} хвилину`,singularGenitive:`за {{count}} хвилини`,pluralGenitive:`за {{count}} хвилин`}}),aboutXHours:$({regular:{singularNominative:`близько {{count}} години`,singularGenitive:`близько {{count}} годин`,pluralGenitive:`близько {{count}} годин`},future:{singularNominative:`приблизно за {{count}} годину`,singularGenitive:`приблизно за {{count}} години`,pluralGenitive:`приблизно за {{count}} годин`}}),xHours:$({regular:{singularNominative:`{{count}} годину`,singularGenitive:`{{count}} години`,pluralGenitive:`{{count}} годин`}}),xDays:$({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} днi`,pluralGenitive:`{{count}} днів`}}),aboutXWeeks:$({regular:{singularNominative:`близько {{count}} тижня`,singularGenitive:`близько {{count}} тижнів`,pluralGenitive:`близько {{count}} тижнів`},future:{singularNominative:`приблизно за {{count}} тиждень`,singularGenitive:`приблизно за {{count}} тижні`,pluralGenitive:`приблизно за {{count}} тижнів`}}),xWeeks:$({regular:{singularNominative:`{{count}} тиждень`,singularGenitive:`{{count}} тижні`,pluralGenitive:`{{count}} тижнів`}}),aboutXMonths:$({regular:{singularNominative:`близько {{count}} місяця`,singularGenitive:`близько {{count}} місяців`,pluralGenitive:`близько {{count}} місяців`},future:{singularNominative:`приблизно за {{count}} місяць`,singularGenitive:`приблизно за {{count}} місяці`,pluralGenitive:`приблизно за {{count}} місяців`}}),xMonths:$({regular:{singularNominative:`{{count}} місяць`,singularGenitive:`{{count}} місяці`,pluralGenitive:`{{count}} місяців`}}),aboutXYears:$({regular:{singularNominative:`близько {{count}} року`,singularGenitive:`близько {{count}} років`,pluralGenitive:`близько {{count}} років`},future:{singularNominative:`приблизно за {{count}} рік`,singularGenitive:`приблизно за {{count}} роки`,pluralGenitive:`приблизно за {{count}} років`}}),xYears:$({regular:{singularNominative:`{{count}} рік`,singularGenitive:`{{count}} роки`,pluralGenitive:`{{count}} років`}}),overXYears:$({regular:{singularNominative:`більше {{count}} року`,singularGenitive:`більше {{count}} років`,pluralGenitive:`більше {{count}} років`},future:{singularNominative:`більше, ніж за {{count}} рік`,singularGenitive:`більше, ніж за {{count}} роки`,pluralGenitive:`більше, ніж за {{count}} років`}}),almostXYears:$({regular:{singularNominative:`майже {{count}} рік`,singularGenitive:`майже {{count}} роки`,pluralGenitive:`майже {{count}} років`},future:{singularNominative:`майже за {{count}} рік`,singularGenitive:`майже за {{count}} роки`,pluralGenitive:`майже за {{count}} років`}})},ju=function(e,t,n){return n||={},Au[e](t,n)},Mu={date:d({formats:{full:`EEEE, do MMMM y 'р.'`,long:`do MMMM y 'р.'`,medium:`d MMM y 'р.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} 'о' {{time}}`,long:`{{date}} 'о' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Nu=[`неділю`,`понеділок`,`вівторок`,`середу`,`четвер`,`п’ятницю`,`суботу`];function Pu(e){var t=Nu[e];switch(e){case 0:case 3:case 5:case 6:return`'у минулу `+t+` о' p`;case 1:case 2:case 4:return`'у минулий `+t+` о' p`}}function Fu(e){return`'у `+Nu[e]+` о' p`}function Iu(e){var t=Nu[e];switch(e){case 0:case 3:case 5:case 6:return`'у наступну `+t+` о' p`;case 1:case 2:case 4:return`'у наступний `+t+` о' p`}}var Lu={lastWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?Fu(i):Pu(i)},yesterday:`'вчора о' p`,today:`'сьогодні о' p`,tomorrow:`'завтра о' p`,nextWeek:function(e,t,n){var r=v(e),i=r.getDay();return y(r,t,n)?Fu(i):Iu(i)},other:`P`},Ru={code:`uk`,formatDistance:ju,formatLong:Mu,formatRelative:function(e,t,n,r){var i=Lu[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=String(t?.unit),r=Number(e);return r+(n===`date`?r===3||r===23?`-є`:`-е`:n===`minute`||n===`second`||n===`hour`?`-а`:`-й`)},era:f({values:{narrow:[`до н.е.`,`н.е.`],abbreviated:[`до н. е.`,`н. е.`],wide:[`до нашої ери`,`нашої ери`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-й кв.`,`2-й кв.`,`3-й кв.`,`4-й кв.`],wide:[`1-й квартал`,`2-й квартал`,`3-й квартал`,`4-й квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`С`,`Л`,`Б`,`К`,`Т`,`Ч`,`Л`,`С`,`В`,`Ж`,`Л`,`Г`],abbreviated:[`січ.`,`лют.`,`берез.`,`квіт.`,`трав.`,`черв.`,`лип.`,`серп.`,`верес.`,`жовт.`,`листоп.`,`груд.`],wide:[`січень`,`лютий`,`березень`,`квітень`,`травень`,`червень`,`липень`,`серпень`,`вересень`,`жовтень`,`листопад`,`грудень`]},defaultWidth:`wide`,formattingValues:{narrow:[`С`,`Л`,`Б`,`К`,`Т`,`Ч`,`Л`,`С`,`В`,`Ж`,`Л`,`Г`],abbreviated:[`січ.`,`лют.`,`берез.`,`квіт.`,`трав.`,`черв.`,`лип.`,`серп.`,`верес.`,`жовт.`,`листоп.`,`груд.`],wide:[`січня`,`лютого`,`березня`,`квітня`,`травня`,`червня`,`липня`,`серпня`,`вересня`,`жовтня`,`листопада`,`грудня`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`нд`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`нед`,`пон`,`вів`,`сер`,`чтв`,`птн`,`суб`],wide:[`неділя`,`понеділок`,`вівторок`,`середа`,`четвер`,`п’ятниця`,`субота`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ДП`,pm:`ПП`,midnight:`півн.`,noon:`пол.`,morning:`ранок`,afternoon:`день`,evening:`веч.`,night:`ніч`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`півн.`,noon:`пол.`,morning:`ранок`,afternoon:`день`,evening:`веч.`,night:`ніч`},wide:{am:`ДП`,pm:`ПП`,midnight:`північ`,noon:`полудень`,morning:`ранок`,afternoon:`день`,evening:`вечір`,night:`ніч`}},defaultWidth:`any`,formattingValues:{narrow:{am:`ДП`,pm:`ПП`,midnight:`півн.`,noon:`пол.`,morning:`ранку`,afternoon:`дня`,evening:`веч.`,night:`ночі`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`півн.`,noon:`пол.`,morning:`ранку`,afternoon:`дня`,evening:`веч.`,night:`ночі`},wide:{am:`ДП`,pm:`ПП`,midnight:`північ`,noon:`полудень`,morning:`ранку`,afternoon:`дня`,evening:`веч.`,night:`ночі`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(-?(е|й|є|а|я))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},zu={lessThanXSeconds:{one:`sekunddan kam`,other:`{{count}} sekunddan kam`},xSeconds:{one:`1 sekund`,other:`{{count}} sekund`},halfAMinute:`yarim minut`,lessThanXMinutes:{one:`bir minutdan kam`,other:`{{count}} minutdan kam`},xMinutes:{one:`1 minut`,other:`{{count}} minut`},aboutXHours:{one:`tahminan 1 soat`,other:`tahminan {{count}} soat`},xHours:{one:`1 soat`,other:`{{count}} soat`},xDays:{one:`1 kun`,other:`{{count}} kun`},aboutXWeeks:{one:`tahminan 1 hafta`,other:`tahminan {{count}} hafta`},xWeeks:{one:`1 hafta`,other:`{{count}} hafta`},aboutXMonths:{one:`tahminan 1 oy`,other:`tahminan {{count}} oy`},xMonths:{one:`1 oy`,other:`{{count}} oy`},aboutXYears:{one:`tahminan 1 yil`,other:`tahminan {{count}} yil`},xYears:{one:`1 yil`,other:`{{count}} yil`},overXYears:{one:`1 yildan ko'p`,other:`{{count}} yildan ko'p`},almostXYears:{one:`deyarli 1 yil`,other:`deyarli {{count}} yil`}},Bu=function(e,t,n){var r,i=zu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` dan keyin`:r+` oldin`:r},Vu={date:d({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`h:mm:ss zzzz`,long:`h:mm:ss z`,medium:`h:mm:ss`,short:`h:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},Hu={lastWeek:`'oldingi' eeee p 'da'`,yesterday:`'kecha' p 'da'`,today:`'bugun' p 'da'`,tomorrow:`'ertaga' p 'da'`,nextWeek:`eeee p 'da'`,other:`P`},Uu={code:`uz`,formatDistance:Bu,formatLong:Vu,formatRelative:function(e,t,n,r){return Hu[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`M.A`,`M.`],abbreviated:[`M.A`,`M.`],wide:[`Miloddan Avvalgi`,`Milodiy`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`CH.1`,`CH.2`,`CH.3`,`CH.4`],wide:[`1-chi chorak`,`2-chi chorak`,`3-chi chorak`,`4-chi chorak`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Y`,`F`,`M`,`A`,`M`,`I`,`I`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Yan`,`Fev`,`Mar`,`Apr`,`May`,`Iyun`,`Iyul`,`Avg`,`Sen`,`Okt`,`Noy`,`Dek`],wide:[`Yanvar`,`Fevral`,`Mart`,`Aprel`,`May`,`Iyun`,`Iyul`,`Avgust`,`Sentabr`,`Oktabr`,`Noyabr`,`Dekabr`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Y`,`D`,`S`,`CH`,`P`,`J`,`SH`],short:[`Ya`,`Du`,`Se`,`Cho`,`Pa`,`Ju`,`Sha`],abbreviated:[`Yak`,`Dush`,`Sesh`,`Chor`,`Pay`,`Jum`,`Shan`],wide:[`Yakshanba`,`Dushanba`,`Seshanba`,`Chorshanba`,`Payshanba`,`Juma`,`Shanba`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`y.t`,noon:`p.`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`},abbreviated:{am:`AM`,pm:`PM`,midnight:`yarim tun`,noon:`peshin`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`yarim tun`,noon:`peshin`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`y.t`,noon:`p.`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`},abbreviated:{am:`AM`,pm:`PM`,midnight:`yarim tun`,noon:`peshin`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`yarim tun`,noon:`peshin`,morning:`ertalab`,afternoon:`tushdan keyin`,evening:`kechqurun`,night:`tun`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(chi)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Wu={lessThanXSeconds:{one:`1 сониядан кам`,other:`{{count}} сониядан кам`},xSeconds:{one:`1 сония`,other:`{{count}} сония`},halfAMinute:`ярим дақиқа`,lessThanXMinutes:{one:`1 дақиқадан кам`,other:`{{count}} дақиқадан кам`},xMinutes:{one:`1 дақиқа`,other:`{{count}} дақиқа`},aboutXHours:{one:`тахминан 1 соат`,other:`тахминан {{count}} соат`},xHours:{one:`1 соат`,other:`{{count}} соат`},xDays:{one:`1 кун`,other:`{{count}} кун`},aboutXWeeks:{one:`тахминан 1 хафта`,other:`тахминан {{count}} хафта`},xWeeks:{one:`1 хафта`,other:`{{count}} хафта`},aboutXMonths:{one:`тахминан 1 ой`,other:`тахминан {{count}} ой`},xMonths:{one:`1 ой`,other:`{{count}} ой`},aboutXYears:{one:`тахминан 1 йил`,other:`тахминан {{count}} йил`},xYears:{one:`1 йил`,other:`{{count}} йил`},overXYears:{one:`1 йилдан кўп`,other:`{{count}} йилдан кўп`},almostXYears:{one:`деярли 1 йил`,other:`деярли {{count}} йил`}},Gu=function(e,t,n){var r,i=Wu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`дан кейин`:r+` олдин`:r},Ku={date:d({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:d({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:d({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},qu={lastWeek:`'ўтган' eeee p 'да'`,yesterday:`'кеча' p 'да'`,today:`'бугун' p 'да'`,tomorrow:`'эртага' p 'да'`,nextWeek:`eeee p 'да'`,other:`P`},Ju={code:`uz-Cyrl`,formatDistance:Gu,formatLong:Ku,formatRelative:function(e,t,n,r){return qu[e]},localize:{ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`М.А`,`М`],abbreviated:[`М.А`,`М`],wide:[`Милоддан Аввалги`,`Милодий`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-чор.`,`2-чор.`,`3-чор.`,`4-чор.`],wide:[`1-чорак`,`2-чорак`,`3-чорак`,`4-чорак`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв`,`фев`,`мар`,`апр`,`май`,`июн`,`июл`,`авг`,`сен`,`окт`,`ноя`,`дек`],wide:[`январ`,`феврал`,`март`,`апрел`,`май`,`июн`,`июл`,`август`,`сентабр`,`октабр`,`ноябр`,`декабр`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Я`,`Д`,`С`,`Ч`,`П`,`Ж`,`Ш`],short:[`як`,`ду`,`се`,`чо`,`па`,`жу`,`ша`],abbreviated:[`якш`,`душ`,`сеш`,`чор`,`пай`,`жум`,`шан`],wide:[`якшанба`,`душанба`,`сешанба`,`чоршанба`,`пайшанба`,`жума`,`шанба`]},defaultWidth:`wide`}),dayPeriod:f({values:{any:{am:`П.О.`,pm:`П.К.`,midnight:`ярим тун`,noon:`пешин`,morning:`эрталаб`,afternoon:`пешиндан кейин`,evening:`кечаси`,night:`тун`}},defaultWidth:`any`,formattingValues:{any:{am:`П.О.`,pm:`П.К.`,midnight:`ярим тун`,noon:`пешин`,morning:`эрталаб`,afternoon:`пешиндан кейин`,evening:`кечаси`,night:`тун`}},defaultFormattingWidth:`any`})},match:{ordinalNumber:m({matchPattern:/^(\d+)(чи)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(м\.а|м\.)/i,abbreviated:/^(м\.а|м\.)/i,wide:/^(милоддан аввал|милоддан кейин)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^м/i,/^а/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-чор./i,wide:/^[1234]-чорак/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^[яфмамииасонд]/i,abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i,wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^д/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[ядсчпжш]/i,short:/^(як|ду|се|чо|па|жу|ша)/i,abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i,wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^д/i,/^с/i,/^ч/i,/^п/i,/^ж/i,/^ш/i],any:[/^як/i,/^ду/i,/^се/i,/^чор/i,/^пай/i,/^жу/i,/^шан/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^п\.о\./i,pm:/^п\.к\./i,midnight:/^ярим тун/i,noon:/^пешиндан кейин/i,morning:/эрталаб/i,afternoon:/пешиндан кейин/i,evening:/кечаси/i,night:/тун/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Yu={lessThanXSeconds:{one:`dưới 1 giây`,other:`dưới {{count}} giây`},xSeconds:{one:`1 giây`,other:`{{count}} giây`},halfAMinute:`nửa phút`,lessThanXMinutes:{one:`dưới 1 phút`,other:`dưới {{count}} phút`},xMinutes:{one:`1 phút`,other:`{{count}} phút`},aboutXHours:{one:`khoảng 1 giờ`,other:`khoảng {{count}} giờ`},xHours:{one:`1 giờ`,other:`{{count}} giờ`},xDays:{one:`1 ngày`,other:`{{count}} ngày`},aboutXWeeks:{one:`khoảng 1 tuần`,other:`khoảng {{count}} tuần`},xWeeks:{one:`1 tuần`,other:`{{count}} tuần`},aboutXMonths:{one:`khoảng 1 tháng`,other:`khoảng {{count}} tháng`},xMonths:{one:`1 tháng`,other:`{{count}} tháng`},aboutXYears:{one:`khoảng 1 năm`,other:`khoảng {{count}} năm`},xYears:{one:`1 năm`,other:`{{count}} năm`},overXYears:{one:`hơn 1 năm`,other:`hơn {{count}} năm`},almostXYears:{one:`gần 1 năm`,other:`gần {{count}} năm`}},Xu=function(e,t,n){var r,i=Yu[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+` nữa`:r+` trước`:r},Zu={date:d({formats:{full:`EEEE, 'ngày' d MMMM 'năm' y`,long:`'ngày' d MMMM 'năm' y`,medium:`d MMM 'năm' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:d({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Qu={lastWeek:`eeee 'tuần trước vào lúc' p`,yesterday:`'hôm qua vào lúc' p`,today:`'hôm nay vào lúc' p`,tomorrow:`'ngày mai vào lúc' p`,nextWeek:`eeee 'tới vào lúc' p`,other:`P`},$u={code:`vi`,formatDistance:Xu,formatLong:Zu,formatRelative:function(e,t,n,r){return Qu[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;if(r===`quarter`)switch(n){case 1:return`I`;case 2:return`II`;case 3:return`III`;case 4:return`IV`}else if(r===`day`)switch(n){case 1:return`thứ 2`;case 2:return`thứ 3`;case 3:return`thứ 4`;case 4:return`thứ 5`;case 5:return`thứ 6`;case 6:return`thứ 7`;case 7:return`chủ nhật`}else if(r===`week`)return n===1?`thứ nhất`:`thứ `+n;else if(r===`dayOfYear`)return n===1?`đầu tiên`:`thứ `+n;return String(n)},era:f({values:{narrow:[`TCN`,`SCN`],abbreviated:[`trước CN`,`sau CN`],wide:[`trước Công Nguyên`,`sau Công Nguyên`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`Quý 1`,`Quý 2`,`Quý 3`,`Quý 4`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`quý I`,`quý II`,`quý III`,`quý IV`]},defaultFormattingWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`Thg 1`,`Thg 2`,`Thg 3`,`Thg 4`,`Thg 5`,`Thg 6`,`Thg 7`,`Thg 8`,`Thg 9`,`Thg 10`,`Thg 11`,`Thg 12`],wide:[`Tháng Một`,`Tháng Hai`,`Tháng Ba`,`Tháng Tư`,`Tháng Năm`,`Tháng Sáu`,`Tháng Bảy`,`Tháng Tám`,`Tháng Chín`,`Tháng Mười`,`Tháng Mười Một`,`Tháng Mười Hai`]},defaultWidth:`wide`,formattingValues:{narrow:[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`],abbreviated:[`thg 1`,`thg 2`,`thg 3`,`thg 4`,`thg 5`,`thg 6`,`thg 7`,`thg 8`,`thg 9`,`thg 10`,`thg 11`,`thg 12`],wide:[`tháng 01`,`tháng 02`,`tháng 03`,`tháng 04`,`tháng 05`,`tháng 06`,`tháng 07`,`tháng 08`,`tháng 09`,`tháng 10`,`tháng 11`,`tháng 12`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],short:[`CN`,`Th 2`,`Th 3`,`Th 4`,`Th 5`,`Th 6`,`Th 7`],abbreviated:[`CN`,`Thứ 2`,`Thứ 3`,`Thứ 4`,`Thứ 5`,`Thứ 6`,`Thứ 7`],wide:[`Chủ Nhật`,`Thứ Hai`,`Thứ Ba`,`Thứ Tư`,`Thứ Năm`,`Thứ Sáu`,`Thứ Bảy`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`giữa trưa`,morning:`vào buổi sáng`,afternoon:`vào buổi chiều`,evening:`vào buổi tối`,night:`vào ban đêm`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},defaultParseWidth:`wide`}),day:p({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},defaultParseWidth:`wide`}),dayPeriod:p({matchPatterns:{narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},ed={lessThanXSeconds:{one:`不到 1 秒`,other:`不到 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分钟`,lessThanXMinutes:{one:`不到 1 分钟`,other:`不到 {{count}} 分钟`},xMinutes:{one:`1 分钟`,other:`{{count}} 分钟`},xHours:{one:`1 小时`,other:`{{count}} 小时`},aboutXHours:{one:`大约 1 小时`,other:`大约 {{count}} 小时`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个星期`,other:`大约 {{count}} 个星期`},xWeeks:{one:`1 个星期`,other:`{{count}} 个星期`},aboutXMonths:{one:`大约 1 个月`,other:`大约 {{count}} 个月`},xMonths:{one:`1 个月`,other:`{{count}} 个月`},aboutXYears:{one:`大约 1 年`,other:`大约 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超过 1 年`,other:`超过 {{count}} 年`},almostXYears:{one:`将近 1 年`,other:`将近 {{count}} 年`}},td=function(e,t,n){var r,i=ed[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`内`:r+`前`:r},nd={date:d({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function rd(e,t,n){return y(e,t,n)?`eeee p`:e.getTime()>t.getTime()?`'下个'eeee p`:`'上个'eeee p`}var id={lastWeek:rd,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:rd,other:`PP p`},ad={code:`zh-CN`,formatDistance:td,formatLong:nd,formatRelative:function(e,t,n,r){var i=id[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(t?.unit){case`date`:return n.toString()+`日`;case`hour`:return n.toString()+`时`;case`minute`:return n.toString()+`分`;case`second`:return n.toString()+`秒`;default:return`第 `+n.toString()}},era:f({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:f({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},od={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},sd=function(e,t,n){var r,i=od[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},cd={date:d({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ld={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},ud={code:`zh-HK`,formatDistance:sd,formatLong:cd,formatRelative:function(e,t,n,r){return ld[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:f({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:f({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`上`,pm:`下`,midnight:`午夜`,noon:`晌`,morning:`早`,afternoon:`午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`午夜`,noon:`中午`,morning:`上午`,afternoon:`下午`,evening:`晚上`,night:`夜晚`},wide:{am:`上午`,pm:`下午`,midnight:`午夜`,noon:`中午`,morning:`上午`,afternoon:`下午`,evening:`晚上`,night:`夜晚`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`午夜`,noon:`晌`,morning:`早`,afternoon:`午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`午夜`,noon:`中午`,morning:`上午`,afternoon:`下午`,evening:`晚上`,night:`夜晚`},wide:{am:`上午`,pm:`下午`,midnight:`午夜`,noon:`中午`,morning:`上午`,afternoon:`下午`,evening:`晚上`,night:`夜晚`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},dd={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},fd=function(e,t,n){var r,i=dd[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},pd={date:d({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:d({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:d({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},md={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},hd={code:`zh-TW`,formatDistance:fd,formatLong:pd,formatRelative:function(e,t,n,r){return md[e]},localize:{ordinalNumber:function(e,t){var n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:f({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:f({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:m({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:p({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:p({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:p({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},defaultParseWidth:`any`}),day:p({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:p({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},gd=ne({af:function(){return de},ar:function(){return ge},arDZ:function(){return xe},arEG:function(){return Ee},arMA:function(){return je},arSA:function(){return Ie},arTN:function(){return Ve},az:function(){return et},be:function(){return mt},beTarask:function(){return St},bg:function(){return Rt},bn:function(){return en},bs:function(){return on},ca:function(){return fn},ckb:function(){return _n},cs:function(){return Cn},cy:function(){return On},da:function(){return Nn},de:function(){return Gn},deAT:function(){return Yn},el:function(){return er},enAU:function(){return ir},enCA:function(){return or},enGB:function(){return cr},enIE:function(){return lr},enIN:function(){return ur},enNZ:function(){return dr},enUS:function(){return fr},enZA:function(){return pr},eo:function(){return vr},es:function(){return wr},et:function(){return Pr},eu:function(){return Br},faIR:function(){return Gr},fi:function(){return si},fr:function(){return yi},frCA:function(){return bi},frCH:function(){return Ci},fy:function(){return Oi},gd:function(){return Ni},gl:function(){return zi},gu:function(){return Wi},he:function(){return ua},hi:function(){return Ea},hr:function(){return ja},ht:function(){return Ia},hu:function(){return Ga},hy:function(){return Xa},id:function(){return to},is:function(){return oo},it:function(){return vo},itCH:function(){return yo},ja:function(){return wo},jaHira:function(){return ko},ka:function(){return Po},kk:function(){return Xo},km:function(){return ts},kn:function(){return ss},ko:function(){return fs},lb:function(){return Ss},lt:function(){return As},lv:function(){return Is},mk:function(){return Ws},mn:function(){return Ys},ms:function(){return ec},mt:function(){return ac},nb:function(){return uc},nl:function(){return hc},nlBE:function(){return bc},nn:function(){return Ec},oc:function(){return jc},pl:function(){return Hc},pt:function(){return qc},ptBR:function(){return Qc},ro:function(){return rl},ru:function(){return dl},se:function(){return gl},sk:function(){return kl},sl:function(){return Il},sq:function(){return Vl},sr:function(){return Kl},srLatn:function(){return Zl},sv:function(){return ru},ta:function(){return lu},te:function(){return mu},th:function(){return yu},tr:function(){return wu},ug:function(){return ku},uk:function(){return Ru},uz:function(){return Uu},uzCyrl:function(){return Ju},vi:function(){return $u},zhCN:function(){return ad},zhHK:function(){return ud},zhTW:function(){return hd}});window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),gd)}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ckb.cjs b/node_modules/date-fns/locale/ckb.cjs new file mode 100644 index 000000000..11edacce2 --- /dev/null +++ b/node_modules/date-fns/locale/ckb.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ckb = void 0; +var _index = require("./ckb/_lib/formatDistance.cjs"); +var _index2 = require("./ckb/_lib/formatLong.cjs"); +var _index3 = require("./ckb/_lib/formatRelative.cjs"); +var _index4 = require("./ckb/_lib/localize.cjs"); +var _index5 = require("./ckb/_lib/match.cjs"); + +/** + * @type {Locale} + * @category Locales + * @summary Central Kurdish locale. + * @language Central Kurdish + * @iso-639-2 kur + * @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} + */ +const ckb = (exports.ckb = { + code: "ckb", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ckb.d.cts b/node_modules/date-fns/locale/ckb.d.cts new file mode 100644 index 000000000..4d61bc901 --- /dev/null +++ b/node_modules/date-fns/locale/ckb.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @type {Locale} + * @category Locales + * @summary Central Kurdish locale. + * @language Central Kurdish + * @iso-639-2 kur + * @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} + */ +export declare const ckb: Locale; diff --git a/node_modules/date-fns/locale/ckb.d.ts b/node_modules/date-fns/locale/ckb.d.ts new file mode 100644 index 000000000..4d61bc901 --- /dev/null +++ b/node_modules/date-fns/locale/ckb.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @type {Locale} + * @category Locales + * @summary Central Kurdish locale. + * @language Central Kurdish + * @iso-639-2 kur + * @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} + */ +export declare const ckb: Locale; diff --git a/node_modules/date-fns/locale/ckb.js b/node_modules/date-fns/locale/ckb.js new file mode 100644 index 000000000..0ee310e17 --- /dev/null +++ b/node_modules/date-fns/locale/ckb.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ckb/_lib/formatDistance.js"; +import { formatLong } from "./ckb/_lib/formatLong.js"; +import { formatRelative } from "./ckb/_lib/formatRelative.js"; +import { localize } from "./ckb/_lib/localize.js"; +import { match } from "./ckb/_lib/match.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Central Kurdish locale. + * @language Central Kurdish + * @iso-639-2 kur + * @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} + */ +export const ckb = { + code: "ckb", + formatDistance, + formatLong, + formatRelative, + localize, + match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ckb; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ckb/_lib/formatDistance.cjs new file mode 100644 index 000000000..4fe071489 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کەمتر لە یەک چرکە", + other: "کەمتر لە {{count}} چرکە", + }, + + xSeconds: { + one: "1 چرکە", + other: "{{count}} چرکە", + }, + + halfAMinute: "نیو کاتژمێر", + + lessThanXMinutes: { + one: "کەمتر لە یەک خولەک", + other: "کەمتر لە {{count}} خولەک", + }, + + xMinutes: { + one: "1 خولەک", + other: "{{count}} خولەک", + }, + + aboutXHours: { + one: "دەوروبەری 1 کاتژمێر", + other: "دەوروبەری {{count}} کاتژمێر", + }, + + xHours: { + one: "1 کاتژمێر", + other: "{{count}} کاتژمێر", + }, + + xDays: { + one: "1 ڕۆژ", + other: "{{count}} ژۆژ", + }, + + aboutXWeeks: { + one: "دەوروبەری 1 هەفتە", + other: "دوروبەری {{count}} هەفتە", + }, + + xWeeks: { + one: "1 هەفتە", + other: "{{count}} هەفتە", + }, + + aboutXMonths: { + one: "داوروبەری 1 مانگ", + other: "دەوروبەری {{count}} مانگ", + }, + + xMonths: { + one: "1 مانگ", + other: "{{count}} مانگ", + }, + + aboutXYears: { + one: "دەوروبەری 1 ساڵ", + other: "دەوروبەری {{count}} ساڵ", + }, + + xYears: { + one: "1 ساڵ", + other: "{{count}} ساڵ", + }, + + overXYears: { + one: "زیاتر لە ساڵێک", + other: "زیاتر لە {{count}} ساڵ", + }, + + almostXYears: { + one: "بەنزیکەیی ساڵێک ", + other: "بەنزیکەیی {{count}} ساڵ", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "لە ماوەی " + result + "دا"; + } else { + return result + "پێش ئێستا"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatDistance.js b/node_modules/date-fns/locale/ckb/_lib/formatDistance.js new file mode 100644 index 000000000..e912b2a03 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کەمتر لە یەک چرکە", + other: "کەمتر لە {{count}} چرکە", + }, + + xSeconds: { + one: "1 چرکە", + other: "{{count}} چرکە", + }, + + halfAMinute: "نیو کاتژمێر", + + lessThanXMinutes: { + one: "کەمتر لە یەک خولەک", + other: "کەمتر لە {{count}} خولەک", + }, + + xMinutes: { + one: "1 خولەک", + other: "{{count}} خولەک", + }, + + aboutXHours: { + one: "دەوروبەری 1 کاتژمێر", + other: "دەوروبەری {{count}} کاتژمێر", + }, + + xHours: { + one: "1 کاتژمێر", + other: "{{count}} کاتژمێر", + }, + + xDays: { + one: "1 ڕۆژ", + other: "{{count}} ژۆژ", + }, + + aboutXWeeks: { + one: "دەوروبەری 1 هەفتە", + other: "دوروبەری {{count}} هەفتە", + }, + + xWeeks: { + one: "1 هەفتە", + other: "{{count}} هەفتە", + }, + + aboutXMonths: { + one: "داوروبەری 1 مانگ", + other: "دەوروبەری {{count}} مانگ", + }, + + xMonths: { + one: "1 مانگ", + other: "{{count}} مانگ", + }, + + aboutXYears: { + one: "دەوروبەری 1 ساڵ", + other: "دەوروبەری {{count}} ساڵ", + }, + + xYears: { + one: "1 ساڵ", + other: "{{count}} ساڵ", + }, + + overXYears: { + one: "زیاتر لە ساڵێک", + other: "زیاتر لە {{count}} ساڵ", + }, + + almostXYears: { + one: "بەنزیکەیی ساڵێک ", + other: "بەنزیکەیی {{count}} ساڵ", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "لە ماوەی " + result + "دا"; + } else { + return result + "پێش ئێستا"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatLong.cjs b/node_modules/date-fns/locale/ckb/_lib/formatLong.cjs new file mode 100644 index 000000000..6e68b8ae0 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'کاتژمێر' {{time}}", + long: "{{date}} 'کاتژمێر' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ckb/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ckb/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ckb/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatLong.js b/node_modules/date-fns/locale/ckb/_lib/formatLong.js new file mode 100644 index 000000000..ca779ab7a --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'کاتژمێر' {{time}}", + long: "{{date}} 'کاتژمێر' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ckb/_lib/formatRelative.cjs new file mode 100644 index 000000000..0d90f26ba --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'هەفتەی ڕابردوو' eeee 'کاتژمێر' p", + yesterday: "'دوێنێ کاتژمێر' p", + today: "'ئەمڕۆ کاتژمێر' p", + tomorrow: "'بەیانی کاتژمێر' p", + nextWeek: "eeee 'کاتژمێر' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ckb/_lib/formatRelative.js b/node_modules/date-fns/locale/ckb/_lib/formatRelative.js new file mode 100644 index 000000000..5a3892f78 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'هەفتەی ڕابردوو' eeee 'کاتژمێر' p", + yesterday: "'دوێنێ کاتژمێر' p", + today: "'ئەمڕۆ کاتژمێر' p", + tomorrow: "'بەیانی کاتژمێر' p", + nextWeek: "eeee 'کاتژمێر' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ckb/_lib/localize.cjs b/node_modules/date-fns/locale/ckb/_lib/localize.cjs new file mode 100644 index 000000000..4ff51be37 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/localize.cjs @@ -0,0 +1,193 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["پ", "د"], + abbreviated: ["پ-ز", "د-ز"], + wide: ["پێش زاین", "دوای زاین"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["چ1م", "چ2م", "چ3م", "چ4م"], + wide: ["چارەگی یەکەم", "چارەگی دووەم", "چارەگی سێیەم", "چارەگی چوارەم"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "ک-د", + "ش", + "ئا", + "ن", + "م", + "ح", + "ت", + "ئا", + "ئە", + "تش-ی", + "تش-د", + "ک-ی", + ], + + abbreviated: [ + "کان-دوو", + "شوب", + "ئاد", + "نیس", + "مایس", + "حوز", + "تەم", + "ئاب", + "ئەل", + "تش-یەک", + "تش-دوو", + "کان-یەک", + ], + + wide: [ + "کانوونی دووەم", + "شوبات", + "ئادار", + "نیسان", + "مایس", + "حوزەیران", + "تەمموز", + "ئاب", + "ئەیلول", + "تشرینی یەکەم", + "تشرینی دووەم", + "کانوونی یەکەم", + ], +}; + +const dayValues = { + narrow: ["ی-ش", "د-ش", "س-ش", "چ-ش", "پ-ش", "هە", "ش"], + short: ["یە-شە", "دوو-شە", "سێ-شە", "چو-شە", "پێ-شە", "هەی", "شە"], + abbreviated: [ + "یەک-شەم", + "دوو-شەم", + "سێ-شەم", + "چوار-شەم", + "پێنج-شەم", + "هەینی", + "شەمە", + ], + + wide: [ + "یەک شەمە", + "دوو شەمە", + "سێ شەمە", + "چوار شەمە", + "پێنج شەمە", + "هەینی", + "شەمە", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ckb/_lib/localize.d.cts b/node_modules/date-fns/locale/ckb/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ckb/_lib/localize.d.ts b/node_modules/date-fns/locale/ckb/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ckb/_lib/localize.js b/node_modules/date-fns/locale/ckb/_lib/localize.js new file mode 100644 index 000000000..14a27ef57 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/localize.js @@ -0,0 +1,190 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["پ", "د"], + abbreviated: ["پ-ز", "د-ز"], + wide: ["پێش زاین", "دوای زاین"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["چ1م", "چ2م", "چ3م", "چ4م"], + wide: ["چارەگی یەکەم", "چارەگی دووەم", "چارەگی سێیەم", "چارەگی چوارەم"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "ک-د", + "ش", + "ئا", + "ن", + "م", + "ح", + "ت", + "ئا", + "ئە", + "تش-ی", + "تش-د", + "ک-ی", + ], + + abbreviated: [ + "کان-دوو", + "شوب", + "ئاد", + "نیس", + "مایس", + "حوز", + "تەم", + "ئاب", + "ئەل", + "تش-یەک", + "تش-دوو", + "کان-یەک", + ], + + wide: [ + "کانوونی دووەم", + "شوبات", + "ئادار", + "نیسان", + "مایس", + "حوزەیران", + "تەمموز", + "ئاب", + "ئەیلول", + "تشرینی یەکەم", + "تشرینی دووەم", + "کانوونی یەکەم", + ], +}; + +const dayValues = { + narrow: ["ی-ش", "د-ش", "س-ش", "چ-ش", "پ-ش", "هە", "ش"], + short: ["یە-شە", "دوو-شە", "سێ-شە", "چو-شە", "پێ-شە", "هەی", "شە"], + abbreviated: [ + "یەک-شەم", + "دوو-شەم", + "سێ-شەم", + "چوار-شەم", + "پێنج-شەم", + "هەینی", + "شەمە", + ], + + wide: [ + "یەک شەمە", + "دوو شەمە", + "سێ شەمە", + "چوار شەمە", + "پێنج شەمە", + "هەینی", + "شەمە", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ckb/_lib/match.cjs b/node_modules/date-fns/locale/ckb/_lib/match.cjs new file mode 100644 index 000000000..59daaec6c --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(پ|د)/i, + abbreviated: /^(پ-ز|د.ز)/i, + wide: /^(پێش زاین| دوای زاین)/i, +}; +const parseEraPatterns = { + any: [/^د/g, /^پ/g], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^م[1234]چ/i, + wide: /^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i, +}; +const parseQuarterPatterns = { + wide: [/چارەگی یەکەم/, /چارەگی دووەم/, /چارەگی سيیەم/, /چارەگی چوارەم/], + + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i, + abbreviated: + /^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i, + wide: /^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ک-د/i, + /^ش/i, + /^ئا/i, + /^ن/i, + /^م/i, + /^ح/i, + /^ت/i, + /^ئا/i, + /^ئە/i, + /^تش-ی/i, + /^تش-د/i, + /^ک-ی/i, + ], + + any: [ + /^کان-دوو/i, + /^شوب/i, + /^ئاد/i, + /^نیس/i, + /^مایس/i, + /^حوز/i, + /^تەم/i, + /^ئاب/i, + /^ئەل/i, + /^تش-یەک/i, + /^تش-دوو/i, + /^|کان-یەک/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ش|ی|د|س|چ|پ|هە)/i, + short: /^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i, + abbreviated: /^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i, + wide: /^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i, + abbreviated: /^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/, + wide: /^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/, + any: /^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^د/i, + pm: /^پ/i, + midnight: /^ن-ش/i, + noon: /^ن/i, + morning: /بەیانی/i, + afternoon: /دواینیوەڕۆ/i, + evening: /ئێوارە/i, + night: /شەو/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ckb/_lib/match.d.cts b/node_modules/date-fns/locale/ckb/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ckb/_lib/match.d.ts b/node_modules/date-fns/locale/ckb/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ckb/_lib/match.js b/node_modules/date-fns/locale/ckb/_lib/match.js new file mode 100644 index 000000000..91d5aa952 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(پ|د)/i, + abbreviated: /^(پ-ز|د.ز)/i, + wide: /^(پێش زاین| دوای زاین)/i, +}; +const parseEraPatterns = { + any: [/^د/g, /^پ/g], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^م[1234]چ/i, + wide: /^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i, +}; +const parseQuarterPatterns = { + wide: [/چارەگی یەکەم/, /چارەگی دووەم/, /چارەگی سيیەم/, /چارەگی چوارەم/], + + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i, + abbreviated: + /^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i, + wide: /^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ک-د/i, + /^ش/i, + /^ئا/i, + /^ن/i, + /^م/i, + /^ح/i, + /^ت/i, + /^ئا/i, + /^ئە/i, + /^تش-ی/i, + /^تش-د/i, + /^ک-ی/i, + ], + + any: [ + /^کان-دوو/i, + /^شوب/i, + /^ئاد/i, + /^نیس/i, + /^مایس/i, + /^حوز/i, + /^تەم/i, + /^ئاب/i, + /^ئەل/i, + /^تش-یەک/i, + /^تش-دوو/i, + /^|کان-یەک/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ش|ی|د|س|چ|پ|هە)/i, + short: /^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i, + abbreviated: /^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i, + wide: /^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i, + abbreviated: /^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/, + wide: /^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/, + any: /^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/, +}; +const parseDayPeriodPatterns = { + any: { + am: /^د/i, + pm: /^پ/i, + midnight: /^ن-ش/i, + noon: /^ن/i, + morning: /بەیانی/i, + afternoon: /دواینیوەڕۆ/i, + evening: /ئێوارە/i, + night: /شەو/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ckb/cdn.js b/node_modules/date-fns/locale/ckb/cdn.js new file mode 100644 index 000000000..14ff2c6e1 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/cdn.js @@ -0,0 +1,584 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ckb/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "کەمتر لە یەک چرکە", + other: "کەمتر لە {{count}} چرکە" + }, + xSeconds: { + one: "1 چرکە", + other: "{{count}} چرکە" + }, + halfAMinute: "نیو کاتژمێر", + lessThanXMinutes: { + one: "کەمتر لە یەک خولەک", + other: "کەمتر لە {{count}} خولەک" + }, + xMinutes: { + one: "1 خولەک", + other: "{{count}} خولەک" + }, + aboutXHours: { + one: "دەوروبەری 1 کاتژمێر", + other: "دەوروبەری {{count}} کاتژمێر" + }, + xHours: { + one: "1 کاتژمێر", + other: "{{count}} کاتژمێر" + }, + xDays: { + one: "1 ڕۆژ", + other: "{{count}} ژۆژ" + }, + aboutXWeeks: { + one: "دەوروبەری 1 هەفتە", + other: "دوروبەری {{count}} هەفتە" + }, + xWeeks: { + one: "1 هەفتە", + other: "{{count}} هەفتە" + }, + aboutXMonths: { + one: "داوروبەری 1 مانگ", + other: "دەوروبەری {{count}} مانگ" + }, + xMonths: { + one: "1 مانگ", + other: "{{count}} مانگ" + }, + aboutXYears: { + one: "دەوروبەری 1 ساڵ", + other: "دەوروبەری {{count}} ساڵ" + }, + xYears: { + one: "1 ساڵ", + other: "{{count}} ساڵ" + }, + overXYears: { + one: "زیاتر لە ساڵێک", + other: "زیاتر لە {{count}} ساڵ" + }, + almostXYears: { + one: "بەنزیکەیی ساڵێک ", + other: "بەنزیکەیی {{count}} ساڵ" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "لە ماوەی " + result + "دا";else + return result + "پێش ئێستا"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'کاتژمێر' {{time}}", + long: "{{date}} 'کاتژمێر' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ckb/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'هەفتەی ڕابردوو' eeee 'کاتژمێر' p", + yesterday: "'دوێنێ کاتژمێر' p", + today: "'ئەمڕۆ کاتژمێر' p", + tomorrow: "'بەیانی کاتژمێر' p", + nextWeek: "eeee 'کاتژمێر' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ckb/_lib/localize.js +var eraValues = { + narrow: ["پ", "د"], + abbreviated: ["پ-ز", "د-ز"], + wide: ["پێش زاین", "دوای زاین"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "چ1م", + "چ2م", + "چ3م", + "چ4م"], + + wide: [ + "چارەگی یەکەم", + "چارەگی دووەم", + "چارەگی سێیەم", + "چارەگی چوارەم"] + +}; +var monthValues = { + narrow: [ + "ک-د", + "ش", + "ئا", + "ن", + "م", + "ح", + "ت", + "ئا", + "ئە", + "تش-ی", + "تش-د", + "ک-ی"], + + abbreviated: [ + "کان-دوو", + "شوب", + "ئاد", + "نیس", + "مایس", + "حوز", + "تەم", + "ئاب", + "ئەل", + "تش-یەک", + "تش-دوو", + "کان-یەک"], + + wide: [ + "کانوونی دووەم", + "شوبات", + "ئادار", + "نیسان", + "مایس", + "حوزەیران", + "تەمموز", + "ئاب", + "ئەیلول", + "تشرینی یەکەم", + "تشرینی دووەم", + "کانوونی یەکەم"] + +}; +var dayValues = { + narrow: [ + "ی-ش", + "د-ش", + "س-ش", + "چ-ش", + "پ-ش", + "هە", + "ش"], + + short: [ + "یە-شە", + "دوو-شە", + "سێ-شە", + "چو-شە", + "پێ-شە", + "هەی", + "شە"], + + abbreviated: [ + "یەک-شەم", + "دوو-شەم", + "سێ-شەم", + "چوار-شەم", + "پێنج-شەم", + "هەینی", + "شەمە"], + + wide: [ + "یەک شەمە", + "دوو شەمە", + "سێ شەمە", + "چوار شەمە", + "پێنج شەمە", + "هەینی", + "شەمە"] + +}; +var dayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو" + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو" + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "بەیانی", + afternoon: "دوای نیوەڕۆ", + evening: "ئێوارە", + night: "شەو" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "پ", + pm: "د", + midnight: "ن-ش", + noon: "ن", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا" + }, + abbreviated: { + am: "پ-ن", + pm: "د-ن", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا" + }, + wide: { + am: "پێش نیوەڕۆ", + pm: "دوای نیوەڕۆ", + midnight: "نیوە شەو", + noon: "نیوەڕۆ", + morning: "لە بەیانیدا", + afternoon: "لە دوای نیوەڕۆدا", + evening: "لە ئێوارەدا", + night: "لە شەودا" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ckb.js +/** +* @type {Locale} +* @category Locales +* @summary Central Kurdish locale. +* @language Central Kurdish +* @iso-639-2 kur +* @author Revan Sarbast [@Revan99]{@link https://github.com/Revan99} +*/ +var ckb = { + code: "ckb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(پ|د)/i, + abbreviated: /^(پ-ز|د.ز)/i, + wide: /^(پێش زاین| دوای زاین)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^د/g, /^پ/g] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^م[1234]چ/i, + wide: /^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [ + /چارەگی یەکەم/, + /چارەگی دووەم/, + /چارەگی سيیەم/, + /چارەگی چوارەم/], + + any: [ + /1/i, + /2/i, + /3/i, + /4/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i, + abbreviated: /^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i, + wide: /^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ک-د/i, + /^ش/i, + /^ئا/i, + /^ن/i, + /^م/i, + /^ح/i, + /^ت/i, + /^ئا/i, + /^ئە/i, + /^تش-ی/i, + /^تش-د/i, + /^ک-ی/i], + + any: [ + /^کان-دوو/i, + /^شوب/i, + /^ئاد/i, + /^نیس/i, + /^مایس/i, + /^حوز/i, + /^تەم/i, + /^ئاب/i, + /^ئەل/i, + /^تش-یەک/i, + /^تش-دوو/i, + /^|کان-یەک/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ش|ی|د|س|چ|پ|هە)/i, + short: /^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i, + abbreviated: /^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i, + wide: /^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i, + abbreviated: /^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/, + wide: /^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/, + any: /^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/ + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^د/i, + pm: /^پ/i, + midnight: /^ن-ش/i, + noon: /^ن/i, + morning: /بەیانی/i, + afternoon: /دواینیوەڕۆ/i, + evening: /ئێوارە/i, + night: /شەو/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ckb/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ckb: ckb }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ckb/cdn.min.js b/node_modules/date-fns/locale/ckb/cdn.min.js new file mode 100644 index 000000000..9ed741d54 --- /dev/null +++ b/node_modules/date-fns/locale/ckb/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`لە ماوەی `+r+`دا`:r+`پێش ئێستا`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'کاتژمێر' {{time}}`,long:`{{date}} 'کاتژمێر' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'هەفتەی ڕابردوو' eeee 'کاتژمێر' p`,yesterday:`'دوێنێ کاتژمێر' p`,today:`'ئەمڕۆ کاتژمێر' p`,tomorrow:`'بەیانی کاتژمێر' p`,nextWeek:`eeee 'کاتژمێر' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`پ`,`د`],abbreviated:[`پ-ز`,`د-ز`],wide:[`پێش زاین`,`دوای زاین`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`چ1م`,`چ2م`,`چ3م`,`چ4م`],wide:[`چارەگی یەکەم`,`چارەگی دووەم`,`چارەگی سێیەم`,`چارەگی چوارەم`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ک-د`,`ش`,`ئا`,`ن`,`م`,`ح`,`ت`,`ئا`,`ئە`,`تش-ی`,`تش-د`,`ک-ی`],abbreviated:[`کان-دوو`,`شوب`,`ئاد`,`نیس`,`مایس`,`حوز`,`تەم`,`ئاب`,`ئەل`,`تش-یەک`,`تش-دوو`,`کان-یەک`],wide:[`کانوونی دووەم`,`شوبات`,`ئادار`,`نیسان`,`مایس`,`حوزەیران`,`تەمموز`,`ئاب`,`ئەیلول`,`تشرینی یەکەم`,`تشرینی دووەم`,`کانوونی یەکەم`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ی-ش`,`د-ش`,`س-ش`,`چ-ش`,`پ-ش`,`هە`,`ش`],short:[`یە-شە`,`دوو-شە`,`سێ-شە`,`چو-شە`,`پێ-شە`,`هەی`,`شە`],abbreviated:[`یەک-شەم`,`دوو-شەم`,`سێ-شەم`,`چوار-شەم`,`پێنج-شەم`,`هەینی`,`شەمە`],wide:[`یەک شەمە`,`دوو شەمە`,`سێ شەمە`,`چوار شەمە`,`پێنج شەمە`,`هەینی`,`شەمە`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`پ`,pm:`د`,midnight:`ن-ش`,noon:`ن`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`},abbreviated:{am:`پ-ن`,pm:`د-ن`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`},wide:{am:`پێش نیوەڕۆ`,pm:`دوای نیوەڕۆ`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`بەیانی`,afternoon:`دوای نیوەڕۆ`,evening:`ئێوارە`,night:`شەو`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`پ`,pm:`د`,midnight:`ن-ش`,noon:`ن`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`},abbreviated:{am:`پ-ن`,pm:`د-ن`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`},wide:{am:`پێش نیوەڕۆ`,pm:`دوای نیوەڕۆ`,midnight:`نیوە شەو`,noon:`نیوەڕۆ`,morning:`لە بەیانیدا`,afternoon:`لە دوای نیوەڕۆدا`,evening:`لە ئێوارەدا`,night:`لە شەودا`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ckb`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(پ|د)/i,abbreviated:/^(پ-ز|د.ز)/i,wide:/^(پێش زاین| دوای زاین)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^د/g,/^پ/g]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^م[1234]چ/i,wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/چارەگی یەکەم/,/چارەگی دووەم/,/چارەگی سيیەم/,/چارەگی چوارەم/],any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i,abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i,wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ک-د/i,/^ش/i,/^ئا/i,/^ن/i,/^م/i,/^ح/i,/^ت/i,/^ئا/i,/^ئە/i,/^تش-ی/i,/^تش-د/i,/^ک-ی/i],any:[/^کان-دوو/i,/^شوب/i,/^ئاد/i,/^نیس/i,/^مایس/i,/^حوز/i,/^تەم/i,/^ئاب/i,/^ئەل/i,/^تش-یەک/i,/^تش-دوو/i,/^|کان-یەک/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(ش|ی|د|س|چ|پ|هە)/i,short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i,abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i,wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i,abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/,wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/,any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^د/i,pm:/^پ/i,midnight:/^ن-ش/i,noon:/^ن/i,morning:/بەیانی/i,afternoon:/دواینیوەڕۆ/i,evening:/ئێوارە/i,night:/شەو/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ckb:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs.cjs b/node_modules/date-fns/locale/cs.cjs new file mode 100644 index 000000000..c6d57603a --- /dev/null +++ b/node_modules/date-fns/locale/cs.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.cs = void 0; +var _index = require("./cs/_lib/formatDistance.cjs"); +var _index2 = require("./cs/_lib/formatLong.cjs"); +var _index3 = require("./cs/_lib/formatRelative.cjs"); +var _index4 = require("./cs/_lib/localize.cjs"); +var _index5 = require("./cs/_lib/match.cjs"); + +/** + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus](https://github.com/davidrus) + * @author Pavel Hrách [@SilenY](https://github.com/SilenY) + * @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) + */ +const cs = (exports.cs = { + code: "cs", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/cs.d.cts b/node_modules/date-fns/locale/cs.d.cts new file mode 100644 index 000000000..a68078020 --- /dev/null +++ b/node_modules/date-fns/locale/cs.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus](https://github.com/davidrus) + * @author Pavel Hrách [@SilenY](https://github.com/SilenY) + * @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) + */ +export declare const cs: Locale; diff --git a/node_modules/date-fns/locale/cs.d.ts b/node_modules/date-fns/locale/cs.d.ts new file mode 100644 index 000000000..a68078020 --- /dev/null +++ b/node_modules/date-fns/locale/cs.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus](https://github.com/davidrus) + * @author Pavel Hrách [@SilenY](https://github.com/SilenY) + * @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) + */ +export declare const cs: Locale; diff --git a/node_modules/date-fns/locale/cs.js b/node_modules/date-fns/locale/cs.js new file mode 100644 index 000000000..c7c304b5a --- /dev/null +++ b/node_modules/date-fns/locale/cs.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./cs/_lib/formatDistance.js"; +import { formatLong } from "./cs/_lib/formatLong.js"; +import { formatRelative } from "./cs/_lib/formatRelative.js"; +import { localize } from "./cs/_lib/localize.js"; +import { match } from "./cs/_lib/match.js"; + +/** + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus](https://github.com/davidrus) + * @author Pavel Hrách [@SilenY](https://github.com/SilenY) + * @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) + */ +export const cs = { + code: "cs", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default cs; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.cjs b/node_modules/date-fns/locale/cs/_lib/formatDistance.cjs new file mode 100644 index 000000000..102b356e3 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.cjs @@ -0,0 +1,324 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "méně než 1 sekunda", + past: "před méně než 1 sekundou", + future: "za méně než 1 sekundu", + }, + few: { + regular: "méně než {{count}} sekundy", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekundy", + }, + many: { + regular: "méně než {{count}} sekund", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekund", + }, + }, + + xSeconds: { + one: { + regular: "1 sekunda", + past: "před 1 sekundou", + future: "za 1 sekundu", + }, + few: { + regular: "{{count}} sekundy", + past: "před {{count}} sekundami", + future: "za {{count}} sekundy", + }, + many: { + regular: "{{count}} sekund", + past: "před {{count}} sekundami", + future: "za {{count}} sekund", + }, + }, + + halfAMinute: { + type: "other", + other: { + regular: "půl minuty", + past: "před půl minutou", + future: "za půl minuty", + }, + }, + + lessThanXMinutes: { + one: { + regular: "méně než 1 minuta", + past: "před méně než 1 minutou", + future: "za méně než 1 minutu", + }, + few: { + regular: "méně než {{count}} minuty", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minuty", + }, + many: { + regular: "méně než {{count}} minut", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minut", + }, + }, + + xMinutes: { + one: { + regular: "1 minuta", + past: "před 1 minutou", + future: "za 1 minutu", + }, + few: { + regular: "{{count}} minuty", + past: "před {{count}} minutami", + future: "za {{count}} minuty", + }, + many: { + regular: "{{count}} minut", + past: "před {{count}} minutami", + future: "za {{count}} minut", + }, + }, + + aboutXHours: { + one: { + regular: "přibližně 1 hodina", + past: "přibližně před 1 hodinou", + future: "přibližně za 1 hodinu", + }, + few: { + regular: "přibližně {{count}} hodiny", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodiny", + }, + many: { + regular: "přibližně {{count}} hodin", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodin", + }, + }, + + xHours: { + one: { + regular: "1 hodina", + past: "před 1 hodinou", + future: "za 1 hodinu", + }, + few: { + regular: "{{count}} hodiny", + past: "před {{count}} hodinami", + future: "za {{count}} hodiny", + }, + many: { + regular: "{{count}} hodin", + past: "před {{count}} hodinami", + future: "za {{count}} hodin", + }, + }, + + xDays: { + one: { + regular: "1 den", + past: "před 1 dnem", + future: "za 1 den", + }, + few: { + regular: "{{count}} dny", + past: "před {{count}} dny", + future: "za {{count}} dny", + }, + many: { + regular: "{{count}} dní", + past: "před {{count}} dny", + future: "za {{count}} dní", + }, + }, + + aboutXWeeks: { + one: { + regular: "přibližně 1 týden", + past: "přibližně před 1 týdnem", + future: "přibližně za 1 týden", + }, + + few: { + regular: "přibližně {{count}} týdny", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdny", + }, + + many: { + regular: "přibližně {{count}} týdnů", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdnů", + }, + }, + + xWeeks: { + one: { + regular: "1 týden", + past: "před 1 týdnem", + future: "za 1 týden", + }, + + few: { + regular: "{{count}} týdny", + past: "před {{count}} týdny", + future: "za {{count}} týdny", + }, + + many: { + regular: "{{count}} týdnů", + past: "před {{count}} týdny", + future: "za {{count}} týdnů", + }, + }, + + aboutXMonths: { + one: { + regular: "přibližně 1 měsíc", + past: "přibližně před 1 měsícem", + future: "přibližně za 1 měsíc", + }, + + few: { + regular: "přibližně {{count}} měsíce", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíce", + }, + + many: { + regular: "přibližně {{count}} měsíců", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíců", + }, + }, + + xMonths: { + one: { + regular: "1 měsíc", + past: "před 1 měsícem", + future: "za 1 měsíc", + }, + + few: { + regular: "{{count}} měsíce", + past: "před {{count}} měsíci", + future: "za {{count}} měsíce", + }, + + many: { + regular: "{{count}} měsíců", + past: "před {{count}} měsíci", + future: "za {{count}} měsíců", + }, + }, + + aboutXYears: { + one: { + regular: "přibližně 1 rok", + past: "přibližně před 1 rokem", + future: "přibližně za 1 rok", + }, + few: { + regular: "přibližně {{count}} roky", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roky", + }, + many: { + regular: "přibližně {{count}} roků", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roků", + }, + }, + + xYears: { + one: { + regular: "1 rok", + past: "před 1 rokem", + future: "za 1 rok", + }, + few: { + regular: "{{count}} roky", + past: "před {{count}} roky", + future: "za {{count}} roky", + }, + many: { + regular: "{{count}} roků", + past: "před {{count}} roky", + future: "za {{count}} roků", + }, + }, + + overXYears: { + one: { + regular: "více než 1 rok", + past: "před více než 1 rokem", + future: "za více než 1 rok", + }, + few: { + regular: "více než {{count}} roky", + past: "před více než {{count}} roky", + future: "za více než {{count}} roky", + }, + many: { + regular: "více než {{count}} roků", + past: "před více než {{count}} roky", + future: "za více než {{count}} roků", + }, + }, + + almostXYears: { + one: { + regular: "skoro 1 rok", + past: "skoro před 1 rokem", + future: "skoro za 1 rok", + }, + few: { + regular: "skoro {{count}} roky", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roky", + }, + many: { + regular: "skoro {{count}} roků", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roků", + }, + }, +}; + +const formatDistance = (token, count, options) => { + let pluralResult; + + const tokenValue = formatDistanceLocale[token]; + + // cs pluralization + if (tokenValue.type === "other") { + pluralResult = tokenValue.other; + } else if (count === 1) { + pluralResult = tokenValue.one; + } else if (count > 1 && count < 5) { + pluralResult = tokenValue.few; + } else { + pluralResult = tokenValue.many; + } + + // times + const suffixExist = options?.addSuffix === true; + const comparison = options?.comparison; + + let timeResult; + if (suffixExist && comparison === -1) { + timeResult = pluralResult.past; + } else if (suffixExist && comparison === 1) { + timeResult = pluralResult.future; + } else { + timeResult = pluralResult.regular; + } + + return timeResult.replace("{{count}}", String(count)); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance.js b/node_modules/date-fns/locale/cs/_lib/formatDistance.js new file mode 100644 index 000000000..2052f0aff --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance.js @@ -0,0 +1,320 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "méně než 1 sekunda", + past: "před méně než 1 sekundou", + future: "za méně než 1 sekundu", + }, + few: { + regular: "méně než {{count}} sekundy", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekundy", + }, + many: { + regular: "méně než {{count}} sekund", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekund", + }, + }, + + xSeconds: { + one: { + regular: "1 sekunda", + past: "před 1 sekundou", + future: "za 1 sekundu", + }, + few: { + regular: "{{count}} sekundy", + past: "před {{count}} sekundami", + future: "za {{count}} sekundy", + }, + many: { + regular: "{{count}} sekund", + past: "před {{count}} sekundami", + future: "za {{count}} sekund", + }, + }, + + halfAMinute: { + type: "other", + other: { + regular: "půl minuty", + past: "před půl minutou", + future: "za půl minuty", + }, + }, + + lessThanXMinutes: { + one: { + regular: "méně než 1 minuta", + past: "před méně než 1 minutou", + future: "za méně než 1 minutu", + }, + few: { + regular: "méně než {{count}} minuty", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minuty", + }, + many: { + regular: "méně než {{count}} minut", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minut", + }, + }, + + xMinutes: { + one: { + regular: "1 minuta", + past: "před 1 minutou", + future: "za 1 minutu", + }, + few: { + regular: "{{count}} minuty", + past: "před {{count}} minutami", + future: "za {{count}} minuty", + }, + many: { + regular: "{{count}} minut", + past: "před {{count}} minutami", + future: "za {{count}} minut", + }, + }, + + aboutXHours: { + one: { + regular: "přibližně 1 hodina", + past: "přibližně před 1 hodinou", + future: "přibližně za 1 hodinu", + }, + few: { + regular: "přibližně {{count}} hodiny", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodiny", + }, + many: { + regular: "přibližně {{count}} hodin", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodin", + }, + }, + + xHours: { + one: { + regular: "1 hodina", + past: "před 1 hodinou", + future: "za 1 hodinu", + }, + few: { + regular: "{{count}} hodiny", + past: "před {{count}} hodinami", + future: "za {{count}} hodiny", + }, + many: { + regular: "{{count}} hodin", + past: "před {{count}} hodinami", + future: "za {{count}} hodin", + }, + }, + + xDays: { + one: { + regular: "1 den", + past: "před 1 dnem", + future: "za 1 den", + }, + few: { + regular: "{{count}} dny", + past: "před {{count}} dny", + future: "za {{count}} dny", + }, + many: { + regular: "{{count}} dní", + past: "před {{count}} dny", + future: "za {{count}} dní", + }, + }, + + aboutXWeeks: { + one: { + regular: "přibližně 1 týden", + past: "přibližně před 1 týdnem", + future: "přibližně za 1 týden", + }, + + few: { + regular: "přibližně {{count}} týdny", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdny", + }, + + many: { + regular: "přibližně {{count}} týdnů", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdnů", + }, + }, + + xWeeks: { + one: { + regular: "1 týden", + past: "před 1 týdnem", + future: "za 1 týden", + }, + + few: { + regular: "{{count}} týdny", + past: "před {{count}} týdny", + future: "za {{count}} týdny", + }, + + many: { + regular: "{{count}} týdnů", + past: "před {{count}} týdny", + future: "za {{count}} týdnů", + }, + }, + + aboutXMonths: { + one: { + regular: "přibližně 1 měsíc", + past: "přibližně před 1 měsícem", + future: "přibližně za 1 měsíc", + }, + + few: { + regular: "přibližně {{count}} měsíce", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíce", + }, + + many: { + regular: "přibližně {{count}} měsíců", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíců", + }, + }, + + xMonths: { + one: { + regular: "1 měsíc", + past: "před 1 měsícem", + future: "za 1 měsíc", + }, + + few: { + regular: "{{count}} měsíce", + past: "před {{count}} měsíci", + future: "za {{count}} měsíce", + }, + + many: { + regular: "{{count}} měsíců", + past: "před {{count}} měsíci", + future: "za {{count}} měsíců", + }, + }, + + aboutXYears: { + one: { + regular: "přibližně 1 rok", + past: "přibližně před 1 rokem", + future: "přibližně za 1 rok", + }, + few: { + regular: "přibližně {{count}} roky", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roky", + }, + many: { + regular: "přibližně {{count}} roků", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roků", + }, + }, + + xYears: { + one: { + regular: "1 rok", + past: "před 1 rokem", + future: "za 1 rok", + }, + few: { + regular: "{{count}} roky", + past: "před {{count}} roky", + future: "za {{count}} roky", + }, + many: { + regular: "{{count}} roků", + past: "před {{count}} roky", + future: "za {{count}} roků", + }, + }, + + overXYears: { + one: { + regular: "více než 1 rok", + past: "před více než 1 rokem", + future: "za více než 1 rok", + }, + few: { + regular: "více než {{count}} roky", + past: "před více než {{count}} roky", + future: "za více než {{count}} roky", + }, + many: { + regular: "více než {{count}} roků", + past: "před více než {{count}} roky", + future: "za více než {{count}} roků", + }, + }, + + almostXYears: { + one: { + regular: "skoro 1 rok", + past: "skoro před 1 rokem", + future: "skoro za 1 rok", + }, + few: { + regular: "skoro {{count}} roky", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roky", + }, + many: { + regular: "skoro {{count}} roků", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roků", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + let pluralResult; + + const tokenValue = formatDistanceLocale[token]; + + // cs pluralization + if (tokenValue.type === "other") { + pluralResult = tokenValue.other; + } else if (count === 1) { + pluralResult = tokenValue.one; + } else if (count > 1 && count < 5) { + pluralResult = tokenValue.few; + } else { + pluralResult = tokenValue.many; + } + + // times + const suffixExist = options?.addSuffix === true; + const comparison = options?.comparison; + + let timeResult; + if (suffixExist && comparison === -1) { + timeResult = pluralResult.past; + } else if (suffixExist && comparison === 1) { + timeResult = pluralResult.future; + } else { + timeResult = pluralResult.regular; + } + + return timeResult.replace("{{count}}", String(count)); +}; diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong.cjs b/node_modules/date-fns/locale/cs/_lib/formatLong.cjs new file mode 100644 index 000000000..a58c37158 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM yyyy", + long: "d. MMMM yyyy", + medium: "d. M. yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'v' {{time}}", + long: "{{date}} 'v' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong.d.cts b/node_modules/date-fns/locale/cs/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong.d.ts b/node_modules/date-fns/locale/cs/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong.js b/node_modules/date-fns/locale/cs/_lib/formatLong.js new file mode 100644 index 000000000..e09b02faf --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM yyyy", + long: "d. MMMM yyyy", + medium: "d. M. yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'v' {{time}}", + long: "{{date}} 'v' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative.cjs b/node_modules/date-fns/locale/cs/_lib/formatRelative.cjs new file mode 100644 index 000000000..33e62fdee --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative.cjs @@ -0,0 +1,35 @@ +"use strict"; +exports.formatRelative = void 0; + +const accusativeWeekdays = [ + "neděli", + "pondělí", + "úterý", + "středu", + "čtvrtek", + "pátek", + "sobotu", +]; + +const formatRelativeLocale = { + lastWeek: "'poslední' eeee 've' p", + yesterday: "'včera v' p", + today: "'dnes v' p", + tomorrow: "'zítra v' p", + nextWeek: (date) => { + const day = date.getDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + other: "P", +}; + +const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative.js b/node_modules/date-fns/locale/cs/_lib/formatRelative.js new file mode 100644 index 000000000..536bc09eb --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative.js @@ -0,0 +1,31 @@ +const accusativeWeekdays = [ + "neděli", + "pondělí", + "úterý", + "středu", + "čtvrtek", + "pátek", + "sobotu", +]; + +const formatRelativeLocale = { + lastWeek: "'poslední' eeee 've' p", + yesterday: "'včera v' p", + today: "'dnes v' p", + tomorrow: "'zítra v' p", + nextWeek: (date) => { + const day = date.getDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + other: "P", +}; + +export const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/cs/_lib/localize.cjs b/node_modules/date-fns/locale/cs/_lib/localize.cjs new file mode 100644 index 000000000..cb9da430c --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/localize.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["př. n. l.", "n. l."], + abbreviated: ["př. n. l.", "n. l."], + wide: ["před naším letopočtem", "našeho letopočtu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"], + + wide: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"], +}; + +const monthValues = { + narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"], + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro", + ], + + wide: [ + "leden", + "únor", + "březen", + "duben", + "květen", + "červen", + "červenec", + "srpen", + "září", + "říjen", + "listopad", + "prosinec", + ], +}; + +const formattingMonthValues = { + narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"], + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro", + ], + + wide: [ + "ledna", + "února", + "března", + "dubna", + "května", + "června", + "července", + "srpna", + "září", + "října", + "listopadu", + "prosince", + ], +}; + +const dayValues = { + narrow: ["ne", "po", "út", "st", "čt", "pá", "so"], + short: ["ne", "po", "út", "st", "čt", "pá", "so"], + abbreviated: ["ned", "pon", "úte", "stř", "čtv", "pát", "sob"], + wide: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], +}; + +const dayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/cs/_lib/localize.d.cts b/node_modules/date-fns/locale/cs/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cs/_lib/localize.d.ts b/node_modules/date-fns/locale/cs/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cs/_lib/localize.js b/node_modules/date-fns/locale/cs/_lib/localize.js new file mode 100644 index 000000000..ee1f6abe7 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/localize.js @@ -0,0 +1,192 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["př. n. l.", "n. l."], + abbreviated: ["př. n. l.", "n. l."], + wide: ["před naším letopočtem", "našeho letopočtu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"], + + wide: ["1. čtvrtletí", "2. čtvrtletí", "3. čtvrtletí", "4. čtvrtletí"], +}; + +const monthValues = { + narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"], + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro", + ], + + wide: [ + "leden", + "únor", + "březen", + "duben", + "květen", + "červen", + "červenec", + "srpen", + "září", + "říjen", + "listopad", + "prosinec", + ], +}; + +const formattingMonthValues = { + narrow: ["L", "Ú", "B", "D", "K", "Č", "Č", "S", "Z", "Ř", "L", "P"], + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro", + ], + + wide: [ + "ledna", + "února", + "března", + "dubna", + "května", + "června", + "července", + "srpna", + "září", + "října", + "listopadu", + "prosince", + ], +}; + +const dayValues = { + narrow: ["ne", "po", "út", "st", "čt", "pá", "so"], + short: ["ne", "po", "út", "st", "čt", "pá", "so"], + abbreviated: ["ned", "pon", "úte", "stř", "čtv", "pát", "sob"], + wide: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], +}; + +const dayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/cs/_lib/match.cjs b/node_modules/date-fns/locale/cs/_lib/match.cjs new file mode 100644 index 000000000..4a4144640 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i, +}; + +const parseEraPatterns = { + any: [/^p[řr]/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i, + wide: /^[1234]\. [čc]tvrtlet[íi]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[lúubdkčcszřrlp]/i, + abbreviated: + /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, + wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^l/i, + /^[úu]/i, + /^b/i, + /^d/i, + /^k/i, + /^[čc]/i, + /^[čc]/i, + /^s/i, + /^z/i, + /^[řr]/i, + /^l/i, + /^p/i, + ], + + any: [ + /^led/i, + /^[úu]n/i, + /^b[řr]e/i, + /^dub/i, + /^kv[ěe]/i, + /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, + /^[čc]vc|[čc]erven(ec|ce)/i, + /^srp/i, + /^z[áa][řr]/i, + /^[řr][íi]j/i, + /^lis/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npuúsčps]/i, + short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, + abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, + wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i, +}; + +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i], + any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^dop/i, + pm: /^odp/i, + midnight: /^p[ůu]lnoc/i, + noon: /^poledne/i, + morning: /r[áa]no/i, + afternoon: /odpoledne/i, + evening: /ve[čc]er/i, + night: /noc/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/cs/_lib/match.d.cts b/node_modules/date-fns/locale/cs/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cs/_lib/match.d.ts b/node_modules/date-fns/locale/cs/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cs/_lib/match.js b/node_modules/date-fns/locale/cs/_lib/match.js new file mode 100644 index 000000000..ebafd3a10 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i, +}; + +const parseEraPatterns = { + any: [/^p[řr]/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i, + wide: /^[1234]\. [čc]tvrtlet[íi]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[lúubdkčcszřrlp]/i, + abbreviated: + /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, + wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^l/i, + /^[úu]/i, + /^b/i, + /^d/i, + /^k/i, + /^[čc]/i, + /^[čc]/i, + /^s/i, + /^z/i, + /^[řr]/i, + /^l/i, + /^p/i, + ], + + any: [ + /^led/i, + /^[úu]n/i, + /^b[řr]e/i, + /^dub/i, + /^kv[ěe]/i, + /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, + /^[čc]vc|[čc]erven(ec|ce)/i, + /^srp/i, + /^z[áa][řr]/i, + /^[řr][íi]j/i, + /^lis/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npuúsčps]/i, + short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, + abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, + wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i, +}; + +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i], + any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^dop/i, + pm: /^odp/i, + midnight: /^p[ůu]lnoc/i, + noon: /^poledne/i, + morning: /r[áa]no/i, + afternoon: /odpoledne/i, + evening: /ve[čc]er/i, + night: /noc/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/cs/cdn.js b/node_modules/date-fns/locale/cs/cdn.js new file mode 100644 index 000000000..6ad372d7c --- /dev/null +++ b/node_modules/date-fns/locale/cs/cdn.js @@ -0,0 +1,840 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/cs/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "méně než 1 sekunda", + past: "před méně než 1 sekundou", + future: "za méně než 1 sekundu" + }, + few: { + regular: "méně než {{count}} sekundy", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekundy" + }, + many: { + regular: "méně než {{count}} sekund", + past: "před méně než {{count}} sekundami", + future: "za méně než {{count}} sekund" + } + }, + xSeconds: { + one: { + regular: "1 sekunda", + past: "před 1 sekundou", + future: "za 1 sekundu" + }, + few: { + regular: "{{count}} sekundy", + past: "před {{count}} sekundami", + future: "za {{count}} sekundy" + }, + many: { + regular: "{{count}} sekund", + past: "před {{count}} sekundami", + future: "za {{count}} sekund" + } + }, + halfAMinute: { + type: "other", + other: { + regular: "půl minuty", + past: "před půl minutou", + future: "za půl minuty" + } + }, + lessThanXMinutes: { + one: { + regular: "méně než 1 minuta", + past: "před méně než 1 minutou", + future: "za méně než 1 minutu" + }, + few: { + regular: "méně než {{count}} minuty", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minuty" + }, + many: { + regular: "méně než {{count}} minut", + past: "před méně než {{count}} minutami", + future: "za méně než {{count}} minut" + } + }, + xMinutes: { + one: { + regular: "1 minuta", + past: "před 1 minutou", + future: "za 1 minutu" + }, + few: { + regular: "{{count}} minuty", + past: "před {{count}} minutami", + future: "za {{count}} minuty" + }, + many: { + regular: "{{count}} minut", + past: "před {{count}} minutami", + future: "za {{count}} minut" + } + }, + aboutXHours: { + one: { + regular: "přibližně 1 hodina", + past: "přibližně před 1 hodinou", + future: "přibližně za 1 hodinu" + }, + few: { + regular: "přibližně {{count}} hodiny", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodiny" + }, + many: { + regular: "přibližně {{count}} hodin", + past: "přibližně před {{count}} hodinami", + future: "přibližně za {{count}} hodin" + } + }, + xHours: { + one: { + regular: "1 hodina", + past: "před 1 hodinou", + future: "za 1 hodinu" + }, + few: { + regular: "{{count}} hodiny", + past: "před {{count}} hodinami", + future: "za {{count}} hodiny" + }, + many: { + regular: "{{count}} hodin", + past: "před {{count}} hodinami", + future: "za {{count}} hodin" + } + }, + xDays: { + one: { + regular: "1 den", + past: "před 1 dnem", + future: "za 1 den" + }, + few: { + regular: "{{count}} dny", + past: "před {{count}} dny", + future: "za {{count}} dny" + }, + many: { + regular: "{{count}} dní", + past: "před {{count}} dny", + future: "za {{count}} dní" + } + }, + aboutXWeeks: { + one: { + regular: "přibližně 1 týden", + past: "přibližně před 1 týdnem", + future: "přibližně za 1 týden" + }, + few: { + regular: "přibližně {{count}} týdny", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdny" + }, + many: { + regular: "přibližně {{count}} týdnů", + past: "přibližně před {{count}} týdny", + future: "přibližně za {{count}} týdnů" + } + }, + xWeeks: { + one: { + regular: "1 týden", + past: "před 1 týdnem", + future: "za 1 týden" + }, + few: { + regular: "{{count}} týdny", + past: "před {{count}} týdny", + future: "za {{count}} týdny" + }, + many: { + regular: "{{count}} týdnů", + past: "před {{count}} týdny", + future: "za {{count}} týdnů" + } + }, + aboutXMonths: { + one: { + regular: "přibližně 1 měsíc", + past: "přibližně před 1 měsícem", + future: "přibližně za 1 měsíc" + }, + few: { + regular: "přibližně {{count}} měsíce", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíce" + }, + many: { + regular: "přibližně {{count}} měsíců", + past: "přibližně před {{count}} měsíci", + future: "přibližně za {{count}} měsíců" + } + }, + xMonths: { + one: { + regular: "1 měsíc", + past: "před 1 měsícem", + future: "za 1 měsíc" + }, + few: { + regular: "{{count}} měsíce", + past: "před {{count}} měsíci", + future: "za {{count}} měsíce" + }, + many: { + regular: "{{count}} měsíců", + past: "před {{count}} měsíci", + future: "za {{count}} měsíců" + } + }, + aboutXYears: { + one: { + regular: "přibližně 1 rok", + past: "přibližně před 1 rokem", + future: "přibližně za 1 rok" + }, + few: { + regular: "přibližně {{count}} roky", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roky" + }, + many: { + regular: "přibližně {{count}} roků", + past: "přibližně před {{count}} roky", + future: "přibližně za {{count}} roků" + } + }, + xYears: { + one: { + regular: "1 rok", + past: "před 1 rokem", + future: "za 1 rok" + }, + few: { + regular: "{{count}} roky", + past: "před {{count}} roky", + future: "za {{count}} roky" + }, + many: { + regular: "{{count}} roků", + past: "před {{count}} roky", + future: "za {{count}} roků" + } + }, + overXYears: { + one: { + regular: "více než 1 rok", + past: "před více než 1 rokem", + future: "za více než 1 rok" + }, + few: { + regular: "více než {{count}} roky", + past: "před více než {{count}} roky", + future: "za více než {{count}} roky" + }, + many: { + regular: "více než {{count}} roků", + past: "před více než {{count}} roky", + future: "za více než {{count}} roků" + } + }, + almostXYears: { + one: { + regular: "skoro 1 rok", + past: "skoro před 1 rokem", + future: "skoro za 1 rok" + }, + few: { + regular: "skoro {{count}} roky", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roky" + }, + many: { + regular: "skoro {{count}} roků", + past: "skoro před {{count}} roky", + future: "skoro za {{count}} roků" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var pluralResult; + var tokenValue = formatDistanceLocale[token]; + if (tokenValue.type === "other") pluralResult = tokenValue.other;else + if (count === 1) pluralResult = tokenValue.one;else + if (count > 1 && count < 5) pluralResult = tokenValue.few;else + pluralResult = tokenValue.many; + var suffixExist = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var comparison = options === null || options === void 0 ? void 0 : options.comparison; + var timeResult; + if (suffixExist && comparison === -1) timeResult = pluralResult.past;else + if (suffixExist && comparison === 1) timeResult = pluralResult.future;else + timeResult = pluralResult.regular; + return timeResult.replace("{{count}}", String(count)); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM yyyy", + long: "d. MMMM yyyy", + medium: "d. M. yyyy", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'v' {{time}}", + long: "{{date}} 'v' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/cs/_lib/formatRelative.js +var accusativeWeekdays = [ +"neděli", +"pondělí", +"úterý", +"středu", +"čtvrtek", +"pátek", +"sobotu"]; + +var formatRelativeLocale = { + lastWeek: "'poslední' eeee 've' p", + yesterday: "'včera v' p", + today: "'dnes v' p", + tomorrow: "'zítra v' p", + nextWeek: function nextWeek(date) { + return "'v " + accusativeWeekdays[date.getDay()] + " o' p"; + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/cs/_lib/localize.js +var eraValues = { + narrow: ["př. n. l.", "n. l."], + abbreviated: ["př. n. l.", "n. l."], + wide: ["před naším letopočtem", "našeho letopočtu"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí"], + + wide: [ + "1. čtvrtletí", + "2. čtvrtletí", + "3. čtvrtletí", + "4. čtvrtletí"] + +}; +var monthValues = { + narrow: [ + "L", + "Ú", + "B", + "D", + "K", + "Č", + "Č", + "S", + "Z", + "Ř", + "L", + "P"], + + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro"], + + wide: [ + "leden", + "únor", + "březen", + "duben", + "květen", + "červen", + "červenec", + "srpen", + "září", + "říjen", + "listopad", + "prosinec"] + +}; +var formattingMonthValues = { + narrow: [ + "L", + "Ú", + "B", + "D", + "K", + "Č", + "Č", + "S", + "Z", + "Ř", + "L", + "P"], + + abbreviated: [ + "led", + "úno", + "bře", + "dub", + "kvě", + "čvn", + "čvc", + "srp", + "zář", + "říj", + "lis", + "pro"], + + wide: [ + "ledna", + "února", + "března", + "dubna", + "května", + "června", + "července", + "srpna", + "září", + "října", + "listopadu", + "prosince"] + +}; +var dayValues = { + narrow: [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so"], + + short: [ + "ne", + "po", + "út", + "st", + "čt", + "pá", + "so"], + + abbreviated: [ + "ned", + "pon", + "úte", + "stř", + "čtv", + "pát", + "sob"], + + wide: [ + "neděle", + "pondělí", + "úterý", + "středa", + "čtvrtek", + "pátek", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + }, + abbreviated: { + am: "dop.", + pm: "odp.", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + }, + wide: { + am: "dopoledne", + pm: "odpoledne", + midnight: "půlnoc", + noon: "poledne", + morning: "ráno", + afternoon: "odpoledne", + evening: "večer", + night: "noc" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/cs.js +/** +* @category Locales +* @summary Czech locale. +* @language Czech +* @iso-639-2 ces +* @author David Rus [@davidrus](https://github.com/davidrus) +* @author Pavel Hrách [@SilenY](https://github.com/SilenY) +* @author Jozef Bíroš [@JozefBiros](https://github.com/JozefBiros) +*/ +var cs = { + code: "cs", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^p[řr]/i, /^(po|n)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i, + wide: /^[1234]\. [čc]tvrtlet[íi]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[lúubdkčcszřrlp]/i, + abbreviated: /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, + wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^l/i, + /^[úu]/i, + /^b/i, + /^d/i, + /^k/i, + /^[čc]/i, + /^[čc]/i, + /^s/i, + /^z/i, + /^[řr]/i, + /^l/i, + /^p/i], + + any: [ + /^led/i, + /^[úu]n/i, + /^b[řr]e/i, + /^dub/i, + /^kv[ěe]/i, + /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, + /^[čc]vc|[čc]erven(ec|ce)/i, + /^srp/i, + /^z[áa][řr]/i, + /^[řr][íi]j/i, + /^lis/i, + /^pro/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npuúsčps]/i, + short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, + abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, + wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^[úu]/i, + /^s/i, + /^[čc]/i, + /^p/i, + /^s/i], + + any: [ + /^ne/i, + /^po/i, + /^[úu]t/i, + /^st/i, + /^[čc]t/i, + /^p[áa]/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^dop/i, + pm: /^odp/i, + midnight: /^p[ůu]lnoc/i, + noon: /^poledne/i, + morning: /r[áa]no/i, + afternoon: /odpoledne/i, + evening: /ve[čc]er/i, + night: /noc/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/cs/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + cs: cs }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/cdn.min.js b/node_modules/date-fns/locale/cs/cdn.min.js new file mode 100644 index 000000000..7bbbc8126 --- /dev/null +++ b/node_modules/date-fns/locale/cs/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n1&&t<5?i.few:i.many;var a=n?.addSuffix===!0,s=n?.comparison;return(a&&s===-1?r.past:a&&s===1?r.future:r.regular).replace(`{{count}}`,String(t))};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM yyyy`,long:`d. MMMM yyyy`,medium:`d. M. yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'v' {{time}}`,long:`{{date}} 'v' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u=[`neděli`,`pondělí`,`úterý`,`středu`,`čtvrtek`,`pátek`,`sobotu`],d={lastWeek:`'poslední' eeee 've' p`,yesterday:`'včera v' p`,today:`'dnes v' p`,tomorrow:`'zítra v' p`,nextWeek:function(e){return`'v `+u[e.getDay()]+` o' p`},other:`P`},f=function(e,t){var n=d[e];return typeof n==`function`?n(t):n};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`.`},era:p({values:{narrow:[`př. n. l.`,`n. l.`],abbreviated:[`př. n. l.`,`n. l.`],wide:[`před naším letopočtem`,`našeho letopočtu`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`],wide:[`1. čtvrtletí`,`2. čtvrtletí`,`3. čtvrtletí`,`4. čtvrtletí`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`leden`,`únor`,`březen`,`duben`,`květen`,`červen`,`červenec`,`srpen`,`září`,`říjen`,`listopad`,`prosinec`]},defaultWidth:`wide`,formattingValues:{narrow:[`L`,`Ú`,`B`,`D`,`K`,`Č`,`Č`,`S`,`Z`,`Ř`,`L`,`P`],abbreviated:[`led`,`úno`,`bře`,`dub`,`kvě`,`čvn`,`čvc`,`srp`,`zář`,`říj`,`lis`,`pro`],wide:[`ledna`,`února`,`března`,`dubna`,`května`,`června`,`července`,`srpna`,`září`,`října`,`listopadu`,`prosince`]},defaultFormattingWidth:`wide`}),day:p({values:{narrow:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],short:[`ne`,`po`,`út`,`st`,`čt`,`pá`,`so`],abbreviated:[`ned`,`pon`,`úte`,`stř`,`čtv`,`pát`,`sob`],wide:[`neděle`,`pondělí`,`úterý`,`středa`,`čtvrtek`,`pátek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},abbreviated:{am:`dop.`,pm:`odp.`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`},wide:{am:`dopoledne`,pm:`odpoledne`,midnight:`půlnoc`,noon:`poledne`,morning:`ráno`,afternoon:`odpoledne`,evening:`večer`,night:`noc`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`cs`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{cs:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy.cjs b/node_modules/date-fns/locale/cy.cjs new file mode 100644 index 000000000..4565d7c8e --- /dev/null +++ b/node_modules/date-fns/locale/cy.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.cy = void 0; +var _index = require("./cy/_lib/formatDistance.cjs"); +var _index2 = require("./cy/_lib/formatLong.cjs"); +var _index3 = require("./cy/_lib/formatRelative.cjs"); +var _index4 = require("./cy/_lib/localize.cjs"); +var _index5 = require("./cy/_lib/match.cjs"); + +/** + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) + */ +const cy = (exports.cy = { + code: "cy", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/cy.d.cts b/node_modules/date-fns/locale/cy.d.cts new file mode 100644 index 000000000..ab8727ffc --- /dev/null +++ b/node_modules/date-fns/locale/cy.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) + */ +export declare const cy: Locale; diff --git a/node_modules/date-fns/locale/cy.d.ts b/node_modules/date-fns/locale/cy.d.ts new file mode 100644 index 000000000..ab8727ffc --- /dev/null +++ b/node_modules/date-fns/locale/cy.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) + */ +export declare const cy: Locale; diff --git a/node_modules/date-fns/locale/cy.js b/node_modules/date-fns/locale/cy.js new file mode 100644 index 000000000..eb5cbd13f --- /dev/null +++ b/node_modules/date-fns/locale/cy.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./cy/_lib/formatDistance.js"; +import { formatLong } from "./cy/_lib/formatLong.js"; +import { formatRelative } from "./cy/_lib/formatRelative.js"; +import { localize } from "./cy/_lib/localize.js"; +import { match } from "./cy/_lib/match.js"; + +/** + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) + */ +export const cy = { + code: "cy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default cy; diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance.cjs b/node_modules/date-fns/locale/cy/_lib/formatDistance.cjs new file mode 100644 index 000000000..31636c4ca --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance.cjs @@ -0,0 +1,118 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "llai na eiliad", + other: "llai na {{count}} eiliad", + }, + + xSeconds: { + one: "1 eiliad", + other: "{{count}} eiliad", + }, + + halfAMinute: "hanner munud", + + lessThanXMinutes: { + one: "llai na munud", + two: "llai na 2 funud", + other: "llai na {{count}} munud", + }, + + xMinutes: { + one: "1 munud", + two: "2 funud", + other: "{{count}} munud", + }, + + aboutXHours: { + one: "tua 1 awr", + other: "tua {{count}} awr", + }, + + xHours: { + one: "1 awr", + other: "{{count}} awr", + }, + + xDays: { + one: "1 diwrnod", + two: "2 ddiwrnod", + other: "{{count}} diwrnod", + }, + + aboutXWeeks: { + one: "tua 1 wythnos", + two: "tua pythefnos", + other: "tua {{count}} wythnos", + }, + + xWeeks: { + one: "1 wythnos", + two: "pythefnos", + other: "{{count}} wythnos", + }, + + aboutXMonths: { + one: "tua 1 mis", + two: "tua 2 fis", + other: "tua {{count}} mis", + }, + + xMonths: { + one: "1 mis", + two: "2 fis", + other: "{{count}} mis", + }, + + aboutXYears: { + one: "tua 1 flwyddyn", + two: "tua 2 flynedd", + other: "tua {{count}} mlynedd", + }, + + xYears: { + one: "1 flwyddyn", + two: "2 flynedd", + other: "{{count}} mlynedd", + }, + + overXYears: { + one: "dros 1 flwyddyn", + two: "dros 2 flynedd", + other: "dros {{count}} mlynedd", + }, + + almostXYears: { + one: "bron 1 flwyddyn", + two: "bron 2 flynedd", + other: "bron {{count}} mlynedd", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "mewn " + result; + } else { + return result + " yn ôl"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance.js b/node_modules/date-fns/locale/cy/_lib/formatDistance.js new file mode 100644 index 000000000..52394d248 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance.js @@ -0,0 +1,114 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "llai na eiliad", + other: "llai na {{count}} eiliad", + }, + + xSeconds: { + one: "1 eiliad", + other: "{{count}} eiliad", + }, + + halfAMinute: "hanner munud", + + lessThanXMinutes: { + one: "llai na munud", + two: "llai na 2 funud", + other: "llai na {{count}} munud", + }, + + xMinutes: { + one: "1 munud", + two: "2 funud", + other: "{{count}} munud", + }, + + aboutXHours: { + one: "tua 1 awr", + other: "tua {{count}} awr", + }, + + xHours: { + one: "1 awr", + other: "{{count}} awr", + }, + + xDays: { + one: "1 diwrnod", + two: "2 ddiwrnod", + other: "{{count}} diwrnod", + }, + + aboutXWeeks: { + one: "tua 1 wythnos", + two: "tua pythefnos", + other: "tua {{count}} wythnos", + }, + + xWeeks: { + one: "1 wythnos", + two: "pythefnos", + other: "{{count}} wythnos", + }, + + aboutXMonths: { + one: "tua 1 mis", + two: "tua 2 fis", + other: "tua {{count}} mis", + }, + + xMonths: { + one: "1 mis", + two: "2 fis", + other: "{{count}} mis", + }, + + aboutXYears: { + one: "tua 1 flwyddyn", + two: "tua 2 flynedd", + other: "tua {{count}} mlynedd", + }, + + xYears: { + one: "1 flwyddyn", + two: "2 flynedd", + other: "{{count}} mlynedd", + }, + + overXYears: { + one: "dros 1 flwyddyn", + two: "dros 2 flynedd", + other: "dros {{count}} mlynedd", + }, + + almostXYears: { + one: "bron 1 flwyddyn", + two: "bron 2 flynedd", + other: "bron {{count}} mlynedd", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "mewn " + result; + } else { + return result + " yn ôl"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong.cjs b/node_modules/date-fns/locale/cy/_lib/formatLong.cjs new file mode 100644 index 000000000..ed9d8f583 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'am' {{time}}", + long: "{{date}} 'am' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong.d.cts b/node_modules/date-fns/locale/cy/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong.d.ts b/node_modules/date-fns/locale/cy/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong.js b/node_modules/date-fns/locale/cy/_lib/formatLong.js new file mode 100644 index 000000000..b3a3dbded --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'am' {{time}}", + long: "{{date}} 'am' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative.cjs b/node_modules/date-fns/locale/cy/_lib/formatRelative.cjs new file mode 100644 index 000000000..9e6b41a8f --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'diwethaf am' p", + yesterday: "'ddoe am' p", + today: "'heddiw am' p", + tomorrow: "'yfory am' p", + nextWeek: "eeee 'am' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative.js b/node_modules/date-fns/locale/cy/_lib/formatRelative.js new file mode 100644 index 000000000..3a5f13e61 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'diwethaf am' p", + yesterday: "'ddoe am' p", + today: "'heddiw am' p", + tomorrow: "'yfory am' p", + nextWeek: "eeee 'am' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/cy/_lib/localize.cjs b/node_modules/date-fns/locale/cy/_lib/localize.cjs new file mode 100644 index 000000000..f97bb6fd6 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/localize.cjs @@ -0,0 +1,205 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["C", "O"], + abbreviated: ["CC", "OC"], + wide: ["Cyn Crist", "Ar ôl Crist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ch1", "Ch2", "Ch3", "Ch4"], + wide: ["Chwarter 1af", "2ail chwarter", "3ydd chwarter", "4ydd chwarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["I", "Ch", "Ma", "E", "Mi", "Me", "G", "A", "Md", "H", "T", "Rh"], + + abbreviated: [ + "Ion", + "Chwe", + "Maw", + "Ebr", + "Mai", + "Meh", + "Gor", + "Aws", + "Med", + "Hyd", + "Tach", + "Rhag", + ], + + wide: [ + "Ionawr", + "Chwefror", + "Mawrth", + "Ebrill", + "Mai", + "Mehefin", + "Gorffennaf", + "Awst", + "Medi", + "Hydref", + "Tachwedd", + "Rhagfyr", + ], +}; + +const dayValues = { + narrow: ["S", "Ll", "M", "M", "I", "G", "S"], + short: ["Su", "Ll", "Ma", "Me", "Ia", "Gw", "Sa"], + abbreviated: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"], + wide: [ + "dydd Sul", + "dydd Llun", + "dydd Mawrth", + "dydd Mercher", + "dydd Iau", + "dydd Gwener", + "dydd Sadwrn", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number < 20) { + switch (number) { + case 0: + return number + "fed"; + case 1: + return number + "af"; + case 2: + return number + "ail"; + case 3: + case 4: + return number + "ydd"; + case 5: + case 6: + return number + "ed"; + case 7: + case 8: + case 9: + case 10: + case 12: + case 15: + case 18: + return number + "fed"; + case 11: + case 13: + case 14: + case 16: + case 17: + case 19: + return number + "eg"; + } + } else if ((number >= 50 && number <= 60) || number === 80 || number >= 100) { + return number + "fed"; + } + return number + "ain"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/cy/_lib/localize.d.cts b/node_modules/date-fns/locale/cy/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cy/_lib/localize.d.ts b/node_modules/date-fns/locale/cy/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/cy/_lib/localize.js b/node_modules/date-fns/locale/cy/_lib/localize.js new file mode 100644 index 000000000..3b00d46b6 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/localize.js @@ -0,0 +1,203 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["C", "O"], + abbreviated: ["CC", "OC"], + wide: ["Cyn Crist", "Ar ôl Crist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ch1", "Ch2", "Ch3", "Ch4"], + wide: ["Chwarter 1af", "2ail chwarter", "3ydd chwarter", "4ydd chwarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["I", "Ch", "Ma", "E", "Mi", "Me", "G", "A", "Md", "H", "T", "Rh"], + + abbreviated: [ + "Ion", + "Chwe", + "Maw", + "Ebr", + "Mai", + "Meh", + "Gor", + "Aws", + "Med", + "Hyd", + "Tach", + "Rhag", + ], + + wide: [ + "Ionawr", + "Chwefror", + "Mawrth", + "Ebrill", + "Mai", + "Mehefin", + "Gorffennaf", + "Awst", + "Medi", + "Hydref", + "Tachwedd", + "Rhagfyr", + ], +}; + +const dayValues = { + narrow: ["S", "Ll", "M", "M", "I", "G", "S"], + short: ["Su", "Ll", "Ma", "Me", "Ia", "Gw", "Sa"], + abbreviated: ["Sul", "Llun", "Maw", "Mer", "Iau", "Gwe", "Sad"], + wide: [ + "dydd Sul", + "dydd Llun", + "dydd Mawrth", + "dydd Mercher", + "dydd Iau", + "dydd Gwener", + "dydd Sadwrn", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number < 20) { + switch (number) { + case 0: + return number + "fed"; + case 1: + return number + "af"; + case 2: + return number + "ail"; + case 3: + case 4: + return number + "ydd"; + case 5: + case 6: + return number + "ed"; + case 7: + case 8: + case 9: + case 10: + case 12: + case 15: + case 18: + return number + "fed"; + case 11: + case 13: + case 14: + case 16: + case 17: + case 19: + return number + "eg"; + } + } else if ((number >= 50 && number <= 60) || number === 80 || number >= 100) { + return number + "fed"; + } + return number + "ain"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/cy/_lib/match.cjs b/node_modules/date-fns/locale/cy/_lib/match.cjs new file mode 100644 index 000000000..e6fdee85c --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/match.cjs @@ -0,0 +1,146 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(c|o)/i, + abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, + wide: /^(cyn christ|ar ôl crist|ar ol crist)/i, +}; +const parseEraPatterns = { + wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], + any: [/^c/i, /^o/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ch[1234]/i, + wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, + abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, + wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^ch/i, + /^m/i, + /^e/i, + /^m/i, + /^m/i, + /^g/i, + /^a/i, + /^m/i, + /^h/i, + /^t/i, + /^rh/i, + ], + + any: [ + /^io/i, + /^ch/i, + /^maw/i, + /^e/i, + /^mai/i, + /^meh/i, + /^g/i, + /^a/i, + /^med/i, + /^h/i, + /^t/i, + /^rh/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(s|ll|m|i|g)/i, + short: /^(su|ll|ma|me|ia|gw|sa)/i, + abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, + wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^ll/i, /^m/i, /^m/i, /^i/i, /^g/i, /^s/i], + wide: [ + /^dydd su/i, + /^dydd ll/i, + /^dydd ma/i, + /^dydd me/i, + /^dydd i/i, + /^dydd g/i, + /^dydd sa/i, + ], + + any: [/^su/i, /^ll/i, /^ma/i, /^me/i, /^i/i, /^g/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, + any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^b|(y\.?\s?b\.?)/i, + pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, + midnight: /^hn|hanner nos/i, + noon: /^hd|hanner dydd/i, + morning: /bore/i, + afternoon: /prynhawn/i, + evening: /^gyda'r nos$/i, + night: /blah/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/cy/_lib/match.d.cts b/node_modules/date-fns/locale/cy/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cy/_lib/match.d.ts b/node_modules/date-fns/locale/cy/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/cy/_lib/match.js b/node_modules/date-fns/locale/cy/_lib/match.js new file mode 100644 index 000000000..d41b1e149 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/match.js @@ -0,0 +1,143 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(c|o)/i, + abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, + wide: /^(cyn christ|ar ôl crist|ar ol crist)/i, +}; +const parseEraPatterns = { + wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], + any: [/^c/i, /^o/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ch[1234]/i, + wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, + abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, + wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^ch/i, + /^m/i, + /^e/i, + /^m/i, + /^m/i, + /^g/i, + /^a/i, + /^m/i, + /^h/i, + /^t/i, + /^rh/i, + ], + + any: [ + /^io/i, + /^ch/i, + /^maw/i, + /^e/i, + /^mai/i, + /^meh/i, + /^g/i, + /^a/i, + /^med/i, + /^h/i, + /^t/i, + /^rh/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(s|ll|m|i|g)/i, + short: /^(su|ll|ma|me|ia|gw|sa)/i, + abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, + wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^ll/i, /^m/i, /^m/i, /^i/i, /^g/i, /^s/i], + wide: [ + /^dydd su/i, + /^dydd ll/i, + /^dydd ma/i, + /^dydd me/i, + /^dydd i/i, + /^dydd g/i, + /^dydd sa/i, + ], + + any: [/^su/i, /^ll/i, /^ma/i, /^me/i, /^i/i, /^g/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, + any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^b|(y\.?\s?b\.?)/i, + pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, + midnight: /^hn|hanner nos/i, + noon: /^hd|hanner dydd/i, + morning: /bore/i, + afternoon: /prynhawn/i, + evening: /^gyda'r nos$/i, + night: /blah/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/cy/cdn.js b/node_modules/date-fns/locale/cy/cdn.js new file mode 100644 index 000000000..febd6429e --- /dev/null +++ b/node_modules/date-fns/locale/cy/cdn.js @@ -0,0 +1,621 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/cy/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "llai na eiliad", + other: "llai na {{count}} eiliad" + }, + xSeconds: { + one: "1 eiliad", + other: "{{count}} eiliad" + }, + halfAMinute: "hanner munud", + lessThanXMinutes: { + one: "llai na munud", + two: "llai na 2 funud", + other: "llai na {{count}} munud" + }, + xMinutes: { + one: "1 munud", + two: "2 funud", + other: "{{count}} munud" + }, + aboutXHours: { + one: "tua 1 awr", + other: "tua {{count}} awr" + }, + xHours: { + one: "1 awr", + other: "{{count}} awr" + }, + xDays: { + one: "1 diwrnod", + two: "2 ddiwrnod", + other: "{{count}} diwrnod" + }, + aboutXWeeks: { + one: "tua 1 wythnos", + two: "tua pythefnos", + other: "tua {{count}} wythnos" + }, + xWeeks: { + one: "1 wythnos", + two: "pythefnos", + other: "{{count}} wythnos" + }, + aboutXMonths: { + one: "tua 1 mis", + two: "tua 2 fis", + other: "tua {{count}} mis" + }, + xMonths: { + one: "1 mis", + two: "2 fis", + other: "{{count}} mis" + }, + aboutXYears: { + one: "tua 1 flwyddyn", + two: "tua 2 flynedd", + other: "tua {{count}} mlynedd" + }, + xYears: { + one: "1 flwyddyn", + two: "2 flynedd", + other: "{{count}} mlynedd" + }, + overXYears: { + one: "dros 1 flwyddyn", + two: "dros 2 flynedd", + other: "dros {{count}} mlynedd" + }, + almostXYears: { + one: "bron 1 flwyddyn", + two: "bron 2 flynedd", + other: "bron {{count}} mlynedd" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2 && !!tokenValue.two) result = tokenValue.two;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "mewn " + result;else + return result + " yn ôl"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'am' {{time}}", + long: "{{date}} 'am' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/cy/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'diwethaf am' p", + yesterday: "'ddoe am' p", + today: "'heddiw am' p", + tomorrow: "'yfory am' p", + nextWeek: "eeee 'am' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/cy/_lib/localize.js +var eraValues = { + narrow: ["C", "O"], + abbreviated: ["CC", "OC"], + wide: ["Cyn Crist", "Ar ôl Crist"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Ch1", + "Ch2", + "Ch3", + "Ch4"], + + wide: [ + "Chwarter 1af", + "2ail chwarter", + "3ydd chwarter", + "4ydd chwarter"] + +}; +var monthValues = { + narrow: [ + "I", + "Ch", + "Ma", + "E", + "Mi", + "Me", + "G", + "A", + "Md", + "H", + "T", + "Rh"], + + abbreviated: [ + "Ion", + "Chwe", + "Maw", + "Ebr", + "Mai", + "Meh", + "Gor", + "Aws", + "Med", + "Hyd", + "Tach", + "Rhag"], + + wide: [ + "Ionawr", + "Chwefror", + "Mawrth", + "Ebrill", + "Mai", + "Mehefin", + "Gorffennaf", + "Awst", + "Medi", + "Hydref", + "Tachwedd", + "Rhagfyr"] + +}; +var dayValues = { + narrow: [ + "S", + "Ll", + "M", + "M", + "I", + "G", + "S"], + + short: [ + "Su", + "Ll", + "Ma", + "Me", + "Ia", + "Gw", + "Sa"], + + abbreviated: [ + "Sul", + "Llun", + "Maw", + "Mer", + "Iau", + "Gwe", + "Sad"], + + wide: [ + "dydd Sul", + "dydd Llun", + "dydd Mawrth", + "dydd Mercher", + "dydd Iau", + "dydd Gwener", + "dydd Sadwrn"] + +}; +var dayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos" + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos" + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "bore", + afternoon: "prynhawn", + evening: "gyda'r nos", + night: "nos" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "b", + pm: "h", + midnight: "hn", + noon: "hd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos" + }, + abbreviated: { + am: "yb", + pm: "yh", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos" + }, + wide: { + am: "y.b.", + pm: "y.h.", + midnight: "hanner nos", + noon: "hanner dydd", + morning: "yn y bore", + afternoon: "yn y prynhawn", + evening: "gyda'r nos", + night: "yn y nos" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + if (number < 20) switch (number) { + case 0:return number + "fed"; + case 1:return number + "af"; + case 2:return number + "ail"; + case 3: + case 4:return number + "ydd"; + case 5: + case 6:return number + "ed"; + case 7: + case 8: + case 9: + case 10: + case 12: + case 15: + case 18:return number + "fed"; + case 11: + case 13: + case 14: + case 16: + case 17: + case 19:return number + "eg"; + } else + if (number >= 50 && number <= 60 || number === 80 || number >= 100) return number + "fed"; + return number + "ain"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/cy.js +/** +* @category Locales +* @summary Welsh locale. +* @language Welsh +* @iso-639-2 cym +* @author Elwyn Malethan [@elmomalmo](https://github.com/elmomalmo) +*/ +var cy = { + code: "cy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(c|o)/i, + abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, + wide: /^(cyn christ|ar ôl crist|ar ol crist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], + any: [/^c/i, /^o/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ch[1234]/i, + wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, + abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, + wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i/i, + /^ch/i, + /^m/i, + /^e/i, + /^m/i, + /^m/i, + /^g/i, + /^a/i, + /^m/i, + /^h/i, + /^t/i, + /^rh/i], + + any: [ + /^io/i, + /^ch/i, + /^maw/i, + /^e/i, + /^mai/i, + /^meh/i, + /^g/i, + /^a/i, + /^med/i, + /^h/i, + /^t/i, + /^rh/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(s|ll|m|i|g)/i, + short: /^(su|ll|ma|me|ia|gw|sa)/i, + abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, + wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^ll/i, + /^m/i, + /^m/i, + /^i/i, + /^g/i, + /^s/i], + + wide: [ + /^dydd su/i, + /^dydd ll/i, + /^dydd ma/i, + /^dydd me/i, + /^dydd i/i, + /^dydd g/i, + /^dydd sa/i], + + any: [ + /^su/i, + /^ll/i, + /^ma/i, + /^me/i, + /^i/i, + /^g/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, + any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^b|(y\.?\s?b\.?)/i, + pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, + midnight: /^hn|hanner nos/i, + noon: /^hd|hanner dydd/i, + morning: /bore/i, + afternoon: /prynhawn/i, + evening: /^gyda'r nos$/i, + night: /blah/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/cy/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + cy: cy }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/cdn.min.js b/node_modules/date-fns/locale/cy/cdn.min.js new file mode 100644 index 000000000..8f1ed6f61 --- /dev/null +++ b/node_modules/date-fns/locale/cy/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`mewn `+r:r+` yn ôl`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'am' {{time}}`,long:`{{date}} 'am' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'diwethaf am' p`,yesterday:`'ddoe am' p`,today:`'heddiw am' p`,tomorrow:`'yfory am' p`,nextWeek:`eeee 'am' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);if(n<20)switch(n){case 0:return n+`fed`;case 1:return n+`af`;case 2:return n+`ail`;case 3:case 4:return n+`ydd`;case 5:case 6:return n+`ed`;case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+`fed`;case 11:case 13:case 14:case 16:case 17:case 19:return n+`eg`}else if(n>=50&&n<=60||n===80||n>=100)return n+`fed`;return n+`ain`},era:f({values:{narrow:[`C`,`O`],abbreviated:[`CC`,`OC`],wide:[`Cyn Crist`,`Ar ôl Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Ch1`,`Ch2`,`Ch3`,`Ch4`],wide:[`Chwarter 1af`,`2ail chwarter`,`3ydd chwarter`,`4ydd chwarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`Ch`,`Ma`,`E`,`Mi`,`Me`,`G`,`A`,`Md`,`H`,`T`,`Rh`],abbreviated:[`Ion`,`Chwe`,`Maw`,`Ebr`,`Mai`,`Meh`,`Gor`,`Aws`,`Med`,`Hyd`,`Tach`,`Rhag`],wide:[`Ionawr`,`Chwefror`,`Mawrth`,`Ebrill`,`Mai`,`Mehefin`,`Gorffennaf`,`Awst`,`Medi`,`Hydref`,`Tachwedd`,`Rhagfyr`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`Ll`,`M`,`M`,`I`,`G`,`S`],short:[`Su`,`Ll`,`Ma`,`Me`,`Ia`,`Gw`,`Sa`],abbreviated:[`Sul`,`Llun`,`Maw`,`Mer`,`Iau`,`Gwe`,`Sad`],wide:[`dydd Sul`,`dydd Llun`,`dydd Mawrth`,`dydd Mercher`,`dydd Iau`,`dydd Gwener`,`dydd Sadwrn`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`b`,pm:`h`,midnight:`hn`,noon:`hd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`},abbreviated:{am:`yb`,pm:`yh`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`},wide:{am:`y.b.`,pm:`y.h.`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`bore`,afternoon:`prynhawn`,evening:`gyda'r nos`,night:`nos`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`b`,pm:`h`,midnight:`hn`,noon:`hd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`},abbreviated:{am:`yb`,pm:`yh`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`},wide:{am:`y.b.`,pm:`y.h.`,midnight:`hanner nos`,noon:`hanner dydd`,morning:`yn y bore`,afternoon:`yn y prynhawn`,evening:`gyda'r nos`,night:`yn y nos`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`cy`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{cy:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/da.cjs b/node_modules/date-fns/locale/da.cjs new file mode 100644 index 000000000..2a9d05094 --- /dev/null +++ b/node_modules/date-fns/locale/da.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.da = void 0; +var _index = require("./da/_lib/formatDistance.cjs"); +var _index2 = require("./da/_lib/formatLong.cjs"); +var _index3 = require("./da/_lib/formatRelative.cjs"); +var _index4 = require("./da/_lib/localize.cjs"); +var _index5 = require("./da/_lib/match.cjs"); + +/** + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) + * @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) + * @author [@kgram](https://github.com/kgram) + * @author [@stefanbugge](https://github.com/stefanbugge) + */ +const da = (exports.da = { + code: "da", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/da.d.cts b/node_modules/date-fns/locale/da.d.cts new file mode 100644 index 000000000..5fb5bff6e --- /dev/null +++ b/node_modules/date-fns/locale/da.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) + * @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) + * @author [@kgram](https://github.com/kgram) + * @author [@stefanbugge](https://github.com/stefanbugge) + */ +export declare const da: Locale; diff --git a/node_modules/date-fns/locale/da.d.ts b/node_modules/date-fns/locale/da.d.ts new file mode 100644 index 000000000..5fb5bff6e --- /dev/null +++ b/node_modules/date-fns/locale/da.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) + * @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) + * @author [@kgram](https://github.com/kgram) + * @author [@stefanbugge](https://github.com/stefanbugge) + */ +export declare const da: Locale; diff --git a/node_modules/date-fns/locale/da.js b/node_modules/date-fns/locale/da.js new file mode 100644 index 000000000..3e870705b --- /dev/null +++ b/node_modules/date-fns/locale/da.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./da/_lib/formatDistance.js"; +import { formatLong } from "./da/_lib/formatLong.js"; +import { formatRelative } from "./da/_lib/formatRelative.js"; +import { localize } from "./da/_lib/localize.js"; +import { match } from "./da/_lib/match.js"; + +/** + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) + * @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) + * @author [@kgram](https://github.com/kgram) + * @author [@stefanbugge](https://github.com/stefanbugge) + */ +export const da = { + code: "da", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default da; diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance.cjs b/node_modules/date-fns/locale/da/_lib/formatDistance.cjs new file mode 100644 index 000000000..df4b8a752 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre end ét sekund", + other: "mindre end {{count}} sekunder", + }, + + xSeconds: { + one: "1 sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "ét halvt minut", + + lessThanXMinutes: { + one: "mindre end ét minut", + other: "mindre end {{count}} minutter", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "cirka 1 time", + other: "cirka {{count}} timer", + }, + + xHours: { + one: "1 time", + other: "{{count}} timer", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dage", + }, + + aboutXWeeks: { + one: "cirka 1 uge", + other: "cirka {{count}} uger", + }, + + xWeeks: { + one: "1 uge", + other: "{{count}} uger", + }, + + aboutXMonths: { + one: "cirka 1 måned", + other: "cirka {{count}} måneder", + }, + + xMonths: { + one: "1 måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "cirka 1 år", + other: "cirka {{count}} år", + }, + + xYears: { + one: "1 år", + other: "{{count}} år", + }, + + overXYears: { + one: "over 1 år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "næsten 1 år", + other: "næsten {{count}} år", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/da/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/da/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance.js b/node_modules/date-fns/locale/da/_lib/formatDistance.js new file mode 100644 index 000000000..4070ddaea --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre end ét sekund", + other: "mindre end {{count}} sekunder", + }, + + xSeconds: { + one: "1 sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "ét halvt minut", + + lessThanXMinutes: { + one: "mindre end ét minut", + other: "mindre end {{count}} minutter", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "cirka 1 time", + other: "cirka {{count}} timer", + }, + + xHours: { + one: "1 time", + other: "{{count}} timer", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dage", + }, + + aboutXWeeks: { + one: "cirka 1 uge", + other: "cirka {{count}} uger", + }, + + xWeeks: { + one: "1 uge", + other: "{{count}} uger", + }, + + aboutXMonths: { + one: "cirka 1 måned", + other: "cirka {{count}} måneder", + }, + + xMonths: { + one: "1 måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "cirka 1 år", + other: "cirka {{count}} år", + }, + + xYears: { + one: "1 år", + other: "{{count}} år", + }, + + overXYears: { + one: "over 1 år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "næsten 1 år", + other: "næsten {{count}} år", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/da/_lib/formatLong.cjs b/node_modules/date-fns/locale/da/_lib/formatLong.cjs new file mode 100644 index 000000000..75c20e98b --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE 'den' d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl'. {{time}}", + long: "{{date}} 'kl'. {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/da/_lib/formatLong.d.cts b/node_modules/date-fns/locale/da/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/da/_lib/formatLong.d.ts b/node_modules/date-fns/locale/da/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/da/_lib/formatLong.js b/node_modules/date-fns/locale/da/_lib/formatLong.js new file mode 100644 index 000000000..a16880a5e --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE 'den' d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl'. {{time}}", + long: "{{date}} 'kl'. {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative.cjs b/node_modules/date-fns/locale/da/_lib/formatRelative.cjs new file mode 100644 index 000000000..e6aa6e108 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'sidste' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "'på' eeee 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/da/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/da/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative.js b/node_modules/date-fns/locale/da/_lib/formatRelative.js new file mode 100644 index 000000000..0fe44303b --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'sidste' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "'på' eeee 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/da/_lib/localize.cjs b/node_modules/date-fns/locale/da/_lib/localize.cjs new file mode 100644 index 000000000..fdd6d3b04 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/localize.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["fvt", "vt"], + abbreviated: ["f.v.t.", "v.t."], + wide: ["før vesterlandsk tidsregning", "vesterlandsk tidsregning"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. kvt.", "2. kvt.", "3. kvt.", "4. kvt."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marts", + "april", + "maj", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "december", + ], +}; + +// Note that 'Days - abbreviated - Formatting' has periods at the end. +// https://www.unicode.org/cldr/charts/32/summary/da.html#1760 +// This makes grammatical sense in danish, as most abbreviations have periods. +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."], + + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/da/_lib/localize.d.cts b/node_modules/date-fns/locale/da/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/da/_lib/localize.d.ts b/node_modules/date-fns/locale/da/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/da/_lib/localize.js b/node_modules/date-fns/locale/da/_lib/localize.js new file mode 100644 index 000000000..4c8e71f9e --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/localize.js @@ -0,0 +1,168 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["fvt", "vt"], + abbreviated: ["f.v.t.", "v.t."], + wide: ["før vesterlandsk tidsregning", "vesterlandsk tidsregning"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. kvt.", "2. kvt.", "3. kvt.", "4. kvt."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marts", + "april", + "maj", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "december", + ], +}; + +// Note that 'Days - abbreviated - Formatting' has periods at the end. +// https://www.unicode.org/cldr/charts/32/summary/da.html#1760 +// This makes grammatical sense in danish, as most abbreviations have periods. +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."], + + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/da/_lib/match.cjs b/node_modules/date-fns/locale/da/_lib/match.cjs new file mode 100644 index 000000000..dff6cb092 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(fKr|fvt|eKr|vt)/i, + abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, + wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^(v|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]. kvt\./i, + wide: /^[1234]\.? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^o/i, /^t/i, /^f/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, + any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /midnat/i, + noon: /middag/i, + morning: /morgen/i, + afternoon: /eftermiddag/i, + evening: /aften/i, + night: /nat/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/da/_lib/match.d.cts b/node_modules/date-fns/locale/da/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/da/_lib/match.d.ts b/node_modules/date-fns/locale/da/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/da/_lib/match.js b/node_modules/date-fns/locale/da/_lib/match.js new file mode 100644 index 000000000..6e54251ce --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(fKr|fvt|eKr|vt)/i, + abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, + wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^(v|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]. kvt\./i, + wide: /^[1234]\.? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^o/i, /^t/i, /^f/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, + any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /midnat/i, + noon: /middag/i, + morning: /morgen/i, + afternoon: /eftermiddag/i, + evening: /aften/i, + night: /nat/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/da/cdn.js b/node_modules/date-fns/locale/da/cdn.js new file mode 100644 index 000000000..da2df7d18 --- /dev/null +++ b/node_modules/date-fns/locale/da/cdn.js @@ -0,0 +1,576 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/da/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre end ét sekund", + other: "mindre end {{count}} sekunder" + }, + xSeconds: { + one: "1 sekund", + other: "{{count}} sekunder" + }, + halfAMinute: "ét halvt minut", + lessThanXMinutes: { + one: "mindre end ét minut", + other: "mindre end {{count}} minutter" + }, + xMinutes: { + one: "1 minut", + other: "{{count}} minutter" + }, + aboutXHours: { + one: "cirka 1 time", + other: "cirka {{count}} timer" + }, + xHours: { + one: "1 time", + other: "{{count}} timer" + }, + xDays: { + one: "1 dag", + other: "{{count}} dage" + }, + aboutXWeeks: { + one: "cirka 1 uge", + other: "cirka {{count}} uger" + }, + xWeeks: { + one: "1 uge", + other: "{{count}} uger" + }, + aboutXMonths: { + one: "cirka 1 måned", + other: "cirka {{count}} måneder" + }, + xMonths: { + one: "1 måned", + other: "{{count}} måneder" + }, + aboutXYears: { + one: "cirka 1 år", + other: "cirka {{count}} år" + }, + xYears: { + one: "1 år", + other: "{{count}} år" + }, + overXYears: { + one: "over 1 år", + other: "over {{count}} år" + }, + almostXYears: { + one: "næsten 1 år", + other: "næsten {{count}} år" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " siden"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE 'den' d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl'. {{time}}", + long: "{{date}} 'kl'. {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/da/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'sidste' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "'på' eeee 'kl.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/da/_lib/localize.js +var eraValues = { + narrow: ["fvt", "vt"], + abbreviated: ["f.v.t.", "v.t."], + wide: ["før vesterlandsk tidsregning", "vesterlandsk tidsregning"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. kvt.", + "2. kvt.", + "3. kvt.", + "4. kvt."], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januar", + "februar", + "marts", + "april", + "maj", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "sø", + "ma", + "ti", + "on", + "to", + "fr", + "lø"], + + abbreviated: [ + "søn.", + "man.", + "tir.", + "ons.", + "tor.", + "fre.", + "lør."], + + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "morgen", + afternoon: "eftermiddag", + evening: "aften", + night: "nat" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnat", + noon: "middag", + morning: "om morgenen", + afternoon: "om eftermiddagen", + evening: "om aftenen", + night: "om natten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/da.js +/** +* @category Locales +* @summary Danish locale. +* @language Danish +* @iso-639-2 dan +* @author Mathias Wøbbe [@MathiasKandelborg](https://github.com/MathiasKandelborg) +* @author Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha) +* @author [@kgram](https://github.com/kgram) +* @author [@stefanbugge](https://github.com/stefanbugge) +*/ +var da = { + code: "da", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(fKr|fvt|eKr|vt)/i, + abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, + wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^(v|e)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]. kvt\./i, + wide: /^[1234]\.? kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^o/i, + /^t/i, + /^f/i, + /^l/i], + + any: [ + /^s/i, + /^m/i, + /^ti/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, + any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /midnat/i, + noon: /middag/i, + morning: /morgen/i, + afternoon: /eftermiddag/i, + evening: /aften/i, + night: /nat/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/da/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + da: da }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/cdn.min.js b/node_modules/date-fns/locale/da/cdn.min.js new file mode 100644 index 000000000..816f857da --- /dev/null +++ b/node_modules/date-fns/locale/da/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`om `+r:r+` siden`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE 'den' d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kl'. {{time}}`,long:`{{date}} 'kl'. {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'sidste' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgen kl.' p`,nextWeek:`'på' eeee 'kl.' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`fvt`,`vt`],abbreviated:[`f.v.t.`,`v.t.`],wide:[`før vesterlandsk tidsregning`,`vesterlandsk tidsregning`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. kvt.`,`2. kvt.`,`3. kvt.`,`4. kvt.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januar`,`februar`,`marts`,`april`,`maj`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],abbreviated:[`søn.`,`man.`,`tir.`,`ons.`,`tor.`,`fre.`,`lør.`],wide:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnat`,noon:`middag`,morning:`morgen`,afternoon:`eftermiddag`,evening:`aften`,night:`nat`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnat`,noon:`middag`,morning:`om morgenen`,afternoon:`om eftermiddagen`,evening:`om aftenen`,night:`om natten`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`da`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{da:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/de-AT.cjs b/node_modules/date-fns/locale/de-AT.cjs new file mode 100644 index 000000000..0439181b8 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.deAT = void 0; +var _index = require("./de/_lib/formatDistance.cjs"); +var _index2 = require("./de/_lib/formatLong.cjs"); +var _index3 = require("./de/_lib/formatRelative.cjs"); +var _index4 = require("./de/_lib/match.cjs"); + +var _index5 = require("./de-AT/_lib/localize.cjs"); // difference to 'de' locale + +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +const deAT = (exports.deAT = { + code: "de-AT", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index5.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/de-AT.d.cts b/node_modules/date-fns/locale/de-AT.d.cts new file mode 100644 index 000000000..55b848cf2 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export declare const deAT: Locale; diff --git a/node_modules/date-fns/locale/de-AT.d.ts b/node_modules/date-fns/locale/de-AT.d.ts new file mode 100644 index 000000000..55b848cf2 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export declare const deAT: Locale; diff --git a/node_modules/date-fns/locale/de-AT.js b/node_modules/date-fns/locale/de-AT.js new file mode 100644 index 000000000..6b203e2dc --- /dev/null +++ b/node_modules/date-fns/locale/de-AT.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./de/_lib/formatDistance.js"; +import { formatLong } from "./de/_lib/formatLong.js"; +import { formatRelative } from "./de/_lib/formatRelative.js"; +import { match } from "./de/_lib/match.js"; + +// difference to 'de' locale +import { localize } from "./de-AT/_lib/localize.js"; + +/** + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) + */ +export const deAT = { + code: "de-AT", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default deAT; diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize.cjs b/node_modules/date-fns/locale/de-AT/_lib/localize.cjs new file mode 100644 index 000000000..9daf7634a --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/_lib/localize.cjs @@ -0,0 +1,192 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +// Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jän", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Jänner", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +// https://st.unicode.org/cldr-apps/v#/de_AT/Gregorian/ +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jän.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez.", + ], + + wide: monthValues.wide, +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/de.html#1881 +const dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize.d.cts b/node_modules/date-fns/locale/de-AT/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize.d.ts b/node_modules/date-fns/locale/de-AT/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize.js b/node_modules/date-fns/locale/de-AT/_lib/localize.js new file mode 100644 index 000000000..5d773698f --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/_lib/localize.js @@ -0,0 +1,190 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +// Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jän", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Jänner", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +// https://st.unicode.org/cldr-apps/v#/de_AT/Gregorian/ +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jän.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez.", + ], + + wide: monthValues.wide, +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/de.html#1881 +const dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/de-AT/cdn.js b/node_modules/date-fns/locale/de-AT/cdn.js new file mode 100644 index 000000000..e23532716 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/cdn.js @@ -0,0 +1,675 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/de/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden" + }, + withPreposition: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden" + } + }, + xSeconds: { + standalone: { + one: "1 Sekunde", + other: "{{count}} Sekunden" + }, + withPreposition: { + one: "1 Sekunde", + other: "{{count}} Sekunden" + } + }, + halfAMinute: { + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute" + }, + lessThanXMinutes: { + standalone: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten" + }, + withPreposition: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten" + } + }, + xMinutes: { + standalone: { + one: "1 Minute", + other: "{{count}} Minuten" + }, + withPreposition: { + one: "1 Minute", + other: "{{count}} Minuten" + } + }, + aboutXHours: { + standalone: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden" + }, + withPreposition: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden" + } + }, + xHours: { + standalone: { + one: "1 Stunde", + other: "{{count}} Stunden" + }, + withPreposition: { + one: "1 Stunde", + other: "{{count}} Stunden" + } + }, + xDays: { + standalone: { + one: "1 Tag", + other: "{{count}} Tage" + }, + withPreposition: { + one: "1 Tag", + other: "{{count}} Tagen" + } + }, + aboutXWeeks: { + standalone: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen" + }, + withPreposition: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen" + } + }, + xWeeks: { + standalone: { + one: "1 Woche", + other: "{{count}} Wochen" + }, + withPreposition: { + one: "1 Woche", + other: "{{count}} Wochen" + } + }, + aboutXMonths: { + standalone: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monate" + }, + withPreposition: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monaten" + } + }, + xMonths: { + standalone: { + one: "1 Monat", + other: "{{count}} Monate" + }, + withPreposition: { + one: "1 Monat", + other: "{{count}} Monaten" + } + }, + aboutXYears: { + standalone: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahre" + }, + withPreposition: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahren" + } + }, + xYears: { + standalone: { + one: "1 Jahr", + other: "{{count}} Jahre" + }, + withPreposition: { + one: "1 Jahr", + other: "{{count}} Jahren" + } + }, + overXYears: { + standalone: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahre" + }, + withPreposition: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahren" + } + }, + almostXYears: { + standalone: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahre" + }, + withPreposition: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahren" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return "vor " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/de/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^j[aä]/i, + /^f/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^so/i, + /^mo/i, + /^di/i, + /^mi/i, + /^do/i, + /^f/i, + /^sa/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, + evening: /abends/i, + night: /nachts/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/de-AT/_lib/localize.js +var eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jän", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez"], + + wide: [ + "Jänner", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember"] + +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jän.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez."], + + wide: monthValues.wide +}; +var dayValues = { + narrow: [ + "S", + "M", + "D", + "M", + "D", + "F", + "S"], + + short: [ + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa"], + + abbreviated: [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa."], + + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag"] + +}; +var dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht" + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht" + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts" + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts" + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return Number(dirtyNumber) + "."; +}; +//#endregion +//#region dist/date-fns/locale/de-AT.js +/** +* @category Locales +* @summary German locale (Austria). +* @language German +* @iso-639-2 deu +* @author Christoph Tobias Stenglein [@cstenglein](https://github.com/cstenglein) +*/ +var deAT = { + code: "de-AT", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) + }, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/de-AT/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + deAT: deAT }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/de-AT/cdn.min.js b/node_modules/date-fns/locale/de-AT/cdn.min.js new file mode 100644 index 000000000..bb4b889c7 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:`vor `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:f({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})};function _(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var v={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},y={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},b={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jän`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Jänner`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},x={narrow:b.narrow,abbreviated:[`Jän.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:b.wide},S={code:`de-AT`,formatDistance:s,formatLong:l,formatRelative:d,localize:{ordinalNumber:function(e){return Number(e)+`.`},era:_({values:v,defaultWidth:`wide`}),quarter:_({values:y,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:_({values:b,formattingValues:x,defaultWidth:`wide`}),day:_({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:_({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{deAT:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/de.cjs b/node_modules/date-fns/locale/de.cjs new file mode 100644 index 000000000..015bc50b4 --- /dev/null +++ b/node_modules/date-fns/locale/de.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.de = void 0; +var _index = require("./de/_lib/formatDistance.cjs"); +var _index2 = require("./de/_lib/formatLong.cjs"); +var _index3 = require("./de/_lib/formatRelative.cjs"); +var _index4 = require("./de/_lib/localize.cjs"); +var _index5 = require("./de/_lib/match.cjs"); + +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +const de = (exports.de = { + code: "de", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/de.d.cts b/node_modules/date-fns/locale/de.d.cts new file mode 100644 index 000000000..68c0ff4c8 --- /dev/null +++ b/node_modules/date-fns/locale/de.d.cts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export declare const de: Locale; diff --git a/node_modules/date-fns/locale/de.d.ts b/node_modules/date-fns/locale/de.d.ts new file mode 100644 index 000000000..68c0ff4c8 --- /dev/null +++ b/node_modules/date-fns/locale/de.d.ts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export declare const de: Locale; diff --git a/node_modules/date-fns/locale/de.js b/node_modules/date-fns/locale/de.js new file mode 100644 index 000000000..31ede2cc9 --- /dev/null +++ b/node_modules/date-fns/locale/de.js @@ -0,0 +1,32 @@ +import { formatDistance } from "./de/_lib/formatDistance.js"; +import { formatLong } from "./de/_lib/formatLong.js"; +import { formatRelative } from "./de/_lib/formatRelative.js"; +import { localize } from "./de/_lib/localize.js"; +import { match } from "./de/_lib/match.js"; + +/** + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Asia [@asia-t](https://github.com/asia-t) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author RomanErnst [@pex](https://github.com/pex) + * @author Philipp Keck [@Philipp91](https://github.com/Philipp91) + */ +export const de = { + code: "de", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default de; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.cjs b/node_modules/date-fns/locale/de/_lib/formatDistance.cjs new file mode 100644 index 000000000..ed8d1419d --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.cjs @@ -0,0 +1,200 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden", + }, + withPreposition: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden", + }, + }, + + xSeconds: { + standalone: { + one: "1 Sekunde", + other: "{{count}} Sekunden", + }, + withPreposition: { + one: "1 Sekunde", + other: "{{count}} Sekunden", + }, + }, + + halfAMinute: { + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute", + }, + + lessThanXMinutes: { + standalone: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten", + }, + withPreposition: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten", + }, + }, + + xMinutes: { + standalone: { + one: "1 Minute", + other: "{{count}} Minuten", + }, + withPreposition: { + one: "1 Minute", + other: "{{count}} Minuten", + }, + }, + + aboutXHours: { + standalone: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden", + }, + withPreposition: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden", + }, + }, + + xHours: { + standalone: { + one: "1 Stunde", + other: "{{count}} Stunden", + }, + withPreposition: { + one: "1 Stunde", + other: "{{count}} Stunden", + }, + }, + + xDays: { + standalone: { + one: "1 Tag", + other: "{{count}} Tage", + }, + withPreposition: { + one: "1 Tag", + other: "{{count}} Tagen", + }, + }, + + aboutXWeeks: { + standalone: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen", + }, + withPreposition: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "1 Woche", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "1 Woche", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monate", + }, + withPreposition: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monaten", + }, + }, + + xMonths: { + standalone: { + one: "1 Monat", + other: "{{count}} Monate", + }, + withPreposition: { + one: "1 Monat", + other: "{{count}} Monaten", + }, + }, + + aboutXYears: { + standalone: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahre", + }, + withPreposition: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahren", + }, + }, + + xYears: { + standalone: { + one: "1 Jahr", + other: "{{count}} Jahre", + }, + withPreposition: { + one: "1 Jahr", + other: "{{count}} Jahren", + }, + }, + + overXYears: { + standalone: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahre", + }, + withPreposition: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahren", + }, + }, + + almostXYears: { + standalone: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahre", + }, + withPreposition: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahren", + }, + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return "vor " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/de/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/de/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance.js b/node_modules/date-fns/locale/de/_lib/formatDistance.js new file mode 100644 index 000000000..bf23ff8be --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance.js @@ -0,0 +1,196 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden", + }, + withPreposition: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden", + }, + }, + + xSeconds: { + standalone: { + one: "1 Sekunde", + other: "{{count}} Sekunden", + }, + withPreposition: { + one: "1 Sekunde", + other: "{{count}} Sekunden", + }, + }, + + halfAMinute: { + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute", + }, + + lessThanXMinutes: { + standalone: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten", + }, + withPreposition: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten", + }, + }, + + xMinutes: { + standalone: { + one: "1 Minute", + other: "{{count}} Minuten", + }, + withPreposition: { + one: "1 Minute", + other: "{{count}} Minuten", + }, + }, + + aboutXHours: { + standalone: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden", + }, + withPreposition: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden", + }, + }, + + xHours: { + standalone: { + one: "1 Stunde", + other: "{{count}} Stunden", + }, + withPreposition: { + one: "1 Stunde", + other: "{{count}} Stunden", + }, + }, + + xDays: { + standalone: { + one: "1 Tag", + other: "{{count}} Tage", + }, + withPreposition: { + one: "1 Tag", + other: "{{count}} Tagen", + }, + }, + + aboutXWeeks: { + standalone: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen", + }, + withPreposition: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "1 Woche", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "1 Woche", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monate", + }, + withPreposition: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monaten", + }, + }, + + xMonths: { + standalone: { + one: "1 Monat", + other: "{{count}} Monate", + }, + withPreposition: { + one: "1 Monat", + other: "{{count}} Monaten", + }, + }, + + aboutXYears: { + standalone: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahre", + }, + withPreposition: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahren", + }, + }, + + xYears: { + standalone: { + one: "1 Jahr", + other: "{{count}} Jahre", + }, + withPreposition: { + one: "1 Jahr", + other: "{{count}} Jahren", + }, + }, + + overXYears: { + standalone: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahre", + }, + withPreposition: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahren", + }, + }, + + almostXYears: { + standalone: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahre", + }, + withPreposition: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahren", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return "vor " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/de/_lib/formatLong.cjs b/node_modules/date-fns/locale/de/_lib/formatLong.cjs new file mode 100644 index 000000000..4402d61ea --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +const dateFormats = { + full: "EEEE, do MMMM y", // Montag, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan. 2018 + short: "dd.MM.y", // 07.01.2018 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/de/_lib/formatLong.d.cts b/node_modules/date-fns/locale/de/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/de/_lib/formatLong.d.ts b/node_modules/date-fns/locale/de/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/de/_lib/formatLong.js b/node_modules/date-fns/locale/de/_lib/formatLong.js new file mode 100644 index 000000000..43abf1bcc --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong.js @@ -0,0 +1,40 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +const dateFormats = { + full: "EEEE, do MMMM y", // Montag, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan. 2018 + short: "dd.MM.y", // 07.01.2018 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative.cjs b/node_modules/date-fns/locale/de/_lib/formatRelative.cjs new file mode 100644 index 000000000..a2b8c4949 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/de/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/de/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative.js b/node_modules/date-fns/locale/de/_lib/formatRelative.js new file mode 100644 index 000000000..b3104513f --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/de/_lib/localize.cjs b/node_modules/date-fns/locale/de/_lib/localize.cjs new file mode 100644 index 000000000..ddf9f2f95 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize.cjs @@ -0,0 +1,193 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +// Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +// https://st.unicode.org/cldr-apps/v#/de/Gregorian/ +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jan.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez.", + ], + + wide: monthValues.wide, +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/de.html#1881 +const dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/de/_lib/localize.d.cts b/node_modules/date-fns/locale/de/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de/_lib/localize.d.ts b/node_modules/date-fns/locale/de/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/de/_lib/localize.js b/node_modules/date-fns/locale/de/_lib/localize.js new file mode 100644 index 000000000..626466b70 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize.js @@ -0,0 +1,191 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +// Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +// https://st.unicode.org/cldr-apps/v#/de/Gregorian/ +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jan.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez.", + ], + + wide: monthValues.wide, +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/de.html#1881 +const dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts", + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/de/_lib/match.cjs b/node_modules/date-fns/locale/de/_lib/match.cjs new file mode 100644 index 000000000..3fd365a47 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^j[aä]/i, + /^f/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: + /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, // will never be matched. Afternoon is matched by `pm` + evening: /abends/i, + night: /nachts/i, // will never be matched. Night is matched by `pm` + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/de/_lib/match.d.cts b/node_modules/date-fns/locale/de/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/de/_lib/match.d.ts b/node_modules/date-fns/locale/de/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/de/_lib/match.js b/node_modules/date-fns/locale/de/_lib/match.js new file mode 100644 index 000000000..a9b330833 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^j[aä]/i, + /^f/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: + /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, // will never be matched. Afternoon is matched by `pm` + evening: /abends/i, + night: /nachts/i, // will never be matched. Night is matched by `pm` + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/de/cdn.js b/node_modules/date-fns/locale/de/cdn.js new file mode 100644 index 000000000..788fa1be7 --- /dev/null +++ b/node_modules/date-fns/locale/de/cdn.js @@ -0,0 +1,679 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/de/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden" + }, + withPreposition: { + one: "weniger als 1 Sekunde", + other: "weniger als {{count}} Sekunden" + } + }, + xSeconds: { + standalone: { + one: "1 Sekunde", + other: "{{count}} Sekunden" + }, + withPreposition: { + one: "1 Sekunde", + other: "{{count}} Sekunden" + } + }, + halfAMinute: { + standalone: "eine halbe Minute", + withPreposition: "einer halben Minute" + }, + lessThanXMinutes: { + standalone: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten" + }, + withPreposition: { + one: "weniger als 1 Minute", + other: "weniger als {{count}} Minuten" + } + }, + xMinutes: { + standalone: { + one: "1 Minute", + other: "{{count}} Minuten" + }, + withPreposition: { + one: "1 Minute", + other: "{{count}} Minuten" + } + }, + aboutXHours: { + standalone: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden" + }, + withPreposition: { + one: "etwa 1 Stunde", + other: "etwa {{count}} Stunden" + } + }, + xHours: { + standalone: { + one: "1 Stunde", + other: "{{count}} Stunden" + }, + withPreposition: { + one: "1 Stunde", + other: "{{count}} Stunden" + } + }, + xDays: { + standalone: { + one: "1 Tag", + other: "{{count}} Tage" + }, + withPreposition: { + one: "1 Tag", + other: "{{count}} Tagen" + } + }, + aboutXWeeks: { + standalone: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen" + }, + withPreposition: { + one: "etwa 1 Woche", + other: "etwa {{count}} Wochen" + } + }, + xWeeks: { + standalone: { + one: "1 Woche", + other: "{{count}} Wochen" + }, + withPreposition: { + one: "1 Woche", + other: "{{count}} Wochen" + } + }, + aboutXMonths: { + standalone: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monate" + }, + withPreposition: { + one: "etwa 1 Monat", + other: "etwa {{count}} Monaten" + } + }, + xMonths: { + standalone: { + one: "1 Monat", + other: "{{count}} Monate" + }, + withPreposition: { + one: "1 Monat", + other: "{{count}} Monaten" + } + }, + aboutXYears: { + standalone: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahre" + }, + withPreposition: { + one: "etwa 1 Jahr", + other: "etwa {{count}} Jahren" + } + }, + xYears: { + standalone: { + one: "1 Jahr", + other: "{{count}} Jahre" + }, + withPreposition: { + one: "1 Jahr", + other: "{{count}} Jahren" + } + }, + overXYears: { + standalone: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahre" + }, + withPreposition: { + one: "mehr als 1 Jahr", + other: "mehr als {{count}} Jahren" + } + }, + almostXYears: { + standalone: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahre" + }, + withPreposition: { + one: "fast 1 Jahr", + other: "fast {{count}} Jahren" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return "vor " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/de/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/de/_lib/localize.js +var eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["vor Christus", "nach Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mär", + "Apr", + "Mai", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez"], + + wide: [ + "Januar", + "Februar", + "März", + "April", + "Mai", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember"] + +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: [ + "Jan.", + "Feb.", + "März", + "Apr.", + "Mai", + "Juni", + "Juli", + "Aug.", + "Sep.", + "Okt.", + "Nov.", + "Dez."], + + wide: monthValues.wide +}; +var dayValues = { + narrow: [ + "S", + "M", + "D", + "M", + "D", + "F", + "S"], + + short: [ + "So", + "Mo", + "Di", + "Mi", + "Do", + "Fr", + "Sa"], + + abbreviated: [ + "So.", + "Mo.", + "Di.", + "Mi.", + "Do.", + "Fr.", + "Sa."], + + wide: [ + "Sonntag", + "Montag", + "Dienstag", + "Mittwoch", + "Donnerstag", + "Freitag", + "Samstag"] + +}; +var dayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachm.", + evening: "Abend", + night: "Nacht" + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht" + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "Morgen", + afternoon: "Nachmittag", + evening: "Abend", + night: "Nacht" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "vm.", + pm: "nm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachm.", + evening: "abends", + night: "nachts" + }, + abbreviated: { + am: "vorm.", + pm: "nachm.", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts" + }, + wide: { + am: "vormittags", + pm: "nachmittags", + midnight: "Mitternacht", + noon: "Mittag", + morning: "morgens", + afternoon: "nachmittags", + evening: "abends", + night: "nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/de.js +/** +* @category Locales +* @summary German locale. +* @language German +* @iso-639-2 deu +* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) +* @author Asia [@asia-t](https://github.com/asia-t) +* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) +* @author RomanErnst [@pex](https://github.com/pex) +* @author Philipp Keck [@Philipp91](https://github.com/Philipp91) +*/ +var de = { + code: "de", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^j[aä]/i, + /^f/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^so/i, + /^mo/i, + /^di/i, + /^mi/i, + /^do/i, + /^f/i, + /^sa/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, + evening: /abends/i, + night: /nachts/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/de/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + de: de }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/cdn.min.js b/node_modules/date-fns/locale/de/cdn.min.js new file mode 100644 index 000000000..869b5488b --- /dev/null +++ b/node_modules/date-fns/locale/de/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:`vor `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},m={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},h={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},g={narrow:h.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:h.wide},_={ordinalNumber:function(e){return Number(e)+`.`},era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,formattingValues:g,defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})};function v(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?b(s,function(e){return e.test(o)}):y(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function y(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function b(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var S={code:`de`,formatDistance:s,formatLong:l,formatRelative:d,localize:_,match:{ordinalNumber:x({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:v({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:v({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:v({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:v({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:v({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{de:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/el.cjs b/node_modules/date-fns/locale/el.cjs new file mode 100644 index 000000000..a1ccde29b --- /dev/null +++ b/node_modules/date-fns/locale/el.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.el = void 0; +var _index = require("./el/_lib/formatDistance.cjs"); +var _index2 = require("./el/_lib/formatLong.cjs"); +var _index3 = require("./el/_lib/formatRelative.cjs"); +var _index4 = require("./el/_lib/localize.cjs"); +var _index5 = require("./el/_lib/match.cjs"); + +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +const el = (exports.el = { + code: "el", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/el.d.cts b/node_modules/date-fns/locale/el.d.cts new file mode 100644 index 000000000..991adbf04 --- /dev/null +++ b/node_modules/date-fns/locale/el.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export declare const el: Locale; diff --git a/node_modules/date-fns/locale/el.d.ts b/node_modules/date-fns/locale/el.d.ts new file mode 100644 index 000000000..991adbf04 --- /dev/null +++ b/node_modules/date-fns/locale/el.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export declare const el: Locale; diff --git a/node_modules/date-fns/locale/el.js b/node_modules/date-fns/locale/el.js new file mode 100644 index 000000000..48434cd29 --- /dev/null +++ b/node_modules/date-fns/locale/el.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./el/_lib/formatDistance.js"; +import { formatLong } from "./el/_lib/formatLong.js"; +import { formatRelative } from "./el/_lib/formatRelative.js"; +import { localize } from "./el/_lib/localize.js"; +import { match } from "./el/_lib/match.js"; + +/** + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) + * @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) + */ +export const el = { + code: "el", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default el; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.cjs b/node_modules/date-fns/locale/el/_lib/formatDistance.cjs new file mode 100644 index 000000000..bb1ca64e6 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα", + }, + + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα", + }, + + halfAMinute: "μισό λεπτό", + + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά", + }, + + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά", + }, + + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες", + }, + + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες", + }, + + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες", + }, + + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες", + }, + + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες", + }, + + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες", + }, + + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες", + }, + + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, + + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια", + }, + + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια", + }, + + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "σε " + result; + } else { + return result + " πριν"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance.js b/node_modules/date-fns/locale/el/_lib/formatDistance.js new file mode 100644 index 000000000..f53bd76d5 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα", + }, + + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα", + }, + + halfAMinute: "μισό λεπτό", + + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά", + }, + + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά", + }, + + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες", + }, + + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες", + }, + + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες", + }, + + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες", + }, + + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες", + }, + + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες", + }, + + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες", + }, + + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, + + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια", + }, + + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια", + }, + + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "σε " + result; + } else { + return result + " πριν"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.cjs b/node_modules/date-fns/locale/el/_lib/formatLong.cjs new file mode 100644 index 000000000..91bed36f7 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.d.cts b/node_modules/date-fns/locale/el/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.d.ts b/node_modules/date-fns/locale/el/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/el/_lib/formatLong.js b/node_modules/date-fns/locale/el/_lib/formatLong.js new file mode 100644 index 000000000..cd119bf04 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.cjs b/node_modules/date-fns/locale/el/_lib/formatRelative.cjs new file mode 100644 index 000000000..a9f42db11 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 6: //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P", +}; + +const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") return format(date); + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative.js b/node_modules/date-fns/locale/el/_lib/formatRelative.js new file mode 100644 index 000000000..5f77d9b03 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative.js @@ -0,0 +1,23 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 6: //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P", +}; + +export const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") return format(date); + + return format; +}; diff --git a/node_modules/date-fns/locale/el/_lib/localize.cjs b/node_modules/date-fns/locale/el/_lib/localize.cjs new file mode 100644 index 000000000..0f82ad02b --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.cjs @@ -0,0 +1,183 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Τ1", "Τ2", "Τ3", "Τ4"], + wide: ["1ο τρίμηνο", "2ο τρίμηνο", "3ο τρίμηνο", "4ο τρίμηνο"], +}; + +const monthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ", + ], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος", + ], +}; + +const formattingMonthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ", + ], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου", + ], +}; + +const dayValues = { + narrow: ["Κ", "Δ", "T", "Τ", "Π", "Π", "Σ"], + short: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"], + abbreviated: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"], + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let suffix; + + if (unit === "year" || unit === "month") { + suffix = "ος"; + } else if ( + unit === "week" || + unit === "dayOfYear" || + unit === "day" || + unit === "hour" || + unit === "date" + ) { + suffix = "η"; + } else { + suffix = "ο"; + } + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/localize.d.cts b/node_modules/date-fns/locale/el/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/el/_lib/localize.d.ts b/node_modules/date-fns/locale/el/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/el/_lib/localize.js b/node_modules/date-fns/locale/el/_lib/localize.js new file mode 100644 index 000000000..fa44156d2 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize.js @@ -0,0 +1,181 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Τ1", "Τ2", "Τ3", "Τ4"], + wide: ["1ο τρίμηνο", "2ο τρίμηνο", "3ο τρίμηνο", "4ο τρίμηνο"], +}; + +const monthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ", + ], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος", + ], +}; + +const formattingMonthValues = { + narrow: ["Ι", "Φ", "Μ", "Α", "Μ", "Ι", "Ι", "Α", "Σ", "Ο", "Ν", "Δ"], + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ", + ], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου", + ], +}; + +const dayValues = { + narrow: ["Κ", "Δ", "T", "Τ", "Π", "Π", "Σ"], + short: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"], + abbreviated: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"], + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let suffix; + + if (unit === "year" || unit === "month") { + suffix = "ος"; + } else if ( + unit === "week" || + unit === "dayOfYear" || + unit === "day" || + unit === "hour" || + unit === "date" + ) { + suffix = "η"; + } else { + suffix = "ο"; + } + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/el/_lib/match.cjs b/node_modules/date-fns/locale/el/_lib/match.cjs new file mode 100644 index 000000000..c337e08b7 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i, +}; +const parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: + /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i, +}; +const parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/el/_lib/match.d.cts b/node_modules/date-fns/locale/el/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/el/_lib/match.d.ts b/node_modules/date-fns/locale/el/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/el/_lib/match.js b/node_modules/date-fns/locale/el/_lib/match.js new file mode 100644 index 000000000..bea36d40b --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i, +}; +const parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: + /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i, +}; +const parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/el/cdn.js b/node_modules/date-fns/locale/el/cdn.js new file mode 100644 index 000000000..ab1799fdb --- /dev/null +++ b/node_modules/date-fns/locale/el/cdn.js @@ -0,0 +1,601 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/el/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "λιγότερο από ένα δευτερόλεπτο", + other: "λιγότερο από {{count}} δευτερόλεπτα" + }, + xSeconds: { + one: "1 δευτερόλεπτο", + other: "{{count}} δευτερόλεπτα" + }, + halfAMinute: "μισό λεπτό", + lessThanXMinutes: { + one: "λιγότερο από ένα λεπτό", + other: "λιγότερο από {{count}} λεπτά" + }, + xMinutes: { + one: "1 λεπτό", + other: "{{count}} λεπτά" + }, + aboutXHours: { + one: "περίπου 1 ώρα", + other: "περίπου {{count}} ώρες" + }, + xHours: { + one: "1 ώρα", + other: "{{count}} ώρες" + }, + xDays: { + one: "1 ημέρα", + other: "{{count}} ημέρες" + }, + aboutXWeeks: { + one: "περίπου 1 εβδομάδα", + other: "περίπου {{count}} εβδομάδες" + }, + xWeeks: { + one: "1 εβδομάδα", + other: "{{count}} εβδομάδες" + }, + aboutXMonths: { + one: "περίπου 1 μήνας", + other: "περίπου {{count}} μήνες" + }, + xMonths: { + one: "1 μήνας", + other: "{{count}} μήνες" + }, + aboutXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια" + }, + xYears: { + one: "1 χρόνο", + other: "{{count}} χρόνια" + }, + overXYears: { + one: "πάνω από 1 χρόνο", + other: "πάνω από {{count}} χρόνια" + }, + almostXYears: { + one: "περίπου 1 χρόνο", + other: "περίπου {{count}} χρόνια" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "σε " + result;else + return result + " πριν"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} - {{time}}", + long: "{{date}} - {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/el/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 6:return "'το προηγούμενο' eeee 'στις' p"; + default:return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/el/_lib/localize.js +var eraValues = { + narrow: ["πΧ", "μΧ"], + abbreviated: ["π.Χ.", "μ.Χ."], + wide: ["προ Χριστού", "μετά Χριστόν"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Τ1", + "Τ2", + "Τ3", + "Τ4"], + + wide: [ + "1ο τρίμηνο", + "2ο τρίμηνο", + "3ο τρίμηνο", + "4ο τρίμηνο"] + +}; +var monthValues = { + narrow: [ + "Ι", + "Φ", + "Μ", + "Α", + "Μ", + "Ι", + "Ι", + "Α", + "Σ", + "Ο", + "Ν", + "Δ"], + + abbreviated: [ + "Ιαν", + "Φεβ", + "Μάρ", + "Απρ", + "Μάι", + "Ιούν", + "Ιούλ", + "Αύγ", + "Σεπ", + "Οκτ", + "Νοέ", + "Δεκ"], + + wide: [ + "Ιανουάριος", + "Φεβρουάριος", + "Μάρτιος", + "Απρίλιος", + "Μάιος", + "Ιούνιος", + "Ιούλιος", + "Αύγουστος", + "Σεπτέμβριος", + "Οκτώβριος", + "Νοέμβριος", + "Δεκέμβριος"] + +}; +var formattingMonthValues = { + narrow: [ + "Ι", + "Φ", + "Μ", + "Α", + "Μ", + "Ι", + "Ι", + "Α", + "Σ", + "Ο", + "Ν", + "Δ"], + + abbreviated: [ + "Ιαν", + "Φεβ", + "Μαρ", + "Απρ", + "Μαΐ", + "Ιουν", + "Ιουλ", + "Αυγ", + "Σεπ", + "Οκτ", + "Νοε", + "Δεκ"], + + wide: [ + "Ιανουαρίου", + "Φεβρουαρίου", + "Μαρτίου", + "Απριλίου", + "Μαΐου", + "Ιουνίου", + "Ιουλίου", + "Αυγούστου", + "Σεπτεμβρίου", + "Οκτωβρίου", + "Νοεμβρίου", + "Δεκεμβρίου"] + +}; +var dayValues = { + narrow: [ + "Κ", + "Δ", + "T", + "Τ", + "Π", + "Π", + "Σ"], + + short: [ + "Κυ", + "Δε", + "Τρ", + "Τε", + "Πέ", + "Πα", + "Σά"], + + abbreviated: [ + "Κυρ", + "Δευ", + "Τρί", + "Τετ", + "Πέμ", + "Παρ", + "Σάβ"], + + wide: [ + "Κυριακή", + "Δευτέρα", + "Τρίτη", + "Τετάρτη", + "Πέμπτη", + "Παρασκευή", + "Σάββατο"] + +}; +var dayPeriodValues = { + narrow: { + am: "πμ", + pm: "μμ", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + }, + abbreviated: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + }, + wide: { + am: "π.μ.", + pm: "μ.μ.", + midnight: "μεσάνυχτα", + noon: "μεσημέρι", + morning: "πρωί", + afternoon: "απόγευμα", + evening: "βράδυ", + night: "νύχτα" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + if (unit === "year" || unit === "month") suffix = "ος";else + if (unit === "week" || unit === "dayOfYear" || unit === "day" || unit === "hour" || unit === "date") suffix = "η";else + suffix = "ο"; + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/el.js +/** +* @category Locales +* @summary Greek locale. +* @language Greek +* @iso-639-2 ell +* @author Fanis Katsimpas [@fanixk](https://github.com/fanixk) +* @author Theodoros Orfanidis [@teoulas](https://github.com/teoulas) +*/ +var el = { + code: "el", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ος|η|ο)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^π/i, /^(μ|κ)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ι/i, + /^φ/i, + /^μ/i, + /^α/i, + /^μ/i, + /^ι/i, + /^ι/i, + /^α/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i], + + any: [ + /^ια/i, + /^φ/i, + /^μ[άα]ρ/i, + /^απ/i, + /^μ[άα][ιΐ]/i, + /^ιο[ύυ]ν/i, + /^ιο[ύυ]λ/i, + /^α[ύυ]/i, + /^σ/i, + /^ο/i, + /^ν/i, + /^δ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^κ/i, + /^δ/i, + /^τ/i, + /^τ/i, + /^π/i, + /^π/i, + /^σ/i], + + any: [ + /^κ/i, + /^δ/i, + /^τρ/i, + /^τε/i, + /^π[εέ]/i, + /^π[αά]/i, + /^σ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/el/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + el: el }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/cdn.min.js b/node_modules/date-fns/locale/el/cdn.min.js new file mode 100644 index 000000000..242de8564 --- /dev/null +++ b/node_modules/date-fns/locale/el/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`σε `+r:r+` πριν`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`d/M/yy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} - {{time}}`,long:`{{date}} - {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 6:return`'το προηγούμενο' eeee 'στις' p`;default:return`'την προηγούμενη' eeee 'στις' p`}},yesterday:`'χθες στις' p`,today:`'σήμερα στις' p`,tomorrow:`'αύριο στις' p`,nextWeek:`eeee 'στις' p`,other:`P`},d=function(e,t){var n=u[e];return typeof n==`function`?n(t):n};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=t?.unit;return n+(r===`year`||r===`month`?`ος`:r===`week`||r===`dayOfYear`||r===`day`||r===`hour`||r===`date`?`η`:`ο`)},era:f({values:{narrow:[`πΧ`,`μΧ`],abbreviated:[`π.Χ.`,`μ.Χ.`],wide:[`προ Χριστού`,`μετά Χριστόν`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Τ1`,`Τ2`,`Τ3`,`Τ4`],wide:[`1ο τρίμηνο`,`2ο τρίμηνο`,`3ο τρίμηνο`,`4ο τρίμηνο`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μάρ`,`Απρ`,`Μάι`,`Ιούν`,`Ιούλ`,`Αύγ`,`Σεπ`,`Οκτ`,`Νοέ`,`Δεκ`],wide:[`Ιανουάριος`,`Φεβρουάριος`,`Μάρτιος`,`Απρίλιος`,`Μάιος`,`Ιούνιος`,`Ιούλιος`,`Αύγουστος`,`Σεπτέμβριος`,`Οκτώβριος`,`Νοέμβριος`,`Δεκέμβριος`]},defaultWidth:`wide`,formattingValues:{narrow:[`Ι`,`Φ`,`Μ`,`Α`,`Μ`,`Ι`,`Ι`,`Α`,`Σ`,`Ο`,`Ν`,`Δ`],abbreviated:[`Ιαν`,`Φεβ`,`Μαρ`,`Απρ`,`Μαΐ`,`Ιουν`,`Ιουλ`,`Αυγ`,`Σεπ`,`Οκτ`,`Νοε`,`Δεκ`],wide:[`Ιανουαρίου`,`Φεβρουαρίου`,`Μαρτίου`,`Απριλίου`,`Μαΐου`,`Ιουνίου`,`Ιουλίου`,`Αυγούστου`,`Σεπτεμβρίου`,`Οκτωβρίου`,`Νοεμβρίου`,`Δεκεμβρίου`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Κ`,`Δ`,`T`,`Τ`,`Π`,`Π`,`Σ`],short:[`Κυ`,`Δε`,`Τρ`,`Τε`,`Πέ`,`Πα`,`Σά`],abbreviated:[`Κυρ`,`Δευ`,`Τρί`,`Τετ`,`Πέμ`,`Παρ`,`Σάβ`],wide:[`Κυριακή`,`Δευτέρα`,`Τρίτη`,`Τετάρτη`,`Πέμπτη`,`Παρασκευή`,`Σάββατο`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`πμ`,pm:`μμ`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},abbreviated:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`},wide:{am:`π.μ.`,pm:`μ.μ.`,midnight:`μεσάνυχτα`,noon:`μεσημέρι`,morning:`πρωί`,afternoon:`απόγευμα`,evening:`βράδυ`,night:`νύχτα`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`el`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{el:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU.cjs b/node_modules/date-fns/locale/en-AU.cjs new file mode 100644 index 000000000..57f3a4de7 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.enAU = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-AU/_lib/formatLong.cjs"); +var _index3 = require("./en-US/_lib/formatRelative.cjs"); +var _index4 = require("./en-US/_lib/localize.cjs"); +var _index5 = require("./en-US/_lib/match.cjs"); + +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +const enAU = (exports.enAU = { + code: "en-AU", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-AU.d.cts b/node_modules/date-fns/locale/en-AU.d.cts new file mode 100644 index 000000000..1a946a18d --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export declare const enAU: Locale; diff --git a/node_modules/date-fns/locale/en-AU.d.ts b/node_modules/date-fns/locale/en-AU.d.ts new file mode 100644 index 000000000..1a946a18d --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export declare const enAU: Locale; diff --git a/node_modules/date-fns/locale/en-AU.js b/node_modules/date-fns/locale/en-AU.js new file mode 100644 index 000000000..6e3d5193e --- /dev/null +++ b/node_modules/date-fns/locale/en-AU.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatLong } from "./en-AU/_lib/formatLong.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +/** + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) + */ +export const enAU = { + code: "en-AU", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enAU; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs new file mode 100644 index 000000000..bf671063a --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong.js b/node_modules/date-fns/locale/en-AU/_lib/formatLong.js new file mode 100644 index 000000000..cc633fe89 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-AU/cdn.js b/node_modules/date-fns/locale/en-AU/cdn.js new file mode 100644 index 000000000..c0778f44a --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-AU.js +/** +* @category Locales +* @summary English locale (Australia). +* @language English +* @iso-639-2 eng +* @author Julien Malige [@JulienMalige](https://github.com/JulienMalige) +*/ +var enAU = { + code: "en-AU", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-AU/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enAU: enAU }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU/cdn.min.js b/node_modules/date-fns/locale/en-AU/cdn.min.js new file mode 100644 index 000000000..00ebb009d --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:f({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`en-AU`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enAU:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA.cjs b/node_modules/date-fns/locale/en-CA.cjs new file mode 100644 index 000000000..45e72439b --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.enCA = void 0; +var _index = require("./en-US/_lib/formatRelative.cjs"); +var _index2 = require("./en-US/_lib/localize.cjs"); +var _index3 = require("./en-US/_lib/match.cjs"); + +var _index4 = require("./en-CA/_lib/formatDistance.cjs"); +var _index5 = require("./en-CA/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +const enCA = (exports.enCA = { + code: "en-CA", + formatDistance: _index4.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index.formatRelative, + localize: _index2.localize, + match: _index3.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/en-CA.d.cts b/node_modules/date-fns/locale/en-CA.d.cts new file mode 100644 index 000000000..daa806eae --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export declare const enCA: Locale; diff --git a/node_modules/date-fns/locale/en-CA.d.ts b/node_modules/date-fns/locale/en-CA.d.ts new file mode 100644 index 000000000..daa806eae --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export declare const enCA: Locale; diff --git a/node_modules/date-fns/locale/en-CA.js b/node_modules/date-fns/locale/en-CA.js new file mode 100644 index 000000000..587da75ae --- /dev/null +++ b/node_modules/date-fns/locale/en-CA.js @@ -0,0 +1,30 @@ +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatDistance } from "./en-CA/_lib/formatDistance.js"; +import { formatLong } from "./en-CA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) + * @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) + */ +export const enCA = { + code: "en-CA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default enCA; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs new file mode 100644 index 000000000..1e458ec7d --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "a second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "a minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "an hour", + other: "{{count}} hours", + }, + + xDays: { + one: "a day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "a week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about a month", + other: "about {{count}} months", + }, + + xMonths: { + one: "a month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about a year", + other: "about {{count}} years", + }, + + xYears: { + one: "a year", + other: "{{count}} years", + }, + + overXYears: { + one: "over a year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost a year", + other: "almost {{count}} years", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js new file mode 100644 index 000000000..f97bbf784 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "a second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "a minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "an hour", + other: "{{count}} hours", + }, + + xDays: { + one: "a day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "a week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about a month", + other: "about {{count}} months", + }, + + xMonths: { + one: "a month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about a year", + other: "about {{count}} years", + }, + + xYears: { + one: "a year", + other: "{{count}} years", + }, + + overXYears: { + one: "over a year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost a year", + other: "almost {{count}} years", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs new file mode 100644 index 000000000..838faa604 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong.js b/node_modules/date-fns/locale/en-CA/_lib/formatLong.js new file mode 100644 index 000000000..9445c7647 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-CA/cdn.js b/node_modules/date-fns/locale/en-CA/cdn.js new file mode 100644 index 000000000..93b5fc162 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/cdn.js @@ -0,0 +1,581 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-CA/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "a second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "a minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about an hour", + other: "about {{count}} hours" + }, + xHours: { + one: "an hour", + other: "{{count}} hours" + }, + xDays: { + one: "a day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about a week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "a week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about a month", + other: "about {{count}} months" + }, + xMonths: { + one: "a month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about a year", + other: "about {{count}} years" + }, + xYears: { + one: "a year", + other: "{{count}} years" + }, + overXYears: { + one: "over a year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost a year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-CA.js +/** +* @category Locales +* @summary English locale (Canada). +* @language English +* @iso-639-2 eng +* @author Mark Owsiak [@markowsiak](https://github.com/markowsiak) +* @author Marco Imperatore [@mimperatore](https://github.com/mimperatore) +*/ +var enCA = { + code: "en-CA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, yyyy", + long: "MMMM do, yyyy", + medium: "MMM d, yyyy", + short: "yyyy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-CA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enCA: enCA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/cdn.min.js b/node_modules/date-fns/locale/en-CA/cdn.min.js new file mode 100644 index 000000000..508815203 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:c({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:c({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:c({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:c({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:c({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function u(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?f(s,function(e){return e.test(o)}):d(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function d(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function f(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var m={ordinalNumber:p({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},h={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`a second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`a minute`,other:`{{count}} minutes`},aboutXHours:{one:`about an hour`,other:`about {{count}} hours`},xHours:{one:`an hour`,other:`{{count}} hours`},xDays:{one:`a day`,other:`{{count}} days`},aboutXWeeks:{one:`about a week`,other:`about {{count}} weeks`},xWeeks:{one:`a week`,other:`{{count}} weeks`},aboutXMonths:{one:`about a month`,other:`about {{count}} months`},xMonths:{one:`a month`,other:`{{count}} months`},aboutXYears:{one:`about a year`,other:`about {{count}} years`},xYears:{one:`a year`,other:`{{count}} years`},overXYears:{one:`over a year`,other:`over {{count}} years`},almostXYears:{one:`almost a year`,other:`almost {{count}} years`}},g=function(e,t,n){var r,i=h[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-CA`,formatDistance:g,formatLong:{date:_({formats:{full:`EEEE, MMMM do, yyyy`,long:`MMMM do, yyyy`,medium:`MMM d, yyyy`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:s,localize:l,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enCA:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB.cjs b/node_modules/date-fns/locale/en-GB.cjs new file mode 100644 index 000000000..d2f55e933 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enGB = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-GB/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +const enGB = (exports.enGB = { + code: "en-GB", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-GB.d.cts b/node_modules/date-fns/locale/en-GB.d.cts new file mode 100644 index 000000000..c7106d7e1 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export declare const enGB: Locale; diff --git a/node_modules/date-fns/locale/en-GB.d.ts b/node_modules/date-fns/locale/en-GB.d.ts new file mode 100644 index 000000000..c7106d7e1 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export declare const enGB: Locale; diff --git a/node_modules/date-fns/locale/en-GB.js b/node_modules/date-fns/locale/en-GB.js new file mode 100644 index 000000000..ca4a11762 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-GB/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik](https://github.com/glintik) + */ +export const enGB = { + code: "en-GB", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enGB; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs new file mode 100644 index 000000000..d000c006f --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong.js b/node_modules/date-fns/locale/en-GB/_lib/formatLong.js new file mode 100644 index 000000000..4cb14cc7e --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-GB/cdn.js b/node_modules/date-fns/locale/en-GB/cdn.js new file mode 100644 index 000000000..f69ed6aee --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-GB.js +/** +* @category Locales +* @summary English locale (United Kingdom). +* @language English +* @iso-639-2 eng +* @author Alex [@glintik](https://github.com/glintik) +*/ +var enGB = { + code: "en-GB", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-GB/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enGB: enGB }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB/cdn.min.js b/node_modules/date-fns/locale/en-GB/cdn.min.js new file mode 100644 index 000000000..5137af149 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-GB`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enGB:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE.cjs b/node_modules/date-fns/locale/en-IE.cjs new file mode 100644 index 000000000..f0a3c5f92 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enIE = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-GB/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +const enIE = (exports.enIE = { + code: "en-IE", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-IE.d.cts b/node_modules/date-fns/locale/en-IE.d.cts new file mode 100644 index 000000000..c5e5a8611 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export declare const enIE: Locale; diff --git a/node_modules/date-fns/locale/en-IE.d.ts b/node_modules/date-fns/locale/en-IE.d.ts new file mode 100644 index 000000000..c5e5a8611 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export declare const enIE: Locale; diff --git a/node_modules/date-fns/locale/en-IE.js b/node_modules/date-fns/locale/en-IE.js new file mode 100644 index 000000000..1f94f70e1 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-GB/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75](https://github.com/tan75) + */ +export const enIE = { + code: "en-IE", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enIE; diff --git a/node_modules/date-fns/locale/en-IE/cdn.js b/node_modules/date-fns/locale/en-IE/cdn.js new file mode 100644 index 000000000..0a89f6a35 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-IE.js +/** +* @category Locales +* @summary English locale (Ireland). +* @language English +* @iso-639-2 eng +* @author Tetiana [@tan75](https://github.com/tan75) +*/ +var enIE = { + code: "en-IE", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-IE/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enIE: enIE }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE/cdn.min.js b/node_modules/date-fns/locale/en-IE/cdn.min.js new file mode 100644 index 000000000..fff8e530f --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-IE`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enIE:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN.cjs b/node_modules/date-fns/locale/en-IN.cjs new file mode 100644 index 000000000..410dbc794 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enIN = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-IN/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +const enIN = (exports.enIN = { + code: "en-IN", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1, // Monday is the first day of the week. + firstWeekContainsDate: 4, // The week that contains Jan 4th is the first week of the year. + }, +}); diff --git a/node_modules/date-fns/locale/en-IN.d.cts b/node_modules/date-fns/locale/en-IN.d.cts new file mode 100644 index 000000000..90a31fa96 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export declare const enIN: Locale; diff --git a/node_modules/date-fns/locale/en-IN.d.ts b/node_modules/date-fns/locale/en-IN.d.ts new file mode 100644 index 000000000..90a31fa96 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export declare const enIN: Locale; diff --git a/node_modules/date-fns/locale/en-IN.js b/node_modules/date-fns/locale/en-IN.js new file mode 100644 index 000000000..e97662ab1 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-IN/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) + */ +export const enIN = { + code: "en-IN", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, // Monday is the first day of the week. + firstWeekContainsDate: 4, // The week that contains Jan 4th is the first week of the year. + }, +}; + +// Fallback for modularized imports: +export default enIN; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs new file mode 100644 index 000000000..f7c1a758b --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong.js b/node_modules/date-fns/locale/en-IN/_lib/formatLong.js new file mode 100644 index 000000000..c875ab8a6 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-IN/cdn.js b/node_modules/date-fns/locale/en-IN/cdn.js new file mode 100644 index 000000000..dfabd7d05 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-IN.js +/** +* @category Locales +* @summary English locale (India). +* @language English +* @iso-639-2 eng +* @author Galeel Bhasha Satthar [@gbhasha](https://github.com/gbhasha) +*/ +var enIN = { + code: "en-IN", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM, yyyy", + medium: "d MMM, yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-IN/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enIN: enIN }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN/cdn.min.js b/node_modules/date-fns/locale/en-IN/cdn.min.js new file mode 100644 index 000000000..3386756b8 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-IN`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM, yyyy`,medium:`d MMM, yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enIN:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ.cjs b/node_modules/date-fns/locale/en-NZ.cjs new file mode 100644 index 000000000..078abaf51 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enNZ = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-NZ/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +const enNZ = (exports.enNZ = { + code: "en-NZ", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/en-NZ.d.cts b/node_modules/date-fns/locale/en-NZ.d.cts new file mode 100644 index 000000000..fd43adaab --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export declare const enNZ: Locale; diff --git a/node_modules/date-fns/locale/en-NZ.d.ts b/node_modules/date-fns/locale/en-NZ.d.ts new file mode 100644 index 000000000..fd43adaab --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export declare const enNZ: Locale; diff --git a/node_modules/date-fns/locale/en-NZ.js b/node_modules/date-fns/locale/en-NZ.js new file mode 100644 index 000000000..2d51ecf39 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-NZ/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact](https://github.com/muntact) + */ +export const enNZ = { + code: "en-NZ", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default enNZ; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs new file mode 100644 index 000000000..bf671063a --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js new file mode 100644 index 000000000..cc633fe89 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-NZ/cdn.js b/node_modules/date-fns/locale/en-NZ/cdn.js new file mode 100644 index 000000000..a370a2e91 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-NZ.js +/** +* @category Locales +* @summary English locale (New Zealand). +* @language English +* @iso-639-2 eng +* @author Murray Lucas [@muntact](https://github.com/muntact) +*/ +var enNZ = { + code: "en-NZ", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-NZ/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enNZ: enNZ }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ/cdn.min.js b/node_modules/date-fns/locale/en-NZ/cdn.min.js new file mode 100644 index 000000000..cede8906e --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-NZ`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enNZ:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US.cjs b/node_modules/date-fns/locale/en-US.cjs new file mode 100644 index 000000000..4745179ed --- /dev/null +++ b/node_modules/date-fns/locale/en-US.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enUS = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatLong.cjs"); +var _index3 = require("./en-US/_lib/formatRelative.cjs"); +var _index4 = require("./en-US/_lib/localize.cjs"); +var _index5 = require("./en-US/_lib/match.cjs"); + +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +const enUS = (exports.enUS = { + code: "en-US", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/en-US.d.cts b/node_modules/date-fns/locale/en-US.d.cts new file mode 100644 index 000000000..b0b45dc02 --- /dev/null +++ b/node_modules/date-fns/locale/en-US.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const enUS: Locale; diff --git a/node_modules/date-fns/locale/en-US.d.ts b/node_modules/date-fns/locale/en-US.d.ts new file mode 100644 index 000000000..b0b45dc02 --- /dev/null +++ b/node_modules/date-fns/locale/en-US.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const enUS: Locale; diff --git a/node_modules/date-fns/locale/en-US.js b/node_modules/date-fns/locale/en-US.js new file mode 100644 index 000000000..7eca37d2a --- /dev/null +++ b/node_modules/date-fns/locale/en-US.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatLong } from "./en-US/_lib/formatLong.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +/** + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export const enUS = { + code: "en-US", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default enUS; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs b/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs new file mode 100644 index 000000000..2af571048 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "1 second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "1 hour", + other: "{{count}} hours", + }, + + xDays: { + one: "1 day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months", + }, + + xMonths: { + one: "1 month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years", + }, + + xYears: { + one: "1 year", + other: "{{count}} years", + }, + + overXYears: { + one: "over 1 year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance.js b/node_modules/date-fns/locale/en-US/_lib/formatDistance.js new file mode 100644 index 000000000..7aeecef66 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds", + }, + + xSeconds: { + one: "1 second", + other: "{{count}} seconds", + }, + + halfAMinute: "half a minute", + + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours", + }, + + xHours: { + one: "1 hour", + other: "{{count}} hours", + }, + + xDays: { + one: "1 day", + other: "{{count}} days", + }, + + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weeks", + }, + + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months", + }, + + xMonths: { + one: "1 month", + other: "{{count}} months", + }, + + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years", + }, + + xYears: { + one: "1 year", + other: "{{count}} years", + }, + + overXYears: { + one: "over 1 year", + other: "over {{count}} years", + }, + + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "in " + result; + } else { + return result + " ago"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs new file mode 100644 index 000000000..240008c27 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong.js b/node_modules/date-fns/locale/en-US/_lib/formatLong.js new file mode 100644 index 000000000..4f7fae104 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs b/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs new file mode 100644 index 000000000..83075e9dc --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative.js b/node_modules/date-fns/locale/en-US/_lib/formatRelative.js new file mode 100644 index 000000000..d6eccf48a --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.cjs b/node_modules/date-fns/locale/en-US/_lib/localize.cjs new file mode 100644 index 000000000..13e16396f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.cjs @@ -0,0 +1,189 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "st"; + case 2: + return number + "nd"; + case 3: + return number + "rd"; + } + } + return number + "th"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.d.cts b/node_modules/date-fns/locale/en-US/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.d.ts b/node_modules/date-fns/locale/en-US/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/en-US/_lib/localize.js b/node_modules/date-fns/locale/en-US/_lib/localize.js new file mode 100644 index 000000000..7882a18ca --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize.js @@ -0,0 +1,187 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "W", "T", "F", "S"], + short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "st"; + case 2: + return number + "nd"; + case 3: + return number + "rd"; + } + } + return number + "th"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.cjs b/node_modules/date-fns/locale/en-US/_lib/match.cjs new file mode 100644 index 000000000..8fe527f31 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/en-US/_lib/match.d.cts b/node_modules/date-fns/locale/en-US/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.d.ts b/node_modules/date-fns/locale/en-US/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/en-US/_lib/match.js b/node_modules/date-fns/locale/en-US/_lib/match.js new file mode 100644 index 000000000..f07879266 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/en-US/cdn.js b/node_modules/date-fns/locale/en-US/cdn.js new file mode 100644 index 000000000..bd2a5357f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/cdn.js @@ -0,0 +1,581 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US.js +/** +* @category Locales +* @summary English locale (United States). +* @language English +* @iso-639-2 eng +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var enUS = { + code: "en-US", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-US/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enUS: enUS }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/cdn.min.js b/node_modules/date-fns/locale/en-US/cdn.min.js new file mode 100644 index 000000000..042026c6d --- /dev/null +++ b/node_modules/date-fns/locale/en-US/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:f({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`en-US`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enUS:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA.cjs b/node_modules/date-fns/locale/en-ZA.cjs new file mode 100644 index 000000000..f4b2502fa --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.enZA = void 0; +var _index = require("./en-US/_lib/formatDistance.cjs"); +var _index2 = require("./en-US/_lib/formatRelative.cjs"); +var _index3 = require("./en-US/_lib/localize.cjs"); +var _index4 = require("./en-US/_lib/match.cjs"); + +var _index5 = require("./en-ZA/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +const enZA = (exports.enZA = { + code: "en-ZA", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 0, // Sunday is the first day of the week. + firstWeekContainsDate: 1, // The week that contains Jan 1st is the first week of the year. + }, +}); diff --git a/node_modules/date-fns/locale/en-ZA.d.cts b/node_modules/date-fns/locale/en-ZA.d.cts new file mode 100644 index 000000000..78b46e2a6 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export declare const enZA: Locale; diff --git a/node_modules/date-fns/locale/en-ZA.d.ts b/node_modules/date-fns/locale/en-ZA.d.ts new file mode 100644 index 000000000..78b46e2a6 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export declare const enZA: Locale; diff --git a/node_modules/date-fns/locale/en-ZA.js b/node_modules/date-fns/locale/en-ZA.js new file mode 100644 index 000000000..73f072b97 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./en-US/_lib/formatDistance.js"; +import { formatRelative } from "./en-US/_lib/formatRelative.js"; +import { localize } from "./en-US/_lib/localize.js"; +import { match } from "./en-US/_lib/match.js"; + +import { formatLong } from "./en-ZA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) + */ +export const enZA = { + code: "en-ZA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, // Sunday is the first day of the week. + firstWeekContainsDate: 1, // The week that contains Jan 1st is the first week of the year. + }, +}; + +// Fallback for modularized imports: +export default enZA; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs new file mode 100644 index 000000000..4db256e9f --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js new file mode 100644 index 000000000..5beed2478 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/en-ZA/cdn.js b/node_modules/date-fns/locale/en-ZA/cdn.js new file mode 100644 index 000000000..48023bb0c --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/cdn.js @@ -0,0 +1,580 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/en-US/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "less than a second", + other: "less than {{count}} seconds" + }, + xSeconds: { + one: "1 second", + other: "{{count}} seconds" + }, + halfAMinute: "half a minute", + lessThanXMinutes: { + one: "less than a minute", + other: "less than {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "about 1 hour", + other: "about {{count}} hours" + }, + xHours: { + one: "1 hour", + other: "{{count}} hours" + }, + xDays: { + one: "1 day", + other: "{{count}} days" + }, + aboutXWeeks: { + one: "about 1 week", + other: "about {{count}} weeks" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weeks" + }, + aboutXMonths: { + one: "about 1 month", + other: "about {{count}} months" + }, + xMonths: { + one: "1 month", + other: "{{count}} months" + }, + aboutXYears: { + one: "about 1 year", + other: "about {{count}} years" + }, + xYears: { + one: "1 year", + other: "{{count}} years" + }, + overXYears: { + one: "over 1 year", + other: "over {{count}} years" + }, + almostXYears: { + one: "almost 1 year", + other: "almost {{count}} years" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;else + return result + " ago"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/en-US/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-US/_lib/localize.js +var eraValues = { + narrow: ["B", "A"], + abbreviated: ["BC", "AD"], + wide: ["Before Christ", "Anno Domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1st quarter", + "2nd quarter", + "3rd quarter", + "4th quarter"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec"], + + wide: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "W", + "T", + "F", + "S"], + + short: [ + "Su", + "Mo", + "Tu", + "We", + "Th", + "Fr", + "Sa"], + + abbreviated: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat"], + + wide: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "morning", + afternoon: "afternoon", + evening: "evening", + night: "night" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mi", + noon: "n", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnight", + noon: "noon", + morning: "in the morning", + afternoon: "in the afternoon", + evening: "in the evening", + night: "at night" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "st"; + case 2:return number + "nd"; + case 3:return number + "rd"; + } + return number + "th"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^may/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/en-ZA.js +/** +* @category Locales +* @summary English locale (South Africa). +* @language English +* @iso-639-2 eng +* @author Shaila Kavrakova [@shaykav](https://github.com/shaykav) +*/ +var enZA = { + code: "en-ZA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "yyyy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/en-ZA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + enZA: enZA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA/cdn.min.js b/node_modules/date-fns/locale/en-ZA/cdn.min.js new file mode 100644 index 000000000..726969766 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in `+r:r+` ago`:r},c={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:u({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:u({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:u({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:u({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function f(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?m(s,function(e){return e.test(o)}):p(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function p(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function m(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var g={ordinalNumber:h({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})};function _(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var v={code:`en-ZA`,formatDistance:s,formatLong:{date:_({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:_({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:d,match:g,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{enZA:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo.cjs b/node_modules/date-fns/locale/eo.cjs new file mode 100644 index 000000000..262aa3c37 --- /dev/null +++ b/node_modules/date-fns/locale/eo.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.eo = void 0; +var _index = require("./eo/_lib/formatDistance.cjs"); +var _index2 = require("./eo/_lib/formatLong.cjs"); +var _index3 = require("./eo/_lib/formatRelative.cjs"); +var _index4 = require("./eo/_lib/localize.cjs"); +var _index5 = require("./eo/_lib/match.cjs"); + +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +const eo = (exports.eo = { + code: "eo", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/eo.d.cts b/node_modules/date-fns/locale/eo.d.cts new file mode 100644 index 000000000..8d128587e --- /dev/null +++ b/node_modules/date-fns/locale/eo.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export declare const eo: Locale; diff --git a/node_modules/date-fns/locale/eo.d.ts b/node_modules/date-fns/locale/eo.d.ts new file mode 100644 index 000000000..8d128587e --- /dev/null +++ b/node_modules/date-fns/locale/eo.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export declare const eo: Locale; diff --git a/node_modules/date-fns/locale/eo.js b/node_modules/date-fns/locale/eo.js new file mode 100644 index 000000000..ab6d6d177 --- /dev/null +++ b/node_modules/date-fns/locale/eo.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./eo/_lib/formatDistance.js"; +import { formatLong } from "./eo/_lib/formatLong.js"; +import { formatRelative } from "./eo/_lib/formatRelative.js"; +import { localize } from "./eo/_lib/localize.js"; +import { match } from "./eo/_lib/match.js"; + +/** + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +export const eo = { + code: "eo", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default eo; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs b/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs new file mode 100644 index 000000000..fb7f9a538 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj", + }, + + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj", + }, + + halfAMinute: "duonminuto", + + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj", + }, + + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj", + }, + + xHours: { + one: "1 horo", + other: "{{count}} horoj", + }, + + xDays: { + one: "1 tago", + other: "{{count}} tagoj", + }, + + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj", + }, + + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj", + }, + + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj", + }, + + xMonths: { + one: "1 monato", + other: "{{count}} monatoj", + }, + + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj", + }, + + xYears: { + one: "1 jaro", + other: "{{count}} jaroj", + }, + + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj", + }, + + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options?.comparison && options.comparison > 0) { + return "post " + result; + } else { + return "antaŭ " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance.js b/node_modules/date-fns/locale/eo/_lib/formatDistance.js new file mode 100644 index 000000000..aafb1b661 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj", + }, + + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj", + }, + + halfAMinute: "duonminuto", + + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj", + }, + + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj", + }, + + xHours: { + one: "1 horo", + other: "{{count}} horoj", + }, + + xDays: { + one: "1 tago", + other: "{{count}} tagoj", + }, + + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj", + }, + + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj", + }, + + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj", + }, + + xMonths: { + one: "1 monato", + other: "{{count}} monatoj", + }, + + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj", + }, + + xYears: { + one: "1 jaro", + other: "{{count}} jaroj", + }, + + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj", + }, + + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options?.comparison && options.comparison > 0) { + return "post " + result; + } else { + return "antaŭ " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.cjs b/node_modules/date-fns/locale/eo/_lib/formatLong.cjs new file mode 100644 index 000000000..5c70cf60c --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts b/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts b/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong.js b/node_modules/date-fns/locale/eo/_lib/formatLong.js new file mode 100644 index 000000000..d7c355989 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd", +}; + +const timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs b/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs new file mode 100644 index 000000000..3fc8d8077 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative.js b/node_modules/date-fns/locale/eo/_lib/formatRelative.js new file mode 100644 index 000000000..9d703ddb1 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.cjs b/node_modules/date-fns/locale/eo/_lib/localize.cjs new file mode 100644 index 000000000..b6cc9c598 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "Ĵ", "V", "S"], + short: ["di", "lu", "ma", "me", "ĵa", "ve", "sa"], + abbreviated: ["dim", "lun", "mar", "mer", "ĵaŭ", "ven", "sab"], + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "-a"; +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function (quarter) { + return Number(quarter) - 1; + }, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/localize.d.cts b/node_modules/date-fns/locale/eo/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.d.ts b/node_modules/date-fns/locale/eo/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eo/_lib/localize.js b/node_modules/date-fns/locale/eo/_lib/localize.js new file mode 100644 index 000000000..32904db00 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize.js @@ -0,0 +1,136 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "Ĵ", "V", "S"], + short: ["di", "lu", "ma", "me", "ĵa", "ve", "sa"], + abbreviated: ["dim", "lun", "mar", "mer", "ĵaŭ", "ven", "sab"], + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + return number + "-a"; +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function (quarter) { + return Number(quarter) - 1; + }, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/eo/_lib/match.cjs b/node_modules/date-fns/locale/eo/_lib/match.cjs new file mode 100644 index 000000000..1228d947f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^[kp]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: + /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function (index) { + return index + 1; + }, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eo/_lib/match.d.cts b/node_modules/date-fns/locale/eo/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eo/_lib/match.d.ts b/node_modules/date-fns/locale/eo/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eo/_lib/match.js b/node_modules/date-fns/locale/eo/_lib/match.js new file mode 100644 index 000000000..13198309e --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^[kp]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: + /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function (index) { + return index + 1; + }, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eo/cdn.js b/node_modules/date-fns/locale/eo/cdn.js new file mode 100644 index 000000000..0193174a6 --- /dev/null +++ b/node_modules/date-fns/locale/eo/cdn.js @@ -0,0 +1,541 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/eo/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "malpli ol sekundo", + other: "malpli ol {{count}} sekundoj" + }, + xSeconds: { + one: "1 sekundo", + other: "{{count}} sekundoj" + }, + halfAMinute: "duonminuto", + lessThanXMinutes: { + one: "malpli ol minuto", + other: "malpli ol {{count}} minutoj" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutoj" + }, + aboutXHours: { + one: "proksimume 1 horo", + other: "proksimume {{count}} horoj" + }, + xHours: { + one: "1 horo", + other: "{{count}} horoj" + }, + xDays: { + one: "1 tago", + other: "{{count}} tagoj" + }, + aboutXMonths: { + one: "proksimume 1 monato", + other: "proksimume {{count}} monatoj" + }, + xWeeks: { + one: "1 semajno", + other: "{{count}} semajnoj" + }, + aboutXWeeks: { + one: "proksimume 1 semajno", + other: "proksimume {{count}} semajnoj" + }, + xMonths: { + one: "1 monato", + other: "{{count}} monatoj" + }, + aboutXYears: { + one: "proksimume 1 jaro", + other: "proksimume {{count}} jaroj" + }, + xYears: { + one: "1 jaro", + other: "{{count}} jaroj" + }, + overXYears: { + one: "pli ol 1 jaro", + other: "pli ol {{count}} jaroj" + }, + almostXYears: { + one: "preskaŭ 1 jaro", + other: "preskaŭ {{count}} jaroj" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options !== null && options !== void 0 && options.comparison && options.comparison > 0) return "post " + result;else + return "antaŭ " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do 'de' MMMM y", + long: "y-MMMM-dd", + medium: "y-MMM-dd", + short: "yyyy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "Ho 'horo kaj' m:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}} {{time}}" }, + defaultWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/eo/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/eo/_lib/localize.js +var eraValues = { + narrow: ["aK", "pK"], + abbreviated: ["a.K.E.", "p.K.E."], + wide: ["antaŭ Komuna Erao", "Komuna Erao"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1-a kvaronjaro", + "2-a kvaronjaro", + "3-a kvaronjaro", + "4-a kvaronjaro"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "aŭg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januaro", + "februaro", + "marto", + "aprilo", + "majo", + "junio", + "julio", + "aŭgusto", + "septembro", + "oktobro", + "novembro", + "decembro"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "Ĵ", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "ĵa", + "ve", + "sa"], + + abbreviated: [ + "dim", + "lun", + "mar", + "mer", + "ĵaŭ", + "ven", + "sab"], + + wide: [ + "dimanĉo", + "lundo", + "mardo", + "merkredo", + "ĵaŭdo", + "vendredo", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + }, + abbreviated: { + am: "a.t.m.", + pm: "p.t.m.", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + }, + wide: { + am: "antaŭtagmeze", + pm: "posttagmeze", + midnight: "noktomezo", + noon: "tagmezo", + morning: "matene", + afternoon: "posttagmeze", + evening: "vespere", + night: "nokte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return Number(dirtyNumber) + "-a"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/eo.js +/** +* @category Locales +* @summary Esperanto locale. +* @language Esperanto +* @iso-639-2 epo +* @author date-fns +*/ +var eo = { + code: "eo", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?a)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^[kp]/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^a(u|ŭ)/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^(j|ĵ)/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^(j|ĵ)/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/eo/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + eo: eo }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/cdn.min.js b/node_modules/date-fns/locale/eo/cdn.min.js new file mode 100644 index 000000000..272466cdc --- /dev/null +++ b/node_modules/date-fns/locale/eo/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`post `+r:`antaŭ `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do 'de' MMMM y`,long:`y-MMMM-dd`,medium:`y-MMM-dd`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:c({formats:{full:`Ho 'horo kaj' m:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},u={lastWeek:`'pasinta' eeee 'je' p`,yesterday:`'hieraŭ je' p`,today:`'hodiaŭ je' p`,tomorrow:`'morgaŭ je' p`,nextWeek:`eeee 'je' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){return Number(e)+`-a`},era:f({values:{narrow:[`aK`,`pK`],abbreviated:[`a.K.E.`,`p.K.E.`],wide:[`antaŭ Komuna Erao`,`Komuna Erao`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1-a kvaronjaro`,`2-a kvaronjaro`,`3-a kvaronjaro`,`4-a kvaronjaro`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`aŭg`,`sep`,`okt`,`nov`,`dec`],wide:[`januaro`,`februaro`,`marto`,`aprilo`,`majo`,`junio`,`julio`,`aŭgusto`,`septembro`,`oktobro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`Ĵ`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`ĵa`,`ve`,`sa`],abbreviated:[`dim`,`lun`,`mar`,`mer`,`ĵaŭ`,`ven`,`sab`],wide:[`dimanĉo`,`lundo`,`mardo`,`merkredo`,`ĵaŭdo`,`vendredo`,`sabato`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},abbreviated:{am:`a.t.m.`,pm:`p.t.m.`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`},wide:{am:`antaŭtagmeze`,pm:`posttagmeze`,midnight:`noktomezo`,noon:`tagmezo`,morning:`matene`,afternoon:`posttagmeze`,evening:`vespere`,night:`nokte`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hace " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance.js b/node_modules/date-fns/locale/es/_lib/formatDistance.js new file mode 100644 index 000000000..bf4a6b272 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de un segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos de un minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "alrededor de 1 hora", + other: "alrededor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "alrededor de 1 semana", + other: "alrededor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "alrededor de 1 mes", + other: "alrededor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "alrededor de 1 año", + other: "alrededor de {{count}} años", + }, + + xYears: { + one: "1 año", + other: "{{count}} años", + }, + + overXYears: { + one: "más de 1 año", + other: "más de {{count}} años", + }, + + almostXYears: { + one: "casi 1 año", + other: "casi {{count}} años", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hace " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.cjs b/node_modules/date-fns/locale/es/_lib/formatLong.cjs new file mode 100644 index 000000000..68019c01f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.d.cts b/node_modules/date-fns/locale/es/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.d.ts b/node_modules/date-fns/locale/es/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/es/_lib/formatLong.js b/node_modules/date-fns/locale/es/_lib/formatLong.js new file mode 100644 index 000000000..4be25f37c --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.cjs b/node_modules/date-fns/locale/es/_lib/formatRelative.cjs new file mode 100644 index 000000000..2118e43c0 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative.js b/node_modules/date-fns/locale/es/_lib/formatRelative.js new file mode 100644 index 000000000..66cf094e8 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative.js @@ -0,0 +1,25 @@ +const formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; diff --git a/node_modules/date-fns/locale/es/_lib/localize.cjs b/node_modules/date-fns/locale/es/_lib/localize.cjs new file mode 100644 index 000000000..c3a064f5d --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic", + ], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"], + abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/localize.d.cts b/node_modules/date-fns/locale/es/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/es/_lib/localize.d.ts b/node_modules/date-fns/locale/es/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/es/_lib/localize.js b/node_modules/date-fns/locale/es/_lib/localize.js new file mode 100644 index 000000000..54918505f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic", + ], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"], + abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/es/_lib/match.cjs b/node_modules/date-fns/locale/es/_lib/match.cjs new file mode 100644 index 000000000..65fb24eaa --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes de la era com[uú]n)/i, + /^(despu[eé]s de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, +}; +const parseMonthPatterns = { + 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, + ], + + 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, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/es/_lib/match.d.cts b/node_modules/date-fns/locale/es/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/es/_lib/match.d.ts b/node_modules/date-fns/locale/es/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/es/_lib/match.js b/node_modules/date-fns/locale/es/_lib/match.js new file mode 100644 index 000000000..46b1cb50b --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes de la era com[uú]n)/i, + /^(despu[eé]s de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, +}; +const parseMonthPatterns = { + 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, + ], + + 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, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/es/cdn.js b/node_modules/date-fns/locale/es/cdn.js new file mode 100644 index 000000000..628c71196 --- /dev/null +++ b/node_modules/date-fns/locale/es/cdn.js @@ -0,0 +1,593 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/es/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de un segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "medio minuto", + lessThanXMinutes: { + one: "menos de un minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "alrededor de 1 hora", + other: "alrededor de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 día", + other: "{{count}} días" + }, + aboutXWeeks: { + one: "alrededor de 1 semana", + other: "alrededor de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "alrededor de 1 mes", + other: "alrededor de {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "alrededor de 1 año", + other: "alrededor de {{count}} años" + }, + xYears: { + one: "1 año", + other: "{{count}} años" + }, + overXYears: { + one: "más de 1 año", + other: "más de {{count}} años" + }, + almostXYears: { + one: "casi 1 año", + other: "casi {{count}} años" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "hace " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/es/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token];else + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/es/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "después de cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "e", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "ene", + "feb", + "mar", + "abr", + "may", + "jun", + "jul", + "ago", + "sep", + "oct", + "nov", + "dic"], + + wide: [ + "enero", + "febrero", + "marzo", + "abril", + "mayo", + "junio", + "julio", + "agosto", + "septiembre", + "octubre", + "noviembre", + "diciembre"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "do", + "lu", + "ma", + "mi", + "ju", + "vi", + "sá"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mié", + "jue", + "vie", + "sáb"], + + wide: [ + "domingo", + "lunes", + "martes", + "miércoles", + "jueves", + "viernes", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "mañana", + afternoon: "tarde", + evening: "tarde", + night: "noche" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoche", + noon: "mediodia", + morning: "de la mañana", + afternoon: "de la tarde", + evening: "de la tarde", + night: "de la noche" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/es.js +/** +* @category Locales +* @summary Spanish locale. +* @language Spanish +* @iso-639-2 spa +* @author Juan Angosto [@juanangosto](https://github.com/juanangosto) +* @author Guillermo Grau [@guigrpa](https://github.com/guigrpa) +* @author Fernando Agüero [@fjaguero](https://github.com/fjaguero) +* @author Gastón Haro [@harogaston](https://github.com/harogaston) +* @author Yago Carballo [@YagoCarballo](https://github.com/YagoCarballo) +*/ +var es = { + code: "es", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + 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], + + 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] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^do/i, + /^lu/i, + /^ma/i, + /^mi/i, + /^ju/i, + /^vi/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/es/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + es: es }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/cdn.min.js b/node_modules/date-fns/locale/es/cdn.min.js new file mode 100644 index 000000000..fc735dc85 --- /dev/null +++ b/node_modules/date-fns/locale/es/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`hace `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},d={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},f=function(e,t,n,r){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`º`},era:p({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:p({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:p({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?v(s,function(e){return e.test(o)}):_(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function _(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function v(e,t){for(var n=0;n { + const usageGroup = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " pärast"; + } else { + return result + " eest"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance.js b/node_modules/date-fns/locale/et/_lib/formatDistance.js new file mode 100644 index 000000000..0f6111185 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance.js @@ -0,0 +1,196 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "vähem kui üks sekund", + other: "vähem kui {{count}} sekundit", + }, + withPreposition: { + one: "vähem kui ühe sekundi", + other: "vähem kui {{count}} sekundi", + }, + }, + + xSeconds: { + standalone: { + one: "üks sekund", + other: "{{count}} sekundit", + }, + withPreposition: { + one: "ühe sekundi", + other: "{{count}} sekundi", + }, + }, + + halfAMinute: { + standalone: "pool minutit", + withPreposition: "poole minuti", + }, + + lessThanXMinutes: { + standalone: { + one: "vähem kui üks minut", + other: "vähem kui {{count}} minutit", + }, + withPreposition: { + one: "vähem kui ühe minuti", + other: "vähem kui {{count}} minuti", + }, + }, + + xMinutes: { + standalone: { + one: "üks minut", + other: "{{count}} minutit", + }, + withPreposition: { + one: "ühe minuti", + other: "{{count}} minuti", + }, + }, + + aboutXHours: { + standalone: { + one: "umbes üks tund", + other: "umbes {{count}} tundi", + }, + withPreposition: { + one: "umbes ühe tunni", + other: "umbes {{count}} tunni", + }, + }, + + xHours: { + standalone: { + one: "üks tund", + other: "{{count}} tundi", + }, + withPreposition: { + one: "ühe tunni", + other: "{{count}} tunni", + }, + }, + + xDays: { + standalone: { + one: "üks päev", + other: "{{count}} päeva", + }, + withPreposition: { + one: "ühe päeva", + other: "{{count}} päeva", + }, + }, + + aboutXWeeks: { + standalone: { + one: "umbes üks nädal", + other: "umbes {{count}} nädalat", + }, + withPreposition: { + one: "umbes ühe nädala", + other: "umbes {{count}} nädala", + }, + }, + + xWeeks: { + standalone: { + one: "üks nädal", + other: "{{count}} nädalat", + }, + withPreposition: { + one: "ühe nädala", + other: "{{count}} nädala", + }, + }, + + aboutXMonths: { + standalone: { + one: "umbes üks kuu", + other: "umbes {{count}} kuud", + }, + withPreposition: { + one: "umbes ühe kuu", + other: "umbes {{count}} kuu", + }, + }, + + xMonths: { + standalone: { + one: "üks kuu", + other: "{{count}} kuud", + }, + withPreposition: { + one: "ühe kuu", + other: "{{count}} kuu", + }, + }, + + aboutXYears: { + standalone: { + one: "umbes üks aasta", + other: "umbes {{count}} aastat", + }, + withPreposition: { + one: "umbes ühe aasta", + other: "umbes {{count}} aasta", + }, + }, + + xYears: { + standalone: { + one: "üks aasta", + other: "{{count}} aastat", + }, + withPreposition: { + one: "ühe aasta", + other: "{{count}} aasta", + }, + }, + + overXYears: { + standalone: { + one: "rohkem kui üks aasta", + other: "rohkem kui {{count}} aastat", + }, + withPreposition: { + one: "rohkem kui ühe aasta", + other: "rohkem kui {{count}} aasta", + }, + }, + + almostXYears: { + standalone: { + one: "peaaegu üks aasta", + other: "peaaegu {{count}} aastat", + }, + withPreposition: { + one: "peaaegu ühe aasta", + other: "peaaegu {{count}} aasta", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const usageGroup = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + let result; + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " pärast"; + } else { + return result + " eest"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.cjs b/node_modules/date-fns/locale/et/_lib/formatLong.cjs new file mode 100644 index 000000000..17b4b8e2e --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.d.cts b/node_modules/date-fns/locale/et/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.d.ts b/node_modules/date-fns/locale/et/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/et/_lib/formatLong.js b/node_modules/date-fns/locale/et/_lib/formatLong.js new file mode 100644 index 000000000..f57ff58b8 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.cjs b/node_modules/date-fns/locale/et/_lib/formatRelative.cjs new file mode 100644 index 000000000..d4eb5e4a2 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative.js b/node_modules/date-fns/locale/et/_lib/formatRelative.js new file mode 100644 index 000000000..0c186a480 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/et/_lib/localize.cjs b/node_modules/date-fns/locale/et/_lib/localize.cjs new file mode 100644 index 000000000..6436859db --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "V", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets", + ], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember", + ], +}; + +const dayValues = { + narrow: ["P", "E", "T", "K", "N", "R", "L"], + short: ["P", "E", "T", "K", "N", "R", "L"], + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup.", + ], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/localize.d.cts b/node_modules/date-fns/locale/et/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/et/_lib/localize.d.ts b/node_modules/date-fns/locale/et/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/et/_lib/localize.js b/node_modules/date-fns/locale/et/_lib/localize.js new file mode 100644 index 000000000..a55a4b6cf --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "V", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets", + ], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember", + ], +}; + +const dayValues = { + narrow: ["P", "E", "T", "K", "N", "R", "L"], + short: ["P", "E", "T", "K", "N", "R", "L"], + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup.", + ], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/et/_lib/match.cjs b/node_modules/date-fns/locale/et/_lib/match.cjs new file mode 100644 index 000000000..3a8067ae8 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.cjs @@ -0,0 +1,133 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^\d+\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^(m|p)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i, +}; +const parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/et/_lib/match.d.cts b/node_modules/date-fns/locale/et/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/et/_lib/match.d.ts b/node_modules/date-fns/locale/et/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/et/_lib/match.js b/node_modules/date-fns/locale/et/_lib/match.js new file mode 100644 index 000000000..e6bbffcd2 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match.js @@ -0,0 +1,130 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^\d+\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^(m|p)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i, +}; +const parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/et/cdn.js b/node_modules/date-fns/locale/et/cdn.js new file mode 100644 index 000000000..c449eec66 --- /dev/null +++ b/node_modules/date-fns/locale/et/cdn.js @@ -0,0 +1,656 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/et/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "vähem kui üks sekund", + other: "vähem kui {{count}} sekundit" + }, + withPreposition: { + one: "vähem kui ühe sekundi", + other: "vähem kui {{count}} sekundi" + } + }, + xSeconds: { + standalone: { + one: "üks sekund", + other: "{{count}} sekundit" + }, + withPreposition: { + one: "ühe sekundi", + other: "{{count}} sekundi" + } + }, + halfAMinute: { + standalone: "pool minutit", + withPreposition: "poole minuti" + }, + lessThanXMinutes: { + standalone: { + one: "vähem kui üks minut", + other: "vähem kui {{count}} minutit" + }, + withPreposition: { + one: "vähem kui ühe minuti", + other: "vähem kui {{count}} minuti" + } + }, + xMinutes: { + standalone: { + one: "üks minut", + other: "{{count}} minutit" + }, + withPreposition: { + one: "ühe minuti", + other: "{{count}} minuti" + } + }, + aboutXHours: { + standalone: { + one: "umbes üks tund", + other: "umbes {{count}} tundi" + }, + withPreposition: { + one: "umbes ühe tunni", + other: "umbes {{count}} tunni" + } + }, + xHours: { + standalone: { + one: "üks tund", + other: "{{count}} tundi" + }, + withPreposition: { + one: "ühe tunni", + other: "{{count}} tunni" + } + }, + xDays: { + standalone: { + one: "üks päev", + other: "{{count}} päeva" + }, + withPreposition: { + one: "ühe päeva", + other: "{{count}} päeva" + } + }, + aboutXWeeks: { + standalone: { + one: "umbes üks nädal", + other: "umbes {{count}} nädalat" + }, + withPreposition: { + one: "umbes ühe nädala", + other: "umbes {{count}} nädala" + } + }, + xWeeks: { + standalone: { + one: "üks nädal", + other: "{{count}} nädalat" + }, + withPreposition: { + one: "ühe nädala", + other: "{{count}} nädala" + } + }, + aboutXMonths: { + standalone: { + one: "umbes üks kuu", + other: "umbes {{count}} kuud" + }, + withPreposition: { + one: "umbes ühe kuu", + other: "umbes {{count}} kuu" + } + }, + xMonths: { + standalone: { + one: "üks kuu", + other: "{{count}} kuud" + }, + withPreposition: { + one: "ühe kuu", + other: "{{count}} kuu" + } + }, + aboutXYears: { + standalone: { + one: "umbes üks aasta", + other: "umbes {{count}} aastat" + }, + withPreposition: { + one: "umbes ühe aasta", + other: "umbes {{count}} aasta" + } + }, + xYears: { + standalone: { + one: "üks aasta", + other: "{{count}} aastat" + }, + withPreposition: { + one: "ühe aasta", + other: "{{count}} aasta" + } + }, + overXYears: { + standalone: { + one: "rohkem kui üks aasta", + other: "rohkem kui {{count}} aastat" + }, + withPreposition: { + one: "rohkem kui ühe aasta", + other: "rohkem kui {{count}} aasta" + } + }, + almostXYears: { + standalone: { + one: "peaaegu üks aasta", + other: "peaaegu {{count}} aastat" + }, + withPreposition: { + one: "peaaegu ühe aasta", + other: "peaaegu {{count}} aasta" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + var result; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " pärast";else + return result + " eest"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: "{{date}}. {{time}}", + short: "{{date}}. {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/et/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/et/_lib/localize.js +var eraValues = { + narrow: ["e.m.a", "m.a.j"], + abbreviated: ["e.m.a", "m.a.j"], + wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "V", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jaan", + "veebr", + "märts", + "apr", + "mai", + "juuni", + "juuli", + "aug", + "sept", + "okt", + "nov", + "dets"], + + wide: [ + "jaanuar", + "veebruar", + "märts", + "aprill", + "mai", + "juuni", + "juuli", + "august", + "september", + "oktoober", + "november", + "detsember"] + +}; +var dayValues = { + narrow: [ + "P", + "E", + "T", + "K", + "N", + "R", + "L"], + + short: [ + "P", + "E", + "T", + "K", + "N", + "R", + "L"], + + abbreviated: [ + "pühap.", + "esmasp.", + "teisip.", + "kolmap.", + "neljap.", + "reede.", + "laup."], + + wide: [ + "pühapäev", + "esmaspäev", + "teisipäev", + "kolmapäev", + "neljapäev", + "reede", + "laupäev"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "kesköö", + noon: "keskpäev", + morning: "hommik", + afternoon: "pärastlõuna", + evening: "õhtu", + night: "öö" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "keskööl", + noon: "keskpäeval", + morning: "hommikul", + afternoon: "pärastlõunal", + evening: "õhtul", + night: "öösel" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/et.js +/** +* @category Locales +* @summary Estonian locale. +* @language Estonian +* @iso-639-2 est +* @author Priit Hansen [@HansenPriit](https://github.com/priithansen) +*/ +var et = { + code: "et", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^\d+\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^e/i, /^(m|p)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^v/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^v/i, + /^mär/i, + /^ap/i, + /^mai/i, + /^juun/i, + /^juul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^p/i, + /^e/i, + /^t/i, + /^k/i, + /^n/i, + /^r/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/et/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + et: et }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/cdn.min.js b/node_modules/date-fns/locale/et/cdn.min.js new file mode 100644 index 000000000..49bb7788c --- /dev/null +++ b/node_modules/date-fns/locale/et/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i+` pärast`:i+` eest`:i};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kell' {{time}}`,long:`{{date}} 'kell' {{time}}`,medium:`{{date}}. {{time}}`,short:`{{date}}. {{time}}`},defaultWidth:`full`})},u={lastWeek:`'eelmine' eeee 'kell' p`,yesterday:`'eile kell' p`,today:`'täna kell' p`,tomorrow:`'homme kell' p`,nextWeek:`'järgmine' eeee 'kell' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`e.m.a`,`m.a.j`],abbreviated:[`e.m.a`,`m.a.j`],wide:[`enne meie ajaarvamist`,`meie ajaarvamise järgi`]},m={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},h={narrow:[`J`,`V`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jaan`,`veebr`,`märts`,`apr`,`mai`,`juuni`,`juuli`,`aug`,`sept`,`okt`,`nov`,`dets`],wide:[`jaanuar`,`veebruar`,`märts`,`aprill`,`mai`,`juuni`,`juuli`,`august`,`september`,`oktoober`,`november`,`detsember`]},g={narrow:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],short:[`P`,`E`,`T`,`K`,`N`,`R`,`L`],abbreviated:[`pühap.`,`esmasp.`,`teisip.`,`kolmap.`,`neljap.`,`reede.`,`laup.`],wide:[`pühapäev`,`esmaspäev`,`teisipäev`,`kolmapäev`,`neljapäev`,`reede`,`laupäev`]},_={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,defaultWidth:`wide`,formattingValues:h,defaultFormattingWidth:`wide`}),day:f({values:g,defaultWidth:`wide`,formattingValues:g,defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},abbreviated:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`},wide:{am:`AM`,pm:`PM`,midnight:`kesköö`,noon:`keskpäev`,morning:`hommik`,afternoon:`pärastlõuna`,evening:`õhtu`,night:`öö`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},abbreviated:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`},wide:{am:`AM`,pm:`PM`,midnight:`keskööl`,noon:`keskpäeval`,morning:`hommikul`,afternoon:`pärastlõunal`,evening:`õhtul`,night:`öösel`}},defaultFormattingWidth:`wide`})};function v(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?b(s,function(e){return e.test(o)}):y(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function y(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function b(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var S={code:`et`,formatDistance:s,formatLong:l,formatRelative:d,localize:_,match:{ordinalNumber:x({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:v({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:`any`}),quarter:v({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:v({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:v({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:v({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{et:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu.cjs b/node_modules/date-fns/locale/eu.cjs new file mode 100644 index 000000000..87a643ac1 --- /dev/null +++ b/node_modules/date-fns/locale/eu.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.eu = void 0; +var _index = require("./eu/_lib/formatDistance.cjs"); +var _index2 = require("./eu/_lib/formatLong.cjs"); +var _index3 = require("./eu/_lib/formatRelative.cjs"); +var _index4 = require("./eu/_lib/localize.cjs"); +var _index5 = require("./eu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +const eu = (exports.eu = { + code: "eu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/eu.d.cts b/node_modules/date-fns/locale/eu.d.cts new file mode 100644 index 000000000..6872ac5a8 --- /dev/null +++ b/node_modules/date-fns/locale/eu.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export declare const eu: Locale; diff --git a/node_modules/date-fns/locale/eu.d.ts b/node_modules/date-fns/locale/eu.d.ts new file mode 100644 index 000000000..6872ac5a8 --- /dev/null +++ b/node_modules/date-fns/locale/eu.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export declare const eu: Locale; diff --git a/node_modules/date-fns/locale/eu.js b/node_modules/date-fns/locale/eu.js new file mode 100644 index 000000000..bb0557e08 --- /dev/null +++ b/node_modules/date-fns/locale/eu.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./eu/_lib/formatDistance.js"; +import { formatLong } from "./eu/_lib/formatLong.js"; +import { formatRelative } from "./eu/_lib/formatRelative.js"; +import { localize } from "./eu/_lib/localize.js"; +import { match } from "./eu/_lib/match.js"; + +/** + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) + */ +export const eu = { + code: "eu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default eu; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs new file mode 100644 index 000000000..5580afe21 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo", + }, + + halfAMinute: "minutu erdi", + + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago", + }, + + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu", + }, + + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera", + }, + + xHours: { + one: "1 ordu", + other: "{{count}} ordu", + }, + + xDays: { + one: "1 egun", + other: "{{count}} egun", + }, + + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru", + }, + + xWeeks: { + one: "1 aste", + other: "{{count}} astean", + }, + + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera", + }, + + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete", + }, + + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera", + }, + + xYears: { + one: "1 urte", + other: "{{count}} urte", + }, + + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago", + }, + + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "duela " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance.js b/node_modules/date-fns/locale/eu/_lib/formatDistance.js new file mode 100644 index 000000000..29a7ee24a --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo", + }, + + halfAMinute: "minutu erdi", + + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago", + }, + + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu", + }, + + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera", + }, + + xHours: { + one: "1 ordu", + other: "{{count}} ordu", + }, + + xDays: { + one: "1 egun", + other: "{{count}} egun", + }, + + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru", + }, + + xWeeks: { + one: "1 aste", + other: "{{count}} astean", + }, + + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera", + }, + + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete", + }, + + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera", + }, + + xYears: { + one: "1 urte", + other: "{{count}} urte", + }, + + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago", + }, + + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "duela " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.cjs b/node_modules/date-fns/locale/eu/_lib/formatLong.cjs new file mode 100644 index 000000000..98eca7795 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong.js b/node_modules/date-fns/locale/eu/_lib/formatLong.js new file mode 100644 index 000000000..2ad8ac856 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs new file mode 100644 index 000000000..4796b8123 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelative = (token, date) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative.js b/node_modules/date-fns/locale/eu/_lib/formatRelative.js new file mode 100644 index 000000000..848f7a7bc --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative.js @@ -0,0 +1,24 @@ +const formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P", +}; + +export const formatRelative = (token, date) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.cjs b/node_modules/date-fns/locale/eu/_lib/localize.cjs new file mode 100644 index 000000000..81f8f2654 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.cjs @@ -0,0 +1,171 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1H", "2H", "3H", "4H"], + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa", + ], +}; + +const monthValues = { + narrow: ["u", "o", "m", "a", "m", "e", "u", "a", "i", "u", "a", "a"], + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe", + ], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua", + ], +}; + +const dayValues = { + narrow: ["i", "a", "a", "a", "o", "o", "l"], + short: ["ig", "al", "as", "az", "og", "or", "lr"], + abbreviated: ["iga", "ast", "ast", "ast", "ost", "ost", "lar"], + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/localize.d.cts b/node_modules/date-fns/locale/eu/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.d.ts b/node_modules/date-fns/locale/eu/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/eu/_lib/localize.js b/node_modules/date-fns/locale/eu/_lib/localize.js new file mode 100644 index 000000000..7bd2a9851 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize.js @@ -0,0 +1,169 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1H", "2H", "3H", "4H"], + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa", + ], +}; + +const monthValues = { + narrow: ["u", "o", "m", "a", "m", "e", "u", "a", "i", "u", "a", "a"], + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe", + ], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua", + ], +}; + +const dayValues = { + narrow: ["i", "a", "a", "a", "o", "o", "l"], + short: ["ig", "al", "as", "az", "og", "or", "lr"], + abbreviated: ["iga", "ast", "ast", "ast", "ost", "ost", "lar"], + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/eu/_lib/match.cjs b/node_modules/date-fns/locale/eu/_lib/match.cjs new file mode 100644 index 000000000..303a32f2a --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.cjs @@ -0,0 +1,158 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i, +}; +const parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i, + ], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i, +}; +const parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/eu/_lib/match.d.cts b/node_modules/date-fns/locale/eu/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eu/_lib/match.d.ts b/node_modules/date-fns/locale/eu/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/eu/_lib/match.js b/node_modules/date-fns/locale/eu/_lib/match.js new file mode 100644 index 000000000..90bb32542 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match.js @@ -0,0 +1,155 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i, +}; +const parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i, + ], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i, +}; +const parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "wide", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/eu/cdn.js b/node_modules/date-fns/locale/eu/cdn.js new file mode 100644 index 000000000..606c4acd2 --- /dev/null +++ b/node_modules/date-fns/locale/eu/cdn.js @@ -0,0 +1,618 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/eu/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "segundo bat baino gutxiago", + other: "{{count}} segundo baino gutxiago" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundo" + }, + halfAMinute: "minutu erdi", + lessThanXMinutes: { + one: "minutu bat baino gutxiago", + other: "{{count}} minutu baino gutxiago" + }, + xMinutes: { + one: "1 minutu", + other: "{{count}} minutu" + }, + aboutXHours: { + one: "1 ordu gutxi gorabehera", + other: "{{count}} ordu gutxi gorabehera" + }, + xHours: { + one: "1 ordu", + other: "{{count}} ordu" + }, + xDays: { + one: "1 egun", + other: "{{count}} egun" + }, + aboutXWeeks: { + one: "aste 1 inguru", + other: "{{count}} aste inguru" + }, + xWeeks: { + one: "1 aste", + other: "{{count}} astean" + }, + aboutXMonths: { + one: "1 hilabete gutxi gorabehera", + other: "{{count}} hilabete gutxi gorabehera" + }, + xMonths: { + one: "1 hilabete", + other: "{{count}} hilabete" + }, + aboutXYears: { + one: "1 urte gutxi gorabehera", + other: "{{count}} urte gutxi gorabehera" + }, + xYears: { + one: "1 urte", + other: "{{count}} urte" + }, + overXYears: { + one: "1 urte baino gehiago", + other: "{{count}} urte baino gehiago" + }, + almostXYears: { + one: "ia 1 urte", + other: "ia {{count}} urte" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "duela " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: "y MMM d", + short: "yy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/eu/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: "eeee, p", + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token]; + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/eu/_lib/localize.js +var eraValues = { + narrow: ["k.a.", "k.o."], + abbreviated: ["k.a.", "k.o."], + wide: ["kristo aurretik", "kristo ondoren"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1H", + "2H", + "3H", + "4H"], + + wide: [ + "1. hiruhilekoa", + "2. hiruhilekoa", + "3. hiruhilekoa", + "4. hiruhilekoa"] + +}; +var monthValues = { + narrow: [ + "u", + "o", + "m", + "a", + "m", + "e", + "u", + "a", + "i", + "u", + "a", + "a"], + + abbreviated: [ + "urt", + "ots", + "mar", + "api", + "mai", + "eka", + "uzt", + "abu", + "ira", + "urr", + "aza", + "abe"], + + wide: [ + "urtarrila", + "otsaila", + "martxoa", + "apirila", + "maiatza", + "ekaina", + "uztaila", + "abuztua", + "iraila", + "urria", + "azaroa", + "abendua"] + +}; +var dayValues = { + narrow: [ + "i", + "a", + "a", + "a", + "o", + "o", + "l"], + + short: [ + "ig", + "al", + "as", + "az", + "og", + "or", + "lr"], + + abbreviated: [ + "iga", + "ast", + "ast", + "ast", + "ost", + "ost", + "lar"], + + wide: [ + "igandea", + "astelehena", + "asteartea", + "asteazkena", + "osteguna", + "ostirala", + "larunbata"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goiza", + afternoon: "arratsaldea", + evening: "arratsaldea", + night: "gaua" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "ge", + noon: "eg", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gauerdia", + noon: "eguerdia", + morning: "goizean", + afternoon: "arratsaldean", + evening: "arratsaldean", + night: "gauean" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/eu.js +/** +* @category Locales +* @summary Basque locale. +* @language Basque +* @iso-639-2 eus +* @author Jacob Söderblom [@JacobSoderblom](https://github.com/JacobSoderblom) +*/ +var eu = { + code: "eu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i] + }, + defaultParseWidth: "wide" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^u/i, + /^o/i, + /^m/i, + /^a/i, + /^m/i, + /^e/i, + /^u/i, + /^a/i, + /^i/i, + /^u/i, + /^a/i, + /^a/i], + + any: [ + /^urt/i, + /^ots/i, + /^mar/i, + /^api/i, + /^mai/i, + /^eka/i, + /^uzt/i, + /^abu/i, + /^ira/i, + /^urr/i, + /^aza/i, + /^abe/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i/i, + /^a/i, + /^a/i, + /^a/i, + /^o/i, + /^o/i, + /^l/i], + + short: [ + /^ig/i, + /^al/i, + /^as/i, + /^az/i, + /^og/i, + /^or/i, + /^lr/i], + + abbreviated: [ + /^iga/i, + /^ast/i, + /^ast/i, + /^ast/i, + /^ost/i, + /^ost/i, + /^lar/i], + + wide: [ + /^igandea/i, + /^astelehena/i, + /^asteartea/i, + /^asteazkena/i, + /^osteguna/i, + /^ostirala/i, + /^larunbata/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/eu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + eu: eu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/cdn.min.js b/node_modules/date-fns/locale/eu/cdn.min.js new file mode 100644 index 000000000..7ca1856ef --- /dev/null +++ b/node_modules/date-fns/locale/eu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`duela `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, y'ko' MMMM'ren' d'a' y'ren'`,long:`y'ko' MMMM'ren' d'a'`,medium:`y MMM d`,short:`yy/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'tan' {{time}}`,long:`{{date}} 'tan' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'joan den' eeee, LT`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},d={lastWeek:`'joan den' eeee, p`,yesterday:`'atzo,' p`,today:`'gaur,' p`,tomorrow:`'bihar,' p`,nextWeek:`eeee, p`,other:`P`},f=function(e,t){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`.`},era:p({values:{narrow:[`k.a.`,`k.o.`],abbreviated:[`k.a.`,`k.o.`],wide:[`kristo aurretik`,`kristo ondoren`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1H`,`2H`,`3H`,`4H`],wide:[`1. hiruhilekoa`,`2. hiruhilekoa`,`3. hiruhilekoa`,`4. hiruhilekoa`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`u`,`o`,`m`,`a`,`m`,`e`,`u`,`a`,`i`,`u`,`a`,`a`],abbreviated:[`urt`,`ots`,`mar`,`api`,`mai`,`eka`,`uzt`,`abu`,`ira`,`urr`,`aza`,`abe`],wide:[`urtarrila`,`otsaila`,`martxoa`,`apirila`,`maiatza`,`ekaina`,`uztaila`,`abuztua`,`iraila`,`urria`,`azaroa`,`abendua`]},defaultWidth:`wide`}),day:p({values:{narrow:[`i`,`a`,`a`,`a`,`o`,`o`,`l`],short:[`ig`,`al`,`as`,`az`,`og`,`or`,`lr`],abbreviated:[`iga`,`ast`,`ast`,`ast`,`ost`,`ost`,`lar`],wide:[`igandea`,`astelehena`,`asteartea`,`asteazkena`,`osteguna`,`ostirala`,`larunbata`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goiza`,afternoon:`arratsaldea`,evening:`arratsaldea`,night:`gaua`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`ge`,noon:`eg`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},abbreviated:{am:`AM`,pm:`PM`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gauerdia`,noon:`eguerdia`,morning:`goizean`,afternoon:`arratsaldean`,evening:`arratsaldean`,night:`gauean`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`eu`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:`wide`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:`wide`}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{eu:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR.cjs b/node_modules/date-fns/locale/fa-IR.cjs new file mode 100644 index 000000000..cb1944bd3 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.faIR = void 0; +var _index = require("./fa-IR/_lib/formatDistance.cjs"); +var _index2 = require("./fa-IR/_lib/formatLong.cjs"); +var _index3 = require("./fa-IR/_lib/formatRelative.cjs"); +var _index4 = require("./fa-IR/_lib/localize.cjs"); +var _index5 = require("./fa-IR/_lib/match.cjs"); + +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +const faIR = (exports.faIR = { + code: "fa-IR", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 6 /* Saturday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/fa-IR.d.cts b/node_modules/date-fns/locale/fa-IR.d.cts new file mode 100644 index 000000000..9429c0aa6 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export declare const faIR: Locale; diff --git a/node_modules/date-fns/locale/fa-IR.d.ts b/node_modules/date-fns/locale/fa-IR.d.ts new file mode 100644 index 000000000..9429c0aa6 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export declare const faIR: Locale; diff --git a/node_modules/date-fns/locale/fa-IR.js b/node_modules/date-fns/locale/fa-IR.js new file mode 100644 index 000000000..8878e0775 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./fa-IR/_lib/formatDistance.js"; +import { formatLong } from "./fa-IR/_lib/formatLong.js"; +import { formatRelative } from "./fa-IR/_lib/formatRelative.js"; +import { localize } from "./fa-IR/_lib/localize.js"; +import { match } from "./fa-IR/_lib/match.js"; + +/** + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za](https://github.com/mort3za) + */ +export const faIR = { + code: "fa-IR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 6 /* Saturday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default faIR; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs new file mode 100644 index 000000000..5d990d7d1 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه", + }, + + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه", + }, + + halfAMinute: "نیم دقیقه", + + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه", + }, + + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه", + }, + + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت", + }, + + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت", + }, + + xDays: { + one: "1 روز", + other: "{{count}} روز", + }, + + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته", + }, + + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته", + }, + + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه", + }, + + xMonths: { + one: "1 ماه", + other: "{{count}} ماه", + }, + + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال", + }, + + xYears: { + one: "1 سال", + other: "{{count}} سال", + }, + + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال", + }, + + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "در " + result; + } else { + return result + " قبل"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js new file mode 100644 index 000000000..a76f518c7 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه", + }, + + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه", + }, + + halfAMinute: "نیم دقیقه", + + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه", + }, + + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه", + }, + + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت", + }, + + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت", + }, + + xDays: { + one: "1 روز", + other: "{{count}} روز", + }, + + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته", + }, + + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته", + }, + + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه", + }, + + xMonths: { + one: "1 ماه", + other: "{{count}} ماه", + }, + + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال", + }, + + xYears: { + one: "1 سال", + other: "{{count}} سال", + }, + + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال", + }, + + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "در " + result; + } else { + return result + " قبل"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs new file mode 100644 index 000000000..7bc97c692 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js new file mode 100644 index 000000000..9dbbab8e3 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs new file mode 100644 index 000000000..6547e4409 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js new file mode 100644 index 000000000..6d8db46bd --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs b/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs new file mode 100644 index 000000000..44aa9d6ec --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["س‌م1", "س‌م2", "س‌م3", "س‌م4"], + wide: ["سه‌ماهه 1", "سه‌ماهه 2", "سه‌ماهه 3", "سه‌ماهه 4"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["ژ", "ف", "م", "آ", "م", "ج", "ج", "آ", "س", "ا", "ن", "د"], + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ", + ], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر", + ], +}; + +const dayValues = { + narrow: ["ی", "د", "س", "چ", "پ", "ج", "ش"], + short: ["1ش", "2ش", "3ش", "4ش", "5ش", "ج", "ش"], + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه", + ], + + wide: ["یکشنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], +}; + +const dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize.js b/node_modules/date-fns/locale/fa-IR/_lib/localize.js new file mode 100644 index 000000000..fee2f6f4f --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize.js @@ -0,0 +1,168 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["س‌م1", "س‌م2", "س‌م3", "س‌م4"], + wide: ["سه‌ماهه 1", "سه‌ماهه 2", "سه‌ماهه 3", "سه‌ماهه 4"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["ژ", "ف", "م", "آ", "م", "ج", "ج", "آ", "س", "ا", "ن", "د"], + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ", + ], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر", + ], +}; + +const dayValues = { + narrow: ["ی", "د", "س", "چ", "پ", "ج", "ش"], + short: ["1ش", "2ش", "3ش", "4ش", "5ش", "ج", "ش"], + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه", + ], + + wide: ["یکشنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], +}; + +const dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش", + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.cjs b/node_modules/date-fns/locale/fa-IR/_lib/match.cjs new file mode 100644 index 000000000..87dcae08a --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.cjs @@ -0,0 +1,145 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: + /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, +}; +const parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts b/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts b/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match.js b/node_modules/date-fns/locale/fa-IR/_lib/match.js new file mode 100644 index 000000000..e71651016 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match.js @@ -0,0 +1,142 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i, +}; +const parseEraPatterns = { + any: [/^قبل/i, /^بعد/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: + /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i, + ], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, +}; +const parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fa-IR/cdn.js b/node_modules/date-fns/locale/fa-IR/cdn.js new file mode 100644 index 000000000..3663d1d13 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/cdn.js @@ -0,0 +1,574 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fa-IR/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "کمتر از یک ثانیه", + other: "کمتر از {{count}} ثانیه" + }, + xSeconds: { + one: "1 ثانیه", + other: "{{count}} ثانیه" + }, + halfAMinute: "نیم دقیقه", + lessThanXMinutes: { + one: "کمتر از یک دقیقه", + other: "کمتر از {{count}} دقیقه" + }, + xMinutes: { + one: "1 دقیقه", + other: "{{count}} دقیقه" + }, + aboutXHours: { + one: "حدود 1 ساعت", + other: "حدود {{count}} ساعت" + }, + xHours: { + one: "1 ساعت", + other: "{{count}} ساعت" + }, + xDays: { + one: "1 روز", + other: "{{count}} روز" + }, + aboutXWeeks: { + one: "حدود 1 هفته", + other: "حدود {{count}} هفته" + }, + xWeeks: { + one: "1 هفته", + other: "{{count}} هفته" + }, + aboutXMonths: { + one: "حدود 1 ماه", + other: "حدود {{count}} ماه" + }, + xMonths: { + one: "1 ماه", + other: "{{count}} ماه" + }, + aboutXYears: { + one: "حدود 1 سال", + other: "حدود {{count}} سال" + }, + xYears: { + one: "1 سال", + other: "{{count}} سال" + }, + overXYears: { + one: "بیشتر از 1 سال", + other: "بیشتر از {{count}} سال" + }, + almostXYears: { + one: "نزدیک 1 سال", + other: "نزدیک {{count}} سال" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "در " + result;else + return result + " قبل"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "yyyy/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fa-IR/_lib/localize.js +var eraValues = { + narrow: ["ق", "ب"], + abbreviated: ["ق.م.", "ب.م."], + wide: ["قبل از میلاد", "بعد از میلاد"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "س‌م1", + "س‌م2", + "س‌م3", + "س‌م4"], + + wide: [ + "سه‌ماهه 1", + "سه‌ماهه 2", + "سه‌ماهه 3", + "سه‌ماهه 4"] + +}; +var monthValues = { + narrow: [ + "ژ", + "ف", + "م", + "آ", + "م", + "ج", + "ج", + "آ", + "س", + "ا", + "ن", + "د"], + + abbreviated: [ + "ژانـ", + "فور", + "مارس", + "آپر", + "می", + "جون", + "جولـ", + "آگو", + "سپتـ", + "اکتـ", + "نوامـ", + "دسامـ"], + + wide: [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "جون", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر"] + +}; +var dayValues = { + narrow: [ + "ی", + "د", + "س", + "چ", + "پ", + "ج", + "ش"], + + short: [ + "1ش", + "2ش", + "3ش", + "4ش", + "5ش", + "ج", + "ش"], + + abbreviated: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه"], + + wide: [ + "یکشنبه", + "دوشنبه", + "سه‌شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه"] + +}; +var dayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش" + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ق", + pm: "ب", + midnight: "ن", + noon: "ظ", + morning: "ص", + afternoon: "ب.ظ.", + evening: "ع", + night: "ش" + }, + abbreviated: { + am: "ق.ظ.", + pm: "ب.ظ.", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + }, + wide: { + am: "قبل‌ازظهر", + pm: "بعدازظهر", + midnight: "نیمه‌شب", + noon: "ظهر", + morning: "صبح", + afternoon: "بعدازظهر", + evening: "عصر", + night: "شب" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fa-IR.js +/** +* @category Locales +* @summary Persian/Farsi locale (Iran). +* @language Persian +* @iso-639-2 ira +* @author Morteza Ziyae [@mort3za](https://github.com/mort3za) +*/ +var faIR = { + code: "fa-IR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^قبل/i, /^بعد/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[جژفمآاماسند]/i, + abbreviated: /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^(ژ|ج)/i, + /^ف/i, + /^م/i, + /^(آ|ا)/i, + /^م/i, + /^(ژ|ج)/i, + /^(ج|ژ)/i, + /^(آ|ا)/i, + /^س/i, + /^ا/i, + /^ن/i, + /^د/i], + + any: [ + /^ژا/i, + /^ف/i, + /^ما/i, + /^آپ/i, + /^(می|مه)/i, + /^(ژوئن|جون)/i, + /^(ژوئی|جول)/i, + /^(اوت|آگ)/i, + /^س/i, + /^(اوک|اک)/i, + /^ن/i, + /^د/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ی/i, + /^دو/i, + /^س/i, + /^چ/i, + /^پ/i, + /^ج/i, + /^ش/i], + + any: [ + /^(ی|1ش|یکشنبه)/i, + /^(د|2ش|دوشنبه)/i, + /^(س|3ش|سه‌شنبه)/i, + /^(چ|4ش|چهارشنبه)/i, + /^(پ|5ش|پنجشنبه)/i, + /^(ج|جمعه)/i, + /^(ش|شنبه)/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 6, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fa-IR/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + faIR: faIR }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/cdn.min.js b/node_modules/date-fns/locale/fa-IR/cdn.min.js new file mode 100644 index 000000000..0892660b5 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`در `+r:r+` قبل`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'در' {{time}}`,long:`{{date}} 'در' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'گذشته در' p`,yesterday:`'دیروز در' p`,today:`'امروز در' p`,tomorrow:`'فردا در' p`,nextWeek:`eeee 'در' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.م.`,`ب.م.`],wide:[`قبل از میلاد`,`بعد از میلاد`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`س‌م1`,`س‌م2`,`س‌م3`,`س‌م4`],wide:[`سه‌ماهه 1`,`سه‌ماهه 2`,`سه‌ماهه 3`,`سه‌ماهه 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ژ`,`ف`,`م`,`آ`,`م`,`ج`,`ج`,`آ`,`س`,`ا`,`ن`,`د`],abbreviated:[`ژانـ`,`فور`,`مارس`,`آپر`,`می`,`جون`,`جولـ`,`آگو`,`سپتـ`,`اکتـ`,`نوامـ`,`دسامـ`],wide:[`ژانویه`,`فوریه`,`مارس`,`آپریل`,`می`,`جون`,`جولای`,`آگوست`,`سپتامبر`,`اکتبر`,`نوامبر`,`دسامبر`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ی`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`1ش`,`2ش`,`3ش`,`4ش`,`5ش`,`ج`,`ش`],abbreviated:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`],wide:[`یکشنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنجشنبه`,`جمعه`,`شنبه`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`fa-IR`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{faIR:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi.cjs b/node_modules/date-fns/locale/fi.cjs new file mode 100644 index 000000000..6c7ee2053 --- /dev/null +++ b/node_modules/date-fns/locale/fi.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.fi = void 0; +var _index = require("./fi/_lib/formatDistance.cjs"); +var _index2 = require("./fi/_lib/formatLong.cjs"); +var _index3 = require("./fi/_lib/formatRelative.cjs"); +var _index4 = require("./fi/_lib/localize.cjs"); +var _index5 = require("./fi/_lib/match.cjs"); + +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +const fi = (exports.fi = { + code: "fi", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fi.d.cts b/node_modules/date-fns/locale/fi.d.cts new file mode 100644 index 000000000..e9dc39b1f --- /dev/null +++ b/node_modules/date-fns/locale/fi.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export declare const fi: Locale; diff --git a/node_modules/date-fns/locale/fi.d.ts b/node_modules/date-fns/locale/fi.d.ts new file mode 100644 index 000000000..e9dc39b1f --- /dev/null +++ b/node_modules/date-fns/locale/fi.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export declare const fi: Locale; diff --git a/node_modules/date-fns/locale/fi.js b/node_modules/date-fns/locale/fi.js new file mode 100644 index 000000000..25cf25279 --- /dev/null +++ b/node_modules/date-fns/locale/fi.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./fi/_lib/formatDistance.js"; +import { formatLong } from "./fi/_lib/formatLong.js"; +import { formatRelative } from "./fi/_lib/formatRelative.js"; +import { localize } from "./fi/_lib/localize.js"; +import { match } from "./fi/_lib/match.js"; + +/** + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) + * @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) + */ +export const fi = { + code: "fi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fi; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs new file mode 100644 index 000000000..53a7faf16 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.cjs @@ -0,0 +1,147 @@ +"use strict"; +exports.formatDistance = void 0; + +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} + +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} + +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds, + }, + + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds, + }, + + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: (_text) => "puolen minuutin", + }, + + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes, + }, + + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes, + }, + + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours, + }, + + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours, + }, + + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays, + }, + + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks, + }, + + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks, + }, + + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths, + }, + + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths, + }, + + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears, + }, + + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears, + }, + + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears, + }, + + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears, + }, +}; + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + const result = + count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + " kuluttua"; + } else { + return result + " sitten"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance.js b/node_modules/date-fns/locale/fi/_lib/formatDistance.js new file mode 100644 index 000000000..4791da95e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance.js @@ -0,0 +1,143 @@ +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} + +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} + +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds, + }, + + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds, + }, + + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: (_text) => "puolen minuutin", + }, + + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes, + }, + + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes, + }, + + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours, + }, + + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours, + }, + + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays, + }, + + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks, + }, + + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks, + }, + + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths, + }, + + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths, + }, + + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears, + }, + + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears, + }, + + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears, + }, + + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears, + }, +}; + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + const result = + count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + " kuluttua"; + } else { + return result + " sitten"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.cjs b/node_modules/date-fns/locale/fi/_lib/formatLong.cjs new file mode 100644 index 000000000..a81d23f9f --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong.js b/node_modules/date-fns/locale/fi/_lib/formatLong.js new file mode 100644 index 000000000..dea5bccf7 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs new file mode 100644 index 000000000..19a33d673 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative.js b/node_modules/date-fns/locale/fi/_lib/formatRelative.js new file mode 100644 index 000000000..8862d5537 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.cjs b/node_modules/date-fns/locale/fi/_lib/localize.cjs new file mode 100644 index 000000000..ec60285ab --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartaali", "2. kvartaali", "3. kvartaali", "4. kvartaali"], +}; + +const monthValues = { + narrow: ["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"], + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu", + ], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu", + ], +}; + +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "K", "T", "P", "L"], + short: ["su", "ma", "ti", "ke", "to", "pe", "la"], + abbreviated: ["sunn.", "maan.", "tiis.", "kesk.", "torst.", "perj.", "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai", + ], +}; + +const formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/localize.d.cts b/node_modules/date-fns/locale/fi/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.d.ts b/node_modules/date-fns/locale/fi/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fi/_lib/localize.js b/node_modules/date-fns/locale/fi/_lib/localize.js new file mode 100644 index 000000000..7dfeb435a --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize.js @@ -0,0 +1,168 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartaali", "2. kvartaali", "3. kvartaali", "4. kvartaali"], +}; + +const monthValues = { + narrow: ["T", "H", "M", "H", "T", "K", "H", "E", "S", "L", "M", "J"], + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu", + ], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu", + ], +}; + +const formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "K", "T", "P", "L"], + short: ["su", "ma", "ti", "ke", "to", "pe", "la"], + abbreviated: ["sunn.", "maan.", "tiis.", "kesk.", "torst.", "perj.", "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai", + ], +}; + +const formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä", + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fi/_lib/match.cjs b/node_modules/date-fns/locale/fi/_lib/match.cjs new file mode 100644 index 000000000..3f1cdd3fd --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^j/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: + /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i, +}; +const parseMonthPatterns = { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i, + ], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fi/_lib/match.d.cts b/node_modules/date-fns/locale/fi/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fi/_lib/match.d.ts b/node_modules/date-fns/locale/fi/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fi/_lib/match.js b/node_modules/date-fns/locale/fi/_lib/match.js new file mode 100644 index 000000000..0c3c0aa89 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i, +}; +const parseEraPatterns = { + any: [/^e/i, /^j/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: + /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i, +}; +const parseMonthPatterns = { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i, + ], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fi/cdn.js b/node_modules/date-fns/locale/fi/cdn.js new file mode 100644 index 000000000..e64176053 --- /dev/null +++ b/node_modules/date-fns/locale/fi/cdn.js @@ -0,0 +1,614 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fi/_lib/formatDistance.js +function futureSeconds(text) { + return text.replace(/sekuntia?/, "sekunnin"); +} +function futureMinutes(text) { + return text.replace(/minuuttia?/, "minuutin"); +} +function futureHours(text) { + return text.replace(/tuntia?/, "tunnin"); +} +function futureDays(text) { + return text.replace(/päivää?/, "päivän"); +} +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, "viikon"); +} +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, "kuukauden"); +} +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, "vuoden"); +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: "alle sekunti", + other: "alle {{count}} sekuntia", + futureTense: futureSeconds + }, + xSeconds: { + one: "sekunti", + other: "{{count}} sekuntia", + futureTense: futureSeconds + }, + halfAMinute: { + one: "puoli minuuttia", + other: "puoli minuuttia", + futureTense: function futureTense(_text) {return "puolen minuutin";} + }, + lessThanXMinutes: { + one: "alle minuutti", + other: "alle {{count}} minuuttia", + futureTense: futureMinutes + }, + xMinutes: { + one: "minuutti", + other: "{{count}} minuuttia", + futureTense: futureMinutes + }, + aboutXHours: { + one: "noin tunti", + other: "noin {{count}} tuntia", + futureTense: futureHours + }, + xHours: { + one: "tunti", + other: "{{count}} tuntia", + futureTense: futureHours + }, + xDays: { + one: "päivä", + other: "{{count}} päivää", + futureTense: futureDays + }, + aboutXWeeks: { + one: "noin viikko", + other: "noin {{count}} viikkoa", + futureTense: futureWeeks + }, + xWeeks: { + one: "viikko", + other: "{{count}} viikkoa", + futureTense: futureWeeks + }, + aboutXMonths: { + one: "noin kuukausi", + other: "noin {{count}} kuukautta", + futureTense: futureMonths + }, + xMonths: { + one: "kuukausi", + other: "{{count}} kuukautta", + futureTense: futureMonths + }, + aboutXYears: { + one: "noin vuosi", + other: "noin {{count}} vuotta", + futureTense: futureYears + }, + xYears: { + one: "vuosi", + other: "{{count}} vuotta", + futureTense: futureYears + }, + overXYears: { + one: "yli vuosi", + other: "yli {{count}} vuotta", + futureTense: futureYears + }, + almostXYears: { + one: "lähes vuosi", + other: "lähes {{count}} vuotta", + futureTense: futureYears + } +}; +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = count === 1 ? tokenValue.one : tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return tokenValue.futureTense(result) + " kuluttua";else + return result + " sitten"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "eeee d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "d.M.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss zzzz", + long: "HH.mm.ss z", + medium: "HH.mm.ss", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fi/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fi/_lib/localize.js +var eraValues = { + narrow: ["eaa.", "jaa."], + abbreviated: ["eaa.", "jaa."], + wide: ["ennen ajanlaskun alkua", "jälkeen ajanlaskun alun"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartaali", + "2. kvartaali", + "3. kvartaali", + "4. kvartaali"] + +}; +var monthValues = { + narrow: [ + "T", + "H", + "M", + "H", + "T", + "K", + "H", + "E", + "S", + "L", + "M", + "J"], + + abbreviated: [ + "tammi", + "helmi", + "maalis", + "huhti", + "touko", + "kesä", + "heinä", + "elo", + "syys", + "loka", + "marras", + "joulu"], + + wide: [ + "tammikuu", + "helmikuu", + "maaliskuu", + "huhtikuu", + "toukokuu", + "kesäkuu", + "heinäkuu", + "elokuu", + "syyskuu", + "lokakuu", + "marraskuu", + "joulukuu"] + +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: [ + "tammikuuta", + "helmikuuta", + "maaliskuuta", + "huhtikuuta", + "toukokuuta", + "kesäkuuta", + "heinäkuuta", + "elokuuta", + "syyskuuta", + "lokakuuta", + "marraskuuta", + "joulukuuta"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "K", + "T", + "P", + "L"], + + short: [ + "su", + "ma", + "ti", + "ke", + "to", + "pe", + "la"], + + abbreviated: [ + "sunn.", + "maan.", + "tiis.", + "kesk.", + "torst.", + "perj.", + "la"], + + wide: [ + "sunnuntai", + "maanantai", + "tiistai", + "keskiviikko", + "torstai", + "perjantai", + "lauantai"] + +}; +var formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: [ + "sunnuntaina", + "maanantaina", + "tiistaina", + "keskiviikkona", + "torstaina", + "perjantaina", + "lauantaina"] + +}; +var dayPeriodValues = { + narrow: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä" + }, + abbreviated: { + am: "ap", + pm: "ip", + midnight: "keskiyö", + noon: "keskipäivä", + morning: "ap", + afternoon: "ip", + evening: "illalla", + night: "yöllä" + }, + wide: { + am: "ap", + pm: "ip", + midnight: "keskiyöllä", + noon: "keskipäivällä", + morning: "aamupäivällä", + afternoon: "iltapäivällä", + evening: "illalla", + night: "yöllä" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fi.js +/** +* @category Locales +* @summary Finnish locale. +* @language Finnish +* @iso-639-2 fin +* @author Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe) +* @author Edo Rivai [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Samu Juvonen [@sjuvonen](https://github.com/sjuvonen) +*/ +var fi = { + code: "fi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^e/i, /^j/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[thmkeslj]/i, + abbreviated: /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^t/i, + /^h/i, + /^m/i, + /^h/i, + /^t/i, + /^k/i, + /^h/i, + /^e/i, + /^s/i, + /^l/i, + /^m/i, + /^j/i], + + any: [ + /^ta/i, + /^hel/i, + /^maa/i, + /^hu/i, + /^to/i, + /^k/i, + /^hei/i, + /^e/i, + /^s/i, + /^l/i, + /^mar/i, + /^j/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^k/i, + /^t/i, + /^p/i, + /^l/i], + + any: [ + /^s/i, + /^m/i, + /^ti/i, + /^k/i, + /^to/i, + /^p/i, + /^l/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fi/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fi: fi }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/cdn.min.js b/node_modules/date-fns/locale/fi/cdn.min.js new file mode 100644 index 000000000..0582d4900 --- /dev/null +++ b/node_modules/date-fns/locale/fi/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r.futureTense(i)+` kuluttua`:i+` sitten`:i};function h(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var g={date:h({formats:{full:`eeee d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`d.M.y`},defaultWidth:`full`}),time:h({formats:{full:`HH.mm.ss zzzz`,long:`HH.mm.ss z`,medium:`HH.mm.ss`,short:`HH.mm`},defaultWidth:`full`}),dateTime:h({formats:{full:`{{date}} 'klo' {{time}}`,long:`{{date}} 'klo' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},_={lastWeek:`'viime' eeee 'klo' p`,yesterday:`'eilen klo' p`,today:`'tänään klo' p`,tomorrow:`'huomenna klo' p`,nextWeek:`'ensi' eeee 'klo' p`,other:`P`},v=function(e,t,n,r){return _[e]};function y(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var b={narrow:[`eaa.`,`jaa.`],abbreviated:[`eaa.`,`jaa.`],wide:[`ennen ajanlaskun alkua`,`jälkeen ajanlaskun alun`]},x={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartaali`,`2. kvartaali`,`3. kvartaali`,`4. kvartaali`]},S={narrow:[`T`,`H`,`M`,`H`,`T`,`K`,`H`,`E`,`S`,`L`,`M`,`J`],abbreviated:[`tammi`,`helmi`,`maalis`,`huhti`,`touko`,`kesä`,`heinä`,`elo`,`syys`,`loka`,`marras`,`joulu`],wide:[`tammikuu`,`helmikuu`,`maaliskuu`,`huhtikuu`,`toukokuu`,`kesäkuu`,`heinäkuu`,`elokuu`,`syyskuu`,`lokakuu`,`marraskuu`,`joulukuu`]},C={narrow:S.narrow,abbreviated:S.abbreviated,wide:[`tammikuuta`,`helmikuuta`,`maaliskuuta`,`huhtikuuta`,`toukokuuta`,`kesäkuuta`,`heinäkuuta`,`elokuuta`,`syyskuuta`,`lokakuuta`,`marraskuuta`,`joulukuuta`]},w={narrow:[`S`,`M`,`T`,`K`,`T`,`P`,`L`],short:[`su`,`ma`,`ti`,`ke`,`to`,`pe`,`la`],abbreviated:[`sunn.`,`maan.`,`tiis.`,`kesk.`,`torst.`,`perj.`,`la`],wide:[`sunnuntai`,`maanantai`,`tiistai`,`keskiviikko`,`torstai`,`perjantai`,`lauantai`]},T={narrow:w.narrow,short:w.short,abbreviated:w.abbreviated,wide:[`sunnuntaina`,`maanantaina`,`tiistaina`,`keskiviikkona`,`torstaina`,`perjantaina`,`lauantaina`]},E={ordinalNumber:function(e,t){return Number(e)+`.`},era:y({values:b,defaultWidth:`wide`}),quarter:y({values:x,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:y({values:S,defaultWidth:`wide`,formattingValues:C,defaultFormattingWidth:`wide`}),day:y({values:w,defaultWidth:`wide`,formattingValues:T,defaultFormattingWidth:`wide`}),dayPeriod:y({values:{narrow:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},abbreviated:{am:`ap`,pm:`ip`,midnight:`keskiyö`,noon:`keskipäivä`,morning:`ap`,afternoon:`ip`,evening:`illalla`,night:`yöllä`},wide:{am:`ap`,pm:`ip`,midnight:`keskiyöllä`,noon:`keskipäivällä`,morning:`aamupäivällä`,afternoon:`iltapäivällä`,evening:`illalla`,night:`yöllä`}},defaultWidth:`wide`})};function D(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?k(s,function(e){return e.test(o)}):O(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function O(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function k(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var j={code:`fi`,formatDistance:m,formatLong:g,formatRelative:v,localize:E,match:{ordinalNumber:A({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:D({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:`any`}),quarter:D({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:D({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:`any`}),day:D({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:D({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fi:j})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA.cjs b/node_modules/date-fns/locale/fr-CA.cjs new file mode 100644 index 000000000..906a91a39 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.frCA = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/formatRelative.cjs"); +var _index3 = require("./fr/_lib/localize.cjs"); +var _index4 = require("./fr/_lib/match.cjs"); + +var _index5 = require("./fr-CA/_lib/formatLong.cjs"); // Same as fr +// Unique for fr-CA +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +const frCA = (exports.frCA = { + code: "fr-CA", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + + // Unique for fr-CA + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/fr-CA.d.cts b/node_modules/date-fns/locale/fr-CA.d.cts new file mode 100644 index 000000000..63554881e --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export declare const frCA: Locale; diff --git a/node_modules/date-fns/locale/fr-CA.d.ts b/node_modules/date-fns/locale/fr-CA.d.ts new file mode 100644 index 000000000..63554881e --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export declare const frCA: Locale; diff --git a/node_modules/date-fns/locale/fr-CA.js b/node_modules/date-fns/locale/fr-CA.js new file mode 100644 index 000000000..5337512c5 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA.js @@ -0,0 +1,35 @@ +// Same as fr +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { formatRelative } from "./fr/_lib/formatRelative.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +// Unique for fr-CA +import { formatLong } from "./fr-CA/_lib/formatLong.js"; + +/** + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) + */ +export const frCA = { + code: "fr-CA", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + + // Unique for fr-CA + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default frCA; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs new file mode 100644 index 000000000..2d4305700 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js new file mode 100644 index 000000000..450eefa28 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr-CA/cdn.js b/node_modules/date-fns/locale/fr-CA/cdn.js new file mode 100644 index 000000000..2292cc903 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/cdn.js @@ -0,0 +1,563 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr-CA.js +/** +* @category Locales +* @summary French locale (Canada). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Gabriele Petrioli [@gpetrioli](https://github.com/gpetrioli) +*/ +var frCA = { + code: "fr-CA", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "yy-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr-CA/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + frCA: frCA }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA/cdn.min.js b/node_modules/date-fns/locale/fr-CA/cdn.min.js new file mode 100644 index 000000000..769b6b3b4 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r},c={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},l=function(e,t,n,r){return c[e]};function u(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var d={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},f={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},p={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},m={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},h={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},g=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},_=[`MMM`,`MMMM`],v={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&_.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:g,era:u({values:d,defaultWidth:`wide`}),quarter:u({values:f,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:u({values:p,defaultWidth:`wide`}),day:u({values:m,defaultWidth:`wide`}),dayPeriod:u({values:h,defaultWidth:`wide`})};function y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,function(e){return e.test(o)}):b(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var C={ordinalNumber:S({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:y({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})};function w(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var T={code:`fr-CA`,formatDistance:s,formatLong:{date:w({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`yy-MM-dd`},defaultWidth:`full`}),time:w({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:w({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:l,localize:v,match:C,options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{frCA:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH.cjs b/node_modules/date-fns/locale/fr-CH.cjs new file mode 100644 index 000000000..c331d454f --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.frCH = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/localize.cjs"); +var _index3 = require("./fr/_lib/match.cjs"); + +var _index4 = require("./fr-CH/_lib/formatLong.cjs"); +var _index5 = require("./fr-CH/_lib/formatRelative.cjs"); // Same as fr +// Unique for fr-CH +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +const frCH = (exports.frCH = { + code: "fr-CH", + formatDistance: _index.formatDistance, + formatLong: _index4.formatLong, + formatRelative: _index5.formatRelative, + localize: _index2.localize, + match: _index3.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fr-CH.d.cts b/node_modules/date-fns/locale/fr-CH.d.cts new file mode 100644 index 000000000..af031f599 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const frCH: Locale; diff --git a/node_modules/date-fns/locale/fr-CH.d.ts b/node_modules/date-fns/locale/fr-CH.d.ts new file mode 100644 index 000000000..af031f599 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const frCH: Locale; diff --git a/node_modules/date-fns/locale/fr-CH.js b/node_modules/date-fns/locale/fr-CH.js new file mode 100644 index 000000000..0ab9f99a6 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH.js @@ -0,0 +1,34 @@ +// Same as fr +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +// Unique for fr-CH +import { formatLong } from "./fr-CH/_lib/formatLong.js"; +import { formatRelative } from "./fr-CH/_lib/formatRelative.js"; + +/** + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export const frCH = { + code: "fr-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default frCH; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs new file mode 100644 index 000000000..c2ce1ddf4 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js new file mode 100644 index 000000000..70399c38c --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs new file mode 100644 index 000000000..f7f0d76e4 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js new file mode 100644 index 000000000..847dbfd17 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fr-CH/cdn.js b/node_modules/date-fns/locale/fr-CH/cdn.js new file mode 100644 index 000000000..e90f1bc3c --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/cdn.js @@ -0,0 +1,565 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fr-CH/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/fr-CH.js +/** +* @category Locales +* @summary French locale (Switzerland). +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +* @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var frCH = { + code: "fr-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr-CH/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + frCH: frCH }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/cdn.min.js b/node_modules/date-fns/locale/fr-CH/cdn.min.js new file mode 100644 index 000000000..336cf34f0 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r};function c(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var l={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},u={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},d={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},f={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},p={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},m=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},h=[`MMM`,`MMMM`],g={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&h.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:m,era:c({values:l,defaultWidth:`wide`}),quarter:c({values:u,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:c({values:d,defaultWidth:`wide`}),day:c({values:f,defaultWidth:`wide`}),dayPeriod:c({values:p,defaultWidth:`wide`})};function _(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?y(s,function(e){return e.test(o)}):v(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function v(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var x={ordinalNumber:b({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:_({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:_({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:_({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:_({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:_({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})};function S(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var C={date:S({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:S({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:S({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},w={lastWeek:`eeee 'la semaine dernière à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'la semaine prochaine à' p`,other:`P`},T={code:`fr-CH`,formatDistance:s,formatLong:C,formatRelative:function(e,t,n,r){return w[e]},localize:g,match:x,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{frCH:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr.cjs b/node_modules/date-fns/locale/fr.cjs new file mode 100644 index 000000000..83466a8c1 --- /dev/null +++ b/node_modules/date-fns/locale/fr.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.fr = void 0; +var _index = require("./fr/_lib/formatDistance.cjs"); +var _index2 = require("./fr/_lib/formatLong.cjs"); +var _index3 = require("./fr/_lib/formatRelative.cjs"); +var _index4 = require("./fr/_lib/localize.cjs"); +var _index5 = require("./fr/_lib/match.cjs"); + +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +const fr = (exports.fr = { + code: "fr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fr.d.cts b/node_modules/date-fns/locale/fr.d.cts new file mode 100644 index 000000000..8ecf5f8d5 --- /dev/null +++ b/node_modules/date-fns/locale/fr.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export declare const fr: Locale; diff --git a/node_modules/date-fns/locale/fr.d.ts b/node_modules/date-fns/locale/fr.d.ts new file mode 100644 index 000000000..8ecf5f8d5 --- /dev/null +++ b/node_modules/date-fns/locale/fr.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export declare const fr: Locale; diff --git a/node_modules/date-fns/locale/fr.js b/node_modules/date-fns/locale/fr.js new file mode 100644 index 000000000..68f0b54e0 --- /dev/null +++ b/node_modules/date-fns/locale/fr.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./fr/_lib/formatDistance.js"; +import { formatLong } from "./fr/_lib/formatLong.js"; +import { formatRelative } from "./fr/_lib/formatRelative.js"; +import { localize } from "./fr/_lib/localize.js"; +import { match } from "./fr/_lib/match.js"; + +/** + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau](https://github.com/izeau) + * @author François B [@fbonzon](https://github.com/fbonzon) + */ +export const fr = { + code: "fr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fr; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs new file mode 100644 index 000000000..00ce56913 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs @@ -0,0 +1,104 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes", + }, + + halfAMinute: "30 secondes", + + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures", + }, + + xHours: { + one: "1 heure", + other: "{{count}} heures", + }, + + xDays: { + one: "1 jour", + other: "{{count}} jours", + }, + + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines", + }, + + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines", + }, + + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois", + }, + + xMonths: { + one: "1 mois", + other: "{{count}} mois", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans", + }, + + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + const form = formatDistanceLocale[token]; + if (typeof form === "string") { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dans " + result; + } else { + return "il y a " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance.js b/node_modules/date-fns/locale/fr/_lib/formatDistance.js new file mode 100644 index 000000000..cab7078c7 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance.js @@ -0,0 +1,100 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes", + }, + + halfAMinute: "30 secondes", + + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes", + }, + + xMinutes: { + one: "1 minute", + other: "{{count}} minutes", + }, + + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures", + }, + + xHours: { + one: "1 heure", + other: "{{count}} heures", + }, + + xDays: { + one: "1 jour", + other: "{{count}} jours", + }, + + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines", + }, + + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines", + }, + + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois", + }, + + xMonths: { + one: "1 mois", + other: "{{count}} mois", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans", + }, + + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + const form = formatDistanceLocale[token]; + if (typeof form === "string") { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dans " + result; + } else { + return "il y a " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.cjs b/node_modules/date-fns/locale/fr/_lib/formatLong.cjs new file mode 100644 index 000000000..01e3cfca7 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong.js b/node_modules/date-fns/locale/fr/_lib/formatLong.js new file mode 100644 index 000000000..a3a8bad74 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs new file mode 100644 index 000000000..9d6751c6e --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative.js b/node_modules/date-fns/locale/fr/_lib/formatRelative.js new file mode 100644 index 000000000..809007895 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.cjs b/node_modules/date-fns/locale/fr/_lib/localize.cjs new file mode 100644 index 000000000..2bec1bddb --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."], + wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc.", + ], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "lu", "ma", "me", "je", "ve", "sa"], + abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) return "0"; + + const feminineUnits = ["year", "week", "hour", "minute", "second"]; + let suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? "ère" : "er"; + } else { + suffix = "ème"; + } + + return number + suffix; +}; + +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + +const localize = (exports.localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/localize.d.cts b/node_modules/date-fns/locale/fr/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.d.ts b/node_modules/date-fns/locale/fr/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fr/_lib/localize.js b/node_modules/date-fns/locale/fr/_lib/localize.js new file mode 100644 index 000000000..df9186297 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."], + wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc.", + ], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "lu", "ma", "me", "je", "ve", "sa"], + abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + if (number === 0) return "0"; + + const feminineUnits = ["year", "week", "hour", "minute", "second"]; + let suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? "ère" : "er"; + } else { + suffix = "ème"; + } + + return number + suffix; +}; + +const LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; + +export const localize = { + preprocessor: (date, parts) => { + // Replaces the `do` tokens with `d` when used with long month tokens and the day of the month is greater than one. + // Use case "do MMMM" => 1er août, 29 août + // see https://github.com/date-fns/date-fns/issues/1391 + + if (date.getDate() === 1) return parts; + + const hasLongMonthToken = parts.some( + (part) => part.isToken && LONG_MONTHS_TOKENS.includes(part.value), + ); + + if (!hasLongMonthToken) return parts; + + return parts.map((part) => + part.isToken && part.value === "do" + ? { isToken: true, value: "d" } + : part, + ); + }, + + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fr/_lib/match.cjs b/node_modules/date-fns/locale/fr/_lib/match.cjs new file mode 100644 index 000000000..f464b2ab6 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fr/_lib/match.d.cts b/node_modules/date-fns/locale/fr/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fr/_lib/match.d.ts b/node_modules/date-fns/locale/fr/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fr/_lib/match.js b/node_modules/date-fns/locale/fr/_lib/match.js new file mode 100644 index 000000000..87a340f2f --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fr/cdn.js b/node_modules/date-fns/locale/fr/cdn.js new file mode 100644 index 000000000..fe9794eab --- /dev/null +++ b/node_modules/date-fns/locale/fr/cdn.js @@ -0,0 +1,562 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "moins d’une seconde", + other: "moins de {{count}} secondes" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} secondes" + }, + halfAMinute: "30 secondes", + lessThanXMinutes: { + one: "moins d’une minute", + other: "moins de {{count}} minutes" + }, + xMinutes: { + one: "1 minute", + other: "{{count}} minutes" + }, + aboutXHours: { + one: "environ 1 heure", + other: "environ {{count}} heures" + }, + xHours: { + one: "1 heure", + other: "{{count}} heures" + }, + xDays: { + one: "1 jour", + other: "{{count}} jours" + }, + aboutXWeeks: { + one: "environ 1 semaine", + other: "environ {{count}} semaines" + }, + xWeeks: { + one: "1 semaine", + other: "{{count}} semaines" + }, + aboutXMonths: { + one: "environ 1 mois", + other: "environ {{count}} mois" + }, + xMonths: { + one: "1 mois", + other: "{{count}} mois" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "plus d’un an", + other: "plus de {{count}} ans" + }, + almostXYears: { + one: "presqu’un an", + other: "presque {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + if (typeof form === "string") result = form;else + if (count === 1) result = form.one;else + result = form.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dans " + result;else + return "il y a " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fr/_lib/localize.js +var eraValues = { + narrow: ["av. J.-C", "ap. J.-C"], + abbreviated: ["av. J.-C", "ap. J.-C"], + wide: ["avant Jésus-Christ", "après Jésus-Christ"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1er trim.", + "2ème trim.", + "3ème trim.", + "4ème trim."], + + wide: [ + "1er trimestre", + "2ème trimestre", + "3ème trimestre", + "4ème trimestre"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "févr.", + "mars", + "avr.", + "mai", + "juin", + "juil.", + "août", + "sept.", + "oct.", + "nov.", + "déc."], + + wide: [ + "janvier", + "février", + "mars", + "avril", + "mai", + "juin", + "juillet", + "août", + "septembre", + "octobre", + "novembre", + "décembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "lu", + "ma", + "me", + "je", + "ve", + "sa"], + + abbreviated: [ + "dim.", + "lun.", + "mar.", + "mer.", + "jeu.", + "ven.", + "sam."], + + wide: [ + "dimanche", + "lundi", + "mardi", + "mercredi", + "jeudi", + "vendredi", + "samedi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "soir", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "matin", + afternoon: "après-midi", + evening: "soir", + night: "matin" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minuit", + noon: "midi", + morning: "du matin", + afternoon: "de l’après-midi", + evening: "du soir", + night: "du matin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return "0"; + var feminineUnits = [ + "year", + "week", + "hour", + "minute", + "second"]; + + var suffix; + if (number === 1) suffix = unit && feminineUnits.includes(unit) ? "ère" : "er";else + suffix = "ème"; + return number + suffix; +}; +var LONG_MONTHS_TOKENS = ["MMM", "MMMM"]; +var localize = { + preprocessor: function preprocessor(date, parts) { + if (date.getDate() === 1) return parts; + if (!parts.some(function (part) {return part.isToken && LONG_MONTHS_TOKENS.includes(part.value);})) return parts; + return parts.map(function (part) {return part.isToken && part.value === "do" ? { + isToken: true, + value: "d" + } : part;}); + }, + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fr.js +/** +* @category Locales +* @summary French locale. +* @language French +* @iso-639-2 fra +* @author Jean Dupouy [@izeau](https://github.com/izeau) +* @author François B [@fbonzon](https://github.com/fbonzon) +*/ +var fr = { + code: "fr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ième|ère|ème|er|e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^av/i, + /^ma/i, + /^juin/i, + /^juil/i, + /^ao/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^lu/i, + /^ma/i, + /^me/i, + /^je/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fr: fr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/cdn.min.js b/node_modules/date-fns/locale/fr/cdn.min.js new file mode 100644 index 000000000..d3419ba8a --- /dev/null +++ b/node_modules/date-fns/locale/fr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dans `+r:`il y a `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'à' {{time}}`,long:`{{date}} 'à' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'dernier à' p`,yesterday:`'hier à' p`,today:`'aujourd’hui à' p`,tomorrow:`'demain à' p'`,nextWeek:`eeee 'prochain à' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={narrow:[`av. J.-C`,`ap. J.-C`],abbreviated:[`av. J.-C`,`ap. J.-C`],wide:[`avant Jésus-Christ`,`après Jésus-Christ`]},m={narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1er trim.`,`2ème trim.`,`3ème trim.`,`4ème trim.`],wide:[`1er trimestre`,`2ème trimestre`,`3ème trimestre`,`4ème trimestre`]},h={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`févr.`,`mars`,`avr.`,`mai`,`juin`,`juil.`,`août`,`sept.`,`oct.`,`nov.`,`déc.`],wide:[`janvier`,`février`,`mars`,`avril`,`mai`,`juin`,`juillet`,`août`,`septembre`,`octobre`,`novembre`,`décembre`]},g={narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`lu`,`ma`,`me`,`je`,`ve`,`sa`],abbreviated:[`dim.`,`lun.`,`mar.`,`mer.`,`jeu.`,`ven.`,`sam.`],wide:[`dimanche`,`lundi`,`mardi`,`mercredi`,`jeudi`,`vendredi`,`samedi`]},_={narrow:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`soir`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`matin`,afternoon:`après-midi`,evening:`soir`,night:`matin`},wide:{am:`AM`,pm:`PM`,midnight:`minuit`,noon:`midi`,morning:`du matin`,afternoon:`de l’après-midi`,evening:`du soir`,night:`du matin`}},v=function(e,t){var n=Number(e),r=t?.unit;return n===0?`0`:n+(n===1?r&&[`year`,`week`,`hour`,`minute`,`second`].includes(r)?`ère`:`er`:`ème`)},y=[`MMM`,`MMMM`],b={preprocessor:function(e,t){return e.getDate()===1||!t.some(function(e){return e.isToken&&y.includes(e.value)})?t:t.map(function(e){return e.isToken&&e.value===`do`?{isToken:!0,value:`d`}:e})},ordinalNumber:v,era:f({values:p,defaultWidth:`wide`}),quarter:f({values:m,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:h,defaultWidth:`wide`}),day:f({values:g,defaultWidth:`wide`}),dayPeriod:f({values:_,defaultWidth:`wide`})};function x(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?C(s,function(e){return e.test(o)}):S(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function S(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function C(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var T={code:`fr`,formatDistance:s,formatLong:l,formatRelative:d,localize:b,match:{ordinalNumber:w({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:x({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:x({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:x({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:x({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:x({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fr:T})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy.cjs b/node_modules/date-fns/locale/fy.cjs new file mode 100644 index 000000000..ad9b23053 --- /dev/null +++ b/node_modules/date-fns/locale/fy.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.fy = void 0; +var _index = require("./fy/_lib/formatDistance.cjs"); +var _index2 = require("./fy/_lib/formatLong.cjs"); +var _index3 = require("./fy/_lib/formatRelative.cjs"); +var _index4 = require("./fy/_lib/localize.cjs"); +var _index5 = require("./fy/_lib/match.cjs"); + +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +const fy = (exports.fy = { + code: "fy", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/fy.d.cts b/node_modules/date-fns/locale/fy.d.cts new file mode 100644 index 000000000..69ede7457 --- /dev/null +++ b/node_modules/date-fns/locale/fy.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export declare const fy: Locale; diff --git a/node_modules/date-fns/locale/fy.d.ts b/node_modules/date-fns/locale/fy.d.ts new file mode 100644 index 000000000..69ede7457 --- /dev/null +++ b/node_modules/date-fns/locale/fy.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export declare const fy: Locale; diff --git a/node_modules/date-fns/locale/fy.js b/node_modules/date-fns/locale/fy.js new file mode 100644 index 000000000..922784f2e --- /dev/null +++ b/node_modules/date-fns/locale/fy.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./fy/_lib/formatDistance.js"; +import { formatLong } from "./fy/_lib/formatLong.js"; +import { formatRelative } from "./fy/_lib/formatRelative.js"; +import { localize } from "./fy/_lib/localize.js"; +import { match } from "./fy/_lib/match.js"; + +/** + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02](https://github.com/damon02) + */ +export const fy = { + code: "fy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default fy; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs b/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs new file mode 100644 index 000000000..eaa633366 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden", + }, + + halfAMinute: "oardel minút", + + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten", + }, + + xMinutes: { + one: "1 minút", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere", + }, + + xHours: { + one: "1 oere", + other: "{{count}} oere", + }, + + xDays: { + one: "1 dei", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken", + }, + + xWeeks: { + one: "1 wike", + other: "{{count}} wiken", + }, + + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen", + }, + + xMonths: { + one: "1 moanne", + other: "{{count}} moannen", + }, + + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier", + }, + + xYears: { + one: "1 jier", + other: "{{count}} jier", + }, + + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier", + }, + + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oer " + result; + } else { + return result + " lyn"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance.js b/node_modules/date-fns/locale/fy/_lib/formatDistance.js new file mode 100644 index 000000000..139a1ae5b --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden", + }, + + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden", + }, + + halfAMinute: "oardel minút", + + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten", + }, + + xMinutes: { + one: "1 minút", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere", + }, + + xHours: { + one: "1 oere", + other: "{{count}} oere", + }, + + xDays: { + one: "1 dei", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken", + }, + + xWeeks: { + one: "1 wike", + other: "{{count}} wiken", + }, + + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen", + }, + + xMonths: { + one: "1 moanne", + other: "{{count}} moannen", + }, + + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier", + }, + + xYears: { + one: "1 jier", + other: "{{count}} jier", + }, + + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier", + }, + + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "oer " + result; + } else { + return result + " lyn"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.cjs b/node_modules/date-fns/locale/fy/_lib/formatLong.cjs new file mode 100644 index 000000000..7e58b582a --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts b/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts b/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong.js b/node_modules/date-fns/locale/fy/_lib/formatLong.js new file mode 100644 index 000000000..bb442e48d --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs b/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs new file mode 100644 index 000000000..7b634caa2 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative.js b/node_modules/date-fns/locale/fy/_lib/formatRelative.js new file mode 100644 index 000000000..0139fff7b --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.cjs b/node_modules/date-fns/locale/fy/_lib/localize.cjs new file mode 100644 index 000000000..be6773841 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e fearnsjier", "2e fearnsjier", "3e fearnsjier", "4e fearnsjier"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber", + ], +}; + +const dayValues = { + narrow: ["s", "m", "t", "w", "t", "f", "s"], + short: ["si", "mo", "ti", "wo", "to", "fr", "so"], + abbreviated: ["snein", "moa", "tii", "woa", "ton", "fre", "sneon"], + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/localize.d.cts b/node_modules/date-fns/locale/fy/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.d.ts b/node_modules/date-fns/locale/fy/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/fy/_lib/localize.js b/node_modules/date-fns/locale/fy/_lib/localize.js new file mode 100644 index 000000000..20d8a2dc7 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e fearnsjier", "2e fearnsjier", "3e fearnsjier", "4e fearnsjier"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber", + ], +}; + +const dayValues = { + narrow: ["s", "m", "t", "w", "t", "f", "s"], + short: ["si", "mo", "ti", "wo", "to", "fr", "so"], + abbreviated: ["snein", "moa", "tii", "woa", "ton", "fre", "sneon"], + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/fy/_lib/match.cjs b/node_modules/date-fns/locale/fy/_lib/match.cjs new file mode 100644 index 000000000..e4029c7f4 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/, +}; +const parseEraPatterns = { + any: [/^f/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/fy/_lib/match.d.cts b/node_modules/date-fns/locale/fy/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fy/_lib/match.d.ts b/node_modules/date-fns/locale/fy/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/fy/_lib/match.js b/node_modules/date-fns/locale/fy/_lib/match.js new file mode 100644 index 000000000..45082170a --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/, +}; +const parseEraPatterns = { + any: [/^f/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/fy/cdn.js b/node_modules/date-fns/locale/fy/cdn.js new file mode 100644 index 000000000..b1adecb6a --- /dev/null +++ b/node_modules/date-fns/locale/fy/cdn.js @@ -0,0 +1,536 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/fy/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 1 sekonde", + other: "minder as {{count}} sekonden" + }, + xSeconds: { + one: "1 sekonde", + other: "{{count}} sekonden" + }, + halfAMinute: "oardel minút", + lessThanXMinutes: { + one: "minder as 1 minút", + other: "minder as {{count}} minuten" + }, + xMinutes: { + one: "1 minút", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "sawat 1 oere", + other: "sawat {{count}} oere" + }, + xHours: { + one: "1 oere", + other: "{{count}} oere" + }, + xDays: { + one: "1 dei", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "sawat 1 wike", + other: "sawat {{count}} wiken" + }, + xWeeks: { + one: "1 wike", + other: "{{count}} wiken" + }, + aboutXMonths: { + one: "sawat 1 moanne", + other: "sawat {{count}} moannen" + }, + xMonths: { + one: "1 moanne", + other: "{{count}} moannen" + }, + aboutXYears: { + one: "sawat 1 jier", + other: "sawat {{count}} jier" + }, + xYears: { + one: "1 jier", + other: "{{count}} jier" + }, + overXYears: { + one: "mear as 1 jier", + other: "mear as {{count}}s jier" + }, + almostXYears: { + one: "hast 1 jier", + other: "hast {{count}} jier" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "oer " + result;else + return result + " lyn"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/fy/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/fy/_lib/localize.js +var eraValues = { + narrow: ["f.K.", "n.K."], + abbreviated: ["f.Kr.", "n.Kr."], + wide: ["foar Kristus", "nei Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e fearnsjier", + "2e fearnsjier", + "3e fearnsjier", + "4e fearnsjier"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mai.", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "jannewaris", + "febrewaris", + "maart", + "april", + "maaie", + "juny", + "july", + "augustus", + "septimber", + "oktober", + "novimber", + "desimber"] + +}; +var dayValues = { + narrow: [ + "s", + "m", + "t", + "w", + "t", + "f", + "s"], + + short: [ + "si", + "mo", + "ti", + "wo", + "to", + "fr", + "so"], + + abbreviated: [ + "snein", + "moa", + "tii", + "woa", + "ton", + "fre", + "sneon"], + + wide: [ + "snein", + "moandei", + "tiisdei", + "woansdei", + "tongersdei", + "freed", + "sneon"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "middei", + morning: "moarns", + afternoon: "middeis", + evening: "jûns", + night: "nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "e"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/fy.js +/** +* @category Locales +* @summary Western Frisian locale (Netherlands). +* @language West Frisian +* @iso-639-2 fry +* @author Damon Asberg [@damon02](https://github.com/damon02) +*/ +var fy = { + code: "fy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)e?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^jan/i, + /^feb/i, + /^m(r|a)/i, + /^apr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^des/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^sn/i, + /^mo/i, + /^ti/i, + /^wo/i, + /^to/i, + /^fr/i, + /^sn/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/fy/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + fy: fy }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/cdn.min.js b/node_modules/date-fns/locale/fy/cdn.min.js new file mode 100644 index 000000000..4783d6da6 --- /dev/null +++ b/node_modules/date-fns/locale/fy/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`oer `+r:r+` lyn`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd-MM-y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'ôfrûne' eeee 'om' p`,yesterday:`'juster om' p`,today:`'hjoed om' p`,tomorrow:`'moarn om' p`,nextWeek:`eeee 'om' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`f.K.`,`n.K.`],abbreviated:[`f.Kr.`,`n.Kr.`],wide:[`foar Kristus`,`nei Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e fearnsjier`,`2e fearnsjier`,`3e fearnsjier`,`4e fearnsjier`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mai.`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`jannewaris`,`febrewaris`,`maart`,`april`,`maaie`,`juny`,`july`,`augustus`,`septimber`,`oktober`,`novimber`,`desimber`]},defaultWidth:`wide`}),day:f({values:{narrow:[`s`,`m`,`t`,`w`,`t`,`f`,`s`],short:[`si`,`mo`,`ti`,`wo`,`to`,`fr`,`so`],abbreviated:[`snein`,`moa`,`tii`,`woa`,`ton`,`fre`,`sneon`],wide:[`snein`,`moandei`,`tiisdei`,`woansdei`,`tongersdei`,`freed`,`sneon`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`middei`,morning:`moarns`,afternoon:`middeis`,evening:`jûns`,night:`nachts`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`fy`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{fy:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd.cjs b/node_modules/date-fns/locale/gd.cjs new file mode 100644 index 000000000..1656a89fe --- /dev/null +++ b/node_modules/date-fns/locale/gd.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.gd = void 0; +var _index = require("./gd/_lib/formatDistance.cjs"); +var _index2 = require("./gd/_lib/formatLong.cjs"); +var _index3 = require("./gd/_lib/formatRelative.cjs"); +var _index4 = require("./gd/_lib/localize.cjs"); +var _index5 = require("./gd/_lib/match.cjs"); + +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +const gd = (exports.gd = { + code: "gd", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/gd.d.cts b/node_modules/date-fns/locale/gd.d.cts new file mode 100644 index 000000000..83dccb0e0 --- /dev/null +++ b/node_modules/date-fns/locale/gd.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export declare const gd: Locale; diff --git a/node_modules/date-fns/locale/gd.d.ts b/node_modules/date-fns/locale/gd.d.ts new file mode 100644 index 000000000..83dccb0e0 --- /dev/null +++ b/node_modules/date-fns/locale/gd.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export declare const gd: Locale; diff --git a/node_modules/date-fns/locale/gd.js b/node_modules/date-fns/locale/gd.js new file mode 100644 index 000000000..befe339e5 --- /dev/null +++ b/node_modules/date-fns/locale/gd.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./gd/_lib/formatDistance.js"; +import { formatLong } from "./gd/_lib/formatLong.js"; +import { formatRelative } from "./gd/_lib/formatRelative.js"; +import { localize } from "./gd/_lib/localize.js"; +import { match } from "./gd/_lib/match.js"; + +/** + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) + */ +export const gd = { + code: "gd", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default gd; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs new file mode 100644 index 000000000..6f042c07c --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.cjs @@ -0,0 +1,115 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan", + }, + + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan", + }, + + halfAMinute: "leth mhionaid", + + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean", + }, + + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean", + }, + + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde", + }, + + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde", + }, + + xDays: { + one: "1 là", + other: "{{count}} là", + }, + + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean", + }, + + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean", + }, + + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan", + }, + + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan", + }, + + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean", + }, + + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna", + }, + + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean", + }, + + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ann an " + result; + } else { + return "o chionn " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance.js b/node_modules/date-fns/locale/gd/_lib/formatDistance.js new file mode 100644 index 000000000..dcfd7ad6b --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance.js @@ -0,0 +1,111 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan", + }, + + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan", + }, + + halfAMinute: "leth mhionaid", + + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean", + }, + + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean", + }, + + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde", + }, + + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde", + }, + + xDays: { + one: "1 là", + other: "{{count}} là", + }, + + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean", + }, + + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean", + }, + + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan", + }, + + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan", + }, + + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean", + }, + + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna", + }, + + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean", + }, + + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ann an " + result; + } else { + return "o chionn " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.cjs b/node_modules/date-fns/locale/gd/_lib/formatLong.cjs new file mode 100644 index 000000000..86cb3d9fb --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong.js b/node_modules/date-fns/locale/gd/_lib/formatLong.js new file mode 100644 index 000000000..f1201e1a2 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs new file mode 100644 index 000000000..7505c98d1 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative.js b/node_modules/date-fns/locale/gd/_lib/formatRelative.js new file mode 100644 index 000000000..cc66ae995 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.cjs b/node_modules/date-fns/locale/gd/_lib/localize.cjs new file mode 100644 index 000000000..2930c81c6 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.cjs @@ -0,0 +1,189 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["C1", "C2", "C3", "C4"], + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal", + ], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["F", "G", "M", "G", "C", "Ò", "I", "L", "S", "D", "S", "D"], + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh", + ], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "C", "A", "H", "S"], + short: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"], + abbreviated: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "d"; + case 2: + return number + "na"; + } + } + + if (rem100 === 12) { + return number + "na"; + } + + return number + "mh"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/localize.d.cts b/node_modules/date-fns/locale/gd/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.d.ts b/node_modules/date-fns/locale/gd/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gd/_lib/localize.js b/node_modules/date-fns/locale/gd/_lib/localize.js new file mode 100644 index 000000000..d6881e0cc --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize.js @@ -0,0 +1,187 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["C1", "C2", "C3", "C4"], + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal", + ], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["F", "G", "M", "G", "C", "Ò", "I", "L", "S", "D", "S", "D"], + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh", + ], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "C", "A", "H", "S"], + short: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"], + abbreviated: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "d"; + case 2: + return number + "na"; + } + } + + if (rem100 === 12) { + return number + "na"; + } + + return number + "mh"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gd/_lib/match.cjs b/node_modules/date-fns/locale/gd/_lib/match.cjs new file mode 100644 index 000000000..0d35a7756 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i, + ], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gd/_lib/match.d.cts b/node_modules/date-fns/locale/gd/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gd/_lib/match.d.ts b/node_modules/date-fns/locale/gd/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gd/_lib/match.js b/node_modules/date-fns/locale/gd/_lib/match.js new file mode 100644 index 000000000..6912fe001 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i, + ], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gd/cdn.js b/node_modules/date-fns/locale/gd/cdn.js new file mode 100644 index 000000000..fbdbad741 --- /dev/null +++ b/node_modules/date-fns/locale/gd/cdn.js @@ -0,0 +1,588 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gd/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "nas lugha na diog", + other: "nas lugha na {{count}} diogan" + }, + xSeconds: { + one: "1 diog", + two: "2 dhiog", + twenty: "20 diog", + other: "{{count}} diogan" + }, + halfAMinute: "leth mhionaid", + lessThanXMinutes: { + one: "nas lugha na mionaid", + other: "nas lugha na {{count}} mionaidean" + }, + xMinutes: { + one: "1 mionaid", + two: "2 mhionaid", + twenty: "20 mionaid", + other: "{{count}} mionaidean" + }, + aboutXHours: { + one: "mu uair de thìde", + other: "mu {{count}} uairean de thìde" + }, + xHours: { + one: "1 uair de thìde", + two: "2 uair de thìde", + twenty: "20 uair de thìde", + other: "{{count}} uairean de thìde" + }, + xDays: { + one: "1 là", + other: "{{count}} là" + }, + aboutXWeeks: { + one: "mu 1 seachdain", + other: "mu {{count}} seachdainean" + }, + xWeeks: { + one: "1 seachdain", + other: "{{count}} seachdainean" + }, + aboutXMonths: { + one: "mu mhìos", + other: "mu {{count}} mìosan" + }, + xMonths: { + one: "1 mìos", + other: "{{count}} mìosan" + }, + aboutXYears: { + one: "mu bhliadhna", + other: "mu {{count}} bliadhnaichean" + }, + xYears: { + one: "1 bhliadhna", + other: "{{count}} bliadhna" + }, + overXYears: { + one: "còrr is bliadhna", + other: "còrr is {{count}} bliadhnaichean" + }, + almostXYears: { + one: "cha mhòr bliadhna", + other: "cha mhòr {{count}} bliadhnaichean" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2 && !!tokenValue.two) result = tokenValue.two;else + if (count === 20 && !!tokenValue.twenty) result = tokenValue.twenty;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "ann an " + result;else + return "o chionn " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gd/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gd/_lib/localize.js +var eraValues = { + narrow: ["R", "A"], + abbreviated: ["RC", "AD"], + wide: ["ro Chrìosta", "anno domini"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "C1", + "C2", + "C3", + "C4"], + + wide: [ + "a' chiad chairteal", + "an dàrna cairteal", + "an treas cairteal", + "an ceathramh cairteal"] + +}; +var monthValues = { + narrow: [ + "F", + "G", + "M", + "G", + "C", + "Ò", + "I", + "L", + "S", + "D", + "S", + "D"], + + abbreviated: [ + "Faoi", + "Gear", + "Màrt", + "Gibl", + "Cèit", + "Ògmh", + "Iuch", + "Lùn", + "Sult", + "Dàmh", + "Samh", + "Dùbh"], + + wide: [ + "Am Faoilleach", + "An Gearran", + "Am Màrt", + "An Giblean", + "An Cèitean", + "An t-Ògmhios", + "An t-Iuchar", + "An Lùnastal", + "An t-Sultain", + "An Dàmhair", + "An t-Samhain", + "An Dùbhlachd"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "C", + "A", + "H", + "S"], + + short: [ + "Dò", + "Lu", + "Mà", + "Ci", + "Ar", + "Ha", + "Sa"], + + abbreviated: [ + "Did", + "Dil", + "Dim", + "Dic", + "Dia", + "Dih", + "Dis"], + + wide: [ + "Didòmhnaich", + "Diluain", + "Dimàirt", + "Diciadain", + "Diardaoin", + "Dihaoine", + "Disathairne"] + +}; +var dayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "madainn", + afternoon: "feasgar", + evening: "feasgar", + night: "oidhche" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m", + pm: "f", + midnight: "m.o.", + noon: "m.l.", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + }, + abbreviated: { + am: "M.", + pm: "F.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + }, + wide: { + am: "m.", + pm: "f.", + midnight: "meadhan oidhche", + noon: "meadhan là", + morning: "sa mhadainn", + afternoon: "feasgar", + evening: "feasgar", + night: "air an oidhche" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "d"; + case 2:return number + "na"; + } + if (rem100 === 12) return number + "na"; + return number + "mh"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gd.js +/** +* @category Locales +* @summary Scottish Gaelic. +* @language Scottish Gaelic +* @iso-639-2 gla +* @author Lee Driscoll [@leedriscoll](https://github.com/leedriscoll) +*/ +var gd = { + code: "gd", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(d|na|tr|mh)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^f/i, + /^g/i, + /^m/i, + /^g/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^s/i, + /^d/i, + /^s/i, + /^d/i], + + any: [ + /^fa/i, + /^ge/i, + /^mà/i, + /^gi/i, + /^c/i, + /^ò/i, + /^i/i, + /^l/i, + /^su/i, + /^d/i, + /^sa/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^c/i, + /^a/i, + /^h/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^m/i, + /^c/i, + /^a/i, + /^h/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gd/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gd: gd }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/cdn.min.js b/node_modules/date-fns/locale/gd/cdn.min.js new file mode 100644 index 000000000..f9bb03f3a --- /dev/null +++ b/node_modules/date-fns/locale/gd/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`ann an `+r:`o chionn `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'aig' {{time}}`,long:`{{date}} 'aig' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'mu dheireadh' eeee 'aig' p`,yesterday:`'an-dè aig' p`,today:`'an-diugh aig' p`,tomorrow:`'a-màireach aig' p`,nextWeek:`eeee 'aig' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+`d`;case 2:return t+`na`}return n===12?t+`na`:t+`mh`},era:f({values:{narrow:[`R`,`A`],abbreviated:[`RC`,`AD`],wide:[`ro Chrìosta`,`anno domini`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`C1`,`C2`,`C3`,`C4`],wide:[`a' chiad chairteal`,`an dàrna cairteal`,`an treas cairteal`,`an ceathramh cairteal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`F`,`G`,`M`,`G`,`C`,`Ò`,`I`,`L`,`S`,`D`,`S`,`D`],abbreviated:[`Faoi`,`Gear`,`Màrt`,`Gibl`,`Cèit`,`Ògmh`,`Iuch`,`Lùn`,`Sult`,`Dàmh`,`Samh`,`Dùbh`],wide:[`Am Faoilleach`,`An Gearran`,`Am Màrt`,`An Giblean`,`An Cèitean`,`An t-Ògmhios`,`An t-Iuchar`,`An Lùnastal`,`An t-Sultain`,`An Dàmhair`,`An t-Samhain`,`An Dùbhlachd`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`C`,`A`,`H`,`S`],short:[`Dò`,`Lu`,`Mà`,`Ci`,`Ar`,`Ha`,`Sa`],abbreviated:[`Did`,`Dil`,`Dim`,`Dic`,`Dia`,`Dih`,`Dis`],wide:[`Didòmhnaich`,`Diluain`,`Dimàirt`,`Diciadain`,`Diardaoin`,`Dihaoine`,`Disathairne`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`madainn`,afternoon:`feasgar`,evening:`feasgar`,night:`oidhche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`m`,pm:`f`,midnight:`m.o.`,noon:`m.l.`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},abbreviated:{am:`M.`,pm:`F.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`},wide:{am:`m.`,pm:`f.`,midnight:`meadhan oidhche`,noon:`meadhan là`,morning:`sa mhadainn`,afternoon:`feasgar`,evening:`feasgar`,night:`air an oidhche`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`gd`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gd:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl.cjs b/node_modules/date-fns/locale/gl.cjs new file mode 100644 index 000000000..7ae8f4dba --- /dev/null +++ b/node_modules/date-fns/locale/gl.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.gl = void 0; +var _index = require("./gl/_lib/formatDistance.cjs"); +var _index2 = require("./gl/_lib/formatLong.cjs"); +var _index3 = require("./gl/_lib/formatRelative.cjs"); +var _index4 = require("./gl/_lib/localize.cjs"); +var _index5 = require("./gl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +const gl = (exports.gl = { + code: "gl", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/gl.d.cts b/node_modules/date-fns/locale/gl.d.cts new file mode 100644 index 000000000..029b33685 --- /dev/null +++ b/node_modules/date-fns/locale/gl.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export declare const gl: Locale; diff --git a/node_modules/date-fns/locale/gl.d.ts b/node_modules/date-fns/locale/gl.d.ts new file mode 100644 index 000000000..029b33685 --- /dev/null +++ b/node_modules/date-fns/locale/gl.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export declare const gl: Locale; diff --git a/node_modules/date-fns/locale/gl.js b/node_modules/date-fns/locale/gl.js new file mode 100644 index 000000000..012d8f329 --- /dev/null +++ b/node_modules/date-fns/locale/gl.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./gl/_lib/formatDistance.js"; +import { formatLong } from "./gl/_lib/formatLong.js"; +import { formatRelative } from "./gl/_lib/formatRelative.js"; +import { localize } from "./gl/_lib/localize.js"; +import { match } from "./gl/_lib/match.js"; + +/** + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) + * @author Fidel Pita [@fidelpita](https://github.com/fidelpita) + */ +export const gl = { + code: "gl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default gl; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs new file mode 100644 index 000000000..17ef4c388 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos", + }, + + almostXYears: { + one: "case un ano", + other: "case {{count}} anos", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hai " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance.js b/node_modules/date-fns/locale/gl/_lib/formatDistance.js new file mode 100644 index 000000000..de2ee1333 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "medio minuto", + + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 día", + other: "{{count}} días", + }, + + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos", + }, + + almostXYears: { + one: "case un ano", + other: "case {{count}} anos", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "en " + result; + } else { + return "hai " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.cjs b/node_modules/date-fns/locale/gl/_lib/formatLong.cjs new file mode 100644 index 000000000..36497d868 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong.js b/node_modules/date-fns/locale/gl/_lib/formatLong.js new file mode 100644 index 000000000..2eb5d65d8 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs new file mode 100644 index 000000000..7a0dafa66 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative.js b/node_modules/date-fns/locale/gl/_lib/formatRelative.js new file mode 100644 index 000000000..ba03e71b1 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative.js @@ -0,0 +1,24 @@ +const formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P", +}; + +const formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + if (date.getHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.cjs b/node_modules/date-fns/locale/gl/_lib/localize.cjs new file mode 100644 index 000000000..ef02aca26 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.cjs @@ -0,0 +1,158 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec", + ], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "me", "xo", "ve", "sa"], + abbreviated: ["dom", "lun", "mar", "mer", "xov", "ven", "sab"], + wide: ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/localize.d.cts b/node_modules/date-fns/locale/gl/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.d.ts b/node_modules/date-fns/locale/gl/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gl/_lib/localize.js b/node_modules/date-fns/locale/gl/_lib/localize.js new file mode 100644 index 000000000..df8360a3b --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize.js @@ -0,0 +1,156 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec", + ], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["do", "lu", "ma", "me", "xo", "ve", "sa"], + abbreviated: ["dom", "lun", "mar", "mer", "xov", "ven", "sab"], + wide: ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gl/_lib/match.cjs b/node_modules/date-fns/locale/gl/_lib/match.cjs new file mode 100644 index 000000000..24ae7417b --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era com[uú]n)/i, + /^(despois de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gl/_lib/match.d.cts b/node_modules/date-fns/locale/gl/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gl/_lib/match.d.ts b/node_modules/date-fns/locale/gl/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gl/_lib/match.js b/node_modules/date-fns/locale/gl/_lib/match.js new file mode 100644 index 000000000..d41ea3012 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match.js @@ -0,0 +1,136 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era com[uú]n)/i, + /^(despois de cristo|era com[uú]n)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gl/cdn.js b/node_modules/date-fns/locale/gl/cdn.js new file mode 100644 index 000000000..b6192e52a --- /dev/null +++ b/node_modules/date-fns/locale/gl/cdn.js @@ -0,0 +1,588 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos dun segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "medio minuto", + lessThanXMinutes: { + one: "menos dun minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "arredor dunha hora", + other: "arredor de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 día", + other: "{{count}} días" + }, + aboutXWeeks: { + one: "arredor dunha semana", + other: "arredor de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "arredor de 1 mes", + other: "arredor de {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "arredor dun ano", + other: "arredor de {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "máis dun ano", + other: "máis de {{count}} anos" + }, + almostXYears: { + one: "case un ano", + other: "case {{count}} anos" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "en " + result;else + return "hai " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: "P" +}; +var formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getHours() !== 1) return formatRelativeLocalePlural[token]; + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gl/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "despois de cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "e", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "xan", + "feb", + "mar", + "abr", + "mai", + "xun", + "xul", + "ago", + "set", + "out", + "nov", + "dec"], + + wide: [ + "xaneiro", + "febreiro", + "marzo", + "abril", + "maio", + "xuño", + "xullo", + "agosto", + "setembro", + "outubro", + "novembro", + "decembro"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "do", + "lu", + "ma", + "me", + "xo", + "ve", + "sa"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "xov", + "ven", + "sab"], + + wide: [ + "domingo", + "luns", + "martes", + "mércores", + "xoves", + "venres", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "mañá", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "mañá", + afternoon: "tarde", + evening: "tardiña", + night: "noite" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "medianoite", + noon: "mediodía", + morning: "da mañá", + afternoon: "da tarde", + evening: "da tardiña", + night: "da noite" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gl.js +/** +* @category Locales +* @summary Galician locale. +* @language Galician +* @iso-639-2 glg +* @author Alberto Doval - Cocodin Technology[@cocodinTech](https://github.com/cocodinTech) +* @author Fidel Pita [@fidelpita](https://github.com/fidelpita) +*/ +var gl = { + code: "gl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era com[uú]n)/i, /^(despois de cristo|era com[uú]n)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^x/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^x/i, + /^x/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^xan/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^xun/i, + /^xul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dec/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^x/i, + /^v/i, + /^s/i], + + any: [ + /^do/i, + /^lu/i, + /^ma/i, + /^me/i, + /^xo/i, + /^ve/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gl/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gl: gl }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/cdn.min.js b/node_modules/date-fns/locale/gl/cdn.min.js new file mode 100644 index 000000000..6c14751a3 --- /dev/null +++ b/node_modules/date-fns/locale/gl/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`en `+r:`hai `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'ás' {{time}}`,long:`{{date}} 'ás' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'o' eeee 'pasado á' LT`,yesterday:`'onte á' p`,today:`'hoxe á' p`,tomorrow:`'mañá á' p`,nextWeek:`eeee 'á' p`,other:`P`},d={lastWeek:`'o' eeee 'pasado ás' p`,yesterday:`'onte ás' p`,today:`'hoxe ás' p`,tomorrow:`'mañá ás' p`,nextWeek:`eeee 'ás' p`,other:`P`},f=function(e,t,n,r){return t.getHours()===1?u[e]:d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`º`},era:p({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`despois de cristo`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`xan`,`feb`,`mar`,`abr`,`mai`,`xun`,`xul`,`ago`,`set`,`out`,`nov`,`dec`],wide:[`xaneiro`,`febreiro`,`marzo`,`abril`,`maio`,`xuño`,`xullo`,`agosto`,`setembro`,`outubro`,`novembro`,`decembro`]},defaultWidth:`wide`}),day:p({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`me`,`xo`,`ve`,`sa`],abbreviated:[`dom`,`lun`,`mar`,`mer`,`xov`,`ven`,`sab`],wide:[`domingo`,`luns`,`martes`,`mércores`,`xoves`,`venres`,`sábado`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañá`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`mañá`,afternoon:`tarde`,evening:`tardiña`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoite`,noon:`mediodía`,morning:`da mañá`,afternoon:`da tarde`,evening:`da tardiña`,night:`da noite`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`gl`,formatDistance:s,formatLong:l,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gl:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu.cjs b/node_modules/date-fns/locale/gu.cjs new file mode 100644 index 000000000..3b17f4528 --- /dev/null +++ b/node_modules/date-fns/locale/gu.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.gu = void 0; +var _index = require("./gu/_lib/formatDistance.cjs"); +var _index2 = require("./gu/_lib/formatLong.cjs"); +var _index3 = require("./gu/_lib/formatRelative.cjs"); +var _index4 = require("./gu/_lib/localize.cjs"); +var _index5 = require("./gu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +const gu = (exports.gu = { + code: "gu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/gu.d.cts b/node_modules/date-fns/locale/gu.d.cts new file mode 100644 index 000000000..37afaf213 --- /dev/null +++ b/node_modules/date-fns/locale/gu.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export declare const gu: Locale; diff --git a/node_modules/date-fns/locale/gu.d.ts b/node_modules/date-fns/locale/gu.d.ts new file mode 100644 index 000000000..37afaf213 --- /dev/null +++ b/node_modules/date-fns/locale/gu.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export declare const gu: Locale; diff --git a/node_modules/date-fns/locale/gu.js b/node_modules/date-fns/locale/gu.js new file mode 100644 index 000000000..56d963312 --- /dev/null +++ b/node_modules/date-fns/locale/gu.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./gu/_lib/formatDistance.js"; +import { formatLong } from "./gu/_lib/formatLong.js"; +import { formatRelative } from "./gu/_lib/formatRelative.js"; +import { localize } from "./gu/_lib/localize.js"; +import { match } from "./gu/_lib/match.js"; + +/** + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM](https://github.com/manadaym) + */ +export const gu = { + code: "gu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default gu; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs new file mode 100644 index 000000000..b1f823922 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.cjs @@ -0,0 +1,106 @@ +"use strict"; +exports.formatDistance = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", // CLDR #1461 + other: "​આશરે {{count}} સેકંડ", + }, + + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ", + }, + + halfAMinute: "અડધી મિનિટ", + + lessThanXMinutes: { + one: "આ મિનિટ", // CLDR #1448 + other: "​આશરે {{count}} મિનિટ", + }, + + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ", + }, + + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક", + }, + + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક", + }, + + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ", + }, + + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા", + }, + + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા", + }, + + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના", + }, + + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના", + }, + + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ", + }, + + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ", + }, + + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ", + }, + + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "માં"; + } else { + return result + " પહેલાં"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance.js b/node_modules/date-fns/locale/gu/_lib/formatDistance.js new file mode 100644 index 000000000..44bb8383d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance.js @@ -0,0 +1,102 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", // CLDR #1461 + other: "​આશરે {{count}} સેકંડ", + }, + + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ", + }, + + halfAMinute: "અડધી મિનિટ", + + lessThanXMinutes: { + one: "આ મિનિટ", // CLDR #1448 + other: "​આશરે {{count}} મિનિટ", + }, + + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ", + }, + + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક", + }, + + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક", + }, + + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ", + }, + + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા", + }, + + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા", + }, + + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના", + }, + + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના", + }, + + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ", + }, + + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ", + }, + + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ", + }, + + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "માં"; + } else { + return result + " પહેલાં"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.cjs b/node_modules/date-fns/locale/gu/_lib/formatLong.cjs new file mode 100644 index 000000000..05b27776e --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const dateFormats = { + full: "EEEE, d MMMM, y", // CLDR #1825 + long: "d MMMM, y", // CLDR #1826 + medium: "d MMM, y", // CLDR #1827 + short: "d/M/yy", // CLDR #1828 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR #1829 + long: "hh:mm:ss a z", // CLDR #1830 + medium: "hh:mm:ss a", // CLDR #1831 + short: "hh:mm a", // CLDR #1832 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR #1833 + long: "{{date}} {{time}}", // CLDR #1834 + medium: "{{date}} {{time}}", // CLDR #1835 + short: "{{date}} {{time}}", // CLDR #1836 +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong.js b/node_modules/date-fns/locale/gu/_lib/formatLong.js new file mode 100644 index 000000000..b2481ee94 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong.js @@ -0,0 +1,40 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +const dateFormats = { + full: "EEEE, d MMMM, y", // CLDR #1825 + long: "d MMMM, y", // CLDR #1826 + medium: "d MMM, y", // CLDR #1827 + short: "d/M/yy", // CLDR #1828 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR #1829 + long: "hh:mm:ss a z", // CLDR #1830 + medium: "hh:mm:ss a", // CLDR #1831 + short: "hh:mm a", // CLDR #1832 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR #1833 + long: "{{date}} {{time}}", // CLDR #1834 + medium: "{{date}} {{time}}", // CLDR #1835 + short: "{{date}} {{time}}", // CLDR #1836 +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs new file mode 100644 index 000000000..bc1f10400 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.cjs @@ -0,0 +1,17 @@ +"use strict"; +exports.formatRelative = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html + +const formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", // CLDR #1384 + yesterday: "'ગઈકાલે' p", // CLDR #1409 + today: "'આજે' p", // CLDR #1410 + tomorrow: "'આવતીકાલે' p", // CLDR #1411 + nextWeek: "eeee p", // CLDR #1386 + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative.js b/node_modules/date-fns/locale/gu/_lib/formatRelative.js new file mode 100644 index 000000000..0842e0860 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative.js @@ -0,0 +1,13 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html + +const formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", // CLDR #1384 + yesterday: "'ગઈકાલે' p", // CLDR #1409 + today: "'આજે' p", // CLDR #1410 + tomorrow: "'આવતીકાલે' p", // CLDR #1411 + nextWeek: "eeee p", // CLDR #1386 + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.cjs b/node_modules/date-fns/locale/gu/_lib/localize.cjs new file mode 100644 index 000000000..3a6ce654d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.cjs @@ -0,0 +1,181 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 +const eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1લો ત્રિમાસ", "2જો ત્રિમાસ", "3જો ત્રિમાસ", "4થો ત્રિમાસ"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 +const monthValues = { + narrow: ["જા", "ફે", "મા", "એ", "મે", "જૂ", "જુ", "ઓ", "સ", "ઓ", "ન", "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે", + ], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 +const dayValues = { + narrow: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + short: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + abbreviated: ["રવિ", "સોમ", "મંગળ", "બુધ", "ગુરુ", "શુક્ર", "શનિ"], + wide: [ + "રવિવાર" /* Sunday */, + "સોમવાર" /* Monday */, + "મંગળવાર" /* Tuesday */, + "બુધવાર" /* Wednesday */, + "ગુરુવાર" /* Thursday */, + "શુક્રવાર" /* Friday */, + "શનિવાર" /* Saturday */, + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/localize.d.cts b/node_modules/date-fns/locale/gu/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.d.ts b/node_modules/date-fns/locale/gu/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/gu/_lib/localize.js b/node_modules/date-fns/locale/gu/_lib/localize.js new file mode 100644 index 000000000..4631b5e6e --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize.js @@ -0,0 +1,179 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 +const eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1લો ત્રિમાસ", "2જો ત્રિમાસ", "3જો ત્રિમાસ", "4થો ત્રિમાસ"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 +const monthValues = { + narrow: ["જા", "ફે", "મા", "એ", "મે", "જૂ", "જુ", "ઓ", "સ", "ઓ", "ન", "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે", + ], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 +const dayValues = { + narrow: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + short: ["ર", "સો", "મં", "બુ", "ગુ", "શુ", "શ"], + abbreviated: ["રવિ", "સોમ", "મંગળ", "બુધ", "ગુરુ", "શુક્ર", "શનિ"], + wide: [ + "રવિવાર" /* Sunday */, + "સોમવાર" /* Monday */, + "મંગળવાર" /* Tuesday */, + "બુધવાર" /* Wednesday */, + "ગુરુવાર" /* Thursday */, + "શુક્રવાર" /* Friday */, + "શનિવાર" /* Saturday */, + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/gu/_lib/match.cjs b/node_modules/date-fns/locale/gu/_lib/match.cjs new file mode 100644 index 000000000..7c47b98e7 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i, +}; +const parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: + /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i, +}; +const parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/gu/_lib/match.d.cts b/node_modules/date-fns/locale/gu/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gu/_lib/match.d.ts b/node_modules/date-fns/locale/gu/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/gu/_lib/match.js b/node_modules/date-fns/locale/gu/_lib/match.js new file mode 100644 index 000000000..2c27a240a --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i, +}; +const parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: + /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i, +}; +const parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/gu/cdn.js b/node_modules/date-fns/locale/gu/cdn.js new file mode 100644 index 000000000..eb3667a31 --- /dev/null +++ b/node_modules/date-fns/locale/gu/cdn.js @@ -0,0 +1,573 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/gu/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "હમણાં", + other: "​આશરે {{count}} સેકંડ" + }, + xSeconds: { + one: "1 સેકંડ", + other: "{{count}} સેકંડ" + }, + halfAMinute: "અડધી મિનિટ", + lessThanXMinutes: { + one: "આ મિનિટ", + other: "​આશરે {{count}} મિનિટ" + }, + xMinutes: { + one: "1 મિનિટ", + other: "{{count}} મિનિટ" + }, + aboutXHours: { + one: "​આશરે 1 કલાક", + other: "​આશરે {{count}} કલાક" + }, + xHours: { + one: "1 કલાક", + other: "{{count}} કલાક" + }, + xDays: { + one: "1 દિવસ", + other: "{{count}} દિવસ" + }, + aboutXWeeks: { + one: "આશરે 1 અઠવાડિયું", + other: "આશરે {{count}} અઠવાડિયા" + }, + xWeeks: { + one: "1 અઠવાડિયું", + other: "{{count}} અઠવાડિયા" + }, + aboutXMonths: { + one: "આશરે 1 મહિનો", + other: "આશરે {{count}} મહિના" + }, + xMonths: { + one: "1 મહિનો", + other: "{{count}} મહિના" + }, + aboutXYears: { + one: "આશરે 1 વર્ષ", + other: "આશરે {{count}} વર્ષ" + }, + xYears: { + one: "1 વર્ષ", + other: "{{count}} વર્ષ" + }, + overXYears: { + one: "1 વર્ષથી વધુ", + other: "{{count}} વર્ષથી વધુ" + }, + almostXYears: { + one: "લગભગ 1 વર્ષ", + other: "લગભગ {{count}} વર્ષ" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + "માં";else + return result + " પહેલાં"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "hh:mm:ss a zzzz", + long: "hh:mm:ss a z", + medium: "hh:mm:ss a", + short: "hh:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/gu/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", + yesterday: "'ગઈકાલે' p", + today: "'આજે' p", + tomorrow: "'આવતીકાલે' p", + nextWeek: "eeee p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/gu/_lib/localize.js +var eraValues = { + narrow: ["ઈસપૂ", "ઈસ"], + abbreviated: ["ઈ.સ.પૂર્વે", "ઈ.સ."], + wide: ["ઈસવીસન પૂર્વે", "ઈસવીસન"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1લો ત્રિમાસ", + "2જો ત્રિમાસ", + "3જો ત્રિમાસ", + "4થો ત્રિમાસ"] + +}; +var monthValues = { + narrow: [ + "જા", + "ફે", + "મા", + "એ", + "મે", + "જૂ", + "જુ", + "ઓ", + "સ", + "ઓ", + "ન", + "ડિ"], + + abbreviated: [ + "જાન્યુ", + "ફેબ્રુ", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઈ", + "ઑગસ્ટ", + "સપ્ટે", + "ઓક્ટો", + "નવે", + "ડિસે"], + + wide: [ + "જાન્યુઆરી", + "ફેબ્રુઆરી", + "માર્ચ", + "એપ્રિલ", + "મે", + "જૂન", + "જુલાઇ", + "ઓગસ્ટ", + "સપ્ટેમ્બર", + "ઓક્ટોબર", + "નવેમ્બર", + "ડિસેમ્બર"] + +}; +var dayValues = { + narrow: [ + "ર", + "સો", + "મં", + "બુ", + "ગુ", + "શુ", + "શ"], + + short: [ + "ર", + "સો", + "મં", + "બુ", + "ગુ", + "શુ", + "શ"], + + abbreviated: [ + "રવિ", + "સોમ", + "મંગળ", + "બુધ", + "ગુરુ", + "શુક્ર", + "શનિ"], + + wide: [ + "રવિવાર", + "સોમવાર", + "મંગળવાર", + "બુધવાર", + "ગુરુવાર", + "શુક્રવાર", + "શનિવાર"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બ.", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "મ.રાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "​મધ્યરાત્રિ", + noon: "બપોરે", + morning: "સવારે", + afternoon: "બપોરે", + evening: "સાંજે", + night: "રાત્રે" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/gu.js +/** +* @category Locales +* @summary Gujarati locale (India). +* @language Gujarati +* @iso-639-2 guj +* @author Manaday Mavani [@ManadayM](https://github.com/manadaym) +*/ +var gu = { + code: "gu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ઈસપૂ/i, /^ઈસ/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i], + + any: [ + /^જા/i, + /^ફે/i, + /^મા/i, + /^એ/i, + /^મે/i, + /^જૂ/i, + /^જુ/i, + /^ઑગ/i, + /^સ/i, + /^ઓક્ટો/i, + /^ન/i, + /^ડિ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ર/i, + /^સો/i, + /^મં/i, + /^બુ/i, + /^ગુ/i, + /^શુ/i, + /^શ/i], + + any: [ + /^ર/i, + /^સો/i, + /^મં/i, + /^બુ/i, + /^ગુ/i, + /^શુ/i, + /^શ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/gu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + gu: gu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/cdn.min.js b/node_modules/date-fns/locale/gu/cdn.min.js new file mode 100644 index 000000000..794ed9a87 --- /dev/null +++ b/node_modules/date-fns/locale/gu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`માં`:r+` પહેલાં`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:c({formats:{full:`hh:mm:ss a zzzz`,long:`hh:mm:ss a z`,medium:`hh:mm:ss a`,short:`hh:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'પાછલા' eeee p`,yesterday:`'ગઈકાલે' p`,today:`'આજે' p`,tomorrow:`'આવતીકાલે' p`,nextWeek:`eeee p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`ઈસપૂ`,`ઈસ`],abbreviated:[`ઈ.સ.પૂર્વે`,`ઈ.સ.`],wide:[`ઈસવીસન પૂર્વે`,`ઈસવીસન`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1લો ત્રિમાસ`,`2જો ત્રિમાસ`,`3જો ત્રિમાસ`,`4થો ત્રિમાસ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`જા`,`ફે`,`મા`,`એ`,`મે`,`જૂ`,`જુ`,`ઓ`,`સ`,`ઓ`,`ન`,`ડિ`],abbreviated:[`જાન્યુ`,`ફેબ્રુ`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઈ`,`ઑગસ્ટ`,`સપ્ટે`,`ઓક્ટો`,`નવે`,`ડિસે`],wide:[`જાન્યુઆરી`,`ફેબ્રુઆરી`,`માર્ચ`,`એપ્રિલ`,`મે`,`જૂન`,`જુલાઇ`,`ઓગસ્ટ`,`સપ્ટેમ્બર`,`ઓક્ટોબર`,`નવેમ્બર`,`ડિસેમ્બર`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],short:[`ર`,`સો`,`મં`,`બુ`,`ગુ`,`શુ`,`શ`],abbreviated:[`રવિ`,`સોમ`,`મંગળ`,`બુધ`,`ગુરુ`,`શુક્ર`,`શનિ`],wide:[`રવિવાર`,`સોમવાર`,`મંગળવાર`,`બુધવાર`,`ગુરુવાર`,`શુક્રવાર`,`શનિવાર`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બ.`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`મ.રાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},abbreviated:{am:`AM`,pm:`PM`,midnight:`મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`},wide:{am:`AM`,pm:`PM`,midnight:`​મધ્યરાત્રિ`,noon:`બપોરે`,morning:`સવારે`,afternoon:`બપોરે`,evening:`સાંજે`,night:`રાત્રે`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`gu`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{gu:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/he.cjs b/node_modules/date-fns/locale/he.cjs new file mode 100644 index 000000000..507222122 --- /dev/null +++ b/node_modules/date-fns/locale/he.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.he = void 0; +var _index = require("./he/_lib/formatDistance.cjs"); +var _index2 = require("./he/_lib/formatLong.cjs"); +var _index3 = require("./he/_lib/formatRelative.cjs"); +var _index4 = require("./he/_lib/localize.cjs"); +var _index5 = require("./he/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +const he = (exports.he = { + code: "he", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/he.d.cts b/node_modules/date-fns/locale/he.d.cts new file mode 100644 index 000000000..bcccf7e9a --- /dev/null +++ b/node_modules/date-fns/locale/he.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export declare const he: Locale; diff --git a/node_modules/date-fns/locale/he.d.ts b/node_modules/date-fns/locale/he.d.ts new file mode 100644 index 000000000..bcccf7e9a --- /dev/null +++ b/node_modules/date-fns/locale/he.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export declare const he: Locale; diff --git a/node_modules/date-fns/locale/he.js b/node_modules/date-fns/locale/he.js new file mode 100644 index 000000000..62db49e11 --- /dev/null +++ b/node_modules/date-fns/locale/he.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./he/_lib/formatDistance.js"; +import { formatLong } from "./he/_lib/formatLong.js"; +import { formatRelative } from "./he/_lib/formatRelative.js"; +import { localize } from "./he/_lib/localize.js"; +import { match } from "./he/_lib/match.js"; + +/** + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah](https://github.com/nirlah) + */ +export const he = { + code: "he", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default he; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.cjs b/node_modules/date-fns/locale/he/_lib/formatDistance.cjs new file mode 100644 index 000000000..0e30cbe30 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות", + }, + + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות", + }, + + halfAMinute: "חצי דקה", + + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות", + }, + + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות", + }, + + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות", + }, + + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות", + }, + + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים", + }, + + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות", + }, + + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות", + }, + + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים", + }, + + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים", + }, + + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים", + }, + + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים", + }, + + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים", + }, + + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים", + }, +}; + +const formatDistance = (token, count, options) => { + // Return word instead of `in one day` or `one day ago` + if (token === "xDays" && options?.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? "מחר" : "מחרתיים"; + } + + return count === 1 ? "אתמול" : "שלשום"; + } + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "בעוד " + result; + } else { + return "לפני " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance.js b/node_modules/date-fns/locale/he/_lib/formatDistance.js new file mode 100644 index 000000000..7d0b655e3 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance.js @@ -0,0 +1,127 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות", + }, + + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות", + }, + + halfAMinute: "חצי דקה", + + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות", + }, + + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות", + }, + + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות", + }, + + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות", + }, + + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים", + }, + + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות", + }, + + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות", + }, + + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים", + }, + + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים", + }, + + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים", + }, + + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים", + }, + + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים", + }, + + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים", + }, +}; + +export const formatDistance = (token, count, options) => { + // Return word instead of `in one day` or `one day ago` + if (token === "xDays" && options?.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? "מחר" : "מחרתיים"; + } + + return count === 1 ? "אתמול" : "שלשום"; + } + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "בעוד " + result; + } else { + return "לפני " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.cjs b/node_modules/date-fns/locale/he/_lib/formatLong.cjs new file mode 100644 index 000000000..69156ef1f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.d.cts b/node_modules/date-fns/locale/he/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.d.ts b/node_modules/date-fns/locale/he/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/he/_lib/formatLong.js b/node_modules/date-fns/locale/he/_lib/formatLong.js new file mode 100644 index 000000000..637fab64a --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.cjs b/node_modules/date-fns/locale/he/_lib/formatRelative.cjs new file mode 100644 index 000000000..800a977c8 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative.js b/node_modules/date-fns/locale/he/_lib/formatRelative.js new file mode 100644 index 000000000..e1d31d4d5 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/he/_lib/localize.cjs b/node_modules/date-fns/locale/he/_lib/localize.cjs new file mode 100644 index 000000000..73bb01d54 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.cjs @@ -0,0 +1,211 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳", + ], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר", + ], +}; + +const dayValues = { + narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת", + ], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + // We only show words till 10 + if (number <= 0 || number > 10) return String(number); + + const unit = String(options?.unit); + + const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0; + + const male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי", + ]; + + const female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית", + ]; + + const index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/localize.d.cts b/node_modules/date-fns/locale/he/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/he/_lib/localize.d.ts b/node_modules/date-fns/locale/he/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/he/_lib/localize.js b/node_modules/date-fns/locale/he/_lib/localize.js new file mode 100644 index 000000000..b67807be5 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize.js @@ -0,0 +1,209 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["רבעון 1", "רבעון 2", "רבעון 3", "רבעון 4"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳", + ], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר", + ], +}; + +const dayValues = { + narrow: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + short: ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת", + ], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה", + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + // We only show words till 10 + if (number <= 0 || number > 10) return String(number); + + const unit = String(options?.unit); + + const isFemale = ["year", "hour", "minute", "second"].indexOf(unit) >= 0; + + const male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי", + ]; + + const female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית", + ]; + + const index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/he/_lib/match.cjs b/node_modules/date-fns/locale/he/_lib/match.cjs new file mode 100644 index 000000000..cad1bd405 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.cjs @@ -0,0 +1,141 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; + +const matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i, +}; +const parseEraPatterns = { + any: [/^לפ/i, /^לס/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i, +}; +const parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i], +}; + +const matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i, + }, +}; + +const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"]; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => { + const number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/he/_lib/match.d.cts b/node_modules/date-fns/locale/he/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/he/_lib/match.d.ts b/node_modules/date-fns/locale/he/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/he/_lib/match.js b/node_modules/date-fns/locale/he/_lib/match.js new file mode 100644 index 000000000..61ac4f53d --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +const parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; + +const matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i, +}; +const parseEraPatterns = { + any: [/^לפ/i, /^לס/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i, +}; +const parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i], +}; + +const matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i, + }, +}; + +const ordinalName = ["רא", "שנ", "של", "רב", "ח", "שי", "שב", "שמ", "ת", "ע"]; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => { + const number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/he/cdn.js b/node_modules/date-fns/locale/he/cdn.js new file mode 100644 index 000000000..94863627d --- /dev/null +++ b/node_modules/date-fns/locale/he/cdn.js @@ -0,0 +1,662 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/he/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "פחות משנייה", + two: "פחות משתי שניות", + other: "פחות מ־{{count}} שניות" + }, + xSeconds: { + one: "שנייה", + two: "שתי שניות", + other: "{{count}} שניות" + }, + halfAMinute: "חצי דקה", + lessThanXMinutes: { + one: "פחות מדקה", + two: "פחות משתי דקות", + other: "פחות מ־{{count}} דקות" + }, + xMinutes: { + one: "דקה", + two: "שתי דקות", + other: "{{count}} דקות" + }, + aboutXHours: { + one: "כשעה", + two: "כשעתיים", + other: "כ־{{count}} שעות" + }, + xHours: { + one: "שעה", + two: "שעתיים", + other: "{{count}} שעות" + }, + xDays: { + one: "יום", + two: "יומיים", + other: "{{count}} ימים" + }, + aboutXWeeks: { + one: "כשבוע", + two: "כשבועיים", + other: "כ־{{count}} שבועות" + }, + xWeeks: { + one: "שבוע", + two: "שבועיים", + other: "{{count}} שבועות" + }, + aboutXMonths: { + one: "כחודש", + two: "כחודשיים", + other: "כ־{{count}} חודשים" + }, + xMonths: { + one: "חודש", + two: "חודשיים", + other: "{{count}} חודשים" + }, + aboutXYears: { + one: "כשנה", + two: "כשנתיים", + other: "כ־{{count}} שנים" + }, + xYears: { + one: "שנה", + two: "שנתיים", + other: "{{count}} שנים" + }, + overXYears: { + one: "יותר משנה", + two: "יותר משנתיים", + other: "יותר מ־{{count}} שנים" + }, + almostXYears: { + one: "כמעט שנה", + two: "כמעט שנתיים", + other: "כמעט {{count}} שנים" + } +}; +var formatDistance = function formatDistance(token, count, options) { + if (token === "xDays" && options !== null && options !== void 0 && options.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) return count === 1 ? "מחר" : "מחרתיים"; + return count === 1 ? "אתמול" : "שלשום"; + } + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2) result = tokenValue.two;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "בעוד " + result;else + return "לפני " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d בMMMM y", + long: "d בMMMM y", + medium: "d בMMM y", + short: "d.M.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/he/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/he/_lib/localize.js +var eraValues = { + narrow: ["לפנה״ס", "לספירה"], + abbreviated: ["לפנה״ס", "לספירה"], + wide: ["לפני הספירה", "לספירה"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "רבעון 1", + "רבעון 2", + "רבעון 3", + "רבעון 4"] + +}; +var monthValues = { + narrow: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12"], + + abbreviated: [ + "ינו׳", + "פבר׳", + "מרץ", + "אפר׳", + "מאי", + "יוני", + "יולי", + "אוג׳", + "ספט׳", + "אוק׳", + "נוב׳", + "דצמ׳"], + + wide: [ + "ינואר", + "פברואר", + "מרץ", + "אפריל", + "מאי", + "יוני", + "יולי", + "אוגוסט", + "ספטמבר", + "אוקטובר", + "נובמבר", + "דצמבר"] + +}; +var dayValues = { + narrow: [ + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳"], + + short: [ + "א׳", + "ב׳", + "ג׳", + "ד׳", + "ה׳", + "ו׳", + "ש׳"], + + abbreviated: [ + "יום א׳", + "יום ב׳", + "יום ג׳", + "יום ד׳", + "יום ה׳", + "יום ו׳", + "שבת"], + + wide: [ + "יום ראשון", + "יום שני", + "יום שלישי", + "יום רביעי", + "יום חמישי", + "יום שישי", + "יום שבת"] + +}; +var dayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בוקר", + afternoon: "אחר הצהריים", + evening: "ערב", + night: "לילה" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "בצהריים", + evening: "בערב", + night: "בלילה" + }, + abbreviated: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה" + }, + wide: { + am: "לפנה״צ", + pm: "אחה״צ", + midnight: "חצות", + noon: "צהריים", + morning: "בבוקר", + afternoon: "אחר הצהריים", + evening: "בערב", + night: "בלילה" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if (number <= 0 || number > 10) return String(number); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var isFemale = [ + "year", + "hour", + "minute", + "second"]. + indexOf(unit) >= 0; + var male = [ + "ראשון", + "שני", + "שלישי", + "רביעי", + "חמישי", + "שישי", + "שביעי", + "שמיני", + "תשיעי", + "עשירי"]; + + var female = [ + "ראשונה", + "שנייה", + "שלישית", + "רביעית", + "חמישית", + "שישית", + "שביעית", + "שמינית", + "תשיעית", + "עשירית"]; + + var index = number - 1; + return isFemale ? female[index] : male[index]; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/he/_lib/match.js +var matchOrdinalNumberPattern = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +var parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; +var matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i +}; +var parseEraPatterns = { any: [/^לפ/i, /^לס/i] }; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i +}; +var parseQuarterPatterns = { any: [ + /1/i, + /2/i, + /3/i, + /4/i] +}; +var matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i +}; +var parseMonthPatterns = { + narrow: [ + /^1$/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i], + + any: [ + /^ינ/i, + /^פ/i, + /^מר/i, + /^אפ/i, + /^מא/i, + /^יונ/i, + /^יול/i, + /^אוג/i, + /^ס/i, + /^אוק/i, + /^נ/i, + /^ד/i] + +}; +var matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i +}; +var parseDayPatterns = { + abbreviated: [ + /א׳$/i, + /ב׳$/i, + /ג׳$/i, + /ד׳$/i, + /ה׳$/i, + /ו׳$/i, + /^ש/i], + + wide: [ + /ן$/i, + /ני$/i, + /לישי$/i, + /עי$/i, + /מישי$/i, + /שישי$/i, + /ת$/i], + + any: [ + /^א/i, + /^ב/i, + /^ג/i, + /^ד/i, + /^ה/i, + /^ו/i, + /^ש/i] + +}; +var matchDayPeriodPatterns = { any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i }; +var parseDayPeriodPatterns = { any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i + } }; +var ordinalName = [ +"רא", +"שנ", +"של", +"רב", +"ח", +"שי", +"שב", +"שמ", +"ת", +"ע"]; + +//#endregion +//#region dist/date-fns/locale/he.js +/** +* @category Locales +* @summary Hebrew locale. +* @language Hebrew +* @iso-639-2 heb +* @author Nir Lahad [@nirlah](https://github.com/nirlah) +*/ +var he = { + code: "he", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + var number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/he/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + he: he }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/cdn.min.js b/node_modules/date-fns/locale/he/cdn.min.js new file mode 100644 index 000000000..54eb59cad --- /dev/null +++ b/node_modules/date-fns/locale/he/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?t===1?`מחר`:`מחרתיים`:t===1?`אתמול`:`שלשום`;var r,i=o[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`בעוד `+r:`לפני `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d בMMMM y`,long:`d בMMMM y`,medium:`d בMMM y`,short:`d.M.y`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'בשעה' {{time}}`,long:`{{date}} 'בשעה' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'שעבר בשעה' p`,yesterday:`'אתמול בשעה' p`,today:`'היום בשעה' p`,tomorrow:`'מחר בשעה' p`,nextWeek:`eeee 'בשעה' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);if(n<=0||n>10)return String(n);var r=String(t?.unit),i=[`year`,`hour`,`minute`,`second`].indexOf(r)>=0,a=[`ראשון`,`שני`,`שלישי`,`רביעי`,`חמישי`,`שישי`,`שביעי`,`שמיני`,`תשיעי`,`עשירי`],o=[`ראשונה`,`שנייה`,`שלישית`,`רביעית`,`חמישית`,`שישית`,`שביעית`,`שמינית`,`תשיעית`,`עשירית`],s=n-1;return i?o[s]:a[s]},era:f({values:{narrow:[`לפנה״ס`,`לספירה`],abbreviated:[`לפנה״ס`,`לספירה`],wide:[`לפני הספירה`,`לספירה`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`רבעון 1`,`רבעון 2`,`רבעון 3`,`רבעון 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`ינו׳`,`פבר׳`,`מרץ`,`אפר׳`,`מאי`,`יוני`,`יולי`,`אוג׳`,`ספט׳`,`אוק׳`,`נוב׳`,`דצמ׳`],wide:[`ינואר`,`פברואר`,`מרץ`,`אפריל`,`מאי`,`יוני`,`יולי`,`אוגוסט`,`ספטמבר`,`אוקטובר`,`נובמבר`,`דצמבר`]},defaultWidth:`wide`}),day:f({values:{narrow:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],short:[`א׳`,`ב׳`,`ג׳`,`ד׳`,`ה׳`,`ו׳`,`ש׳`],abbreviated:[`יום א׳`,`יום ב׳`,`יום ג׳`,`יום ד׳`,`יום ה׳`,`יום ו׳`,`שבת`],wide:[`יום ראשון`,`יום שני`,`יום שלישי`,`יום רביעי`,`יום חמישי`,`יום שישי`,`יום שבת`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בוקר`,afternoon:`אחר הצהריים`,evening:`ערב`,night:`לילה`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`בצהריים`,evening:`בערב`,night:`בלילה`},abbreviated:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`},wide:{am:`לפנה״צ`,pm:`אחה״צ`,midnight:`חצות`,noon:`צהריים`,morning:`בבוקר`,afternoon:`אחר הצהריים`,evening:`בערב`,night:`בלילה`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,y=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,b={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},x={any:[/^לפ/i,/^לס/i]},S={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},C={any:[/1/i,/2/i,/3/i,/4/i]},w={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},T={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},E={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},D={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},O={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},k={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},A=[`רא`,`שנ`,`של`,`רב`,`ח`,`שי`,`שב`,`שמ`,`ת`,`ע`],j={code:`he`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:v,parsePattern:y,valueCallback:function(e){var t=parseInt(e,10);return isNaN(t)?A.indexOf(e)+1:t}}),era:m({matchPatterns:b,defaultMatchWidth:`wide`,parsePatterns:x,defaultParseWidth:`any`}),quarter:m({matchPatterns:S,defaultMatchWidth:`wide`,parsePatterns:C,defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:w,defaultMatchWidth:`wide`,parsePatterns:T,defaultParseWidth:`any`}),day:m({matchPatterns:E,defaultMatchWidth:`wide`,parsePatterns:D,defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:O,defaultMatchWidth:`any`,parsePatterns:k,defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{he:j})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi.cjs b/node_modules/date-fns/locale/hi.cjs new file mode 100644 index 000000000..c34a8f066 --- /dev/null +++ b/node_modules/date-fns/locale/hi.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.hi = void 0; +var _index = require("./hi/_lib/formatDistance.cjs"); +var _index2 = require("./hi/_lib/formatLong.cjs"); +var _index3 = require("./hi/_lib/formatRelative.cjs"); +var _index4 = require("./hi/_lib/localize.cjs"); +var _index5 = require("./hi/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +const hi = (exports.hi = { + code: "hi", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/hi.d.cts b/node_modules/date-fns/locale/hi.d.cts new file mode 100644 index 000000000..114a79421 --- /dev/null +++ b/node_modules/date-fns/locale/hi.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export declare const hi: Locale; diff --git a/node_modules/date-fns/locale/hi.d.ts b/node_modules/date-fns/locale/hi.d.ts new file mode 100644 index 000000000..114a79421 --- /dev/null +++ b/node_modules/date-fns/locale/hi.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export declare const hi: Locale; diff --git a/node_modules/date-fns/locale/hi.js b/node_modules/date-fns/locale/hi.js new file mode 100644 index 000000000..25ddc3457 --- /dev/null +++ b/node_modules/date-fns/locale/hi.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./hi/_lib/formatDistance.js"; +import { formatLong } from "./hi/_lib/formatLong.js"; +import { formatRelative } from "./hi/_lib/formatRelative.js"; +import { localize } from "./hi/_lib/localize.js"; +import { match } from "./hi/_lib/match.js"; + +/** + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) + */ +export const hi = { + code: "hi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default hi; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs new file mode 100644 index 000000000..0dbba6ed6 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.cjs @@ -0,0 +1,111 @@ +"use strict"; +exports.formatDistance = void 0; +var _index = require("./localize.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/hi.html + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", // CLDR #1310 + other: "{{count}} सेकंड से कम", + }, + + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड", + }, + + halfAMinute: "आधा मिनट", + + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम", + }, + + xMinutes: { + one: "१ मिनट", // CLDR #1307 + other: "{{count}} मिनट", + }, + + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे", + }, + + xHours: { + one: "१ घंटा", // CLDR #1304 + other: "{{count}} घंटे", // CLDR #4467 + }, + + xDays: { + one: "१ दिन", // CLDR #1286 + other: "{{count}} दिन", + }, + + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह", + }, + + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह", + }, + + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने", + }, + + xMonths: { + one: "१ महीना", + other: "{{count}} महीने", + }, + + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", // CLDR #4823 + }, + + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष", + }, + + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक", + }, + + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + (0, _index.numberToLocale)(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "मे "; + } else { + return result + " पहले"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts new file mode 100644 index 000000000..749a53602 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.cts @@ -0,0 +1,9 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export type FormatDistanceTokanRelativeValue = { + one: string; + other: string; +}; +export type FormatDistanceLocaleValue = + | FormatDistanceTokanRelativeValue + | string; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts new file mode 100644 index 000000000..749a53602 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.d.ts @@ -0,0 +1,9 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export type FormatDistanceTokanRelativeValue = { + one: string; + other: string; +}; +export type FormatDistanceLocaleValue = + | FormatDistanceTokanRelativeValue + | string; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance.js b/node_modules/date-fns/locale/hi/_lib/formatDistance.js new file mode 100644 index 000000000..6cb086456 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance.js @@ -0,0 +1,105 @@ +import { numberToLocale } from "./localize.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/hi.html + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", // CLDR #1310 + other: "{{count}} सेकंड से कम", + }, + + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड", + }, + + halfAMinute: "आधा मिनट", + + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम", + }, + + xMinutes: { + one: "१ मिनट", // CLDR #1307 + other: "{{count}} मिनट", + }, + + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे", + }, + + xHours: { + one: "१ घंटा", // CLDR #1304 + other: "{{count}} घंटे", // CLDR #4467 + }, + + xDays: { + one: "१ दिन", // CLDR #1286 + other: "{{count}} दिन", + }, + + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह", + }, + + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह", + }, + + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने", + }, + + xMonths: { + one: "१ महीना", + other: "{{count}} महीने", + }, + + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", // CLDR #4823 + }, + + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष", + }, + + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक", + }, + + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "मे "; + } else { + return result + " पहले"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.cjs b/node_modules/date-fns/locale/hi/_lib/formatLong.cjs new file mode 100644 index 000000000..a58c7a04b --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM, y", // CLDR #1787 + long: "do MMMM, y", // CLDR #1788 + medium: "d MMM, y", // CLDR #1789 + short: "dd/MM/yyyy", // CLDR #1790 +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", // CLDR #1791 + long: "h:mm:ss a z", // CLDR #1792 + medium: "h:mm:ss a", // CLDR #1793 + short: "h:mm a", // CLDR #1794 +}; + +const dateTimeFormats = { + full: "{{date}} 'को' {{time}}", // CLDR #1795 + long: "{{date}} 'को' {{time}}", // CLDR #1796 + medium: "{{date}}, {{time}}", // CLDR #1797 + short: "{{date}}, {{time}}", // CLDR #1798 +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong.js b/node_modules/date-fns/locale/hi/_lib/formatLong.js new file mode 100644 index 000000000..dd60b1775 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM, y", // CLDR #1787 + long: "do MMMM, y", // CLDR #1788 + medium: "d MMM, y", // CLDR #1789 + short: "dd/MM/yyyy", // CLDR #1790 +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", // CLDR #1791 + long: "h:mm:ss a z", // CLDR #1792 + medium: "h:mm:ss a", // CLDR #1793 + short: "h:mm a", // CLDR #1794 +}; + +const dateTimeFormats = { + full: "{{date}} 'को' {{time}}", // CLDR #1795 + long: "{{date}} 'को' {{time}}", // CLDR #1796 + medium: "{{date}}, {{time}}", // CLDR #1797 + short: "{{date}}, {{time}}", // CLDR #1798 +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs new file mode 100644 index 000000000..6d14c0862 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative.js b/node_modules/date-fns/locale/hi/_lib/formatRelative.js new file mode 100644 index 000000000..efc65b221 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.cjs b/node_modules/date-fns/locale/hi/_lib/localize.cjs new file mode 100644 index 000000000..0cea883de --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.cjs @@ -0,0 +1,231 @@ +"use strict"; +exports.localeToNumber = localeToNumber; +exports.localize = void 0; +exports.numberToLocale = numberToLocale; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०", + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0", + }, +}; + +// CLDR #1585 - #1592 +const eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"], +}; + +// CLDR #1593 - #1616 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ति1", "ति2", "ति3", "ति4"], + wide: ["पहली तिमाही", "दूसरी तिमाही", "तीसरी तिमाही", "चौथी तिमाही"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 +const monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि", + ], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस", + ], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर", + ], +}; + +// CLDR #1689 - #1744 +const dayValues = { + narrow: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + short: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + abbreviated: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return numberToLocale(number); +}; + +function localeToNumber(locale) { + const enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} + +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/localize.d.cts b/node_modules/date-fns/locale/hi/_lib/localize.d.cts new file mode 100644 index 000000000..6de289ec3 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.d.cts @@ -0,0 +1,37 @@ +import type { Localize } from "../../types.ts"; +type hiLocaleNumberType = + | "\u0967" + | "\u0968" + | "\u0969" + | "\u096A" + | "\u096B" + | "\u096C" + | "\u096D" + | "\u096E" + | "\u096F" + | "\u0966"; +type enLocaleNumberType = + | "1" + | "2" + | "3" + | "4" + | "5" + | "6" + | "7" + | "8" + | "9" + | "0"; +type enHiLocaleNumberType = { + [enNumber in enLocaleNumberType]: hiLocaleNumberType; +}; +type hiLocaleEnNumberType = { + [hiNumber in hiLocaleNumberType]: enLocaleNumberType; +}; +export interface hiLocaleNumberValuesType { + locale: enHiLocaleNumberType; + number: hiLocaleEnNumberType; +} +export declare function localeToNumber(locale: string): number; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; +export {}; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.d.ts b/node_modules/date-fns/locale/hi/_lib/localize.d.ts new file mode 100644 index 000000000..6de289ec3 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.d.ts @@ -0,0 +1,37 @@ +import type { Localize } from "../../types.ts"; +type hiLocaleNumberType = + | "\u0967" + | "\u0968" + | "\u0969" + | "\u096A" + | "\u096B" + | "\u096C" + | "\u096D" + | "\u096E" + | "\u096F" + | "\u0966"; +type enLocaleNumberType = + | "1" + | "2" + | "3" + | "4" + | "5" + | "6" + | "7" + | "8" + | "9" + | "0"; +type enHiLocaleNumberType = { + [enNumber in enLocaleNumberType]: hiLocaleNumberType; +}; +type hiLocaleEnNumberType = { + [hiNumber in hiLocaleNumberType]: enLocaleNumberType; +}; +export interface hiLocaleNumberValuesType { + locale: enHiLocaleNumberType; + number: hiLocaleEnNumberType; +} +export declare function localeToNumber(locale: string): number; +export declare function numberToLocale(enNumber: number): string; +export declare const localize: Localize; +export {}; diff --git a/node_modules/date-fns/locale/hi/_lib/localize.js b/node_modules/date-fns/locale/hi/_lib/localize.js new file mode 100644 index 000000000..612492970 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०", + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0", + }, +}; + +// CLDR #1585 - #1592 +const eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"], +}; + +// CLDR #1593 - #1616 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ति1", "ति2", "ति3", "ति4"], + wide: ["पहली तिमाही", "दूसरी तिमाही", "तीसरी तिमाही", "चौथी तिमाही"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 +const monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि", + ], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस", + ], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर", + ], +}; + +// CLDR #1689 - #1744 +const dayValues = { + narrow: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + short: ["र", "सो", "मं", "बु", "गु", "शु", "श"], + abbreviated: ["रवि", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return numberToLocale(number); +}; + +export function localeToNumber(locale) { + const enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} + +export function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hi/_lib/match.cjs b/node_modules/date-fns/locale/hi/_lib/match.cjs new file mode 100644 index 000000000..9364ad80f --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); +var _index3 = require("./localize.cjs"); + +const matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +const parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; + +const matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i, +}; + +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i, + ], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i, + ], +}; + +const matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i, +}; +const parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: _index3.localeToNumber, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hi/_lib/match.d.cts b/node_modules/date-fns/locale/hi/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hi/_lib/match.d.ts b/node_modules/date-fns/locale/hi/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hi/_lib/match.js b/node_modules/date-fns/locale/hi/_lib/match.js new file mode 100644 index 000000000..348800497 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { localeToNumber } from "./localize.js"; + +const matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +const parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; + +const matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i, +}; + +const parseEraPatterns = { + any: [/^b/i, /^(a|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i, + ], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i, + ], +}; + +const matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i, +}; +const parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: localeToNumber, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hi/cdn.js b/node_modules/date-fns/locale/hi/cdn.js new file mode 100644 index 000000000..3b7bc39c4 --- /dev/null +++ b/node_modules/date-fns/locale/hi/cdn.js @@ -0,0 +1,610 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hi/_lib/localize.js +var numberValues = { + locale: { + 1: "१", + 2: "२", + 3: "३", + 4: "४", + 5: "५", + 6: "६", + 7: "७", + 8: "८", + 9: "९", + 0: "०" + }, + number: { + "१": "1", + "२": "2", + "३": "3", + "४": "4", + "५": "5", + "६": "6", + "७": "7", + "८": "8", + "९": "9", + "०": "0" + } +}; +var eraValues = { + narrow: ["ईसा-पूर्व", "ईस्वी"], + abbreviated: ["ईसा-पूर्व", "ईस्वी"], + wide: ["ईसा-पूर्व", "ईसवी सन"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ति1", + "ति2", + "ति3", + "ति4"], + + wide: [ + "पहली तिमाही", + "दूसरी तिमाही", + "तीसरी तिमाही", + "चौथी तिमाही"] + +}; +var monthValues = { + narrow: [ + "ज", + "फ़", + "मा", + "अ", + "मई", + "जू", + "जु", + "अग", + "सि", + "अक्टू", + "न", + "दि"], + + abbreviated: [ + "जन", + "फ़र", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुल", + "अग", + "सित", + "अक्टू", + "नव", + "दिस"], + + wide: [ + "जनवरी", + "फ़रवरी", + "मार्च", + "अप्रैल", + "मई", + "जून", + "जुलाई", + "अगस्त", + "सितंबर", + "अक्टूबर", + "नवंबर", + "दिसंबर"] + +}; +var dayValues = { + narrow: [ + "र", + "सो", + "मं", + "बु", + "गु", + "शु", + "श"], + + short: [ + "र", + "सो", + "मं", + "बु", + "गु", + "शु", + "श"], + + abbreviated: [ + "रवि", + "सोम", + "मंगल", + "बुध", + "गुरु", + "शुक्र", + "शनि"], + + wide: [ + "रविवार", + "सोमवार", + "मंगलवार", + "बुधवार", + "गुरुवार", + "शुक्रवार", + "शनिवार"] + +}; +var dayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + abbreviated: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + }, + wide: { + am: "पूर्वाह्न", + pm: "अपराह्न", + midnight: "मध्यरात्रि", + noon: "दोपहर", + morning: "सुबह", + afternoon: "दोपहर", + evening: "शाम", + night: "रात" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return numberToLocale(Number(dirtyNumber)); +}; +function localeToNumber(locale) { + var enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "१ सेकंड से कम", + other: "{{count}} सेकंड से कम" + }, + xSeconds: { + one: "१ सेकंड", + other: "{{count}} सेकंड" + }, + halfAMinute: "आधा मिनट", + lessThanXMinutes: { + one: "१ मिनट से कम", + other: "{{count}} मिनट से कम" + }, + xMinutes: { + one: "१ मिनट", + other: "{{count}} मिनट" + }, + aboutXHours: { + one: "लगभग १ घंटा", + other: "लगभग {{count}} घंटे" + }, + xHours: { + one: "१ घंटा", + other: "{{count}} घंटे" + }, + xDays: { + one: "१ दिन", + other: "{{count}} दिन" + }, + aboutXWeeks: { + one: "लगभग १ सप्ताह", + other: "लगभग {{count}} सप्ताह" + }, + xWeeks: { + one: "१ सप्ताह", + other: "{{count}} सप्ताह" + }, + aboutXMonths: { + one: "लगभग १ महीना", + other: "लगभग {{count}} महीने" + }, + xMonths: { + one: "१ महीना", + other: "{{count}} महीने" + }, + aboutXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष" + }, + xYears: { + one: "१ वर्ष", + other: "{{count}} वर्ष" + }, + overXYears: { + one: "१ वर्ष से अधिक", + other: "{{count}} वर्ष से अधिक" + }, + almostXYears: { + one: "लगभग १ वर्ष", + other: "लगभग {{count}} वर्ष" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", numberToLocale(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + "मे ";else + return result + " पहले"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM, y", + long: "do MMMM, y", + medium: "d MMM, y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'को' {{time}}", + long: "{{date}} 'को' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hi/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hi.js +/** +* @category Locales +* @summary Hindi locale (India). +* @language Hindi +* @iso-639-2 hin +* @author Mukesh Mandiwal [@mukeshmandiwal](https://github.com/mukeshmandiwal) +*/ +var hi = { + code: "hi", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^[०१२३४५६७८९]+/i, + parsePattern: /^[०१२३४५६७८९]+/i, + valueCallback: localeToNumber + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(a|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ज/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^न/i, + /^दि/i], + + any: [ + /^जन/i, + /^फ़/i, + /^मा/i, + /^अप्/i, + /^मई/i, + /^जू/i, + /^जु/i, + /^अग/i, + /^सि/i, + /^अक्तू/i, + /^नव/i, + /^दिस/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^रवि/i, + /^सोम/i, + /^मंगल/i, + /^बुध/i, + /^गुरु/i, + /^शुक्र/i, + /^शनि/i], + + any: [ + /^रवि/i, + /^सोम/i, + /^मंगल/i, + /^बुध/i, + /^गुरु/i, + /^शुक्र/i, + /^शनि/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hi/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hi: hi }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/cdn.min.js b/node_modules/date-fns/locale/hi/cdn.min.js new file mode 100644 index 000000000..99867432f --- /dev/null +++ b/node_modules/date-fns/locale/hi/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`मे `:r+` पहले`:r};function b(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var x={date:b({formats:{full:`EEEE, do MMMM, y`,long:`do MMMM, y`,medium:`d MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:b({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}} 'को' {{time}}`,long:`{{date}} 'को' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},S={lastWeek:`'पिछले' eeee p`,yesterday:`'कल' p`,today:`'आज' p`,tomorrow:`'कल' p`,nextWeek:`eeee 'को' p`,other:`P`},C=function(e,t,n,r){return S[e]};function w(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?E(s,function(e){return e.test(o)}):T(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function T(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function E(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var O={code:`hi`,formatDistance:y,formatLong:x,formatRelative:C,localize:_,match:{ordinalNumber:D({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:h}),era:w({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:w({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:w({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:`any`}),day:w({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:`any`}),dayPeriod:w({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hi:O})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr.cjs b/node_modules/date-fns/locale/hr.cjs new file mode 100644 index 000000000..9f74fe99d --- /dev/null +++ b/node_modules/date-fns/locale/hr.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.hr = void 0; +var _index = require("./hr/_lib/formatDistance.cjs"); +var _index2 = require("./hr/_lib/formatLong.cjs"); +var _index3 = require("./hr/_lib/formatRelative.cjs"); +var _index4 = require("./hr/_lib/localize.cjs"); +var _index5 = require("./hr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +const hr = (exports.hr = { + code: "hr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/hr.d.cts b/node_modules/date-fns/locale/hr.d.cts new file mode 100644 index 000000000..e5e345e12 --- /dev/null +++ b/node_modules/date-fns/locale/hr.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export declare const hr: Locale; diff --git a/node_modules/date-fns/locale/hr.d.ts b/node_modules/date-fns/locale/hr.d.ts new file mode 100644 index 000000000..e5e345e12 --- /dev/null +++ b/node_modules/date-fns/locale/hr.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export declare const hr: Locale; diff --git a/node_modules/date-fns/locale/hr.js b/node_modules/date-fns/locale/hr.js new file mode 100644 index 000000000..90a26a176 --- /dev/null +++ b/node_modules/date-fns/locale/hr.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./hr/_lib/formatDistance.js"; +import { formatLong } from "./hr/_lib/formatLong.js"; +import { formatRelative } from "./hr/_lib/formatRelative.js"; +import { localize } from "./hr/_lib/localize.js"; +import { match } from "./hr/_lib/match.js"; + +/** + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon](https://github.com/silvenon) + * @author Manico [@manico](https://github.com/manico) + * @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) + */ +export const hr = { + code: "hr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default hr; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs new file mode 100644 index 000000000..16b991aed --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan", + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana", + }, + + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan", + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance.js b/node_modules/date-fns/locale/hr/_lib/formatDistance.js new file mode 100644 index 000000000..6e5ea0649 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan", + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana", + }, + + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan", + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec", + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci", + }, + + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec", + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "prije " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.cjs b/node_modules/date-fns/locale/hr/_lib/formatLong.cjs new file mode 100644 index 000000000..2944ad1f9 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong.js b/node_modules/date-fns/locale/hr/_lib/formatLong.js new file mode 100644 index 000000000..6adc53ecb --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs new file mode 100644 index 000000000..3be544aa2 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošlu nedjelju u' p"; + case 3: + return "'prošlu srijedu u' p"; + case 6: + return "'prošlu subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'iduću nedjelju u' p"; + case 3: + return "'iduću srijedu u' p"; + case 6: + return "'iduću subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative.js b/node_modules/date-fns/locale/hr/_lib/formatRelative.js new file mode 100644 index 000000000..412fe5672 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative.js @@ -0,0 +1,40 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošlu nedjelju u' p"; + case 3: + return "'prošlu srijedu u' p"; + case 6: + return "'prošlu subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'iduću nedjelju u' p"; + case 3: + return "'iduću srijedu u' p"; + case 6: + return "'iduću subotu u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.cjs b/node_modules/date-fns/locale/hr/_lib/localize.cjs new file mode 100644 index 000000000..0522d12ad --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.cjs @@ -0,0 +1,229 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/localize.d.cts b/node_modules/date-fns/locale/hr/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.d.ts b/node_modules/date-fns/locale/hr/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hr/_lib/localize.js b/node_modules/date-fns/locale/hr/_lib/localize.js new file mode 100644 index 000000000..6f7cef816 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro", + ], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sri", "čet", "pet", "sub"], + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hr/_lib/match.cjs b/node_modules/date-fns/locale/hr/_lib/match.cjs new file mode 100644 index 000000000..2e4ef83c3 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.cjs @@ -0,0 +1,149 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i, +}; +const parseMonthPatterns = { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i, + ], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hr/_lib/match.d.cts b/node_modules/date-fns/locale/hr/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hr/_lib/match.d.ts b/node_modules/date-fns/locale/hr/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hr/_lib/match.js b/node_modules/date-fns/locale/hr/_lib/match.js new file mode 100644 index 000000000..675ea157d --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match.js @@ -0,0 +1,146 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i, +}; +const parseMonthPatterns = { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i, + ], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hr/cdn.js b/node_modules/date-fns/locale/hr/cdn.js new file mode 100644 index 000000000..021df32ff --- /dev/null +++ b/node_modules/date-fns/locale/hr/cdn.js @@ -0,0 +1,728 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu" + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi" + }, + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu" + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi" + }, + halfAMinute: "pola minute", + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu" + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta" + }, + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu" + }, + dual: "{{count}} minute", + other: "{{count}} minuta" + }, + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat" + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati" + }, + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat" + }, + dual: "{{count}} sata", + other: "{{count}} sati" + }, + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan" + }, + dual: "{{count}} dana", + other: "{{count}} dana" + }, + aboutXWeeks: { + one: { + standalone: "oko 1 tjedan", + withPrepositionAgo: "oko 1 tjedan", + withPrepositionIn: "oko 1 tjedan" + }, + dual: "oko {{count}} tjedna", + other: "oko {{count}} tjedana" + }, + xWeeks: { + one: { + standalone: "1 tjedan", + withPrepositionAgo: "1 tjedan", + withPrepositionIn: "1 tjedan" + }, + dual: "{{count}} tjedna", + other: "{{count}} tjedana" + }, + aboutXMonths: { + one: { + standalone: "oko 1 mjesec", + withPrepositionAgo: "oko 1 mjesec", + withPrepositionIn: "oko 1 mjesec" + }, + dual: "oko {{count}} mjeseca", + other: "oko {{count}} mjeseci" + }, + xMonths: { + one: { + standalone: "1 mjesec", + withPrepositionAgo: "1 mjesec", + withPrepositionIn: "1 mjesec" + }, + dual: "{{count}} mjeseca", + other: "{{count}} mjeseci" + }, + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu" + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina" + }, + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu" + }, + dual: "{{count}} godine", + other: "{{count}} godina" + }, + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu" + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina" + }, + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu" + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) result = tokenValue.one.withPrepositionIn;else + result = tokenValue.one.withPrepositionAgo;} else + result = tokenValue.one.standalone;} else + if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") result = tokenValue.dual.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "za " + result;else + return "prije " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM y.", + long: "d. MMMM y.", + medium: "d. MMM y.", + short: "dd. MM. y." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prošlu nedjelju u' p"; + case 3:return "'prošlu srijedu u' p"; + case 6:return "'prošlu subotu u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'iduću nedjelju u' p"; + case 3:return "'iduću srijedu u' p"; + case 6:return "'iduću subotu u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hr/_lib/localize.js +var eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Kr.", "po. Kr."], + wide: ["Prije Krista", "Poslije Krista"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. kv.", + "2. kv.", + "3. kv.", + "4. kv."], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro"], + + wide: [ + "siječanj", + "veljača", + "ožujak", + "travanj", + "svibanj", + "lipanj", + "srpanj", + "kolovoz", + "rujan", + "listopad", + "studeni", + "prosinac"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "sij", + "velj", + "ožu", + "tra", + "svi", + "lip", + "srp", + "kol", + "ruj", + "lis", + "stu", + "pro"], + + wide: [ + "siječnja", + "veljače", + "ožujka", + "travnja", + "svibnja", + "lipnja", + "srpnja", + "kolovoza", + "rujna", + "listopada", + "studenog", + "prosinca"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "U", + "S", + "Č", + "P", + "S"], + + short: [ + "ned", + "pon", + "uto", + "sri", + "čet", + "pet", + "sub"], + + abbreviated: [ + "ned", + "pon", + "uto", + "sri", + "čet", + "pet", + "sub"], + + wide: [ + "nedjelja", + "ponedjeljak", + "utorak", + "srijeda", + "četvrtak", + "petak", + "subota"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću" + } +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "popodne", + evening: "navečer", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutro", + afternoon: "poslije podne", + evening: "navečer", + night: "noću" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hr.js +/** +* @category Locales +* @summary Croatian locale. +* @language Croatian +* @iso-639-2 hrv +* @author Matija Marohnić [@silvenon](https://github.com/silvenon) +* @author Manico [@manico](https://github.com/manico) +* @author Ivan Jeržabek [@jerzabek](https://github.com/jerzabek) +*/ +var hr = { + code: "hr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|nova)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i, + /5/i, + /6/i, + /7/i, + /8/i, + /9/i, + /10/i, + /11/i, + /12/i], + + abbreviated: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i], + + wide: [ + /^sij/i, + /^velj/i, + /^(ožu|ozu)/i, + /^tra/i, + /^svi/i, + /^lip/i, + /^srp/i, + /^kol/i, + /^ruj/i, + /^lis/i, + /^stu/i, + /^pro/i] + + }, + defaultParseWidth: "wide" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hr: hr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/cdn.min.js b/node_modules/date-fns/locale/hr/cdn.min.js new file mode 100644 index 000000000..dae47c968 --- /dev/null +++ b/node_modules/date-fns/locale/hr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`prije `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM y.`,long:`d. MMMM y.`,medium:`d. MMM y.`,short:`dd. MM. y.`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošlu nedjelju u' p`;case 3:return`'prošlu srijedu u' p`;case 6:return`'prošlu subotu u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'jučer u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'iduću nedjelju u' p`;case 3:return`'iduću srijedu u' p`;case 6:return`'iduću subotu u' p`;default:return`'prošli' EEEE 'u' p`}},other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Kr.`,`po. Kr.`],wide:[`Prije Krista`,`Poslije Krista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječanj`,`veljača`,`ožujak`,`travanj`,`svibanj`,`lipanj`,`srpanj`,`kolovoz`,`rujan`,`listopad`,`studeni`,`prosinac`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`sij`,`velj`,`ožu`,`tra`,`svi`,`lip`,`srp`,`kol`,`ruj`,`lis`,`stu`,`pro`],wide:[`siječnja`,`veljače`,`ožujka`,`travnja`,`svibnja`,`lipnja`,`srpnja`,`kolovoza`,`rujna`,`listopada`,`studenog`,`prosinca`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sri`,`čet`,`pet`,`sub`],wide:[`nedjelja`,`ponedjeljak`,`utorak`,`srijeda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`popodne`,evening:`navečer`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutro`,afternoon:`poslije podne`,evening:`navečer`,night:`noću`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`hr`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:`wide`}),day:m({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hr:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht.cjs b/node_modules/date-fns/locale/ht.cjs new file mode 100644 index 000000000..be4267848 --- /dev/null +++ b/node_modules/date-fns/locale/ht.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ht = void 0; +var _index = require("./ht/_lib/formatDistance.cjs"); +var _index2 = require("./ht/_lib/formatLong.cjs"); +var _index3 = require("./ht/_lib/formatRelative.cjs"); +var _index4 = require("./ht/_lib/localize.cjs"); +var _index5 = require("./ht/_lib/match.cjs"); + +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +const ht = (exports.ht = { + code: "ht", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/ht.d.cts b/node_modules/date-fns/locale/ht.d.cts new file mode 100644 index 000000000..123435b65 --- /dev/null +++ b/node_modules/date-fns/locale/ht.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export declare const ht: Locale; diff --git a/node_modules/date-fns/locale/ht.d.ts b/node_modules/date-fns/locale/ht.d.ts new file mode 100644 index 000000000..123435b65 --- /dev/null +++ b/node_modules/date-fns/locale/ht.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export declare const ht: Locale; diff --git a/node_modules/date-fns/locale/ht.js b/node_modules/date-fns/locale/ht.js new file mode 100644 index 000000000..8f45d0cbd --- /dev/null +++ b/node_modules/date-fns/locale/ht.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ht/_lib/formatDistance.js"; +import { formatLong } from "./ht/_lib/formatLong.js"; +import { formatRelative } from "./ht/_lib/formatRelative.js"; +import { localize } from "./ht/_lib/localize.js"; +import { match } from "./ht/_lib/match.js"; + +/** + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) + * @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) + */ +export const ht = { + code: "ht", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default ht; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs new file mode 100644 index 000000000..2df4e0315 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond", + }, + + xSeconds: { + one: "1 segond", + other: "{{count}} segond", + }, + + halfAMinute: "30 segond", + + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è", + }, + + xHours: { + one: "1 lè", + other: "{{count}} lè", + }, + + xDays: { + one: "1 jou", + other: "{{count}} jou", + }, + + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn", + }, + + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn", + }, + + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa", + }, + + xMonths: { + one: "1 mwa", + other: "{{count}} mwa", + }, + + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an", + }, + + xYears: { + one: "1 an", + other: "{{count}} an", + }, + + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an", + }, + + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "nan " + result; + } else { + return "sa fè " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance.js b/node_modules/date-fns/locale/ht/_lib/formatDistance.js new file mode 100644 index 000000000..3229a9d3f --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond", + }, + + xSeconds: { + one: "1 segond", + other: "{{count}} segond", + }, + + halfAMinute: "30 segond", + + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è", + }, + + xHours: { + one: "1 lè", + other: "{{count}} lè", + }, + + xDays: { + one: "1 jou", + other: "{{count}} jou", + }, + + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn", + }, + + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn", + }, + + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa", + }, + + xMonths: { + one: "1 mwa", + other: "{{count}} mwa", + }, + + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an", + }, + + xYears: { + one: "1 an", + other: "{{count}} an", + }, + + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an", + }, + + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "nan " + result; + } else { + return "sa fè " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.cjs b/node_modules/date-fns/locale/ht/_lib/formatLong.cjs new file mode 100644 index 000000000..d2ced3599 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong.js b/node_modules/date-fns/locale/ht/_lib/formatLong.js new file mode 100644 index 000000000..29fc5c925 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs new file mode 100644 index 000000000..9110e1a4a --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative.js b/node_modules/date-fns/locale/ht/_lib/formatRelative.js new file mode 100644 index 000000000..e6dcba2ee --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.cjs b/node_modules/date-fns/locale/ht/_lib/localize.cjs new file mode 100644 index 000000000..182214b4b --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.cjs @@ -0,0 +1,129 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1ye trim.", "2yèm trim.", "3yèm trim.", "4yèm trim."], + wide: ["1ye trimès", "2yèm trimès", "3yèm trimès", "4yèm trimès"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "le", "ma", "mè", "je", "va", "sa"], + abbreviated: ["dim.", "len.", "mad.", "mèk.", "jed.", "van.", "sam."], + + wide: ["dimanch", "lendi", "madi", "mèkredi", "jedi", "vandredi", "samdi"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number === 0) return String(number); + + const suffix = number === 1 ? "ye" : "yèm"; + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/localize.d.cts b/node_modules/date-fns/locale/ht/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.d.ts b/node_modules/date-fns/locale/ht/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ht/_lib/localize.js b/node_modules/date-fns/locale/ht/_lib/localize.js new file mode 100644 index 000000000..4ac1d2f7c --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize.js @@ -0,0 +1,127 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1ye trim.", "2yèm trim.", "3yèm trim.", "4yèm trim."], + wide: ["1ye trimès", "2yèm trimès", "3yèm trimès", "4yèm trimès"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "J", "V", "S"], + short: ["di", "le", "ma", "mè", "je", "va", "sa"], + abbreviated: ["dim.", "len.", "mad.", "mèk.", "jed.", "van.", "sam."], + + wide: ["dimanch", "lendi", "madi", "mèkredi", "jedi", "vandredi", "samdi"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + if (number === 0) return String(number); + + const suffix = number === 1 ? "ye" : "yèm"; + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ht/_lib/match.cjs b/node_modules/date-fns/locale/ht/_lib/match.cjs new file mode 100644 index 000000000..d740f3214 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ht/_lib/match.d.cts b/node_modules/date-fns/locale/ht/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ht/_lib/match.d.ts b/node_modules/date-fns/locale/ht/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ht/_lib/match.js b/node_modules/date-fns/locale/ht/_lib/match.js new file mode 100644 index 000000000..4196f1b67 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i, +}; +const parseEraPatterns = { + any: [/^av/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ht/cdn.js b/node_modules/date-fns/locale/ht/cdn.js new file mode 100644 index 000000000..d1a563c37 --- /dev/null +++ b/node_modules/date-fns/locale/ht/cdn.js @@ -0,0 +1,542 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ht/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mwens pase yon segond", + other: "mwens pase {{count}} segond" + }, + xSeconds: { + one: "1 segond", + other: "{{count}} segond" + }, + halfAMinute: "30 segond", + lessThanXMinutes: { + one: "mwens pase yon minit", + other: "mwens pase {{count}} minit" + }, + xMinutes: { + one: "1 minit", + other: "{{count}} minit" + }, + aboutXHours: { + one: "anviwon inè", + other: "anviwon {{count}} è" + }, + xHours: { + one: "1 lè", + other: "{{count}} lè" + }, + xDays: { + one: "1 jou", + other: "{{count}} jou" + }, + aboutXWeeks: { + one: "anviwon 1 semèn", + other: "anviwon {{count}} semèn" + }, + xWeeks: { + one: "1 semèn", + other: "{{count}} semèn" + }, + aboutXMonths: { + one: "anviwon 1 mwa", + other: "anviwon {{count}} mwa" + }, + xMonths: { + one: "1 mwa", + other: "{{count}} mwa" + }, + aboutXYears: { + one: "anviwon 1 an", + other: "anviwon {{count}} an" + }, + xYears: { + one: "1 an", + other: "{{count}} an" + }, + overXYears: { + one: "plis pase 1 an", + other: "plis pase {{count}} an" + }, + almostXYears: { + one: "prèske 1 an", + other: "prèske {{count}} an" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "nan " + result;else + return "sa fè " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ht/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ht/_lib/localize.js +var eraValues = { + narrow: ["av. J.-K", "ap. J.-K"], + abbreviated: ["av. J.-K", "ap. J.-K"], + wide: ["anvan Jezi Kris", "apre Jezi Kris"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1ye trim.", + "2yèm trim.", + "3yèm trim.", + "4yèm trim."], + + wide: [ + "1ye trimès", + "2yèm trimès", + "3yèm trimès", + "4yèm trimès"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "O", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "fevr.", + "mas", + "avr.", + "me", + "jen", + "jiyè", + "out", + "sept.", + "okt.", + "nov.", + "des."], + + wide: [ + "janvye", + "fevrye", + "mas", + "avril", + "me", + "jen", + "jiyè", + "out", + "septanm", + "oktòb", + "novanm", + "desanm"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "J", + "V", + "S"], + + short: [ + "di", + "le", + "ma", + "mè", + "je", + "va", + "sa"], + + abbreviated: [ + "dim.", + "len.", + "mad.", + "mèk.", + "jed.", + "van.", + "sam."], + + wide: [ + "dimanch", + "lendi", + "madi", + "mèkredi", + "jedi", + "vandredi", + "samdi"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "mat.", + afternoon: "ap.m.", + evening: "swa", + night: "mat." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "maten", + afternoon: "aprèmidi", + evening: "swa", + night: "maten" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "minwit", + noon: "midi", + morning: "nan maten", + afternoon: "nan aprèmidi", + evening: "nan aswè", + night: "nan maten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + if (number === 0) return String(number); + return number + (number === 1 ? "ye" : "yèm"); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ht.js +/** +* @category Locales +* @summary Haitian Creole locale. +* @language Haitian Creole +* @iso-639-2 hat +* @author Rubens Mariuzzo [@rmariuzzo](https://github.com/rmariuzzo) +* @author Watson Marcelain [@watsongm24](https://github.com/watsongm24) +*/ +var ht = { + code: "ht", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ye|yèm)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^av/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^av/i, + /^me/i, + /^je/i, + /^ji/i, + /^ou/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^di/i, + /^le/i, + /^ma/i, + /^mè/i, + /^je/i, + /^va/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ht/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ht: ht }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/cdn.min.js b/node_modules/date-fns/locale/ht/cdn.min.js new file mode 100644 index 000000000..c33b85c42 --- /dev/null +++ b/node_modules/date-fns/locale/ht/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`nan `+r:`sa fè `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'nan lè' {{time}}`,long:`{{date}} 'nan lè' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'pase nan lè' p`,yesterday:`'yè nan lè' p`,today:`'jodi a' p`,tomorrow:`'demen nan lè' p'`,nextWeek:`eeee 'pwochen nan lè' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);return n===0?String(n):n+(n===1?`ye`:`yèm`)},era:f({values:{narrow:[`av. J.-K`,`ap. J.-K`],abbreviated:[`av. J.-K`,`ap. J.-K`],wide:[`anvan Jezi Kris`,`apre Jezi Kris`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1ye trim.`,`2yèm trim.`,`3yèm trim.`,`4yèm trim.`],wide:[`1ye trimès`,`2yèm trimès`,`3yèm trimès`,`4yèm trimès`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`O`,`S`,`O`,`N`,`D`],abbreviated:[`janv.`,`fevr.`,`mas`,`avr.`,`me`,`jen`,`jiyè`,`out`,`sept.`,`okt.`,`nov.`,`des.`],wide:[`janvye`,`fevrye`,`mas`,`avril`,`me`,`jen`,`jiyè`,`out`,`septanm`,`oktòb`,`novanm`,`desanm`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`L`,`M`,`M`,`J`,`V`,`S`],short:[`di`,`le`,`ma`,`mè`,`je`,`va`,`sa`],abbreviated:[`dim.`,`len.`,`mad.`,`mèk.`,`jed.`,`van.`,`sam.`],wide:[`dimanch`,`lendi`,`madi`,`mèkredi`,`jedi`,`vandredi`,`samdi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`mat.`,afternoon:`ap.m.`,evening:`swa`,night:`mat.`},abbreviated:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`maten`,afternoon:`aprèmidi`,evening:`swa`,night:`maten`},wide:{am:`AM`,pm:`PM`,midnight:`minwit`,noon:`midi`,morning:`nan maten`,afternoon:`nan aprèmidi`,evening:`nan aswè`,night:`nan maten`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ht`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ht:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu.cjs b/node_modules/date-fns/locale/hu.cjs new file mode 100644 index 000000000..9ba960df2 --- /dev/null +++ b/node_modules/date-fns/locale/hu.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.hu = void 0; +var _index = require("./hu/_lib/formatDistance.cjs"); +var _index2 = require("./hu/_lib/formatLong.cjs"); +var _index3 = require("./hu/_lib/formatRelative.cjs"); +var _index4 = require("./hu/_lib/localize.cjs"); +var _index5 = require("./hu/_lib/match.cjs"); + +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +const hu = (exports.hu = { + code: "hu", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/hu.d.cts b/node_modules/date-fns/locale/hu.d.cts new file mode 100644 index 000000000..34355904b --- /dev/null +++ b/node_modules/date-fns/locale/hu.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export declare const hu: Locale; diff --git a/node_modules/date-fns/locale/hu.d.ts b/node_modules/date-fns/locale/hu.d.ts new file mode 100644 index 000000000..34355904b --- /dev/null +++ b/node_modules/date-fns/locale/hu.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export declare const hu: Locale; diff --git a/node_modules/date-fns/locale/hu.js b/node_modules/date-fns/locale/hu.js new file mode 100644 index 000000000..dae5af29b --- /dev/null +++ b/node_modules/date-fns/locale/hu.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./hu/_lib/formatDistance.js"; +import { formatLong } from "./hu/_lib/formatLong.js"; +import { formatRelative } from "./hu/_lib/formatRelative.js"; +import { localize } from "./hu/_lib/localize.js"; +import { match } from "./hu/_lib/match.js"; + +/** + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + * @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) + */ +export const hu = { + code: "hu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default hu; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs new file mode 100644 index 000000000..97bf189f5 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.cjs @@ -0,0 +1,86 @@ +"use strict"; +exports.formatDistance = void 0; + +const translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint", +}; + +const withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év", +}; + +const withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce", + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce", + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce", + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája", + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja", + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete", + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja", + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve", + }, +}; + +const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const addSuffix = options?.addSuffix === true; + const key = unit.toLowerCase(); + const comparison = options?.comparison || 0; + + const translated = addSuffix + ? withSuffixes[key][comparison] + : withoutSuffixes[key]; + + let result = key === "halfaminute" ? translated : count + translated; + + if (adverb) { + const adv = adverb[0].toLowerCase(); + result = translations[adv] + " " + result; + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance.js b/node_modules/date-fns/locale/hu/_lib/formatDistance.js new file mode 100644 index 000000000..30e23bb26 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance.js @@ -0,0 +1,82 @@ +const translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint", +}; + +const withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év", +}; + +const withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce", + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce", + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce", + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája", + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja", + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete", + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja", + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve", + }, +}; + +export const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const addSuffix = options?.addSuffix === true; + const key = unit.toLowerCase(); + const comparison = options?.comparison || 0; + + const translated = addSuffix + ? withSuffixes[key][comparison] + : withoutSuffixes[key]; + + let result = key === "halfaminute" ? translated : count + translated; + + if (adverb) { + const adv = adverb[0].toLowerCase(); + result = translations[adv] + " " + result; + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.cjs b/node_modules/date-fns/locale/hu/_lib/formatLong.cjs new file mode 100644 index 000000000..b20a99700 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd.", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong.js b/node_modules/date-fns/locale/hu/_lib/formatLong.js new file mode 100644 index 000000000..2defb576f --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd.", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs new file mode 100644 index 000000000..5e73c88e6 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.cjs @@ -0,0 +1,39 @@ +"use strict"; +exports.formatRelative = void 0; + +const accusativeWeekdays = [ + "vasárnap", + "hétfőn", + "kedden", + "szerdán", + "csütörtökön", + "pénteken", + "szombaton", +]; + +function week(isFuture) { + return (date) => { + const weekday = accusativeWeekdays[date.getDay()]; + const prefix = isFuture ? "" : "'múlt' "; + return `${prefix}'${weekday}' p'-kor'`; + }; +} +const formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P", +}; + +const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative.js b/node_modules/date-fns/locale/hu/_lib/formatRelative.js new file mode 100644 index 000000000..27a8eb74b --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative.js @@ -0,0 +1,35 @@ +const accusativeWeekdays = [ + "vasárnap", + "hétfőn", + "kedden", + "szerdán", + "csütörtökön", + "pénteken", + "szombaton", +]; + +function week(isFuture) { + return (date) => { + const weekday = accusativeWeekdays[date.getDay()]; + const prefix = isFuture ? "" : "'múlt' "; + return `${prefix}'${weekday}' p'-kor'`; + }; +} +const formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P", +}; + +export const formatRelative = (token, date) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.cjs b/node_modules/date-fns/locale/hu/_lib/localize.cjs new file mode 100644 index 000000000..0bf20d301 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. n.év", "2. n.év", "3. n.év", "4. n.év"], + wide: ["1. negyedév", "2. negyedév", "3. negyedév", "4. negyedév"], +}; + +const formattingQuarterValues = { + narrow: ["I.", "II.", "III.", "IV."], + abbreviated: ["I. n.év", "II. n.év", "III. n.év", "IV. n.év"], + wide: ["I. negyedév", "II. negyedév", "III. negyedév", "IV. negyedév"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "Á", "M", "J", "J", "A", "Sz", "O", "N", "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["V", "H", "K", "Sz", "Cs", "P", "Sz"], + short: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + abbreviated: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/localize.d.cts b/node_modules/date-fns/locale/hu/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.d.ts b/node_modules/date-fns/locale/hu/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hu/_lib/localize.js b/node_modules/date-fns/locale/hu/_lib/localize.js new file mode 100644 index 000000000..2a8b2bf23 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize.js @@ -0,0 +1,138 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. n.év", "2. n.év", "3. n.év", "4. n.év"], + wide: ["1. negyedév", "2. negyedév", "3. negyedév", "4. negyedév"], +}; + +const formattingQuarterValues = { + narrow: ["I.", "II.", "III.", "IV."], + abbreviated: ["I. n.év", "II. n.év", "III. n.év", "IV. n.év"], + wide: ["I. negyedév", "II. negyedév", "III. negyedév", "IV. negyedév"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "Á", "M", "J", "J", "A", "Sz", "O", "N", "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["V", "H", "K", "Sz", "Cs", "P", "Sz"], + short: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + abbreviated: ["V", "H", "K", "Sze", "Cs", "P", "Szo"], + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel", + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hu/_lib/match.cjs b/node_modules/date-fns/locale/hu/_lib/match.cjs new file mode 100644 index 000000000..6fe309d9d --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i, +}; +const parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i, +}; +const parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: + /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i, +}; +const parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i], +}; + +const matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hu/_lib/match.d.cts b/node_modules/date-fns/locale/hu/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hu/_lib/match.d.ts b/node_modules/date-fns/locale/hu/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hu/_lib/match.js b/node_modules/date-fns/locale/hu/_lib/match.js new file mode 100644 index 000000000..750d09061 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i, +}; +const parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i, +}; +const parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: + /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i, +}; +const parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i], +}; + +const matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hu/cdn.js b/node_modules/date-fns/locale/hu/cdn.js new file mode 100644 index 000000000..ac0650fd8 --- /dev/null +++ b/node_modules/date-fns/locale/hu/cdn.js @@ -0,0 +1,579 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hu/_lib/formatDistance.js +var translations = { + about: "körülbelül", + over: "több mint", + almost: "majdnem", + lessthan: "kevesebb mint" +}; +var withoutSuffixes = { + xseconds: " másodperc", + halfaminute: "fél perc", + xminutes: " perc", + xhours: " óra", + xdays: " nap", + xweeks: " hét", + xmonths: " hónap", + xyears: " év" +}; +var withSuffixes = { + xseconds: { + "-1": " másodperccel ezelőtt", + 1: " másodperc múlva", + 0: " másodperce" + }, + halfaminute: { + "-1": "fél perccel ezelőtt", + 1: "fél perc múlva", + 0: "fél perce" + }, + xminutes: { + "-1": " perccel ezelőtt", + 1: " perc múlva", + 0: " perce" + }, + xhours: { + "-1": " órával ezelőtt", + 1: " óra múlva", + 0: " órája" + }, + xdays: { + "-1": " nappal ezelőtt", + 1: " nap múlva", + 0: " napja" + }, + xweeks: { + "-1": " héttel ezelőtt", + 1: " hét múlva", + 0: " hete" + }, + xmonths: { + "-1": " hónappal ezelőtt", + 1: " hónap múlva", + 0: " hónapja" + }, + xyears: { + "-1": " évvel ezelőtt", + 1: " év múlva", + 0: " éve" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], "") : token; + var addSuffix = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var key = unit.toLowerCase(); + var comparison = (options === null || options === void 0 ? void 0 : options.comparison) || 0; + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + var result = key === "halfaminute" ? translated : count + translated; + if (adverb) result = translations[adverb[0].toLowerCase()] + " " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y. MMMM d., EEEE", + long: "y. MMMM d.", + medium: "y. MMM d.", + short: "y. MM. dd." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hu/_lib/formatRelative.js +var accusativeWeekdays = [ +"vasárnap", +"hétfőn", +"kedden", +"szerdán", +"csütörtökön", +"pénteken", +"szombaton"]; + +function week(isFuture) { + return function (date) { + var weekday = accusativeWeekdays[date.getDay()]; + return "".concat(isFuture ? "" : "'múlt' ", "'").concat(weekday, "' p'-kor'"); + }; +} +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: "P" +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hu/_lib/localize.js +var eraValues = { + narrow: ["ie.", "isz."], + abbreviated: ["i. e.", "i. sz."], + wide: ["Krisztus előtt", "időszámításunk szerint"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. n.év", + "2. n.év", + "3. n.év", + "4. n.év"], + + wide: [ + "1. negyedév", + "2. negyedév", + "3. negyedév", + "4. negyedév"] + +}; +var formattingQuarterValues = { + narrow: [ + "I.", + "II.", + "III.", + "IV."], + + abbreviated: [ + "I. n.év", + "II. n.év", + "III. n.év", + "IV. n.év"], + + wide: [ + "I. negyedév", + "II. negyedév", + "III. negyedév", + "IV. negyedév"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "Á", + "M", + "J", + "J", + "A", + "Sz", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "febr.", + "márc.", + "ápr.", + "máj.", + "jún.", + "júl.", + "aug.", + "szept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "január", + "február", + "március", + "április", + "május", + "június", + "július", + "augusztus", + "szeptember", + "október", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "V", + "H", + "K", + "Sz", + "Cs", + "P", + "Sz"], + + short: [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo"], + + abbreviated: [ + "V", + "H", + "K", + "Sze", + "Cs", + "P", + "Szo"], + + wide: [ + "vasárnap", + "hétfő", + "kedd", + "szerda", + "csütörtök", + "péntek", + "szombat"] + +}; +var dayPeriodValues = { + narrow: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel" + }, + abbreviated: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "du.", + evening: "este", + night: "éjjel" + }, + wide: { + am: "de.", + pm: "du.", + midnight: "éjfél", + noon: "dél", + morning: "reggel", + afternoon: "délután", + evening: "este", + night: "éjjel" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;}, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide" + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hu.js +/** +* @category Locales +* @summary Hungarian locale. +* @language Hungarian +* @iso-639-2 hun +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +* @author Zoltan Szepesi [@twodcube](https://github.com/twodcube) +*/ +var hu = { + code: "hu", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1|I$/i, + /2|II$/i, + /3|III/i, + /4|IV/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmaásond]|sz/i, + abbreviated: /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a|á/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s|sz/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^már/i, + /^áp/i, + /^máj/i, + /^jún/i, + /^júl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^v/i, + /^h/i, + /^k/i, + /^sz/i, + /^c/i, + /^p/i, + /^sz/i], + + any: [ + /^v/i, + /^h/i, + /^k/i, + /^sze/i, + /^c/i, + /^p/i, + /^szo/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hu/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hu: hu }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/cdn.min.js b/node_modules/date-fns/locale/hu/cdn.min.js new file mode 100644 index 000000000..5a3eeafae --- /dev/null +++ b/node_modules/date-fns/locale/hu/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var d={date:u({formats:{full:`y. MMMM d., EEEE`,long:`y. MMMM d.`,medium:`y. MMM d.`,short:`y. MM. dd.`},defaultWidth:`full`}),time:u({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:u({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},f=[`vasárnap`,`hétfőn`,`kedden`,`szerdán`,`csütörtökön`,`pénteken`,`szombaton`];function p(e){return function(t){var n=f[t.getDay()];return`${e?``:`'múlt' `}'${n}' p'-kor'`}}var m={lastWeek:p(!1),yesterday:`'tegnap' p'-kor'`,today:`'ma' p'-kor'`,tomorrow:`'holnap' p'-kor'`,nextWeek:p(!0),other:`P`},h=function(e,t){var n=m[e];return typeof n==`function`?n(t):n};function g(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var _={ordinalNumber:function(e,t){return Number(e)+`.`},era:g({values:{narrow:[`ie.`,`isz.`],abbreviated:[`i. e.`,`i. sz.`],wide:[`Krisztus előtt`,`időszámításunk szerint`]},defaultWidth:`wide`}),quarter:g({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. n.év`,`2. n.év`,`3. n.év`,`4. n.év`],wide:[`1. negyedév`,`2. negyedév`,`3. negyedév`,`4. negyedév`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1},formattingValues:{narrow:[`I.`,`II.`,`III.`,`IV.`],abbreviated:[`I. n.év`,`II. n.év`,`III. n.év`,`IV. n.év`],wide:[`I. negyedév`,`II. negyedév`,`III. negyedév`,`IV. negyedév`]},defaultFormattingWidth:`wide`}),month:g({values:{narrow:[`J`,`F`,`M`,`Á`,`M`,`J`,`J`,`A`,`Sz`,`O`,`N`,`D`],abbreviated:[`jan.`,`febr.`,`márc.`,`ápr.`,`máj.`,`jún.`,`júl.`,`aug.`,`szept.`,`okt.`,`nov.`,`dec.`],wide:[`január`,`február`,`március`,`április`,`május`,`június`,`július`,`augusztus`,`szeptember`,`október`,`november`,`december`]},defaultWidth:`wide`}),day:g({values:{narrow:[`V`,`H`,`K`,`Sz`,`Cs`,`P`,`Sz`],short:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],abbreviated:[`V`,`H`,`K`,`Sze`,`Cs`,`P`,`Szo`],wide:[`vasárnap`,`hétfő`,`kedd`,`szerda`,`csütörtök`,`péntek`,`szombat`]},defaultWidth:`wide`}),dayPeriod:g({values:{narrow:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},abbreviated:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`du.`,evening:`este`,night:`éjjel`},wide:{am:`de.`,pm:`du.`,midnight:`éjfél`,noon:`dél`,morning:`reggel`,afternoon:`délután`,evening:`este`,night:`éjjel`}},defaultWidth:`wide`})};function v(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?b(s,function(e){return e.test(o)}):y(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function y(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function b(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var S={code:`hu`,formatDistance:l,formatLong:d,formatRelative:h,localize:_,match:{ordinalNumber:x({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:v({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:`any`}),quarter:v({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:v({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:v({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:`any`}),dayPeriod:v({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hu:S})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy.cjs b/node_modules/date-fns/locale/hy.cjs new file mode 100644 index 000000000..eaf5651e2 --- /dev/null +++ b/node_modules/date-fns/locale/hy.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.hy = void 0; +var _index = require("./hy/_lib/formatDistance.cjs"); +var _index2 = require("./hy/_lib/formatLong.cjs"); +var _index3 = require("./hy/_lib/formatRelative.cjs"); +var _index4 = require("./hy/_lib/localize.cjs"); +var _index5 = require("./hy/_lib/match.cjs"); + +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +const hy = (exports.hy = { + code: "hy", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/hy.d.cts b/node_modules/date-fns/locale/hy.d.cts new file mode 100644 index 000000000..bf302c0c7 --- /dev/null +++ b/node_modules/date-fns/locale/hy.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export declare const hy: Locale; diff --git a/node_modules/date-fns/locale/hy.d.ts b/node_modules/date-fns/locale/hy.d.ts new file mode 100644 index 000000000..bf302c0c7 --- /dev/null +++ b/node_modules/date-fns/locale/hy.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export declare const hy: Locale; diff --git a/node_modules/date-fns/locale/hy.js b/node_modules/date-fns/locale/hy.js new file mode 100644 index 000000000..da3caffad --- /dev/null +++ b/node_modules/date-fns/locale/hy.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./hy/_lib/formatDistance.js"; +import { formatLong } from "./hy/_lib/formatLong.js"; +import { formatRelative } from "./hy/_lib/formatRelative.js"; +import { localize } from "./hy/_lib/localize.js"; +import { match } from "./hy/_lib/match.js"; + +/** + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan](https://github.com/alexigityan) + */ +export const hy = { + code: "hy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default hy; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs b/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs new file mode 100644 index 000000000..0bafee388 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան", + }, + + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան", + }, + + halfAMinute: "կես րոպե", + + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե", + }, + + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե", + }, + + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ", + }, + + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ", + }, + + xDays: { + one: "1 օր", + other: "{{count}} օր", + }, + + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ", + }, + + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ", + }, + + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս", + }, + + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս", + }, + + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի", + }, + + xYears: { + one: "1 տարի", + other: "{{count}} տարի", + }, + + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի", + }, + + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " հետո"; + } else { + return result + " առաջ"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance.js b/node_modules/date-fns/locale/hy/_lib/formatDistance.js new file mode 100644 index 000000000..8b82a7f6c --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան", + }, + + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան", + }, + + halfAMinute: "կես րոպե", + + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե", + }, + + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե", + }, + + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ", + }, + + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ", + }, + + xDays: { + one: "1 օր", + other: "{{count}} օր", + }, + + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ", + }, + + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ", + }, + + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս", + }, + + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս", + }, + + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի", + }, + + xYears: { + one: "1 տարի", + other: "{{count}} տարի", + }, + + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի", + }, + + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " հետո"; + } else { + return result + " առաջ"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.cjs b/node_modules/date-fns/locale/hy/_lib/formatLong.cjs new file mode 100644 index 000000000..38c92929c --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts b/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts b/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong.js b/node_modules/date-fns/locale/hy/_lib/formatLong.js new file mode 100644 index 000000000..93744fdac --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs b/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs new file mode 100644 index 000000000..11a19f6a1 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative.js b/node_modules/date-fns/locale/hy/_lib/formatRelative.js new file mode 100644 index 000000000..52a229ca4 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.cjs b/node_modules/date-fns/locale/hy/_lib/localize.cjs new file mode 100644 index 000000000..ed555bd7d --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.cjs @@ -0,0 +1,180 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ք1", "Ք2", "Ք3", "Ք4"], + wide: ["1֊ին քառորդ", "2֊րդ քառորդ", "3֊րդ քառորդ", "4֊րդ քառորդ"], +}; + +const monthValues = { + narrow: ["Հ", "Փ", "Մ", "Ա", "Մ", "Հ", "Հ", "Օ", "Ս", "Հ", "Ն", "Դ"], + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ", + ], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր", + ], +}; + +const dayValues = { + narrow: ["Կ", "Ե", "Ե", "Չ", "Հ", "Ո", "Շ"], + short: ["կր", "եր", "եք", "չք", "հգ", "ուր", "շբ"], + abbreviated: ["կիր", "երկ", "երք", "չոր", "հնգ", "ուրբ", "շաբ"], + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + "֊ին"; + } + } + return number + "֊րդ"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/localize.d.cts b/node_modules/date-fns/locale/hy/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.d.ts b/node_modules/date-fns/locale/hy/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/hy/_lib/localize.js b/node_modules/date-fns/locale/hy/_lib/localize.js new file mode 100644 index 000000000..08d06d1e1 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize.js @@ -0,0 +1,178 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Ք1", "Ք2", "Ք3", "Ք4"], + wide: ["1֊ին քառորդ", "2֊րդ քառորդ", "3֊րդ քառորդ", "4֊րդ քառորդ"], +}; + +const monthValues = { + narrow: ["Հ", "Փ", "Մ", "Ա", "Մ", "Հ", "Հ", "Օ", "Ս", "Հ", "Ն", "Դ"], + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ", + ], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր", + ], +}; + +const dayValues = { + narrow: ["Կ", "Ե", "Ե", "Չ", "Հ", "Ո", "Շ"], + short: ["կր", "եր", "եք", "չք", "հգ", "ուր", "շբ"], + abbreviated: ["կիր", "երկ", "երք", "չոր", "հնգ", "ուրբ", "շաբ"], + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + const rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + "֊ին"; + } + } + return number + "֊րդ"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/hy/_lib/match.cjs b/node_modules/date-fns/locale/hy/_lib/match.cjs new file mode 100644 index 000000000..ecbc06854 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i, +}; +const parseEraPatterns = { + any: [/^ք/i, /^մ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i, + ], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i, +}; +const parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/hy/_lib/match.d.cts b/node_modules/date-fns/locale/hy/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hy/_lib/match.d.ts b/node_modules/date-fns/locale/hy/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/hy/_lib/match.js b/node_modules/date-fns/locale/hy/_lib/match.js new file mode 100644 index 000000000..eb2275cd4 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match.js @@ -0,0 +1,135 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i, +}; +const parseEraPatterns = { + any: [/^ք/i, /^մ/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i, + ], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i, +}; +const parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "wide", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/hy/cdn.js b/node_modules/date-fns/locale/hy/cdn.js new file mode 100644 index 000000000..240f8b330 --- /dev/null +++ b/node_modules/date-fns/locale/hy/cdn.js @@ -0,0 +1,596 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/hy/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "ավելի քիչ քան 1 վայրկյան", + other: "ավելի քիչ քան {{count}} վայրկյան" + }, + xSeconds: { + one: "1 վայրկյան", + other: "{{count}} վայրկյան" + }, + halfAMinute: "կես րոպե", + lessThanXMinutes: { + one: "ավելի քիչ քան 1 րոպե", + other: "ավելի քիչ քան {{count}} րոպե" + }, + xMinutes: { + one: "1 րոպե", + other: "{{count}} րոպե" + }, + aboutXHours: { + one: "մոտ 1 ժամ", + other: "մոտ {{count}} ժամ" + }, + xHours: { + one: "1 ժամ", + other: "{{count}} ժամ" + }, + xDays: { + one: "1 օր", + other: "{{count}} օր" + }, + aboutXWeeks: { + one: "մոտ 1 շաբաթ", + other: "մոտ {{count}} շաբաթ" + }, + xWeeks: { + one: "1 շաբաթ", + other: "{{count}} շաբաթ" + }, + aboutXMonths: { + one: "մոտ 1 ամիս", + other: "մոտ {{count}} ամիս" + }, + xMonths: { + one: "1 ամիս", + other: "{{count}} ամիս" + }, + aboutXYears: { + one: "մոտ 1 տարի", + other: "մոտ {{count}} տարի" + }, + xYears: { + one: "1 տարի", + other: "{{count}} տարի" + }, + overXYears: { + one: "ավելի քան 1 տարի", + other: "ավելի քան {{count}} տարի" + }, + almostXYears: { + one: "համարյա 1 տարի", + other: "համարյա {{count}} տարի" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " հետո";else + return result + " առաջ"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "d MMMM, y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/hy/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/hy/_lib/localize.js +var eraValues = { + narrow: ["Ք", "Մ"], + abbreviated: ["ՔԱ", "ՄԹ"], + wide: ["Քրիստոսից առաջ", "Մեր թվարկության"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Ք1", + "Ք2", + "Ք3", + "Ք4"], + + wide: [ + "1֊ին քառորդ", + "2֊րդ քառորդ", + "3֊րդ քառորդ", + "4֊րդ քառորդ"] + +}; +var monthValues = { + narrow: [ + "Հ", + "Փ", + "Մ", + "Ա", + "Մ", + "Հ", + "Հ", + "Օ", + "Ս", + "Հ", + "Ն", + "Դ"], + + abbreviated: [ + "հուն", + "փետ", + "մար", + "ապր", + "մայ", + "հուն", + "հուլ", + "օգս", + "սեպ", + "հոկ", + "նոյ", + "դեկ"], + + wide: [ + "հունվար", + "փետրվար", + "մարտ", + "ապրիլ", + "մայիս", + "հունիս", + "հուլիս", + "օգոստոս", + "սեպտեմբեր", + "հոկտեմբեր", + "նոյեմբեր", + "դեկտեմբեր"] + +}; +var dayValues = { + narrow: [ + "Կ", + "Ե", + "Ե", + "Չ", + "Հ", + "Ո", + "Շ"], + + short: [ + "կր", + "եր", + "եք", + "չք", + "հգ", + "ուր", + "շբ"], + + abbreviated: [ + "կիր", + "երկ", + "երք", + "չոր", + "հնգ", + "ուրբ", + "շաբ"], + + wide: [ + "կիրակի", + "երկուշաբթի", + "երեքշաբթի", + "չորեքշաբթի", + "հինգշաբթի", + "ուրբաթ", + "շաբաթ"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշեր", + noon: "կեսօր", + morning: "առավոտ", + afternoon: "ցերեկ", + evening: "երեկո", + night: "գիշեր" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "կեսգշ", + noon: "կեսօր", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "կեսգիշերին", + noon: "կեսօրին", + morning: "առավոտը", + afternoon: "ցերեկը", + evening: "երեկոյան", + night: "գիշերը" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 < 10) { + if (rem100 % 10 === 1) return number + "֊ին"; + } + return number + "֊րդ"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/hy.js +/** +* @category Locales +* @summary Armenian locale +* @language Armenian +* @iso-639-2 arm +* @author Alex Igityan [@alexigityan](https://github.com/alexigityan) +*/ +var hy = { + code: "hy", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)((-|֊)?(ին|րդ))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ք/i, /^մ/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^հ/i, + /^փ/i, + /^մ/i, + /^ա/i, + /^մ/i, + /^հ/i, + /^հ/i, + /^օ/i, + /^ս/i, + /^հ/i, + /^ն/i, + /^դ/i], + + any: [ + /^հու/i, + /^փ/i, + /^մար/i, + /^ա/i, + /^մայ/i, + /^հուն/i, + /^հուլ/i, + /^օ/i, + /^ս/i, + /^հոկ/i, + /^ն/i, + /^դ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^կ/i, + /^ե/i, + /^ե/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + short: [ + /^կ/i, + /^եր/i, + /^եք/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + abbreviated: [ + /^կ/i, + /^երկ/i, + /^երք/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i], + + wide: [ + /^կ/i, + /^երկ/i, + /^երե/i, + /^չ/i, + /^հ/i, + /^(ո|Ո)/, + /^շ/i] + + }, + defaultParseWidth: "wide" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/hy/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + hy: hy }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/cdn.min.js b/node_modules/date-fns/locale/hy/cdn.min.js new file mode 100644 index 000000000..d39e888f1 --- /dev/null +++ b/node_modules/date-fns/locale/hy/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` հետո`:r+` առաջ`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`d MMMM, y, EEEE`,long:`d MMMM, y`,medium:`d MMM, y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'ժ․'{{time}}`,long:`{{date}} 'ժ․'{{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'նախորդ' eeee p'֊ին'`,yesterday:`'երեկ' p'֊ին'`,today:`'այսօր' p'֊ին'`,tomorrow:`'վաղը' p'֊ին'`,nextWeek:`'հաջորդ' eeee p'֊ին'`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=n%100;return r<10&&r%10==1?n+`֊ին`:n+`֊րդ`},era:f({values:{narrow:[`Ք`,`Մ`],abbreviated:[`ՔԱ`,`ՄԹ`],wide:[`Քրիստոսից առաջ`,`Մեր թվարկության`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Ք1`,`Ք2`,`Ք3`,`Ք4`],wide:[`1֊ին քառորդ`,`2֊րդ քառորդ`,`3֊րդ քառորդ`,`4֊րդ քառորդ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`Հ`,`Փ`,`Մ`,`Ա`,`Մ`,`Հ`,`Հ`,`Օ`,`Ս`,`Հ`,`Ն`,`Դ`],abbreviated:[`հուն`,`փետ`,`մար`,`ապր`,`մայ`,`հուն`,`հուլ`,`օգս`,`սեպ`,`հոկ`,`նոյ`,`դեկ`],wide:[`հունվար`,`փետրվար`,`մարտ`,`ապրիլ`,`մայիս`,`հունիս`,`հուլիս`,`օգոստոս`,`սեպտեմբեր`,`հոկտեմբեր`,`նոյեմբեր`,`դեկտեմբեր`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Կ`,`Ե`,`Ե`,`Չ`,`Հ`,`Ո`,`Շ`],short:[`կր`,`եր`,`եք`,`չք`,`հգ`,`ուր`,`շբ`],abbreviated:[`կիր`,`երկ`,`երք`,`չոր`,`հնգ`,`ուրբ`,`շաբ`],wide:[`կիրակի`,`երկուշաբթի`,`երեքշաբթի`,`չորեքշաբթի`,`հինգշաբթի`,`ուրբաթ`,`շաբաթ`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշեր`,noon:`կեսօր`,morning:`առավոտ`,afternoon:`ցերեկ`,evening:`երեկո`,night:`գիշեր`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`կեսգշ`,noon:`կեսօր`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},abbreviated:{am:`AM`,pm:`PM`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`կեսգիշերին`,noon:`կեսօրին`,morning:`առավոտը`,afternoon:`ցերեկը`,evening:`երեկոյան`,night:`գիշերը`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`hy`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:`wide`}),dayPeriod:m({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{hy:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/id.cjs b/node_modules/date-fns/locale/id.cjs new file mode 100644 index 000000000..0cb689fc2 --- /dev/null +++ b/node_modules/date-fns/locale/id.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.id = void 0; +var _index = require("./id/_lib/formatDistance.cjs"); +var _index2 = require("./id/_lib/formatLong.cjs"); +var _index3 = require("./id/_lib/formatRelative.cjs"); +var _index4 = require("./id/_lib/localize.cjs"); +var _index5 = require("./id/_lib/match.cjs"); + +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +const id = (exports.id = { + code: "id", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/id.d.cts b/node_modules/date-fns/locale/id.d.cts new file mode 100644 index 000000000..6cd4d34e6 --- /dev/null +++ b/node_modules/date-fns/locale/id.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export declare const id: Locale; diff --git a/node_modules/date-fns/locale/id.d.ts b/node_modules/date-fns/locale/id.d.ts new file mode 100644 index 000000000..6cd4d34e6 --- /dev/null +++ b/node_modules/date-fns/locale/id.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export declare const id: Locale; diff --git a/node_modules/date-fns/locale/id.js b/node_modules/date-fns/locale/id.js new file mode 100644 index 000000000..56dbd847b --- /dev/null +++ b/node_modules/date-fns/locale/id.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./id/_lib/formatDistance.js"; +import { formatLong } from "./id/_lib/formatLong.js"; +import { formatRelative } from "./id/_lib/formatRelative.js"; +import { localize } from "./id/_lib/localize.js"; +import { match } from "./id/_lib/match.js"; + +/** + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) + * @author Benget Nata [@bentinata](https://github.com/bentinata) + * @author Budi Irawan [@deerawan](https://github.com/deerawan) + * @author Try Ajitiono [@imballinst](https://github.com/imballinst) + */ +export const id = { + code: "id", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default id; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.cjs b/node_modules/date-fns/locale/id/_lib/formatDistance.cjs new file mode 100644 index 000000000..8e45c2f3e --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 detik", + other: "kurang dari {{count}} detik", + }, + + xSeconds: { + one: "1 detik", + other: "{{count}} detik", + }, + + halfAMinute: "setengah menit", + + lessThanXMinutes: { + one: "kurang dari 1 menit", + other: "kurang dari {{count}} menit", + }, + + xMinutes: { + one: "1 menit", + other: "{{count}} menit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam waktu " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance.js b/node_modules/date-fns/locale/id/_lib/formatDistance.js new file mode 100644 index 000000000..f6b1882d2 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 detik", + other: "kurang dari {{count}} detik", + }, + + xSeconds: { + one: "1 detik", + other: "{{count}} detik", + }, + + halfAMinute: "setengah menit", + + lessThanXMinutes: { + one: "kurang dari 1 menit", + other: "kurang dari {{count}} menit", + }, + + xMinutes: { + one: "1 menit", + other: "{{count}} menit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam waktu " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.cjs b/node_modules/date-fns/locale/id/_lib/formatLong.cjs new file mode 100644 index 000000000..195789dfc --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy", +}; + +const timeFormats = { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.d.cts b/node_modules/date-fns/locale/id/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.d.ts b/node_modules/date-fns/locale/id/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/id/_lib/formatLong.js b/node_modules/date-fns/locale/id/_lib/formatLong.js new file mode 100644 index 000000000..8796be1d8 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy", +}; + +const timeFormats = { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.cjs b/node_modules/date-fns/locale/id/_lib/formatRelative.cjs new file mode 100644 index 000000000..f6c2cc361 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/id/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/id/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative.js b/node_modules/date-fns/locale/id/_lib/formatRelative.js new file mode 100644 index 000000000..a2edcd844 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/id/_lib/localize.cjs b/node_modules/date-fns/locale/id/_lib/localize.cjs new file mode 100644 index 000000000..b50c1fefc --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"], +}; + +// Note: in Indonesian, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["M", "S", "S", "R", "K", "J", "S"], + short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // Can't use "pertama", "kedua" because can't be parsed + + return "ke-" + number; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/id/_lib/localize.d.cts b/node_modules/date-fns/locale/id/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/id/_lib/localize.d.ts b/node_modules/date-fns/locale/id/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/id/_lib/localize.js b/node_modules/date-fns/locale/id/_lib/localize.js new file mode 100644 index 000000000..bb9db18f8 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"], +}; + +// Note: in Indonesian, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des", + ], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember", + ], +}; + +const dayValues = { + narrow: ["M", "S", "S", "R", "K", "J", "S"], + short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], + wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + // Can't use "pertama", "kedua" because can't be parsed + + return "ke-" + number; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/id/_lib/match.cjs b/node_modules/date-fns/locale/id/_lib/match.cjs new file mode 100644 index 000000000..a6a3b0fa7 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/id/_lib/match.d.cts b/node_modules/date-fns/locale/id/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/id/_lib/match.d.ts b/node_modules/date-fns/locale/id/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/id/_lib/match.js b/node_modules/date-fns/locale/id/_lib/match.js new file mode 100644 index 000000000..a3f24e218 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/id/cdn.js b/node_modules/date-fns/locale/id/cdn.js new file mode 100644 index 000000000..ca6c729b7 --- /dev/null +++ b/node_modules/date-fns/locale/id/cdn.js @@ -0,0 +1,576 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/id/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 detik", + other: "kurang dari {{count}} detik" + }, + xSeconds: { + one: "1 detik", + other: "{{count}} detik" + }, + halfAMinute: "setengah menit", + lessThanXMinutes: { + one: "kurang dari 1 menit", + other: "kurang dari {{count}} menit" + }, + xMinutes: { + one: "1 menit", + other: "{{count}} menit" + }, + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam" + }, + xHours: { + one: "1 jam", + other: "{{count}} jam" + }, + xDays: { + one: "1 hari", + other: "{{count}} hari" + }, + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu" + }, + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu" + }, + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan" + }, + xMonths: { + one: "1 bulan", + other: "{{count}} bulan" + }, + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun" + }, + xYears: { + one: "1 tahun", + other: "{{count}} tahun" + }, + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun" + }, + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dalam waktu " + result;else + return result + " yang lalu"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/id/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/id/_lib/localize.js +var eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masehi", "Masehi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "Kuartal ke-1", + "Kuartal ke-2", + "Kuartal ke-3", + "Kuartal ke-4"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mar", + "Apr", + "Mei", + "Jun", + "Jul", + "Agt", + "Sep", + "Okt", + "Nov", + "Des"], + + wide: [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember"] + +}; +var dayValues = { + narrow: [ + "M", + "S", + "S", + "R", + "K", + "J", + "S"], + + short: [ + "Min", + "Sen", + "Sel", + "Rab", + "Kam", + "Jum", + "Sab"], + + abbreviated: [ + "Min", + "Sen", + "Sel", + "Rab", + "Kam", + "Jum", + "Sab"], + + wide: [ + "Minggu", + "Senin", + "Selasa", + "Rabu", + "Kamis", + "Jumat", + "Sabtu"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "siang", + evening: "sore", + night: "malam" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return "ke-" + Number(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/id.js +/** +* @category Locales +* @summary Indonesian locale. +* @language Indonesian +* @iso-639-2 ind +* @author Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso) +* @author Benget Nata [@bentinata](https://github.com/bentinata) +* @author Budi Irawan [@deerawan](https://github.com/deerawan) +* @author Try Ajitiono [@imballinst](https://github.com/imballinst) +*/ +var id = { + code: "id", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^ke-(\d+)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^s/i, /^(m|e)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^m/i, + /^s/i, + /^s/i, + /^r/i, + /^k/i, + /^j/i, + /^s/i], + + any: [ + /^m/i, + /^sen/i, + /^sel/i, + /^r/i, + /^k/i, + /^j/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/id/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + id: id }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/cdn.min.js b/node_modules/date-fns/locale/id/cdn.min.js new file mode 100644 index 000000000..e7dea86ce --- /dev/null +++ b/node_modules/date-fns/locale/id/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dalam waktu `+r:r+` yang lalu`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`d/M/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'lalu pukul' p`,yesterday:`'Kemarin pukul' p`,today:`'Hari ini pukul' p`,tomorrow:`'Besok pukul' p`,nextWeek:`eeee 'pukul' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masehi`,`Masehi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`Kuartal ke-1`,`Kuartal ke-2`,`Kuartal ke-3`,`Kuartal ke-4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agt`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`M`,`S`,`S`,`R`,`K`,`J`,`S`],short:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],abbreviated:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],wide:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`id`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{id:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/is.cjs b/node_modules/date-fns/locale/is.cjs new file mode 100644 index 000000000..93cbe9e99 --- /dev/null +++ b/node_modules/date-fns/locale/is.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.is = void 0; +var _index = require("./is/_lib/formatDistance.cjs"); +var _index2 = require("./is/_lib/formatLong.cjs"); +var _index3 = require("./is/_lib/formatRelative.cjs"); +var _index4 = require("./is/_lib/localize.cjs"); +var _index5 = require("./is/_lib/match.cjs"); + +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +const is = (exports.is = { + code: "is", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/is.d.cts b/node_modules/date-fns/locale/is.d.cts new file mode 100644 index 000000000..0a91b5010 --- /dev/null +++ b/node_modules/date-fns/locale/is.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export declare const is: Locale; diff --git a/node_modules/date-fns/locale/is.d.ts b/node_modules/date-fns/locale/is.d.ts new file mode 100644 index 000000000..0a91b5010 --- /dev/null +++ b/node_modules/date-fns/locale/is.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export declare const is: Locale; diff --git a/node_modules/date-fns/locale/is.js b/node_modules/date-fns/locale/is.js new file mode 100644 index 000000000..0676eb20e --- /dev/null +++ b/node_modules/date-fns/locale/is.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./is/_lib/formatDistance.js"; +import { formatLong } from "./is/_lib/formatLong.js"; +import { formatRelative } from "./is/_lib/formatRelative.js"; +import { localize } from "./is/_lib/localize.js"; +import { match } from "./is/_lib/match.js"; + +/** + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank](https://github.com/derekblank) + * @author Arnór Ýmir [@lamayg](https://github.com/lamayg) + */ +export const is = { + code: "is", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default is; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.cjs b/node_modules/date-fns/locale/is/_lib/formatDistance.cjs new file mode 100644 index 000000000..ac17bba7d --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur", + }, + + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur", + }, + + halfAMinute: "hálf mínúta", + + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur", + }, + + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur", + }, + + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir", + }, + + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir", + }, + + xDays: { + one: "1 dagur", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur", + }, + + xWeeks: { + one: "1 viku", + other: "{{count}} vikur", + }, + + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir", + }, + + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir", + }, + + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár", + }, + + xYears: { + one: "1 ár", + other: "{{count}} ár", + }, + + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár", + }, + + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "í " + result; + } else { + return result + " síðan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/is/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/is/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance.js b/node_modules/date-fns/locale/is/_lib/formatDistance.js new file mode 100644 index 000000000..3b2b14be4 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur", + }, + + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur", + }, + + halfAMinute: "hálf mínúta", + + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur", + }, + + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur", + }, + + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir", + }, + + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir", + }, + + xDays: { + one: "1 dagur", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur", + }, + + xWeeks: { + one: "1 viku", + other: "{{count}} vikur", + }, + + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir", + }, + + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir", + }, + + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár", + }, + + xYears: { + one: "1 ár", + other: "{{count}} ár", + }, + + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár", + }, + + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "í " + result; + } else { + return result + " síðan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.cjs b/node_modules/date-fns/locale/is/_lib/formatLong.cjs new file mode 100644 index 000000000..e380a7b25 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "d.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.d.cts b/node_modules/date-fns/locale/is/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.d.ts b/node_modules/date-fns/locale/is/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/is/_lib/formatLong.js b/node_modules/date-fns/locale/is/_lib/formatLong.js new file mode 100644 index 000000000..b5068e06b --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "d.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.cjs b/node_modules/date-fns/locale/is/_lib/formatRelative.cjs new file mode 100644 index 000000000..f43d83ca1 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/is/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/is/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative.js b/node_modules/date-fns/locale/is/_lib/formatRelative.js new file mode 100644 index 000000000..c065cf802 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/is/_lib/localize.cjs b/node_modules/date-fns/locale/is/_lib/localize.cjs new file mode 100644 index 000000000..35cbbe28c --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1F", "2F", "3F", "4F"], + wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des.", + ], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "Þ", "M", "F", "F", "L"], + short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"], + abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/is/_lib/localize.d.cts b/node_modules/date-fns/locale/is/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/is/_lib/localize.d.ts b/node_modules/date-fns/locale/is/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/is/_lib/localize.js b/node_modules/date-fns/locale/is/_lib/localize.js new file mode 100644 index 000000000..10b815ddc --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1F", "2F", "3F", "4F"], + wide: ["1. fjórðungur", "2. fjórðungur", "3. fjórðungur", "4. fjórðungur"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "Á", "S", "Ó", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des.", + ], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "Þ", "M", "F", "F", "L"], + short: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"], + abbreviated: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/is/_lib/match.cjs b/node_modules/date-fns/locale/is/_lib/match.cjs new file mode 100644 index 000000000..d69f64728 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+(\.)?/i; + +const matchEraPatterns = { + narrow: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i, +}; +const parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i, +}; +const parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: + /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/is/_lib/match.d.cts b/node_modules/date-fns/locale/is/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/is/_lib/match.d.ts b/node_modules/date-fns/locale/is/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/is/_lib/match.js b/node_modules/date-fns/locale/is/_lib/match.js new file mode 100644 index 000000000..5e7c5e8bb --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+(\.)?/i; + +const matchEraPatterns = { + narrow: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i, +}; +const parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i, +}; +const parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: + /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/is/cdn.js b/node_modules/date-fns/locale/is/cdn.js new file mode 100644 index 000000000..86e3cfc48 --- /dev/null +++ b/node_modules/date-fns/locale/is/cdn.js @@ -0,0 +1,574 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/is/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minna en 1 sekúnda", + other: "minna en {{count}} sekúndur" + }, + xSeconds: { + one: "1 sekúnda", + other: "{{count}} sekúndur" + }, + halfAMinute: "hálf mínúta", + lessThanXMinutes: { + one: "minna en 1 mínúta", + other: "minna en {{count}} mínútur" + }, + xMinutes: { + one: "1 mínúta", + other: "{{count}} mínútur" + }, + aboutXHours: { + one: "u.þ.b. 1 klukkustund", + other: "u.þ.b. {{count}} klukkustundir" + }, + xHours: { + one: "1 klukkustund", + other: "{{count}} klukkustundir" + }, + xDays: { + one: "1 dagur", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "um viku", + other: "um {{count}} vikur" + }, + xWeeks: { + one: "1 viku", + other: "{{count}} vikur" + }, + aboutXMonths: { + one: "u.þ.b. 1 mánuður", + other: "u.þ.b. {{count}} mánuðir" + }, + xMonths: { + one: "1 mánuður", + other: "{{count}} mánuðir" + }, + aboutXYears: { + one: "u.þ.b. 1 ár", + other: "u.þ.b. {{count}} ár" + }, + xYears: { + one: "1 ár", + other: "{{count}} ár" + }, + overXYears: { + one: "meira en 1 ár", + other: "meira en {{count}} ár" + }, + almostXYears: { + one: "næstum 1 ár", + other: "næstum {{count}} ár" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "í " + result;else + return result + " síðan"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "d.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/is/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/is/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["fyrir Krist", "eftir Krist"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1F", + "2F", + "3F", + "4F"], + + wide: [ + "1. fjórðungur", + "2. fjórðungur", + "3. fjórðungur", + "4. fjórðungur"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "Á", + "S", + "Ó", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "sept.", + "okt.", + "nóv.", + "des."], + + wide: [ + "janúar", + "febrúar", + "mars", + "apríl", + "maí", + "júní", + "júlí", + "ágúst", + "september", + "október", + "nóvember", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "Þ", + "M", + "F", + "F", + "L"], + + short: [ + "Su", + "Má", + "Þr", + "Mi", + "Fi", + "Fö", + "La"], + + abbreviated: [ + "sun.", + "mán.", + "þri.", + "mið.", + "fim.", + "fös.", + "lau."], + + wide: [ + "sunnudagur", + "mánudagur", + "þriðjudagur", + "miðvikudagur", + "fimmtudagur", + "föstudagur", + "laugardagur"] + +}; +var dayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "miðnætti", + noon: "hádegi", + morning: "morgunn", + afternoon: "síðdegi", + evening: "kvöld", + night: "nótt" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "f", + pm: "e", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + }, + abbreviated: { + am: "f.h.", + pm: "e.h.", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + }, + wide: { + am: "fyrir hádegi", + pm: "eftir hádegi", + midnight: "á miðnætti", + noon: "á hádegi", + morning: "að morgni", + afternoon: "síðdegis", + evening: "um kvöld", + night: "um nótt" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/is.js +/** +* @category Locales +* @summary Icelandic locale. +* @language Icelandic +* @iso-639-2 isl +* @author Derek Blank [@derekblank](https://github.com/derekblank) +* @author Arnór Ýmir [@lamayg](https://github.com/lamayg) +*/ +var is = { + code: "is", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+(\.)?/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1\.?/i, + /2\.?/i, + /3\.?/i, + /4\.?/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmásónd]/i, + abbreviated: /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^á/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maí/i, + /^jún/i, + /^júl/i, + /^áu/i, + /^s/i, + /^ó/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^þ/i, + /^m/i, + /^f/i, + /^f/i, + /^l/i], + + any: [ + /^su/i, + /^má/i, + /^þr/i, + /^mi/i, + /^fi/i, + /^fö/i, + /^la/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/is/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + is: is }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/cdn.min.js b/node_modules/date-fns/locale/is/cdn.min.js new file mode 100644 index 000000000..a1e86afd4 --- /dev/null +++ b/node_modules/date-fns/locale/is/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`í `+r:r+` síðan`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`d.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'síðasta' dddd 'kl.' p`,yesterday:`'í gær kl.' p`,today:`'í dag kl.' p`,tomorrow:`'á morgun kl.' p`,nextWeek:`dddd 'kl.' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`fyrir Krist`,`eftir Krist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1F`,`2F`,`3F`,`4F`],wide:[`1. fjórðungur`,`2. fjórðungur`,`3. fjórðungur`,`4. fjórðungur`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`Á`,`S`,`Ó`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`sept.`,`okt.`,`nóv.`,`des.`],wide:[`janúar`,`febrúar`,`mars`,`apríl`,`maí`,`júní`,`júlí`,`ágúst`,`september`,`október`,`nóvember`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`Þ`,`M`,`F`,`F`,`L`],short:[`Su`,`Má`,`Þr`,`Mi`,`Fi`,`Fö`,`La`],abbreviated:[`sun.`,`mán.`,`þri.`,`mið.`,`fim.`,`fös.`,`lau.`],wide:[`sunnudagur`,`mánudagur`,`þriðjudagur`,`miðvikudagur`,`fimmtudagur`,`föstudagur`,`laugardagur`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`f`,pm:`e`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`miðnætti`,noon:`hádegi`,morning:`morgunn`,afternoon:`síðdegi`,evening:`kvöld`,night:`nótt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`f`,pm:`e`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},abbreviated:{am:`f.h.`,pm:`e.h.`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`},wide:{am:`fyrir hádegi`,pm:`eftir hádegi`,midnight:`á miðnætti`,noon:`á hádegi`,morning:`að morgni`,afternoon:`síðdegis`,evening:`um kvöld`,night:`um nótt`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`is`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{is:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/it-CH.cjs b/node_modules/date-fns/locale/it-CH.cjs new file mode 100644 index 000000000..06e00d102 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.itCH = void 0; +var _index = require("./it/_lib/formatDistance.cjs"); +var _index2 = require("./it/_lib/formatRelative.cjs"); +var _index3 = require("./it/_lib/localize.cjs"); +var _index4 = require("./it/_lib/match.cjs"); +var _index5 = require("./it-CH/_lib/formatLong.cjs"); + +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +const itCH = (exports.itCH = { + code: "it-CH", + formatDistance: _index.formatDistance, + formatLong: _index5.formatLong, + formatRelative: _index2.formatRelative, + localize: _index3.localize, + match: _index4.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/it-CH.d.cts b/node_modules/date-fns/locale/it-CH.d.cts new file mode 100644 index 000000000..af7e5e89a --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export declare const itCH: Locale; diff --git a/node_modules/date-fns/locale/it-CH.d.ts b/node_modules/date-fns/locale/it-CH.d.ts new file mode 100644 index 000000000..af7e5e89a --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export declare const itCH: Locale; diff --git a/node_modules/date-fns/locale/it-CH.js b/node_modules/date-fns/locale/it-CH.js new file mode 100644 index 000000000..6d9a28295 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./it/_lib/formatDistance.js"; +import { formatRelative } from "./it/_lib/formatRelative.js"; +import { localize } from "./it/_lib/localize.js"; +import { match } from "./it/_lib/match.js"; +import { formatLong } from "./it-CH/_lib/formatLong.js"; + +/** + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66](https://github.com/maic66) + */ +export const itCH = { + code: "it-CH", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default itCH; diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs b/node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs new file mode 100644 index 000000000..efa496c0a --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.cts b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.ts b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong.js b/node_modules/date-fns/locale/it-CH/_lib/formatLong.js new file mode 100644 index 000000000..8e729bb25 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/it-CH/cdn.js b/node_modules/date-fns/locale/it-CH/cdn.js new file mode 100644 index 000000000..3546ea7ac --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/cdn.js @@ -0,0 +1,804 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/it/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi" + }, + xSeconds: { + one: "un secondo", + other: "{{count}} secondi" + }, + halfAMinute: "alcuni secondi", + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti" + }, + xMinutes: { + one: "un minuto", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore" + }, + xHours: { + one: "un'ora", + other: "{{count}} ore" + }, + xDays: { + one: "un giorno", + other: "{{count}} giorni" + }, + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane" + }, + xWeeks: { + one: "una settimana", + other: "{{count}} settimane" + }, + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi" + }, + xMonths: { + one: "un mese", + other: "{{count}} mesi" + }, + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni" + }, + xYears: { + one: "un anno", + other: "{{count}} anni" + }, + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni" + }, + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "tra " + result;else + return result + " fa"; + return result; +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/it/_lib/formatRelative.js +var weekdays = [ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"]; + +function _lastWeek(day) { + switch (day) { + case 0:return "'domenica scorsa alle' p"; + default:return "'" + weekdays[day] + " scorso alle' p"; + } +} +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} +function _nextWeek(day) { + switch (day) { + case 0:return "'domenica prossima alle' p"; + default:return "'" + weekdays[day] + " prossimo alle' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/it/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo Cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "G", + "F", + "M", + "A", + "M", + "G", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic"], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "G", + "V", + "S"], + + short: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^(d|e)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + 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], + + 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] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^g/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^g/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i + } }, + defaultParseWidth: "any" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +//#endregion +//#region dist/date-fns/locale/it-CH.js +/** +* @category Locales +* @summary Italian locale (Switzerland). +* @language Italian +* @iso-639-2 ita +* @author Mike Peyer [@maic66](https://github.com/maic66) +*/ +var itCH = { + code: "it-CH", + formatDistance: formatDistance, + formatLong: { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) + }, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/it-CH/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + itCH: itCH }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/it-CH/cdn.min.js b/node_modules/date-fns/locale/it-CH/cdn.min.js new file mode 100644 index 000000000..dcae92088 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`tra `+r:r+` fa`:r},m=Symbol.for(`constructDateFrom`);function h(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&m in e?e[m](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e){var t=[...arguments].slice(1),n=h.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var _={};function v(){return _}function y(e,t){return h(t||e,e)}function b(e,t){var n,r,i=v(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=y(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?M(s,function(e){return e.test(o)}):j(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function j(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function M(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var P={ordinalNumber:N({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:A({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:A({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:A({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{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],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]},defaultParseWidth:`any`}),day:A({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:A({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})};function F(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var I={code:`it-CH`,formatDistance:p,formatLong:{date:F({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:F({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:F({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},formatRelative:D,localize:k,match:P,options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{itCH:I})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/it.cjs b/node_modules/date-fns/locale/it.cjs new file mode 100644 index 000000000..1d352f808 --- /dev/null +++ b/node_modules/date-fns/locale/it.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.it = void 0; +var _index = require("./it/_lib/formatDistance.cjs"); +var _index2 = require("./it/_lib/formatLong.cjs"); +var _index3 = require("./it/_lib/formatRelative.cjs"); +var _index4 = require("./it/_lib/localize.cjs"); +var _index5 = require("./it/_lib/match.cjs"); + +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +const it = (exports.it = { + code: "it", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/it.d.cts b/node_modules/date-fns/locale/it.d.cts new file mode 100644 index 000000000..0c52966f9 --- /dev/null +++ b/node_modules/date-fns/locale/it.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export declare const it: Locale; diff --git a/node_modules/date-fns/locale/it.d.ts b/node_modules/date-fns/locale/it.d.ts new file mode 100644 index 000000000..0c52966f9 --- /dev/null +++ b/node_modules/date-fns/locale/it.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export declare const it: Locale; diff --git a/node_modules/date-fns/locale/it.js b/node_modules/date-fns/locale/it.js new file mode 100644 index 000000000..28405fd56 --- /dev/null +++ b/node_modules/date-fns/locale/it.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./it/_lib/formatDistance.js"; +import { formatLong } from "./it/_lib/formatLong.js"; +import { formatRelative } from "./it/_lib/formatRelative.js"; +import { localize } from "./it/_lib/localize.js"; +import { match } from "./it/_lib/match.js"; + +/** + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) + * @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) + * @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) + */ +export const it = { + code: "it", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default it; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.cjs b/node_modules/date-fns/locale/it/_lib/formatDistance.cjs new file mode 100644 index 000000000..c54ba05ba --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi", + }, + + xSeconds: { + one: "un secondo", + other: "{{count}} secondi", + }, + + halfAMinute: "alcuni secondi", + + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti", + }, + + xMinutes: { + one: "un minuto", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore", + }, + + xHours: { + one: "un'ora", + other: "{{count}} ore", + }, + + xDays: { + one: "un giorno", + other: "{{count}} giorni", + }, + + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane", + }, + + xWeeks: { + one: "una settimana", + other: "{{count}} settimane", + }, + + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi", + }, + + xMonths: { + one: "un mese", + other: "{{count}} mesi", + }, + + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni", + }, + + xYears: { + one: "un anno", + other: "{{count}} anni", + }, + + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni", + }, + + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "tra " + result; + } else { + return result + " fa"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/it/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/it/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance.js b/node_modules/date-fns/locale/it/_lib/formatDistance.js new file mode 100644 index 000000000..83f0f1a8a --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi", + }, + + xSeconds: { + one: "un secondo", + other: "{{count}} secondi", + }, + + halfAMinute: "alcuni secondi", + + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti", + }, + + xMinutes: { + one: "un minuto", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore", + }, + + xHours: { + one: "un'ora", + other: "{{count}} ore", + }, + + xDays: { + one: "un giorno", + other: "{{count}} giorni", + }, + + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane", + }, + + xWeeks: { + one: "una settimana", + other: "{{count}} settimane", + }, + + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi", + }, + + xMonths: { + one: "un mese", + other: "{{count}} mesi", + }, + + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni", + }, + + xYears: { + one: "un anno", + other: "{{count}} anni", + }, + + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni", + }, + + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "tra " + result; + } else { + return result + " fa"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.cjs b/node_modules/date-fns/locale/it/_lib/formatLong.cjs new file mode 100644 index 000000000..866239024 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.d.cts b/node_modules/date-fns/locale/it/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.d.ts b/node_modules/date-fns/locale/it/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/it/_lib/formatLong.js b/node_modules/date-fns/locale/it/_lib/formatLong.js new file mode 100644 index 000000000..253895879 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.cjs b/node_modules/date-fns/locale/it/_lib/formatRelative.cjs new file mode 100644 index 000000000..4422e82cb --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.cjs @@ -0,0 +1,69 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", +]; + +function lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/it/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/it/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative.js b/node_modules/date-fns/locale/it/_lib/formatRelative.js new file mode 100644 index 000000000..c6d67c26f --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative.js @@ -0,0 +1,66 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", +]; + +function lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/it/_lib/localize.cjs b/node_modules/date-fns/locale/it/_lib/localize.cjs new file mode 100644 index 000000000..6d5cf9b14 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo Cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic", + ], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "G", "V", "S"], + short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(number); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/it/_lib/localize.d.cts b/node_modules/date-fns/locale/it/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/it/_lib/localize.d.ts b/node_modules/date-fns/locale/it/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/it/_lib/localize.js b/node_modules/date-fns/locale/it/_lib/localize.js new file mode 100644 index 000000000..ec7bd4cb3 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo Cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["G", "F", "M", "A", "M", "G", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic", + ], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre", + ], +}; + +const dayValues = { + narrow: ["D", "L", "M", "M", "G", "V", "S"], + short: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + abbreviated: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"], + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return String(number); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/it/_lib/match.cjs b/node_modules/date-fns/locale/it/_lib/match.cjs new file mode 100644 index 000000000..e3909b6a8 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^(d|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i, +}; +const parseMonthPatterns = { + 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, + ], + + 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, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/it/_lib/match.d.cts b/node_modules/date-fns/locale/it/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/it/_lib/match.d.ts b/node_modules/date-fns/locale/it/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/it/_lib/match.js b/node_modules/date-fns/locale/it/_lib/match.js new file mode 100644 index 000000000..e2b0bba58 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i, +}; +const parseEraPatterns = { + any: [/^a/i, /^(d|e)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i, +}; +const parseMonthPatterns = { + 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, + ], + + 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, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/it/cdn.js b/node_modules/date-fns/locale/it/cdn.js new file mode 100644 index 000000000..68ef05d7d --- /dev/null +++ b/node_modules/date-fns/locale/it/cdn.js @@ -0,0 +1,806 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/it/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "meno di un secondo", + other: "meno di {{count}} secondi" + }, + xSeconds: { + one: "un secondo", + other: "{{count}} secondi" + }, + halfAMinute: "alcuni secondi", + lessThanXMinutes: { + one: "meno di un minuto", + other: "meno di {{count}} minuti" + }, + xMinutes: { + one: "un minuto", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "circa un'ora", + other: "circa {{count}} ore" + }, + xHours: { + one: "un'ora", + other: "{{count}} ore" + }, + xDays: { + one: "un giorno", + other: "{{count}} giorni" + }, + aboutXWeeks: { + one: "circa una settimana", + other: "circa {{count}} settimane" + }, + xWeeks: { + one: "una settimana", + other: "{{count}} settimane" + }, + aboutXMonths: { + one: "circa un mese", + other: "circa {{count}} mesi" + }, + xMonths: { + one: "un mese", + other: "{{count}} mesi" + }, + aboutXYears: { + one: "circa un anno", + other: "circa {{count}} anni" + }, + xYears: { + one: "un anno", + other: "{{count}} anni" + }, + overXYears: { + one: "più di un anno", + other: "più di {{count}} anni" + }, + almostXYears: { + one: "quasi un anno", + other: "quasi {{count}} anni" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "tra " + result;else + return result + " fa"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/it/_lib/formatRelative.js +var weekdays = [ +"domenica", +"lunedì", +"martedì", +"mercoledì", +"giovedì", +"venerdì", +"sabato"]; + +function _lastWeek(day) { + switch (day) { + case 0:return "'domenica scorsa alle' p"; + default:return "'" + weekdays[day] + " scorso alle' p"; + } +} +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} +function _nextWeek(day) { + switch (day) { + case 0:return "'domenica prossima alle' p"; + default:return "'" + weekdays[day] + " prossimo alle' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/it/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["avanti Cristo", "dopo Cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "G", + "F", + "M", + "A", + "M", + "G", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "gen", + "feb", + "mar", + "apr", + "mag", + "giu", + "lug", + "ago", + "set", + "ott", + "nov", + "dic"], + + wide: [ + "gennaio", + "febbraio", + "marzo", + "aprile", + "maggio", + "giugno", + "luglio", + "agosto", + "settembre", + "ottobre", + "novembre", + "dicembre"] + +}; +var dayValues = { + narrow: [ + "D", + "L", + "M", + "M", + "G", + "V", + "S"], + + short: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + abbreviated: [ + "dom", + "lun", + "mar", + "mer", + "gio", + "ven", + "sab"], + + wide: [ + "domenica", + "lunedì", + "martedì", + "mercoledì", + "giovedì", + "venerdì", + "sabato"] + +}; +var dayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "mattina", + afternoon: "pomeriggio", + evening: "sera", + night: "notte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "m.", + pm: "p.", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "mezzanotte", + noon: "mezzogiorno", + morning: "di mattina", + afternoon: "del pomeriggio", + evening: "di sera", + night: "di notte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/it.js +/** +* @category Locales +* @summary Italian locale. +* @language Italian +* @iso-639-2 ita +* @author Alberto Restifo [@albertorestifo](https://github.com/albertorestifo) +* @author Giovanni Polimeni [@giofilo](https://github.com/giofilo) +* @author Vincenzo Carrese [@vin-car](https://github.com/vin-car) +*/ +var it = { + code: "it", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^a/i, /^(d|e)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + 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], + + 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] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^g/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^me/i, + /^g/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/it/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + it: it }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/cdn.min.js b/node_modules/date-fns/locale/it/cdn.min.js new file mode 100644 index 000000000..07aa0d66a --- /dev/null +++ b/node_modules/date-fns/locale/it/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`tra `+r:r+` fa`:r};function m(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var h={date:m({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:m({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},g=Symbol.for(`constructDateFrom`);function _(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e){var t=[...arguments].slice(1),n=_.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var y={};function b(){return y}function x(e,t){return _(t||e,e)}function S(e,t){var n,r,i=b(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=x(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?P(s,function(e){return e.test(o)}):N(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function N(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function P(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var I={code:`it`,formatDistance:p,formatLong:h,formatRelative:k,localize:j,match:{ordinalNumber:F({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:M({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:`any`}),quarter:M({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:M({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:`wide`,parsePatterns:{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],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]},defaultParseWidth:`any`}),day:M({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:M({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{it:I})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira.cjs b/node_modules/date-fns/locale/ja-Hira.cjs new file mode 100644 index 000000000..f8da0e552 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.jaHira = void 0; +var _index = require("./ja-Hira/_lib/formatDistance.cjs"); +var _index2 = require("./ja-Hira/_lib/formatLong.cjs"); +var _index3 = require("./ja-Hira/_lib/formatRelative.cjs"); +var _index4 = require("./ja-Hira/_lib/localize.cjs"); +var _index5 = require("./ja-Hira/_lib/match.cjs"); + +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +const jaHira = (exports.jaHira = { + code: "ja-Hira", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ja-Hira.d.cts b/node_modules/date-fns/locale/ja-Hira.d.cts new file mode 100644 index 000000000..4c756f9d3 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export declare const jaHira: Locale; diff --git a/node_modules/date-fns/locale/ja-Hira.d.ts b/node_modules/date-fns/locale/ja-Hira.d.ts new file mode 100644 index 000000000..4c756f9d3 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export declare const jaHira: Locale; diff --git a/node_modules/date-fns/locale/ja-Hira.js b/node_modules/date-fns/locale/ja-Hira.js new file mode 100644 index 000000000..e0ef775d7 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ja-Hira/_lib/formatDistance.js"; +import { formatLong } from "./ja-Hira/_lib/formatLong.js"; +import { formatRelative } from "./ja-Hira/_lib/formatRelative.js"; +import { localize } from "./ja-Hira/_lib/localize.js"; +import { match } from "./ja-Hira/_lib/match.js"; + +/** + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) + */ +export const jaHira = { + code: "ja-Hira", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default jaHira; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs new file mode 100644 index 000000000..e1585eb21 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.cjs @@ -0,0 +1,119 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう", + }, + + xSeconds: { + one: "1びょう", + other: "{{count}}びょう", + }, + + halfAMinute: "30びょう", + + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{count}}ふん", + }, + + xMinutes: { + one: "1ぷん", + other: "{{count}}ふん", + }, + + aboutXHours: { + one: "やく1じかん", + other: "やく{{count}}じかん", + }, + + xHours: { + one: "1じかん", + other: "{{count}}じかん", + }, + + xDays: { + one: "1にち", + other: "{{count}}にち", + }, + + aboutXWeeks: { + one: "やく1しゅうかん", + other: "やく{{count}}しゅうかん", + }, + + xWeeks: { + one: "1しゅうかん", + other: "{{count}}しゅうかん", + }, + + aboutXMonths: { + one: "やく1かげつ", + other: "やく{{count}}かげつ", + }, + + xMonths: { + one: "1かげつ", + other: "{{count}}かげつ", + }, + + aboutXYears: { + one: "やく1ねん", + other: "やく{{count}}ねん", + }, + + xYears: { + one: "1ねん", + other: "{{count}}ねん", + }, + + overXYears: { + one: "1ねんいじょう", + other: "{{count}}ねんいじょう", + }, + + almostXYears: { + one: "1ねんちかく", + other: "{{count}}ねんちかく", + }, +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "あと"; + } else { + return result + "まえ"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js new file mode 100644 index 000000000..52bd1f8fb --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance.js @@ -0,0 +1,115 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう", + }, + + xSeconds: { + one: "1びょう", + other: "{{count}}びょう", + }, + + halfAMinute: "30びょう", + + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{count}}ふん", + }, + + xMinutes: { + one: "1ぷん", + other: "{{count}}ふん", + }, + + aboutXHours: { + one: "やく1じかん", + other: "やく{{count}}じかん", + }, + + xHours: { + one: "1じかん", + other: "{{count}}じかん", + }, + + xDays: { + one: "1にち", + other: "{{count}}にち", + }, + + aboutXWeeks: { + one: "やく1しゅうかん", + other: "やく{{count}}しゅうかん", + }, + + xWeeks: { + one: "1しゅうかん", + other: "{{count}}しゅうかん", + }, + + aboutXMonths: { + one: "やく1かげつ", + other: "やく{{count}}かげつ", + }, + + xMonths: { + one: "1かげつ", + other: "{{count}}かげつ", + }, + + aboutXYears: { + one: "やく1ねん", + other: "やく{{count}}ねん", + }, + + xYears: { + one: "1ねん", + other: "{{count}}ねん", + }, + + overXYears: { + one: "1ねんいじょう", + other: "{{count}}ねんいじょう", + }, + + almostXYears: { + one: "1ねんちかく", + other: "{{count}}ねんちかく", + }, +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "あと"; + } else { + return result + "まえ"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs new file mode 100644 index 000000000..013b2af35 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + short: "y/MM/dd", +}; + +const timeFormats = { + full: "Hじmmふんssびょう zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js new file mode 100644 index 000000000..efdfaa6b8 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + short: "y/MM/dd", +}; + +const timeFormats = { + full: "Hじmmふんssびょう zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs new file mode 100644 index 000000000..e470d1f27 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "せんしゅうのeeeeのp", + yesterday: "きのうのp", + today: "きょうのp", + tomorrow: "あしたのp", + nextWeek: "よくしゅうのeeeeのp", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js new file mode 100644 index 000000000..a2cd30dcb --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "せんしゅうのeeeeのp", + yesterday: "きのうのp", + today: "きょうのp", + tomorrow: "あしたのp", + nextWeek: "よくしゅうのeeeeのp", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs new file mode 100644 index 000000000..530bfdd0a --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.cjs @@ -0,0 +1,188 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["きげんぜん", "せいれき"], + wide: ["きげんぜん", "せいれき"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["だい1しはんき", "だい2しはんき", "だい3しはんき", "だい4しはんき"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], +}; + +const dayValues = { + narrow: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + short: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + abbreviated: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + wide: [ + "にちようび", + "げつようび", + "かようび", + "すいようび", + "もくようび", + "きんようび", + "どようび", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}ねん`; + case "quarter": + return `だい${number}しはんき`; + case "month": + return `${number}がつ`; + case "week": + return `だい${number}しゅう`; + case "date": + return `${number}にち`; + case "hour": + return `${number}じ`; + case "minute": + return `${number}ふん`; + case "second": + return `${number}びょう`; + default: + return `${number}`; + } +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize.js b/node_modules/date-fns/locale/ja-Hira/_lib/localize.js new file mode 100644 index 000000000..e85d9c45b --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize.js @@ -0,0 +1,185 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["きげんぜん", "せいれき"], + wide: ["きげんぜん", "せいれき"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["だい1しはんき", "だい2しはんき", "だい3しはんき", "だい4しはんき"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ", + ], +}; + +const dayValues = { + narrow: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + short: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + abbreviated: ["にち", "げつ", "か", "すい", "もく", "きん", "ど"], + wide: [ + "にちようび", + "げつようび", + "かようび", + "すいようび", + "もくようび", + "きんようび", + "どようび", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}ねん`; + case "quarter": + return `だい${number}しはんき`; + case "month": + return `${number}がつ`; + case "week": + return `だい${number}しゅう`; + case "date": + return `${number}にち`; + case "hour": + return `${number}じ`; + case "minute": + return `${number}ふん`; + case "second": + return `${number}びょう`; + default: + return `${number}`; + } +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match.cjs b/node_modules/date-fns/locale/ja-Hira/_lib/match.cjs new file mode 100644 index 000000000..541c6db1f --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.cjs @@ -0,0 +1,122 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = + /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/, +}; +const parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(A|ごぜん)/i, + pm: /^(P|ごご)/i, + midnight: /^しんや|まよなか/i, + noon: /^しょうご/i, + morning: /^あさ/i, + afternoon: /^ごご/i, + evening: /^よる/i, + night: /^しんや/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match.d.cts b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match.js b/node_modules/date-fns/locale/ja-Hira/_lib/match.js new file mode 100644 index 000000000..6a699f8dc --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match.js @@ -0,0 +1,119 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = + /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/, +}; +const parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(A|ごぜん)/i, + pm: /^(P|ごご)/i, + midnight: /^しんや|まよなか/i, + noon: /^しょうご/i, + morning: /^あさ/i, + afternoon: /^ごご/i, + evening: /^よる/i, + night: /^しんや/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ja-Hira/cdn.js b/node_modules/date-fns/locale/ja-Hira/cdn.js new file mode 100644 index 000000000..91749d3f0 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/cdn.js @@ -0,0 +1,568 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ja-Hira/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1びょうみまん", + other: "{{count}}びょうみまん", + oneWithSuffix: "やく1びょう", + otherWithSuffix: "やく{{count}}びょう" + }, + xSeconds: { + one: "1びょう", + other: "{{count}}びょう" + }, + halfAMinute: "30びょう", + lessThanXMinutes: { + one: "1ぷんみまん", + other: "{{count}}ふんみまん", + oneWithSuffix: "やく1ぷん", + otherWithSuffix: "やく{{count}}ふん" + }, + xMinutes: { + one: "1ぷん", + other: "{{count}}ふん" + }, + aboutXHours: { + one: "やく1じかん", + other: "やく{{count}}じかん" + }, + xHours: { + one: "1じかん", + other: "{{count}}じかん" + }, + xDays: { + one: "1にち", + other: "{{count}}にち" + }, + aboutXWeeks: { + one: "やく1しゅうかん", + other: "やく{{count}}しゅうかん" + }, + xWeeks: { + one: "1しゅうかん", + other: "{{count}}しゅうかん" + }, + aboutXMonths: { + one: "やく1かげつ", + other: "やく{{count}}かげつ" + }, + xMonths: { + one: "1かげつ", + other: "{{count}}かげつ" + }, + aboutXYears: { + one: "やく1ねん", + other: "やく{{count}}ねん" + }, + xYears: { + one: "1ねん", + other: "{{count}}ねん" + }, + overXYears: { + one: "1ねんいじょう", + other: "{{count}}ねんいじょう" + }, + almostXYears: { + one: "1ねんちかく", + other: "{{count}}ねんちかく" + } +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options.addSuffix && tokenValue.oneWithSuffix) result = tokenValue.oneWithSuffix;else + result = tokenValue.one;} else + if (options.addSuffix && tokenValue.otherWithSuffix) result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options.addSuffix) if (options.comparison && options.comparison > 0) return result + "あと";else + return result + "まえ"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "yねんMがつdにちEEEE", + long: "yねんMがつdにち", + medium: "y/MM/dd", + short: "y/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "Hじmmふんssびょう zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ja-Hira/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "せんしゅうのeeeeのp", + yesterday: "きのうのp", + today: "きょうのp", + tomorrow: "あしたのp", + nextWeek: "よくしゅうのeeeeのp", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ja-Hira/_lib/localize.js +var eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["きげんぜん", "せいれき"], + wide: ["きげんぜん", "せいれき"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "だい1しはんき", + "だい2しはんき", + "だい3しはんき", + "だい4しはんき"] + +}; +var monthValues = { + narrow: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12"], + + abbreviated: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ"], + + wide: [ + "1がつ", + "2がつ", + "3がつ", + "4がつ", + "5がつ", + "6がつ", + "7がつ", + "8がつ", + "9がつ", + "10がつ", + "11がつ", + "12がつ"] + +}; +var dayValues = { + narrow: [ + "にち", + "げつ", + "か", + "すい", + "もく", + "きん", + "ど"], + + short: [ + "にち", + "げつ", + "か", + "すい", + "もく", + "きん", + "ど"], + + abbreviated: [ + "にち", + "げつ", + "か", + "すい", + "もく", + "きん", + "ど"], + + wide: [ + "にちようび", + "げつようび", + "かようび", + "すいようび", + "もくようび", + "きんようび", + "どようび"] + +}; +var dayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + }, + abbreviated: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + }, + wide: { + am: "ごぜん", + pm: "ごご", + midnight: "しんや", + noon: "しょうご", + morning: "あさ", + afternoon: "ごご", + evening: "よる", + night: "しんや" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "year":return "".concat(number, "\u306D\u3093"); + case "quarter":return "\u3060\u3044".concat(number, "\u3057\u306F\u3093\u304D"); + case "month":return "".concat(number, "\u304C\u3064"); + case "week":return "\u3060\u3044".concat(number, "\u3057\u3085\u3046"); + case "date":return "".concat(number, "\u306B\u3061"); + case "hour":return "".concat(number, "\u3058"); + case "minute":return "".concat(number, "\u3075\u3093"); + case "second":return "".concat(number, "\u3073\u3087\u3046"); + default:return "".concat(number); + } +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ja-Hira.js +/** +* @category Locales +* @summary Japanese (Hiragana) locale. +* @language Japanese (Hiragana) +* @iso-639-2 jpn +* @author Eri Hiramatsu [@Eritutteo](https://github.com/Eritutteo) +*/ +var jaHira = { + code: "ja-Hira", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /(1|一|1)/i, + /(2|二|2)/i, + /(3|三|3)/i, + /(4|四|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^にち/, + /^げつ/, + /^か/, + /^すい/, + /^もく/, + /^きん/, + /^ど/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^(A|ごぜん)/i, + pm: /^(P|ごご)/i, + midnight: /^しんや|まよなか/i, + noon: /^しょうご/i, + morning: /^あさ/i, + afternoon: /^ごご/i, + evening: /^よる/i, + night: /^しんや/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ja-Hira/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + jaHira: jaHira }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/cdn.min.js b/node_modules/date-fns/locale/ja-Hira/cdn.min.js new file mode 100644 index 000000000..f097d8bf5 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`あと`:r+`まえ`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`yねんMがつdにちEEEE`,long:`yねんMがつdにち`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`Hじmmふんssびょう zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`せんしゅうのeeeeのp`,yesterday:`きのうのp`,today:`きょうのp`,tomorrow:`あしたのp`,nextWeek:`よくしゅうのeeeeのp`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}ねん`;case`quarter`:return`だい${n}しはんき`;case`month`:return`${n}がつ`;case`week`:return`だい${n}しゅう`;case`date`:return`${n}にち`;case`hour`:return`${n}じ`;case`minute`:return`${n}ふん`;case`second`:return`${n}びょう`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],abbreviated:[`きげんぜん`,`せいれき`],wide:[`きげんぜん`,`せいれき`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`だい1しはんき`,`だい2しはんき`,`だい3しはんき`,`だい4しはんき`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`],wide:[`1がつ`,`2がつ`,`3がつ`,`4がつ`,`5がつ`,`6がつ`,`7がつ`,`8がつ`,`9がつ`,`10がつ`,`11がつ`,`12がつ`]},defaultWidth:`wide`}),day:f({values:{narrow:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],short:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],abbreviated:[`にち`,`げつ`,`か`,`すい`,`もく`,`きん`,`ど`],wide:[`にちようび`,`げつようび`,`かようび`,`すいようび`,`もくようび`,`きんようび`,`どようび`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},abbreviated:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},wide:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},abbreviated:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`},wide:{am:`ごぜん`,pm:`ごご`,midnight:`しんや`,noon:`しょうご`,morning:`あさ`,afternoon:`ごご`,evening:`よる`,night:`しんや`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ja-Hira`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{jaHira:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja.cjs b/node_modules/date-fns/locale/ja.cjs new file mode 100644 index 000000000..e5bb4f054 --- /dev/null +++ b/node_modules/date-fns/locale/ja.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.ja = void 0; +var _index = require("./ja/_lib/formatDistance.cjs"); +var _index2 = require("./ja/_lib/formatLong.cjs"); +var _index3 = require("./ja/_lib/formatRelative.cjs"); +var _index4 = require("./ja/_lib/localize.cjs"); +var _index5 = require("./ja/_lib/match.cjs"); + +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +const ja = (exports.ja = { + code: "ja", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ja.d.cts b/node_modules/date-fns/locale/ja.d.cts new file mode 100644 index 000000000..2ded1f2d4 --- /dev/null +++ b/node_modules/date-fns/locale/ja.d.cts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ja: Locale; diff --git a/node_modules/date-fns/locale/ja.d.ts b/node_modules/date-fns/locale/ja.d.ts new file mode 100644 index 000000000..2ded1f2d4 --- /dev/null +++ b/node_modules/date-fns/locale/ja.d.ts @@ -0,0 +1,13 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ja: Locale; diff --git a/node_modules/date-fns/locale/ja.js b/node_modules/date-fns/locale/ja.js new file mode 100644 index 000000000..8e5e27590 --- /dev/null +++ b/node_modules/date-fns/locale/ja.js @@ -0,0 +1,32 @@ +import { formatDistance } from "./ja/_lib/formatDistance.js"; +import { formatLong } from "./ja/_lib/formatLong.js"; +import { formatRelative } from "./ja/_lib/formatRelative.js"; +import { localize } from "./ja/_lib/localize.js"; +import { match } from "./ja/_lib/match.js"; + +/** + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) + * @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) + * @author Terrence Lam [@skyuplam](https://github.com/skyuplam) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export const ja = { + code: "ja", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ja; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs new file mode 100644 index 000000000..a84bc9cb5 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs @@ -0,0 +1,119 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒", + }, + + xSeconds: { + one: "1秒", + other: "{{count}}秒", + }, + + halfAMinute: "30秒", + + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{count}}分", + }, + + xMinutes: { + one: "1分", + other: "{{count}}分", + }, + + aboutXHours: { + one: "約1時間", + other: "約{{count}}時間", + }, + + xHours: { + one: "1時間", + other: "{{count}}時間", + }, + + xDays: { + one: "1日", + other: "{{count}}日", + }, + + aboutXWeeks: { + one: "約1週間", + other: "約{{count}}週間", + }, + + xWeeks: { + one: "1週間", + other: "{{count}}週間", + }, + + aboutXMonths: { + one: "約1か月", + other: "約{{count}}か月", + }, + + xMonths: { + one: "1か月", + other: "{{count}}か月", + }, + + aboutXYears: { + one: "約1年", + other: "約{{count}}年", + }, + + xYears: { + one: "1年", + other: "{{count}}年", + }, + + overXYears: { + one: "1年以上", + other: "{{count}}年以上", + }, + + almostXYears: { + one: "1年近く", + other: "{{count}}年近く", + }, +}; + +const formatDistance = (token, count, options) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "後"; + } else { + return result + "前"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance.js b/node_modules/date-fns/locale/ja/_lib/formatDistance.js new file mode 100644 index 000000000..af862fa4d --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance.js @@ -0,0 +1,115 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒", + }, + + xSeconds: { + one: "1秒", + other: "{{count}}秒", + }, + + halfAMinute: "30秒", + + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{count}}分", + }, + + xMinutes: { + one: "1分", + other: "{{count}}分", + }, + + aboutXHours: { + one: "約1時間", + other: "約{{count}}時間", + }, + + xHours: { + one: "1時間", + other: "{{count}}時間", + }, + + xDays: { + one: "1日", + other: "{{count}}日", + }, + + aboutXWeeks: { + one: "約1週間", + other: "約{{count}}週間", + }, + + xWeeks: { + one: "1週間", + other: "{{count}}週間", + }, + + aboutXMonths: { + one: "約1か月", + other: "約{{count}}か月", + }, + + xMonths: { + one: "1か月", + other: "{{count}}か月", + }, + + aboutXYears: { + one: "約1年", + other: "約{{count}}年", + }, + + xYears: { + one: "1年", + other: "{{count}}年", + }, + + overXYears: { + one: "1年以上", + other: "{{count}}年以上", + }, + + almostXYears: { + one: "1年近く", + other: "{{count}}年近く", + }, +}; + +export const formatDistance = (token, count, options) => { + options = options || {}; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "後"; + } else { + return result + "前"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong.cjs b/node_modules/date-fns/locale/ja/_lib/formatLong.cjs new file mode 100644 index 000000000..0cca44906 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + short: "y/MM/dd", +}; + +const timeFormats = { + full: "H時mm分ss秒 zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ja/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong.js b/node_modules/date-fns/locale/ja/_lib/formatLong.js new file mode 100644 index 000000000..52fe3f732 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + short: "y/MM/dd", +}; + +const timeFormats = { + full: "H時mm分ss秒 zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs new file mode 100644 index 000000000..a5f901eed --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs @@ -0,0 +1,16 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "先週のeeeeのp", + yesterday: "昨日のp", + today: "今日のp", + tomorrow: "明日のp", + nextWeek: "翌週のeeeeのp", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative.js b/node_modules/date-fns/locale/ja/_lib/formatRelative.js new file mode 100644 index 000000000..a534b77f2 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative.js @@ -0,0 +1,12 @@ +const formatRelativeLocale = { + lastWeek: "先週のeeeeのp", + yesterday: "昨日のp", + today: "今日のp", + tomorrow: "明日のp", + nextWeek: "翌週のeeeeのp", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => { + return formatRelativeLocale[token]; +}; diff --git a/node_modules/date-fns/locale/ja/_lib/localize.cjs b/node_modules/date-fns/locale/ja/_lib/localize.cjs new file mode 100644 index 000000000..92387f909 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["紀元前", "西暦"], + wide: ["紀元前", "西暦"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], +}; + +const dayValues = { + narrow: ["日", "月", "火", "水", "木", "金", "土"], + short: ["日", "月", "火", "水", "木", "金", "土"], + abbreviated: ["日", "月", "火", "水", "木", "金", "土"], + wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], +}; + +const dayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}年`; + case "quarter": + return `第${number}四半期`; + case "month": + return `${number}月`; + case "week": + return `第${number}週`; + case "date": + return `${number}日`; + case "hour": + return `${number}時`; + case "minute": + return `${number}分`; + case "second": + return `${number}秒`; + default: + return `${number}`; + } +}; + +const localize = (exports.localize = { + ordinalNumber: ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ja/_lib/localize.d.cts b/node_modules/date-fns/locale/ja/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja/_lib/localize.d.ts b/node_modules/date-fns/locale/ja/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ja/_lib/localize.js b/node_modules/date-fns/locale/ja/_lib/localize.js new file mode 100644 index 000000000..0e4b91a82 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["紀元前", "西暦"], + wide: ["紀元前", "西暦"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月", + ], +}; + +const dayValues = { + narrow: ["日", "月", "火", "水", "木", "金", "土"], + short: ["日", "月", "火", "水", "木", "金", "土"], + abbreviated: ["日", "月", "火", "水", "木", "金", "土"], + wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], +}; + +const dayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, +}; +const formattingDayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "year": + return `${number}年`; + case "quarter": + return `第${number}四半期`; + case "month": + return `${number}月`; + case "week": + return `第${number}週`; + case "date": + return `${number}日`; + case "hour": + return `${number}時`; + case "minute": + return `${number}分`; + case "second": + return `${number}秒`; + default: + return `${number}`; + } +}; + +export const localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ja/_lib/match.cjs b/node_modules/date-fns/locale/ja/_lib/match.cjs new file mode 100644 index 000000000..a159cac90 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.cjs @@ -0,0 +1,120 @@ +"use strict"; +exports.match = void 0; +var _index = require("../../_lib/buildMatchPatternFn.cjs"); +var _index2 = require("../../_lib/buildMatchFn.cjs"); + +const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/, +}; +const parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(A|午前)/i, + pm: /^(P|午後)/i, + midnight: /^深夜|真夜中/i, + noon: /^正午/i, + morning: /^朝/i, + afternoon: /^午後/i, + evening: /^夜/i, + night: /^深夜/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index2.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index2.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index2.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index2.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ja/_lib/match.d.cts b/node_modules/date-fns/locale/ja/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja/_lib/match.d.ts b/node_modules/date-fns/locale/ja/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ja/_lib/match.js b/node_modules/date-fns/locale/ja/_lib/match.js new file mode 100644 index 000000000..59607cb44 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match.js @@ -0,0 +1,118 @@ +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; + +const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i, +}; +const parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i, +}; +const parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i, +}; +const parseMonthPatterns = { + any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/, +}; +const parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/], +}; + +const matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(A|午前)/i, + pm: /^(P|午後)/i, + midnight: /^深夜|真夜中/i, + noon: /^正午/i, + morning: /^朝/i, + afternoon: /^午後/i, + evening: /^夜/i, + night: /^深夜/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ja/cdn.js b/node_modules/date-fns/locale/ja/cdn.js new file mode 100644 index 000000000..1d4bf09f0 --- /dev/null +++ b/node_modules/date-fns/locale/ja/cdn.js @@ -0,0 +1,572 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ja/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1秒未満", + other: "{{count}}秒未満", + oneWithSuffix: "約1秒", + otherWithSuffix: "約{{count}}秒" + }, + xSeconds: { + one: "1秒", + other: "{{count}}秒" + }, + halfAMinute: "30秒", + lessThanXMinutes: { + one: "1分未満", + other: "{{count}}分未満", + oneWithSuffix: "約1分", + otherWithSuffix: "約{{count}}分" + }, + xMinutes: { + one: "1分", + other: "{{count}}分" + }, + aboutXHours: { + one: "約1時間", + other: "約{{count}}時間" + }, + xHours: { + one: "1時間", + other: "{{count}}時間" + }, + xDays: { + one: "1日", + other: "{{count}}日" + }, + aboutXWeeks: { + one: "約1週間", + other: "約{{count}}週間" + }, + xWeeks: { + one: "1週間", + other: "{{count}}週間" + }, + aboutXMonths: { + one: "約1か月", + other: "約{{count}}か月" + }, + xMonths: { + one: "1か月", + other: "{{count}}か月" + }, + aboutXYears: { + one: "約1年", + other: "約{{count}}年" + }, + xYears: { + one: "1年", + other: "{{count}}年" + }, + overXYears: { + one: "1年以上", + other: "{{count}}年以上" + }, + almostXYears: { + one: "1年近く", + other: "{{count}}年近く" + } +}; +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options.addSuffix && tokenValue.oneWithSuffix) result = tokenValue.oneWithSuffix;else + result = tokenValue.one;} else + if (options.addSuffix && tokenValue.otherWithSuffix) result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options.addSuffix) if (options.comparison && options.comparison > 0) return result + "後";else + return result + "前"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y年M月d日EEEE", + long: "y年M月d日", + medium: "y/MM/dd", + short: "y/MM/dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H時mm分ss秒 zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ja/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "先週のeeeeのp", + yesterday: "昨日のp", + today: "今日のp", + tomorrow: "明日のp", + nextWeek: "翌週のeeeeのp", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ja/_lib/localize.js +var eraValues = { + narrow: ["BC", "AC"], + abbreviated: ["紀元前", "西暦"], + wide: ["紀元前", "西暦"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "第1四半期", + "第2四半期", + "第3四半期", + "第4四半期"] + +}; +var monthValues = { + narrow: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12"], + + abbreviated: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月"], + + wide: [ + "1月", + "2月", + "3月", + "4月", + "5月", + "6月", + "7月", + "8月", + "9月", + "10月", + "11月", + "12月"] + +}; +var dayValues = { + narrow: [ + "日", + "月", + "火", + "水", + "木", + "金", + "土"], + + short: [ + "日", + "月", + "火", + "水", + "木", + "金", + "土"], + + abbreviated: [ + "日", + "月", + "火", + "水", + "木", + "金", + "土"], + + wide: [ + "日曜日", + "月曜日", + "火曜日", + "水曜日", + "木曜日", + "金曜日", + "土曜日"] + +}; +var dayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + }, + abbreviated: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + }, + wide: { + am: "午前", + pm: "午後", + midnight: "深夜", + noon: "正午", + morning: "朝", + afternoon: "午後", + evening: "夜", + night: "深夜" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "year":return "".concat(number, "\u5E74"); + case "quarter":return "\u7B2C".concat(number, "\u56DB\u534A\u671F"); + case "month":return "".concat(number, "\u6708"); + case "week":return "\u7B2C".concat(number, "\u9031"); + case "date":return "".concat(number, "\u65E5"); + case "hour":return "".concat(number, "\u6642"); + case "minute":return "".concat(number, "\u5206"); + case "second":return "".concat(number, "\u79D2"); + default:return "".concat(number); + } +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/ja.js +/** +* @category Locales +* @summary Japanese locale. +* @language Japanese +* @iso-639-2 jpn +* @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) +* @author Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) +* @author Luca Ban [@mesqueeb](https://github.com/mesqueeb) +* @author Terrence Lam [@skyuplam](https://github.com/skyuplam) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var ja = { + code: "ja", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /(1|一|1)/i, + /(2|二|2)/i, + /(3|三|3)/i, + /(4|四|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1\D/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^日/, + /^月/, + /^火/, + /^水/, + /^木/, + /^金/, + /^土/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^(A|午前)/i, + pm: /^(P|午後)/i, + midnight: /^深夜|真夜中/i, + noon: /^正午/i, + morning: /^朝/i, + afternoon: /^午後/i, + evening: /^夜/i, + night: /^深夜/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ja/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ja: ja }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/cdn.min.js b/node_modules/date-fns/locale/ja/cdn.min.js new file mode 100644 index 000000000..4da09f403 --- /dev/null +++ b/node_modules/date-fns/locale/ja/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`後`:r+`前`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`y年M月d日EEEE`,long:`y年M月d日`,medium:`y/MM/dd`,short:`y/MM/dd`},defaultWidth:`full`}),time:c({formats:{full:`H時mm分ss秒 zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`先週のeeeeのp`,yesterday:`昨日のp`,today:`今日のp`,tomorrow:`明日のp`,nextWeek:`翌週のeeeeのp`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`year`:return`${n}年`;case`quarter`:return`第${n}四半期`;case`month`:return`${n}月`;case`week`:return`第${n}週`;case`date`:return`${n}日`;case`hour`:return`${n}時`;case`minute`:return`${n}分`;case`second`:return`${n}秒`;default:return`${n}`}},era:f({values:{narrow:[`BC`,`AC`],abbreviated:[`紀元前`,`西暦`],wide:[`紀元前`,`西暦`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`第1四半期`,`第2四半期`,`第3四半期`,`第4四半期`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},defaultWidth:`wide`}),day:f({values:{narrow:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],short:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],abbreviated:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],wide:[`日曜日`,`月曜日`,`火曜日`,`水曜日`,`木曜日`,`金曜日`,`土曜日`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},abbreviated:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`},wide:{am:`午前`,pm:`午後`,midnight:`深夜`,noon:`正午`,morning:`朝`,afternoon:`午後`,evening:`夜`,night:`深夜`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if ( + options?.addSuffix && + options.comparison && + options.comparison > 0 + ) { + result = tokenValue.future.replace("{{count}}", String(count)); + } else if (options?.addSuffix) { + result = tokenValue.past.replace("{{count}}", String(count)); + } else { + result = tokenValue.present.replace("{{count}}", String(count)); + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance.js b/node_modules/date-fns/locale/ka/_lib/formatDistance.js new file mode 100644 index 000000000..097f272f8 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance.js @@ -0,0 +1,118 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + past: "{{count}} წამზე ნაკლები ხნის წინ", + present: "{{count}} წამზე ნაკლები", + future: "{{count}} წამზე ნაკლებში", + }, + + xSeconds: { + past: "{{count}} წამის წინ", + present: "{{count}} წამი", + future: "{{count}} წამში", + }, + + halfAMinute: { + past: "ნახევარი წუთის წინ", + present: "ნახევარი წუთი", + future: "ნახევარი წუთში", + }, + + lessThanXMinutes: { + past: "{{count}} წუთზე ნაკლები ხნის წინ", + present: "{{count}} წუთზე ნაკლები", + future: "{{count}} წუთზე ნაკლებში", + }, + + xMinutes: { + past: "{{count}} წუთის წინ", + present: "{{count}} წუთი", + future: "{{count}} წუთში", + }, + + aboutXHours: { + past: "დაახლოებით {{count}} საათის წინ", + present: "დაახლოებით {{count}} საათი", + future: "დაახლოებით {{count}} საათში", + }, + + xHours: { + past: "{{count}} საათის წინ", + present: "{{count}} საათი", + future: "{{count}} საათში", + }, + + xDays: { + past: "{{count}} დღის წინ", + present: "{{count}} დღე", + future: "{{count}} დღეში", + }, + + aboutXWeeks: { + past: "დაახლოებით {{count}} კვირას წინ", + present: "დაახლოებით {{count}} კვირა", + future: "დაახლოებით {{count}} კვირაში", + }, + + xWeeks: { + past: "{{count}} კვირას კვირა", + present: "{{count}} კვირა", + future: "{{count}} კვირაში", + }, + + aboutXMonths: { + past: "დაახლოებით {{count}} თვის წინ", + present: "დაახლოებით {{count}} თვე", + future: "დაახლოებით {{count}} თვეში", + }, + + xMonths: { + past: "{{count}} თვის წინ", + present: "{{count}} თვე", + future: "{{count}} თვეში", + }, + + aboutXYears: { + past: "დაახლოებით {{count}} წლის წინ", + present: "დაახლოებით {{count}} წელი", + future: "დაახლოებით {{count}} წელში", + }, + + xYears: { + past: "{{count}} წლის წინ", + present: "{{count}} წელი", + future: "{{count}} წელში", + }, + + overXYears: { + past: "{{count}} წელზე მეტი ხნის წინ", + present: "{{count}} წელზე მეტი", + future: "{{count}} წელზე მეტი ხნის შემდეგ", + }, + + almostXYears: { + past: "თითქმის {{count}} წლის წინ", + present: "თითქმის {{count}} წელი", + future: "თითქმის {{count}} წელში", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if ( + options?.addSuffix && + options.comparison && + options.comparison > 0 + ) { + result = tokenValue.future.replace("{{count}}", String(count)); + } else if (options?.addSuffix) { + result = tokenValue.past.replace("{{count}}", String(count)); + } else { + result = tokenValue.present.replace("{{count}}", String(count)); + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.cjs b/node_modules/date-fns/locale/ka/_lib/formatLong.cjs new file mode 100644 index 000000000..f8200f5b1 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM, y", + long: "do, MMMM, y", + medium: "d, MMM, y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}'-ზე'", + long: "{{date}} {{time}}'-ზე'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ka/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ka/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong.js b/node_modules/date-fns/locale/ka/_lib/formatLong.js new file mode 100644 index 000000000..a9fce5482 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM, y", + long: "do, MMMM, y", + medium: "d, MMM, y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}'-ზე'", + long: "{{date}} {{time}}'-ზე'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ka/_lib/formatRelative.cjs new file mode 100644 index 000000000..b90208ab5 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'წინა' eeee p'-ზე'", + yesterday: "'გუშინ' p'-ზე'", + today: "'დღეს' p'-ზე'", + tomorrow: "'ხვალ' p'-ზე'", + nextWeek: "'შემდეგი' eeee p'-ზე'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative.js b/node_modules/date-fns/locale/ka/_lib/formatRelative.js new file mode 100644 index 000000000..b4078021b --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'წინა' eeee p'-ზე'", + yesterday: "'გუშინ' p'-ზე'", + today: "'დღეს' p'-ზე'", + tomorrow: "'ხვალ' p'-ზე'", + nextWeek: "'შემდეგი' eeee p'-ზე'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ka/_lib/localize.cjs b/node_modules/date-fns/locale/ka/_lib/localize.cjs new file mode 100644 index 000000000..eeb8e98cd --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.cjs @@ -0,0 +1,189 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ჩ.წ-მდე", "ჩ.წ"], + abbreviated: ["ჩვ.წ-მდე", "ჩვ.წ"], + wide: ["ჩვენს წელთაღრიცხვამდე", "ჩვენი წელთაღრიცხვით"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ლი კვ", "2-ე კვ", "3-ე კვ", "4-ე კვ"], + wide: ["1-ლი კვარტალი", "2-ე კვარტალი", "3-ე კვარტალი", "4-ე კვარტალი"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "ია", + "თე", + "მა", + "აპ", + "მს", + "ვნ", + "ვლ", + "აგ", + "სე", + "ოქ", + "ნო", + "დე", + ], + + abbreviated: [ + "იან", + "თებ", + "მარ", + "აპრ", + "მაი", + "ივნ", + "ივლ", + "აგვ", + "სექ", + "ოქტ", + "ნოე", + "დეკ", + ], + + wide: [ + "იანვარი", + "თებერვალი", + "მარტი", + "აპრილი", + "მაისი", + "ივნისი", + "ივლისი", + "აგვისტო", + "სექტემბერი", + "ოქტომბერი", + "ნოემბერი", + "დეკემბერი", + ], +}; + +const dayValues = { + narrow: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"], + short: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + abbreviated: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + wide: [ + "კვირა", + "ორშაბათი", + "სამშაბათი", + "ოთხშაბათი", + "ხუთშაბათი", + "პარასკევი", + "შაბათი", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + + if (number === 1) { + return number + "-ლი"; + } + + return number + "-ე"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ka/_lib/localize.d.cts b/node_modules/date-fns/locale/ka/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ka/_lib/localize.d.ts b/node_modules/date-fns/locale/ka/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ka/_lib/localize.js b/node_modules/date-fns/locale/ka/_lib/localize.js new file mode 100644 index 000000000..61624d29d --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize.js @@ -0,0 +1,187 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ჩ.წ-მდე", "ჩ.წ"], + abbreviated: ["ჩვ.წ-მდე", "ჩვ.წ"], + wide: ["ჩვენს წელთაღრიცხვამდე", "ჩვენი წელთაღრიცხვით"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ლი კვ", "2-ე კვ", "3-ე კვ", "4-ე კვ"], + wide: ["1-ლი კვარტალი", "2-ე კვარტალი", "3-ე კვარტალი", "4-ე კვარტალი"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "ია", + "თე", + "მა", + "აპ", + "მს", + "ვნ", + "ვლ", + "აგ", + "სე", + "ოქ", + "ნო", + "დე", + ], + + abbreviated: [ + "იან", + "თებ", + "მარ", + "აპრ", + "მაი", + "ივნ", + "ივლ", + "აგვ", + "სექ", + "ოქტ", + "ნოე", + "დეკ", + ], + + wide: [ + "იანვარი", + "თებერვალი", + "მარტი", + "აპრილი", + "მაისი", + "ივნისი", + "ივლისი", + "აგვისტო", + "სექტემბერი", + "ოქტომბერი", + "ნოემბერი", + "დეკემბერი", + ], +}; + +const dayValues = { + narrow: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"], + short: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + abbreviated: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"], + wide: [ + "კვირა", + "ორშაბათი", + "სამშაბათი", + "ოთხშაბათი", + "ხუთშაბათი", + "პარასკევი", + "შაბათი", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით", + }, +}; + +const ordinalNumber = (dirtyNumber) => { + const number = Number(dirtyNumber); + + if (number === 1) { + return number + "-ლი"; + } + + return number + "-ე"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ka/_lib/match.cjs b/node_modules/date-fns/locale/ka/_lib/match.cjs new file mode 100644 index 000000000..e7cdbc8c0 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.cjs @@ -0,0 +1,118 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-ლი|-ე)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ჩვ?\.წ)/i, + abbreviated: /^(ჩვ?\.წ)/i, + wide: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i, +}; +const parseEraPatterns = { + any: [ + /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i, + /^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i, +}; +const parseMonthPatterns = { + any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i, +}; +const parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i], +}; + +const matchDayPeriodPatterns = { + any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^შუაღ/i, + noon: /^შუადღ/i, + morning: /^დილ/i, + afternoon: /ნაშუადღევს/i, + evening: /საღამო/i, + night: /ღამ/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "any", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ka/_lib/match.d.cts b/node_modules/date-fns/locale/ka/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ka/_lib/match.d.ts b/node_modules/date-fns/locale/ka/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ka/_lib/match.js b/node_modules/date-fns/locale/ka/_lib/match.js new file mode 100644 index 000000000..bb1d755f7 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match.js @@ -0,0 +1,115 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-ლი|-ე)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ჩვ?\.წ)/i, + abbreviated: /^(ჩვ?\.წ)/i, + wide: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i, +}; +const parseEraPatterns = { + any: [ + /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i, + /^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i, +}; +const parseMonthPatterns = { + any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i, +}; +const parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i], +}; + +const matchDayPeriodPatterns = { + any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^შუაღ/i, + noon: /^შუადღ/i, + morning: /^დილ/i, + afternoon: /ნაშუადღევს/i, + evening: /საღამო/i, + night: /ღამ/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "any", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ka/cdn.js b/node_modules/date-fns/locale/ka/cdn.js new file mode 100644 index 000000000..900cdbae6 --- /dev/null +++ b/node_modules/date-fns/locale/ka/cdn.js @@ -0,0 +1,559 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ka/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + past: "{{count}} წამზე ნაკლები ხნის წინ", + present: "{{count}} წამზე ნაკლები", + future: "{{count}} წამზე ნაკლებში" + }, + xSeconds: { + past: "{{count}} წამის წინ", + present: "{{count}} წამი", + future: "{{count}} წამში" + }, + halfAMinute: { + past: "ნახევარი წუთის წინ", + present: "ნახევარი წუთი", + future: "ნახევარი წუთში" + }, + lessThanXMinutes: { + past: "{{count}} წუთზე ნაკლები ხნის წინ", + present: "{{count}} წუთზე ნაკლები", + future: "{{count}} წუთზე ნაკლებში" + }, + xMinutes: { + past: "{{count}} წუთის წინ", + present: "{{count}} წუთი", + future: "{{count}} წუთში" + }, + aboutXHours: { + past: "დაახლოებით {{count}} საათის წინ", + present: "დაახლოებით {{count}} საათი", + future: "დაახლოებით {{count}} საათში" + }, + xHours: { + past: "{{count}} საათის წინ", + present: "{{count}} საათი", + future: "{{count}} საათში" + }, + xDays: { + past: "{{count}} დღის წინ", + present: "{{count}} დღე", + future: "{{count}} დღეში" + }, + aboutXWeeks: { + past: "დაახლოებით {{count}} კვირას წინ", + present: "დაახლოებით {{count}} კვირა", + future: "დაახლოებით {{count}} კვირაში" + }, + xWeeks: { + past: "{{count}} კვირას კვირა", + present: "{{count}} კვირა", + future: "{{count}} კვირაში" + }, + aboutXMonths: { + past: "დაახლოებით {{count}} თვის წინ", + present: "დაახლოებით {{count}} თვე", + future: "დაახლოებით {{count}} თვეში" + }, + xMonths: { + past: "{{count}} თვის წინ", + present: "{{count}} თვე", + future: "{{count}} თვეში" + }, + aboutXYears: { + past: "დაახლოებით {{count}} წლის წინ", + present: "დაახლოებით {{count}} წელი", + future: "დაახლოებით {{count}} წელში" + }, + xYears: { + past: "{{count}} წლის წინ", + present: "{{count}} წელი", + future: "{{count}} წელში" + }, + overXYears: { + past: "{{count}} წელზე მეტი ხნის წინ", + present: "{{count}} წელზე მეტი", + future: "{{count}} წელზე მეტი ხნის შემდეგ" + }, + almostXYears: { + past: "თითქმის {{count}} წლის წინ", + present: "თითქმის {{count}} წელი", + future: "თითქმის {{count}} წელში" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (options !== null && options !== void 0 && options.addSuffix && options.comparison && options.comparison > 0) result = tokenValue.future.replace("{{count}}", String(count));else + if (options !== null && options !== void 0 && options.addSuffix) result = tokenValue.past.replace("{{count}}", String(count));else + result = tokenValue.present.replace("{{count}}", String(count)); + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM, y", + long: "do, MMMM, y", + medium: "d, MMM, y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}'-ზე'", + long: "{{date}} {{time}}'-ზე'", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ka/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'წინა' eeee p'-ზე'", + yesterday: "'გუშინ' p'-ზე'", + today: "'დღეს' p'-ზე'", + tomorrow: "'ხვალ' p'-ზე'", + nextWeek: "'შემდეგი' eeee p'-ზე'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ka/_lib/localize.js +var eraValues = { + narrow: ["ჩ.წ-მდე", "ჩ.წ"], + abbreviated: ["ჩვ.წ-მდე", "ჩვ.წ"], + wide: ["ჩვენს წელთაღრიცხვამდე", "ჩვენი წელთაღრიცხვით"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-ლი კვ", + "2-ე კვ", + "3-ე კვ", + "4-ე კვ"], + + wide: [ + "1-ლი კვარტალი", + "2-ე კვარტალი", + "3-ე კვარტალი", + "4-ე კვარტალი"] + +}; +var monthValues = { + narrow: [ + "ია", + "თე", + "მა", + "აპ", + "მს", + "ვნ", + "ვლ", + "აგ", + "სე", + "ოქ", + "ნო", + "დე"], + + abbreviated: [ + "იან", + "თებ", + "მარ", + "აპრ", + "მაი", + "ივნ", + "ივლ", + "აგვ", + "სექ", + "ოქტ", + "ნოე", + "დეკ"], + + wide: [ + "იანვარი", + "თებერვალი", + "მარტი", + "აპრილი", + "მაისი", + "ივნისი", + "ივლისი", + "აგვისტო", + "სექტემბერი", + "ოქტომბერი", + "ნოემბერი", + "დეკემბერი"] + +}; +var dayValues = { + narrow: [ + "კვ", + "ორ", + "სა", + "ოთ", + "ხუ", + "პა", + "შა"], + + short: [ + "კვი", + "ორშ", + "სამ", + "ოთხ", + "ხუთ", + "პარ", + "შაბ"], + + abbreviated: [ + "კვი", + "ორშ", + "სამ", + "ოთხ", + "ხუთ", + "პარ", + "შაბ"], + + wide: [ + "კვირა", + "ორშაბათი", + "სამშაბათი", + "ოთხშაბათი", + "ხუთშაბათი", + "პარასკევი", + "შაბათი"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამე", + noon: "შუადღე", + morning: "დილა", + afternoon: "საღამო", + evening: "საღამო", + night: "ღამე" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "შუაღამით", + noon: "შუადღისას", + morning: "დილით", + afternoon: "ნაშუადღევს", + evening: "საღამოს", + night: "ღამით" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + if (number === 1) return number + "-ლი"; + return number + "-ე"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ka.js +/** +* @category Locales +* @summary Georgian locale. +* @language Georgian +* @iso-639-2 geo +* @author Lado Lomidze [@Landish](https://github.com/Landish) +* @author Nick Shvelidze [@shvelo](https://github.com/shvelo) +*/ +var ka = { + code: "ka", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-ლი|-ე)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ჩვ?\.წ)/i, + abbreviated: /^(ჩვ?\.წ)/i, + wide: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i, /^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: [ + /^ია/i, + /^თ/i, + /^მარ/i, + /^აპ/i, + /^მაი/i, + /^ი?ვნ/i, + /^ი?ვლ/i, + /^აგ/i, + /^ს/i, + /^ო/i, + /^ნ/i, + /^დ/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^კვ/i, + /^ორ/i, + /^სა/i, + /^ოთ/i, + /^ხუ/i, + /^პა/i, + /^შა/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^შუაღ/i, + noon: /^შუადღ/i, + morning: /^დილ/i, + afternoon: /ნაშუადღევს/i, + evening: /საღამო/i, + night: /ღამ/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ka/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ka: ka }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/cdn.min.js b/node_modules/date-fns/locale/ka/cdn.min.js new file mode 100644 index 000000000..28e9bb123 --- /dev/null +++ b/node_modules/date-fns/locale/ka/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.future.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?i.past.replace(`{{count}}`,String(t)):i.present.replace(`{{count}}`,String(t)),r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, do MMMM, y`,long:`do, MMMM, y`,medium:`d, MMM, y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}'-ზე'`,long:`{{date}} {{time}}'-ზე'`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'წინა' eeee p'-ზე'`,yesterday:`'გუშინ' p'-ზე'`,today:`'დღეს' p'-ზე'`,tomorrow:`'ხვალ' p'-ზე'`,nextWeek:`'შემდეგი' eeee p'-ზე'`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e){var t=Number(e);return t===1?t+`-ლი`:t+`-ე`},era:f({values:{narrow:[`ჩ.წ-მდე`,`ჩ.წ`],abbreviated:[`ჩვ.წ-მდე`,`ჩვ.წ`],wide:[`ჩვენს წელთაღრიცხვამდე`,`ჩვენი წელთაღრიცხვით`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ლი კვ`,`2-ე კვ`,`3-ე კვ`,`4-ე კვ`],wide:[`1-ლი კვარტალი`,`2-ე კვარტალი`,`3-ე კვარტალი`,`4-ე კვარტალი`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ია`,`თე`,`მა`,`აპ`,`მს`,`ვნ`,`ვლ`,`აგ`,`სე`,`ოქ`,`ნო`,`დე`],abbreviated:[`იან`,`თებ`,`მარ`,`აპრ`,`მაი`,`ივნ`,`ივლ`,`აგვ`,`სექ`,`ოქტ`,`ნოე`,`დეკ`],wide:[`იანვარი`,`თებერვალი`,`მარტი`,`აპრილი`,`მაისი`,`ივნისი`,`ივლისი`,`აგვისტო`,`სექტემბერი`,`ოქტომბერი`,`ნოემბერი`,`დეკემბერი`]},defaultWidth:`wide`}),day:f({values:{narrow:[`კვ`,`ორ`,`სა`,`ოთ`,`ხუ`,`პა`,`შა`],short:[`კვი`,`ორშ`,`სამ`,`ოთხ`,`ხუთ`,`პარ`,`შაბ`],abbreviated:[`კვი`,`ორშ`,`სამ`,`ოთხ`,`ხუთ`,`პარ`,`შაბ`],wide:[`კვირა`,`ორშაბათი`,`სამშაბათი`,`ოთხშაბათი`,`ხუთშაბათი`,`პარასკევი`,`შაბათი`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`},abbreviated:{am:`AM`,pm:`PM`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`შუაღამე`,noon:`შუადღე`,morning:`დილა`,afternoon:`საღამო`,evening:`საღამო`,night:`ღამე`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`},abbreviated:{am:`AM`,pm:`PM`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`შუაღამით`,noon:`შუადღისას`,morning:`დილით`,afternoon:`ნაშუადღევს`,evening:`საღამოს`,night:`ღამით`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ka`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(-ლი|-ე)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:`any`,parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ka:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk.cjs b/node_modules/date-fns/locale/kk.cjs new file mode 100644 index 000000000..3bb869bb5 --- /dev/null +++ b/node_modules/date-fns/locale/kk.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.kk = void 0; +var _index = require("./kk/_lib/formatDistance.cjs"); +var _index2 = require("./kk/_lib/formatLong.cjs"); +var _index3 = require("./kk/_lib/formatRelative.cjs"); +var _index4 = require("./kk/_lib/localize.cjs"); +var _index5 = require("./kk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +const kk = (exports.kk = { + code: "kk", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/kk.d.cts b/node_modules/date-fns/locale/kk.d.cts new file mode 100644 index 000000000..9518a5130 --- /dev/null +++ b/node_modules/date-fns/locale/kk.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export declare const kk: Locale; diff --git a/node_modules/date-fns/locale/kk.d.ts b/node_modules/date-fns/locale/kk.d.ts new file mode 100644 index 000000000..9518a5130 --- /dev/null +++ b/node_modules/date-fns/locale/kk.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export declare const kk: Locale; diff --git a/node_modules/date-fns/locale/kk.js b/node_modules/date-fns/locale/kk.js new file mode 100644 index 000000000..6986cf274 --- /dev/null +++ b/node_modules/date-fns/locale/kk.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./kk/_lib/formatDistance.js"; +import { formatLong } from "./kk/_lib/formatLong.js"; +import { formatRelative } from "./kk/_lib/formatRelative.js"; +import { localize } from "./kk/_lib/localize.js"; +import { match } from "./kk/_lib/match.js"; + +/** + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi](https://github.com/drugoi) + */ +export const kk = { + code: "kk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default kk; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs new file mode 100644 index 000000000..e1a168369 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.cjs @@ -0,0 +1,253 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз", + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын", + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + halfAMinute: (options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "жарты минут ішінде"; + } else { + return "жарты минут бұрын"; + } + } + + return "жарты минут"; + }, + + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз", + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем", + }, + }, + + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын", + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін", + }, + }, + + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат", + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін", + }, + }, + + xHours: { + regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат", + }, + }, + + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн", + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін", + }, + }, + + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта", + }, + + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта", + }, + + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай", + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін", + }, + }, + + xMonths: { + regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай", + }, + }, + + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл", + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін", + }, + }, + + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, + + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + }, + + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "function") return tokenValue(options); + + if (tokenValue.type === "weeks") { + return count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + " кейін"; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + " бұрын"; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance.js b/node_modules/date-fns/locale/kk/_lib/formatDistance.js new file mode 100644 index 000000000..929e679c8 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance.js @@ -0,0 +1,249 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз", + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын", + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін", + }, + }, + + halfAMinute: (options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "жарты минут ішінде"; + } else { + return "жарты минут бұрын"; + } + } + + return "жарты минут"; + }, + + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз", + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем", + }, + }, + + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын", + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін", + }, + }, + + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат", + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін", + }, + }, + + xHours: { + regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат", + }, + }, + + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн", + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін", + }, + }, + + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта", + }, + + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта", + }, + + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай", + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін", + }, + }, + + xMonths: { + regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай", + }, + }, + + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл", + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін", + }, + }, + + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, + + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам", + }, + }, + + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын", + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін", + }, + }, +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "function") return tokenValue(options); + + if (tokenValue.type === "weeks") { + return count === 1 + ? tokenValue.one + : tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + " кейін"; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + " бұрын"; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.cjs b/node_modules/date-fns/locale/kk/_lib/formatLong.cjs new file mode 100644 index 000000000..ae3ee8537 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/kk/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/kk/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong.js b/node_modules/date-fns/locale/kk/_lib/formatLong.js new file mode 100644 index 000000000..df2b184ea --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/kk/_lib/formatRelative.cjs new file mode 100644 index 000000000..c3cd0dc54 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.cjs @@ -0,0 +1,65 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const accusativeWeekdays = [ + "жексенбіде", + "дүйсенбіде", + "сейсенбіде", + "сәрсенбіде", + "бейсенбіде", + "жұмада", + "сенбіде", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'" + weekday + " сағат' p'-де'"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'келесі " + weekday + " сағат' p'-де'"; +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative.js b/node_modules/date-fns/locale/kk/_lib/formatRelative.js new file mode 100644 index 000000000..8045cc439 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative.js @@ -0,0 +1,62 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const accusativeWeekdays = [ + "жексенбіде", + "дүйсенбіде", + "сейсенбіде", + "сәрсенбіде", + "бейсенбіде", + "жұмада", + "сенбіде", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'" + weekday + " сағат' p'-де'"; +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + return "'келесі " + weekday + " сағат' p'-де'"; +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/kk/_lib/localize.cjs b/node_modules/date-fns/locale/kk/_lib/localize.cjs new file mode 100644 index 000000000..0718658c9 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.cjs @@ -0,0 +1,208 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["б.з.д.", "б.з."], + abbreviated: ["б.з.д.", "б.з."], + wide: ["біздің заманымызға дейін", "біздің заманымыз"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ші тоқ.", "2-ші тоқ.", "3-ші тоқ.", "4-ші тоқ."], + wide: ["1-ші тоқсан", "2-ші тоқсан", "3-ші тоқсан", "4-ші тоқсан"], +}; + +const monthValues = { + narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"], + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел", + ], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан", + ], +}; +const formattingMonthValues = { + narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"], + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел", + ], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан", + ], +}; + +const dayValues = { + narrow: ["Ж", "Д", "С", "С", "Б", "Ж", "С"], + short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түс", + morning: "таң", + afternoon: "күн", + evening: "кеш", + night: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде", + }, +}; + +const suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші", +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const mod10 = number % 10; + const b = number >= 100 ? 100 : null; + const suffix = + suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || ""; + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/kk/_lib/localize.d.cts b/node_modules/date-fns/locale/kk/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kk/_lib/localize.d.ts b/node_modules/date-fns/locale/kk/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kk/_lib/localize.js b/node_modules/date-fns/locale/kk/_lib/localize.js new file mode 100644 index 000000000..29f0b2339 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize.js @@ -0,0 +1,206 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["б.з.д.", "б.з."], + abbreviated: ["б.з.д.", "б.з."], + wide: ["біздің заманымызға дейін", "біздің заманымыз"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ші тоқ.", "2-ші тоқ.", "3-ші тоқ.", "4-ші тоқ."], + wide: ["1-ші тоқсан", "2-ші тоқсан", "3-ші тоқсан", "4-ші тоқсан"], +}; + +const monthValues = { + narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"], + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел", + ], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан", + ], +}; +const formattingMonthValues = { + narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"], + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел", + ], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан", + ], +}; + +const dayValues = { + narrow: ["Ж", "Д", "С", "С", "Б", "Ж", "С"], + short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"], + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түс", + morning: "таң", + afternoon: "күн", + evening: "кеш", + night: "түн", + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде", + }, +}; + +const suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші", +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + const mod10 = number % 10; + const b = number >= 100 ? 100 : null; + const suffix = + suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || ""; + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/kk/_lib/match.cjs b/node_modules/date-fns/locale/kk/_lib/match.cjs new file mode 100644 index 000000000..303b56819 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.cjs @@ -0,0 +1,160 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\s?д\.?)/i, + wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i, +}; +const parseEraPatterns = { + any: [/^б/i, /^з/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?ші)? тоқ.?/i, + wide: /^[1234](-?ші)? тоқсан/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, + abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, + wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i, + ], + + abbreviated: [ + /^қаң/i, + /^ақп/i, + /^нау/i, + /^сәу/i, + /^мам/i, + /^мау/i, + /^шіл/i, + /^там/i, + /^қыр/i, + /^қаз/i, + /^қар/i, + /^жел/i, + ], + + any: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ж|д|с|с|б|ж|с)/i, + short: /^(жс|дс|сс|ср|бс|жм|сб)/i, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i, +}; +const parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ТД/i, + pm: /^ТК/i, + midnight: /^түн орта/i, + noon: /^күндіз/i, + morning: /таң/i, + afternoon: /түс/i, + evening: /кеш/i, + night: /түн/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/kk/_lib/match.d.cts b/node_modules/date-fns/locale/kk/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kk/_lib/match.d.ts b/node_modules/date-fns/locale/kk/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kk/_lib/match.js b/node_modules/date-fns/locale/kk/_lib/match.js new file mode 100644 index 000000000..75e28302c --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match.js @@ -0,0 +1,157 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\s?д\.?)/i, + wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i, +}; +const parseEraPatterns = { + any: [/^б/i, /^з/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?ші)? тоқ.?/i, + wide: /^[1234](-?ші)? тоқсан/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, + abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, + wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i, + ], + + abbreviated: [ + /^қаң/i, + /^ақп/i, + /^нау/i, + /^сәу/i, + /^мам/i, + /^мау/i, + /^шіл/i, + /^там/i, + /^қыр/i, + /^қаз/i, + /^қар/i, + /^жел/i, + ], + + any: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ж|д|с|с|б|ж|с)/i, + short: /^(жс|дс|сс|ср|бс|жм|сб)/i, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i, +}; +const parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ТД/i, + pm: /^ТК/i, + midnight: /^түн орта/i, + noon: /^күндіз/i, + morning: /таң/i, + afternoon: /түс/i, + evening: /кеш/i, + night: /түн/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/kk/cdn.js b/node_modules/date-fns/locale/kk/cdn.js new file mode 100644 index 000000000..d3ba7a5a7 --- /dev/null +++ b/node_modules/date-fns/locale/kk/cdn.js @@ -0,0 +1,984 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/kk/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: "1 секундтан аз", + singularNominative: "{{count}} секундтан аз", + singularGenitive: "{{count}} секундтан аз", + pluralGenitive: "{{count}} секундтан аз" + }, + future: { + one: "бір секундтан кейін", + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін" + } + }, + xSeconds: { + regular: { + singularNominative: "{{count}} секунд", + singularGenitive: "{{count}} секунд", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунд бұрын", + singularGenitive: "{{count}} секунд бұрын", + pluralGenitive: "{{count}} секунд бұрын" + }, + future: { + singularNominative: "{{count}} секундтан кейін", + singularGenitive: "{{count}} секундтан кейін", + pluralGenitive: "{{count}} секундтан кейін" + } + }, + halfAMinute: function halfAMinute(options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "жарты минут ішінде";else + return "жарты минут бұрын"; + return "жарты минут"; + }, + lessThanXMinutes: { + regular: { + one: "1 минуттан аз", + singularNominative: "{{count}} минуттан аз", + singularGenitive: "{{count}} минуттан аз", + pluralGenitive: "{{count}} минуттан аз" + }, + future: { + one: "минуттан кем ", + singularNominative: "{{count}} минуттан кем", + singularGenitive: "{{count}} минуттан кем", + pluralGenitive: "{{count}} минуттан кем" + } + }, + xMinutes: { + regular: { + singularNominative: "{{count}} минут", + singularGenitive: "{{count}} минут", + pluralGenitive: "{{count}} минут" + }, + past: { + singularNominative: "{{count}} минут бұрын", + singularGenitive: "{{count}} минут бұрын", + pluralGenitive: "{{count}} минут бұрын" + }, + future: { + singularNominative: "{{count}} минуттан кейін", + singularGenitive: "{{count}} минуттан кейін", + pluralGenitive: "{{count}} минуттан кейін" + } + }, + aboutXHours: { + regular: { + singularNominative: "шамамен {{count}} сағат", + singularGenitive: "шамамен {{count}} сағат", + pluralGenitive: "шамамен {{count}} сағат" + }, + future: { + singularNominative: "шамамен {{count}} сағаттан кейін", + singularGenitive: "шамамен {{count}} сағаттан кейін", + pluralGenitive: "шамамен {{count}} сағаттан кейін" + } + }, + xHours: { regular: { + singularNominative: "{{count}} сағат", + singularGenitive: "{{count}} сағат", + pluralGenitive: "{{count}} сағат" + } }, + xDays: { + regular: { + singularNominative: "{{count}} күн", + singularGenitive: "{{count}} күн", + pluralGenitive: "{{count}} күн" + }, + future: { + singularNominative: "{{count}} күннен кейін", + singularGenitive: "{{count}} күннен кейін", + pluralGenitive: "{{count}} күннен кейін" + } + }, + aboutXWeeks: { + type: "weeks", + one: "шамамен 1 апта", + other: "шамамен {{count}} апта" + }, + xWeeks: { + type: "weeks", + one: "1 апта", + other: "{{count}} апта" + }, + aboutXMonths: { + regular: { + singularNominative: "шамамен {{count}} ай", + singularGenitive: "шамамен {{count}} ай", + pluralGenitive: "шамамен {{count}} ай" + }, + future: { + singularNominative: "шамамен {{count}} айдан кейін", + singularGenitive: "шамамен {{count}} айдан кейін", + pluralGenitive: "шамамен {{count}} айдан кейін" + } + }, + xMonths: { regular: { + singularNominative: "{{count}} ай", + singularGenitive: "{{count}} ай", + pluralGenitive: "{{count}} ай" + } }, + aboutXYears: { + regular: { + singularNominative: "шамамен {{count}} жыл", + singularGenitive: "шамамен {{count}} жыл", + pluralGenitive: "шамамен {{count}} жыл" + }, + future: { + singularNominative: "шамамен {{count}} жылдан кейін", + singularGenitive: "шамамен {{count}} жылдан кейін", + pluralGenitive: "шамамен {{count}} жылдан кейін" + } + }, + xYears: { + regular: { + singularNominative: "{{count}} жыл", + singularGenitive: "{{count}} жыл", + pluralGenitive: "{{count}} жыл" + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін" + } + }, + overXYears: { + regular: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам" + }, + future: { + singularNominative: "{{count}} жылдан астам", + singularGenitive: "{{count}} жылдан астам", + pluralGenitive: "{{count}} жылдан астам" + } + }, + almostXYears: { + regular: { + singularNominative: "{{count}} жылға жақын", + singularGenitive: "{{count}} жылға жақын", + pluralGenitive: "{{count}} жылға жақын" + }, + future: { + singularNominative: "{{count}} жылдан кейін", + singularGenitive: "{{count}} жылдан кейін", + pluralGenitive: "{{count}} жылдан кейін" + } + } +}; +function declension(scheme, count) { + if (scheme.one && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "function") return tokenValue(options); + if (tokenValue.type === "weeks") return count === 1 ? tokenValue.one : tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (tokenValue.future) return declension(tokenValue.future, count);else + return declension(tokenValue.regular, count) + " кейін";} else + if (tokenValue.past) return declension(tokenValue.past, count);else + return declension(tokenValue.regular, count) + " бұрын";} else + return declension(tokenValue.regular, count); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/kk/_lib/formatRelative.js +var accusativeWeekdays = [ +"жексенбіде", +"дүйсенбіде", +"сейсенбіде", +"сәрсенбіде", +"бейсенбіде", +"жұмада", +"сенбіде"]; + +function _lastWeek(day) { + return "'өткен " + accusativeWeekdays[day] + " сағат' p'-де'"; +} +function thisWeek(day) { + return "'" + accusativeWeekdays[day] + " сағат' p'-де'"; +} +function _nextWeek(day) { + return "'келесі " + accusativeWeekdays[day] + " сағат' p'-де'"; +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/kk/_lib/localize.js +var eraValues = { + narrow: ["б.з.д.", "б.з."], + abbreviated: ["б.з.д.", "б.з."], + wide: ["біздің заманымызға дейін", "біздің заманымыз"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-ші тоқ.", + "2-ші тоқ.", + "3-ші тоқ.", + "4-ші тоқ."], + + wide: [ + "1-ші тоқсан", + "2-ші тоқсан", + "3-ші тоқсан", + "4-ші тоқсан"] + +}; +var monthValues = { + narrow: [ + "Қ", + "А", + "Н", + "С", + "М", + "М", + "Ш", + "Т", + "Қ", + "Қ", + "Қ", + "Ж"], + + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел"], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан"] + +}; +var formattingMonthValues = { + narrow: [ + "Қ", + "А", + "Н", + "С", + "М", + "М", + "Ш", + "Т", + "Қ", + "Қ", + "Қ", + "Ж"], + + abbreviated: [ + "қаң", + "ақп", + "нау", + "сәу", + "мам", + "мау", + "шіл", + "там", + "қыр", + "қаз", + "қар", + "жел"], + + wide: [ + "қаңтар", + "ақпан", + "наурыз", + "сәуір", + "мамыр", + "маусым", + "шілде", + "тамыз", + "қыркүйек", + "қазан", + "қараша", + "желтоқсан"] + +}; +var dayValues = { + narrow: [ + "Ж", + "Д", + "С", + "С", + "Б", + "Ж", + "С"], + + short: [ + "жс", + "дс", + "сс", + "ср", + "бс", + "жм", + "сб"], + + abbreviated: [ + "жс", + "дс", + "сс", + "ср", + "бс", + "жм", + "сб"], + + wide: [ + "жексенбі", + "дүйсенбі", + "сейсенбі", + "сәрсенбі", + "бейсенбі", + "жұма", + "сенбі"] + +}; +var dayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн" + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасы", + noon: "түс", + morning: "таң", + afternoon: "күндіз", + evening: "кеш", + night: "түн" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түс", + morning: "таң", + afternoon: "күн", + evening: "кеш", + night: "түн" + }, + wide: { + am: "ТД", + pm: "ТК", + midnight: "түн ортасында", + noon: "түсте", + morning: "таңертең", + afternoon: "күндіз", + evening: "кеште", + night: "түнде" + } +}; +var suffixes = { + 0: "-ші", + 1: "-ші", + 2: "-ші", + 3: "-ші", + 4: "-ші", + 5: "-ші", + 6: "-шы", + 7: "-ші", + 8: "-ші", + 9: "-шы", + 10: "-шы", + 20: "-шы", + 30: "-шы", + 40: "-шы", + 50: "-ші", + 60: "-шы", + 70: "-ші", + 80: "-ші", + 90: "-шы", + 100: "-ші" +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var mod10 = number % 10; + var b = number >= 100 ? 100 : null; + return number + (suffixes[number] || suffixes[mod10] || b && suffixes[b] || ""); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/kk.js +/** +* @category Locales +* @summary Kazakh locale. +* @language Kazakh +* @iso-639-2 kaz +* @author Nikita Bayev [@drugoi](https://github.com/drugoi) +*/ +var kk = { + code: "kk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?(ші|шы))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\s?д\.?)/i, + wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^б/i, /^з/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?ші)? тоқ.?/i, + wide: /^[1234](-?ші)? тоқсан/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, + abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, + wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i], + + abbreviated: [ + /^қаң/i, + /^ақп/i, + /^нау/i, + /^сәу/i, + /^мам/i, + /^мау/i, + /^шіл/i, + /^там/i, + /^қыр/i, + /^қаз/i, + /^қар/i, + /^жел/i], + + any: [ + /^қ/i, + /^а/i, + /^н/i, + /^с/i, + /^м/i, + /^м/i, + /^ш/i, + /^т/i, + /^қ/i, + /^қ/i, + /^қ/i, + /^ж/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ж|д|с|с|б|ж|с)/i, + short: /^(жс|дс|сс|ср|бс|жм|сб)/i, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ж/i, + /^д/i, + /^с/i, + /^с/i, + /^б/i, + /^ж/i, + /^с/i], + + short: [ + /^жс/i, + /^дс/i, + /^сс/i, + /^ср/i, + /^бс/i, + /^жм/i, + /^сб/i], + + any: [ + /^ж[ек]/i, + /^д[үй]/i, + /^сe[й]/i, + /^сә[р]/i, + /^б[ей]/i, + /^ж[ұм]/i, + /^се[н]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^ТД/i, + pm: /^ТК/i, + midnight: /^түн орта/i, + noon: /^күндіз/i, + morning: /таң/i, + afternoon: /түс/i, + evening: /кеш/i, + night: /түн/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/kk/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + kk: kk }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/cdn.min.js b/node_modules/date-fns/locale/kk/cdn.min.js new file mode 100644 index 000000000..ef5079ae0 --- /dev/null +++ b/node_modules/date-fns/locale/kk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`жарты минут ішінде`:`жарты минут бұрын`:`жарты минут`},lessThanXMinutes:{regular:{one:`1 минуттан аз`,singularNominative:`{{count}} минуттан аз`,singularGenitive:`{{count}} минуттан аз`,pluralGenitive:`{{count}} минуттан аз`},future:{one:`минуттан кем `,singularNominative:`{{count}} минуттан кем`,singularGenitive:`{{count}} минуттан кем`,pluralGenitive:`{{count}} минуттан кем`}},xMinutes:{regular:{singularNominative:`{{count}} минут`,singularGenitive:`{{count}} минут`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минут бұрын`,singularGenitive:`{{count}} минут бұрын`,pluralGenitive:`{{count}} минут бұрын`},future:{singularNominative:`{{count}} минуттан кейін`,singularGenitive:`{{count}} минуттан кейін`,pluralGenitive:`{{count}} минуттан кейін`}},aboutXHours:{regular:{singularNominative:`шамамен {{count}} сағат`,singularGenitive:`шамамен {{count}} сағат`,pluralGenitive:`шамамен {{count}} сағат`},future:{singularNominative:`шамамен {{count}} сағаттан кейін`,singularGenitive:`шамамен {{count}} сағаттан кейін`,pluralGenitive:`шамамен {{count}} сағаттан кейін`}},xHours:{regular:{singularNominative:`{{count}} сағат`,singularGenitive:`{{count}} сағат`,pluralGenitive:`{{count}} сағат`}},xDays:{regular:{singularNominative:`{{count}} күн`,singularGenitive:`{{count}} күн`,pluralGenitive:`{{count}} күн`},future:{singularNominative:`{{count}} күннен кейін`,singularGenitive:`{{count}} күннен кейін`,pluralGenitive:`{{count}} күннен кейін`}},aboutXWeeks:{type:`weeks`,one:`шамамен 1 апта`,other:`шамамен {{count}} апта`},xWeeks:{type:`weeks`,one:`1 апта`,other:`{{count}} апта`},aboutXMonths:{regular:{singularNominative:`шамамен {{count}} ай`,singularGenitive:`шамамен {{count}} ай`,pluralGenitive:`шамамен {{count}} ай`},future:{singularNominative:`шамамен {{count}} айдан кейін`,singularGenitive:`шамамен {{count}} айдан кейін`,pluralGenitive:`шамамен {{count}} айдан кейін`}},xMonths:{regular:{singularNominative:`{{count}} ай`,singularGenitive:`{{count}} ай`,pluralGenitive:`{{count}} ай`}},aboutXYears:{regular:{singularNominative:`шамамен {{count}} жыл`,singularGenitive:`шамамен {{count}} жыл`,pluralGenitive:`шамамен {{count}} жыл`},future:{singularNominative:`шамамен {{count}} жылдан кейін`,singularGenitive:`шамамен {{count}} жылдан кейін`,pluralGenitive:`шамамен {{count}} жылдан кейін`}},xYears:{regular:{singularNominative:`{{count}} жыл`,singularGenitive:`{{count}} жыл`,pluralGenitive:`{{count}} жыл`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}},overXYears:{regular:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`},future:{singularNominative:`{{count}} жылдан астам`,singularGenitive:`{{count}} жылдан астам`,pluralGenitive:`{{count}} жылдан астам`}},almostXYears:{regular:{singularNominative:`{{count}} жылға жақын`,singularGenitive:`{{count}} жылға жақын`,pluralGenitive:`{{count}} жылға жақын`},future:{singularNominative:`{{count}} жылдан кейін`,singularGenitive:`{{count}} жылдан кейін`,pluralGenitive:`{{count}} жылдан кейін`}}};function p(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}var m=function(e,t,n){var r=f[e];return typeof r==`function`?r(n):r.type===`weeks`?t===1?r.one:r.other.replace(`{{count}}`,String(t)):n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r.future?p(r.future,t):p(r.regular,t)+` кейін`:r.past?p(r.past,t):p(r.regular,t)+` бұрын`:p(r.regular,t)};function h(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var g={date:h({formats:{full:`EEEE, do MMMM y 'ж.'`,long:`do MMMM y 'ж.'`,medium:`d MMM y 'ж.'`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:h({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:h({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},_=Symbol.for(`constructDateFrom`);function v(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function y(e){var t=[...arguments].slice(1),n=v.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var b={};function x(){return b}function S(e,t){return v(t||e,e)}function C(e,t){var n,r,i=x(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=S(e,t?.in),s=o.getDay(),c=(s=100?100:null;return n+(z[n]||z[r]||i&&z[i]||``)},era:j({values:M,defaultWidth:`wide`}),quarter:j({values:N,defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:j({values:P,defaultWidth:`wide`,formattingValues:F,defaultFormattingWidth:`wide`}),day:j({values:I,defaultWidth:`wide`}),dayPeriod:j({values:L,defaultWidth:`any`,formattingValues:R,defaultFormattingWidth:`wide`})};function V(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?U(s,function(e){return e.test(o)}):H(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function H(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function U(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var G={code:`kk`,formatDistance:m,formatLong:g,formatRelative:A,localize:B,match:{ordinalNumber:W({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:V({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:`any`}),quarter:V({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:V({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},defaultParseWidth:`any`}),day:V({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:`any`}),dayPeriod:V({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{kk:G})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/km.cjs b/node_modules/date-fns/locale/km.cjs new file mode 100644 index 000000000..4a4766beb --- /dev/null +++ b/node_modules/date-fns/locale/km.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.km = void 0; +var _index = require("./km/_lib/formatDistance.cjs"); +var _index2 = require("./km/_lib/formatLong.cjs"); +var _index3 = require("./km/_lib/formatRelative.cjs"); +var _index4 = require("./km/_lib/localize.cjs"); +var _index5 = require("./km/_lib/match.cjs"); + +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +const km = (exports.km = { + code: "km", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/km.d.cts b/node_modules/date-fns/locale/km.d.cts new file mode 100644 index 000000000..09ed75555 --- /dev/null +++ b/node_modules/date-fns/locale/km.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export declare const km: Locale; diff --git a/node_modules/date-fns/locale/km.d.ts b/node_modules/date-fns/locale/km.d.ts new file mode 100644 index 000000000..09ed75555 --- /dev/null +++ b/node_modules/date-fns/locale/km.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export declare const km: Locale; diff --git a/node_modules/date-fns/locale/km.js b/node_modules/date-fns/locale/km.js new file mode 100644 index 000000000..940b646d5 --- /dev/null +++ b/node_modules/date-fns/locale/km.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./km/_lib/formatDistance.js"; +import { formatLong } from "./km/_lib/formatLong.js"; +import { formatRelative } from "./km/_lib/formatRelative.js"; +import { localize } from "./km/_lib/localize.js"; +import { match } from "./km/_lib/match.js"; + +/** + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay](https://github.com/seanghay) + */ +export const km = { + code: "km", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default km; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.cjs b/node_modules/date-fns/locale/km/_lib/formatDistance.cjs new file mode 100644 index 000000000..fb9bf7961 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.cjs @@ -0,0 +1,42 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ", +}; + +const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + let result = tokenValue; + + if (typeof count === "number") { + result = result.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ក្នុងរយៈពេល " + result; + } else { + return result + "មុន"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/km/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/km/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance.js b/node_modules/date-fns/locale/km/_lib/formatDistance.js new file mode 100644 index 000000000..01f3befb8 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance.js @@ -0,0 +1,38 @@ +const formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ", +}; + +export const formatDistance = (token, count, options) => { + const tokenValue = formatDistanceLocale[token]; + + let result = tokenValue; + + if (typeof count === "number") { + result = result.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "ក្នុងរយៈពេល " + result; + } else { + return result + "មុន"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.cjs b/node_modules/date-fns/locale/km/_lib/formatLong.cjs new file mode 100644 index 000000000..c46823a44 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a", + long: "h:mm:ss a", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'ម៉ោង' {{time}}", + long: "{{date}} 'ម៉ោង' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.d.cts b/node_modules/date-fns/locale/km/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.d.ts b/node_modules/date-fns/locale/km/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/km/_lib/formatLong.js b/node_modules/date-fns/locale/km/_lib/formatLong.js new file mode 100644 index 000000000..7da633e3c --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a", + long: "h:mm:ss a", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'ម៉ោង' {{time}}", + long: "{{date}} 'ម៉ោង' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative.cjs b/node_modules/date-fns/locale/km/_lib/formatRelative.cjs new file mode 100644 index 000000000..78f4a624a --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", + yesterday: "'ម្សិលមិញនៅម៉ោង' p", + today: "'ថ្ងៃនេះម៉ោង' p", + tomorrow: "'ថ្ងៃស្អែកម៉ោង' p", + nextWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/km/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/km/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative.js b/node_modules/date-fns/locale/km/_lib/formatRelative.js new file mode 100644 index 000000000..dacd0d00b --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", + yesterday: "'ម្សិលមិញនៅម៉ោង' p", + today: "'ថ្ងៃនេះម៉ោង' p", + tomorrow: "'ថ្ងៃស្អែកម៉ោង' p", + nextWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/km/_lib/localize.cjs b/node_modules/date-fns/locale/km/_lib/localize.cjs new file mode 100644 index 000000000..67f9d4139 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.cjs @@ -0,0 +1,172 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ម.គស", "គស"], + abbreviated: ["មុនគ.ស", "គ.ស"], + wide: ["មុនគ្រិស្តសករាជ", "នៃគ្រិស្តសករាជ"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ត្រីមាសទី 1", "ត្រីមាសទី 2", "ត្រីមាសទី 3", "ត្រីមាសទី 4"], +}; + +const monthValues = { + narrow: [ + "ម.ក", + "ក.ម", + "មិ", + "ម.ស", + "ឧ.ស", + "ម.ថ", + "ក.ដ", + "សី", + "កញ", + "តុ", + "វិ", + "ធ", + ], + + abbreviated: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ", + ], + + wide: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ", + ], +}; + +const dayValues = { + narrow: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + short: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + abbreviated: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + wide: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍"], +}; + +const dayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, +}; + +const ordinalNumber = (dirtyNumber, _) => { + const number = Number(dirtyNumber); + return number.toString(); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/km/_lib/localize.d.cts b/node_modules/date-fns/locale/km/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/km/_lib/localize.d.ts b/node_modules/date-fns/locale/km/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/km/_lib/localize.js b/node_modules/date-fns/locale/km/_lib/localize.js new file mode 100644 index 000000000..f277613fa --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize.js @@ -0,0 +1,170 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ម.គស", "គស"], + abbreviated: ["មុនគ.ស", "គ.ស"], + wide: ["មុនគ្រិស្តសករាជ", "នៃគ្រិស្តសករាជ"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ត្រីមាសទី 1", "ត្រីមាសទី 2", "ត្រីមាសទី 3", "ត្រីមាសទី 4"], +}; + +const monthValues = { + narrow: [ + "ម.ក", + "ក.ម", + "មិ", + "ម.ស", + "ឧ.ស", + "ម.ថ", + "ក.ដ", + "សី", + "កញ", + "តុ", + "វិ", + "ធ", + ], + + abbreviated: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ", + ], + + wide: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ", + ], +}; + +const dayValues = { + narrow: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + short: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + abbreviated: ["អា", "ច", "អ", "ព", "ព្រ", "សុ", "ស"], + wide: ["អាទិត្យ", "ចន្ទ", "អង្គារ", "ពុធ", "ព្រហស្បតិ៍", "សុក្រ", "សៅរ៍"], +}; + +const dayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់", + }, +}; + +const ordinalNumber = (dirtyNumber, _) => { + const number = Number(dirtyNumber); + return number.toString(); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/km/_lib/match.cjs b/node_modules/date-fns/locale/km/_lib/match.cjs new file mode 100644 index 000000000..2a7148143 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ម\.)?គស/i, + abbreviated: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i, +}; +const parseEraPatterns = { + any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, + abbreviated: + /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, + wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ម\.ក/i, + /^ក\.ម/i, + /^មិ/i, + /^ម\.ស/i, + /^ឧ\.ស/i, + /^ម\.ថ/i, + /^ក\.ដ/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិ/i, + /^ធ/i, + ], + + any: [ + /^មក/i, + /^កុ/i, + /^មីន/i, + /^មេ/i, + /^ឧស/i, + /^មិថ/i, + /^កក/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិច/i, + /^ធ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + short: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + abbreviated: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + wide: /^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i, +}; +const parseDayPatterns = { + narrow: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^ស/i], + any: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^សៅ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, + any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, +}; + +const parseDayPeriodPatterns = { + any: { + am: /^ព្រឹក/i, + pm: /^ល្ងាច/i, + midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i, + noon: /^ពេលថ្ងៃត្រង់/i, + morning: /ពេលព្រឹក/i, + afternoon: /ពេលរសៀល/i, + evening: /ពេលល្ងាច/i, + night: /ពេលយប់/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/km/_lib/match.d.cts b/node_modules/date-fns/locale/km/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/km/_lib/match.d.ts b/node_modules/date-fns/locale/km/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/km/_lib/match.js b/node_modules/date-fns/locale/km/_lib/match.js new file mode 100644 index 000000000..2e9e54083 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ម\.)?គស/i, + abbreviated: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i, +}; +const parseEraPatterns = { + any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, + abbreviated: + /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, + wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ម\.ក/i, + /^ក\.ម/i, + /^មិ/i, + /^ម\.ស/i, + /^ឧ\.ស/i, + /^ម\.ថ/i, + /^ក\.ដ/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិ/i, + /^ធ/i, + ], + + any: [ + /^មក/i, + /^កុ/i, + /^មីន/i, + /^មេ/i, + /^ឧស/i, + /^មិថ/i, + /^កក/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិច/i, + /^ធ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + short: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + abbreviated: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + wide: /^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i, +}; +const parseDayPatterns = { + narrow: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^ស/i], + any: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^សៅ/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, + any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, +}; + +const parseDayPeriodPatterns = { + any: { + am: /^ព្រឹក/i, + pm: /^ល្ងាច/i, + midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i, + noon: /^ពេលថ្ងៃត្រង់/i, + morning: /ពេលព្រឹក/i, + afternoon: /ពេលរសៀល/i, + evening: /ពេលល្ងាច/i, + night: /ពេលយប់/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/km/cdn.js b/node_modules/date-fns/locale/km/cdn.js new file mode 100644 index 000000000..d4b48b604 --- /dev/null +++ b/node_modules/date-fns/locale/km/cdn.js @@ -0,0 +1,527 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/km/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: "តិចជាង {{count}} វិនាទី", + xSeconds: "{{count}} វិនាទី", + halfAMinute: "កន្លះនាទី", + lessThanXMinutes: "តិចជាង {{count}} នាទី", + xMinutes: "{{count}} នាទី", + aboutXHours: "ប្រហែល {{count}} ម៉ោង", + xHours: "{{count}} ម៉ោង", + xDays: "{{count}} ថ្ងៃ", + aboutXWeeks: "ប្រហែល {{count}} សប្តាហ៍", + xWeeks: "{{count}} សប្តាហ៍", + aboutXMonths: "ប្រហែល {{count}} ខែ", + xMonths: "{{count}} ខែ", + aboutXYears: "ប្រហែល {{count}} ឆ្នាំ", + xYears: "{{count}} ឆ្នាំ", + overXYears: "ជាង {{count}} ឆ្នាំ", + almostXYears: "ជិត {{count}} ឆ្នាំ" +}; +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token]; + if (typeof count === "number") result = result.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "ក្នុងរយៈពេល " + result;else + return result + "មុន"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a", + long: "h:mm:ss a", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'ម៉ោង' {{time}}", + long: "{{date}} 'ម៉ោង' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/km/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", + yesterday: "'ម្សិលមិញនៅម៉ោង' p", + today: "'ថ្ងៃនេះម៉ោង' p", + tomorrow: "'ថ្ងៃស្អែកម៉ោង' p", + nextWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/km/_lib/localize.js +var eraValues = { + narrow: ["ម.គស", "គស"], + abbreviated: ["មុនគ.ស", "គ.ស"], + wide: ["មុនគ្រិស្តសករាជ", "នៃគ្រិស្តសករាជ"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "ត្រីមាសទី 1", + "ត្រីមាសទី 2", + "ត្រីមាសទី 3", + "ត្រីមាសទី 4"] + +}; +var monthValues = { + narrow: [ + "ម.ក", + "ក.ម", + "មិ", + "ម.ស", + "ឧ.ស", + "ម.ថ", + "ក.ដ", + "សី", + "កញ", + "តុ", + "វិ", + "ធ"], + + abbreviated: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ"], + + wide: [ + "មករា", + "កុម្ភៈ", + "មីនា", + "មេសា", + "ឧសភា", + "មិថុនា", + "កក្កដា", + "សីហា", + "កញ្ញា", + "តុលា", + "វិច្ឆិកា", + "ធ្នូ"] + +}; +var dayValues = { + narrow: [ + "អា", + "ច", + "អ", + "ព", + "ព្រ", + "សុ", + "ស"], + + short: [ + "អា", + "ច", + "អ", + "ព", + "ព្រ", + "សុ", + "ស"], + + abbreviated: [ + "អា", + "ច", + "អ", + "ព", + "ព្រ", + "សុ", + "ស"], + + wide: [ + "អាទិត្យ", + "ចន្ទ", + "អង្គារ", + "ពុធ", + "ព្រហស្បតិ៍", + "សុក្រ", + "សៅរ៍"] + +}; +var dayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + }, + abbreviated: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + }, + wide: { + am: "ព្រឹក", + pm: "ល្ងាច", + midnight: "​ពេលកណ្ដាលអធ្រាត្រ", + noon: "ពេលថ្ងៃត្រង់", + morning: "ពេលព្រឹក", + afternoon: "ពេលរសៀល", + evening: "ពេលល្ងាច", + night: "ពេលយប់" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _) { + return Number(dirtyNumber).toString(); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/km.js +/** +* @category Locales +* @summary Khmer locale (Cambodian). +* @language Khmer +* @iso-639-2 khm +* @author Seanghay Yath [@seanghay](https://github.com/seanghay) +*/ +var km = { + code: "km", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(th|st|nd|rd)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ម\.)?គស/i, + abbreviated: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, + abbreviated: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, + wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ម\.ក/i, + /^ក\.ម/i, + /^មិ/i, + /^ម\.ស/i, + /^ឧ\.ស/i, + /^ម\.ថ/i, + /^ក\.ដ/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិ/i, + /^ធ/i], + + any: [ + /^មក/i, + /^កុ/i, + /^មីន/i, + /^មេ/i, + /^ឧស/i, + /^មិថ/i, + /^កក/i, + /^សី/i, + /^កញ/i, + /^តុ/i, + /^វិច/i, + /^ធ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + short: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + abbreviated: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + wide: /^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^អា/i, + /^ច/i, + /^អ/i, + /^ព/i, + /^ព្រ/i, + /^សុ/i, + /^ស/i], + + any: [ + /^អា/i, + /^ច/i, + /^អ/i, + /^ព/i, + /^ព្រ/i, + /^សុ/i, + /^សៅ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, + any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ព្រឹក/i, + pm: /^ល្ងាច/i, + midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i, + noon: /^ពេលថ្ងៃត្រង់/i, + morning: /ពេលព្រឹក/i, + afternoon: /ពេលរសៀល/i, + evening: /ពេលល្ងាច/i, + night: /ពេលយប់/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/km/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + km: km }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/cdn.min.js b/node_modules/date-fns/locale/km/cdn.min.js new file mode 100644 index 000000000..14c9c25e8 --- /dev/null +++ b/node_modules/date-fns/locale/km/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`ក្នុងរយៈពេល `+r:r+`មុន`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a`,long:`h:mm:ss a`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'ម៉ោង' {{time}}`,long:`{{date}} 'ម៉ោង' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p`,yesterday:`'ម្សិលមិញនៅម៉ោង' p`,today:`'ថ្ងៃនេះម៉ោង' p`,tomorrow:`'ថ្ងៃស្អែកម៉ោង' p`,nextWeek:`'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e).toString()},era:f({values:{narrow:[`ម.គស`,`គស`],abbreviated:[`មុនគ.ស`,`គ.ស`],wide:[`មុនគ្រិស្តសករាជ`,`នៃគ្រិស្តសករាជ`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`ត្រីមាសទី 1`,`ត្រីមាសទី 2`,`ត្រីមាសទី 3`,`ត្រីមាសទី 4`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ម.ក`,`ក.ម`,`មិ`,`ម.ស`,`ឧ.ស`,`ម.ថ`,`ក.ដ`,`សី`,`កញ`,`តុ`,`វិ`,`ធ`],abbreviated:[`មករា`,`កុម្ភៈ`,`មីនា`,`មេសា`,`ឧសភា`,`មិថុនា`,`កក្កដា`,`សីហា`,`កញ្ញា`,`តុលា`,`វិច្ឆិកា`,`ធ្នូ`],wide:[`មករា`,`កុម្ភៈ`,`មីនា`,`មេសា`,`ឧសភា`,`មិថុនា`,`កក្កដា`,`សីហា`,`កញ្ញា`,`តុលា`,`វិច្ឆិកា`,`ធ្នូ`]},defaultWidth:`wide`}),day:f({values:{narrow:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],short:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],abbreviated:[`អា`,`ច`,`អ`,`ព`,`ព្រ`,`សុ`,`ស`],wide:[`អាទិត្យ`,`ចន្ទ`,`អង្គារ`,`ពុធ`,`ព្រហស្បតិ៍`,`សុក្រ`,`សៅរ៍`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},abbreviated:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},wide:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},abbreviated:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`},wide:{am:`ព្រឹក`,pm:`ល្ងាច`,midnight:`​ពេលកណ្ដាលអធ្រាត្រ`,noon:`ពេលថ្ងៃត្រង់`,morning:`ពេលព្រឹក`,afternoon:`ពេលរសៀល`,evening:`ពេលល្ងាច`,night:`ពេលយប់`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`km`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{km:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn.cjs b/node_modules/date-fns/locale/kn.cjs new file mode 100644 index 000000000..3204689a3 --- /dev/null +++ b/node_modules/date-fns/locale/kn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.kn = void 0; +var _index = require("./kn/_lib/formatDistance.cjs"); +var _index2 = require("./kn/_lib/formatLong.cjs"); +var _index3 = require("./kn/_lib/formatRelative.cjs"); +var _index4 = require("./kn/_lib/localize.cjs"); +var _index5 = require("./kn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +const kn = (exports.kn = { + code: "kn", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/kn.d.cts b/node_modules/date-fns/locale/kn.d.cts new file mode 100644 index 000000000..43e6a95bf --- /dev/null +++ b/node_modules/date-fns/locale/kn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export declare const kn: Locale; diff --git a/node_modules/date-fns/locale/kn.d.ts b/node_modules/date-fns/locale/kn.d.ts new file mode 100644 index 000000000..43e6a95bf --- /dev/null +++ b/node_modules/date-fns/locale/kn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export declare const kn: Locale; diff --git a/node_modules/date-fns/locale/kn.js b/node_modules/date-fns/locale/kn.js new file mode 100644 index 000000000..1e10e028c --- /dev/null +++ b/node_modules/date-fns/locale/kn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./kn/_lib/formatDistance.js"; +import { formatLong } from "./kn/_lib/formatLong.js"; +import { formatRelative } from "./kn/_lib/formatRelative.js"; +import { localize } from "./kn/_lib/localize.js"; +import { match } from "./kn/_lib/match.js"; + +/** + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) + */ +export const kn = { + code: "kn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default kn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs new file mode 100644 index 000000000..b98a078a4 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.cjs @@ -0,0 +1,215 @@ +"use strict"; +exports.formatDistance = void 0; + +// note: no implementation for weeks + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + }, + + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + }, + + halfAMinute: { + other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ", + }, + }, + + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + }, + + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ", + }, + }, + + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ", + }, + }, + + // TODO + // aboutXWeeks: {}, + + // TODO + // xWeeks: {}, + + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + }, + }, + + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + }, + }, +}; + +function getResultByTense(parentToken, options) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + return parentToken.default; +} + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace("{{count}}", String(count)); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance.js b/node_modules/date-fns/locale/kn/_lib/formatDistance.js new file mode 100644 index 000000000..66a380f13 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance.js @@ -0,0 +1,211 @@ +// note: no implementation for weeks + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + }, + }, + + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ", + }, + }, + + halfAMinute: { + other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ", + }, + }, + + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + }, + }, + + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ", + }, + }, + + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ", + }, + }, + + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ", + }, + }, + + // TODO + // aboutXWeeks: {}, + + // TODO + // xWeeks: {}, + + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ", + }, + }, + + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ", + }, + }, + + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ", + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + }, + }, + + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + }, + }, +}; + +function getResultByTense(parentToken, options) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + return parentToken.default; +} + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace("{{count}}", String(count)); +}; diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.cjs b/node_modules/date-fns/locale/kn/_lib/formatLong.cjs new file mode 100644 index 000000000..f31790da2 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.cjs @@ -0,0 +1,43 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const dateFormats = { + full: "EEEE, MMMM d, y", // CLDR 1816 + long: "MMMM d, y", // CLDR 1817 + medium: "MMM d, y", // CLDR 1818 + short: "d/M/yy", // CLDR 1819 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR 1820 + long: "hh:mm:ss a z", // CLDR 1821 + medium: "hh:mm:ss a", // CLDR 1822 + short: "hh:mm a", // CLDR 1823 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR 1824 + long: "{{date}} {{time}}", // CLDR 1825 + medium: "{{date}} {{time}}", // CLDR 1826 + short: "{{date}} {{time}}", // CLDR 1827 +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/kn/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/kn/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong.js b/node_modules/date-fns/locale/kn/_lib/formatLong.js new file mode 100644 index 000000000..0fd972e91 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong.js @@ -0,0 +1,41 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const dateFormats = { + full: "EEEE, MMMM d, y", // CLDR 1816 + long: "MMMM d, y", // CLDR 1817 + medium: "MMM d, y", // CLDR 1818 + short: "d/M/yy", // CLDR 1819 +}; + +const timeFormats = { + full: "hh:mm:ss a zzzz", // CLDR 1820 + long: "hh:mm:ss a z", // CLDR 1821 + medium: "hh:mm:ss a", // CLDR 1822 + short: "hh:mm a", // CLDR 1823 +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", // CLDR 1824 + long: "{{date}} {{time}}", // CLDR 1825 + medium: "{{date}} {{time}}", // CLDR 1826 + short: "{{date}} {{time}}", // CLDR 1827 +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/kn/_lib/formatRelative.cjs new file mode 100644 index 000000000..c0740853f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative.js b/node_modules/date-fns/locale/kn/_lib/formatRelative.js new file mode 100644 index 000000000..07536d588 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/kn/_lib/localize.cjs b/node_modules/date-fns/locale/kn/_lib/localize.cjs new file mode 100644 index 000000000..ddba345ae --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.cjs @@ -0,0 +1,172 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const eraValues = { + narrow: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + abbreviated: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], // CLDR #1618, #1620 + wide: ["ಕ್ರಿಸ್ತ ಪೂರ್ವ", "ಕ್ರಿಸ್ತ ಶಕ"], // CLDR #1614, #1616 +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ತ್ರೈ 1", "ತ್ರೈ 2", "ತ್ರೈ 3", "ತ್ರೈ 4"], // CLDR #1630 - #1638 + wide: ["1ನೇ ತ್ರೈಮಾಸಿಕ", "2ನೇ ತ್ರೈಮಾಸಿಕ", "3ನೇ ತ್ರೈಮಾಸಿಕ", "4ನೇ ತ್ರೈಮಾಸಿಕ"], // CLDR #1622 - #1629 +}; + +// CLDR #1646 - #1717 +const monthValues = { + narrow: ["ಜ", "ಫೆ", "ಮಾ", "ಏ", "ಮೇ", "ಜೂ", "ಜು", "ಆ", "ಸೆ", "ಅ", "ನ", "ಡಿ"], + + abbreviated: [ + "ಜನ", + "ಫೆಬ್ರ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿ", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗ", + "ಸೆಪ್ಟೆಂ", + "ಅಕ್ಟೋ", + "ನವೆಂ", + "ಡಿಸೆಂ", + ], + + wide: [ + "ಜನವರಿ", + "ಫೆಬ್ರವರಿ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿಲ್", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗಸ್ಟ್", + "ಸೆಪ್ಟೆಂಬರ್", + "ಅಕ್ಟೋಬರ್", + "ನವೆಂಬರ್", + "ಡಿಸೆಂಬರ್", + ], +}; + +// CLDR #1718 - #1773 +const dayValues = { + narrow: ["ಭಾ", "ಸೋ", "ಮಂ", "ಬು", "ಗು", "ಶು", "ಶ"], + short: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + abbreviated: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + wide: [ + "ಭಾನುವಾರ", + "ಸೋಮವಾರ", + "ಮಂಗಳವಾರ", + "ಬುಧವಾರ", + "ಗುರುವಾರ", + "ಶುಕ್ರವಾರ", + "ಶನಿವಾರ", + ], +}; + +// CLDR #1774 - #1815 +const dayPeriodValues = { + narrow: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾಹ್ನ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾಹ್ನ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ಪೂ", + pm: "ಅ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "ನೇ"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/kn/_lib/localize.d.cts b/node_modules/date-fns/locale/kn/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kn/_lib/localize.d.ts b/node_modules/date-fns/locale/kn/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/kn/_lib/localize.js b/node_modules/date-fns/locale/kn/_lib/localize.js new file mode 100644 index 000000000..e017d3185 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize.js @@ -0,0 +1,170 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +const eraValues = { + narrow: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + abbreviated: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], // CLDR #1618, #1620 + wide: ["ಕ್ರಿಸ್ತ ಪೂರ್ವ", "ಕ್ರಿಸ್ತ ಶಕ"], // CLDR #1614, #1616 +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["ತ್ರೈ 1", "ತ್ರೈ 2", "ತ್ರೈ 3", "ತ್ರೈ 4"], // CLDR #1630 - #1638 + wide: ["1ನೇ ತ್ರೈಮಾಸಿಕ", "2ನೇ ತ್ರೈಮಾಸಿಕ", "3ನೇ ತ್ರೈಮಾಸಿಕ", "4ನೇ ತ್ರೈಮಾಸಿಕ"], // CLDR #1622 - #1629 +}; + +// CLDR #1646 - #1717 +const monthValues = { + narrow: ["ಜ", "ಫೆ", "ಮಾ", "ಏ", "ಮೇ", "ಜೂ", "ಜು", "ಆ", "ಸೆ", "ಅ", "ನ", "ಡಿ"], + + abbreviated: [ + "ಜನ", + "ಫೆಬ್ರ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿ", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗ", + "ಸೆಪ್ಟೆಂ", + "ಅಕ್ಟೋ", + "ನವೆಂ", + "ಡಿಸೆಂ", + ], + + wide: [ + "ಜನವರಿ", + "ಫೆಬ್ರವರಿ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿಲ್", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗಸ್ಟ್", + "ಸೆಪ್ಟೆಂಬರ್", + "ಅಕ್ಟೋಬರ್", + "ನವೆಂಬರ್", + "ಡಿಸೆಂಬರ್", + ], +}; + +// CLDR #1718 - #1773 +const dayValues = { + narrow: ["ಭಾ", "ಸೋ", "ಮಂ", "ಬು", "ಗು", "ಶು", "ಶ"], + short: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + abbreviated: ["ಭಾನು", "ಸೋಮ", "ಮಂಗಳ", "ಬುಧ", "ಗುರು", "ಶುಕ್ರ", "ಶನಿ"], + wide: [ + "ಭಾನುವಾರ", + "ಸೋಮವಾರ", + "ಮಂಗಳವಾರ", + "ಬುಧವಾರ", + "ಗುರುವಾರ", + "ಶುಕ್ರವಾರ", + "ಶನಿವಾರ", + ], +}; + +// CLDR #1774 - #1815 +const dayPeriodValues = { + narrow: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾಹ್ನ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾಹ್ನ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ಪೂ", + pm: "ಅ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "ನೇ"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/kn/_lib/match.cjs b/node_modules/date-fns/locale/kn/_lib/match.cjs new file mode 100644 index 000000000..396dffdef --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(ನೇ|ನೆ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i, +}; +const parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, + wide: /^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, + abbreviated: + /^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, + wide: /^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ಜ$/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂ/i, + /^ಜು$/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i, + ], + + any: [ + /^ಜನ/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂನ್/i, + /^ಜುಲೈ/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, + short: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + abbreviated: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + wide: /^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i, +}; +const parseDayPatterns = { + narrow: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], + any: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, + any: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ಪೂ/i, + pm: /^ಅ/i, + midnight: /ಮಧ್ಯರಾತ್ರಿ/i, + noon: /ಮಧ್ಯಾನ್ಹ/i, + morning: /ಬೆಳಗ್ಗೆ/i, + afternoon: /ಮಧ್ಯಾನ್ಹ/i, + evening: /ಸಂಜೆ/i, + night: /ರಾತ್ರಿ/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/kn/_lib/match.d.cts b/node_modules/date-fns/locale/kn/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kn/_lib/match.d.ts b/node_modules/date-fns/locale/kn/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/kn/_lib/match.js b/node_modules/date-fns/locale/kn/_lib/match.js new file mode 100644 index 000000000..c18fcf2ba --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(ನೇ|ನೆ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i, +}; +const parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, + wide: /^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, + abbreviated: + /^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, + wide: /^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ಜ$/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂ/i, + /^ಜು$/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i, + ], + + any: [ + /^ಜನ/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂನ್/i, + /^ಜುಲೈ/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, + short: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + abbreviated: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + wide: /^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i, +}; +const parseDayPatterns = { + narrow: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], + any: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, + any: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ಪೂ/i, + pm: /^ಅ/i, + midnight: /ಮಧ್ಯರಾತ್ರಿ/i, + noon: /ಮಧ್ಯಾನ್ಹ/i, + morning: /ಬೆಳಗ್ಗೆ/i, + afternoon: /ಮಧ್ಯಾನ್ಹ/i, + evening: /ಸಂಜೆ/i, + night: /ರಾತ್ರಿ/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/kn/cdn.js b/node_modules/date-fns/locale/kn/cdn.js new file mode 100644 index 000000000..3daf2369f --- /dev/null +++ b/node_modules/date-fns/locale/kn/cdn.js @@ -0,0 +1,675 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/kn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" + }, + other: { + default: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ", + past: "{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ" + } + }, + xSeconds: { + one: { + default: "1 ಸೆಕೆಂಡ್", + future: "1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ", + past: "1 ಸೆಕೆಂಡ್ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ಸೆಕೆಂಡುಗಳು", + future: "{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ", + past: "{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ" + } + }, + halfAMinute: { other: { + default: "ಅರ್ಧ ನಿಮಿಷ", + future: "ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ", + past: "ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ" + } }, + lessThanXMinutes: { + one: { + default: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" + }, + other: { + default: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + future: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ", + past: "{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ" + } + }, + xMinutes: { + one: { + default: "1 ನಿಮಿಷ", + future: "1 ನಿಮಿಷದಲ್ಲಿ", + past: "1 ನಿಮಿಷದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ನಿಮಿಷಗಳು", + future: "{{count}} ನಿಮಿಷಗಳಲ್ಲಿ", + past: "{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ" + } + }, + aboutXHours: { + one: { + default: "ಸುಮಾರು 1 ಗಂಟೆ", + future: "ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ", + past: "ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳು", + future: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" + } + }, + xHours: { + one: { + default: "1 ಗಂಟೆ", + future: "1 ಗಂಟೆಯಲ್ಲಿ", + past: "1 ಗಂಟೆ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ಗಂಟೆಗಳು", + future: "{{count}} ಗಂಟೆಗಳಲ್ಲಿ", + past: "{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ" + } + }, + xDays: { + one: { + default: "1 ದಿನ", + future: "1 ದಿನದಲ್ಲಿ", + past: "1 ದಿನದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ದಿನಗಳು", + future: "{{count}} ದಿನಗಳಲ್ಲಿ", + past: "{{count}} ದಿನಗಳ ಹಿಂದೆ" + } + }, + aboutXMonths: { + one: { + default: "ಸುಮಾರು 1 ತಿಂಗಳು", + future: "ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ", + past: "ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ತಿಂಗಳು", + future: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" + } + }, + xMonths: { + one: { + default: "1 ತಿಂಗಳು", + future: "1 ತಿಂಗಳಲ್ಲಿ", + past: "1 ತಿಂಗಳ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ತಿಂಗಳು", + future: "{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ", + past: "{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ" + } + }, + aboutXYears: { + one: { + default: "ಸುಮಾರು 1 ವರ್ಷ", + future: "ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ", + past: "ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ" + }, + other: { + default: "ಸುಮಾರು {{count}} ವರ್ಷಗಳು", + future: "ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ" + } + }, + xYears: { + one: { + default: "1 ವರ್ಷ", + future: "1 ವರ್ಷದಲ್ಲಿ", + past: "1 ವರ್ಷದ ಹಿಂದೆ" + }, + other: { + default: "{{count}} ವರ್ಷಗಳು", + future: "{{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "{{count}} ವರ್ಷಗಳ ಹಿಂದೆ" + } + }, + overXYears: { + one: { + default: "1 ವರ್ಷದ ಮೇಲೆ", + future: "1 ವರ್ಷದ ಮೇಲೆ", + past: "1 ವರ್ಷದ ಮೇಲೆ" + }, + other: { + default: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + future: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ", + past: "{{count}} ವರ್ಷಗಳ ಮೇಲೆ" + } + }, + almostXYears: { + one: { + default: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + future: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ", + past: "ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ" + }, + other: { + default: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + future: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ", + past: "ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ" + } + } +}; +function getResultByTense(parentToken, options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return parentToken.future;else + return parentToken.past; + return parentToken.default; +} +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (tokenValue.one && count === 1) result = getResultByTense(tokenValue.one, options);else + result = getResultByTense(tokenValue.other, options); + return result.replace("{{count}}", String(count)); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM d, y", + long: "MMMM d, y", + medium: "MMM d, y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "hh:mm:ss a zzzz", + long: "hh:mm:ss a z", + medium: "hh:mm:ss a", + short: "hh:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/kn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/kn/_lib/localize.js +var eraValues = { + narrow: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + abbreviated: ["ಕ್ರಿ.ಪೂ", "ಕ್ರಿ.ಶ"], + wide: ["ಕ್ರಿಸ್ತ ಪೂರ್ವ", "ಕ್ರಿಸ್ತ ಶಕ"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "ತ್ರೈ 1", + "ತ್ರೈ 2", + "ತ್ರೈ 3", + "ತ್ರೈ 4"], + + wide: [ + "1ನೇ ತ್ರೈಮಾಸಿಕ", + "2ನೇ ತ್ರೈಮಾಸಿಕ", + "3ನೇ ತ್ರೈಮಾಸಿಕ", + "4ನೇ ತ್ರೈಮಾಸಿಕ"] + +}; +var monthValues = { + narrow: [ + "ಜ", + "ಫೆ", + "ಮಾ", + "ಏ", + "ಮೇ", + "ಜೂ", + "ಜು", + "ಆ", + "ಸೆ", + "ಅ", + "ನ", + "ಡಿ"], + + abbreviated: [ + "ಜನ", + "ಫೆಬ್ರ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿ", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗ", + "ಸೆಪ್ಟೆಂ", + "ಅಕ್ಟೋ", + "ನವೆಂ", + "ಡಿಸೆಂ"], + + wide: [ + "ಜನವರಿ", + "ಫೆಬ್ರವರಿ", + "ಮಾರ್ಚ್", + "ಏಪ್ರಿಲ್", + "ಮೇ", + "ಜೂನ್", + "ಜುಲೈ", + "ಆಗಸ್ಟ್", + "ಸೆಪ್ಟೆಂಬರ್", + "ಅಕ್ಟೋಬರ್", + "ನವೆಂಬರ್", + "ಡಿಸೆಂಬರ್"] + +}; +var dayValues = { + narrow: [ + "ಭಾ", + "ಸೋ", + "ಮಂ", + "ಬು", + "ಗು", + "ಶು", + "ಶ"], + + short: [ + "ಭಾನು", + "ಸೋಮ", + "ಮಂಗಳ", + "ಬುಧ", + "ಗುರು", + "ಶುಕ್ರ", + "ಶನಿ"], + + abbreviated: [ + "ಭಾನು", + "ಸೋಮ", + "ಮಂಗಳ", + "ಬುಧ", + "ಗುರು", + "ಶುಕ್ರ", + "ಶನಿ"], + + wide: [ + "ಭಾನುವಾರ", + "ಸೋಮವಾರ", + "ಮಂಗಳವಾರ", + "ಬುಧವಾರ", + "ಗುರುವಾರ", + "ಶುಕ್ರವಾರ", + "ಶನಿವಾರ"] + +}; +var dayPeriodValues = { + narrow: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾಹ್ನ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾಹ್ನ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ಪೂ", + pm: "ಅ", + midnight: "ಮಧ್ಯರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + }, + abbreviated: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + }, + wide: { + am: "ಪೂರ್ವಾಹ್ನ", + pm: "ಅಪರಾಹ್ನ", + midnight: "ಮಧ್ಯ ರಾತ್ರಿ", + noon: "ಮಧ್ಯಾನ್ಹ", + morning: "ಬೆಳಗ್ಗೆ", + afternoon: "ಮಧ್ಯಾನ್ಹ", + evening: "ಸಂಜೆ", + night: "ರಾತ್ರಿ" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "ನೇ"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/kn.js +/** +* @category Locales +* @summary Kannada locale (India). +* @language Kannada +* @iso-639-2 kan +* @author Manjunatha Gouli [@developergouli](https://github.com/developergouli) +*/ +var kn = { + code: "kn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(ನೇ|ನೆ)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, + wide: /^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, + abbreviated: /^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, + wide: /^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ಜ$/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂ/i, + /^ಜು$/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i], + + any: [ + /^ಜನ/i, + /^ಫೆ/i, + /^ಮಾ/i, + /^ಏ/i, + /^ಮೇ/i, + /^ಜೂನ್/i, + /^ಜುಲೈ/i, + /^ಆ/i, + /^ಸೆ/i, + /^ಅ/i, + /^ನ/i, + /^ಡಿ/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, + short: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + abbreviated: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + wide: /^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ಭಾ/i, + /^ಸೋ/i, + /^ಮ/i, + /^ಬು/i, + /^ಗು/i, + /^ಶು/i, + /^ಶ/i], + + any: [ + /^ಭಾ/i, + /^ಸೋ/i, + /^ಮ/i, + /^ಬು/i, + /^ಗು/i, + /^ಶು/i, + /^ಶ/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, + any: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ಪೂ/i, + pm: /^ಅ/i, + midnight: /ಮಧ್ಯರಾತ್ರಿ/i, + noon: /ಮಧ್ಯಾನ್ಹ/i, + morning: /ಬೆಳಗ್ಗೆ/i, + afternoon: /ಮಧ್ಯಾನ್ಹ/i, + evening: /ಸಂಜೆ/i, + night: /ರಾತ್ರಿ/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/kn/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + kn: kn }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/cdn.min.js b/node_modules/date-fns/locale/kn/cdn.min.js new file mode 100644 index 000000000..4a84b089a --- /dev/null +++ b/node_modules/date-fns/locale/kn/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?e.future:e.past:e.default}var c=function(e,t,n){var r,i=o[e];return r=i.one&&t===1?s(i.one,n):s(i.other,n),r.replace(`{{count}}`,String(t))};function l(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var u={date:l({formats:{full:`EEEE, MMMM d, y`,long:`MMMM d, y`,medium:`MMM d, y`,short:`d/M/yy`},defaultWidth:`full`}),time:l({formats:{full:`hh:mm:ss a zzzz`,long:`hh:mm:ss a z`,medium:`hh:mm:ss a`,short:`hh:mm a`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'ಕಳೆದ' eeee p 'ಕ್ಕೆ'`,yesterday:`'ನಿನ್ನೆ' p 'ಕ್ಕೆ'`,today:`'ಇಂದು' p 'ಕ್ಕೆ'`,tomorrow:`'ನಾಳೆ' p 'ಕ್ಕೆ'`,nextWeek:`eeee p 'ಕ್ಕೆ'`,other:`P`},f=function(e,t,n,r){return d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`ನೇ`},era:p({values:{narrow:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],abbreviated:[`ಕ್ರಿ.ಪೂ`,`ಕ್ರಿ.ಶ`],wide:[`ಕ್ರಿಸ್ತ ಪೂರ್ವ`,`ಕ್ರಿಸ್ತ ಶಕ`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ತ್ರೈ 1`,`ತ್ರೈ 2`,`ತ್ರೈ 3`,`ತ್ರೈ 4`],wide:[`1ನೇ ತ್ರೈಮಾಸಿಕ`,`2ನೇ ತ್ರೈಮಾಸಿಕ`,`3ನೇ ತ್ರೈಮಾಸಿಕ`,`4ನೇ ತ್ರೈಮಾಸಿಕ`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`ಜ`,`ಫೆ`,`ಮಾ`,`ಏ`,`ಮೇ`,`ಜೂ`,`ಜು`,`ಆ`,`ಸೆ`,`ಅ`,`ನ`,`ಡಿ`],abbreviated:[`ಜನ`,`ಫೆಬ್ರ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿ`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗ`,`ಸೆಪ್ಟೆಂ`,`ಅಕ್ಟೋ`,`ನವೆಂ`,`ಡಿಸೆಂ`],wide:[`ಜನವರಿ`,`ಫೆಬ್ರವರಿ`,`ಮಾರ್ಚ್`,`ಏಪ್ರಿಲ್`,`ಮೇ`,`ಜೂನ್`,`ಜುಲೈ`,`ಆಗಸ್ಟ್`,`ಸೆಪ್ಟೆಂಬರ್`,`ಅಕ್ಟೋಬರ್`,`ನವೆಂಬರ್`,`ಡಿಸೆಂಬರ್`]},defaultWidth:`wide`}),day:p({values:{narrow:[`ಭಾ`,`ಸೋ`,`ಮಂ`,`ಬು`,`ಗು`,`ಶು`,`ಶ`],short:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],abbreviated:[`ಭಾನು`,`ಸೋಮ`,`ಮಂಗಳ`,`ಬುಧ`,`ಗುರು`,`ಶುಕ್ರ`,`ಶನಿ`],wide:[`ಭಾನುವಾರ`,`ಸೋಮವಾರ`,`ಮಂಗಳವಾರ`,`ಬುಧವಾರ`,`ಗುರುವಾರ`,`ಶುಕ್ರವಾರ`,`ಶನಿವಾರ`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾಹ್ನ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾಹ್ನ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},abbreviated:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},wide:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ಪೂ`,pm:`ಅ`,midnight:`ಮಧ್ಯರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},abbreviated:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯ ರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`},wide:{am:`ಪೂರ್ವಾಹ್ನ`,pm:`ಅಪರಾಹ್ನ`,midnight:`ಮಧ್ಯ ರಾತ್ರಿ`,noon:`ಮಧ್ಯಾನ್ಹ`,morning:`ಬೆಳಗ್ಗೆ`,afternoon:`ಮಧ್ಯಾನ್ಹ`,evening:`ಸಂಜೆ`,night:`ರಾತ್ರಿ`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`kn`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{kn:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko.cjs b/node_modules/date-fns/locale/ko.cjs new file mode 100644 index 000000000..f4ac12e7a --- /dev/null +++ b/node_modules/date-fns/locale/ko.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.ko = void 0; +var _index = require("./ko/_lib/formatDistance.cjs"); +var _index2 = require("./ko/_lib/formatLong.cjs"); +var _index3 = require("./ko/_lib/formatRelative.cjs"); +var _index4 = require("./ko/_lib/localize.cjs"); +var _index5 = require("./ko/_lib/match.cjs"); + +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +const ko = (exports.ko = { + code: "ko", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ko.d.cts b/node_modules/date-fns/locale/ko.d.cts new file mode 100644 index 000000000..a6a0b2bc5 --- /dev/null +++ b/node_modules/date-fns/locale/ko.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ko: Locale; diff --git a/node_modules/date-fns/locale/ko.d.ts b/node_modules/date-fns/locale/ko.d.ts new file mode 100644 index 000000000..a6a0b2bc5 --- /dev/null +++ b/node_modules/date-fns/locale/ko.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export declare const ko: Locale; diff --git a/node_modules/date-fns/locale/ko.js b/node_modules/date-fns/locale/ko.js new file mode 100644 index 000000000..ffb03f0ae --- /dev/null +++ b/node_modules/date-fns/locale/ko.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./ko/_lib/formatDistance.js"; +import { formatLong } from "./ko/_lib/formatLong.js"; +import { formatRelative } from "./ko/_lib/formatRelative.js"; +import { localize } from "./ko/_lib/localize.js"; +import { match } from "./ko/_lib/match.js"; + +/** + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev](https://github.com/angdev) + * @author Lee Seoyoen [@iamssen](https://github.com/iamssen) + * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) + */ +export const ko = { + code: "ko", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ko; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs new file mode 100644 index 000000000..c943b7bd3 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1초 미만", + other: "{{count}}초 미만", + }, + + xSeconds: { + one: "1초", + other: "{{count}}초", + }, + + halfAMinute: "30초", + + lessThanXMinutes: { + one: "1분 미만", + other: "{{count}}분 미만", + }, + + xMinutes: { + one: "1분", + other: "{{count}}분", + }, + + aboutXHours: { + one: "약 1시간", + other: "약 {{count}}시간", + }, + + xHours: { + one: "1시간", + other: "{{count}}시간", + }, + + xDays: { + one: "1일", + other: "{{count}}일", + }, + + aboutXWeeks: { + one: "약 1주", + other: "약 {{count}}주", + }, + + xWeeks: { + one: "1주", + other: "{{count}}주", + }, + + aboutXMonths: { + one: "약 1개월", + other: "약 {{count}}개월", + }, + + xMonths: { + one: "1개월", + other: "{{count}}개월", + }, + + aboutXYears: { + one: "약 1년", + other: "약 {{count}}년", + }, + + xYears: { + one: "1년", + other: "{{count}}년", + }, + + overXYears: { + one: "1년 이상", + other: "{{count}}년 이상", + }, + + almostXYears: { + one: "거의 1년", + other: "거의 {{count}}년", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " 후"; + } else { + return result + " 전"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance.js b/node_modules/date-fns/locale/ko/_lib/formatDistance.js new file mode 100644 index 000000000..b5e928072 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "1초 미만", + other: "{{count}}초 미만", + }, + + xSeconds: { + one: "1초", + other: "{{count}}초", + }, + + halfAMinute: "30초", + + lessThanXMinutes: { + one: "1분 미만", + other: "{{count}}분 미만", + }, + + xMinutes: { + one: "1분", + other: "{{count}}분", + }, + + aboutXHours: { + one: "약 1시간", + other: "약 {{count}}시간", + }, + + xHours: { + one: "1시간", + other: "{{count}}시간", + }, + + xDays: { + one: "1일", + other: "{{count}}일", + }, + + aboutXWeeks: { + one: "약 1주", + other: "약 {{count}}주", + }, + + xWeeks: { + one: "1주", + other: "{{count}}주", + }, + + aboutXMonths: { + one: "약 1개월", + other: "약 {{count}}개월", + }, + + xMonths: { + one: "1개월", + other: "{{count}}개월", + }, + + aboutXYears: { + one: "약 1년", + other: "약 {{count}}년", + }, + + xYears: { + one: "1년", + other: "{{count}}년", + }, + + overXYears: { + one: "1년 이상", + other: "{{count}}년 이상", + }, + + almostXYears: { + one: "거의 1년", + other: "거의 {{count}}년", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " 후"; + } else { + return result + " 전"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.cjs b/node_modules/date-fns/locale/ko/_lib/formatLong.cjs new file mode 100644 index 000000000..061a792ef --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "a H시 mm분 ss초 zzzz", + long: "a H:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ko/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ko/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong.js b/node_modules/date-fns/locale/ko/_lib/formatLong.js new file mode 100644 index 000000000..ce924a80d --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "a H시 mm분 ss초 zzzz", + long: "a H:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs new file mode 100644 index 000000000..21006c207 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative.js b/node_modules/date-fns/locale/ko/_lib/formatRelative.js new file mode 100644 index 000000000..e5e322dce --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ko/_lib/localize.cjs b/node_modules/date-fns/locale/ko/_lib/localize.cjs new file mode 100644 index 000000000..a3113d1dc --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.cjs @@ -0,0 +1,169 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + wide: ["기원전", "서기"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1분기", "2분기", "3분기", "4분기"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], +}; + +const dayValues = { + narrow: ["일", "월", "화", "수", "목", "금", "토"], + short: ["일", "월", "화", "수", "목", "금", "토"], + abbreviated: ["일", "월", "화", "수", "목", "금", "토"], + wide: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], +}; + +const dayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "minute": + case "second": + return String(number); + case "date": + return number + "일"; + default: + return number + "번째"; + } +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ko/_lib/localize.d.cts b/node_modules/date-fns/locale/ko/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ko/_lib/localize.d.ts b/node_modules/date-fns/locale/ko/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ko/_lib/localize.js b/node_modules/date-fns/locale/ko/_lib/localize.js new file mode 100644 index 000000000..9ac3b1ec6 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize.js @@ -0,0 +1,167 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + wide: ["기원전", "서기"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1분기", "2분기", "3분기", "4분기"], +}; + +const monthValues = { + narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], + + abbreviated: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월", + ], +}; + +const dayValues = { + narrow: ["일", "월", "화", "수", "목", "금", "토"], + short: ["일", "월", "화", "수", "목", "금", "토"], + abbreviated: ["일", "월", "화", "수", "목", "금", "토"], + wide: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], +}; + +const dayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = String(options?.unit); + + switch (unit) { + case "minute": + case "second": + return String(number); + case "date": + return number + "일"; + default: + return number + "번째"; + } +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ko/_lib/match.cjs b/node_modules/date-fns/locale/ko/_lib/match.cjs new file mode 100644 index 000000000..b381b21f5 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.cjs @@ -0,0 +1,118 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i, +}; +const parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i, +}; +const parseMonthPatterns = { + any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/, +}; +const parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ko/_lib/match.d.cts b/node_modules/date-fns/locale/ko/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ko/_lib/match.d.ts b/node_modules/date-fns/locale/ko/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ko/_lib/match.js b/node_modules/date-fns/locale/ko/_lib/match.js new file mode 100644 index 000000000..99cba4571 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match.js @@ -0,0 +1,115 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i, +}; +const parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i, +}; +const parseMonthPatterns = { + any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/, + ], +}; + +const matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/, +}; +const parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ko/cdn.js b/node_modules/date-fns/locale/ko/cdn.js new file mode 100644 index 000000000..a2418fd0a --- /dev/null +++ b/node_modules/date-fns/locale/ko/cdn.js @@ -0,0 +1,551 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ko/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "1초 미만", + other: "{{count}}초 미만" + }, + xSeconds: { + one: "1초", + other: "{{count}}초" + }, + halfAMinute: "30초", + lessThanXMinutes: { + one: "1분 미만", + other: "{{count}}분 미만" + }, + xMinutes: { + one: "1분", + other: "{{count}}분" + }, + aboutXHours: { + one: "약 1시간", + other: "약 {{count}}시간" + }, + xHours: { + one: "1시간", + other: "{{count}}시간" + }, + xDays: { + one: "1일", + other: "{{count}}일" + }, + aboutXWeeks: { + one: "약 1주", + other: "약 {{count}}주" + }, + xWeeks: { + one: "1주", + other: "{{count}}주" + }, + aboutXMonths: { + one: "약 1개월", + other: "약 {{count}}개월" + }, + xMonths: { + one: "1개월", + other: "{{count}}개월" + }, + aboutXYears: { + one: "약 1년", + other: "약 {{count}}년" + }, + xYears: { + one: "1년", + other: "{{count}}년" + }, + overXYears: { + one: "1년 이상", + other: "{{count}}년 이상" + }, + almostXYears: { + one: "거의 1년", + other: "거의 {{count}}년" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " 후";else + return result + " 전"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y년 M월 d일 EEEE", + long: "y년 M월 d일", + medium: "y.MM.dd", + short: "y.MM.dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "a H시 mm분 ss초 zzzz", + long: "a H:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ko/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ko/_lib/localize.js +var eraValues = { + narrow: ["BC", "AD"], + abbreviated: ["BC", "AD"], + wide: ["기원전", "서기"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1분기", + "2분기", + "3분기", + "4분기"] + +}; +var monthValues = { + narrow: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12"], + + abbreviated: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월"], + + wide: [ + "1월", + "2월", + "3월", + "4월", + "5월", + "6월", + "7월", + "8월", + "9월", + "10월", + "11월", + "12월"] + +}; +var dayValues = { + narrow: [ + "일", + "월", + "화", + "수", + "목", + "금", + "토"], + + short: [ + "일", + "월", + "화", + "수", + "목", + "금", + "토"], + + abbreviated: [ + "일", + "월", + "화", + "수", + "목", + "금", + "토"], + + wide: [ + "일요일", + "월요일", + "화요일", + "수요일", + "목요일", + "금요일", + "토요일"] + +}; +var dayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + }, + abbreviated: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + }, + wide: { + am: "오전", + pm: "오후", + midnight: "자정", + noon: "정오", + morning: "아침", + afternoon: "오후", + evening: "저녁", + night: "밤" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + switch (String(options === null || options === void 0 ? void 0 : options.unit)) { + case "minute": + case "second":return String(number); + case "date":return number + "일"; + default:return number + "번째"; + } +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ko.js +/** +* @category Locales +* @summary Korean locale. +* @language Korean +* @iso-639-2 kor +* @author Hong Chulju [@angdev](https://github.com/angdev) +* @author Lee Seoyoen [@iamssen](https://github.com/iamssen) +* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles) +*/ +var ko = { + code: "ko", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(일|번째)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(bc|기원전)/i, /^(ad|서기)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^일/, + /^월/, + /^화/, + /^수/, + /^목/, + /^금/, + /^토/] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ko/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ko: ko }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/cdn.min.js b/node_modules/date-fns/locale/ko/cdn.min.js new file mode 100644 index 000000000..4f4225a9a --- /dev/null +++ b/node_modules/date-fns/locale/ko/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` 후`:r+` 전`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`y년 M월 d일 EEEE`,long:`y년 M월 d일`,medium:`y.MM.dd`,short:`y.MM.dd`},defaultWidth:`full`}),time:c({formats:{full:`a H시 mm분 ss초 zzzz`,long:`a H:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'지난' eeee p`,yesterday:`'어제' p`,today:`'오늘' p`,tomorrow:`'내일' p`,nextWeek:`'다음' eeee p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);switch(String(t?.unit)){case`minute`:case`second`:return String(n);case`date`:return n+`일`;default:return n+`번째`}},era:f({values:{narrow:[`BC`,`AD`],abbreviated:[`BC`,`AD`],wide:[`기원전`,`서기`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1분기`,`2분기`,`3분기`,`4분기`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`],wide:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},defaultWidth:`wide`}),day:f({values:{narrow:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],short:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],abbreviated:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],wide:[`일요일`,`월요일`,`화요일`,`수요일`,`목요일`,`금요일`,`토요일`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},abbreviated:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`},wide:{am:`오전`,pm:`오후`,midnight:`자정`,noon:`정오`,morning:`아침`,afternoon:`오후`,evening:`저녁`,night:`밤`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ko`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ko:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb.cjs b/node_modules/date-fns/locale/lb.cjs new file mode 100644 index 000000000..86855eb2f --- /dev/null +++ b/node_modules/date-fns/locale/lb.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.lb = void 0; +var _index = require("./lb/_lib/formatDistance.cjs"); +var _index2 = require("./lb/_lib/formatLong.cjs"); +var _index3 = require("./lb/_lib/formatRelative.cjs"); +var _index4 = require("./lb/_lib/localize.cjs"); +var _index5 = require("./lb/_lib/match.cjs"); + +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +const lb = (exports.lb = { + code: "lb", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/lb.d.cts b/node_modules/date-fns/locale/lb.d.cts new file mode 100644 index 000000000..0ec87e728 --- /dev/null +++ b/node_modules/date-fns/locale/lb.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export declare const lb: Locale; diff --git a/node_modules/date-fns/locale/lb.d.ts b/node_modules/date-fns/locale/lb.d.ts new file mode 100644 index 000000000..0ec87e728 --- /dev/null +++ b/node_modules/date-fns/locale/lb.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export declare const lb: Locale; diff --git a/node_modules/date-fns/locale/lb.js b/node_modules/date-fns/locale/lb.js new file mode 100644 index 000000000..11554d5c5 --- /dev/null +++ b/node_modules/date-fns/locale/lb.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./lb/_lib/formatDistance.js"; +import { formatLong } from "./lb/_lib/formatLong.js"; +import { formatRelative } from "./lb/_lib/formatRelative.js"; +import { localize } from "./lb/_lib/localize.js"; +import { match } from "./lb/_lib/match.js"; + +/** + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) + */ +export const lb = { + code: "lb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lb; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs new file mode 100644 index 000000000..584140d1b --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.cjs @@ -0,0 +1,236 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + }, + + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen", + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen", + }, + }, + + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt", + }, + + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten", + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten", + }, + }, + + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten", + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten", + }, + }, + + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen", + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen", + }, + }, + + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen", + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen", + }, + }, + + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg", + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg", + }, + }, + + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen", + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint", + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint", + }, + }, + + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint", + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint", + }, + }, + + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer", + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer", + }, + }, + + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer", + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer", + }, + }, + + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer", + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer", + }, + }, + + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer", + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer", + }, + }, +}; + +const EXCEPTION_CONSONANTS = ["d", "h", "n", "t", "z"]; +const VOWELS = ["a,", "e", "i", "o", "u"]; +const DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +const FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; + +// Eifeler Regel +function isFinalNNeeded(nextWords) { + const firstLetter = nextWords.charAt(0).toLowerCase(); + if ( + VOWELS.indexOf(firstLetter) != -1 || + EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1 + ) { + return true; + } + + // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + const firstWord = nextWords.split(" ")[0]; + const number = parseInt(firstWord); + if ( + !isNaN(number) && + DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && + FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf( + parseInt(firstWord.substring(0, 2)), + ) == -1 + ) { + return true; + } + + // Omit other checks as they are not expected here. + return false; +} + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + const usageGroup = options?.addSuffix + ? tokenValue.withPreposition + : tokenValue.standalone; + + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } else { + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance.js b/node_modules/date-fns/locale/lb/_lib/formatDistance.js new file mode 100644 index 000000000..20313da2f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance.js @@ -0,0 +1,232 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen", + }, + }, + + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen", + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen", + }, + }, + + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt", + }, + + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten", + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten", + }, + }, + + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten", + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten", + }, + }, + + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen", + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen", + }, + }, + + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen", + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen", + }, + }, + + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg", + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg", + }, + }, + + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen", + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen", + }, + }, + + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen", + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen", + }, + }, + + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint", + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint", + }, + }, + + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint", + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint", + }, + }, + + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer", + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer", + }, + }, + + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer", + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer", + }, + }, + + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer", + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer", + }, + }, + + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer", + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer", + }, + }, +}; + +const EXCEPTION_CONSONANTS = ["d", "h", "n", "t", "z"]; +const VOWELS = ["a,", "e", "i", "o", "u"]; +const DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +const FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; + +// Eifeler Regel +function isFinalNNeeded(nextWords) { + const firstLetter = nextWords.charAt(0).toLowerCase(); + if ( + VOWELS.indexOf(firstLetter) != -1 || + EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1 + ) { + return true; + } + + // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + const firstWord = nextWords.split(" ")[0]; + const number = parseInt(firstWord); + if ( + !isNaN(number) && + DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && + FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf( + parseInt(firstWord.substring(0, 2)), + ) == -1 + ) { + return true; + } + + // Omit other checks as they are not expected here. + return false; +} + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + + const usageGroup = options?.addSuffix + ? tokenValue.withPreposition + : tokenValue.standalone; + + if (typeof usageGroup === "string") { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } else { + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.cjs b/node_modules/date-fns/locale/lb/_lib/formatLong.cjs new file mode 100644 index 000000000..09f0ea6cc --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.cjs @@ -0,0 +1,43 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 + +const dateFormats = { + full: "EEEE, do MMMM y", // Méindeg, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan 2018 + short: "dd.MM.yy", // 07.01.18 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lb/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lb/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong.js b/node_modules/date-fns/locale/lb/_lib/formatLong.js new file mode 100644 index 000000000..dc6c95a38 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong.js @@ -0,0 +1,41 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 + +const dateFormats = { + full: "EEEE, do MMMM y", // Méindeg, 7. Januar 2018 + long: "do MMMM y", // 7. Januar 2018 + medium: "do MMM y", // 7. Jan 2018 + short: "dd.MM.yy", // 07.01.18 +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lb/_lib/formatRelative.cjs new file mode 100644 index 000000000..e1b31e134 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.cjs @@ -0,0 +1,31 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + let result = "'läschte"; + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += "n"; + } + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative.js b/node_modules/date-fns/locale/lb/_lib/formatRelative.js new file mode 100644 index 000000000..d3e2f50b0 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative.js @@ -0,0 +1,27 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + let result = "'läschte"; + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += "n"; + } + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/lb/_lib/localize.cjs b/node_modules/date-fns/locale/lb/_lib/localize.cjs new file mode 100644 index 000000000..1207595c4 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mé", "Dë", "Më", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mé.", "Dë.", "Më.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/lb/_lib/localize.d.cts b/node_modules/date-fns/locale/lb/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lb/_lib/localize.d.ts b/node_modules/date-fns/locale/lb/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lb/_lib/localize.js b/node_modules/date-fns/locale/lb/_lib/localize.js new file mode 100644 index 000000000..c965f3cf8 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez", + ], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "D", "M", "D", "F", "S"], + short: ["So", "Mé", "Dë", "Më", "Do", "Fr", "Sa"], + abbreviated: ["So.", "Mé.", "Dë.", "Më.", "Do.", "Fr.", "Sa."], + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/lb/_lib/match.cjs b/node_modules/date-fns/locale/lb/_lib/match.cjs new file mode 100644 index 000000000..03e7862f5 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: + /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i, // will never be matched. Night is matched by `pm` + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/lb/_lib/match.d.cts b/node_modules/date-fns/locale/lb/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lb/_lib/match.d.ts b/node_modules/date-fns/locale/lb/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lb/_lib/match.js b/node_modules/date-fns/locale/lb/_lib/match.js new file mode 100644 index 000000000..c8da63f23 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i, +}; +const parseEraPatterns = { + any: [/^v/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i, +}; +const parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: + /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i, // will never be matched. Night is matched by `pm` + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/lb/cdn.js b/node_modules/date-fns/locale/lb/cdn.js new file mode 100644 index 000000000..1dd8314b1 --- /dev/null +++ b/node_modules/date-fns/locale/lb/cdn.js @@ -0,0 +1,703 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/lb/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "manner wéi eng Sekonn", + other: "manner wéi {{count}} Sekonnen" + }, + withPreposition: { + one: "manner wéi enger Sekonn", + other: "manner wéi {{count}} Sekonnen" + } + }, + xSeconds: { + standalone: { + one: "eng Sekonn", + other: "{{count}} Sekonnen" + }, + withPreposition: { + one: "enger Sekonn", + other: "{{count}} Sekonnen" + } + }, + halfAMinute: { + standalone: "eng hallef Minutt", + withPreposition: "enger hallwer Minutt" + }, + lessThanXMinutes: { + standalone: { + one: "manner wéi eng Minutt", + other: "manner wéi {{count}} Minutten" + }, + withPreposition: { + one: "manner wéi enger Minutt", + other: "manner wéi {{count}} Minutten" + } + }, + xMinutes: { + standalone: { + one: "eng Minutt", + other: "{{count}} Minutten" + }, + withPreposition: { + one: "enger Minutt", + other: "{{count}} Minutten" + } + }, + aboutXHours: { + standalone: { + one: "ongeféier eng Stonn", + other: "ongeféier {{count}} Stonnen" + }, + withPreposition: { + one: "ongeféier enger Stonn", + other: "ongeféier {{count}} Stonnen" + } + }, + xHours: { + standalone: { + one: "eng Stonn", + other: "{{count}} Stonnen" + }, + withPreposition: { + one: "enger Stonn", + other: "{{count}} Stonnen" + } + }, + xDays: { + standalone: { + one: "een Dag", + other: "{{count}} Deeg" + }, + withPreposition: { + one: "engem Dag", + other: "{{count}} Deeg" + } + }, + aboutXWeeks: { + standalone: { + one: "ongeféier eng Woch", + other: "ongeféier {{count}} Wochen" + }, + withPreposition: { + one: "ongeféier enger Woche", + other: "ongeféier {{count}} Wochen" + } + }, + xWeeks: { + standalone: { + one: "eng Woch", + other: "{{count}} Wochen" + }, + withPreposition: { + one: "enger Woch", + other: "{{count}} Wochen" + } + }, + aboutXMonths: { + standalone: { + one: "ongeféier ee Mount", + other: "ongeféier {{count}} Méint" + }, + withPreposition: { + one: "ongeféier engem Mount", + other: "ongeféier {{count}} Méint" + } + }, + xMonths: { + standalone: { + one: "ee Mount", + other: "{{count}} Méint" + }, + withPreposition: { + one: "engem Mount", + other: "{{count}} Méint" + } + }, + aboutXYears: { + standalone: { + one: "ongeféier ee Joer", + other: "ongeféier {{count}} Joer" + }, + withPreposition: { + one: "ongeféier engem Joer", + other: "ongeféier {{count}} Joer" + } + }, + xYears: { + standalone: { + one: "ee Joer", + other: "{{count}} Joer" + }, + withPreposition: { + one: "engem Joer", + other: "{{count}} Joer" + } + }, + overXYears: { + standalone: { + one: "méi wéi ee Joer", + other: "méi wéi {{count}} Joer" + }, + withPreposition: { + one: "méi wéi engem Joer", + other: "méi wéi {{count}} Joer" + } + }, + almostXYears: { + standalone: { + one: "bal ee Joer", + other: "bal {{count}} Joer" + }, + withPreposition: { + one: "bal engem Joer", + other: "bal {{count}} Joer" + } + } +}; +var EXCEPTION_CONSONANTS = [ +"d", +"h", +"n", +"t", +"z"]; + +var VOWELS = [ +"a,", +"e", +"i", +"o", +"u"]; + +var DIGITS_SPOKEN_N_NEEDED = [ +0, +1, +2, +3, +8, +9]; + +var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [ +40, +50, +60, +70]; + +function isFinalNNeeded(nextWords) { + var firstLetter = nextWords.charAt(0).toLowerCase(); + if (VOWELS.indexOf(firstLetter) != -1 || EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1) return true; + var firstWord = nextWords.split(" ")[0]; + var number = parseInt(firstWord); + if (!isNaN(number) && DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0, 2))) == -1) return true; + return false; +} +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? tokenValue.withPreposition : tokenValue.standalone; + if (typeof usageGroup === "string") result = usageGroup;else + if (count === 1) result = usageGroup.one;else + result = usageGroup.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "a" + (isFinalNNeeded(result) ? "n" : "") + " " + result;else + return "viru" + (isFinalNNeeded(result) ? "n" : "") + " " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/lb/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getDay(); + var result = "'läschte"; + if (day === 2 || day === 4) result += "n"; + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/lb/_lib/localize.js +var eraValues = { + narrow: ["v.Chr.", "n.Chr."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["viru Christus", "no Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. Quartal", + "2. Quartal", + "3. Quartal", + "4. Quartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mäe", + "Abr", + "Mee", + "Jun", + "Jul", + "Aug", + "Sep", + "Okt", + "Nov", + "Dez"], + + wide: [ + "Januar", + "Februar", + "Mäerz", + "Abrëll", + "Mee", + "Juni", + "Juli", + "August", + "September", + "Oktober", + "November", + "Dezember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "D", + "M", + "D", + "F", + "S"], + + short: [ + "So", + "Mé", + "Dë", + "Më", + "Do", + "Fr", + "Sa"], + + abbreviated: [ + "So.", + "Mé.", + "Dë.", + "Më.", + "Do.", + "Fr.", + "Sa."], + + wide: [ + "Sonndeg", + "Méindeg", + "Dënschdeg", + "Mëttwoch", + "Donneschdeg", + "Freideg", + "Samschdeg"] + +}; +var dayPeriodValues = { + narrow: { + am: "mo.", + pm: "nomë.", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "Mëtteg", + morning: "Moien", + afternoon: "Nomëtteg", + evening: "Owend", + night: "Nuecht" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "mo.", + pm: "nom.", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + }, + abbreviated: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + }, + wide: { + am: "moies", + pm: "nomëttes", + midnight: "Mëtternuecht", + noon: "mëttes", + morning: "moies", + afternoon: "nomëttes", + evening: "owes", + night: "nuets" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/lb.js +/** +* @category Locales +* @summary Luxembourgish locale. +* @language Luxembourgish +* @iso-639-2 ltz +* @author Daniel Waxweiler [@dwaxweiler](https://github.com/dwaxweiler) +*/ +var lb = { + code: "lb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mä/i, + /^ab/i, + /^me/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^so/i, + /^mé/i, + /^dë/i, + /^më/i, + /^do/i, + /^f/i, + /^sa/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, + evening: /owes/i, + night: /nuets/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lb/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + lb: lb }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/cdn.min.js b/node_modules/date-fns/locale/lb/cdn.min.js new file mode 100644 index 000000000..2b267ade8 --- /dev/null +++ b/node_modules/date-fns/locale/lb/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`a`+(d(r)?`n`:``)+` `+r:`viru`+(d(r)?`n`:``)+` `+r:r};function p(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var m={date:p({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.yy`},defaultWidth:`full`}),time:p({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:p({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},h={lastWeek:function(e){var t=e.getDay(),n=`'läschte`;return(t===2||t===4)&&(n+=`n`),n+=`' eeee 'um' p`,n},yesterday:`'gëschter um' p`,today:`'haut um' p`,tomorrow:`'moien um' p`,nextWeek:`eeee 'um' p`,other:`P`},g=function(e,t,n,r){var i=h[e];return typeof i==`function`?i(t):i};function _(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var v={ordinalNumber:function(e,t){return Number(e)+`.`},era:_({values:{narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`viru Christus`,`no Christus`]},defaultWidth:`wide`}),quarter:_({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:_({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mäe`,`Abr`,`Mee`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`Mäerz`,`Abrëll`,`Mee`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},defaultWidth:`wide`}),day:_({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mé`,`Dë`,`Më`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mé.`,`Dë.`,`Më.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonndeg`,`Méindeg`,`Dënschdeg`,`Mëttwoch`,`Donneschdeg`,`Freideg`,`Samschdeg`]},defaultWidth:`wide`}),dayPeriod:_({values:{narrow:{am:`mo.`,pm:`nomë.`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`Mëtteg`,morning:`Moien`,afternoon:`Nomëtteg`,evening:`Owend`,night:`Nuecht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`mo.`,pm:`nom.`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},abbreviated:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`},wide:{am:`moies`,pm:`nomëttes`,midnight:`Mëtternuecht`,noon:`mëttes`,morning:`moies`,afternoon:`nomëttes`,evening:`owes`,night:`nuets`}},defaultFormattingWidth:`wide`})};function y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,function(e){return e.test(o)}):b(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var C={code:`lb`,formatDistance:f,formatLong:m,formatRelative:g,localize:v,match:{ordinalNumber:S({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:y({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{lb:C})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt.cjs b/node_modules/date-fns/locale/lt.cjs new file mode 100644 index 000000000..ec8bdccc8 --- /dev/null +++ b/node_modules/date-fns/locale/lt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.lt = void 0; +var _index = require("./lt/_lib/formatDistance.cjs"); +var _index2 = require("./lt/_lib/formatLong.cjs"); +var _index3 = require("./lt/_lib/formatRelative.cjs"); +var _index4 = require("./lt/_lib/localize.cjs"); +var _index5 = require("./lt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +const lt = (exports.lt = { + code: "lt", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/lt.d.cts b/node_modules/date-fns/locale/lt.d.cts new file mode 100644 index 000000000..4cf55a8db --- /dev/null +++ b/node_modules/date-fns/locale/lt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export declare const lt: Locale; diff --git a/node_modules/date-fns/locale/lt.d.ts b/node_modules/date-fns/locale/lt.d.ts new file mode 100644 index 000000000..4cf55a8db --- /dev/null +++ b/node_modules/date-fns/locale/lt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export declare const lt: Locale; diff --git a/node_modules/date-fns/locale/lt.js b/node_modules/date-fns/locale/lt.js new file mode 100644 index 000000000..0b1c8752d --- /dev/null +++ b/node_modules/date-fns/locale/lt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./lt/_lib/formatDistance.js"; +import { formatLong } from "./lt/_lib/formatLong.js"; +import { formatRelative } from "./lt/_lib/formatRelative.js"; +import { localize } from "./lt/_lib/localize.js"; +import { match } from "./lt/_lib/match.js"; + +/** + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak](https://github.com/pshpak) + * @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) + */ +export const lt = { + code: "lt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lt; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs new file mode 100644 index 000000000..c10b8b326 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.cjs @@ -0,0 +1,180 @@ +"use strict"; +exports.formatDistance = void 0; + +const translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei", +}; + +const translateSeconds = (_number, addSuffix, _key, isFuture) => { + if (!addSuffix) { + return "kelios sekundės"; + } else { + return isFuture ? "kelių sekundžių" : "kelias sekundes"; + } +}; + +const translateSingular = (_number, addSuffix, key, isFuture) => { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +const translate = (number, addSuffix, key, isFuture) => { + const result = number + " "; + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); +} + +function forms(key) { + return translations[key].split("_"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate, + }, + + xSeconds: { + one: translateSeconds, + other: translate, + }, + + halfAMinute: "pusė minutės", + + lessThanXMinutes: { + one: translateSingular, + other: translate, + }, + + xMinutes: { + one: translateSingular, + other: translate, + }, + + aboutXHours: { + one: translateSingular, + other: translate, + }, + + xHours: { + one: translateSingular, + other: translate, + }, + + xDays: { + one: translateSingular, + other: translate, + }, + + aboutXWeeks: { + one: translateSingular, + other: translate, + }, + + xWeeks: { + one: translateSingular, + other: translate, + }, + + aboutXMonths: { + one: translateSingular, + other: translate, + }, + + xMonths: { + one: translateSingular, + other: translate, + }, + + aboutXYears: { + one: translateSingular, + other: translate, + }, + + xYears: { + one: translateSingular, + other: translate, + }, + + overXYears: { + one: translateSingular, + other: translate, + }, + + almostXYears: { + one: translateSingular, + other: translate, + }, +}; + +const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const isFuture = options?.comparison !== undefined && options.comparison > 0; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_one", + isFuture, + ); + } else { + result = tokenValue.other( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_other", + isFuture, + ); + } + + if (adverb) { + const key = adverb[0].toLowerCase(); + result = translations[key] + " " + result; + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "po " + result; + } else { + return "prieš " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance.js b/node_modules/date-fns/locale/lt/_lib/formatDistance.js new file mode 100644 index 000000000..193d93834 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance.js @@ -0,0 +1,176 @@ +const translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei", +}; + +const translateSeconds = (_number, addSuffix, _key, isFuture) => { + if (!addSuffix) { + return "kelios sekundės"; + } else { + return isFuture ? "kelių sekundžių" : "kelias sekundes"; + } +}; + +const translateSingular = (_number, addSuffix, key, isFuture) => { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +const translate = (number, addSuffix, key, isFuture) => { + const result = number + " "; + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || (number > 10 && number < 20); +} + +function forms(key) { + return translations[key].split("_"); +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate, + }, + + xSeconds: { + one: translateSeconds, + other: translate, + }, + + halfAMinute: "pusė minutės", + + lessThanXMinutes: { + one: translateSingular, + other: translate, + }, + + xMinutes: { + one: translateSingular, + other: translate, + }, + + aboutXHours: { + one: translateSingular, + other: translate, + }, + + xHours: { + one: translateSingular, + other: translate, + }, + + xDays: { + one: translateSingular, + other: translate, + }, + + aboutXWeeks: { + one: translateSingular, + other: translate, + }, + + xWeeks: { + one: translateSingular, + other: translate, + }, + + aboutXMonths: { + one: translateSingular, + other: translate, + }, + + xMonths: { + one: translateSingular, + other: translate, + }, + + aboutXYears: { + one: translateSingular, + other: translate, + }, + + xYears: { + one: translateSingular, + other: translate, + }, + + overXYears: { + one: translateSingular, + other: translate, + }, + + almostXYears: { + one: translateSingular, + other: translate, + }, +}; + +export const formatDistance = (token, count, options) => { + const adverb = token.match(/about|over|almost|lessthan/i); + const unit = adverb ? token.replace(adverb[0], "") : token; + + const isFuture = options?.comparison !== undefined && options.comparison > 0; + + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_one", + isFuture, + ); + } else { + result = tokenValue.other( + count, + options?.addSuffix === true, + unit.toLowerCase() + "_other", + isFuture, + ); + } + + if (adverb) { + const key = adverb[0].toLowerCase(); + result = translations[key] + " " + result; + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "po " + result; + } else { + return "prieš " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.cjs b/node_modules/date-fns/locale/lt/_lib/formatLong.cjs new file mode 100644 index 000000000..45b76dedd --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lt/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lt/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong.js b/node_modules/date-fns/locale/lt/_lib/formatLong.js new file mode 100644 index 000000000..2e1ca0d2a --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-MM-dd", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lt/_lib/formatRelative.cjs new file mode 100644 index 000000000..dc8aac816 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: "eeee p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative.js b/node_modules/date-fns/locale/lt/_lib/formatRelative.js new file mode 100644 index 000000000..53575dbae --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: "eeee p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/lt/_lib/localize.cjs b/node_modules/date-fns/locale/lt/_lib/localize.cjs new file mode 100644 index 000000000..a73db6254 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.cjs @@ -0,0 +1,226 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I ketv.", "II ketv.", "III ketv.", "IV ketv."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I k.", "II k.", "III k.", "IV k."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const monthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis", + ], +}; + +const formattingMonthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio", + ], +}; + +const dayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "-oji"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/lt/_lib/localize.d.cts b/node_modules/date-fns/locale/lt/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lt/_lib/localize.d.ts b/node_modules/date-fns/locale/lt/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lt/_lib/localize.js b/node_modules/date-fns/locale/lt/_lib/localize.js new file mode 100644 index 000000000..600d45717 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize.js @@ -0,0 +1,224 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I ketv.", "II ketv.", "III ketv.", "IV ketv."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I k.", "II k.", "III k.", "IV k."], + wide: ["I ketvirtis", "II ketvirtis", "III ketvirtis", "IV ketvirtis"], +}; + +const monthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis", + ], +}; + +const formattingMonthValues = { + narrow: ["S", "V", "K", "B", "G", "B", "L", "R", "R", "S", "L", "G"], + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod.", + ], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio", + ], +}; + +const dayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "A", "T", "K", "P", "Š"], + short: ["Sk", "Pr", "An", "Tr", "Kt", "Pn", "Št"], + abbreviated: ["sk", "pr", "an", "tr", "kt", "pn", "št"], + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "-oji"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/lt/_lib/match.cjs b/node_modules/date-fns/locale/lt/_lib/match.cjs new file mode 100644 index 000000000..62baf4a0c --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.cjs @@ -0,0 +1,150 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i, +}; +const parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: + /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i, + ], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/lt/_lib/match.d.cts b/node_modules/date-fns/locale/lt/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lt/_lib/match.d.ts b/node_modules/date-fns/locale/lt/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lt/_lib/match.js b/node_modules/date-fns/locale/lt/_lib/match.js new file mode 100644 index 000000000..f9178ed76 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match.js @@ -0,0 +1,147 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i, +}; +const parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i], +}; + +const matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: + /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i, + ], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/lt/cdn.js b/node_modules/date-fns/locale/lt/cdn.js new file mode 100644 index 000000000..f92495112 --- /dev/null +++ b/node_modules/date-fns/locale/lt/cdn.js @@ -0,0 +1,757 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/lt/_lib/formatDistance.js +var translations = { + xseconds_other: "sekundė_sekundžių_sekundes", + xminutes_one: "minutė_minutės_minutę", + xminutes_other: "minutės_minučių_minutes", + xhours_one: "valanda_valandos_valandą", + xhours_other: "valandos_valandų_valandas", + xdays_one: "diena_dienos_dieną", + xdays_other: "dienos_dienų_dienas", + xweeks_one: "savaitė_savaitės_savaitę", + xweeks_other: "savaitės_savaičių_savaites", + xmonths_one: "mėnuo_mėnesio_mėnesį", + xmonths_other: "mėnesiai_mėnesių_mėnesius", + xyears_one: "metai_metų_metus", + xyears_other: "metai_metų_metus", + about: "apie", + over: "daugiau nei", + almost: "beveik", + lessthan: "mažiau nei" +}; +var translateSeconds = function translateSeconds(_number, addSuffix, _key, isFuture) { + if (!addSuffix) return "kelios sekundės";else + return isFuture ? "kelių sekundžių" : "kelias sekundes"; +}; +var translateSingular = function translateSingular(_number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; +var translate = function translate(number, addSuffix, key, isFuture) { + var result = number + " "; + if (number === 1) return result + translateSingular(number, addSuffix, key, isFuture);else + if (!addSuffix) return result + (special(number) ? forms(key)[1] : forms(key)[0]);else + if (isFuture) return result + forms(key)[1];else + return result + (special(number) ? forms(key)[1] : forms(key)[2]); +}; +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} +function forms(key) { + return translations[key].split("_"); +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate + }, + xSeconds: { + one: translateSeconds, + other: translate + }, + halfAMinute: "pusė minutės", + lessThanXMinutes: { + one: translateSingular, + other: translate + }, + xMinutes: { + one: translateSingular, + other: translate + }, + aboutXHours: { + one: translateSingular, + other: translate + }, + xHours: { + one: translateSingular, + other: translate + }, + xDays: { + one: translateSingular, + other: translate + }, + aboutXWeeks: { + one: translateSingular, + other: translate + }, + xWeeks: { + one: translateSingular, + other: translate + }, + aboutXMonths: { + one: translateSingular, + other: translate + }, + xMonths: { + one: translateSingular, + other: translate + }, + aboutXYears: { + one: translateSingular, + other: translate + }, + xYears: { + one: translateSingular, + other: translate + }, + overXYears: { + one: translateSingular, + other: translate + }, + almostXYears: { + one: translateSingular, + other: translate + } +}; +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], "") : token; + var isFuture = (options === null || options === void 0 ? void 0 : options.comparison) !== void 0 && options.comparison > 0; + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_one", isFuture);else + result = tokenValue.other(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + "_other", isFuture); + if (adverb) result = translations[adverb[0].toLowerCase()] + " " + result; + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "po " + result;else + return "prieš " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: "y-MM-dd", + short: "y-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/lt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: "eeee p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/lt/_lib/localize.js +var eraValues = { + narrow: ["pr. Kr.", "po Kr."], + abbreviated: ["pr. Kr.", "po Kr."], + wide: ["prieš Kristų", "po Kristaus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I ketv.", + "II ketv.", + "III ketv.", + "IV ketv."], + + wide: [ + "I ketvirtis", + "II ketvirtis", + "III ketvirtis", + "IV ketvirtis"] + +}; +var formattingQuarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I k.", + "II k.", + "III k.", + "IV k."], + + wide: [ + "I ketvirtis", + "II ketvirtis", + "III ketvirtis", + "IV ketvirtis"] + +}; +var monthValues = { + narrow: [ + "S", + "V", + "K", + "B", + "G", + "B", + "L", + "R", + "R", + "S", + "L", + "G"], + + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod."], + + wide: [ + "sausis", + "vasaris", + "kovas", + "balandis", + "gegužė", + "birželis", + "liepa", + "rugpjūtis", + "rugsėjis", + "spalis", + "lapkritis", + "gruodis"] + +}; +var formattingMonthValues = { + narrow: [ + "S", + "V", + "K", + "B", + "G", + "B", + "L", + "R", + "R", + "S", + "L", + "G"], + + abbreviated: [ + "saus.", + "vas.", + "kov.", + "bal.", + "geg.", + "birž.", + "liep.", + "rugp.", + "rugs.", + "spal.", + "lapkr.", + "gruod."], + + wide: [ + "sausio", + "vasario", + "kovo", + "balandžio", + "gegužės", + "birželio", + "liepos", + "rugpjūčio", + "rugsėjo", + "spalio", + "lapkričio", + "gruodžio"] + +}; +var dayValues = { + narrow: [ + "S", + "P", + "A", + "T", + "K", + "P", + "Š"], + + short: [ + "Sk", + "Pr", + "An", + "Tr", + "Kt", + "Pn", + "Št"], + + abbreviated: [ + "sk", + "pr", + "an", + "tr", + "kt", + "pn", + "št"], + + wide: [ + "sekmadienis", + "pirmadienis", + "antradienis", + "trečiadienis", + "ketvirtadienis", + "penktadienis", + "šeštadienis"] + +}; +var formattingDayValues = { + narrow: [ + "S", + "P", + "A", + "T", + "K", + "P", + "Š"], + + short: [ + "Sk", + "Pr", + "An", + "Tr", + "Kt", + "Pn", + "Št"], + + abbreviated: [ + "sk", + "pr", + "an", + "tr", + "kt", + "pn", + "št"], + + wide: [ + "sekmadienį", + "pirmadienį", + "antradienį", + "trečiadienį", + "ketvirtadienį", + "penktadienį", + "šeštadienį"] + +}; +var dayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "vidurdienis", + morning: "rytas", + afternoon: "diena", + evening: "vakaras", + night: "naktis" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "pr. p.", + pm: "pop.", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + }, + abbreviated: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + }, + wide: { + am: "priešpiet", + pm: "popiet", + midnight: "vidurnaktis", + noon: "perpiet", + morning: "rytas", + afternoon: "popietė", + evening: "vakaras", + night: "naktis" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "-oji"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/lt.js +/** +* @category Locales +* @summary Lithuanian locale. +* @language Lithuanian +* @iso-639-2 lit +* @author Pavlo Shpak [@pshpak](https://github.com/pshpak) +* @author Eduardo Pardo [@eduardopsll](https://github.com/eduardopsll) +*/ +var lt = { + code: "lt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-oji)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /I$/i, + /II$/i, + /III/i, + /IV/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[svkbglr]/i, + abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^v/i, + /^k/i, + /^b/i, + /^g/i, + /^b/i, + /^l/i, + /^r/i, + /^r/i, + /^s/i, + /^l/i, + /^g/i], + + any: [ + /^saus/i, + /^vas/i, + /^kov/i, + /^bal/i, + /^geg/i, + /^birž/i, + /^liep/i, + /^rugp/i, + /^rugs/i, + /^spal/i, + /^lapkr/i, + /^gruod/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^p/i, + /^a/i, + /^t/i, + /^k/i, + /^p/i, + /^š/i], + + wide: [ + /^se/i, + /^pi/i, + /^an/i, + /^tr/i, + /^ke/i, + /^pe/i, + /^še/i], + + any: [ + /^sk/i, + /^pr/i, + /^an/i, + /^tr/i, + /^kt/i, + /^pn/i, + /^št/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lt/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + lt: lt }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/cdn.min.js b/node_modules/date-fns/locale/lt/cdn.min.js new file mode 100644 index 000000000..2d99b24e5 --- /dev/null +++ b/node_modules/date-fns/locale/lt/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n10&&e<20}function d(e){return o[e].split(`_`)}var f={lessThanXSeconds:{one:s,other:l},xSeconds:{one:s,other:l},halfAMinute:`pusė minutės`,lessThanXMinutes:{one:c,other:l},xMinutes:{one:c,other:l},aboutXHours:{one:c,other:l},xHours:{one:c,other:l},xDays:{one:c,other:l},aboutXWeeks:{one:c,other:l},xWeeks:{one:c,other:l},aboutXMonths:{one:c,other:l},xMonths:{one:c,other:l},aboutXYears:{one:c,other:l},xYears:{one:c,other:l},overXYears:{one:c,other:l},almostXYears:{one:c,other:l}},p=function(e,t,n){var r=e.match(/about|over|almost|lessthan/i),i=r?e.replace(r[0],``):e,a=n?.comparison!==void 0&&n.comparison>0,s,c=f[e];return s=typeof c==`string`?c:t===1?c.one(t,n?.addSuffix===!0,i.toLowerCase()+`_one`,a):c.other(t,n?.addSuffix===!0,i.toLowerCase()+`_other`,a),r&&(s=o[r[0].toLowerCase()]+` `+s),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`po `+s:`prieš `+s:s};function m(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var h={date:m({formats:{full:`y 'm'. MMMM d 'd'., EEEE`,long:`y 'm'. MMMM d 'd'.`,medium:`y-MM-dd`,short:`y-MM-dd`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:m({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},g={lastWeek:`'Praėjusį' eeee p`,yesterday:`'Vakar' p`,today:`'Šiandien' p`,tomorrow:`'Rytoj' p`,nextWeek:`eeee p`,other:`P`},_=function(e,t,n,r){return g[e]};function v(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var y={ordinalNumber:function(e,t){return Number(e)+`-oji`},era:v({values:{narrow:[`pr. Kr.`,`po Kr.`],abbreviated:[`pr. Kr.`,`po Kr.`],wide:[`prieš Kristų`,`po Kristaus`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I ketv.`,`II ketv.`,`III ketv.`,`IV ketv.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`I k.`,`II k.`,`III k.`,`IV k.`],wide:[`I ketvirtis`,`II ketvirtis`,`III ketvirtis`,`IV ketvirtis`]},defaultFormattingWidth:`wide`,argumentCallback:function(e){return e-1}}),month:v({values:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausis`,`vasaris`,`kovas`,`balandis`,`gegužė`,`birželis`,`liepa`,`rugpjūtis`,`rugsėjis`,`spalis`,`lapkritis`,`gruodis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`V`,`K`,`B`,`G`,`B`,`L`,`R`,`R`,`S`,`L`,`G`],abbreviated:[`saus.`,`vas.`,`kov.`,`bal.`,`geg.`,`birž.`,`liep.`,`rugp.`,`rugs.`,`spal.`,`lapkr.`,`gruod.`],wide:[`sausio`,`vasario`,`kovo`,`balandžio`,`gegužės`,`birželio`,`liepos`,`rugpjūčio`,`rugsėjo`,`spalio`,`lapkričio`,`gruodžio`]},defaultFormattingWidth:`wide`}),day:v({values:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienis`,`pirmadienis`,`antradienis`,`trečiadienis`,`ketvirtadienis`,`penktadienis`,`šeštadienis`]},defaultWidth:`wide`,formattingValues:{narrow:[`S`,`P`,`A`,`T`,`K`,`P`,`Š`],short:[`Sk`,`Pr`,`An`,`Tr`,`Kt`,`Pn`,`Št`],abbreviated:[`sk`,`pr`,`an`,`tr`,`kt`,`pn`,`št`],wide:[`sekmadienį`,`pirmadienį`,`antradienį`,`trečiadienį`,`ketvirtadienį`,`penktadienį`,`šeštadienį`]},defaultFormattingWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`vidurdienis`,morning:`rytas`,afternoon:`diena`,evening:`vakaras`,night:`naktis`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`pr. p.`,pm:`pop.`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},abbreviated:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`},wide:{am:`priešpiet`,pm:`popiet`,midnight:`vidurnaktis`,noon:`perpiet`,morning:`rytas`,afternoon:`popietė`,evening:`vakaras`,night:`naktis`}},defaultFormattingWidth:`wide`})};function b(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?S(s,function(e){return e.test(o)}):x(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function x(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function S(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var w={code:`lt`,formatDistance:p,formatLong:h,formatRelative:_,localize:y,match:{ordinalNumber:C({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:b({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:`any`}),quarter:b({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:b({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:`any`}),day:b({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:`any`}),dayPeriod:b({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{lt:w})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv.cjs b/node_modules/date-fns/locale/lv.cjs new file mode 100644 index 000000000..ea0e0c37c --- /dev/null +++ b/node_modules/date-fns/locale/lv.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.lv = void 0; +var _index = require("./lv/_lib/formatDistance.cjs"); +var _index2 = require("./lv/_lib/formatLong.cjs"); +var _index3 = require("./lv/_lib/formatRelative.cjs"); +var _index4 = require("./lv/_lib/localize.cjs"); +var _index5 = require("./lv/_lib/match.cjs"); + +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +const lv = (exports.lv = { + code: "lv", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/lv.d.cts b/node_modules/date-fns/locale/lv.d.cts new file mode 100644 index 000000000..44da34fc0 --- /dev/null +++ b/node_modules/date-fns/locale/lv.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export declare const lv: Locale; diff --git a/node_modules/date-fns/locale/lv.d.ts b/node_modules/date-fns/locale/lv.d.ts new file mode 100644 index 000000000..44da34fc0 --- /dev/null +++ b/node_modules/date-fns/locale/lv.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export declare const lv: Locale; diff --git a/node_modules/date-fns/locale/lv.js b/node_modules/date-fns/locale/lv.js new file mode 100644 index 000000000..755f71d12 --- /dev/null +++ b/node_modules/date-fns/locale/lv.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./lv/_lib/formatDistance.js"; +import { formatLong } from "./lv/_lib/formatLong.js"; +import { formatRelative } from "./lv/_lib/formatRelative.js"; +import { localize } from "./lv/_lib/localize.js"; +import { match } from "./lv/_lib/match.js"; + +/** + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) + */ +export const lv = { + code: "lv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default lv; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs b/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs new file mode 100644 index 000000000..f46dd6503 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.formatDistance = void 0; + +function buildLocalizeTokenFn(schema) { + return (count, options) => { + if (count === 1) { + if (options?.addSuffix) { + return schema.one[0].replace("{{time}}", schema.one[2]); + } else { + return schema.one[0].replace("{{time}}", schema.one[1]); + } + } else { + const rem = count % 10 === 1 && count % 100 !== 11; + if (options?.addSuffix) { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[3] : schema.other[4]) + .replace("{{count}}", String(count)); + } else { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[1] : schema.other[2]) + .replace("{{count}}", String(count)); + } + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "sekundi", "sekundi"], + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + xSeconds: buildLocalizeTokenFn({ + one: ["1 {{time}}", "sekunde", "sekundes"], + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + return "pusminūtes"; + } else { + return "pusminūte"; + } + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "minūti", "minūti"], + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm", + ], + }), + + xMinutes: buildLocalizeTokenFn({ + one: ["1 {{time}}", "minūte", "minūtes"], + other: ["{{count}} {{time}}", "minūte", "minūtes", "minūtes", "minūtēm"], + }), + + aboutXHours: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "stunda", "stundas"], + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām", + ], + }), + + xHours: buildLocalizeTokenFn({ + one: ["1 {{time}}", "stunda", "stundas"], + other: ["{{count}} {{time}}", "stunda", "stundas", "stundas", "stundām"], + }), + + xDays: buildLocalizeTokenFn({ + one: ["1 {{time}}", "diena", "dienas"], + other: ["{{count}} {{time}}", "diena", "dienas", "dienas", "dienām"], + }), + + aboutXWeeks: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + xWeeks: buildLocalizeTokenFn({ + one: ["1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "{{count}} {{time}}", // TODO + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + aboutXMonths: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "mēnesis", "mēneša"], + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem", + ], + }), + + xMonths: buildLocalizeTokenFn({ + one: ["1 {{time}}", "mēnesis", "mēneša"], + other: ["{{count}} {{time}}", "mēnesis", "mēneši", "mēneša", "mēnešiem"], + }), + + aboutXYears: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "gads", "gada"], + other: ["apmēram {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + xYears: buildLocalizeTokenFn({ + one: ["1 {{time}}", "gads", "gada"], + other: ["{{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + overXYears: buildLocalizeTokenFn({ + one: ["ilgāk par 1 {{time}}", "gadu", "gadu"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + almostXYears: buildLocalizeTokenFn({ + one: ["gandrīz 1 {{time}}", "gads", "gada"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), +}; + +const formatDistance = (token, count, options) => { + const result = formatDistanceLocale[token](count, options); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "pēc " + result; + } else { + return "pirms " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance.js b/node_modules/date-fns/locale/lv/_lib/formatDistance.js new file mode 100644 index 000000000..dcef1174f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance.js @@ -0,0 +1,163 @@ +function buildLocalizeTokenFn(schema) { + return (count, options) => { + if (count === 1) { + if (options?.addSuffix) { + return schema.one[0].replace("{{time}}", schema.one[2]); + } else { + return schema.one[0].replace("{{time}}", schema.one[1]); + } + } else { + const rem = count % 10 === 1 && count % 100 !== 11; + if (options?.addSuffix) { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[3] : schema.other[4]) + .replace("{{count}}", String(count)); + } else { + return schema.other[0] + .replace("{{time}}", rem ? schema.other[1] : schema.other[2]) + .replace("{{count}}", String(count)); + } + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "sekundi", "sekundi"], + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + xSeconds: buildLocalizeTokenFn({ + one: ["1 {{time}}", "sekunde", "sekundes"], + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm", + ], + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + return "pusminūtes"; + } else { + return "pusminūte"; + } + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + one: ["mazāk par {{time}}", "minūti", "minūti"], + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm", + ], + }), + + xMinutes: buildLocalizeTokenFn({ + one: ["1 {{time}}", "minūte", "minūtes"], + other: ["{{count}} {{time}}", "minūte", "minūtes", "minūtes", "minūtēm"], + }), + + aboutXHours: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "stunda", "stundas"], + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām", + ], + }), + + xHours: buildLocalizeTokenFn({ + one: ["1 {{time}}", "stunda", "stundas"], + other: ["{{count}} {{time}}", "stunda", "stundas", "stundas", "stundām"], + }), + + xDays: buildLocalizeTokenFn({ + one: ["1 {{time}}", "diena", "dienas"], + other: ["{{count}} {{time}}", "diena", "dienas", "dienas", "dienām"], + }), + + aboutXWeeks: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + xWeeks: buildLocalizeTokenFn({ + one: ["1 {{time}}", "nedēļa", "nedēļas"], + other: [ + "{{count}} {{time}}", // TODO + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām", + ], + }), + + aboutXMonths: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "mēnesis", "mēneša"], + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem", + ], + }), + + xMonths: buildLocalizeTokenFn({ + one: ["1 {{time}}", "mēnesis", "mēneša"], + other: ["{{count}} {{time}}", "mēnesis", "mēneši", "mēneša", "mēnešiem"], + }), + + aboutXYears: buildLocalizeTokenFn({ + one: ["apmēram 1 {{time}}", "gads", "gada"], + other: ["apmēram {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + xYears: buildLocalizeTokenFn({ + one: ["1 {{time}}", "gads", "gada"], + other: ["{{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + overXYears: buildLocalizeTokenFn({ + one: ["ilgāk par 1 {{time}}", "gadu", "gadu"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), + + almostXYears: buildLocalizeTokenFn({ + one: ["gandrīz 1 {{time}}", "gads", "gada"], + other: ["vairāk nekā {{count}} {{time}}", "gads", "gadi", "gada", "gadiem"], + }), +}; + +export const formatDistance = (token, count, options) => { + const result = formatDistanceLocale[token](count, options); + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "pēc " + result; + } else { + return "pirms " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.cjs b/node_modules/date-fns/locale/lv/_lib/formatLong.cjs new file mode 100644 index 000000000..9a455239f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.y.", + short: "dd.MM.y.", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.d.cts b/node_modules/date-fns/locale/lv/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.d.ts b/node_modules/date-fns/locale/lv/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong.js b/node_modules/date-fns/locale/lv/_lib/formatLong.js new file mode 100644 index 000000000..faa215941 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.y.", + short: "dd.MM.y.", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.cjs b/node_modules/date-fns/locale/lv/_lib/formatRelative.cjs new file mode 100644 index 000000000..8841fac06 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.cjs @@ -0,0 +1,47 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", +]; + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: (date, baseDate, options) => { + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative.js b/node_modules/date-fns/locale/lv/_lib/formatRelative.js new file mode 100644 index 000000000..78fe5ec61 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative.js @@ -0,0 +1,44 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", +]; + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + if (isSameWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: (date, baseDate, options) => { + if (isSameWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + const weekday = weekdays[date.getDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/lv/_lib/localize.cjs b/node_modules/date-fns/locale/lv/_lib/localize.cjs new file mode 100644 index 000000000..c0abeaf34 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.cjs @@ -0,0 +1,254 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis", + ], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris", + ], +}; + +const formattingMonthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī", + ], +}; + +const dayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/lv/_lib/localize.d.cts b/node_modules/date-fns/locale/lv/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lv/_lib/localize.d.ts b/node_modules/date-fns/locale/lv/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/lv/_lib/localize.js b/node_modules/date-fns/locale/lv/_lib/localize.js new file mode 100644 index 000000000..3ace4d6af --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize.js @@ -0,0 +1,252 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis", + ], +}; + +const formattingQuarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. cet.", "2. cet.", "3. cet.", "4. cet."], + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī", + ], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris", + ], +}; + +const formattingMonthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī", + ], +}; + +const dayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena", + ], +}; + +const formattingDayValues = { + narrow: ["S", "P", "O", "T", "C", "P", "S"], + short: ["Sv", "P", "O", "T", "C", "Pk", "S"], + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd.", + ], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī", + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī", + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/lv/_lib/match.cjs b/node_modules/date-fns/locale/lv/_lib/match.cjs new file mode 100644 index 000000000..769669e41 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/match.cjs @@ -0,0 +1,139 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i, +}; +const parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "wide", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/lv/_lib/match.d.cts b/node_modules/date-fns/locale/lv/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lv/_lib/match.d.ts b/node_modules/date-fns/locale/lv/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/lv/_lib/match.js b/node_modules/date-fns/locale/lv/_lib/match.js new file mode 100644 index 000000000..76918fe77 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/match.js @@ -0,0 +1,136 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i, +}; +const parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "wide", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/lv/cdn.js b/node_modules/date-fns/locale/lv/cdn.js new file mode 100644 index 000000000..645c60386 --- /dev/null +++ b/node_modules/date-fns/locale/lv/cdn.js @@ -0,0 +1,1069 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/lv/_lib/formatDistance.js +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) return schema.one[0].replace("{{time}}", schema.one[2]);else + return schema.one[0].replace("{{time}}", schema.one[1]);} else + { + var rem = count % 10 === 1 && count % 100 !== 11; + if (options !== null && options !== void 0 && options.addSuffix) return schema.other[0].replace("{{time}}", rem ? schema.other[3] : schema.other[4]).replace("{{count}}", String(count));else + return schema.other[0].replace("{{time}}", rem ? schema.other[1] : schema.other[2]).replace("{{count}}", String(count)); + } + }; +} +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: [ + "mazāk par {{time}}", + "sekundi", + "sekundi"], + + other: [ + "mazāk nekā {{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm"] + + }), + xSeconds: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "sekunde", + "sekundes"], + + other: [ + "{{count}} {{time}}", + "sekunde", + "sekundes", + "sekundes", + "sekundēm"] + + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) return "pusminūtes";else + return "pusminūte"; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + one: [ + "mazāk par {{time}}", + "minūti", + "minūti"], + + other: [ + "mazāk nekā {{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm"] + + }), + xMinutes: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "minūte", + "minūtes"], + + other: [ + "{{count}} {{time}}", + "minūte", + "minūtes", + "minūtes", + "minūtēm"] + + }), + aboutXHours: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "stunda", + "stundas"], + + other: [ + "apmēram {{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām"] + + }), + xHours: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "stunda", + "stundas"], + + other: [ + "{{count}} {{time}}", + "stunda", + "stundas", + "stundas", + "stundām"] + + }), + xDays: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "diena", + "dienas"], + + other: [ + "{{count}} {{time}}", + "diena", + "dienas", + "dienas", + "dienām"] + + }), + aboutXWeeks: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "nedēļa", + "nedēļas"], + + other: [ + "apmēram {{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām"] + + }), + xWeeks: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "nedēļa", + "nedēļas"], + + other: [ + "{{count}} {{time}}", + "nedēļa", + "nedēļu", + "nedēļas", + "nedēļām"] + + }), + aboutXMonths: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "mēnesis", + "mēneša"], + + other: [ + "apmēram {{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem"] + + }), + xMonths: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "mēnesis", + "mēneša"], + + other: [ + "{{count}} {{time}}", + "mēnesis", + "mēneši", + "mēneša", + "mēnešiem"] + + }), + aboutXYears: buildLocalizeTokenFn({ + one: [ + "apmēram 1 {{time}}", + "gads", + "gada"], + + other: [ + "apmēram {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + xYears: buildLocalizeTokenFn({ + one: [ + "1 {{time}}", + "gads", + "gada"], + + other: [ + "{{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + overXYears: buildLocalizeTokenFn({ + one: [ + "ilgāk par 1 {{time}}", + "gadu", + "gadu"], + + other: [ + "vairāk nekā {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }), + almostXYears: buildLocalizeTokenFn({ + one: [ + "gandrīz 1 {{time}}", + "gads", + "gada"], + + other: [ + "vairāk nekā {{count}} {{time}}", + "gads", + "gadi", + "gada", + "gadiem"] + + }) +}; +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token](count, options); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "pēc " + result;else + return "pirms " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: "dd.MM.y.", + short: "dd.MM.y." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/lv/_lib/formatRelative.js +var weekdays = [ +"svētdienā", +"pirmdienā", +"otrdienā", +"trešdienā", +"ceturtdienā", +"piektdienā", +"sestdienā"]; + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + if (isSameWeek(date, baseDate, options)) return "eeee 'plkst.' p"; + return "'Pagājušā " + weekdays[date.getDay()] + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: function nextWeek(date, baseDate, options) { + if (isSameWeek(date, baseDate, options)) return "eeee 'plkst.' p"; + return "'Nākamajā " + weekdays[date.getDay()] + " plkst.' p"; + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/lv/_lib/localize.js +var eraValues = { + narrow: ["p.m.ē", "m.ē"], + abbreviated: ["p. m. ē.", "m. ē."], + wide: ["pirms mūsu ēras", "mūsu ērā"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. cet.", + "2. cet.", + "3. cet.", + "4. cet."], + + wide: [ + "pirmais ceturksnis", + "otrais ceturksnis", + "trešais ceturksnis", + "ceturtais ceturksnis"] + +}; +var formattingQuarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. cet.", + "2. cet.", + "3. cet.", + "4. cet."], + + wide: [ + "pirmajā ceturksnī", + "otrajā ceturksnī", + "trešajā ceturksnī", + "ceturtajā ceturksnī"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "febr.", + "marts", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "janvāris", + "februāris", + "marts", + "aprīlis", + "maijs", + "jūnijs", + "jūlijs", + "augusts", + "septembris", + "oktobris", + "novembris", + "decembris"] + +}; +var formattingMonthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "janv.", + "febr.", + "martā", + "apr.", + "maijs", + "jūn.", + "jūl.", + "aug.", + "sept.", + "okt.", + "nov.", + "dec."], + + wide: [ + "janvārī", + "februārī", + "martā", + "aprīlī", + "maijā", + "jūnijā", + "jūlijā", + "augustā", + "septembrī", + "oktobrī", + "novembrī", + "decembrī"] + +}; +var dayValues = { + narrow: [ + "S", + "P", + "O", + "T", + "C", + "P", + "S"], + + short: [ + "Sv", + "P", + "O", + "T", + "C", + "Pk", + "S"], + + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd."], + + wide: [ + "svētdiena", + "pirmdiena", + "otrdiena", + "trešdiena", + "ceturtdiena", + "piektdiena", + "sestdiena"] + +}; +var formattingDayValues = { + narrow: [ + "S", + "P", + "O", + "T", + "C", + "P", + "S"], + + short: [ + "Sv", + "P", + "O", + "T", + "C", + "Pk", + "S"], + + abbreviated: [ + "svētd.", + "pirmd.", + "otrd.", + "trešd.", + "ceturtd.", + "piektd.", + "sestd."], + + wide: [ + "svētdienā", + "pirmdienā", + "otrdienā", + "trešdienā", + "ceturtdienā", + "piektdienā", + "sestdienā"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "diena", + evening: "vakars", + night: "nakts" + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rīts", + afternoon: "pēcpusd.", + evening: "vakars", + night: "nakts" + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnakts", + noon: "pusdienlaiks", + morning: "rīts", + afternoon: "pēcpusdiena", + evening: "vakars", + night: "nakts" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "dienā", + evening: "vakarā", + night: "naktī" + }, + abbreviated: { + am: "am", + pm: "pm", + midnight: "pusn.", + noon: "pusd.", + morning: "rītā", + afternoon: "pēcpusd.", + evening: "vakarā", + night: "naktī" + }, + wide: { + am: "am", + pm: "pm", + midnight: "pusnaktī", + noon: "pusdienlaikā", + morning: "rītā", + afternoon: "pēcpusdienā", + evening: "vakarā", + night: "naktī" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + formattingValues: formattingQuarterValues, + defaultFormattingWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/lv.js +/** +* @category Locales +* @summary Latvian locale (Latvia). +* @language Latvian +* @iso-639-2 lav +* @author Rūdolfs Puķītis [@prudolfs](https://github.com/prudolfs) +*/ +var lv = { + code: "lv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^p/i, /^m/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i], + + abbreviated: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i], + + wide: [ + /^p/i, + /^o/i, + /^t/i, + /^c/i] + + }, + defaultParseWidth: "wide", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jūn/i, + /^jūl/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^p/i, + /^o/i, + /^t/i, + /^c/i, + /^p/i, + /^s/i], + + any: [ + /^sv/i, + /^pi/i, + /^o/i, + /^t/i, + /^c/i, + /^p/i, + /^se/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/lv/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + lv: lv }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/cdn.min.js b/node_modules/date-fns/locale/lv/cdn.min.js new file mode 100644 index 000000000..a5fdd9585 --- /dev/null +++ b/node_modules/date-fns/locale/lv/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`pēc `+r:`pirms `+r:r};function h(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var g={date:h({formats:{full:`EEEE, y. 'gada' d. MMMM`,long:`y. 'gada' d. MMMM`,medium:`dd.MM.y.`,short:`dd.MM.y.`},defaultWidth:`full`}),time:h({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:h({formats:{full:`{{date}} 'plkst.' {{time}}`,long:`{{date}} 'plkst.' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},_=Symbol.for(`constructDateFrom`);function v(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function y(e){var t=[...arguments].slice(1),n=v.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var b={};function x(){return b}function S(e,t){return v(t||e,e)}function C(e,t){var n,r,i=x(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=S(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?M(s,function(e){return e.test(o)}):j(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function j(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function M(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var P={code:`lv`,formatDistance:m,formatLong:g,formatRelative:D,localize:k,match:{ordinalNumber:N({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:A({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:`any`}),quarter:A({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:`wide`,valueCallback:function(e){return e+1}}),month:A({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:A({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:`any`}),dayPeriod:A({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{lv:P})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk.cjs b/node_modules/date-fns/locale/mk.cjs new file mode 100644 index 000000000..4bd0610bc --- /dev/null +++ b/node_modules/date-fns/locale/mk.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.mk = void 0; +var _index = require("./mk/_lib/formatDistance.cjs"); +var _index2 = require("./mk/_lib/formatLong.cjs"); +var _index3 = require("./mk/_lib/formatRelative.cjs"); +var _index4 = require("./mk/_lib/localize.cjs"); +var _index5 = require("./mk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +const mk = (exports.mk = { + code: "mk", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/mk.d.cts b/node_modules/date-fns/locale/mk.d.cts new file mode 100644 index 000000000..38ec60c40 --- /dev/null +++ b/node_modules/date-fns/locale/mk.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export declare const mk: Locale; diff --git a/node_modules/date-fns/locale/mk.d.ts b/node_modules/date-fns/locale/mk.d.ts new file mode 100644 index 000000000..38ec60c40 --- /dev/null +++ b/node_modules/date-fns/locale/mk.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export declare const mk: Locale; diff --git a/node_modules/date-fns/locale/mk.js b/node_modules/date-fns/locale/mk.js new file mode 100644 index 000000000..4c50c75e6 --- /dev/null +++ b/node_modules/date-fns/locale/mk.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./mk/_lib/formatDistance.js"; +import { formatLong } from "./mk/_lib/formatLong.js"; +import { formatRelative } from "./mk/_lib/formatRelative.js"; +import { localize } from "./mk/_lib/localize.js"; +import { match } from "./mk/_lib/match.js"; + +/** + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) + * @author Altrim Beqiri [@altrim](https://github.com/altrim) + */ +export const mk = { + code: "mk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default mk; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mk/_lib/formatDistance.cjs new file mode 100644 index 000000000..0f5233e5d --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "помалку од секунда", + other: "помалку од {{count}} секунди", + }, + + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди", + }, + + halfAMinute: "половина минута", + + lessThanXMinutes: { + one: "помалку од минута", + other: "помалку од {{count}} минути", + }, + + xMinutes: { + one: "1 минута", + other: "{{count}} минути", + }, + + aboutXHours: { + one: "околу 1 час", + other: "околу {{count}} часа", + }, + + xHours: { + one: "1 час", + other: "{{count}} часа", + }, + + xDays: { + one: "1 ден", + other: "{{count}} дена", + }, + + aboutXWeeks: { + one: "околу 1 недела", + other: "околу {{count}} месеци", + }, + + xWeeks: { + one: "1 недела", + other: "{{count}} недели", + }, + + aboutXMonths: { + one: "околу 1 месец", + other: "околу {{count}} недели", + }, + + xMonths: { + one: "1 месец", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: "околу 1 година", + other: "околу {{count}} години", + }, + + xYears: { + one: "1 година", + other: "{{count}} години", + }, + + overXYears: { + one: "повеќе од 1 година", + other: "повеќе од {{count}} години", + }, + + almostXYears: { + one: "безмалку 1 година", + other: "безмалку {{count}} години", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "за " + result; + } else { + return "пред " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance.js b/node_modules/date-fns/locale/mk/_lib/formatDistance.js new file mode 100644 index 000000000..e77b6ab21 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "помалку од секунда", + other: "помалку од {{count}} секунди", + }, + + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди", + }, + + halfAMinute: "половина минута", + + lessThanXMinutes: { + one: "помалку од минута", + other: "помалку од {{count}} минути", + }, + + xMinutes: { + one: "1 минута", + other: "{{count}} минути", + }, + + aboutXHours: { + one: "околу 1 час", + other: "околу {{count}} часа", + }, + + xHours: { + one: "1 час", + other: "{{count}} часа", + }, + + xDays: { + one: "1 ден", + other: "{{count}} дена", + }, + + aboutXWeeks: { + one: "околу 1 недела", + other: "околу {{count}} месеци", + }, + + xWeeks: { + one: "1 недела", + other: "{{count}} недели", + }, + + aboutXMonths: { + one: "околу 1 месец", + other: "околу {{count}} недели", + }, + + xMonths: { + one: "1 месец", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: "околу 1 година", + other: "околу {{count}} години", + }, + + xYears: { + one: "1 година", + other: "{{count}} години", + }, + + overXYears: { + one: "повеќе од 1 година", + other: "повеќе од {{count}} години", + }, + + almostXYears: { + one: "безмалку 1 година", + other: "безмалку {{count}} години", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "за " + result; + } else { + return "пред " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong.cjs b/node_modules/date-fns/locale/mk/_lib/formatLong.cjs new file mode 100644 index 000000000..3b471108f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mk/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mk/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong.js b/node_modules/date-fns/locale/mk/_lib/formatLong.js new file mode 100644 index 000000000..ac518ae93 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mk/_lib/formatRelative.cjs new file mode 100644 index 000000000..220ea4932 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.cjs @@ -0,0 +1,95 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const weekdays = [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative.js b/node_modules/date-fns/locale/mk/_lib/formatRelative.js new file mode 100644 index 000000000..ce9b70186 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative.js @@ -0,0 +1,92 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const weekdays = [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", +]; + +function lastWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function nextWeek(day) { + const weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/mk/_lib/localize.cjs b/node_modules/date-fns/locale/mk/_lib/localize.cjs new file mode 100644 index 000000000..2d7cb8a57 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.cjs @@ -0,0 +1,123 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["пред н. е.", "н. е."], + wide: ["пред нашата ера", "нашата ера"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ви кв.", "2-ри кв.", "3-ти кв.", "4-ти кв."], + wide: ["1-ви квартал", "2-ри квартал", "3-ти квартал", "4-ти квартал"], +}; + +const monthValues = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек", + ], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["не", "по", "вт", "ср", "че", "пе", "са"], + abbreviated: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"], + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + night: "ноќе", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "-ви"; + case 2: + return number + "-ри"; + case 7: + case 8: + return number + "-ми"; + } + } + return number + "-ти"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/mk/_lib/localize.d.cts b/node_modules/date-fns/locale/mk/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mk/_lib/localize.d.ts b/node_modules/date-fns/locale/mk/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mk/_lib/localize.js b/node_modules/date-fns/locale/mk/_lib/localize.js new file mode 100644 index 000000000..98b0e09b5 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize.js @@ -0,0 +1,121 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["пред н. е.", "н. е."], + wide: ["пред нашата ера", "нашата ера"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-ви кв.", "2-ри кв.", "3-ти кв.", "4-ти кв."], + wide: ["1-ви квартал", "2-ри квартал", "3-ти квартал", "4-ти квартал"], +}; + +const monthValues = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек", + ], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "В", "С", "Ч", "П", "С"], + short: ["не", "по", "вт", "ср", "че", "пе", "са"], + abbreviated: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"], + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота", + ], +}; + +const dayPeriodValues = { + wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + night: "ноќе", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + "-ви"; + case 2: + return number + "-ри"; + case 7: + case 8: + return number + "-ми"; + } + } + return number + "-ти"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/mk/_lib/match.cjs b/node_modules/date-fns/locale/mk/_lib/match.cjs new file mode 100644 index 000000000..18af435a9 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.cjs @@ -0,0 +1,119 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(пред нашата ера|нашата ера)/i, +}; +const parseEraPatterns = { + any: [/^п/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?и?)? кв.?/i, + wide: /^[1234](-?[врт]?и?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(не|по|вт|ср|че|пе|са)/i, + abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i, + wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i, +}; + +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i], +}; + +const matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i, +}; +const parseMonthPatterns = { + any: [ + /^ја/i, + /^Ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /претпладне/i, + pm: /попладне/i, + midnight: /полноќ/i, + noon: /напладне/i, + morning: /наутро/i, + afternoon: /попладне/i, + evening: /навечер/i, + night: /ноќе/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/mk/_lib/match.d.cts b/node_modules/date-fns/locale/mk/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mk/_lib/match.d.ts b/node_modules/date-fns/locale/mk/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mk/_lib/match.js b/node_modules/date-fns/locale/mk/_lib/match.js new file mode 100644 index 000000000..8e9200da0 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match.js @@ -0,0 +1,116 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(пред нашата ера|нашата ера)/i, +}; +const parseEraPatterns = { + any: [/^п/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?и?)? кв.?/i, + wide: /^[1234](-?[врт]?и?)? квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(не|по|вт|ср|че|пе|са)/i, + abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i, + wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i, +}; + +const parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i], +}; + +const matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i, +}; +const parseMonthPatterns = { + any: [ + /^ја/i, + /^Ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /претпладне/i, + pm: /попладне/i, + midnight: /полноќ/i, + noon: /напладне/i, + morning: /наутро/i, + afternoon: /попладне/i, + evening: /навечер/i, + night: /ноќе/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/mk/cdn.js b/node_modules/date-fns/locale/mk/cdn.js new file mode 100644 index 000000000..dc7c4a0a6 --- /dev/null +++ b/node_modules/date-fns/locale/mk/cdn.js @@ -0,0 +1,738 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/mk/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "помалку од секунда", + other: "помалку од {{count}} секунди" + }, + xSeconds: { + one: "1 секунда", + other: "{{count}} секунди" + }, + halfAMinute: "половина минута", + lessThanXMinutes: { + one: "помалку од минута", + other: "помалку од {{count}} минути" + }, + xMinutes: { + one: "1 минута", + other: "{{count}} минути" + }, + aboutXHours: { + one: "околу 1 час", + other: "околу {{count}} часа" + }, + xHours: { + one: "1 час", + other: "{{count}} часа" + }, + xDays: { + one: "1 ден", + other: "{{count}} дена" + }, + aboutXWeeks: { + one: "околу 1 недела", + other: "околу {{count}} месеци" + }, + xWeeks: { + one: "1 недела", + other: "{{count}} недели" + }, + aboutXMonths: { + one: "околу 1 месец", + other: "околу {{count}} недели" + }, + xMonths: { + one: "1 месец", + other: "{{count}} месеци" + }, + aboutXYears: { + one: "околу 1 година", + other: "околу {{count}} години" + }, + xYears: { + one: "1 година", + other: "{{count}} години" + }, + overXYears: { + one: "повеќе од 1 година", + other: "повеќе од {{count}} години" + }, + almostXYears: { + one: "безмалку 1 година", + other: "безмалку {{count}} години" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "за " + result;else + return "пред " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, dd MMMM yyyy", + long: "dd MMMM yyyy", + medium: "dd MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}} {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/mk/_lib/formatRelative.js +var weekdays = [ +"недела", +"понеделник", +"вторник", +"среда", +"четврток", +"петок", +"сабота"]; + +function _lastWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'минатата " + weekday + " во' p"; + case 1: + case 2: + case 4: + case 5:return "'минатиот " + weekday + " во' p"; + } +} +function thisWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'ова " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5:return "'овој " + weekday + " вo' p"; + } +} +function _nextWeek(day) { + var weekday = weekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'следната " + weekday + " вo' p"; + case 1: + case 2: + case 4: + case 5:return "'следниот " + weekday + " вo' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/mk/_lib/localize.js +var eraValues = { + narrow: ["пр.н.е.", "н.е."], + abbreviated: ["пред н. е.", "н. е."], + wide: ["пред нашата ера", "нашата ера"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-ви кв.", + "2-ри кв.", + "3-ти кв.", + "4-ти кв."], + + wide: [ + "1-ви квартал", + "2-ри квартал", + "3-ти квартал", + "4-ти квартал"] + +}; +var monthValues = { + abbreviated: [ + "јан", + "фев", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "септ", + "окт", + "ноем", + "дек"], + + wide: [ + "јануари", + "февруари", + "март", + "април", + "мај", + "јуни", + "јули", + "август", + "септември", + "октомври", + "ноември", + "декември"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "В", + "С", + "Ч", + "П", + "С"], + + short: [ + "не", + "по", + "вт", + "ср", + "че", + "пе", + "са"], + + abbreviated: [ + "нед", + "пон", + "вто", + "сре", + "чет", + "пет", + "саб"], + + wide: [ + "недела", + "понеделник", + "вторник", + "среда", + "четврток", + "петок", + "сабота"] + +}; +var dayPeriodValues = { wide: { + am: "претпладне", + pm: "попладне", + midnight: "полноќ", + noon: "напладне", + morning: "наутро", + afternoon: "попладне", + evening: "навечер", + night: "ноќе" + } }; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1:return number + "-ви"; + case 2:return number + "-ри"; + case 7: + case 8:return number + "-ми"; + } + return number + "-ти"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/mk.js +/** +* @category Locales +* @summary Macedonian locale. +* @language Macedonian +* @iso-639-2 mkd +* @author Petar Vlahu [@vlahupetar](https://github.com/vlahupetar) +* @author Altrim Beqiri [@altrim](https://github.com/altrim) +*/ +var mk = { + code: "mk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?[врмт][и])?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(пред нашата ера|нашата ера)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^п/i, /^н/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?и?)? кв.?/i, + wide: /^[1234](-?[врт]?и?)? квартал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^ја/i, + /^Ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^ав/i, + /^се/i, + /^окт/i, + /^но/i, + /^де/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[нпвсч]/i, + short: /^(не|по|вт|ср|че|пе|са)/i, + abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i, + wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^н/i, + /^п/i, + /^в/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i], + + any: [ + /^н[ед]/i, + /^п[он]/i, + /^вт/i, + /^ср/i, + /^ч[ет]/i, + /^п[ет]/i, + /^с[аб]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /претпладне/i, + pm: /попладне/i, + midnight: /полноќ/i, + noon: /напладне/i, + morning: /наутро/i, + afternoon: /попладне/i, + evening: /навечер/i, + night: /ноќе/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mk/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + mk: mk }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/cdn.min.js b/node_modules/date-fns/locale/mk/cdn.min.js new file mode 100644 index 000000000..c3cbd2ecd --- /dev/null +++ b/node_modules/date-fns/locale/mk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n0?`за `+r:`пред `+r:r};function m(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var h={date:m({formats:{full:`EEEE, dd MMMM yyyy`,long:`dd MMMM yyyy`,medium:`dd MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:m({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:m({formats:{any:`{{date}} {{time}}`},defaultWidth:`any`})},g=Symbol.for(`constructDateFrom`);function _(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&g in e?e[g](t):e instanceof Date?new e.constructor(t):new Date(t)}function v(e){var t=[...arguments].slice(1),n=_.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var y={};function b(){return y}function x(e,t){return _(t||e,e)}function S(e,t){var n,r,i=b(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=x(e,t?.in),s=o.getDay(),c=(s20||r<10)switch(r%10){case 1:return n+`-ви`;case 2:return n+`-ри`;case 7:case 8:return n+`-ми`}return n+`-ти`},era:A({values:{narrow:[`пр.н.е.`,`н.е.`],abbreviated:[`пред н. е.`,`н. е.`],wide:[`пред нашата ера`,`нашата ера`]},defaultWidth:`wide`}),quarter:A({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-ви кв.`,`2-ри кв.`,`3-ти кв.`,`4-ти кв.`],wide:[`1-ви квартал`,`2-ри квартал`,`3-ти квартал`,`4-ти квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:A({values:{abbreviated:[`јан`,`фев`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`септ`,`окт`,`ноем`,`дек`],wide:[`јануари`,`февруари`,`март`,`април`,`мај`,`јуни`,`јули`,`август`,`септември`,`октомври`,`ноември`,`декември`]},defaultWidth:`wide`}),day:A({values:{narrow:[`Н`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`не`,`по`,`вт`,`ср`,`че`,`пе`,`са`],abbreviated:[`нед`,`пон`,`вто`,`сре`,`чет`,`пет`,`саб`],wide:[`недела`,`понеделник`,`вторник`,`среда`,`четврток`,`петок`,`сабота`]},defaultWidth:`wide`}),dayPeriod:A({values:{wide:{am:`претпладне`,pm:`попладне`,midnight:`полноќ`,noon:`напладне`,morning:`наутро`,afternoon:`попладне`,evening:`навечер`,night:`ноќе`}},defaultWidth:`wide`})};function M(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?P(s,function(e){return e.test(o)}):N(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function N(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function P(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var I={code:`mk`,formatDistance:p,formatLong:h,formatRelative:k,localize:j,match:{ordinalNumber:F({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:M({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:`any`}),quarter:M({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:M({matchPatterns:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:`any`}),day:M({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},defaultParseWidth:`any`}),dayPeriod:M({matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{mk:I})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn.cjs b/node_modules/date-fns/locale/mn.cjs new file mode 100644 index 000000000..b8bad40e6 --- /dev/null +++ b/node_modules/date-fns/locale/mn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.mn = void 0; +var _index = require("./mn/_lib/formatDistance.cjs"); +var _index2 = require("./mn/_lib/formatLong.cjs"); +var _index3 = require("./mn/_lib/formatRelative.cjs"); +var _index4 = require("./mn/_lib/localize.cjs"); +var _index5 = require("./mn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +const mn = (exports.mn = { + code: "mn", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/mn.d.cts b/node_modules/date-fns/locale/mn.d.cts new file mode 100644 index 000000000..c7f8cec75 --- /dev/null +++ b/node_modules/date-fns/locale/mn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export declare const mn: Locale; diff --git a/node_modules/date-fns/locale/mn.d.ts b/node_modules/date-fns/locale/mn.d.ts new file mode 100644 index 000000000..c7f8cec75 --- /dev/null +++ b/node_modules/date-fns/locale/mn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export declare const mn: Locale; diff --git a/node_modules/date-fns/locale/mn.js b/node_modules/date-fns/locale/mn.js new file mode 100644 index 000000000..45790fc8b --- /dev/null +++ b/node_modules/date-fns/locale/mn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./mn/_lib/formatDistance.js"; +import { formatLong } from "./mn/_lib/formatLong.js"; +import { formatRelative } from "./mn/_lib/formatRelative.js"; +import { localize } from "./mn/_lib/localize.js"; +import { match } from "./mn/_lib/match.js"; + +/** + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) + */ +export const mn = { + code: "mn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default mn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs new file mode 100644 index 000000000..beb69540e --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.cjs @@ -0,0 +1,143 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "секунд хүрэхгүй", + other: "{{count}} секунд хүрэхгүй", + }, + + xSeconds: { + one: "1 секунд", + other: "{{count}} секунд", + }, + + halfAMinute: "хагас минут", + + lessThanXMinutes: { + one: "минут хүрэхгүй", + other: "{{count}} минут хүрэхгүй", + }, + + xMinutes: { + one: "1 минут", + other: "{{count}} минут", + }, + + aboutXHours: { + one: "ойролцоогоор 1 цаг", + other: "ойролцоогоор {{count}} цаг", + }, + + xHours: { + one: "1 цаг", + other: "{{count}} цаг", + }, + + xDays: { + one: "1 өдөр", + other: "{{count}} өдөр", + }, + + aboutXWeeks: { + one: "ойролцоогоор 1 долоо хоног", + other: "ойролцоогоор {{count}} долоо хоног", + }, + + xWeeks: { + one: "1 долоо хоног", + other: "{{count}} долоо хоног", + }, + + aboutXMonths: { + one: "ойролцоогоор 1 сар", + other: "ойролцоогоор {{count}} сар", + }, + + xMonths: { + one: "1 сар", + other: "{{count}} сар", + }, + + aboutXYears: { + one: "ойролцоогоор 1 жил", + other: "ойролцоогоор {{count}} жил", + }, + + xYears: { + one: "1 жил", + other: "{{count}} жил", + }, + + overXYears: { + one: "1 жил гаран", + other: "{{count}} жил гаран", + }, + + almostXYears: { + one: "бараг 1 жил", + other: "бараг {{count}} жил", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + /** + * Append genitive case + */ + const words = result.split(" "); + const lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default: + result += lastword + "-н"; + } + + if (options.comparison && options.comparison > 0) { + return result + " дараа"; + } else { + return result + " өмнө"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance.js b/node_modules/date-fns/locale/mn/_lib/formatDistance.js new file mode 100644 index 000000000..f90ac736f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance.js @@ -0,0 +1,139 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "секунд хүрэхгүй", + other: "{{count}} секунд хүрэхгүй", + }, + + xSeconds: { + one: "1 секунд", + other: "{{count}} секунд", + }, + + halfAMinute: "хагас минут", + + lessThanXMinutes: { + one: "минут хүрэхгүй", + other: "{{count}} минут хүрэхгүй", + }, + + xMinutes: { + one: "1 минут", + other: "{{count}} минут", + }, + + aboutXHours: { + one: "ойролцоогоор 1 цаг", + other: "ойролцоогоор {{count}} цаг", + }, + + xHours: { + one: "1 цаг", + other: "{{count}} цаг", + }, + + xDays: { + one: "1 өдөр", + other: "{{count}} өдөр", + }, + + aboutXWeeks: { + one: "ойролцоогоор 1 долоо хоног", + other: "ойролцоогоор {{count}} долоо хоног", + }, + + xWeeks: { + one: "1 долоо хоног", + other: "{{count}} долоо хоног", + }, + + aboutXMonths: { + one: "ойролцоогоор 1 сар", + other: "ойролцоогоор {{count}} сар", + }, + + xMonths: { + one: "1 сар", + other: "{{count}} сар", + }, + + aboutXYears: { + one: "ойролцоогоор 1 жил", + other: "ойролцоогоор {{count}} жил", + }, + + xYears: { + one: "1 жил", + other: "{{count}} жил", + }, + + overXYears: { + one: "1 жил гаран", + other: "{{count}} жил гаран", + }, + + almostXYears: { + one: "бараг 1 жил", + other: "бараг {{count}} жил", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + /** + * Append genitive case + */ + const words = result.split(" "); + const lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default: + result += lastword + "-н"; + } + + if (options.comparison && options.comparison > 0) { + return result + " дараа"; + } else { + return result + " өмнө"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.cjs b/node_modules/date-fns/locale/mn/_lib/formatLong.cjs new file mode 100644 index 000000000..5efff8127 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "y 'оны' MMMM'ын' d, EEEE 'гараг'", + long: "y 'оны' MMMM'ын' d", + medium: "y 'оны' MMM'ын' d", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mn/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mn/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong.js b/node_modules/date-fns/locale/mn/_lib/formatLong.js new file mode 100644 index 000000000..646d333aa --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "y 'оны' MMMM'ын' d, EEEE 'гараг'", + long: "y 'оны' MMMM'ын' d", + medium: "y 'оны' MMM'ын' d", + short: "y.MM.dd", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mn/_lib/formatRelative.cjs new file mode 100644 index 000000000..683fe0092 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'", + yesterday: "'өчигдөр' p 'цагт'", + today: "'өнөөдөр' p 'цагт'", + tomorrow: "'маргааш' p 'цагт'", + nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative.js b/node_modules/date-fns/locale/mn/_lib/formatRelative.js new file mode 100644 index 000000000..1fd8b103f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'", + yesterday: "'өчигдөр' p 'цагт'", + today: "'өнөөдөр' p 'цагт'", + tomorrow: "'маргааш' p 'цагт'", + nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/mn/_lib/localize.cjs b/node_modules/date-fns/locale/mn/_lib/localize.cjs new file mode 100644 index 000000000..0270e7733 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.cjs @@ -0,0 +1,198 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"], +}; + +const quarterValues = { + narrow: ["I", "II", "III", "IV"], + abbreviated: ["I улирал", "II улирал", "III улирал", "IV улирал"], + wide: ["1-р улирал", "2-р улирал", "3-р улирал", "4-р улирал"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар", + ], +}; + +const dayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"], +}; + +const formattingDayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["ням", "даваа", "мягмар", "лхагва", "пүрэв", "баасан", "бямба"], +}; + +const dayPeriodValues = { + narrow: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, + abbreviated: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, + wide: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/mn/_lib/localize.d.cts b/node_modules/date-fns/locale/mn/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mn/_lib/localize.d.ts b/node_modules/date-fns/locale/mn/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mn/_lib/localize.js b/node_modules/date-fns/locale/mn/_lib/localize.js new file mode 100644 index 000000000..61a34b1bb --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize.js @@ -0,0 +1,196 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"], +}; + +const quarterValues = { + narrow: ["I", "II", "III", "IV"], + abbreviated: ["I улирал", "II улирал", "III улирал", "IV улирал"], + wide: ["1-р улирал", "2-р улирал", "3-р улирал", "4-р улирал"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII", + ], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар", + ], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар", + ], +}; + +const dayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"], +}; + +const formattingDayValues = { + narrow: ["Н", "Д", "М", "Л", "П", "Б", "Б"], + short: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"], + abbreviated: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"], + wide: ["ням", "даваа", "мягмар", "лхагва", "пүрэв", "баасан", "бямба"], +}; + +const dayPeriodValues = { + narrow: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, + abbreviated: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, + wide: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/mn/_lib/match.cjs b/node_modules/date-fns/locale/mn/_lib/match.cjs new file mode 100644 index 000000000..cb0d39968 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /\d+/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i, +}; +const parseEraPatterns = { + any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i], +}; + +const matchQuarterPatterns = { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i, +}; +const parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: + /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i, + ], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ндмлпбб]/i, + short: /^(ня|да|мя|лх|пү|ба|бя)/i, + abbreviated: /^(ням|дав|мяг|лха|пүр|баа|бям)/i, + wide: /^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^д/i, /^м/i, /^л/i, /^п/i, /^б/i, /^б/i], + any: [/^ня/i, /^да/i, /^мя/i, /^лх/i, /^пү/i, /^ба/i, /^бя/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, + any: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ү\.ө\./i, + pm: /^ү\.х\./i, + midnight: /^шөнө дунд/i, + noon: /^үд дунд/i, + morning: /өглөө/i, + afternoon: /өдөр/i, + evening: /орой/i, + night: /шөнө/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/mn/_lib/match.d.cts b/node_modules/date-fns/locale/mn/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mn/_lib/match.d.ts b/node_modules/date-fns/locale/mn/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mn/_lib/match.js b/node_modules/date-fns/locale/mn/_lib/match.js new file mode 100644 index 000000000..4911cd53e --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /\d+/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i, +}; +const parseEraPatterns = { + any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i], +}; + +const matchQuarterPatterns = { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i, +}; +const parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i], +}; + +const matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: + /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i, + ], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ндмлпбб]/i, + short: /^(ня|да|мя|лх|пү|ба|бя)/i, + abbreviated: /^(ням|дав|мяг|лха|пүр|баа|бям)/i, + wide: /^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i, +}; +const parseDayPatterns = { + narrow: [/^н/i, /^д/i, /^м/i, /^л/i, /^п/i, /^б/i, /^б/i], + any: [/^ня/i, /^да/i, /^мя/i, /^лх/i, /^пү/i, /^ба/i, /^бя/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, + any: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ү\.ө\./i, + pm: /^ү\.х\./i, + midnight: /^шөнө дунд/i, + noon: /^үд дунд/i, + morning: /өглөө/i, + afternoon: /өдөр/i, + evening: /орой/i, + night: /шөнө/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/mn/cdn.js b/node_modules/date-fns/locale/mn/cdn.js new file mode 100644 index 000000000..c2e4972c7 --- /dev/null +++ b/node_modules/date-fns/locale/mn/cdn.js @@ -0,0 +1,663 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/mn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "секунд хүрэхгүй", + other: "{{count}} секунд хүрэхгүй" + }, + xSeconds: { + one: "1 секунд", + other: "{{count}} секунд" + }, + halfAMinute: "хагас минут", + lessThanXMinutes: { + one: "минут хүрэхгүй", + other: "{{count}} минут хүрэхгүй" + }, + xMinutes: { + one: "1 минут", + other: "{{count}} минут" + }, + aboutXHours: { + one: "ойролцоогоор 1 цаг", + other: "ойролцоогоор {{count}} цаг" + }, + xHours: { + one: "1 цаг", + other: "{{count}} цаг" + }, + xDays: { + one: "1 өдөр", + other: "{{count}} өдөр" + }, + aboutXWeeks: { + one: "ойролцоогоор 1 долоо хоног", + other: "ойролцоогоор {{count}} долоо хоног" + }, + xWeeks: { + one: "1 долоо хоног", + other: "{{count}} долоо хоног" + }, + aboutXMonths: { + one: "ойролцоогоор 1 сар", + other: "ойролцоогоор {{count}} сар" + }, + xMonths: { + one: "1 сар", + other: "{{count}} сар" + }, + aboutXYears: { + one: "ойролцоогоор 1 жил", + other: "ойролцоогоор {{count}} жил" + }, + xYears: { + one: "1 жил", + other: "{{count}} жил" + }, + overXYears: { + one: "1 жил гаран", + other: "{{count}} жил гаран" + }, + almostXYears: { + one: "бараг 1 жил", + other: "бараг {{count}} жил" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) { + /** + * Append genitive case + */ + var words = result.split(" "); + var lastword = words.pop(); + result = words.join(" "); + switch (lastword) { + case "секунд": + result += " секундийн"; + break; + case "минут": + result += " минутын"; + break; + case "цаг": + result += " цагийн"; + break; + case "өдөр": + result += " өдрийн"; + break; + case "сар": + result += " сарын"; + break; + case "жил": + result += " жилийн"; + break; + case "хоног": + result += " хоногийн"; + break; + case "гаран": + result += " гараны"; + break; + case "хүрэхгүй": + result += " хүрэхгүй хугацааны"; + break; + default:result += lastword + "-н"; + } + if (options.comparison && options.comparison > 0) return result + " дараа";else + return result + " өмнө"; + } + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "y 'оны' MMMM'ын' d, EEEE 'гараг'", + long: "y 'оны' MMMM'ын' d", + medium: "y 'оны' MMM'ын' d", + short: "y.MM.dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/mn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'", + yesterday: "'өчигдөр' p 'цагт'", + today: "'өнөөдөр' p 'цагт'", + tomorrow: "'маргааш' p 'цагт'", + nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/mn/_lib/localize.js +var eraValues = { + narrow: ["НТӨ", "НТ"], + abbreviated: ["НТӨ", "НТ"], + wide: ["нийтийн тооллын өмнөх", "нийтийн тооллын"] +}; +var quarterValues = { + narrow: [ + "I", + "II", + "III", + "IV"], + + abbreviated: [ + "I улирал", + "II улирал", + "III улирал", + "IV улирал"], + + wide: [ + "1-р улирал", + "2-р улирал", + "3-р улирал", + "4-р улирал"] + +}; +var monthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII"], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар"], + + wide: [ + "Нэгдүгээр сар", + "Хоёрдугаар сар", + "Гуравдугаар сар", + "Дөрөвдүгээр сар", + "Тавдугаар сар", + "Зургаадугаар сар", + "Долоодугаар сар", + "Наймдугаар сар", + "Есдүгээр сар", + "Аравдугаар сар", + "Арваннэгдүгээр сар", + "Арван хоёрдугаар сар"] + +}; +var formattingMonthValues = { + narrow: [ + "I", + "II", + "III", + "IV", + "V", + "VI", + "VII", + "VIII", + "IX", + "X", + "XI", + "XII"], + + abbreviated: [ + "1-р сар", + "2-р сар", + "3-р сар", + "4-р сар", + "5-р сар", + "6-р сар", + "7-р сар", + "8-р сар", + "9-р сар", + "10-р сар", + "11-р сар", + "12-р сар"], + + wide: [ + "нэгдүгээр сар", + "хоёрдугаар сар", + "гуравдугаар сар", + "дөрөвдүгээр сар", + "тавдугаар сар", + "зургаадугаар сар", + "долоодугаар сар", + "наймдугаар сар", + "есдүгээр сар", + "аравдугаар сар", + "арваннэгдүгээр сар", + "арван хоёрдугаар сар"] + +}; +var dayValues = { + narrow: [ + "Н", + "Д", + "М", + "Л", + "П", + "Б", + "Б"], + + short: [ + "Ня", + "Да", + "Мя", + "Лх", + "Пү", + "Ба", + "Бя"], + + abbreviated: [ + "Ням", + "Дав", + "Мяг", + "Лха", + "Пүр", + "Баа", + "Бям"], + + wide: [ + "Ням", + "Даваа", + "Мягмар", + "Лхагва", + "Пүрэв", + "Баасан", + "Бямба"] + +}; +var formattingDayValues = { + narrow: [ + "Н", + "Д", + "М", + "Л", + "П", + "Б", + "Б"], + + short: [ + "Ня", + "Да", + "Мя", + "Лх", + "Пү", + "Ба", + "Бя"], + + abbreviated: [ + "Ням", + "Дав", + "Мяг", + "Лха", + "Пүр", + "Баа", + "Бям"], + + wide: [ + "ням", + "даваа", + "мягмар", + "лхагва", + "пүрэв", + "баасан", + "бямба"] + +}; +var dayPeriodValues = { + narrow: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө" + }, + abbreviated: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө" + }, + wide: { + am: "ү.ө.", + pm: "ү.х.", + midnight: "шөнө дунд", + noon: "үд дунд", + morning: "өглөө", + afternoon: "өдөр", + evening: "орой", + night: "шөнө" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: formattingDayValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/mn.js +/** +* @category Locales +* @summary Mongolian locale. +* @language Mongolian +* @iso-639-2 mon +* @author Bilguun Ochirbat [@bilguun0203](https://github.com/bilguun0203) +*/ +var mn = { + code: "mn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /\d+/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^(i(\s|$)|1)/i, + /^(ii(\s|$)|2)/i, + /^(iii(\s|$)|3)/i, + /^(iv(\s|$)|4)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i$/i, + /^ii$/i, + /^iii$/i, + /^iv$/i, + /^v$/i, + /^vi$/i, + /^vii$/i, + /^viii$/i, + /^ix$/i, + /^x$/i, + /^xi$/i, + /^xii$/i], + + any: [ + /^(1|нэгдүгээр)/i, + /^(2|хоёрдугаар)/i, + /^(3|гуравдугаар)/i, + /^(4|дөрөвдүгээр)/i, + /^(5|тавдугаар)/i, + /^(6|зургаадугаар)/i, + /^(7|долоодугаар)/i, + /^(8|наймдугаар)/i, + /^(9|есдүгээр)/i, + /^(10|аравдугаар)/i, + /^(11|арван нэгдүгээр)/i, + /^(12|арван хоёрдугаар)/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[ндмлпбб]/i, + short: /^(ня|да|мя|лх|пү|ба|бя)/i, + abbreviated: /^(ням|дав|мяг|лха|пүр|баа|бям)/i, + wide: /^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^н/i, + /^д/i, + /^м/i, + /^л/i, + /^п/i, + /^б/i, + /^б/i], + + any: [ + /^ня/i, + /^да/i, + /^мя/i, + /^лх/i, + /^пү/i, + /^ба/i, + /^бя/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, + any: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ү\.ө\./i, + pm: /^ү\.х\./i, + midnight: /^шөнө дунд/i, + noon: /^үд дунд/i, + morning: /өглөө/i, + afternoon: /өдөр/i, + evening: /орой/i, + night: /шөнө/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mn/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + mn: mn }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/cdn.min.js b/node_modules/date-fns/locale/mn/cdn.min.js new file mode 100644 index 000000000..b72202f6f --- /dev/null +++ b/node_modules/date-fns/locale/mn/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` дараа`:r+` өмнө`}return r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`y 'оны' MMMM'ын' d, EEEE 'гараг'`,long:`y 'оны' MMMM'ын' d`,medium:`y 'оны' MMM'ын' d`,short:`y.MM.dd`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'өнгөрсөн' eeee 'гарагийн' p 'цагт'`,yesterday:`'өчигдөр' p 'цагт'`,today:`'өнөөдөр' p 'цагт'`,tomorrow:`'маргааш' p 'цагт'`,nextWeek:`'ирэх' eeee 'гарагийн' p 'цагт'`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`НТӨ`,`НТ`],abbreviated:[`НТӨ`,`НТ`],wide:[`нийтийн тооллын өмнөх`,`нийтийн тооллын`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`I`,`II`,`III`,`IV`],abbreviated:[`I улирал`,`II улирал`,`III улирал`,`IV улирал`],wide:[`1-р улирал`,`2-р улирал`,`3-р улирал`,`4-р улирал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`Нэгдүгээр сар`,`Хоёрдугаар сар`,`Гуравдугаар сар`,`Дөрөвдүгээр сар`,`Тавдугаар сар`,`Зургаадугаар сар`,`Долоодугаар сар`,`Наймдугаар сар`,`Есдүгээр сар`,`Аравдугаар сар`,`Арваннэгдүгээр сар`,`Арван хоёрдугаар сар`]},defaultWidth:`wide`,formattingValues:{narrow:[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`,`XI`,`XII`],abbreviated:[`1-р сар`,`2-р сар`,`3-р сар`,`4-р сар`,`5-р сар`,`6-р сар`,`7-р сар`,`8-р сар`,`9-р сар`,`10-р сар`,`11-р сар`,`12-р сар`],wide:[`нэгдүгээр сар`,`хоёрдугаар сар`,`гуравдугаар сар`,`дөрөвдүгээр сар`,`тавдугаар сар`,`зургаадугаар сар`,`долоодугаар сар`,`наймдугаар сар`,`есдүгээр сар`,`аравдугаар сар`,`арваннэгдүгээр сар`,`арван хоёрдугаар сар`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`Ням`,`Даваа`,`Мягмар`,`Лхагва`,`Пүрэв`,`Баасан`,`Бямба`]},defaultWidth:`wide`,formattingValues:{narrow:[`Н`,`Д`,`М`,`Л`,`П`,`Б`,`Б`],short:[`Ня`,`Да`,`Мя`,`Лх`,`Пү`,`Ба`,`Бя`],abbreviated:[`Ням`,`Дав`,`Мяг`,`Лха`,`Пүр`,`Баа`,`Бям`],wide:[`ням`,`даваа`,`мягмар`,`лхагва`,`пүрэв`,`баасан`,`бямба`]},defaultFormattingWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`},abbreviated:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`},wide:{am:`ү.ө.`,pm:`ү.х.`,midnight:`шөнө дунд`,noon:`үд дунд`,morning:`өглөө`,afternoon:`өдөр`,evening:`орой`,night:`шөнө`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`mn`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{mn:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms.cjs b/node_modules/date-fns/locale/ms.cjs new file mode 100644 index 000000000..b32ae4dbf --- /dev/null +++ b/node_modules/date-fns/locale/ms.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.ms = void 0; +var _index = require("./ms/_lib/formatDistance.cjs"); +var _index2 = require("./ms/_lib/formatLong.cjs"); +var _index3 = require("./ms/_lib/formatRelative.cjs"); +var _index4 = require("./ms/_lib/localize.cjs"); +var _index5 = require("./ms/_lib/match.cjs"); + +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +const ms = (exports.ms = { + code: "ms", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ms.d.cts b/node_modules/date-fns/locale/ms.d.cts new file mode 100644 index 000000000..9b23fa900 --- /dev/null +++ b/node_modules/date-fns/locale/ms.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export declare const ms: Locale; diff --git a/node_modules/date-fns/locale/ms.d.ts b/node_modules/date-fns/locale/ms.d.ts new file mode 100644 index 000000000..9b23fa900 --- /dev/null +++ b/node_modules/date-fns/locale/ms.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export declare const ms: Locale; diff --git a/node_modules/date-fns/locale/ms.js b/node_modules/date-fns/locale/ms.js new file mode 100644 index 000000000..54bccea9c --- /dev/null +++ b/node_modules/date-fns/locale/ms.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ms/_lib/formatDistance.js"; +import { formatLong } from "./ms/_lib/formatLong.js"; +import { formatRelative } from "./ms/_lib/formatRelative.js"; +import { localize } from "./ms/_lib/localize.js"; +import { match } from "./ms/_lib/match.js"; + +/** + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) + */ +export const ms = { + code: "ms", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ms; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs new file mode 100644 index 000000000..e1901e878 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat", + }, + + xSeconds: { + one: "1 saat", + other: "{{count}} saat", + }, + + halfAMinute: "setengah minit", + + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam masa " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance.js b/node_modules/date-fns/locale/ms/_lib/formatDistance.js new file mode 100644 index 000000000..79c252375 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat", + }, + + xSeconds: { + one: "1 saat", + other: "{{count}} saat", + }, + + halfAMinute: "setengah minit", + + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit", + }, + + xMinutes: { + one: "1 minit", + other: "{{count}} minit", + }, + + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam", + }, + + xHours: { + one: "1 jam", + other: "{{count}} jam", + }, + + xDays: { + one: "1 hari", + other: "{{count}} hari", + }, + + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu", + }, + + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu", + }, + + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan", + }, + + xMonths: { + one: "1 bulan", + other: "{{count}} bulan", + }, + + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun", + }, + + xYears: { + one: "1 tahun", + other: "{{count}} tahun", + }, + + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun", + }, + + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "dalam masa " + result; + } else { + return result + " yang lalu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.cjs b/node_modules/date-fns/locale/ms/_lib/formatLong.cjs new file mode 100644 index 000000000..195789dfc --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy", +}; + +const timeFormats = { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ms/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ms/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong.js b/node_modules/date-fns/locale/ms/_lib/formatLong.js new file mode 100644 index 000000000..8796be1d8 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy", +}; + +const timeFormats = { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ms/_lib/formatRelative.cjs new file mode 100644 index 000000000..d846ff7e8 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative.js b/node_modules/date-fns/locale/ms/_lib/formatRelative.js new file mode 100644 index 000000000..3c10e1693 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ms/_lib/localize.cjs b/node_modules/date-fns/locale/ms/_lib/localize.cjs new file mode 100644 index 000000000..2bface7ff --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.cjs @@ -0,0 +1,164 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["S1", "S2", "S3", "S4"], + wide: ["Suku pertama", "Suku kedua", "Suku ketiga", "Suku keempat"], +}; + +// Note: in Malay, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis", + ], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember", + ], +}; + +const dayValues = { + narrow: ["A", "I", "S", "R", "K", "J", "S"], + short: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + abbreviated: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + wide: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + // Can't use "pertama", "kedua" because can't be parsed + return "ke-" + Number(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ms/_lib/localize.d.cts b/node_modules/date-fns/locale/ms/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ms/_lib/localize.d.ts b/node_modules/date-fns/locale/ms/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ms/_lib/localize.js b/node_modules/date-fns/locale/ms/_lib/localize.js new file mode 100644 index 000000000..87a07f726 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize.js @@ -0,0 +1,162 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html +const eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["S1", "S2", "S3", "S4"], + wide: ["Suku pertama", "Suku kedua", "Suku ketiga", "Suku keempat"], +}; + +// Note: in Malay, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "O", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis", + ], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember", + ], +}; + +const dayValues = { + narrow: ["A", "I", "S", "R", "K", "J", "S"], + short: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + abbreviated: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"], + wide: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + // Can't use "pertama", "kedua" because can't be parsed + return "ke-" + Number(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ms/_lib/match.cjs b/node_modules/date-fns/locale/ms/_lib/match.cjs new file mode 100644 index 000000000..7f381f205 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /petama|\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i, +}; +const parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ms/_lib/match.d.cts b/node_modules/date-fns/locale/ms/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ms/_lib/match.d.ts b/node_modules/date-fns/locale/ms/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ms/_lib/match.js b/node_modules/date-fns/locale/ms/_lib/match.js new file mode 100644 index 000000000..10fd70c66 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^ke-(\d+)?/i; +const parseOrdinalNumberPattern = /petama|\d+/i; + +const matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i, +}; +const parseEraPatterns = { + any: [/^s/i, /^(m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i, +}; +const parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i, +}; +const parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ms/cdn.js b/node_modules/date-fns/locale/ms/cdn.js new file mode 100644 index 000000000..3ae851e0b --- /dev/null +++ b/node_modules/date-fns/locale/ms/cdn.js @@ -0,0 +1,573 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ms/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "kurang dari 1 saat", + other: "kurang dari {{count}} saat" + }, + xSeconds: { + one: "1 saat", + other: "{{count}} saat" + }, + halfAMinute: "setengah minit", + lessThanXMinutes: { + one: "kurang dari 1 minit", + other: "kurang dari {{count}} minit" + }, + xMinutes: { + one: "1 minit", + other: "{{count}} minit" + }, + aboutXHours: { + one: "sekitar 1 jam", + other: "sekitar {{count}} jam" + }, + xHours: { + one: "1 jam", + other: "{{count}} jam" + }, + xDays: { + one: "1 hari", + other: "{{count}} hari" + }, + aboutXWeeks: { + one: "sekitar 1 minggu", + other: "sekitar {{count}} minggu" + }, + xWeeks: { + one: "1 minggu", + other: "{{count}} minggu" + }, + aboutXMonths: { + one: "sekitar 1 bulan", + other: "sekitar {{count}} bulan" + }, + xMonths: { + one: "1 bulan", + other: "{{count}} bulan" + }, + aboutXYears: { + one: "sekitar 1 tahun", + other: "sekitar {{count}} tahun" + }, + xYears: { + one: "1 tahun", + other: "{{count}} tahun" + }, + overXYears: { + one: "lebih dari 1 tahun", + other: "lebih dari {{count}} tahun" + }, + almostXYears: { + one: "hampir 1 tahun", + other: "hampir {{count}} tahun" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "dalam masa " + result;else + return result + " yang lalu"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "d/M/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH.mm.ss", + long: "HH.mm.ss", + medium: "HH.mm", + short: "HH.mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ms/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ms/_lib/localize.js +var eraValues = { + narrow: ["SM", "M"], + abbreviated: ["SM", "M"], + wide: ["Sebelum Masihi", "Masihi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "S1", + "S2", + "S3", + "S4"], + + wide: [ + "Suku pertama", + "Suku kedua", + "Suku ketiga", + "Suku keempat"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "O", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Feb", + "Mac", + "Apr", + "Mei", + "Jun", + "Jul", + "Ogo", + "Sep", + "Okt", + "Nov", + "Dis"], + + wide: [ + "Januari", + "Februari", + "Mac", + "April", + "Mei", + "Jun", + "Julai", + "Ogos", + "September", + "Oktober", + "November", + "Disember"] + +}; +var dayValues = { + narrow: [ + "A", + "I", + "S", + "R", + "K", + "J", + "S"], + + short: [ + "Ahd", + "Isn", + "Sel", + "Rab", + "Kha", + "Jum", + "Sab"], + + abbreviated: [ + "Ahd", + "Isn", + "Sel", + "Rab", + "Kha", + "Jum", + "Sab"], + + wide: [ + "Ahad", + "Isnin", + "Selasa", + "Rabu", + "Khamis", + "Jumaat", + "Sabtu"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tgh malam", + noon: "tgh hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "tengah malam", + noon: "tengah hari", + morning: "pagi", + afternoon: "tengah hari", + evening: "petang", + night: "malam" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return "ke-" + Number(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ms.js +/** +* @category Locales +* @summary Malay locale. +* @language Malay +* @iso-639-2 msa +* @author Ruban Selvarajah [@Zyten](https://github.com/Zyten) +*/ +var ms = { + code: "ms", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^ke-(\d+)?/i, + parsePattern: /petama|\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^s/i, /^(m)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /pertama|1/i, + /kedua|2/i, + /ketiga|3/i, + /keempat|4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^o/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^ma/i, + /^ap/i, + /^me/i, + /^jun/i, + /^jul/i, + /^og/i, + /^s/i, + /^ok/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^a/i, + /^i/i, + /^s/i, + /^r/i, + /^k/i, + /^j/i, + /^s/i], + + any: [ + /^a/i, + /^i/i, + /^se/i, + /^r/i, + /^k/i, + /^j/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ms/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ms: ms }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/cdn.min.js b/node_modules/date-fns/locale/ms/cdn.min.js new file mode 100644 index 000000000..9fe138869 --- /dev/null +++ b/node_modules/date-fns/locale/ms/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`dalam masa `+r:r+` yang lalu`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`d/M/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'lepas pada jam' p`,yesterday:`'Semalam pada jam' p`,today:`'Hari ini pada jam' p`,tomorrow:`'Esok pada jam' p`,nextWeek:`eeee 'pada jam' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return`ke-`+Number(e)},era:f({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masihi`,`Masihi`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`S1`,`S2`,`S3`,`S4`],wide:[`Suku pertama`,`Suku kedua`,`Suku ketiga`,`Suku keempat`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`O`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mac`,`Apr`,`Mei`,`Jun`,`Jul`,`Ogo`,`Sep`,`Okt`,`Nov`,`Dis`],wide:[`Januari`,`Februari`,`Mac`,`April`,`Mei`,`Jun`,`Julai`,`Ogos`,`September`,`Oktober`,`November`,`Disember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`A`,`I`,`S`,`R`,`K`,`J`,`S`],short:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],abbreviated:[`Ahd`,`Isn`,`Sel`,`Rab`,`Kha`,`Jum`,`Sab`],wide:[`Ahad`,`Isnin`,`Selasa`,`Rabu`,`Khamis`,`Jumaat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`tgh malam`,noon:`tgh hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`tengah hari`,evening:`petang`,night:`malam`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ms`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ms:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt.cjs b/node_modules/date-fns/locale/mt.cjs new file mode 100644 index 000000000..9ba0504ff --- /dev/null +++ b/node_modules/date-fns/locale/mt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.mt = void 0; +var _index = require("./mt/_lib/formatDistance.cjs"); +var _index2 = require("./mt/_lib/formatLong.cjs"); +var _index3 = require("./mt/_lib/formatRelative.cjs"); +var _index4 = require("./mt/_lib/localize.cjs"); +var _index5 = require("./mt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +const mt = (exports.mt = { + code: "mt", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/mt.d.cts b/node_modules/date-fns/locale/mt.d.cts new file mode 100644 index 000000000..d5fb873b6 --- /dev/null +++ b/node_modules/date-fns/locale/mt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export declare const mt: Locale; diff --git a/node_modules/date-fns/locale/mt.d.ts b/node_modules/date-fns/locale/mt.d.ts new file mode 100644 index 000000000..d5fb873b6 --- /dev/null +++ b/node_modules/date-fns/locale/mt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export declare const mt: Locale; diff --git a/node_modules/date-fns/locale/mt.js b/node_modules/date-fns/locale/mt.js new file mode 100644 index 000000000..6bab03ab8 --- /dev/null +++ b/node_modules/date-fns/locale/mt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./mt/_lib/formatDistance.js"; +import { formatLong } from "./mt/_lib/formatLong.js"; +import { formatRelative } from "./mt/_lib/formatRelative.js"; +import { localize } from "./mt/_lib/localize.js"; +import { match } from "./mt/_lib/match.js"; + +/** + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +export const mt = { + code: "mt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default mt; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs new file mode 100644 index 000000000..370ca1da1 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.cjs @@ -0,0 +1,111 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi", + }, + + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi", + }, + + halfAMinute: "nofs minuta", + + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti", + }, + + xMinutes: { + one: "minuta", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat", + }, + + xHours: { + one: "siegħa", + other: "{{count}} siegħat", + }, + + xDays: { + one: "ġurnata", + other: "{{count}} ġranet", + }, + + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat", + }, + + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat", + }, + + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur", + }, + + xMonths: { + one: "xahar", + other: "{{count}} xhur", + }, + + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin", + }, + + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin", + }, + + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin", + }, + + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + " ilu"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance.js b/node_modules/date-fns/locale/mt/_lib/formatDistance.js new file mode 100644 index 000000000..b25ea8876 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance.js @@ -0,0 +1,107 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi", + }, + + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi", + }, + + halfAMinute: "nofs minuta", + + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti", + }, + + xMinutes: { + one: "minuta", + other: "{{count}} minuti", + }, + + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat", + }, + + xHours: { + one: "siegħa", + other: "{{count}} siegħat", + }, + + xDays: { + one: "ġurnata", + other: "{{count}} ġranet", + }, + + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat", + }, + + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat", + }, + + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur", + }, + + xMonths: { + one: "xahar", + other: "{{count}} xhur", + }, + + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin", + }, + + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin", + }, + + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin", + }, + + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + " ilu"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.cjs b/node_modules/date-fns/locale/mt/_lib/formatLong.cjs new file mode 100644 index 000000000..ee1d3ba24 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/mt/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/mt/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong.js b/node_modules/date-fns/locale/mt/_lib/formatLong.js new file mode 100644 index 000000000..b556a58bb --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/mt/_lib/formatRelative.cjs new file mode 100644 index 000000000..225f1184d --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative.js b/node_modules/date-fns/locale/mt/_lib/formatRelative.js new file mode 100644 index 000000000..556b50ac8 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/mt/_lib/localize.cjs b/node_modules/date-fns/locale/mt/_lib/localize.cjs new file mode 100644 index 000000000..4805e47ea --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kwart", "2. kwart", "3. kwart", "4. kwart"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "Ġ", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ", + ], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru", + ], +}; + +const dayValues = { + narrow: ["Ħ", "T", "T", "E", "Ħ", "Ġ", "S"], + short: ["Ħa", "Tn", "Tl", "Er", "Ħa", "Ġi", "Si"], + abbreviated: ["Ħad", "Tne", "Tli", "Erb", "Ħam", "Ġim", "Sib"], + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/mt/_lib/localize.d.cts b/node_modules/date-fns/locale/mt/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mt/_lib/localize.d.ts b/node_modules/date-fns/locale/mt/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/mt/_lib/localize.js b/node_modules/date-fns/locale/mt/_lib/localize.js new file mode 100644 index 000000000..a9c7bdb32 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1. kwart", "2. kwart", "3. kwart", "4. kwart"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "Ġ", "L", "A", "S", "O", "N", "D"], + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ", + ], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru", + ], +}; + +const dayValues = { + narrow: ["Ħ", "T", "T", "E", "Ħ", "Ġ", "S"], + short: ["Ħa", "Tn", "Tl", "Er", "Ħa", "Ġi", "Si"], + abbreviated: ["Ħad", "Tne", "Tli", "Erb", "Ħam", "Ġim", "Sib"], + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/mt/_lib/match.cjs b/node_modules/date-fns/locale/mt/_lib/match.cjs new file mode 100644 index 000000000..d4d27e3fc --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.cjs @@ -0,0 +1,144 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i, +}; +const parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i, +}; +const parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/mt/_lib/match.d.cts b/node_modules/date-fns/locale/mt/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mt/_lib/match.d.ts b/node_modules/date-fns/locale/mt/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/mt/_lib/match.js b/node_modules/date-fns/locale/mt/_lib/match.js new file mode 100644 index 000000000..325477734 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match.js @@ -0,0 +1,141 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i, +}; +const parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i, +}; +const parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/mt/cdn.js b/node_modules/date-fns/locale/mt/cdn.js new file mode 100644 index 000000000..4d0599d0c --- /dev/null +++ b/node_modules/date-fns/locale/mt/cdn.js @@ -0,0 +1,579 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/mt/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "inqas minn sekonda", + other: "inqas minn {{count}} sekondi" + }, + xSeconds: { + one: "sekonda", + other: "{{count}} sekondi" + }, + halfAMinute: "nofs minuta", + lessThanXMinutes: { + one: "inqas minn minuta", + other: "inqas minn {{count}} minuti" + }, + xMinutes: { + one: "minuta", + other: "{{count}} minuti" + }, + aboutXHours: { + one: "madwar siegħa", + other: "madwar {{count}} siegħat" + }, + xHours: { + one: "siegħa", + other: "{{count}} siegħat" + }, + xDays: { + one: "ġurnata", + other: "{{count}} ġranet" + }, + aboutXWeeks: { + one: "madwar ġimgħa", + other: "madwar {{count}} ġimgħat" + }, + xWeeks: { + one: "ġimgħa", + other: "{{count}} ġimgħat" + }, + aboutXMonths: { + one: "madwar xahar", + other: "madwar {{count}} xhur" + }, + xMonths: { + one: "xahar", + other: "{{count}} xhur" + }, + aboutXYears: { + one: "madwar sena", + two: "madwar sentejn", + other: "madwar {{count}} snin" + }, + xYears: { + one: "sena", + two: "sentejn", + other: "{{count}} snin" + }, + overXYears: { + one: "aktar minn sena", + two: "aktar minn sentejn", + other: "aktar minn {{count}} snin" + }, + almostXYears: { + one: "kważi sena", + two: "kważi sentejn", + other: "kważi {{count}} snin" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + if (count === 2 && tokenValue.two) result = tokenValue.two;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "f'" + result;else + return result + " ilu"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/mt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/mt/_lib/localize.js +var eraValues = { + narrow: ["Q", "W"], + abbreviated: ["QK", "WK"], + wide: ["qabel Kristu", "wara Kristu"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1. kwart", + "2. kwart", + "3. kwart", + "4. kwart"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "Ġ", + "L", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "Jan", + "Fra", + "Mar", + "Apr", + "Mej", + "Ġun", + "Lul", + "Aww", + "Set", + "Ott", + "Nov", + "Diċ"], + + wide: [ + "Jannar", + "Frar", + "Marzu", + "April", + "Mejju", + "Ġunju", + "Lulju", + "Awwissu", + "Settembru", + "Ottubru", + "Novembru", + "Diċembru"] + +}; +var dayValues = { + narrow: [ + "Ħ", + "T", + "T", + "E", + "Ħ", + "Ġ", + "S"], + + short: [ + "Ħa", + "Tn", + "Tl", + "Er", + "Ħa", + "Ġi", + "Si"], + + abbreviated: [ + "Ħad", + "Tne", + "Tli", + "Erb", + "Ħam", + "Ġim", + "Sib"], + + wide: [ + "Il-Ħadd", + "It-Tnejn", + "It-Tlieta", + "L-Erbgħa", + "Il-Ħamis", + "Il-Ġimgħa", + "Is-Sibt"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "nofsillejl", + noon: "nofsinhar", + morning: "għodwa", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "lejl" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: "filgħodu", + afternoon: "wara nofsinhar", + evening: "filgħaxija", + night: "billejl" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/mt.js +/** +* @category Locales +* @summary Maltese locale. +* @language Maltese +* @iso-639-2 mlt +* @author Andras Matzon [@amatzon](@link https://github.com/amatzon) +* @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) +*/ +var mt = { + code: "mt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(q|b)/i, /^(w|c)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^ġ/i, + /^l/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mej/i, + /^ġ/i, + /^l/i, + /^aw/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ħ/i, + /^t/i, + /^t/i, + /^e/i, + /^ħ/i, + /^ġ/i, + /^s/i], + + any: [ + /^(il-)?ħad/i, + /^(it-)?tn/i, + /^(it-)?tl/i, + /^(l-)?er/i, + /^(il-)?ham/i, + /^(il-)?ġi/i, + /^(is-)?si/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/mt/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + mt: mt }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/cdn.min.js b/node_modules/date-fns/locale/mt/cdn.min.js new file mode 100644 index 000000000..65782b5df --- /dev/null +++ b/node_modules/date-fns/locale/mt/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`f'`+r:r+` ilu`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'li għadda' 'fil-'p`,yesterday:`'Il-bieraħ fil-'p`,today:`'Illum fil-'p`,tomorrow:`'Għada fil-'p`,nextWeek:`eeee 'fil-'p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`Q`,`W`],abbreviated:[`QK`,`WK`],wide:[`qabel Kristu`,`wara Kristu`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1. kwart`,`2. kwart`,`3. kwart`,`4. kwart`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`Ġ`,`L`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Fra`,`Mar`,`Apr`,`Mej`,`Ġun`,`Lul`,`Aww`,`Set`,`Ott`,`Nov`,`Diċ`],wide:[`Jannar`,`Frar`,`Marzu`,`April`,`Mejju`,`Ġunju`,`Lulju`,`Awwissu`,`Settembru`,`Ottubru`,`Novembru`,`Diċembru`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Ħ`,`T`,`T`,`E`,`Ħ`,`Ġ`,`S`],short:[`Ħa`,`Tn`,`Tl`,`Er`,`Ħa`,`Ġi`,`Si`],abbreviated:[`Ħad`,`Tne`,`Tli`,`Erb`,`Ħam`,`Ġim`,`Sib`],wide:[`Il-Ħadd`,`It-Tnejn`,`It-Tlieta`,`L-Erbgħa`,`Il-Ħamis`,`Il-Ġimgħa`,`Is-Sibt`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`nofsillejl`,noon:`nofsinhar`,morning:`għodwa`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`lejl`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},abbreviated:{am:`AM`,pm:`PM`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`f'nofsillejl`,noon:`f'nofsinhar`,morning:`filgħodu`,afternoon:`wara nofsinhar`,evening:`filgħaxija`,night:`billejl`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`mt`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{mt:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb.cjs b/node_modules/date-fns/locale/nb.cjs new file mode 100644 index 000000000..0f2d4ca56 --- /dev/null +++ b/node_modules/date-fns/locale/nb.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.nb = void 0; +var _index = require("./nb/_lib/formatDistance.cjs"); +var _index2 = require("./nb/_lib/formatLong.cjs"); +var _index3 = require("./nb/_lib/formatRelative.cjs"); +var _index4 = require("./nb/_lib/localize.cjs"); +var _index5 = require("./nb/_lib/match.cjs"); + +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +const nb = (exports.nb = { + code: "nb", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/nb.d.cts b/node_modules/date-fns/locale/nb.d.cts new file mode 100644 index 000000000..861fb8bd7 --- /dev/null +++ b/node_modules/date-fns/locale/nb.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export declare const nb: Locale; diff --git a/node_modules/date-fns/locale/nb.d.ts b/node_modules/date-fns/locale/nb.d.ts new file mode 100644 index 000000000..861fb8bd7 --- /dev/null +++ b/node_modules/date-fns/locale/nb.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export declare const nb: Locale; diff --git a/node_modules/date-fns/locale/nb.js b/node_modules/date-fns/locale/nb.js new file mode 100644 index 000000000..e4d5262ff --- /dev/null +++ b/node_modules/date-fns/locale/nb.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./nb/_lib/formatDistance.js"; +import { formatLong } from "./nb/_lib/formatLong.js"; +import { formatRelative } from "./nb/_lib/formatRelative.js"; +import { localize } from "./nb/_lib/localize.js"; +import { match } from "./nb/_lib/match.js"; + +/** + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Dag Stuan [@dagstuan](https://github.com/dagstuan) + */ +export const nb = { + code: "nb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nb; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs new file mode 100644 index 000000000..3a38681c7 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder", + }, + + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "et halvt minutt", + + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter", + }, + + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer", + }, + + xHours: { + one: "en time", + other: "{{count}} timer", + }, + + xDays: { + one: "en dag", + other: "{{count}} dager", + }, + + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker", + }, + + xWeeks: { + one: "en uke", + other: "{{count}} uker", + }, + + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder", + }, + + xMonths: { + one: "en måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "over ett år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance.js b/node_modules/date-fns/locale/nb/_lib/formatDistance.js new file mode 100644 index 000000000..b7b22a57e --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder", + }, + + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "et halvt minutt", + + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter", + }, + + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter", + }, + + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer", + }, + + xHours: { + one: "en time", + other: "{{count}} timer", + }, + + xDays: { + one: "en dag", + other: "{{count}} dager", + }, + + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker", + }, + + xWeeks: { + one: "en uke", + other: "{{count}} uker", + }, + + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder", + }, + + xMonths: { + one: "en måned", + other: "{{count}} måneder", + }, + + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "over ett år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " siden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.cjs b/node_modules/date-fns/locale/nb/_lib/formatLong.cjs new file mode 100644 index 000000000..e0de253bd --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nb/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nb/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong.js b/node_modules/date-fns/locale/nb/_lib/formatLong.js new file mode 100644 index 000000000..fb4ed8b77 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nb/_lib/formatRelative.cjs new file mode 100644 index 000000000..bd9baf18d --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative.js b/node_modules/date-fns/locale/nb/_lib/formatRelative.js new file mode 100644 index 000000000..77c6e5399 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nb/_lib/localize.cjs b/node_modules/date-fns/locale/nb/_lib/localize.cjs new file mode 100644 index 000000000..db361a7cb --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"], + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/nb/_lib/localize.d.cts b/node_modules/date-fns/locale/nb/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nb/_lib/localize.d.ts b/node_modules/date-fns/locale/nb/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nb/_lib/localize.js b/node_modules/date-fns/locale/nb/_lib/localize.js new file mode 100644 index 000000000..477d2f620 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sø", "ma", "ti", "on", "to", "fr", "lø"], + abbreviated: ["søn", "man", "tir", "ons", "tor", "fre", "lør"], + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/nb/_lib/match.cjs b/node_modules/date-fns/locale/nb/_lib/match.cjs new file mode 100644 index 000000000..e2a7c4488 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/nb/_lib/match.d.cts b/node_modules/date-fns/locale/nb/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nb/_lib/match.d.ts b/node_modules/date-fns/locale/nb/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nb/_lib/match.js b/node_modules/date-fns/locale/nb/_lib/match.js new file mode 100644 index 000000000..88b135381 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/nb/cdn.js b/node_modules/date-fns/locale/nb/cdn.js new file mode 100644 index 000000000..4235c93fa --- /dev/null +++ b/node_modules/date-fns/locale/nb/cdn.js @@ -0,0 +1,530 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/nb/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn ett sekund", + other: "mindre enn {{count}} sekunder" + }, + xSeconds: { + one: "ett sekund", + other: "{{count}} sekunder" + }, + halfAMinute: "et halvt minutt", + lessThanXMinutes: { + one: "mindre enn ett minutt", + other: "mindre enn {{count}} minutter" + }, + xMinutes: { + one: "ett minutt", + other: "{{count}} minutter" + }, + aboutXHours: { + one: "omtrent en time", + other: "omtrent {{count}} timer" + }, + xHours: { + one: "en time", + other: "{{count}} timer" + }, + xDays: { + one: "en dag", + other: "{{count}} dager" + }, + aboutXWeeks: { + one: "omtrent en uke", + other: "omtrent {{count}} uker" + }, + xWeeks: { + one: "en uke", + other: "{{count}} uker" + }, + aboutXMonths: { + one: "omtrent en måned", + other: "omtrent {{count}} måneder" + }, + xMonths: { + one: "en måned", + other: "{{count}} måneder" + }, + aboutXYears: { + one: "omtrent ett år", + other: "omtrent {{count}} år" + }, + xYears: { + one: "ett år", + other: "{{count}} år" + }, + overXYears: { + one: "over ett år", + other: "over {{count}} år" + }, + almostXYears: { + one: "nesten ett år", + other: "nesten {{count}} år" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " siden"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nb/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/nb/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "sø", + "ma", + "ti", + "on", + "to", + "fr", + "lø"], + + abbreviated: [ + "søn", + "man", + "tir", + "ons", + "tor", + "fre", + "lør"], + + wide: [ + "søndag", + "mandag", + "tirsdag", + "onsdag", + "torsdag", + "fredag", + "lørdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natten" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgenen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/nb.js +/** +* @category Locales +* @summary Norwegian Bokmål locale. +* @language Norwegian Bokmål +* @iso-639-2 nob +* @author Hans-Kristian Koren [@Hanse](https://github.com/Hanse) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Dag Stuan [@dagstuan](https://github.com/dagstuan) +*/ +var nb = { + code: "nb", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^e/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ti/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nb/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + nb: nb }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/cdn.min.js b/node_modules/date-fns/locale/nb/cdn.min.js new file mode 100644 index 000000000..1e28fb6cf --- /dev/null +++ b/node_modules/date-fns/locale/nb/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`om `+r:r+` siden`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'forrige' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgen kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sø`,`ma`,`ti`,`on`,`to`,`fr`,`lø`],abbreviated:[`søn`,`man`,`tir`,`ons`,`tor`,`fre`,`lør`],wide:[`søndag`,`mandag`,`tirsdag`,`onsdag`,`torsdag`,`fredag`,`lørdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natten`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgenen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natten`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`nb`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nb:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE.cjs b/node_modules/date-fns/locale/nl-BE.cjs new file mode 100644 index 000000000..3119f5d13 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.nlBE = void 0; +var _index = require("./nl-BE/_lib/formatDistance.cjs"); +var _index2 = require("./nl-BE/_lib/formatLong.cjs"); +var _index3 = require("./nl-BE/_lib/formatRelative.cjs"); +var _index4 = require("./nl-BE/_lib/localize.cjs"); +var _index5 = require("./nl-BE/_lib/match.cjs"); + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +const nlBE = (exports.nlBE = { + code: "nl-BE", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/nl-BE.d.cts b/node_modules/date-fns/locale/nl-BE.d.cts new file mode 100644 index 000000000..82af1f982 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const nlBE: Locale; diff --git a/node_modules/date-fns/locale/nl-BE.d.ts b/node_modules/date-fns/locale/nl-BE.d.ts new file mode 100644 index 000000000..82af1f982 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export declare const nlBE: Locale; diff --git a/node_modules/date-fns/locale/nl-BE.js b/node_modules/date-fns/locale/nl-BE.js new file mode 100644 index 000000000..7c1faf6ef --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./nl-BE/_lib/formatDistance.js"; +import { formatLong } from "./nl-BE/_lib/formatLong.js"; +import { formatRelative } from "./nl-BE/_lib/formatRelative.js"; +import { localize } from "./nl-BE/_lib/localize.js"; +import { match } from "./nl-BE/_lib/match.js"; + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Alex Hoeing [@dcbn](https://github.com/dcbn) + */ +export const nlBE = { + code: "nl-BE", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nlBE; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs new file mode 100644 index 000000000..c460d2ead --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js new file mode 100644 index 000000000..265110744 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs new file mode 100644 index 000000000..b138e5fdf --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js new file mode 100644 index 000000000..3113d298e --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs new file mode 100644 index 000000000..aa7693a36 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js new file mode 100644 index 000000000..0343e4896 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize.cjs b/node_modules/date-fns/locale/nl-BE/_lib/localize.cjs new file mode 100644 index 000000000..216d42b74 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize.js b/node_modules/date-fns/locale/nl-BE/_lib/localize.js new file mode 100644 index 000000000..341c831d6 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match.cjs b/node_modules/date-fns/locale/nl-BE/_lib/match.cjs new file mode 100644 index 000000000..fc6b479d0 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^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, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match.d.cts b/node_modules/date-fns/locale/nl-BE/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match.d.ts b/node_modules/date-fns/locale/nl-BE/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match.js b/node_modules/date-fns/locale/nl-BE/_lib/match.js new file mode 100644 index 000000000..e37f5a2df --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^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, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/nl-BE/cdn.js b/node_modules/date-fns/locale/nl-BE/cdn.js new file mode 100644 index 000000000..be68aecd2 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/cdn.js @@ -0,0 +1,539 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/nl-BE/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden" + }, + halfAMinute: "een halve minuut", + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten" + }, + xMinutes: { + one: "een minuut", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur" + }, + xHours: { + one: "1 uur", + other: "{{count}} uur" + }, + xDays: { + one: "1 dag", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weken" + }, + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden" + }, + xMonths: { + one: "1 maand", + other: "{{count}} maanden" + }, + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar" + }, + xYears: { + one: "1 jaar", + other: "{{count}} jaar" + }, + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar" + }, + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "over " + result;else + return result + " geleden"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nl-BE/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/nl-BE/_lib/localize.js +var eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z"], + + short: [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za"], + + abbreviated: [ + "zon", + "maa", + "din", + "woe", + "don", + "vri", + "zat"], + + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middag", + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "e"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/nl-BE.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Alex Hoeing [@dcbn](https://github.com/dcbn) +*/ +var nlBE = { + code: "nl-BE", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)e?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^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] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^z/i, + /^m/i, + /^d/i, + /^w/i, + /^d/i, + /^v/i, + /^z/i], + + any: [ + /^zo/i, + /^ma/i, + /^di/i, + /^wo/i, + /^do/i, + /^vr/i, + /^za/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nl-BE/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + nlBE: nlBE }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/cdn.min.js b/node_modules/date-fns/locale/nl-BE/cdn.min.js new file mode 100644 index 000000000..6af14711f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`over `+r:r+` geleden`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'vorige' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen om' p`,nextWeek:`eeee 'om' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middag`,morning:`'s ochtends`,afternoon:`'s namiddags`,evening:`'s avonds`,night:`'s nachts`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`nl-BE`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^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]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nlBE:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl.cjs b/node_modules/date-fns/locale/nl.cjs new file mode 100644 index 000000000..c599dd49f --- /dev/null +++ b/node_modules/date-fns/locale/nl.cjs @@ -0,0 +1,32 @@ +"use strict"; +exports.nl = void 0; +var _index = require("./nl/_lib/formatDistance.cjs"); +var _index2 = require("./nl/_lib/formatLong.cjs"); +var _index3 = require("./nl/_lib/formatRelative.cjs"); +var _index4 = require("./nl/_lib/localize.cjs"); +var _index5 = require("./nl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +const nl = (exports.nl = { + code: "nl", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/nl.d.cts b/node_modules/date-fns/locale/nl.d.cts new file mode 100644 index 000000000..9869f15b1 --- /dev/null +++ b/node_modules/date-fns/locale/nl.d.cts @@ -0,0 +1,14 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export declare const nl: Locale; diff --git a/node_modules/date-fns/locale/nl.d.ts b/node_modules/date-fns/locale/nl.d.ts new file mode 100644 index 000000000..9869f15b1 --- /dev/null +++ b/node_modules/date-fns/locale/nl.d.ts @@ -0,0 +1,14 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export declare const nl: Locale; diff --git a/node_modules/date-fns/locale/nl.js b/node_modules/date-fns/locale/nl.js new file mode 100644 index 000000000..c4d0e2527 --- /dev/null +++ b/node_modules/date-fns/locale/nl.js @@ -0,0 +1,33 @@ +import { formatDistance } from "./nl/_lib/formatDistance.js"; +import { formatLong } from "./nl/_lib/formatLong.js"; +import { formatRelative } from "./nl/_lib/formatRelative.js"; +import { localize } from "./nl/_lib/localize.js"; +import { match } from "./nl/_lib/match.js"; + +/** + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) + * @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + * @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) + * @author Edo Rivai [@edorivai](https://github.com/edorivai) + * @author Niels Keurentjes [@curry684](https://github.com/curry684) + * @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) + */ +export const nl = { + code: "nl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nl; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs new file mode 100644 index 000000000..c460d2ead --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance.js b/node_modules/date-fns/locale/nl/_lib/formatDistance.js new file mode 100644 index 000000000..265110744 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden", + }, + + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden", + }, + + halfAMinute: "een halve minuut", + + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten", + }, + + xMinutes: { + one: "een minuut", + other: "{{count}} minuten", + }, + + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur", + }, + + xHours: { + one: "1 uur", + other: "{{count}} uur", + }, + + xDays: { + one: "1 dag", + other: "{{count}} dagen", + }, + + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken", + }, + + xWeeks: { + one: "1 week", + other: "{{count}} weken", + }, + + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden", + }, + + xMonths: { + one: "1 maand", + other: "{{count}} maanden", + }, + + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar", + }, + + xYears: { + one: "1 jaar", + other: "{{count}} jaar", + }, + + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar", + }, + + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "over " + result; + } else { + return result + " geleden"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.cjs b/node_modules/date-fns/locale/nl/_lib/formatLong.cjs new file mode 100644 index 000000000..7e58b582a --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nl/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nl/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong.js b/node_modules/date-fns/locale/nl/_lib/formatLong.js new file mode 100644 index 000000000..bb442e48d --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nl/_lib/formatRelative.cjs new file mode 100644 index 000000000..7e96ed405 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative.js b/node_modules/date-fns/locale/nl/_lib/formatRelative.js new file mode 100644 index 000000000..d43100866 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nl/_lib/localize.cjs b/node_modules/date-fns/locale/nl/_lib/localize.cjs new file mode 100644 index 000000000..2e766204b --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/nl/_lib/localize.d.cts b/node_modules/date-fns/locale/nl/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl/_lib/localize.d.ts b/node_modules/date-fns/locale/nl/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nl/_lib/localize.js b/node_modules/date-fns/locale/nl/_lib/localize.js new file mode 100644 index 000000000..56a3bf8aa --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["K1", "K2", "K3", "K4"], + wide: ["1e kwartaal", "2e kwartaal", "3e kwartaal", "4e kwartaal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["Z", "M", "D", "W", "D", "V", "Z"], + short: ["zo", "ma", "di", "wo", "do", "vr", "za"], + abbreviated: ["zon", "maa", "din", "woe", "don", "vri", "zat"], + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "e"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/nl/_lib/match.cjs b/node_modules/date-fns/locale/nl/_lib/match.cjs new file mode 100644 index 000000000..fc6b479d0 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^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, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/nl/_lib/match.d.cts b/node_modules/date-fns/locale/nl/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl/_lib/match.d.ts b/node_modules/date-fns/locale/nl/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nl/_lib/match.js b/node_modules/date-fns/locale/nl/_lib/match.js new file mode 100644 index 000000000..e37f5a2df --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)e?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/, +}; +const parseEraPatterns = { + any: [/^v/, /^n/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^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, + ], +}; + +const matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i, +}; +const parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/nl/cdn.js b/node_modules/date-fns/locale/nl/cdn.js new file mode 100644 index 000000000..d4bf78616 --- /dev/null +++ b/node_modules/date-fns/locale/nl/cdn.js @@ -0,0 +1,541 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/nl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder dan een seconde", + other: "minder dan {{count}} seconden" + }, + xSeconds: { + one: "1 seconde", + other: "{{count}} seconden" + }, + halfAMinute: "een halve minuut", + lessThanXMinutes: { + one: "minder dan een minuut", + other: "minder dan {{count}} minuten" + }, + xMinutes: { + one: "een minuut", + other: "{{count}} minuten" + }, + aboutXHours: { + one: "ongeveer 1 uur", + other: "ongeveer {{count}} uur" + }, + xHours: { + one: "1 uur", + other: "{{count}} uur" + }, + xDays: { + one: "1 dag", + other: "{{count}} dagen" + }, + aboutXWeeks: { + one: "ongeveer 1 week", + other: "ongeveer {{count}} weken" + }, + xWeeks: { + one: "1 week", + other: "{{count}} weken" + }, + aboutXMonths: { + one: "ongeveer 1 maand", + other: "ongeveer {{count}} maanden" + }, + xMonths: { + one: "1 maand", + other: "{{count}} maanden" + }, + aboutXYears: { + one: "ongeveer 1 jaar", + other: "ongeveer {{count}} jaar" + }, + xYears: { + one: "1 jaar", + other: "{{count}} jaar" + }, + overXYears: { + one: "meer dan 1 jaar", + other: "meer dan {{count}} jaar" + }, + almostXYears: { + one: "bijna 1 jaar", + other: "bijna {{count}} jaar" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "over " + result;else + return result + " geleden"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "dd-MM-y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/nl/_lib/localize.js +var eraValues = { + narrow: ["v.C.", "n.C."], + abbreviated: ["v.Chr.", "n.Chr."], + wide: ["voor Christus", "na Christus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "K1", + "K2", + "K3", + "K4"], + + wide: [ + "1e kwartaal", + "2e kwartaal", + "3e kwartaal", + "4e kwartaal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mrt.", + "apr.", + "mei", + "jun.", + "jul.", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "maart", + "april", + "mei", + "juni", + "juli", + "augustus", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "Z", + "M", + "D", + "W", + "D", + "V", + "Z"], + + short: [ + "zo", + "ma", + "di", + "wo", + "do", + "vr", + "za"], + + abbreviated: [ + "zon", + "maa", + "din", + "woe", + "don", + "vri", + "zat"], + + wide: [ + "zondag", + "maandag", + "dinsdag", + "woensdag", + "donderdag", + "vrijdag", + "zaterdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "middernacht", + noon: "het middaguur", + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "e"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/nl.js +/** +* @category Locales +* @summary Dutch locale. +* @language Dutch +* @iso-639-2 nld +* @author Jorik Tangelder [@jtangelder](https://github.com/jtangelder) +* @author Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) +* @author Lode Vanhove [@bitcrumb](https://github.com/bitcrumb) +* @author Edo Rivai [@edorivai](https://github.com/edorivai) +* @author Niels Keurentjes [@curry684](https://github.com/curry684) +* @author Stefan Vermaas [@stefanvermaas](https://github.com/stefanvermaas) +*/ +var nl = { + code: "nl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)e?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^v/, /^n/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^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] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^z/i, + /^m/i, + /^d/i, + /^w/i, + /^d/i, + /^v/i, + /^z/i], + + any: [ + /^zo/i, + /^ma/i, + /^di/i, + /^wo/i, + /^do/i, + /^vr/i, + /^za/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nl/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + nl: nl }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/cdn.min.js b/node_modules/date-fns/locale/nl/cdn.min.js new file mode 100644 index 000000000..3b761451a --- /dev/null +++ b/node_modules/date-fns/locale/nl/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`over `+r:r+` geleden`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`dd-MM-y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'om' {{time}}`,long:`{{date}} 'om' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'afgelopen' eeee 'om' p`,yesterday:`'gisteren om' p`,today:`'vandaag om' p`,tomorrow:`'morgen om' p`,nextWeek:`eeee 'om' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`e`},era:f({values:{narrow:[`v.C.`,`n.C.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`voor Christus`,`na Christus`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`1e kwartaal`,`2e kwartaal`,`3e kwartaal`,`4e kwartaal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mrt.`,`apr.`,`mei`,`jun.`,`jul.`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`maart`,`april`,`mei`,`juni`,`juli`,`augustus`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:f({values:{narrow:[`Z`,`M`,`D`,`W`,`D`,`V`,`Z`],short:[`zo`,`ma`,`di`,`wo`,`do`,`vr`,`za`],abbreviated:[`zon`,`maa`,`din`,`woe`,`don`,`vri`,`zat`],wide:[`zondag`,`maandag`,`dinsdag`,`woensdag`,`donderdag`,`vrijdag`,`zaterdag`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},abbreviated:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`},wide:{am:`AM`,pm:`PM`,midnight:`middernacht`,noon:`het middaguur`,morning:`'s ochtends`,afternoon:`'s middags`,evening:`'s avonds`,night:`'s nachts`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`nl`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^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]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nl:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn.cjs b/node_modules/date-fns/locale/nn.cjs new file mode 100644 index 000000000..99e98ba67 --- /dev/null +++ b/node_modules/date-fns/locale/nn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.nn = void 0; +var _index = require("./nn/_lib/formatDistance.cjs"); +var _index2 = require("./nn/_lib/formatLong.cjs"); +var _index3 = require("./nn/_lib/formatRelative.cjs"); +var _index4 = require("./nn/_lib/localize.cjs"); +var _index5 = require("./nn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +const nn = (exports.nn = { + code: "nn", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/nn.d.cts b/node_modules/date-fns/locale/nn.d.cts new file mode 100644 index 000000000..c4447d999 --- /dev/null +++ b/node_modules/date-fns/locale/nn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export declare const nn: Locale; diff --git a/node_modules/date-fns/locale/nn.d.ts b/node_modules/date-fns/locale/nn.d.ts new file mode 100644 index 000000000..c4447d999 --- /dev/null +++ b/node_modules/date-fns/locale/nn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export declare const nn: Locale; diff --git a/node_modules/date-fns/locale/nn.js b/node_modules/date-fns/locale/nn.js new file mode 100644 index 000000000..ce3f7bc15 --- /dev/null +++ b/node_modules/date-fns/locale/nn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./nn/_lib/formatDistance.js"; +import { formatLong } from "./nn/_lib/formatLong.js"; +import { formatRelative } from "./nn/_lib/formatRelative.js"; +import { localize } from "./nn/_lib/localize.js"; +import { match } from "./nn/_lib/match.js"; + +/** + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) + */ +export const nn = { + code: "nn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default nn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs new file mode 100644 index 000000000..44e33c189 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.cjs @@ -0,0 +1,124 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund", + }, + + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund", + }, + + halfAMinute: "eit halvt minutt", + + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt", + }, + + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt", + }, + + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar", + }, + + xHours: { + one: "ein time", + other: "{{count}} timar", + }, + + xDays: { + one: "ein dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker", + }, + + xWeeks: { + one: "ei veke", + other: "{{count}} veker", + }, + + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader", + }, + + xMonths: { + one: "ein månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "eitt år", + other: "{{count}} år", + }, + + overXYears: { + one: "over eitt år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år", + }, +}; + +const wordMapping = [ + "null", + "ein", + "to", + "tre", + "fire", + "fem", + "seks", + "sju", + "åtte", + "ni", + "ti", + "elleve", + "tolv", +]; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + count < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sidan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance.js b/node_modules/date-fns/locale/nn/_lib/formatDistance.js new file mode 100644 index 000000000..74883ee9f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance.js @@ -0,0 +1,120 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund", + }, + + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund", + }, + + halfAMinute: "eit halvt minutt", + + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt", + }, + + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt", + }, + + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar", + }, + + xHours: { + one: "ein time", + other: "{{count}} timar", + }, + + xDays: { + one: "ein dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker", + }, + + xWeeks: { + one: "ei veke", + other: "{{count}} veker", + }, + + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader", + }, + + xMonths: { + one: "ein månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år", + }, + + xYears: { + one: "eitt år", + other: "{{count}} år", + }, + + overXYears: { + one: "over eitt år", + other: "over {{count}} år", + }, + + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år", + }, +}; + +const wordMapping = [ + "null", + "ein", + "to", + "tre", + "fire", + "fem", + "seks", + "sju", + "åtte", + "ni", + "ti", + "elleve", + "tolv", +]; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + count < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sidan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.cjs b/node_modules/date-fns/locale/nn/_lib/formatLong.cjs new file mode 100644 index 000000000..e0de253bd --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/nn/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/nn/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong.js b/node_modules/date-fns/locale/nn/_lib/formatLong.js new file mode 100644 index 000000000..fb4ed8b77 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/nn/_lib/formatRelative.cjs new file mode 100644 index 000000000..21cd23354 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative.js b/node_modules/date-fns/locale/nn/_lib/formatRelative.js new file mode 100644 index 000000000..e66834ee5 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/nn/_lib/localize.cjs b/node_modules/date-fns/locale/nn/_lib/localize.cjs new file mode 100644 index 000000000..8aa0e2f19 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["su", "må", "ty", "on", "to", "fr", "lau"], + abbreviated: ["sun", "mån", "tys", "ons", "tor", "fre", "laur"], + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/nn/_lib/localize.d.cts b/node_modules/date-fns/locale/nn/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nn/_lib/localize.d.ts b/node_modules/date-fns/locale/nn/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/nn/_lib/localize.js b/node_modules/date-fns/locale/nn/_lib/localize.js new file mode 100644 index 000000000..a276dfaac --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des.", + ], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["su", "må", "ty", "on", "to", "fr", "lau"], + abbreviated: ["sun", "mån", "tys", "ons", "tor", "fre", "laur"], + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/nn/_lib/match.cjs b/node_modules/date-fns/locale/nn/_lib/match.cjs new file mode 100644 index 000000000..7855cc72b --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/nn/_lib/match.d.cts b/node_modules/date-fns/locale/nn/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nn/_lib/match.d.ts b/node_modules/date-fns/locale/nn/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/nn/_lib/match.js b/node_modules/date-fns/locale/nn/_lib/match.js new file mode 100644 index 000000000..c670d4f8c --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^e/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/nn/cdn.js b/node_modules/date-fns/locale/nn/cdn.js new file mode 100644 index 000000000..0d14c03e3 --- /dev/null +++ b/node_modules/date-fns/locale/nn/cdn.js @@ -0,0 +1,543 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/nn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre enn eitt sekund", + other: "mindre enn {{count}} sekund" + }, + xSeconds: { + one: "eitt sekund", + other: "{{count}} sekund" + }, + halfAMinute: "eit halvt minutt", + lessThanXMinutes: { + one: "mindre enn eitt minutt", + other: "mindre enn {{count}} minutt" + }, + xMinutes: { + one: "eitt minutt", + other: "{{count}} minutt" + }, + aboutXHours: { + one: "omtrent ein time", + other: "omtrent {{count}} timar" + }, + xHours: { + one: "ein time", + other: "{{count}} timar" + }, + xDays: { + one: "ein dag", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "omtrent ei veke", + other: "omtrent {{count}} veker" + }, + xWeeks: { + one: "ei veke", + other: "{{count}} veker" + }, + aboutXMonths: { + one: "omtrent ein månad", + other: "omtrent {{count}} månader" + }, + xMonths: { + one: "ein månad", + other: "{{count}} månader" + }, + aboutXYears: { + one: "omtrent eitt år", + other: "omtrent {{count}} år" + }, + xYears: { + one: "eitt år", + other: "{{count}} år" + }, + overXYears: { + one: "over eitt år", + other: "over {{count}} år" + }, + almostXYears: { + one: "nesten eitt år", + other: "nesten {{count}} år" + } +}; +var wordMapping = [ +"null", +"ein", +"to", +"tre", +"fire", +"fem", +"seks", +"sju", +"åtte", +"ni", +"ti", +"elleve", +"tolv"]; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count < 13 ? wordMapping[count] : String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " sidan"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/nn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/nn/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["før Kristus", "etter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "mai", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "des."], + + wide: [ + "januar", + "februar", + "mars", + "april", + "mai", + "juni", + "juli", + "august", + "september", + "oktober", + "november", + "desember"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "su", + "må", + "ty", + "on", + "to", + "fr", + "lau"], + + abbreviated: [ + "sun", + "mån", + "tys", + "ons", + "tor", + "fre", + "laur"], + + wide: [ + "sundag", + "måndag", + "tysdag", + "onsdag", + "torsdag", + "fredag", + "laurdag"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på etterm.", + evening: "på kvelden", + night: "på natta" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på ettermiddagen", + evening: "på kvelden", + night: "på natta" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/nn.js +/** +* @category Locales +* @summary Norwegian Nynorsk locale. +* @language Norwegian Nynorsk +* @iso-639-2 nno +* @author Mats Byrkjeland [@draperunner](https://github.com/draperunner) +*/ +var nn = { + code: "nn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^e/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^aug/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ty/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/nn/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + nn: nn }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/cdn.min.js b/node_modules/date-fns/locale/nn/cdn.min.js new file mode 100644 index 000000000..52f3f8365 --- /dev/null +++ b/node_modules/date-fns/locale/nn/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`om `+r:r+` sidan`:r};function l(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var u={date:l({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:l({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'førre' eeee 'kl.' p`,yesterday:`'i går kl.' p`,today:`'i dag kl.' p`,tomorrow:`'i morgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},f=function(e,t,n,r){return d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return Number(e)+`.`},era:p({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`før Kristus`,`etter Kristus`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`mai`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`des.`],wide:[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`]},defaultWidth:`wide`}),day:p({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`su`,`må`,`ty`,`on`,`to`,`fr`,`lau`],abbreviated:[`sun`,`mån`,`tys`,`ons`,`tor`,`fre`,`laur`],wide:[`sundag`,`måndag`,`tysdag`,`onsdag`,`torsdag`,`fredag`,`laurdag`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`a`,pm:`p`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på etterm.`,evening:`på kvelden`,night:`på natta`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på ettermiddagen`,evening:`på kvelden`,night:`på natta`}},defaultWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`nn`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{nn:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc.cjs b/node_modules/date-fns/locale/oc.cjs new file mode 100644 index 000000000..6d1bbca19 --- /dev/null +++ b/node_modules/date-fns/locale/oc.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.oc = void 0; +var _index = require("./oc/_lib/formatDistance.cjs"); +var _index2 = require("./oc/_lib/formatLong.cjs"); +var _index3 = require("./oc/_lib/formatRelative.cjs"); +var _index4 = require("./oc/_lib/localize.cjs"); +var _index5 = require("./oc/_lib/match.cjs"); + +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +const oc = (exports.oc = { + code: "oc", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/oc.d.cts b/node_modules/date-fns/locale/oc.d.cts new file mode 100644 index 000000000..46a1acdce --- /dev/null +++ b/node_modules/date-fns/locale/oc.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export declare const oc: Locale; diff --git a/node_modules/date-fns/locale/oc.d.ts b/node_modules/date-fns/locale/oc.d.ts new file mode 100644 index 000000000..46a1acdce --- /dev/null +++ b/node_modules/date-fns/locale/oc.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export declare const oc: Locale; diff --git a/node_modules/date-fns/locale/oc.js b/node_modules/date-fns/locale/oc.js new file mode 100644 index 000000000..ea80b5f79 --- /dev/null +++ b/node_modules/date-fns/locale/oc.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./oc/_lib/formatDistance.js"; +import { formatLong } from "./oc/_lib/formatLong.js"; +import { formatRelative } from "./oc/_lib/formatRelative.js"; +import { localize } from "./oc/_lib/localize.js"; +import { match } from "./oc/_lib/match.js"; + +/** + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +export const oc = { + code: "oc", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default oc; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs b/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs new file mode 100644 index 000000000..2e46bc772 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas", + }, + + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas", + }, + + halfAMinute: "30 segondas", + + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas", + }, + + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas", + }, + + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras", + }, + + xHours: { + one: "1 ora", + other: "{{count}} oras", + }, + + xDays: { + one: "1 jorn", + other: "{{count}} jorns", + }, + + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas", + }, + + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans", + }, + + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "d’aquí " + result; + } else { + return "fa " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance.js b/node_modules/date-fns/locale/oc/_lib/formatDistance.js new file mode 100644 index 000000000..871d4edc7 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas", + }, + + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas", + }, + + halfAMinute: "30 segondas", + + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas", + }, + + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas", + }, + + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras", + }, + + xHours: { + one: "1 ora", + other: "{{count}} oras", + }, + + xDays: { + one: "1 jorn", + other: "{{count}} jorns", + }, + + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas", + }, + + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas", + }, + + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses", + }, + + xMonths: { + one: "1 mes", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans", + }, + + xYears: { + one: "1 an", + other: "{{count}} ans", + }, + + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans", + }, + + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "d’aquí " + result; + } else { + return "fa " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.cjs b/node_modules/date-fns/locale/oc/_lib/formatLong.cjs new file mode 100644 index 000000000..f80c0f9c4 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.d.cts b/node_modules/date-fns/locale/oc/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.d.ts b/node_modules/date-fns/locale/oc/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong.js b/node_modules/date-fns/locale/oc/_lib/formatLong.js new file mode 100644 index 000000000..8f38c403f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.cjs b/node_modules/date-fns/locale/oc/_lib/formatRelative.cjs new file mode 100644 index 000000000..c1c5f21d1 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative.js b/node_modules/date-fns/locale/oc/_lib/formatRelative.js new file mode 100644 index 000000000..948b4cbf1 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/oc/_lib/localize.cjs b/node_modules/date-fns/locale/oc/_lib/localize.cjs new file mode 100644 index 000000000..5c9e31e3f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.cjs @@ -0,0 +1,205 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1èr trim.", "2nd trim.", "3en trim.", "4en trim."], + wide: ["1èr trimèstre", "2nd trimèstre", "3en trimèstre", "4en trimèstre"], +}; + +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC", + ], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec.", + ], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre", + ], +}; + +const dayValues = { + narrow: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let ordinal; + + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default: + ordinal = "en"; + } + + // feminine for year, week, hour, minute, second + if ( + unit === "year" || + unit === "week" || + unit === "hour" || + unit === "minute" || + unit === "second" + ) { + ordinal += "a"; + } + + return number + ordinal; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/oc/_lib/localize.d.cts b/node_modules/date-fns/locale/oc/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/oc/_lib/localize.d.ts b/node_modules/date-fns/locale/oc/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/oc/_lib/localize.js b/node_modules/date-fns/locale/oc/_lib/localize.js new file mode 100644 index 000000000..6a43dc945 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize.js @@ -0,0 +1,203 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"], +}; + +const quarterValues = { + narrow: ["T1", "T2", "T3", "T4"], + abbreviated: ["1èr trim.", "2nd trim.", "3en trim.", "4en trim."], + wide: ["1èr trimèstre", "2nd trimèstre", "3en trimèstre", "4en trimèstre"], +}; + +const monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC", + ], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec.", + ], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre", + ], +}; + +const dayValues = { + narrow: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + short: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + abbreviated: ["dg.", "dl.", "dm.", "dc.", "dj.", "dv.", "ds."], + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + let ordinal; + + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default: + ordinal = "en"; + } + + // feminine for year, week, hour, minute, second + if ( + unit === "year" || + unit === "week" || + unit === "hour" || + unit === "minute" || + unit === "second" + ) { + ordinal += "a"; + } + + return number + ordinal; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/oc/_lib/match.cjs b/node_modules/date-fns/locale/oc/_lib/match.cjs new file mode 100644 index 000000000..19b2f0da2 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.cjs @@ -0,0 +1,130 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i, +}; +const parseEraPatterns = { + any: [/^ab/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i, +}; +const parseMonthPatterns = { + any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/oc/_lib/match.d.cts b/node_modules/date-fns/locale/oc/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/oc/_lib/match.d.ts b/node_modules/date-fns/locale/oc/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/oc/_lib/match.js b/node_modules/date-fns/locale/oc/_lib/match.js new file mode 100644 index 000000000..bc9fc3e32 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match.js @@ -0,0 +1,127 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i, +}; +const parseEraPatterns = { + any: [/^ab/i, /^ap/i], +}; + +const matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i, +}; +const parseMonthPatterns = { + any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i, +}; +const parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i, + ], +}; + +const matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/oc/cdn.js b/node_modules/date-fns/locale/oc/cdn.js new file mode 100644 index 000000000..922b4344e --- /dev/null +++ b/node_modules/date-fns/locale/oc/cdn.js @@ -0,0 +1,585 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/oc/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mens d’una segonda", + other: "mens de {{count}} segondas" + }, + xSeconds: { + one: "1 segonda", + other: "{{count}} segondas" + }, + halfAMinute: "30 segondas", + lessThanXMinutes: { + one: "mens d’una minuta", + other: "mens de {{count}} minutas" + }, + xMinutes: { + one: "1 minuta", + other: "{{count}} minutas" + }, + aboutXHours: { + one: "environ 1 ora", + other: "environ {{count}} oras" + }, + xHours: { + one: "1 ora", + other: "{{count}} oras" + }, + xDays: { + one: "1 jorn", + other: "{{count}} jorns" + }, + aboutXWeeks: { + one: "environ 1 setmana", + other: "environ {{count}} setmanas" + }, + xWeeks: { + one: "1 setmana", + other: "{{count}} setmanas" + }, + aboutXMonths: { + one: "environ 1 mes", + other: "environ {{count}} meses" + }, + xMonths: { + one: "1 mes", + other: "{{count}} meses" + }, + aboutXYears: { + one: "environ 1 an", + other: "environ {{count}} ans" + }, + xYears: { + one: "1 an", + other: "{{count}} ans" + }, + overXYears: { + one: "mai d’un an", + other: "mai de {{count}} ans" + }, + almostXYears: { + one: "gaireben un an", + other: "gaireben {{count}} ans" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "d’aquí " + result;else + return "fa " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: "d MMM y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/oc/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/oc/_lib/localize.js +var eraValues = { + narrow: ["ab. J.C.", "apr. J.C."], + abbreviated: ["ab. J.C.", "apr. J.C."], + wide: ["abans Jèsus-Crist", "après Jèsus-Crist"] +}; +var quarterValues = { + narrow: [ + "T1", + "T2", + "T3", + "T4"], + + abbreviated: [ + "1èr trim.", + "2nd trim.", + "3en trim.", + "4en trim."], + + wide: [ + "1èr trimèstre", + "2nd trimèstre", + "3en trimèstre", + "4en trimèstre"] + +}; +var monthValues = { + narrow: [ + "GN", + "FB", + "MÇ", + "AB", + "MA", + "JN", + "JL", + "AG", + "ST", + "OC", + "NV", + "DC"], + + abbreviated: [ + "gen.", + "febr.", + "març", + "abr.", + "mai", + "junh", + "jul.", + "ag.", + "set.", + "oct.", + "nov.", + "dec."], + + wide: [ + "genièr", + "febrièr", + "març", + "abril", + "mai", + "junh", + "julhet", + "agost", + "setembre", + "octòbre", + "novembre", + "decembre"] + +}; +var dayValues = { + narrow: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + short: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + abbreviated: [ + "dg.", + "dl.", + "dm.", + "dc.", + "dj.", + "dv.", + "ds."], + + wide: [ + "dimenge", + "diluns", + "dimars", + "dimècres", + "dijòus", + "divendres", + "dissabte"] + +}; +var dayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "matin", + afternoon: "aprèp-miègjorn", + evening: "vèspre", + night: "nuèch" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "am", + pm: "pm", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + }, + wide: { + am: "ante meridiem", + pm: "post meridiem", + midnight: "mièjanuèch", + noon: "miègjorn", + morning: "del matin", + afternoon: "de l’aprèp-miègjorn", + evening: "del ser", + night: "de la nuèch" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var ordinal; + switch (number) { + case 1: + ordinal = "èr"; + break; + case 2: + ordinal = "nd"; + break; + default:ordinal = "en"; + } + if (unit === "year" || unit === "week" || unit === "hour" || unit === "minute" || unit === "second") ordinal += "a"; + return number + ordinal; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/oc.js +/** +* @category Locales +* @summary Occitan locale. +* @language Occitan +* @iso-639-2 oci +* @author Quentin PAGÈS +*/ +var oc = { + code: "oc", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(èr|nd|en)?[a]?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^ab/i, /^ap/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^g/i, + /^f/i, + /^ma[r?]|MÇ/i, + /^ab/i, + /^ma[i?]/i, + /^ju[n?]|JN/i, + /^ju[l?]|JL/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + short: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + abbreviated: [ + /^dg/i, + /^dl/i, + /^dm/i, + /^dc/i, + /^dj/i, + /^dv/i, + /^ds/i], + + any: [ + /^dg|dime/i, + /^dl|dil/i, + /^dm|dima/i, + /^dc|dimè/i, + /^dj|dij/i, + /^dv|div/i, + /^ds|dis/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/oc/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + oc: oc }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/cdn.min.js b/node_modules/date-fns/locale/oc/cdn.min.js new file mode 100644 index 000000000..61ef2f95c --- /dev/null +++ b/node_modules/date-fns/locale/oc/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`d’aquí `+r:`fa `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE d 'de' MMMM y`,long:`d 'de' MMMM y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'a' {{time}}`,long:`{{date}} 'a' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'passat a' p`,yesterday:`'ièr a' p`,today:`'uèi a' p`,tomorrow:`'deman a' p`,nextWeek:`eeee 'a' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e),r=t?.unit,i;switch(n){case 1:i=`èr`;break;case 2:i=`nd`;break;default:i=`en`}return(r===`year`||r===`week`||r===`hour`||r===`minute`||r===`second`)&&(i+=`a`),n+i},era:f({values:{narrow:[`ab. J.C.`,`apr. J.C.`],abbreviated:[`ab. J.C.`,`apr. J.C.`],wide:[`abans Jèsus-Crist`,`après Jèsus-Crist`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`T1`,`T2`,`T3`,`T4`],abbreviated:[`1èr trim.`,`2nd trim.`,`3en trim.`,`4en trim.`],wide:[`1èr trimèstre`,`2nd trimèstre`,`3en trimèstre`,`4en trimèstre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`GN`,`FB`,`MÇ`,`AB`,`MA`,`JN`,`JL`,`AG`,`ST`,`OC`,`NV`,`DC`],abbreviated:[`gen.`,`febr.`,`març`,`abr.`,`mai`,`junh`,`jul.`,`ag.`,`set.`,`oct.`,`nov.`,`dec.`],wide:[`genièr`,`febrièr`,`març`,`abril`,`mai`,`junh`,`julhet`,`agost`,`setembre`,`octòbre`,`novembre`,`decembre`]},defaultWidth:`wide`}),day:f({values:{narrow:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],short:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],abbreviated:[`dg.`,`dl.`,`dm.`,`dc.`,`dj.`,`dv.`,`ds.`],wide:[`dimenge`,`diluns`,`dimars`,`dimècres`,`dijòus`,`divendres`,`dissabte`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`matin`,afternoon:`aprèp-miègjorn`,evening:`vèspre`,night:`nuèch`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},abbreviated:{am:`AM`,pm:`PM`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`},wide:{am:`ante meridiem`,pm:`post meridiem`,midnight:`mièjanuèch`,noon:`miègjorn`,morning:`del matin`,afternoon:`de l’aprèp-miègjorn`,evening:`del ser`,night:`de la nuèch`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`oc`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{oc:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl.cjs b/node_modules/date-fns/locale/pl.cjs new file mode 100644 index 000000000..e570cd801 --- /dev/null +++ b/node_modules/date-fns/locale/pl.cjs @@ -0,0 +1,30 @@ +"use strict"; +exports.pl = void 0; +var _index = require("./pl/_lib/formatDistance.cjs"); +var _index2 = require("./pl/_lib/formatLong.cjs"); +var _index3 = require("./pl/_lib/formatRelative.cjs"); +var _index4 = require("./pl/_lib/localize.cjs"); +var _index5 = require("./pl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +const pl = (exports.pl = { + code: "pl", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/pl.d.cts b/node_modules/date-fns/locale/pl.d.cts new file mode 100644 index 000000000..0e5c23a3e --- /dev/null +++ b/node_modules/date-fns/locale/pl.d.cts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export declare const pl: Locale; diff --git a/node_modules/date-fns/locale/pl.d.ts b/node_modules/date-fns/locale/pl.d.ts new file mode 100644 index 000000000..0e5c23a3e --- /dev/null +++ b/node_modules/date-fns/locale/pl.d.ts @@ -0,0 +1,12 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export declare const pl: Locale; diff --git a/node_modules/date-fns/locale/pl.js b/node_modules/date-fns/locale/pl.js new file mode 100644 index 000000000..606432754 --- /dev/null +++ b/node_modules/date-fns/locale/pl.js @@ -0,0 +1,31 @@ +import { formatDistance } from "./pl/_lib/formatDistance.js"; +import { formatLong } from "./pl/_lib/formatLong.js"; +import { formatRelative } from "./pl/_lib/formatRelative.js"; +import { localize } from "./pl/_lib/localize.js"; +import { match } from "./pl/_lib/match.js"; + +/** + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) + * @author Just RAG [@justrag](https://github.com/justrag) + * @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) + * @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) + */ +export const pl = { + code: "pl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default pl; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs new file mode 100644 index 000000000..250292646 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.cjs @@ -0,0 +1,170 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę", + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund", + }, + + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę", + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund", + }, + + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty", + }, + + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę", + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut", + }, + + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę", + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut", + }, + + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę", + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin", + }, + + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę", + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin", + }, + + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień", + }, + twoFour: "{{count}} dni", + other: "{{count}} dni", + }, + + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni", + }, + + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni", + }, + + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy", + }, + + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy", + }, + + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat", + }, + + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat", + }, + + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat", + }, + + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat", + }, +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + const rem100 = count % 100; + + // ends with 11-20 + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + const rem10 = rem100 % 10; + + // ends with 2, 3, 4 + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = typeof group === "string" ? group : group[time]; + return finalText.replace("{{count}}", String(count)); +} + +const formatDistance = (token, count, options) => { + const scheme = formatDistanceLocale[token]; + if (!options?.addSuffix) { + return declension(scheme, count, "regular"); + } + + if (options.comparison && options.comparison > 0) { + return "za " + declension(scheme, count, "future"); + } else { + return declension(scheme, count, "past") + " temu"; + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance.js b/node_modules/date-fns/locale/pl/_lib/formatDistance.js new file mode 100644 index 000000000..7011d13ac --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance.js @@ -0,0 +1,166 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę", + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund", + }, + + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę", + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund", + }, + + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty", + }, + + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę", + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut", + }, + + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę", + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut", + }, + + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę", + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin", + }, + + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę", + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin", + }, + + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień", + }, + twoFour: "{{count}} dni", + other: "{{count}} dni", + }, + + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni", + }, + + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni", + }, + + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy", + }, + + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy", + }, + + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat", + }, + + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat", + }, + + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat", + }, + + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat", + }, +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + const rem100 = count % 100; + + // ends with 11-20 + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + const rem10 = rem100 % 10; + + // ends with 2, 3, 4 + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = typeof group === "string" ? group : group[time]; + return finalText.replace("{{count}}", String(count)); +} + +export const formatDistance = (token, count, options) => { + const scheme = formatDistanceLocale[token]; + if (!options?.addSuffix) { + return declension(scheme, count, "regular"); + } + + if (options.comparison && options.comparison > 0) { + return "za " + declension(scheme, count, "future"); + } else { + return declension(scheme, count, "past") + " temu"; + } +}; diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.cjs b/node_modules/date-fns/locale/pl/_lib/formatLong.cjs new file mode 100644 index 000000000..93aab665d --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pl/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pl/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong.js b/node_modules/date-fns/locale/pl/_lib/formatLong.js new file mode 100644 index 000000000..78403a92e --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pl/_lib/formatRelative.cjs new file mode 100644 index 000000000..339629c7c --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.cjs @@ -0,0 +1,68 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia", +}; + +const adjectivesThisWeek = { + masculine: "ten", + feminine: "ta", +}; + +const adjectivesNextWeek = { + masculine: "następny", + feminine: "następna", +}; + +const dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine", +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + let adjectives; + if ((0, _index.isSameWeek)(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === "lastWeek") { + adjectives = adjectivesLastWeek; + } else if (token === "nextWeek") { + adjectives = adjectivesNextWeek; + } else { + throw new Error(`Cannot determine adjectives for token ${token}`); + } + + const day = date.getDay(); + const grammaticalGender = dayGrammaticalGender[day]; + + const adjective = adjectives[grammaticalGender]; + + return `'${adjective}' eeee 'o' p`; +} + +const formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(token, date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative.js b/node_modules/date-fns/locale/pl/_lib/formatRelative.js new file mode 100644 index 000000000..d5f1f917f --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative.js @@ -0,0 +1,65 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia", +}; + +const adjectivesThisWeek = { + masculine: "ten", + feminine: "ta", +}; + +const adjectivesNextWeek = { + masculine: "następny", + feminine: "następna", +}; + +const dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine", +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + let adjectives; + if (isSameWeek(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === "lastWeek") { + adjectives = adjectivesLastWeek; + } else if (token === "nextWeek") { + adjectives = adjectivesNextWeek; + } else { + throw new Error(`Cannot determine adjectives for token ${token}`); + } + + const day = date.getDay(); + const grammaticalGender = dayGrammaticalGender[day]; + + const adjective = adjectives[grammaticalGender]; + + return `'${adjective}' eeee 'o' p`; +} + +const formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(token, date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/pl/_lib/localize.cjs b/node_modules/date-fns/locale/pl/_lib/localize.cjs new file mode 100644 index 000000000..81896cb78 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.cjs @@ -0,0 +1,215 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I kw.", "II kw.", "III kw.", "IV kw."], + wide: ["I kwartał", "II kwartał", "III kwartał", "IV kwartał"], +}; + +const monthValues = { + narrow: ["S", "L", "M", "K", "M", "C", "L", "S", "W", "P", "L", "G"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień", + ], +}; +const monthFormattingValues = { + narrow: ["s", "l", "m", "k", "m", "c", "l", "s", "w", "p", "l", "g"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia", + ], +}; + +const dayValues = { + narrow: ["N", "P", "W", "Ś", "C", "P", "S"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; +const dayFormattingValues = { + narrow: ["n", "p", "w", "ś", "c", "p", "s"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, +}; + +const dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/pl/_lib/localize.d.cts b/node_modules/date-fns/locale/pl/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pl/_lib/localize.d.ts b/node_modules/date-fns/locale/pl/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pl/_lib/localize.js b/node_modules/date-fns/locale/pl/_lib/localize.js new file mode 100644 index 000000000..4c5409016 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize.js @@ -0,0 +1,213 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["I kw.", "II kw.", "III kw.", "IV kw."], + wide: ["I kwartał", "II kwartał", "III kwartał", "IV kwartał"], +}; + +const monthValues = { + narrow: ["S", "L", "M", "K", "M", "C", "L", "S", "W", "P", "L", "G"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień", + ], +}; +const monthFormattingValues = { + narrow: ["s", "l", "m", "k", "m", "c", "l", "s", "w", "p", "l", "g"], + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru", + ], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia", + ], +}; + +const dayValues = { + narrow: ["N", "P", "W", "Ś", "C", "P", "S"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; +const dayFormattingValues = { + narrow: ["n", "p", "w", "ś", "c", "p", "s"], + short: ["nie", "pon", "wto", "śro", "czw", "pią", "sob"], + abbreviated: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."], + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc", + }, +}; + +const dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/pl/_lib/match.cjs b/node_modules/date-fns/locale/pl/_lib/match.cjs new file mode 100644 index 000000000..7296bcbd6 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/match.cjs @@ -0,0 +1,149 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i], +}; + +const matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i, + ], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/pl/_lib/match.d.cts b/node_modules/date-fns/locale/pl/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pl/_lib/match.d.ts b/node_modules/date-fns/locale/pl/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pl/_lib/match.js b/node_modules/date-fns/locale/pl/_lib/match.js new file mode 100644 index 000000000..58eed33c9 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/match.js @@ -0,0 +1,146 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i, +}; +const parseEraPatterns = { + any: [/^p/i, /^n/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i], +}; + +const matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i, + ], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/pl/cdn.js b/node_modules/date-fns/locale/pl/cdn.js new file mode 100644 index 000000000..051074666 --- /dev/null +++ b/node_modules/date-fns/locale/pl/cdn.js @@ -0,0 +1,974 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/pl/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: "mniej niż sekunda", + past: "mniej niż sekundę", + future: "mniej niż sekundę" + }, + twoFour: "mniej niż {{count}} sekundy", + other: "mniej niż {{count}} sekund" + }, + xSeconds: { + one: { + regular: "sekunda", + past: "sekundę", + future: "sekundę" + }, + twoFour: "{{count}} sekundy", + other: "{{count}} sekund" + }, + halfAMinute: { + one: "pół minuty", + twoFour: "pół minuty", + other: "pół minuty" + }, + lessThanXMinutes: { + one: { + regular: "mniej niż minuta", + past: "mniej niż minutę", + future: "mniej niż minutę" + }, + twoFour: "mniej niż {{count}} minuty", + other: "mniej niż {{count}} minut" + }, + xMinutes: { + one: { + regular: "minuta", + past: "minutę", + future: "minutę" + }, + twoFour: "{{count}} minuty", + other: "{{count}} minut" + }, + aboutXHours: { + one: { + regular: "około godziny", + past: "około godziny", + future: "około godzinę" + }, + twoFour: "około {{count}} godziny", + other: "około {{count}} godzin" + }, + xHours: { + one: { + regular: "godzina", + past: "godzinę", + future: "godzinę" + }, + twoFour: "{{count}} godziny", + other: "{{count}} godzin" + }, + xDays: { + one: { + regular: "dzień", + past: "dzień", + future: "1 dzień" + }, + twoFour: "{{count}} dni", + other: "{{count}} dni" + }, + aboutXWeeks: { + one: "około tygodnia", + twoFour: "około {{count}} tygodni", + other: "około {{count}} tygodni" + }, + xWeeks: { + one: "tydzień", + twoFour: "{{count}} tygodnie", + other: "{{count}} tygodni" + }, + aboutXMonths: { + one: "około miesiąc", + twoFour: "około {{count}} miesiące", + other: "około {{count}} miesięcy" + }, + xMonths: { + one: "miesiąc", + twoFour: "{{count}} miesiące", + other: "{{count}} miesięcy" + }, + aboutXYears: { + one: "około rok", + twoFour: "około {{count}} lata", + other: "około {{count}} lat" + }, + xYears: { + one: "rok", + twoFour: "{{count}} lata", + other: "{{count}} lat" + }, + overXYears: { + one: "ponad rok", + twoFour: "ponad {{count}} lata", + other: "ponad {{count}} lat" + }, + almostXYears: { + one: "prawie rok", + twoFour: "prawie {{count}} lata", + other: "prawie {{count}} lat" + } +}; +function declensionGroup(scheme, count) { + if (count === 1) return scheme.one; + var rem100 = count % 100; + if (rem100 <= 20 && rem100 > 10) return scheme.other; + var rem10 = rem100 % 10; + if (rem10 >= 2 && rem10 <= 4) return scheme.twoFour; + return scheme.other; +} +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + return (typeof group === "string" ? group : group[time]).replace("{{count}}", String(count)); +} +var formatDistance = function formatDistance(token, count, options) { + var scheme = formatDistanceLocale[token]; + if (!(options !== null && options !== void 0 && options.addSuffix)) return declension(scheme, count, "regular"); + if (options.comparison && options.comparison > 0) return "za " + declension(scheme, count, "future");else + return declension(scheme, count, "past") + " temu"; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, do MMMM y", + long: "do MMMM y", + medium: "do MMM y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/pl/_lib/formatRelative.js +var adjectivesLastWeek = { + masculine: "ostatni", + feminine: "ostatnia" +}; +var adjectivesThisWeek = { + masculine: "ten", + feminine: "ta" +}; +var adjectivesNextWeek = { + masculine: "następny", + feminine: "następna" +}; +var dayGrammaticalGender = { + 0: "feminine", + 1: "masculine", + 2: "masculine", + 3: "feminine", + 4: "masculine", + 5: "masculine", + 6: "feminine" +}; +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjectives; + if (isSameWeek(date, baseDate, options)) adjectives = adjectivesThisWeek;else + if (token === "lastWeek") adjectives = adjectivesLastWeek;else + if (token === "nextWeek") adjectives = adjectivesNextWeek;else + throw new Error("Cannot determine adjectives for token ".concat(token)); + var grammaticalGender = dayGrammaticalGender[date.getDay()]; + return "'".concat(adjectives[grammaticalGender], "' eeee 'o' p"); +} +var formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(token, date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/pl/_lib/localize.js +var eraValues = { + narrow: ["p.n.e.", "n.e."], + abbreviated: ["p.n.e.", "n.e."], + wide: ["przed naszą erą", "naszej ery"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "I kw.", + "II kw.", + "III kw.", + "IV kw."], + + wide: [ + "I kwartał", + "II kwartał", + "III kwartał", + "IV kwartał"] + +}; +var monthValues = { + narrow: [ + "S", + "L", + "M", + "K", + "M", + "C", + "L", + "S", + "W", + "P", + "L", + "G"], + + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru"], + + wide: [ + "styczeń", + "luty", + "marzec", + "kwiecień", + "maj", + "czerwiec", + "lipiec", + "sierpień", + "wrzesień", + "październik", + "listopad", + "grudzień"] + +}; +var monthFormattingValues = { + narrow: [ + "s", + "l", + "m", + "k", + "m", + "c", + "l", + "s", + "w", + "p", + "l", + "g"], + + abbreviated: [ + "sty", + "lut", + "mar", + "kwi", + "maj", + "cze", + "lip", + "sie", + "wrz", + "paź", + "lis", + "gru"], + + wide: [ + "stycznia", + "lutego", + "marca", + "kwietnia", + "maja", + "czerwca", + "lipca", + "sierpnia", + "września", + "października", + "listopada", + "grudnia"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "W", + "Ś", + "C", + "P", + "S"], + + short: [ + "nie", + "pon", + "wto", + "śro", + "czw", + "pią", + "sob"], + + abbreviated: [ + "niedz.", + "pon.", + "wt.", + "śr.", + "czw.", + "pt.", + "sob."], + + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota"] + +}; +var dayFormattingValues = { + narrow: [ + "n", + "p", + "w", + "ś", + "c", + "p", + "s"], + + short: [ + "nie", + "pon", + "wto", + "śro", + "czw", + "pią", + "sob"], + + abbreviated: [ + "niedz.", + "pon.", + "wt.", + "śr.", + "czw.", + "pt.", + "sob."], + + wide: [ + "niedziela", + "poniedziałek", + "wtorek", + "środa", + "czwartek", + "piątek", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "półn.", + noon: "poł", + morning: "rano", + afternoon: "popoł.", + evening: "wiecz.", + night: "noc" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "północ", + noon: "południe", + morning: "rano", + afternoon: "popołudnie", + evening: "wieczór", + night: "noc" + } +}; +var dayPeriodFormattingValues = { + narrow: { + am: "a", + pm: "p", + midnight: "o półn.", + noon: "w poł.", + morning: "rano", + afternoon: "po poł.", + evening: "wiecz.", + night: "w nocy" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o północy", + noon: "w południe", + morning: "rano", + afternoon: "po południu", + evening: "wieczorem", + night: "w nocy" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: monthFormattingValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + formattingValues: dayFormattingValues, + defaultFormattingWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/pl.js +/** +* @category Locales +* @summary Polish locale. +* @language Polish +* @iso-639-2 pol +* @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks) +* @author Just RAG [@justrag](https://github.com/justrag) +* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb) +* @author Mateusz Tokarski [@mutisz](https://github.com/mutisz) +*/ +var pl = { + code: "pl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^p/i, /^n/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /^I kw/i, + /^II kw/i, + /^III kw/i, + /^IV kw/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^l/i, + /^m/i, + /^k/i, + /^m/i, + /^c/i, + /^l/i, + /^s/i, + /^w/i, + /^p/i, + /^l/i, + /^g/i], + + any: [ + /^st/i, + /^lu/i, + /^mar/i, + /^k/i, + /^maj/i, + /^c/i, + /^lip/i, + /^si/i, + /^w/i, + /^p/i, + /^lis/i, + /^g/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^w/i, + /^ś/i, + /^c/i, + /^p/i, + /^s/i], + + abbreviated: [ + /^n/i, + /^po/i, + /^w/i, + /^(ś|s)r/i, + /^c/i, + /^pt/i, + /^so/i], + + any: [ + /^n/i, + /^po/i, + /^w/i, + /^(ś|s)r/i, + /^c/i, + /^pi/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pl/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + pl: pl }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/cdn.min.js b/node_modules/date-fns/locale/pl/cdn.min.js new file mode 100644 index 000000000..2341fe69f --- /dev/null +++ b/node_modules/date-fns/locale/pl/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function m(e,t,n){var r=p(e,t);return(typeof r==`string`?r:r[n]).replace(`{{count}}`,String(t))}var h=function(e,t,n){var r=f[e];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+m(r,t,`future`):m(r,t,`past`)+` temu`:m(r,t,`regular`)};function g(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _={date:g({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:g({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?L(s,function(e){return e.test(o)}):I(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function I(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function L(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var z={code:`pl`,formatDistance:h,formatLong:_,formatRelative:M,localize:P,match:{ordinalNumber:R({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:F({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:`any`}),quarter:F({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:F({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:`any`}),day:F({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:F({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{pl:z})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR.cjs b/node_modules/date-fns/locale/pt-BR.cjs new file mode 100644 index 000000000..508556da5 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ptBR = void 0; +var _index = require("./pt-BR/_lib/formatDistance.cjs"); +var _index2 = require("./pt-BR/_lib/formatLong.cjs"); +var _index3 = require("./pt-BR/_lib/formatRelative.cjs"); +var _index4 = require("./pt-BR/_lib/localize.cjs"); +var _index5 = require("./pt-BR/_lib/match.cjs"); + +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +const ptBR = (exports.ptBR = { + code: "pt-BR", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/pt-BR.d.cts b/node_modules/date-fns/locale/pt-BR.d.cts new file mode 100644 index 000000000..56862fb80 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export declare const ptBR: Locale; diff --git a/node_modules/date-fns/locale/pt-BR.d.ts b/node_modules/date-fns/locale/pt-BR.d.ts new file mode 100644 index 000000000..56862fb80 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export declare const ptBR: Locale; diff --git a/node_modules/date-fns/locale/pt-BR.js b/node_modules/date-fns/locale/pt-BR.js new file mode 100644 index 000000000..6fc37c549 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./pt-BR/_lib/formatDistance.js"; +import { formatLong } from "./pt-BR/_lib/formatLong.js"; +import { formatRelative } from "./pt-BR/_lib/formatRelative.js"; +import { localize } from "./pt-BR/_lib/localize.js"; +import { match } from "./pt-BR/_lib/match.js"; + +/** + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe](https://github.com/duailibe) + * @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) + */ +export const ptBR = { + code: "pt-BR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ptBR; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs new file mode 100644 index 000000000..eb6c4becf --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "em " + result; + } else { + return "há " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js new file mode 100644 index 000000000..bef08d433 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "em " + result; + } else { + return "há " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs new file mode 100644 index 000000000..f592144ae --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js new file mode 100644 index 000000000..68e5da0b7 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs new file mode 100644 index 000000000..dc42dcce1 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs @@ -0,0 +1,26 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js new file mode 100644 index 000000000..bf7bba449 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js @@ -0,0 +1,22 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs b/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs new file mode 100644 index 000000000..f90df013e --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs @@ -0,0 +1,179 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["D", "S", "T", "Q", "Q", "S", "S"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"], + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + ], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "week") { + return number + "ª"; + } + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize.js b/node_modules/date-fns/locale/pt-BR/_lib/localize.js new file mode 100644 index 000000000..6f40a0e46 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize.js @@ -0,0 +1,177 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois de cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["D", "S", "T", "Q", "Q", "S", "S"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"], + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + ], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "week") { + return number + "ª"; + } + return number + "º"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match.cjs b/node_modules/date-fns/locale/pt-BR/_lib/match.cjs new file mode 100644 index 000000000..6e8075016 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i, +}; +const parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match.d.cts b/node_modules/date-fns/locale/pt-BR/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match.d.ts b/node_modules/date-fns/locale/pt-BR/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match.js b/node_modules/date-fns/locale/pt-BR/_lib/match.js new file mode 100644 index 000000000..b2d16b24d --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i, +}; +const parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/pt-BR/cdn.js b/node_modules/date-fns/locale/pt-BR/cdn.js new file mode 100644 index 000000000..01828d5f2 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/cdn.js @@ -0,0 +1,595 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/pt-BR/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "meio minuto", + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "cerca de 1 hora", + other: "cerca de {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 dia", + other: "{{count}} dias" + }, + aboutXWeeks: { + one: "cerca de 1 semana", + other: "cerca de {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "cerca de 1 mês", + other: "cerca de {{count}} meses" + }, + xMonths: { + one: "1 mês", + other: "{{count}} meses" + }, + aboutXYears: { + one: "cerca de 1 ano", + other: "cerca de {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos" + }, + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "em " + result;else + return "há " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d MMM y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getDay(); + return "'" + (weekday === 0 || weekday === 6 ? "último" : "última") + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/pt-BR/_lib/localize.js +var eraValues = { + narrow: ["AC", "DC"], + abbreviated: ["AC", "DC"], + wide: ["antes de cristo", "depois de cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez"], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro"] + +}; +var dayValues = { + narrow: [ + "D", + "S", + "T", + "Q", + "Q", + "S", + "S"], + + short: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sab"], + + abbreviated: [ + "domingo", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado"], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "tarde", + night: "noite" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "md", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da tarde", + night: "da noite" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === "week") return number + "ª"; + return number + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/pt-BR.js +/** +* @category Locales +* @summary Portuguese locale (Brazil). +* @language Portuguese +* @iso-639-2 por +* @author Lucas Duailibe [@duailibe](https://github.com/duailibe) +* @author Yago Carballo [@yagocarballo](https://github.com/YagoCarballo) +*/ +var ptBR = { + code: "pt-BR", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)[ºªo]?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^fev/i, + /^mar/i, + /^abr/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^set/i, + /^out/i, + /^nov/i, + /^dez/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + short: [ + /^d/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^s[aá]/i], + + narrow: [ + /^d/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^s[aá]/i], + + any: [ + /^d/i, + /^seg/i, + /^t/i, + /^qua/i, + /^qui/i, + /^sex/i, + /^s[aá]b/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pt-BR/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ptBR: ptBR }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/cdn.min.js b/node_modules/date-fns/locale/pt-BR/cdn.min.js new file mode 100644 index 000000000..47c2b0a3d --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`em `+r:`há `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);return t?.unit===`week`?n+`ª`:n+`º`},era:f({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`depois de cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`S`,`T`,`Q`,`Q`,`S`,`S`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sab`],abbreviated:[`domingo`,`segunda`,`terça`,`quarta`,`quinta`,`sexta`,`sábado`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`tarde`,night:`noite`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da tarde`,night:`da noite`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`pt-BR`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ptBR:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt.cjs b/node_modules/date-fns/locale/pt.cjs new file mode 100644 index 000000000..18476210b --- /dev/null +++ b/node_modules/date-fns/locale/pt.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.pt = void 0; +var _index = require("./pt/_lib/formatDistance.cjs"); +var _index2 = require("./pt/_lib/formatLong.cjs"); +var _index3 = require("./pt/_lib/formatRelative.cjs"); +var _index4 = require("./pt/_lib/localize.cjs"); +var _index5 = require("./pt/_lib/match.cjs"); + +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +const pt = (exports.pt = { + code: "pt", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/pt.d.cts b/node_modules/date-fns/locale/pt.d.cts new file mode 100644 index 000000000..2f1050135 --- /dev/null +++ b/node_modules/date-fns/locale/pt.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export declare const pt: Locale; diff --git a/node_modules/date-fns/locale/pt.d.ts b/node_modules/date-fns/locale/pt.d.ts new file mode 100644 index 000000000..2f1050135 --- /dev/null +++ b/node_modules/date-fns/locale/pt.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export declare const pt: Locale; diff --git a/node_modules/date-fns/locale/pt.js b/node_modules/date-fns/locale/pt.js new file mode 100644 index 000000000..f311e940b --- /dev/null +++ b/node_modules/date-fns/locale/pt.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./pt/_lib/formatDistance.js"; +import { formatLong } from "./pt/_lib/formatLong.js"; +import { formatRelative } from "./pt/_lib/formatRelative.js"; +import { localize } from "./pt/_lib/localize.js"; +import { match } from "./pt/_lib/match.js"; + +/** + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire](https://github.com/dfreire) + * @author Adrián de la Rosa [@adrm](https://github.com/adrm) + */ +export const pt = { + code: "pt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default pt; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs b/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs new file mode 100644 index 000000000..eb7b17bd8 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "daqui a " + result; + } else { + return "há " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance.js b/node_modules/date-fns/locale/pt/_lib/formatDistance.js new file mode 100644 index 000000000..0628610a2 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos", + }, + + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos", + }, + + halfAMinute: "meio minuto", + + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos", + }, + + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos", + }, + + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas", + }, + + xHours: { + one: "1 hora", + other: "{{count}} horas", + }, + + xDays: { + one: "1 dia", + other: "{{count}} dias", + }, + + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas", + }, + + xWeeks: { + one: "1 semana", + other: "{{count}} semanas", + }, + + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses", + }, + + xMonths: { + one: "1 mês", + other: "{{count}} meses", + }, + + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos", + }, + + xYears: { + one: "1 ano", + other: "{{count}} anos", + }, + + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos", + }, + + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "daqui a " + result; + } else { + return "há " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.cjs b/node_modules/date-fns/locale/pt/_lib/formatLong.cjs new file mode 100644 index 000000000..1ebb5fed1 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d 'de' MMM 'de' y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.d.cts b/node_modules/date-fns/locale/pt/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.d.ts b/node_modules/date-fns/locale/pt/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong.js b/node_modules/date-fns/locale/pt/_lib/formatLong.js new file mode 100644 index 000000000..07a29710c --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d 'de' MMM 'de' y", + short: "dd/MM/y", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative.cjs b/node_modules/date-fns/locale/pt/_lib/formatRelative.cjs new file mode 100644 index 000000000..dc42dcce1 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.cjs @@ -0,0 +1,26 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative.js b/node_modules/date-fns/locale/pt/_lib/formatRelative.js new file mode 100644 index 000000000..bf7bba449 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative.js @@ -0,0 +1,22 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const weekday = date.getDay(); + const last = weekday === 0 || weekday === 6 ? "último" : "última"; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/pt/_lib/localize.cjs b/node_modules/date-fns/locale/pt/_lib/localize.cjs new file mode 100644 index 000000000..85a025610 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize.cjs @@ -0,0 +1,166 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois de Cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["d", "s", "t", "q", "q", "s", "s"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/pt/_lib/localize.d.cts b/node_modules/date-fns/locale/pt/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt/_lib/localize.d.ts b/node_modules/date-fns/locale/pt/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/pt/_lib/localize.js b/node_modules/date-fns/locale/pt/_lib/localize.js new file mode 100644 index 000000000..2ea7861fb --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois de Cristo"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez", + ], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro", + ], +}; + +const dayValues = { + narrow: ["d", "s", "t", "q", "q", "s", "s"], + short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"], + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "º"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/pt/_lib/match.cjs b/node_modules/date-fns/locale/pt/_lib/match.cjs new file mode 100644 index 000000000..92093607d --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(º|ª)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era comum)/i, + /^(depois de cristo|era comum)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º|ª)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/pt/_lib/match.d.cts b/node_modules/date-fns/locale/pt/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt/_lib/match.d.ts b/node_modules/date-fns/locale/pt/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/pt/_lib/match.js b/node_modules/date-fns/locale/pt/_lib/match.js new file mode 100644 index 000000000..7deb576c4 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(º|ª)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i, +}; +const parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [ + /^(antes de cristo|antes da era comum)/i, + /^(depois de cristo|era comum)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º|ª)? trimestre/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/pt/cdn.js b/node_modules/date-fns/locale/pt/cdn.js new file mode 100644 index 000000000..16cd7a661 --- /dev/null +++ b/node_modules/date-fns/locale/pt/cdn.js @@ -0,0 +1,584 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/pt/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menos de um segundo", + other: "menos de {{count}} segundos" + }, + xSeconds: { + one: "1 segundo", + other: "{{count}} segundos" + }, + halfAMinute: "meio minuto", + lessThanXMinutes: { + one: "menos de um minuto", + other: "menos de {{count}} minutos" + }, + xMinutes: { + one: "1 minuto", + other: "{{count}} minutos" + }, + aboutXHours: { + one: "aproximadamente 1 hora", + other: "aproximadamente {{count}} horas" + }, + xHours: { + one: "1 hora", + other: "{{count}} horas" + }, + xDays: { + one: "1 dia", + other: "{{count}} dias" + }, + aboutXWeeks: { + one: "aproximadamente 1 semana", + other: "aproximadamente {{count}} semanas" + }, + xWeeks: { + one: "1 semana", + other: "{{count}} semanas" + }, + aboutXMonths: { + one: "aproximadamente 1 mês", + other: "aproximadamente {{count}} meses" + }, + xMonths: { + one: "1 mês", + other: "{{count}} meses" + }, + aboutXYears: { + one: "aproximadamente 1 ano", + other: "aproximadamente {{count}} anos" + }, + xYears: { + one: "1 ano", + other: "{{count}} anos" + }, + overXYears: { + one: "mais de 1 ano", + other: "mais de {{count}} anos" + }, + almostXYears: { + one: "quase 1 ano", + other: "quase {{count}} anos" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "daqui a " + result;else + return "há " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d 'de' MMM 'de' y", + short: "dd/MM/y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/pt/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getDay(); + return "'" + (weekday === 0 || weekday === 6 ? "último" : "última") + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/pt/_lib/localize.js +var eraValues = { + narrow: ["aC", "dC"], + abbreviated: ["a.C.", "d.C."], + wide: ["antes de Cristo", "depois de Cristo"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "1º trimestre", + "2º trimestre", + "3º trimestre", + "4º trimestre"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "fev", + "mar", + "abr", + "mai", + "jun", + "jul", + "ago", + "set", + "out", + "nov", + "dez"], + + wide: [ + "janeiro", + "fevereiro", + "março", + "abril", + "maio", + "junho", + "julho", + "agosto", + "setembro", + "outubro", + "novembro", + "dezembro"] + +}; +var dayValues = { + narrow: [ + "d", + "s", + "t", + "q", + "q", + "s", + "s"], + + short: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb"], + + abbreviated: [ + "dom", + "seg", + "ter", + "qua", + "qui", + "sex", + "sáb"], + + wide: [ + "domingo", + "segunda-feira", + "terça-feira", + "quarta-feira", + "quinta-feira", + "sexta-feira", + "sábado"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "manhã", + afternoon: "tarde", + evening: "noite", + night: "madrugada" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "meia-noite", + noon: "meio-dia", + morning: "da manhã", + afternoon: "da tarde", + evening: "da noite", + night: "da madrugada" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "º"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/pt.js +/** +* @category Locales +* @summary Portuguese locale. +* @language Portuguese +* @iso-639-2 por +* @author Dário Freire [@dfreire](https://github.com/dfreire) +* @author Adrián de la Rosa [@adrm](https://github.com/adrm) +*/ +var pt = { + code: "pt", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(º|ª)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º|ª)? trimestre/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ab/i, + /^mai/i, + /^jun/i, + /^jul/i, + /^ag/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^s/i, + /^t/i, + /^q/i, + /^q/i, + /^s/i, + /^s/i], + + any: [ + /^d/i, + /^seg/i, + /^t/i, + /^qua/i, + /^qui/i, + /^sex/i, + /^s[áa]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/pt/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + pt: pt }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/cdn.min.js b/node_modules/date-fns/locale/pt/cdn.min.js new file mode 100644 index 000000000..06dfa0c03 --- /dev/null +++ b/node_modules/date-fns/locale/pt/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`daqui a `+r:`há `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d 'de' MMM 'de' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'às' {{time}}`,long:`{{date}} 'às' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){var t=e.getDay();return`'`+(t===0||t===6?`último`:`última`)+`' eeee 'às' p`},yesterday:`'ontem às' p`,today:`'hoje às' p`,tomorrow:`'amanhã às' p`,nextWeek:`eeee 'às' p`,other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`º`},era:f({values:{narrow:[`aC`,`dC`],abbreviated:[`a.C.`,`d.C.`],wide:[`antes de Cristo`,`depois de Cristo`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan`,`fev`,`mar`,`abr`,`mai`,`jun`,`jul`,`ago`,`set`,`out`,`nov`,`dez`],wide:[`janeiro`,`fevereiro`,`março`,`abril`,`maio`,`junho`,`julho`,`agosto`,`setembro`,`outubro`,`novembro`,`dezembro`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`s`,`t`,`q`,`q`,`s`,`s`],short:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],abbreviated:[`dom`,`seg`,`ter`,`qua`,`qui`,`sex`,`sáb`],wide:[`domingo`,`segunda-feira`,`terça-feira`,`quarta-feira`,`quinta-feira`,`sexta-feira`,`sábado`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`manhã`,afternoon:`tarde`,evening:`noite`,night:`madrugada`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},abbreviated:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`},wide:{am:`AM`,pm:`PM`,midnight:`meia-noite`,noon:`meio-dia`,morning:`da manhã`,afternoon:`da tarde`,evening:`da noite`,night:`da madrugada`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`pt`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{pt:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro.cjs b/node_modules/date-fns/locale/ro.cjs new file mode 100644 index 000000000..ab33fd56c --- /dev/null +++ b/node_modules/date-fns/locale/ro.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.ro = void 0; +var _index = require("./ro/_lib/formatDistance.cjs"); +var _index2 = require("./ro/_lib/formatLong.cjs"); +var _index3 = require("./ro/_lib/formatRelative.cjs"); +var _index4 = require("./ro/_lib/localize.cjs"); +var _index5 = require("./ro/_lib/match.cjs"); + +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +const ro = (exports.ro = { + code: "ro", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ro.d.cts b/node_modules/date-fns/locale/ro.d.cts new file mode 100644 index 000000000..d83920ca9 --- /dev/null +++ b/node_modules/date-fns/locale/ro.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export declare const ro: Locale; diff --git a/node_modules/date-fns/locale/ro.d.ts b/node_modules/date-fns/locale/ro.d.ts new file mode 100644 index 000000000..d83920ca9 --- /dev/null +++ b/node_modules/date-fns/locale/ro.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export declare const ro: Locale; diff --git a/node_modules/date-fns/locale/ro.js b/node_modules/date-fns/locale/ro.js new file mode 100644 index 000000000..15bc84eac --- /dev/null +++ b/node_modules/date-fns/locale/ro.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./ro/_lib/formatDistance.js"; +import { formatLong } from "./ro/_lib/formatLong.js"; +import { formatRelative } from "./ro/_lib/formatRelative.js"; +import { localize } from "./ro/_lib/localize.js"; +import { match } from "./ro/_lib/match.js"; + +/** + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) + * @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) + * @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) + */ +export const ro = { + code: "ro", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ro; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs new file mode 100644 index 000000000..40f078866 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde", + }, + + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde", + }, + + halfAMinute: "jumătate de minut", + + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore", + }, + + xHours: { + one: "1 oră", + other: "{{count}} ore", + }, + + xDays: { + one: "1 zi", + other: "{{count}} zile", + }, + + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni", + }, + + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni", + }, + + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni", + }, + + xMonths: { + one: "1 lună", + other: "{{count}} luni", + }, + + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani", + }, + + xYears: { + one: "1 an", + other: "{{count}} ani", + }, + + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani", + }, + + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "în " + result; + } else { + return result + " în urmă"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance.js b/node_modules/date-fns/locale/ro/_lib/formatDistance.js new file mode 100644 index 000000000..e0d56572a --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde", + }, + + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde", + }, + + halfAMinute: "jumătate de minut", + + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute", + }, + + xMinutes: { + one: "1 minut", + other: "{{count}} minute", + }, + + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore", + }, + + xHours: { + one: "1 oră", + other: "{{count}} ore", + }, + + xDays: { + one: "1 zi", + other: "{{count}} zile", + }, + + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni", + }, + + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni", + }, + + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni", + }, + + xMonths: { + one: "1 lună", + other: "{{count}} luni", + }, + + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani", + }, + + xYears: { + one: "1 an", + other: "{{count}} ani", + }, + + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani", + }, + + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "în " + result; + } else { + return result + " în urmă"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.cjs b/node_modules/date-fns/locale/ro/_lib/formatLong.cjs new file mode 100644 index 000000000..99e84d1f1 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ro/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ro/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong.js b/node_modules/date-fns/locale/ro/_lib/formatLong.js new file mode 100644 index 000000000..d89fe0e0c --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ro/_lib/formatRelative.cjs new file mode 100644 index 000000000..c9ea4de78 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative.js b/node_modules/date-fns/locale/ro/_lib/formatRelative.js new file mode 100644 index 000000000..49a8376b3 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ro/_lib/localize.cjs b/node_modules/date-fns/locale/ro/_lib/localize.cjs new file mode 100644 index 000000000..f689df5dc --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.cjs @@ -0,0 +1,162 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru", + ], +}; + +const monthValues = { + narrow: ["I", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"], + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec", + ], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["du", "lu", "ma", "mi", "jo", "vi", "sâ"], + abbreviated: ["dum", "lun", "mar", "mie", "joi", "vin", "sâm"], + wide: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ro/_lib/localize.d.cts b/node_modules/date-fns/locale/ro/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ro/_lib/localize.d.ts b/node_modules/date-fns/locale/ro/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ro/_lib/localize.js b/node_modules/date-fns/locale/ro/_lib/localize.js new file mode 100644 index 000000000..87b0a716b --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize.js @@ -0,0 +1,160 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["T1", "T2", "T3", "T4"], + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru", + ], +}; + +const monthValues = { + narrow: ["I", "F", "M", "A", "M", "I", "I", "A", "S", "O", "N", "D"], + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec", + ], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie", + ], +}; + +const dayValues = { + narrow: ["d", "l", "m", "m", "j", "v", "s"], + short: ["du", "lu", "ma", "mi", "jo", "vi", "sâ"], + abbreviated: ["dum", "lun", "mar", "mie", "joi", "vin", "sâm"], + wide: ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ro/_lib/match.cjs b/node_modules/date-fns/locale/ro/_lib/match.cjs new file mode 100644 index 000000000..0c007b295 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match.cjs @@ -0,0 +1,140 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: + /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i, +}; +const parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [ + /^(Înainte de Cristos|Înaintea erei noastre)/i, + /^(După Cristos|Era noastră)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ro/_lib/match.d.cts b/node_modules/date-fns/locale/ro/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ro/_lib/match.d.ts b/node_modules/date-fns/locale/ro/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ro/_lib/match.js b/node_modules/date-fns/locale/ro/_lib/match.js new file mode 100644 index 000000000..593d40438 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match.js @@ -0,0 +1,137 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: + /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i, +}; +const parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [ + /^(Înainte de Cristos|Înaintea erei noastre)/i, + /^(După Cristos|Era noastră)/i, + ], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ro/cdn.js b/node_modules/date-fns/locale/ro/cdn.js new file mode 100644 index 000000000..eae8c70e7 --- /dev/null +++ b/node_modules/date-fns/locale/ro/cdn.js @@ -0,0 +1,578 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ro/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mai puțin de o secundă", + other: "mai puțin de {{count}} secunde" + }, + xSeconds: { + one: "1 secundă", + other: "{{count}} secunde" + }, + halfAMinute: "jumătate de minut", + lessThanXMinutes: { + one: "mai puțin de un minut", + other: "mai puțin de {{count}} minute" + }, + xMinutes: { + one: "1 minut", + other: "{{count}} minute" + }, + aboutXHours: { + one: "circa 1 oră", + other: "circa {{count}} ore" + }, + xHours: { + one: "1 oră", + other: "{{count}} ore" + }, + xDays: { + one: "1 zi", + other: "{{count}} zile" + }, + aboutXWeeks: { + one: "circa o săptămână", + other: "circa {{count}} săptămâni" + }, + xWeeks: { + one: "1 săptămână", + other: "{{count}} săptămâni" + }, + aboutXMonths: { + one: "circa 1 lună", + other: "circa {{count}} luni" + }, + xMonths: { + one: "1 lună", + other: "{{count}} luni" + }, + aboutXYears: { + one: "circa 1 an", + other: "circa {{count}} ani" + }, + xYears: { + one: "1 an", + other: "{{count}} ani" + }, + overXYears: { + one: "peste 1 an", + other: "peste {{count}} ani" + }, + almostXYears: { + one: "aproape 1 an", + other: "aproape {{count}} ani" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "în " + result;else + return result + " în urmă"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM yyyy", + long: "d MMMM yyyy", + medium: "d MMM yyyy", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ro/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ro/_lib/localize.js +var eraValues = { + narrow: ["Î", "D"], + abbreviated: ["Î.d.C.", "D.C."], + wide: ["Înainte de Cristos", "După Cristos"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "T1", + "T2", + "T3", + "T4"], + + wide: [ + "primul trimestru", + "al doilea trimestru", + "al treilea trimestru", + "al patrulea trimestru"] + +}; +var monthValues = { + narrow: [ + "I", + "F", + "M", + "A", + "M", + "I", + "I", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "ian", + "feb", + "mar", + "apr", + "mai", + "iun", + "iul", + "aug", + "sep", + "oct", + "noi", + "dec"], + + wide: [ + "ianuarie", + "februarie", + "martie", + "aprilie", + "mai", + "iunie", + "iulie", + "august", + "septembrie", + "octombrie", + "noiembrie", + "decembrie"] + +}; +var dayValues = { + narrow: [ + "d", + "l", + "m", + "m", + "j", + "v", + "s"], + + short: [ + "du", + "lu", + "ma", + "mi", + "jo", + "vi", + "sâ"], + + abbreviated: [ + "dum", + "lun", + "mar", + "mie", + "joi", + "vin", + "sâm"], + + wide: [ + "duminică", + "luni", + "marți", + "miercuri", + "joi", + "vineri", + "sâmbătă"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "ami", + morning: "dim", + afternoon: "da", + evening: "s", + night: "n" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "mn", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "miezul nopții", + noon: "amiază", + morning: "dimineață", + afternoon: "după-amiază", + evening: "seară", + night: "noapte" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ro.js +/** +* @category Locales +* @summary Romanian locale. +* @language Romanian +* @iso-639-2 ron +* @author Sergiu Munteanu [@jsergiu](https://github.com/jsergiu) +* @author Adrian Ocneanu [@aocneanu](https://github.com/aocneanu) +* @author Mihai Ocneanu [@gandesc](https://github.com/gandesc) +*/ +var ro = { + code: "ro", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(Î|D)/i, + abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [/^ÎC/i, /^DC/i], + wide: [/^(Înainte de Cristos|Înaintea erei noastre)/i, /^(După Cristos|Era noastră)/i] + }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^i/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^i/i, + /^i/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ia/i, + /^f/i, + /^mar/i, + /^ap/i, + /^mai/i, + /^iun/i, + /^iul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^l/i, + /^m/i, + /^m/i, + /^j/i, + /^v/i, + /^s/i], + + any: [ + /^d/i, + /^l/i, + /^ma/i, + /^mi/i, + /^j/i, + /^v/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ro/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ro: ro }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/cdn.min.js b/node_modules/date-fns/locale/ro/cdn.min.js new file mode 100644 index 000000000..003ce8f99 --- /dev/null +++ b/node_modules/date-fns/locale/ro/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`în `+r:r+` în urmă`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'la' {{time}}`,long:`{{date}} 'la' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee 'trecută la' p`,yesterday:`'ieri la' p`,today:`'astăzi la' p`,tomorrow:`'mâine la' p`,nextWeek:`eeee 'viitoare la' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`Î`,`D`],abbreviated:[`Î.d.C.`,`D.C.`],wide:[`Înainte de Cristos`,`După Cristos`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`primul trimestru`,`al doilea trimestru`,`al treilea trimestru`,`al patrulea trimestru`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`I`,`F`,`M`,`A`,`M`,`I`,`I`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`ian`,`feb`,`mar`,`apr`,`mai`,`iun`,`iul`,`aug`,`sep`,`oct`,`noi`,`dec`],wide:[`ianuarie`,`februarie`,`martie`,`aprilie`,`mai`,`iunie`,`iulie`,`august`,`septembrie`,`octombrie`,`noiembrie`,`decembrie`]},defaultWidth:`wide`}),day:f({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`du`,`lu`,`ma`,`mi`,`jo`,`vi`,`sâ`],abbreviated:[`dum`,`lun`,`mar`,`mie`,`joi`,`vin`,`sâm`],wide:[`duminică`,`luni`,`marți`,`miercuri`,`joi`,`vineri`,`sâmbătă`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`ami`,morning:`dim`,afternoon:`da`,evening:`s`,night:`n`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},abbreviated:{am:`AM`,pm:`PM`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`miezul nopții`,noon:`amiază`,morning:`dimineață`,afternoon:`după-amiază`,evening:`seară`,night:`noapte`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`ro`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ro:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru.cjs b/node_modules/date-fns/locale/ru.cjs new file mode 100644 index 000000000..d234b42a3 --- /dev/null +++ b/node_modules/date-fns/locale/ru.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.ru = void 0; +var _index = require("./ru/_lib/formatDistance.cjs"); +var _index2 = require("./ru/_lib/formatLong.cjs"); +var _index3 = require("./ru/_lib/formatRelative.cjs"); +var _index4 = require("./ru/_lib/localize.cjs"); +var _index5 = require("./ru/_lib/match.cjs"); + +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +const ru = (exports.ru = { + code: "ru", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/ru.d.cts b/node_modules/date-fns/locale/ru.d.cts new file mode 100644 index 000000000..f602cdc61 --- /dev/null +++ b/node_modules/date-fns/locale/ru.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const ru: Locale; diff --git a/node_modules/date-fns/locale/ru.d.ts b/node_modules/date-fns/locale/ru.d.ts new file mode 100644 index 000000000..f602cdc61 --- /dev/null +++ b/node_modules/date-fns/locale/ru.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export declare const ru: Locale; diff --git a/node_modules/date-fns/locale/ru.js b/node_modules/date-fns/locale/ru.js new file mode 100644 index 000000000..43d83f925 --- /dev/null +++ b/node_modules/date-fns/locale/ru.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./ru/_lib/formatDistance.js"; +import { formatLong } from "./ru/_lib/formatLong.js"; +import { formatRelative } from "./ru/_lib/formatRelative.js"; +import { localize } from "./ru/_lib/localize.js"; +import { match } from "./ru/_lib/match.js"; + +/** + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) + * @author Lesha Koss [@leshakoss](https://github.com/leshakoss) + */ +export const ru = { + code: "ru", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default ru; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs new file mode 100644 index 000000000..f55e66301 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs @@ -0,0 +1,250 @@ +"use strict"; +exports.formatDistance = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "через " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " назад"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд", + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад", + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд", + }, + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "через полминуты"; + } else { + return "полминуты назад"; + } + } + + return "полминуты"; + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут", + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад", + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов", + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель", + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев", + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет", + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет", + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет", + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет", + }, + }), +}; + +const formatDistance = (token, count, options) => { + return formatDistanceLocale[token](count, options); +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance.js b/node_modules/date-fns/locale/ru/_lib/formatDistance.js new file mode 100644 index 000000000..6d79b98b2 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance.js @@ -0,0 +1,246 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + const rem10 = count % 10; + const rem100 = count % 100; + + // 1, 21, 31, ... + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace("{{count}}", String(count)); + + // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace("{{count}}", String(count)); + + // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace("{{count}}", String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return (count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return "через " + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + " назад"; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +const formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд", + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд", + }, + }), + + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд", + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад", + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд", + }, + }), + + halfAMinute: (_count, options) => { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "через полминуты"; + } else { + return "полминуты назад"; + } + } + + return "полминуты"; + }, + + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут", + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут", + }, + }), + + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут", + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад", + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут", + }, + }), + + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов", + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов", + }, + }), + + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов", + }, + }), + + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней", + }, + }), + + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель", + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель", + }, + }), + + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель", + }, + }), + + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев", + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев", + }, + }), + + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев", + }, + }), + + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет", + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет", + }, + }), + + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет", + }, + }), + + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет", + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет", + }, + }), + + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет", + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет", + }, + }), +}; + +export const formatDistance = (token, count, options) => { + return formatDistanceLocale[token](count, options); +}; diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.cjs b/node_modules/date-fns/locale/ru/_lib/formatLong.cjs new file mode 100644 index 000000000..d043ad4a4 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.cjs @@ -0,0 +1,38 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ru/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ru/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong.js b/node_modules/date-fns/locale/ru/_lib/formatLong.js new file mode 100644 index 000000000..f775c7ba8 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong.js @@ -0,0 +1,36 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +const dateTimeFormats = { + any: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs new file mode 100644 index 000000000..98ec613a6 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs @@ -0,0 +1,91 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +const accusativeWeekdays = [ + "воскресенье", + "понедельник", + "вторник", + "среду", + "четверг", + "пятницу", + "субботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 2 /* Tue */) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative.js b/node_modules/date-fns/locale/ru/_lib/formatRelative.js new file mode 100644 index 000000000..dcf893da6 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative.js @@ -0,0 +1,88 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +const accusativeWeekdays = [ + "воскресенье", + "понедельник", + "вторник", + "среду", + "четверг", + "пятницу", + "субботу", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 2 /* Tue */) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/ru/_lib/localize.cjs b/node_modules/date-fns/locale/ru/_lib/localize.cjs new file mode 100644 index 000000000..385ceb32f --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.cjs @@ -0,0 +1,212 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["до н.э.", "н.э."], + abbreviated: ["до н. э.", "н. э."], + wide: ["до нашей эры", "нашей эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."], + wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"], +}; + +const monthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "март", + "апр.", + "май", + "июнь", + "июль", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + + wide: [ + "январь", + "февраль", + "март", + "апрель", + "май", + "июнь", + "июль", + "август", + "сентябрь", + "октябрь", + "ноябрь", + "декабрь", + ], +}; + +const formattingMonthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "мар.", + "апр.", + "мая", + "июн.", + "июл.", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + + wide: [ + "января", + "февраля", + "марта", + "апреля", + "мая", + "июня", + "июля", + "августа", + "сентября", + "октября", + "ноября", + "декабря", + ], +}; + +const dayValues = { + narrow: ["В", "П", "В", "С", "Ч", "П", "С"], + short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"], + abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"], + wide: [ + "воскресенье", + "понедельник", + "вторник", + "среда", + "четверг", + "пятница", + "суббота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утро", + afternoon: "день", + evening: "вечер", + night: "ночь", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утра", + afternoon: "дня", + evening: "вечера", + night: "ночи", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + let suffix; + if (unit === "date") { + suffix = "-е"; + } else if (unit === "week" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = "-й"; + } + + return number + suffix; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ru/_lib/localize.d.cts b/node_modules/date-fns/locale/ru/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ru/_lib/localize.d.ts b/node_modules/date-fns/locale/ru/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ru/_lib/localize.js b/node_modules/date-fns/locale/ru/_lib/localize.js new file mode 100644 index 000000000..155f75419 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize.js @@ -0,0 +1,210 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["до н.э.", "н.э."], + abbreviated: ["до н. э.", "н. э."], + wide: ["до нашей эры", "нашей эры"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."], + wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"], +}; + +const monthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "март", + "апр.", + "май", + "июнь", + "июль", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + + wide: [ + "январь", + "февраль", + "март", + "апрель", + "май", + "июнь", + "июль", + "август", + "сентябрь", + "октябрь", + "ноябрь", + "декабрь", + ], +}; + +const formattingMonthValues = { + narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], + abbreviated: [ + "янв.", + "фев.", + "мар.", + "апр.", + "мая", + "июн.", + "июл.", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек.", + ], + + wide: [ + "января", + "февраля", + "марта", + "апреля", + "мая", + "июня", + "июля", + "августа", + "сентября", + "октября", + "ноября", + "декабря", + ], +}; + +const dayValues = { + narrow: ["В", "П", "В", "С", "Ч", "П", "С"], + short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"], + abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"], + wide: [ + "воскресенье", + "понедельник", + "вторник", + "среда", + "четверг", + "пятница", + "суббота", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утро", + afternoon: "день", + evening: "вечер", + night: "ночь", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи", + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи", + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утра", + afternoon: "дня", + evening: "вечера", + night: "ночи", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + const unit = options?.unit; + + let suffix; + if (unit === "date") { + suffix = "-е"; + } else if (unit === "week" || unit === "minute" || unit === "second") { + suffix = "-я"; + } else { + suffix = "-й"; + } + + return number + suffix; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ru/_lib/match.cjs b/node_modules/date-fns/locale/ru/_lib/match.cjs new file mode 100644 index 000000000..1531aa893 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/match.cjs @@ -0,0 +1,141 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\s?э\.?)/i, + wide: /^(до нашей эры|нашей эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, + wide: /^[1234](-?[ыои]?й?)? квартал/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: + /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^я/i, + /^ф/i, + /^м/i, + /^а/i, + /^м/i, + /^и/i, + /^и/i, + /^а/i, + /^с/i, + /^о/i, + /^н/i, + /^я/i, + ], + + any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^ав/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i, +}; + +const parseDayPatterns = { + narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i, +}; + +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^полн/i, + noon: /^полд/i, + morning: /^у/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ru/_lib/match.d.cts b/node_modules/date-fns/locale/ru/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ru/_lib/match.d.ts b/node_modules/date-fns/locale/ru/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ru/_lib/match.js b/node_modules/date-fns/locale/ru/_lib/match.js new file mode 100644 index 000000000..91adcd706 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\s?э\.?)/i, + wide: /^(до нашей эры|нашей эры|наша эра)/i, +}; +const parseEraPatterns = { + any: [/^д/i, /^н/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, + wide: /^[1234](-?[ыои]?й?)? квартал/i, +}; + +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: + /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i, +}; + +const parseMonthPatterns = { + narrow: [ + /^я/i, + /^ф/i, + /^м/i, + /^а/i, + /^м/i, + /^и/i, + /^и/i, + /^а/i, + /^с/i, + /^о/i, + /^н/i, + /^я/i, + ], + + any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^ав/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i, +}; + +const parseDayPatterns = { + narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i, +}; + +const parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^полн/i, + noon: /^полд/i, + morning: /^у/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ru/cdn.js b/node_modules/date-fns/locale/ru/cdn.js new file mode 100644 index 000000000..f57c847a0 --- /dev/null +++ b/node_modules/date-fns/locale/ru/cdn.js @@ -0,0 +1,979 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/ru/_lib/formatDistance.js +function declension(scheme, count) { + if (scheme.one !== void 0 && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; + if (rem10 === 1 && rem100 !== 11) return scheme.singularNominative.replace("{{count}}", String(count));else + if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) return scheme.singularGenitive.replace("{{count}}", String(count));else + return scheme.pluralGenitive.replace("{{count}}", String(count)); +} +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) {if (scheme.future) return declension(scheme.future, count);else + return "через " + declension(scheme.regular, count);} else + if (scheme.past) return declension(scheme.past, count);else + return declension(scheme.regular, count) + " назад";} else + return declension(scheme.regular, count); + }; +} +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: "меньше секунды", + singularNominative: "меньше {{count}} секунды", + singularGenitive: "меньше {{count}} секунд", + pluralGenitive: "меньше {{count}} секунд" + }, + future: { + one: "меньше, чем через секунду", + singularNominative: "меньше, чем через {{count}} секунду", + singularGenitive: "меньше, чем через {{count}} секунды", + pluralGenitive: "меньше, чем через {{count}} секунд" + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} секунда", + singularGenitive: "{{count}} секунды", + pluralGenitive: "{{count}} секунд" + }, + past: { + singularNominative: "{{count}} секунду назад", + singularGenitive: "{{count}} секунды назад", + pluralGenitive: "{{count}} секунд назад" + }, + future: { + singularNominative: "через {{count}} секунду", + singularGenitive: "через {{count}} секунды", + pluralGenitive: "через {{count}} секунд" + } + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "через полминуты";else + return "полминуты назад"; + return "полминуты"; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: "меньше минуты", + singularNominative: "меньше {{count}} минуты", + singularGenitive: "меньше {{count}} минут", + pluralGenitive: "меньше {{count}} минут" + }, + future: { + one: "меньше, чем через минуту", + singularNominative: "меньше, чем через {{count}} минуту", + singularGenitive: "меньше, чем через {{count}} минуты", + pluralGenitive: "меньше, чем через {{count}} минут" + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: "{{count}} минута", + singularGenitive: "{{count}} минуты", + pluralGenitive: "{{count}} минут" + }, + past: { + singularNominative: "{{count}} минуту назад", + singularGenitive: "{{count}} минуты назад", + pluralGenitive: "{{count}} минут назад" + }, + future: { + singularNominative: "через {{count}} минуту", + singularGenitive: "через {{count}} минуты", + pluralGenitive: "через {{count}} минут" + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} часа", + singularGenitive: "около {{count}} часов", + pluralGenitive: "около {{count}} часов" + }, + future: { + singularNominative: "приблизительно через {{count}} час", + singularGenitive: "приблизительно через {{count}} часа", + pluralGenitive: "приблизительно через {{count}} часов" + } + }), + xHours: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} час", + singularGenitive: "{{count}} часа", + pluralGenitive: "{{count}} часов" + } }), + xDays: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} день", + singularGenitive: "{{count}} дня", + pluralGenitive: "{{count}} дней" + } }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} недели", + singularGenitive: "около {{count}} недель", + pluralGenitive: "около {{count}} недель" + }, + future: { + singularNominative: "приблизительно через {{count}} неделю", + singularGenitive: "приблизительно через {{count}} недели", + pluralGenitive: "приблизительно через {{count}} недель" + } + }), + xWeeks: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} неделя", + singularGenitive: "{{count}} недели", + pluralGenitive: "{{count}} недель" + } }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} месяца", + singularGenitive: "около {{count}} месяцев", + pluralGenitive: "около {{count}} месяцев" + }, + future: { + singularNominative: "приблизительно через {{count}} месяц", + singularGenitive: "приблизительно через {{count}} месяца", + pluralGenitive: "приблизительно через {{count}} месяцев" + } + }), + xMonths: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} месяц", + singularGenitive: "{{count}} месяца", + pluralGenitive: "{{count}} месяцев" + } }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "около {{count}} года", + singularGenitive: "около {{count}} лет", + pluralGenitive: "около {{count}} лет" + }, + future: { + singularNominative: "приблизительно через {{count}} год", + singularGenitive: "приблизительно через {{count}} года", + pluralGenitive: "приблизительно через {{count}} лет" + } + }), + xYears: buildLocalizeTokenFn({ regular: { + singularNominative: "{{count}} год", + singularGenitive: "{{count}} года", + pluralGenitive: "{{count}} лет" + } }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "больше {{count}} года", + singularGenitive: "больше {{count}} лет", + pluralGenitive: "больше {{count}} лет" + }, + future: { + singularNominative: "больше, чем через {{count}} год", + singularGenitive: "больше, чем через {{count}} года", + pluralGenitive: "больше, чем через {{count}} лет" + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: "почти {{count}} год", + singularGenitive: "почти {{count}} года", + pluralGenitive: "почти {{count}} лет" + }, + future: { + singularNominative: "почти через {{count}} год", + singularGenitive: "почти через {{count}} года", + pluralGenitive: "почти через {{count}} лет" + } + }) +}; +var formatDistance = function formatDistance(token, count, options) { + return formatDistanceLocale[token](count, options); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { any: "{{date}}, {{time}}" }, + defaultWidth: "any" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/ru/_lib/formatRelative.js +var accusativeWeekdays = [ +"воскресенье", +"понедельник", +"вторник", +"среду", +"четверг", +"пятницу", +"субботу"]; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0:return "'в прошлое " + weekday + " в' p"; + case 1: + case 2: + case 4:return "'в прошлый " + weekday + " в' p"; + case 3: + case 5: + case 6:return "'в прошлую " + weekday + " в' p"; + } +} +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + if (day === 2) return "'во " + weekday + " в' p";else + return "'в " + weekday + " в' p"; +} +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0:return "'в следующее " + weekday + " в' p"; + case 1: + case 2: + case 4:return "'в следующий " + weekday + " в' p"; + case 3: + case 5: + case 6:return "'в следующую " + weekday + " в' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ru/_lib/localize.js +var eraValues = { + narrow: ["до н.э.", "н.э."], + abbreviated: ["до н. э.", "н. э."], + wide: ["до нашей эры", "нашей эры"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1-й кв.", + "2-й кв.", + "3-й кв.", + "4-й кв."], + + wide: [ + "1-й квартал", + "2-й квартал", + "3-й квартал", + "4-й квартал"] + +}; +var monthValues = { + narrow: [ + "Я", + "Ф", + "М", + "А", + "М", + "И", + "И", + "А", + "С", + "О", + "Н", + "Д"], + + abbreviated: [ + "янв.", + "фев.", + "март", + "апр.", + "май", + "июнь", + "июль", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек."], + + wide: [ + "январь", + "февраль", + "март", + "апрель", + "май", + "июнь", + "июль", + "август", + "сентябрь", + "октябрь", + "ноябрь", + "декабрь"] + +}; +var formattingMonthValues = { + narrow: [ + "Я", + "Ф", + "М", + "А", + "М", + "И", + "И", + "А", + "С", + "О", + "Н", + "Д"], + + abbreviated: [ + "янв.", + "фев.", + "мар.", + "апр.", + "мая", + "июн.", + "июл.", + "авг.", + "сент.", + "окт.", + "нояб.", + "дек."], + + wide: [ + "января", + "февраля", + "марта", + "апреля", + "мая", + "июня", + "июля", + "августа", + "сентября", + "октября", + "ноября", + "декабря"] + +}; +var dayValues = { + narrow: [ + "В", + "П", + "В", + "С", + "Ч", + "П", + "С"], + + short: [ + "вс", + "пн", + "вт", + "ср", + "чт", + "пт", + "сб"], + + abbreviated: [ + "вск", + "пнд", + "втр", + "срд", + "чтв", + "птн", + "суб"], + + wide: [ + "воскресенье", + "понедельник", + "вторник", + "среда", + "четверг", + "пятница", + "суббота"] + +}; +var dayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утро", + afternoon: "день", + evening: "веч.", + night: "ночь" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утро", + afternoon: "день", + evening: "вечер", + night: "ночь" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи" + }, + abbreviated: { + am: "ДП", + pm: "ПП", + midnight: "полн.", + noon: "полд.", + morning: "утра", + afternoon: "дня", + evening: "веч.", + night: "ночи" + }, + wide: { + am: "ДП", + pm: "ПП", + midnight: "полночь", + noon: "полдень", + morning: "утра", + afternoon: "дня", + evening: "вечера", + night: "ночи" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + if (unit === "date") suffix = "-е";else + if (unit === "week" || unit === "minute" || unit === "second") suffix = "-я";else + suffix = "-й"; + return number + suffix; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "any", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ru.js +/** +* @category Locales +* @summary Russian locale. +* @language Russian +* @iso-639-2 rus +* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp) +* @author Lesha Koss [@leshakoss](https://github.com/leshakoss) +*/ +var ru = { + code: "ru", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\s?э\.?)/i, + wide: /^(до нашей эры|нашей эры|наша эра)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^д/i, /^н/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, + wide: /^[1234](-?[ыои]?й?)? квартал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[яфмаисонд]/i, + abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^я/i, + /^ф/i, + /^м/i, + /^а/i, + /^м/i, + /^и/i, + /^и/i, + /^а/i, + /^с/i, + /^о/i, + /^н/i, + /^я/i], + + any: [ + /^я/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^ав/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^в/i, + /^п/i, + /^в/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i], + + any: [ + /^в[ос]/i, + /^п[он]/i, + /^в/i, + /^ср/i, + /^ч/i, + /^п[ят]/i, + /^с[уб]/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^полн/i, + noon: /^полд/i, + morning: /^у/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ru/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ru: ru }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/cdn.min.js b/node_modules/date-fns/locale/ru/cdn.min.js new file mode 100644 index 000000000..12201711c --- /dev/null +++ b/node_modules/date-fns/locale/ru/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function p(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?f(e.future,t):`через `+f(e.regular,t):e.past?f(e.past,t):f(e.regular,t)+` назад`:f(e.regular,t)}}var m={lessThanXSeconds:p({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:p({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду назад`,singularGenitive:`{{count}} секунды назад`,pluralGenitive:`{{count}} секунд назад`},future:{singularNominative:`через {{count}} секунду`,singularGenitive:`через {{count}} секунды`,pluralGenitive:`через {{count}} секунд`}}),halfAMinute:function(e,t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`},lessThanXMinutes:p({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:p({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:p({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:p({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:p({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:p({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:p({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:p({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:p({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:p({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:p({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:p({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:p({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},h=function(e,t,n){return m[e](t,n)};function g(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var _={date:g({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:g({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:g({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},v=Symbol.for(`constructDateFrom`);function y(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&v in e?e[v](t):e instanceof Date?new e.constructor(t):new Date(t)}function b(e){var t=[...arguments].slice(1),n=y.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var x={};function S(){return x}function C(e,t){return y(t||e,e)}function w(e,t){var n,r,i=S(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=C(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?I(s,function(e){return e.test(o)}):F(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function F(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function I(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var R={code:`ru`,formatDistance:h,formatLong:_,formatRelative:j,localize:N,match:{ordinalNumber:L({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:P({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:P({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:P({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:P({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:P({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{ru:R})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/se.cjs b/node_modules/date-fns/locale/se.cjs new file mode 100644 index 000000000..d19f46fe1 --- /dev/null +++ b/node_modules/date-fns/locale/se.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.se = void 0; +var _index = require("./se/_lib/formatDistance.cjs"); +var _index2 = require("./se/_lib/formatLong.cjs"); +var _index3 = require("./se/_lib/formatRelative.cjs"); +var _index4 = require("./se/_lib/localize.cjs"); +var _index5 = require("./se/_lib/match.cjs"); + +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +const se = (exports.se = { + code: "se", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/se.d.cts b/node_modules/date-fns/locale/se.d.cts new file mode 100644 index 000000000..338266d9a --- /dev/null +++ b/node_modules/date-fns/locale/se.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export declare const se: Locale; diff --git a/node_modules/date-fns/locale/se.d.ts b/node_modules/date-fns/locale/se.d.ts new file mode 100644 index 000000000..338266d9a --- /dev/null +++ b/node_modules/date-fns/locale/se.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export declare const se: Locale; diff --git a/node_modules/date-fns/locale/se.js b/node_modules/date-fns/locale/se.js new file mode 100644 index 000000000..3000d03ee --- /dev/null +++ b/node_modules/date-fns/locale/se.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./se/_lib/formatDistance.js"; +import { formatLong } from "./se/_lib/formatLong.js"; +import { formatRelative } from "./se/_lib/formatRelative.js"; +import { localize } from "./se/_lib/localize.js"; +import { match } from "./se/_lib/match.js"; + +/** + * @category Locales + * @summary Northern Sámi locale. + * @language Northern Sámi + * @iso-639-2 sme + * @author Audun Rundberg [@audunru](https://github.com/audunru) + */ +export const se = { + code: "se", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default se; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.cjs b/node_modules/date-fns/locale/se/_lib/formatDistance.cjs new file mode 100644 index 000000000..ce2f6ae20 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda", + }, + + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda", + }, + + halfAMinute: "bealle minuhta", + + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta", + }, + + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta", + }, + + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu", + }, + + xHours: { + one: "diimmu", + other: "{{count}} diimmu", + }, + + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi", + }, + + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku", + }, + + xWeeks: { + one: "vahku", + other: "{{count}} vahku", + }, + + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu", + }, + + xMonths: { + one: "mánu", + other: "{{count}} mánu", + }, + + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi", + }, + + xYears: { + one: "jagi", + other: "{{count}} jagi", + }, + + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi", + }, + + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "geahčen " + result; + } else { + return result + " áigi"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/se/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/se/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/se/_lib/formatDistance.js b/node_modules/date-fns/locale/se/_lib/formatDistance.js new file mode 100644 index 000000000..7decbd693 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda", + }, + + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda", + }, + + halfAMinute: "bealle minuhta", + + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta", + }, + + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta", + }, + + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu", + }, + + xHours: { + one: "diimmu", + other: "{{count}} diimmu", + }, + + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi", + }, + + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku", + }, + + xWeeks: { + one: "vahku", + other: "{{count}} vahku", + }, + + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu", + }, + + xMonths: { + one: "mánu", + other: "{{count}} mánu", + }, + + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi", + }, + + xYears: { + one: "jagi", + other: "{{count}} jagi", + }, + + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi", + }, + + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "geahčen " + result; + } else { + return result + " áigi"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/se/_lib/formatLong.cjs b/node_modules/date-fns/locale/se/_lib/formatLong.cjs new file mode 100644 index 000000000..4fcdad73f --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE MMMM d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/se/_lib/formatLong.d.cts b/node_modules/date-fns/locale/se/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/se/_lib/formatLong.d.ts b/node_modules/date-fns/locale/se/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/se/_lib/formatLong.js b/node_modules/date-fns/locale/se/_lib/formatLong.js new file mode 100644 index 000000000..2beb4271f --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE MMMM d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y", +}; + +const timeFormats = { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/se/_lib/formatRelative.cjs b/node_modules/date-fns/locale/se/_lib/formatRelative.cjs new file mode 100644 index 000000000..befaf37a4 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/se/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/se/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/se/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/se/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/se/_lib/formatRelative.js b/node_modules/date-fns/locale/se/_lib/formatRelative.js new file mode 100644 index 000000000..d3e161d68 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/se/_lib/localize.cjs b/node_modules/date-fns/locale/se/_lib/localize.cjs new file mode 100644 index 000000000..85380dcab --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.cjs @@ -0,0 +1,131 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartála", "2. kvartála", "3. kvartála", "4. kvartála"], +}; + +const monthValues = { + narrow: ["O", "G", "N", "C", "M", "G", "S", "B", "Č", "G", "S", "J"], + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov", + ], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu", + ], +}; + +const dayValues = { + narrow: ["S", "V", "M", "G", "D", "B", "L"], + short: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + abbreviated: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/se/_lib/localize.d.cts b/node_modules/date-fns/locale/se/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/se/_lib/localize.d.ts b/node_modules/date-fns/locale/se/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/se/_lib/localize.js b/node_modules/date-fns/locale/se/_lib/localize.js new file mode 100644 index 000000000..00ddee956 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/localize.js @@ -0,0 +1,129 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. kvartála", "2. kvartála", "3. kvartála", "4. kvartála"], +}; + +const monthValues = { + narrow: ["O", "G", "N", "C", "M", "G", "S", "B", "Č", "G", "S", "J"], + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov", + ], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu", + ], +}; + +const dayValues = { + narrow: ["S", "V", "M", "G", "D", "B", "L"], + short: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + abbreviated: ["sotn", "vuos", "maŋ", "gask", "duor", "bear", "láv"], + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku", + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku", + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/se/_lib/match.cjs b/node_modules/date-fns/locale/se/_lib/match.cjs new file mode 100644 index 000000000..1fc78a237 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/match.cjs @@ -0,0 +1,136 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i, +}; +const parseEraPatterns = { + any: [/^o/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ogncmsbčj]/i, + abbreviated: + /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i, + ], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^v/i, /^m/i, /^g/i, /^d/i, /^b/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/se/_lib/match.d.cts b/node_modules/date-fns/locale/se/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/se/_lib/match.d.ts b/node_modules/date-fns/locale/se/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/se/_lib/match.js b/node_modules/date-fns/locale/se/_lib/match.js new file mode 100644 index 000000000..7ae72f686 --- /dev/null +++ b/node_modules/date-fns/locale/se/_lib/match.js @@ -0,0 +1,133 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i, +}; +const parseEraPatterns = { + any: [/^o/i, /^m/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[ogncmsbčj]/i, + abbreviated: + /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i, + ], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^v/i, /^m/i, /^g/i, /^d/i, /^b/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/se/cdn.js b/node_modules/date-fns/locale/se/cdn.js new file mode 100644 index 000000000..27ea20a14 --- /dev/null +++ b/node_modules/date-fns/locale/se/cdn.js @@ -0,0 +1,528 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/se/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "unnit go ovtta sekundda", + other: "unnit go {{count}} sekundda" + }, + xSeconds: { + one: "sekundda", + other: "{{count}} sekundda" + }, + halfAMinute: "bealle minuhta", + lessThanXMinutes: { + one: "unnit go bealle minuhta", + other: "unnit go {{count}} minuhta" + }, + xMinutes: { + one: "minuhta", + other: "{{count}} minuhta" + }, + aboutXHours: { + one: "sullii ovtta diimmu", + other: "sullii {{count}} diimmu" + }, + xHours: { + one: "diimmu", + other: "{{count}} diimmu" + }, + xDays: { + one: "beaivvi", + other: "{{count}} beaivvi" + }, + aboutXWeeks: { + one: "sullii ovtta vahku", + other: "sullii {{count}} vahku" + }, + xWeeks: { + one: "vahku", + other: "{{count}} vahku" + }, + aboutXMonths: { + one: "sullii ovtta mánu", + other: "sullii {{count}} mánu" + }, + xMonths: { + one: "mánu", + other: "{{count}} mánu" + }, + aboutXYears: { + one: "sullii ovtta jagi", + other: "sullii {{count}} jagi" + }, + xYears: { + one: "jagi", + other: "{{count}} jagi" + }, + overXYears: { + one: "guhkit go jagi", + other: "guhkit go {{count}} jagi" + }, + almostXYears: { + one: "measta jagi", + other: "measta {{count}} jagi" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "geahčen " + result;else + return result + " áigi"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE MMMM d. 'b.' y", + long: "MMMM d. 'b.' y", + medium: "MMM d. 'b.' y", + short: "dd.MM.y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'dii.' HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'dii.' {{time}}", + long: "{{date}} 'dii.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/se/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'ovddit' eeee 'dii.' p", + yesterday: "'ikte dii.' p", + today: "'odne dii.' p", + tomorrow: "'ihtin dii.' p", + nextWeek: "EEEE 'dii.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/se/_lib/localize.js +var eraValues = { + narrow: ["o.Kr.", "m.Kr."], + abbreviated: ["o.Kr.", "m.Kr."], + wide: ["ovdal Kristusa", "maŋŋel Kristusa"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. kvartála", + "2. kvartála", + "3. kvartála", + "4. kvartála"] + +}; +var monthValues = { + narrow: [ + "O", + "G", + "N", + "C", + "M", + "G", + "S", + "B", + "Č", + "G", + "S", + "J"], + + abbreviated: [ + "ođđa", + "guov", + "njuk", + "cuo", + "mies", + "geas", + "suoi", + "borg", + "čakč", + "golg", + "skáb", + "juov"], + + wide: [ + "ođđajagemánnu", + "guovvamánnu", + "njukčamánnu", + "cuoŋománnu", + "miessemánnu", + "geassemánnu", + "suoidnemánnu", + "borgemánnu", + "čakčamánnu", + "golggotmánnu", + "skábmamánnu", + "juovlamánnu"] + +}; +var dayValues = { + narrow: [ + "S", + "V", + "M", + "G", + "D", + "B", + "L"], + + short: [ + "sotn", + "vuos", + "maŋ", + "gask", + "duor", + "bear", + "láv"], + + abbreviated: [ + "sotn", + "vuos", + "maŋ", + "gask", + "duor", + "bear", + "láv"], + + wide: [ + "sotnabeaivi", + "vuossárga", + "maŋŋebárga", + "gaskavahkku", + "duorastat", + "bearjadat", + "lávvardat"] + +}; +var dayPeriodValues = { + narrow: { + am: "a", + pm: "p", + midnight: "gaskaidja", + noon: "gaskabeaivi", + morning: "iđđes", + afternoon: "maŋŋel gaska.", + evening: "eahkes", + night: "ihkku" + }, + abbreviated: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeaivvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabea.", + evening: "eahkes", + night: "ihkku" + }, + wide: { + am: "a.m.", + pm: "p.m.", + midnight: "gaskaidja", + noon: "gaskabeavvi", + morning: "iđđes", + afternoon: "maŋŋel gaskabeaivvi", + evening: "eahkes", + night: "ihkku" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/se.js +/** +* @category Locales +* @summary Northern Sámi locale. +* @language Northern Sámi +* @iso-639-2 sme +* @author Audun Rundberg [@audunru](https://github.com/audunru) +*/ +var se = { + code: "se", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + abbreviated: /^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i, + wide: /^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^o/i, /^m/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartála/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[ogncmsbčj]/i, + abbreviated: /^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i, + wide: /^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^o/i, + /^g/i, + /^n/i, + /^c/i, + /^m/i, + /^g/i, + /^s/i, + /^b/i, + /^č/i, + /^g/i, + /^s/i, + /^j/i], + + any: [ + /^o/i, + /^gu/i, + /^n/i, + /^c/i, + /^m/i, + /^ge/i, + /^su/i, + /^b/i, + /^č/i, + /^go/i, + /^sk/i, + /^j/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[svmgdbl]/i, + short: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + abbreviated: /^(sotn|vuos|maŋ|gask|duor|bear|láv)/i, + wide: /^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^v/i, + /^m/i, + /^g/i, + /^d/i, + /^b/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i, + any: /^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^gaskai/i, + noon: /^gaskab/i, + morning: /iđđes/i, + afternoon: /maŋŋel gaskabeaivvi/i, + evening: /eahkes/i, + night: /ihkku/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/se/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + se: se }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/se/cdn.min.js b/node_modules/date-fns/locale/se/cdn.min.js new file mode 100644 index 000000000..2e649f84f --- /dev/null +++ b/node_modules/date-fns/locale/se/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`geahčen `+r:r+` áigi`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE MMMM d. 'b.' y`,long:`MMMM d. 'b.' y`,medium:`MMM d. 'b.' y`,short:`dd.MM.y`},defaultWidth:`full`}),time:c({formats:{full:`'dii.' HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'dii.' {{time}}`,long:`{{date}} 'dii.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'ovddit' eeee 'dii.' p`,yesterday:`'ikte dii.' p`,today:`'odne dii.' p`,tomorrow:`'ihtin dii.' p`,nextWeek:`EEEE 'dii.' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`o.Kr.`,`m.Kr.`],abbreviated:[`o.Kr.`,`m.Kr.`],wide:[`ovdal Kristusa`,`maŋŋel Kristusa`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. kvartála`,`2. kvartála`,`3. kvartála`,`4. kvartála`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`O`,`G`,`N`,`C`,`M`,`G`,`S`,`B`,`Č`,`G`,`S`,`J`],abbreviated:[`ođđa`,`guov`,`njuk`,`cuo`,`mies`,`geas`,`suoi`,`borg`,`čakč`,`golg`,`skáb`,`juov`],wide:[`ođđajagemánnu`,`guovvamánnu`,`njukčamánnu`,`cuoŋománnu`,`miessemánnu`,`geassemánnu`,`suoidnemánnu`,`borgemánnu`,`čakčamánnu`,`golggotmánnu`,`skábmamánnu`,`juovlamánnu`]},defaultWidth:`wide`}),day:f({values:{narrow:[`S`,`V`,`M`,`G`,`D`,`B`,`L`],short:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],abbreviated:[`sotn`,`vuos`,`maŋ`,`gask`,`duor`,`bear`,`láv`],wide:[`sotnabeaivi`,`vuossárga`,`maŋŋebárga`,`gaskavahkku`,`duorastat`,`bearjadat`,`lávvardat`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`a`,pm:`p`,midnight:`gaskaidja`,noon:`gaskabeaivi`,morning:`iđđes`,afternoon:`maŋŋel gaska.`,evening:`eahkes`,night:`ihkku`},abbreviated:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeaivvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabea.`,evening:`eahkes`,night:`ihkku`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`gaskaidja`,noon:`gaskabeavvi`,morning:`iđđes`,afternoon:`maŋŋel gaskabeaivvi`,evening:`eahkes`,night:`ihkku`}},defaultWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`se`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^o/i,/^m/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{se:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk.cjs b/node_modules/date-fns/locale/sk.cjs new file mode 100644 index 000000000..bf43c6544 --- /dev/null +++ b/node_modules/date-fns/locale/sk.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sk = void 0; +var _index = require("./sk/_lib/formatDistance.cjs"); +var _index2 = require("./sk/_lib/formatLong.cjs"); +var _index3 = require("./sk/_lib/formatRelative.cjs"); +var _index4 = require("./sk/_lib/localize.cjs"); +var _index5 = require("./sk/_lib/match.cjs"); + +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +const sk = (exports.sk = { + code: "sk", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/sk.d.cts b/node_modules/date-fns/locale/sk.d.cts new file mode 100644 index 000000000..793efb1f1 --- /dev/null +++ b/node_modules/date-fns/locale/sk.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export declare const sk: Locale; diff --git a/node_modules/date-fns/locale/sk.d.ts b/node_modules/date-fns/locale/sk.d.ts new file mode 100644 index 000000000..793efb1f1 --- /dev/null +++ b/node_modules/date-fns/locale/sk.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export declare const sk: Locale; diff --git a/node_modules/date-fns/locale/sk.js b/node_modules/date-fns/locale/sk.js new file mode 100644 index 000000000..5739830e5 --- /dev/null +++ b/node_modules/date-fns/locale/sk.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sk/_lib/formatDistance.js"; +import { formatLong } from "./sk/_lib/formatLong.js"; +import { formatRelative } from "./sk/_lib/formatRelative.js"; +import { localize } from "./sk/_lib/localize.js"; +import { match } from "./sk/_lib/match.js"; + +/** + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) + */ +export const sk = { + code: "sk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default sk; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs new file mode 100644 index 000000000..bb1d8669e --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.cjs @@ -0,0 +1,230 @@ +"use strict"; +exports.formatDistance = void 0; + +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } + + // if count === null || count === 0 || count >= 5 + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = group[time]; + return finalText.replace("{{count}}", String(count)); +} + +function extractPreposition(token) { + const result = ["lessThan", "about", "over", "almost"].filter( + function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + }, + ); + + return result[0]; +} + +function prefixPreposition(preposition) { + let translation = ""; + + if (preposition === "almost") { + translation = "takmer"; + } + + if (preposition === "about") { + translation = "približne"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function suffixPreposition(preposition) { + let translation = ""; + + if (preposition === "lessThan") { + translation = "menej než"; + } + + if (preposition === "over") { + translation = "viac než"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +const formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu", + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy", + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd", + }, + }, + + halfAMinute: { + other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty", + }, + }, + + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu", + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty", + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút", + }, + }, + + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu", + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny", + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín", + }, + }, + + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň", + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni", + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní", + }, + }, + + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň", + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne", + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov", + }, + }, + + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac", + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace", + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov", + }, + }, + + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok", + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky", + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov", + }, + }, +}; + +const formatDistance = (token, count, options) => { + const preposition = extractPreposition(token) || ""; + const key = lowercaseFirstLetter(token.substring(preposition.length)); + const scheme = formatDistanceLocale[key]; + + if (!options?.addSuffix) { + return ( + prefixPreposition(preposition) + + suffixPreposition(preposition) + + declension(scheme, count, "present") + ); + } + + if (options.comparison && options.comparison > 0) { + return ( + prefixPreposition(preposition) + + "o " + + suffixPreposition(preposition) + + declension(scheme, count, "future") + ); + } else { + return ( + prefixPreposition(preposition) + + "pred " + + suffixPreposition(preposition) + + declension(scheme, count, "past") + ); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance.js b/node_modules/date-fns/locale/sk/_lib/formatDistance.js new file mode 100644 index 000000000..8e2813cbe --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance.js @@ -0,0 +1,226 @@ +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } + + // if count === null || count === 0 || count >= 5 + return scheme.other; +} + +function declension(scheme, count, time) { + const group = declensionGroup(scheme, count); + const finalText = group[time]; + return finalText.replace("{{count}}", String(count)); +} + +function extractPreposition(token) { + const result = ["lessThan", "about", "over", "almost"].filter( + function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + }, + ); + + return result[0]; +} + +function prefixPreposition(preposition) { + let translation = ""; + + if (preposition === "almost") { + translation = "takmer"; + } + + if (preposition === "about") { + translation = "približne"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function suffixPreposition(preposition) { + let translation = ""; + + if (preposition === "lessThan") { + translation = "menej než"; + } + + if (preposition === "over") { + translation = "viac než"; + } + + return translation.length > 0 ? translation + " " : ""; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +const formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu", + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy", + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd", + }, + }, + + halfAMinute: { + other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty", + }, + }, + + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu", + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty", + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút", + }, + }, + + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu", + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny", + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín", + }, + }, + + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň", + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni", + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní", + }, + }, + + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň", + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne", + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov", + }, + }, + + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac", + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace", + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov", + }, + }, + + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok", + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky", + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const preposition = extractPreposition(token) || ""; + const key = lowercaseFirstLetter(token.substring(preposition.length)); + const scheme = formatDistanceLocale[key]; + + if (!options?.addSuffix) { + return ( + prefixPreposition(preposition) + + suffixPreposition(preposition) + + declension(scheme, count, "present") + ); + } + + if (options.comparison && options.comparison > 0) { + return ( + prefixPreposition(preposition) + + "o " + + suffixPreposition(preposition) + + declension(scheme, count, "future") + ); + } else { + return ( + prefixPreposition(preposition) + + "pred " + + suffixPreposition(preposition) + + declension(scheme, count, "past") + ); + } +}; diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.cjs b/node_modules/date-fns/locale/sk/_lib/formatLong.cjs new file mode 100644 index 000000000..fe0359f9a --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. M. y", + short: "d. M. y", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 +const dateTimeFormats = { + full: "{{date}}, {{time}}", + long: "{{date}}, {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sk/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sk/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong.js b/node_modules/date-fns/locale/sk/_lib/formatLong.js new file mode 100644 index 000000000..e3139c0a6 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong.js @@ -0,0 +1,42 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 +const dateFormats = { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. M. y", + short: "d. M. y", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 +const timeFormats = { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm", +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 +const dateTimeFormats = { + full: "{{date}}, {{time}}", + long: "{{date}}, {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sk/_lib/formatRelative.cjs new file mode 100644 index 000000000..23411a1d5 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.cjs @@ -0,0 +1,84 @@ +"use strict"; +exports.formatRelative = void 0; +var _index = require("../../../isSameWeek.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +const accusativeWeekdays = [ + "nedeľu", + "pondelok", + "utorok", + "stredu", + "štvrtok", + "piatok", + "sobotu", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 3: /* Wed */ + case 6 /* Sat */: + return "'minulú " + weekday + " o' p"; + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 4 /* Thu */) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 4: /* Wed */ + case 6 /* Sat */: + return "'budúcu " + weekday + " o' p"; + default: + return "'budúci' eeee 'o' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if ((0, _index.isSameWeek)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative.js b/node_modules/date-fns/locale/sk/_lib/formatRelative.js new file mode 100644 index 000000000..8b6032fb7 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative.js @@ -0,0 +1,81 @@ +import { isSameWeek } from "../../../isSameWeek.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +const accusativeWeekdays = [ + "nedeľu", + "pondelok", + "utorok", + "stredu", + "štvrtok", + "piatok", + "sobotu", +]; + +function lastWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 3: /* Wed */ + case 6 /* Sat */: + return "'minulú " + weekday + " o' p"; + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + const weekday = accusativeWeekdays[day]; + + if (day === 4 /* Thu */) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function nextWeek(day) { + const weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: /* Sun */ + case 4: /* Wed */ + case 6 /* Sat */: + return "'budúcu " + weekday + " o' p"; + default: + return "'budúci' eeee 'o' p"; + } +} + +const formatRelativeLocale = { + lastWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: (date, baseDate, options) => { + const day = date.getDay(); + if (isSameWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } + }, + other: "P", +}; + +export const formatRelative = (token, date, baseDate, options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date, baseDate, options); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/sk/_lib/localize.cjs b/node_modules/date-fns/locale/sk/_lib/localize.cjs new file mode 100644 index 000000000..043f5f062 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.cjs @@ -0,0 +1,205 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 +const eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december", + ], +}; +const formattingMonthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 +const dayValues = { + narrow: ["n", "p", "u", "s", "š", "p", "s"], + short: ["ne", "po", "ut", "st", "št", "pi", "so"], + abbreviated: ["ne", "po", "ut", "st", "št", "pi", "so"], + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sk/_lib/localize.d.cts b/node_modules/date-fns/locale/sk/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sk/_lib/localize.d.ts b/node_modules/date-fns/locale/sk/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sk/_lib/localize.js b/node_modules/date-fns/locale/sk/_lib/localize.js new file mode 100644 index 000000000..c4ace32e4 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize.js @@ -0,0 +1,203 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 +const eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december", + ], +}; +const formattingMonthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 +const dayValues = { + narrow: ["n", "p", "u", "s", "š", "p", "s"], + short: ["ne", "po", "ut", "st", "št", "pi", "so"], + abbreviated: ["ne", "po", "ut", "st", "št", "pi", "so"], + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota", + ], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n.", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sk/_lib/match.cjs b/node_modules/date-fns/locale/sk/_lib/match.cjs new file mode 100644 index 000000000..f287cddf6 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/match.cjs @@ -0,0 +1,138 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: + /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sk/_lib/match.d.cts b/node_modules/date-fns/locale/sk/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sk/_lib/match.d.ts b/node_modules/date-fns/locale/sk/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sk/_lib/match.js b/node_modules/date-fns/locale/sk/_lib/match.js new file mode 100644 index 000000000..1f03a7702 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/match.js @@ -0,0 +1,135 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\.?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: + /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sk/cdn.js b/node_modules/date-fns/locale/sk/cdn.js new file mode 100644 index 000000000..0ff71d1aa --- /dev/null +++ b/node_modules/date-fns/locale/sk/cdn.js @@ -0,0 +1,951 @@ +(() => { +var _window$dateFns;function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}function _slicedToArray(r, e) {return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r, a) {if (r) {if ("string" == typeof r) return _arrayLikeToArray(r, a);var t = {}.toString.call(r).slice(8, -1);return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;}}function _arrayLikeToArray(r, a) {(null == a || a > r.length) && (a = r.length);for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];return n;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(r) {if (Array.isArray(r)) return r;}function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);} //#region dist/date-fns/locale/sk/_lib/formatDistance.js +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) return scheme.one; + if (count >= 2 && count <= 4 && scheme.twoFour) return scheme.twoFour; + return scheme.other; +} +function declension(scheme, count, time) { + return declensionGroup(scheme, count)[time].replace("{{count}}", String(count)); +} +function extractPreposition(token) { + return [ + "lessThan", + "about", + "over", + "almost"]. + filter(function (preposition) { + return !!token.match(new RegExp("^" + preposition)); + })[0]; +} +function prefixPreposition(preposition) { + var translation = ""; + if (preposition === "almost") translation = "takmer"; + if (preposition === "about") translation = "približne"; + return translation.length > 0 ? translation + " " : ""; +} +function suffixPreposition(preposition) { + var translation = ""; + if (preposition === "lessThan") translation = "menej než"; + if (preposition === "over") translation = "viac než"; + return translation.length > 0 ? translation + " " : ""; +} +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} +var formatDistanceLocale = { + xSeconds: { + one: { + present: "sekunda", + past: "sekundou", + future: "sekundu" + }, + twoFour: { + present: "{{count}} sekundy", + past: "{{count}} sekundami", + future: "{{count}} sekundy" + }, + other: { + present: "{{count}} sekúnd", + past: "{{count}} sekundami", + future: "{{count}} sekúnd" + } + }, + halfAMinute: { other: { + present: "pol minúty", + past: "pol minútou", + future: "pol minúty" + } }, + xMinutes: { + one: { + present: "minúta", + past: "minútou", + future: "minútu" + }, + twoFour: { + present: "{{count}} minúty", + past: "{{count}} minútami", + future: "{{count}} minúty" + }, + other: { + present: "{{count}} minút", + past: "{{count}} minútami", + future: "{{count}} minút" + } + }, + xHours: { + one: { + present: "hodina", + past: "hodinou", + future: "hodinu" + }, + twoFour: { + present: "{{count}} hodiny", + past: "{{count}} hodinami", + future: "{{count}} hodiny" + }, + other: { + present: "{{count}} hodín", + past: "{{count}} hodinami", + future: "{{count}} hodín" + } + }, + xDays: { + one: { + present: "deň", + past: "dňom", + future: "deň" + }, + twoFour: { + present: "{{count}} dni", + past: "{{count}} dňami", + future: "{{count}} dni" + }, + other: { + present: "{{count}} dní", + past: "{{count}} dňami", + future: "{{count}} dní" + } + }, + xWeeks: { + one: { + present: "týždeň", + past: "týždňom", + future: "týždeň" + }, + twoFour: { + present: "{{count}} týždne", + past: "{{count}} týždňami", + future: "{{count}} týždne" + }, + other: { + present: "{{count}} týždňov", + past: "{{count}} týždňami", + future: "{{count}} týždňov" + } + }, + xMonths: { + one: { + present: "mesiac", + past: "mesiacom", + future: "mesiac" + }, + twoFour: { + present: "{{count}} mesiace", + past: "{{count}} mesiacmi", + future: "{{count}} mesiace" + }, + other: { + present: "{{count}} mesiacov", + past: "{{count}} mesiacmi", + future: "{{count}} mesiacov" + } + }, + xYears: { + one: { + present: "rok", + past: "rokom", + future: "rok" + }, + twoFour: { + present: "{{count}} roky", + past: "{{count}} rokmi", + future: "{{count}} roky" + }, + other: { + present: "{{count}} rokov", + past: "{{count}} rokmi", + future: "{{count}} rokov" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var preposition = extractPreposition(token) || ""; + var scheme = formatDistanceLocale[lowercaseFirstLetter(token.substring(preposition.length))]; + if (!(options !== null && options !== void 0 && options.addSuffix)) return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, "present"); + if (options.comparison && options.comparison > 0) return prefixPreposition(preposition) + "o " + suffixPreposition(preposition) + declension(scheme, count, "future");else + return prefixPreposition(preposition) + "pred " + suffixPreposition(preposition) + declension(scheme, count, "past"); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d. MMMM y", + long: "d. MMMM y", + medium: "d. M. y", + short: "d. M. y" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss zzzz", + long: "H:mm:ss z", + medium: "H:mm:ss", + short: "H:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}}, {{time}}", + long: "{{date}}, {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3); +/** +* @constant +* @name constructFromSymbol +* @summary Symbol enabling Date extensions to inherit properties from the reference date. +* +* The symbol is used to enable the `constructFrom` function to construct a date +* using a reference date and a value. It allows to transfer extra properties +* from the reference date to the new date. It's useful for extensions like +* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as +* a constructor argument. +*/ +var constructFromSymbol = Symbol.for("constructDateFrom"); +//#endregion +//#region dist/date-fns/constructFrom.js +/** +* @name constructFrom +* @category Generic Helpers +* @summary Constructs a date using the reference date and the value +* +* @description +* The function constructs a new date using the constructor from the reference +* date and the given value. It helps to build generic functions that accept +* date extensions. +* +* It defaults to `Date` if the passed reference date is a number or a string. +* +* Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* +* @param date - The reference date to take constructor from +* @param value - The value to create the date +* +* @returns Date initialized using the given date and value +* +* @example +* import { constructFrom } from "./constructFrom/date-fns"; +* +* // A function that clones a date preserving the original type +* function cloneDate(date: DateType): DateType { +* return constructFrom( +* date, // Use constructor from the given date +* date.getTime() // Use the date value to create a new date +* ); +* } +*/ +function constructFrom(date, value) { + if (typeof date === "function") return date(value); + if (date && _typeof(date) === "object" && constructFromSymbol in date) return date[constructFromSymbol](value); + if (date instanceof Date) return new date.constructor(value); + return new Date(value); +} +//#endregion +//#region dist/date-fns/_lib/normalizeDates.js +function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];} + var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";})); + return dates.map(normalize); +} +//#endregion +//#region dist/date-fns/_lib/defaultOptions.js +var defaultOptions = {}; +function getDefaultOptions() { + return defaultOptions; +} +//#endregion +//#region dist/date-fns/toDate.js +/** +* @name toDate +* @category Common Helpers +* @summary Convert the given argument to an instance of Date. +* +* @description +* Convert the given argument to an instance of Date. +* +* If the argument is an instance of Date, the function returns its clone. +* +* If the argument is a number, it is treated as a timestamp. +* +* If the argument is none of the above, the function returns Invalid Date. +* +* Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]` +* enabling to transfer extra properties from the reference date to the new date. +* It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz) +* that accept a time zone as a constructor argument. +* +* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param argument - The value to convert +* +* @returns The parsed date in the local time zone +* +* @example +* // Clone the date: +* const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) +* //=> Tue Feb 11 2014 11:30:30 +* +* @example +* // Convert the timestamp to date: +* const result = toDate(1392098430000) +* //=> Tue Feb 11 2014 11:30:30 +*/ +function toDate(argument, context) { + return constructFrom(context || argument, argument); +} +//#endregion +//#region dist/date-fns/startOfWeek.js +/** +* The {@link startOfWeek} function options. +*/ +/** +* @name startOfWeek +* @category Week Helpers +* @summary Return the start of a week for the given date. +* +* @description +* Return the start of a week for the given date. +* The result will be in the local timezone. +* +* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). +* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments. +* +* @param date - The original date +* @param options - An object with options +* +* @returns The start of a week +* +* @example +* // The start of a week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) +* //=> Sun Aug 31 2014 00:00:00 +* +* @example +* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: +* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) +* //=> Mon Sep 01 2014 00:00:00 +*/ +function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions$local; + var defaultOptions = getDefaultOptions(); + var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 || (_defaultOptions$local = _defaultOptions$local.options) === null || _defaultOptions$local === void 0 ? void 0 : _defaultOptions$local.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0; + var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in); + var day = _date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + _date.setDate(_date.getDate() - diff); + _date.setHours(0, 0, 0, 0); + return _date; +} +//#endregion +//#region dist/date-fns/isSameWeek.js +/** +* The {@link isSameWeek} function options. +*/ +/** +* @name isSameWeek +* @category Week Helpers +* @summary Are the given dates in the same week (and month and year)? +* +* @description +* Are the given dates in the same week (and month and year)? +* +* @param laterDate - The first date to check +* @param earlierDate - The second date to check +* @param options - An object with options +* +* @returns The dates are in the same week (and month and year) +* +* @example +* // Are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) +* //=> true +* +* @example +* // If week starts with Monday, +* // are 31 August 2014 and 4 September 2014 in the same week? +* const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { +* weekStartsOn: 1 +* }) +* //=> false +* +* @example +* // Are 1 January 2014 and 1 January 2015 in the same week? +* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) +* //=> false +*/ +function isSameWeek(laterDate, earlierDate, options) { + var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1]; + return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options); +} +//#endregion +//#region dist/date-fns/locale/sk/_lib/formatRelative.js +var accusativeWeekdays = [ +"nedeľu", +"pondelok", +"utorok", +"stredu", +"štvrtok", +"piatok", +"sobotu"]; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 3: + case 6:return "'minulú " + weekday + " o' p"; + default:return "'minulý' eeee 'o' p"; + } +} +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + if (day === 4) return "'vo' eeee 'o' p";else + return "'v " + weekday + " o' p"; +} +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + switch (day) { + case 0: + case 4: + case 6:return "'budúcu " + weekday + " o' p"; + default:return "'budúci' eeee 'o' p"; + } +} +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _lastWeek(day); + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getDay(); + if (isSameWeek(date, baseDate, options)) return thisWeek(day);else + return _nextWeek(day); + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date, baseDate, options); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sk/_lib/localize.js +var eraValues = { + narrow: ["pred Kr.", "po Kr."], + abbreviated: ["pred Kr.", "po Kr."], + wide: ["pred Kristom", "po Kristovi"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1. štvrťrok", + "2. štvrťrok", + "3. štvrťrok", + "4. štvrťrok"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "január", + "február", + "marec", + "apríl", + "máj", + "jún", + "júl", + "august", + "september", + "október", + "november", + "december"] + +}; +var formattingMonthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "máj", + "jún", + "júl", + "aug", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januára", + "februára", + "marca", + "apríla", + "mája", + "júna", + "júla", + "augusta", + "septembra", + "októbra", + "novembra", + "decembra"] + +}; +var dayValues = { + narrow: [ + "n", + "p", + "u", + "s", + "š", + "p", + "s"], + + short: [ + "ne", + "po", + "ut", + "st", + "št", + "pi", + "so"], + + abbreviated: [ + "ne", + "po", + "ut", + "st", + "št", + "pi", + "so"], + + wide: [ + "nedeľa", + "pondelok", + "utorok", + "streda", + "štvrtok", + "piatok", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "noc" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "poln.", + noon: "pol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "noc" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "polnoc", + noon: "poludnie", + morning: "ráno", + afternoon: "popoludnie", + evening: "večer", + night: "noc" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "nap.", + morning: "ráno", + afternoon: "pop.", + evening: "več.", + night: "v n." + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "o poln.", + noon: "napol.", + morning: "ráno", + afternoon: "popol.", + evening: "večer", + night: "v noci" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "o polnoci", + noon: "napoludnie", + morning: "ráno", + afternoon: "popoludní", + evening: "večer", + night: "v noci" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sk.js +/** +* @category Locales +* @summary Slovak locale. +* @language Slovak +* @iso-639-2 slk +* @author Marek Suscak [@mareksuscak](https://github.com/mareksuscak) +*/ +var sk = { + code: "sk", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\.?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|n)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^m[áa]j/i, + /^j[úu]n/i, + /^j[úu]l/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^u/i, + /^s/i, + /^š/i, + /^p/i, + /^s/i], + + any: [ + /^n/i, + /^po/i, + /^u/i, + /^st/i, + /^(št|stv)/i, + /^pi/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sk/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + sk: sk }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/cdn.min.js b/node_modules/date-fns/locale/sk/cdn.min.js new file mode 100644 index 000000000..e41244c00 --- /dev/null +++ b/node_modules/date-fns/locale/sk/cdn.min.js @@ -0,0 +1,2 @@ +(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=2&&t<=4&&e.twoFour?e.twoFour:e.other}function p(e,t,n){return f(e,t)[n].replace(`{{count}}`,String(t))}function m(e){return[`lessThan`,`about`,`over`,`almost`].filter(function(t){return!!e.match(RegExp(`^`+t))})[0]}function h(e){var t=``;return e===`almost`&&(t=`takmer`),e===`about`&&(t=`približne`),t.length>0?t+` `:``}function g(e){var t=``;return e===`lessThan`&&(t=`menej než`),e===`over`&&(t=`viac než`),t.length>0?t+` `:``}function _(e){return e.charAt(0).toLowerCase()+e.slice(1)}var v={xSeconds:{one:{present:`sekunda`,past:`sekundou`,future:`sekundu`},twoFour:{present:`{{count}} sekundy`,past:`{{count}} sekundami`,future:`{{count}} sekundy`},other:{present:`{{count}} sekúnd`,past:`{{count}} sekundami`,future:`{{count}} sekúnd`}},halfAMinute:{other:{present:`pol minúty`,past:`pol minútou`,future:`pol minúty`}},xMinutes:{one:{present:`minúta`,past:`minútou`,future:`minútu`},twoFour:{present:`{{count}} minúty`,past:`{{count}} minútami`,future:`{{count}} minúty`},other:{present:`{{count}} minút`,past:`{{count}} minútami`,future:`{{count}} minút`}},xHours:{one:{present:`hodina`,past:`hodinou`,future:`hodinu`},twoFour:{present:`{{count}} hodiny`,past:`{{count}} hodinami`,future:`{{count}} hodiny`},other:{present:`{{count}} hodín`,past:`{{count}} hodinami`,future:`{{count}} hodín`}},xDays:{one:{present:`deň`,past:`dňom`,future:`deň`},twoFour:{present:`{{count}} dni`,past:`{{count}} dňami`,future:`{{count}} dni`},other:{present:`{{count}} dní`,past:`{{count}} dňami`,future:`{{count}} dní`}},xWeeks:{one:{present:`týždeň`,past:`týždňom`,future:`týždeň`},twoFour:{present:`{{count}} týždne`,past:`{{count}} týždňami`,future:`{{count}} týždne`},other:{present:`{{count}} týždňov`,past:`{{count}} týždňami`,future:`{{count}} týždňov`}},xMonths:{one:{present:`mesiac`,past:`mesiacom`,future:`mesiac`},twoFour:{present:`{{count}} mesiace`,past:`{{count}} mesiacmi`,future:`{{count}} mesiace`},other:{present:`{{count}} mesiacov`,past:`{{count}} mesiacmi`,future:`{{count}} mesiacov`}},xYears:{one:{present:`rok`,past:`rokom`,future:`rok`},twoFour:{present:`{{count}} roky`,past:`{{count}} rokmi`,future:`{{count}} roky`},other:{present:`{{count}} rokov`,past:`{{count}} rokmi`,future:`{{count}} rokov`}}},y=function(e,t,n){var r=m(e)||``,i=v[_(e.substring(r.length))];return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?h(r)+`o `+g(r)+p(i,t,`future`):h(r)+`pred `+g(r)+p(i,t,`past`):h(r)+g(r)+p(i,t,`present`)};function b(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var x={date:b({formats:{full:`EEEE d. MMMM y`,long:`d. MMMM y`,medium:`d. M. y`,short:`d. M. y`},defaultWidth:`full`}),time:b({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}}, {{time}}`,long:`{{date}}, {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},S=Symbol.for(`constructDateFrom`);function C(e,t){return typeof e==`function`?e(t):e&&d(e)===`object`&&S in e?e[S](t):e instanceof Date?new e.constructor(t):new Date(t)}function w(e){var t=[...arguments].slice(1),n=C.bind(null,e||t.find(function(e){return d(e)===`object`}));return t.map(n)}var T={};function E(){return T}function D(e,t){return C(t||e,e)}function O(e,t){var n,r,i=E(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=D(e,t?.in),s=o.getDay(),c=(s1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?B(s,function(e){return e.test(o)}):z(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function z(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function B(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var H={code:`sk`,formatDistance:y,formatLong:x,formatRelative:F,localize:L,match:{ordinalNumber:V({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:R({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:`any`}),quarter:R({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:R({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:R({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:R({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=t(t({},window.dateFns),{},{locale:t(t({},window.dateFns?.locale),{},{sk:H})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl.cjs b/node_modules/date-fns/locale/sl.cjs new file mode 100644 index 000000000..64e077653 --- /dev/null +++ b/node_modules/date-fns/locale/sl.cjs @@ -0,0 +1,28 @@ +"use strict"; +exports.sl = void 0; +var _index = require("./sl/_lib/formatDistance.cjs"); +var _index2 = require("./sl/_lib/formatLong.cjs"); +var _index3 = require("./sl/_lib/formatRelative.cjs"); +var _index4 = require("./sl/_lib/localize.cjs"); +var _index5 = require("./sl/_lib/match.cjs"); + +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +const sl = (exports.sl = { + code: "sl", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/sl.d.cts b/node_modules/date-fns/locale/sl.d.cts new file mode 100644 index 000000000..3f0adecad --- /dev/null +++ b/node_modules/date-fns/locale/sl.d.cts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export declare const sl: Locale; diff --git a/node_modules/date-fns/locale/sl.d.ts b/node_modules/date-fns/locale/sl.d.ts new file mode 100644 index 000000000..3f0adecad --- /dev/null +++ b/node_modules/date-fns/locale/sl.d.ts @@ -0,0 +1,10 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export declare const sl: Locale; diff --git a/node_modules/date-fns/locale/sl.js b/node_modules/date-fns/locale/sl.js new file mode 100644 index 000000000..a35cf04e4 --- /dev/null +++ b/node_modules/date-fns/locale/sl.js @@ -0,0 +1,29 @@ +import { formatDistance } from "./sl/_lib/formatDistance.js"; +import { formatLong } from "./sl/_lib/formatLong.js"; +import { formatRelative } from "./sl/_lib/formatRelative.js"; +import { localize } from "./sl/_lib/localize.js"; +import { match } from "./sl/_lib/match.js"; + +/** + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) + * @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) + */ +export const sl = { + code: "sl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sl; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs new file mode 100644 index 000000000..a365d0747 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.cjs @@ -0,0 +1,344 @@ +"use strict"; +exports.formatDistance = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami", + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + }, + + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami", + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + }, + + halfAMinute: "pol minute", + + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami", + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + }, + + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami", + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + }, + + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami", + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + }, + + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami", + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + }, + + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi", + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + }, + + // no tenses for weeks? + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov", + }, + + // no tenses for weeks? + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov", + }, + + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci", + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + }, + + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev", + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci", + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev", + }, + }, + + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti", + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + }, + + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti", + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + }, + + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti", + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + }, + + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti", + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + }, +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return "one"; + case 2: + return "two"; + case 3: + case 4: + return "few"; + default: + return "other"; + } +} + +const formatDistance = (token, count, options) => { + let result = ""; + let tense = "present"; + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + } + + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "string") { + result += tokenValue; + } else { + const form = getFormFromCount(count); + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace("{{count}}", String(count)); + } else { + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance.js b/node_modules/date-fns/locale/sl/_lib/formatDistance.js new file mode 100644 index 000000000..86783bafc --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance.js @@ -0,0 +1,340 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami", + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund", + }, + }, + + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami", + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund", + }, + }, + + halfAMinute: "pol minute", + + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami", + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut", + }, + }, + + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami", + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut", + }, + }, + + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami", + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur", + }, + }, + + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami", + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur", + }, + }, + + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi", + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni", + }, + }, + + // no tenses for weeks? + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov", + }, + + // no tenses for weeks? + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov", + }, + + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci", + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev", + }, + }, + + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev", + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci", + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev", + }, + }, + + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti", + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let", + }, + }, + + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti", + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let", + }, + }, + + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti", + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let", + }, + }, + + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti", + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let", + }, + }, +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return "one"; + case 2: + return "two"; + case 3: + case 4: + return "few"; + default: + return "other"; + } +} + +export const formatDistance = (token, count, options) => { + let result = ""; + let tense = "present"; + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + } + + const tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === "string") { + result += tokenValue; + } else { + const form = getFormFromCount(count); + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace("{{count}}", String(count)); + } else { + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.cjs b/node_modules/date-fns/locale/sl/_lib/formatLong.cjs new file mode 100644 index 000000000..13a095ea8 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, dd. MMMM y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sl/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sl/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong.js b/node_modules/date-fns/locale/sl/_lib/formatLong.js new file mode 100644 index 000000000..69c813921 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, dd. MMMM y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sl/_lib/formatRelative.cjs new file mode 100644 index 000000000..01d4c7b73 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + case 3: + return "'prejšnjo sredo ob' p"; + case 6: + return "'prejšnjo soboto ob' p"; + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + case 3: + return "'naslednjo sredo ob' p"; + case 6: + return "'naslednjo soboto ob' p"; + default: + return "'naslednji' EEEE 'ob' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative.js b/node_modules/date-fns/locale/sl/_lib/formatRelative.js new file mode 100644 index 000000000..fde7a6cf9 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative.js @@ -0,0 +1,44 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + case 3: + return "'prejšnjo sredo ob' p"; + case 6: + return "'prejšnjo soboto ob' p"; + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + case 3: + return "'naslednjo sredo ob' p"; + case 6: + return "'naslednjo soboto ob' p"; + default: + return "'naslednji' EEEE 'ob' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/sl/_lib/localize.cjs b/node_modules/date-fns/locale/sl/_lib/localize.cjs new file mode 100644 index 000000000..c8fd86d9d --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."], + wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["n", "p", "t", "s", "č", "p", "s"], + short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sl/_lib/localize.d.cts b/node_modules/date-fns/locale/sl/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sl/_lib/localize.d.ts b/node_modules/date-fns/locale/sl/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sl/_lib/localize.js b/node_modules/date-fns/locale/sl/_lib/localize.js new file mode 100644 index 000000000..2fdbf1662 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize.js @@ -0,0 +1,165 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1. čet.", "2. čet.", "3. čet.", "4. čet."], + wide: ["1. četrtletje", "2. četrtletje", "3. četrtletje", "4. četrtletje"], +}; + +const monthValues = { + narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"], + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["n", "p", "t", "s", "č", "p", "s"], + short: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + abbreviated: ["ned.", "pon.", "tor.", "sre.", "čet.", "pet.", "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po", + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči", + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sl/_lib/match.cjs b/node_modules/date-fns/locale/sl/_lib/match.cjs new file mode 100644 index 000000000..362f59035 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.cjs @@ -0,0 +1,160 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + 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, + ], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i, + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sl/_lib/match.d.cts b/node_modules/date-fns/locale/sl/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sl/_lib/match.d.ts b/node_modules/date-fns/locale/sl/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sl/_lib/match.js b/node_modules/date-fns/locale/sl/_lib/match.js new file mode 100644 index 000000000..b3d167aff --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match.js @@ -0,0 +1,157 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + 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, + ], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i, +}; +const parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i, +}; +const parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i, + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "wide", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sl/cdn.js b/node_modules/date-fns/locale/sl/cdn.js new file mode 100644 index 000000000..966fd808e --- /dev/null +++ b/node_modules/date-fns/locale/sl/cdn.js @@ -0,0 +1,850 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/sl/_lib/formatDistance.js +function isPluralType(val) { + return val.one !== void 0; +} +var formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: "manj kot {{count}} sekunda", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund" + }, + past: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundama", + few: "manj kot {{count}} sekundami", + other: "manj kot {{count}} sekundami" + }, + future: { + one: "manj kot {{count}} sekundo", + two: "manj kot {{count}} sekundi", + few: "manj kot {{count}} sekunde", + other: "manj kot {{count}} sekund" + } + }, + xSeconds: { + present: { + one: "{{count}} sekunda", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund" + }, + past: { + one: "{{count}} sekundo", + two: "{{count}} sekundama", + few: "{{count}} sekundami", + other: "{{count}} sekundami" + }, + future: { + one: "{{count}} sekundo", + two: "{{count}} sekundi", + few: "{{count}} sekunde", + other: "{{count}} sekund" + } + }, + halfAMinute: "pol minute", + lessThanXMinutes: { + present: { + one: "manj kot {{count}} minuta", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut" + }, + past: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minutama", + few: "manj kot {{count}} minutami", + other: "manj kot {{count}} minutami" + }, + future: { + one: "manj kot {{count}} minuto", + two: "manj kot {{count}} minuti", + few: "manj kot {{count}} minute", + other: "manj kot {{count}} minut" + } + }, + xMinutes: { + present: { + one: "{{count}} minuta", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut" + }, + past: { + one: "{{count}} minuto", + two: "{{count}} minutama", + few: "{{count}} minutami", + other: "{{count}} minutami" + }, + future: { + one: "{{count}} minuto", + two: "{{count}} minuti", + few: "{{count}} minute", + other: "{{count}} minut" + } + }, + aboutXHours: { + present: { + one: "približno {{count}} ura", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur" + }, + past: { + one: "približno {{count}} uro", + two: "približno {{count}} urama", + few: "približno {{count}} urami", + other: "približno {{count}} urami" + }, + future: { + one: "približno {{count}} uro", + two: "približno {{count}} uri", + few: "približno {{count}} ure", + other: "približno {{count}} ur" + } + }, + xHours: { + present: { + one: "{{count}} ura", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur" + }, + past: { + one: "{{count}} uro", + two: "{{count}} urama", + few: "{{count}} urami", + other: "{{count}} urami" + }, + future: { + one: "{{count}} uro", + two: "{{count}} uri", + few: "{{count}} ure", + other: "{{count}} ur" + } + }, + xDays: { + present: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni" + }, + past: { + one: "{{count}} dnem", + two: "{{count}} dnevoma", + few: "{{count}} dnevi", + other: "{{count}} dnevi" + }, + future: { + one: "{{count}} dan", + two: "{{count}} dni", + few: "{{count}} dni", + other: "{{count}} dni" + } + }, + aboutXWeeks: { + one: "približno {{count}} teden", + two: "približno {{count}} tedna", + few: "približno {{count}} tedne", + other: "približno {{count}} tednov" + }, + xWeeks: { + one: "{{count}} teden", + two: "{{count}} tedna", + few: "{{count}} tedne", + other: "{{count}} tednov" + }, + aboutXMonths: { + present: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev" + }, + past: { + one: "približno {{count}} mesecem", + two: "približno {{count}} mesecema", + few: "približno {{count}} meseci", + other: "približno {{count}} meseci" + }, + future: { + one: "približno {{count}} mesec", + two: "približno {{count}} meseca", + few: "približno {{count}} mesece", + other: "približno {{count}} mesecev" + } + }, + xMonths: { + present: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} meseci", + other: "{{count}} mesecev" + }, + past: { + one: "{{count}} mesecem", + two: "{{count}} mesecema", + few: "{{count}} meseci", + other: "{{count}} meseci" + }, + future: { + one: "{{count}} mesec", + two: "{{count}} meseca", + few: "{{count}} mesece", + other: "{{count}} mesecev" + } + }, + aboutXYears: { + present: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let" + }, + past: { + one: "približno {{count}} letom", + two: "približno {{count}} letoma", + few: "približno {{count}} leti", + other: "približno {{count}} leti" + }, + future: { + one: "približno {{count}} leto", + two: "približno {{count}} leti", + few: "približno {{count}} leta", + other: "približno {{count}} let" + } + }, + xYears: { + present: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let" + }, + past: { + one: "{{count}} letom", + two: "{{count}} letoma", + few: "{{count}} leti", + other: "{{count}} leti" + }, + future: { + one: "{{count}} leto", + two: "{{count}} leti", + few: "{{count}} leta", + other: "{{count}} let" + } + }, + overXYears: { + present: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let" + }, + past: { + one: "več kot {{count}} letom", + two: "več kot {{count}} letoma", + few: "več kot {{count}} leti", + other: "več kot {{count}} leti" + }, + future: { + one: "več kot {{count}} leto", + two: "več kot {{count}} leti", + few: "več kot {{count}} leta", + other: "več kot {{count}} let" + } + }, + almostXYears: { + present: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let" + }, + past: { + one: "skoraj {{count}} letom", + two: "skoraj {{count}} letoma", + few: "skoraj {{count}} leti", + other: "skoraj {{count}} leti" + }, + future: { + one: "skoraj {{count}} leto", + two: "skoraj {{count}} leti", + few: "skoraj {{count}} leta", + other: "skoraj {{count}} let" + } + } +}; +function getFormFromCount(count) { + switch (count % 100) { + case 1:return "one"; + case 2:return "two"; + case 3: + case 4:return "few"; + default:return "other"; + } +} +var formatDistance = function formatDistance(token, count, options) { + var result = ""; + var tense = "present"; + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) { + tense = "future"; + result = "čez "; + } else { + tense = "past"; + result = "pred "; + } + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result += tokenValue;else + { + var form = getFormFromCount(count); + if (isPluralType(tokenValue)) result += tokenValue[form].replace("{{count}}", String(count));else + result += tokenValue[tense][form].replace("{{count}}", String(count)); + } + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, dd. MMMM y", + long: "dd. MMMM y", + medium: "d. MMM y", + short: "d. MM. yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sl/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prejšnjo nedeljo ob' p"; + case 3:return "'prejšnjo sredo ob' p"; + case 6:return "'prejšnjo soboto ob' p"; + default:return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'naslednjo nedeljo ob' p"; + case 3:return "'naslednjo sredo ob' p"; + case 6:return "'naslednjo soboto ob' p"; + default:return "'naslednji' EEEE 'ob' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sl/_lib/localize.js +var eraValues = { + narrow: ["pr. n. št.", "po n. št."], + abbreviated: ["pr. n. št.", "po n. št."], + wide: ["pred našim štetjem", "po našem štetju"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1. čet.", + "2. čet.", + "3. čet.", + "4. čet."], + + wide: [ + "1. četrtletje", + "2. četrtletje", + "3. četrtletje", + "4. četrtletje"] + +}; +var monthValues = { + narrow: [ + "j", + "f", + "m", + "a", + "m", + "j", + "j", + "a", + "s", + "o", + "n", + "d"], + + abbreviated: [ + "jan.", + "feb.", + "mar.", + "apr.", + "maj", + "jun.", + "jul.", + "avg.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januar", + "februar", + "marec", + "april", + "maj", + "junij", + "julij", + "avgust", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "n", + "p", + "t", + "s", + "č", + "p", + "s"], + + short: [ + "ned.", + "pon.", + "tor.", + "sre.", + "čet.", + "pet.", + "sob."], + + abbreviated: [ + "ned.", + "pon.", + "tor.", + "sre.", + "čet.", + "pet.", + "sob."], + + wide: [ + "nedelja", + "ponedeljek", + "torek", + "sreda", + "četrtek", + "petek", + "sobota"] + +}; +var dayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "j", + afternoon: "p", + evening: "v", + night: "n" + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "poln.", + noon: "pold.", + morning: "jut.", + afternoon: "pop.", + evening: "več.", + night: "noč" + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "polnoč", + noon: "poldne", + morning: "jutro", + afternoon: "popoldne", + evening: "večer", + night: "noč" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "d", + pm: "p", + midnight: "24.00", + noon: "12.00", + morning: "zj", + afternoon: "p", + evening: "zv", + night: "po" + }, + abbreviated: { + am: "dop.", + pm: "pop.", + midnight: "opoln.", + noon: "opold.", + morning: "zjut.", + afternoon: "pop.", + evening: "zveč.", + night: "ponoči" + }, + wide: { + am: "dop.", + pm: "pop.", + midnight: "opolnoči", + noon: "opoldne", + morning: "zjutraj", + afternoon: "popoldan", + evening: "zvečer", + night: "ponoči" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sl.js +/** +* @category Locales +* @summary Slovenian locale. +* @language Slovenian +* @iso-639-2 slv +* @author Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph) +* @author Mato Žgajner [@mzgajner](https://github.com/mzgajner) +*/ +var sl = { + code: "sl", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|na[sš]em)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + 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], + + abbreviated: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + wide: [ + /^ja/i, + /^fe/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^av/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "wide" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^n/i, + /^p/i, + /^t/i, + /^s/i, + /^[cč]/i, + /^p/i, + /^s/i], + + any: [ + /^n/i, + /^po/i, + /^t/i, + /^sr/i, + /^[cč]/i, + /^pe/i, + /^so/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i + }, + defaultMatchWidth: "any", + parsePatterns: { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i + } + }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sl/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + sl: sl }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/cdn.min.js b/node_modules/date-fns/locale/sl/cdn.min.js new file mode 100644 index 000000000..989d88450 --- /dev/null +++ b/node_modules/date-fns/locale/sl/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?(i=`future`,r=`čez `):(i=`past`,r=`pred `));var a=s[e];if(typeof a==`string`)r+=a;else{var l=c(t);o(a)?r+=a[l].replace(`{{count}}`,String(t)):r+=a[i][l].replace(`{{count}}`,String(t))}return r};function u(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var d={date:u({formats:{full:`EEEE, dd. MMMM y`,long:`dd. MMMM y`,medium:`d. MMM y`,short:`d. MM. yy`},defaultWidth:`full`}),time:u({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:u({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},f={lastWeek:function(e){switch(e.getDay()){case 0:return`'prejšnjo nedeljo ob' p`;case 3:return`'prejšnjo sredo ob' p`;case 6:return`'prejšnjo soboto ob' p`;default:return`'prejšnji' EEEE 'ob' p`}},yesterday:`'včeraj ob' p`,today:`'danes ob' p`,tomorrow:`'jutri ob' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'naslednjo nedeljo ob' p`;case 3:return`'naslednjo sredo ob' p`;case 6:return`'naslednjo soboto ob' p`;default:return`'naslednji' EEEE 'ob' p`}},other:`P`},p=function(e,t,n,r){var i=f[e];return typeof i==`function`?i(t):i};function m(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var h={ordinalNumber:function(e,t){return Number(e)+`.`},era:m({values:{narrow:[`pr. n. št.`,`po n. št.`],abbreviated:[`pr. n. št.`,`po n. št.`],wide:[`pred našim štetjem`,`po našem štetju`]},defaultWidth:`wide`}),quarter:m({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1. čet.`,`2. čet.`,`3. čet.`,`4. čet.`],wide:[`1. četrtletje`,`2. četrtletje`,`3. četrtletje`,`4. četrtletje`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:m({values:{narrow:[`j`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`jan.`,`feb.`,`mar.`,`apr.`,`maj`,`jun.`,`jul.`,`avg.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januar`,`februar`,`marec`,`april`,`maj`,`junij`,`julij`,`avgust`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:m({values:{narrow:[`n`,`p`,`t`,`s`,`č`,`p`,`s`],short:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],abbreviated:[`ned.`,`pon.`,`tor.`,`sre.`,`čet.`,`pet.`,`sob.`],wide:[`nedelja`,`ponedeljek`,`torek`,`sreda`,`četrtek`,`petek`,`sobota`]},defaultWidth:`wide`}),dayPeriod:m({values:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`j`,afternoon:`p`,evening:`v`,night:`n`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`poln.`,noon:`pold.`,morning:`jut.`,afternoon:`pop.`,evening:`več.`,night:`noč`},wide:{am:`dop.`,pm:`pop.`,midnight:`polnoč`,noon:`poldne`,morning:`jutro`,afternoon:`popoldne`,evening:`večer`,night:`noč`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`d`,pm:`p`,midnight:`24.00`,noon:`12.00`,morning:`zj`,afternoon:`p`,evening:`zv`,night:`po`},abbreviated:{am:`dop.`,pm:`pop.`,midnight:`opoln.`,noon:`opold.`,morning:`zjut.`,afternoon:`pop.`,evening:`zveč.`,night:`ponoči`},wide:{am:`dop.`,pm:`pop.`,midnight:`opolnoči`,noon:`opoldne`,morning:`zjutraj`,afternoon:`popoldan`,evening:`zvečer`,night:`ponoči`}},defaultFormattingWidth:`wide`})};function g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?v(s,function(e){return e.test(o)}):_(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function _(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function v(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var b={code:`sl`,formatDistance:l,formatLong:d,formatRelative:p,localize:h,match:{ordinalNumber:y({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:g({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:`any`}),quarter:g({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:g({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{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],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`wide`}),day:g({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:`any`}),dayPeriod:g({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:`any`,parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sl:b})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq.cjs b/node_modules/date-fns/locale/sq.cjs new file mode 100644 index 000000000..f8c87e80f --- /dev/null +++ b/node_modules/date-fns/locale/sq.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sq = void 0; +var _index = require("./sq/_lib/formatDistance.cjs"); +var _index2 = require("./sq/_lib/formatLong.cjs"); +var _index3 = require("./sq/_lib/formatRelative.cjs"); +var _index4 = require("./sq/_lib/localize.cjs"); +var _index5 = require("./sq/_lib/match.cjs"); + +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +const sq = (exports.sq = { + code: "sq", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/sq.d.cts b/node_modules/date-fns/locale/sq.d.cts new file mode 100644 index 000000000..ddf981c27 --- /dev/null +++ b/node_modules/date-fns/locale/sq.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export declare const sq: Locale; diff --git a/node_modules/date-fns/locale/sq.d.ts b/node_modules/date-fns/locale/sq.d.ts new file mode 100644 index 000000000..ddf981c27 --- /dev/null +++ b/node_modules/date-fns/locale/sq.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export declare const sq: Locale; diff --git a/node_modules/date-fns/locale/sq.js b/node_modules/date-fns/locale/sq.js new file mode 100644 index 000000000..ad6fc0fc8 --- /dev/null +++ b/node_modules/date-fns/locale/sq.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sq/_lib/formatDistance.js"; +import { formatLong } from "./sq/_lib/formatLong.js"; +import { formatRelative } from "./sq/_lib/formatRelative.js"; +import { localize } from "./sq/_lib/localize.js"; +import { match } from "./sq/_lib/match.js"; + +/** + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine](https://github.com/arditdine) + */ +export const sq = { + code: "sq", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sq; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs new file mode 100644 index 000000000..4b659ce5e --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda", + }, + + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda", + }, + + halfAMinute: "gjysëm minuti", + + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta", + }, + + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë", + }, + + xHours: { + one: "1 orë", + other: "{{count}} orë", + }, + + xDays: { + one: "1 ditë", + other: "{{count}} ditë", + }, + + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë", + }, + + xWeeks: { + one: "1 javë", + other: "{{count}} javë", + }, + + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj", + }, + + xMonths: { + one: "1 muaj", + other: "{{count}} muaj", + }, + + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite", + }, + + xYears: { + one: "1 vit", + other: "{{count}} vite", + }, + + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite", + }, + + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "në " + result; + } else { + return result + " më parë"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance.js b/node_modules/date-fns/locale/sq/_lib/formatDistance.js new file mode 100644 index 000000000..190c7dffb --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda", + }, + + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda", + }, + + halfAMinute: "gjysëm minuti", + + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta", + }, + + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë", + }, + + xHours: { + one: "1 orë", + other: "{{count}} orë", + }, + + xDays: { + one: "1 ditë", + other: "{{count}} ditë", + }, + + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë", + }, + + xWeeks: { + one: "1 javë", + other: "{{count}} javë", + }, + + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj", + }, + + xMonths: { + one: "1 muaj", + other: "{{count}} muaj", + }, + + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite", + }, + + xYears: { + one: "1 vit", + other: "{{count}} vite", + }, + + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite", + }, + + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "në " + result; + } else { + return result + " më parë"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.cjs b/node_modules/date-fns/locale/sq/_lib/formatLong.cjs new file mode 100644 index 000000000..3cdd0131a --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sq/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sq/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong.js b/node_modules/date-fns/locale/sq/_lib/formatLong.js new file mode 100644 index 000000000..9e914553a --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy", +}; + +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +const dateTimeFormats = { + full: "{{date}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sq/_lib/formatRelative.cjs new file mode 100644 index 000000000..91ae1618b --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative.js b/node_modules/date-fns/locale/sq/_lib/formatRelative.js new file mode 100644 index 000000000..7d6a7483e --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/sq/_lib/localize.cjs b/node_modules/date-fns/locale/sq/_lib/localize.cjs new file mode 100644 index 000000000..e667e2034 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["4-mujori I", "4-mujori II", "4-mujori III", "4-mujori IV"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "S", "M", "P", "M", "Q", "K", "G", "S", "T", "N", "D"], + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj", + ], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor", + ], +}; + +const dayValues = { + narrow: ["D", "H", "M", "M", "E", "P", "S"], + short: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"], + abbreviated: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Sht"], + wide: ["Dielë", "Hënë", "Martë", "Mërkurë", "Enjte", "Premte", "Shtunë"], +}; + +const dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "hour") return String(number); + + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + + return number + "-të"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sq/_lib/localize.d.cts b/node_modules/date-fns/locale/sq/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sq/_lib/localize.d.ts b/node_modules/date-fns/locale/sq/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sq/_lib/localize.js b/node_modules/date-fns/locale/sq/_lib/localize.js new file mode 100644 index 000000000..7b2325933 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["4-mujori I", "4-mujori II", "4-mujori III", "4-mujori IV"], +}; + +// Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +const monthValues = { + narrow: ["J", "S", "M", "P", "M", "Q", "K", "G", "S", "T", "N", "D"], + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj", + ], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor", + ], +}; + +const dayValues = { + narrow: ["D", "H", "M", "M", "E", "P", "S"], + short: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"], + abbreviated: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Sht"], + wide: ["Dielë", "Hënë", "Martë", "Mërkurë", "Enjte", "Premte", "Shtunë"], +}; + +const dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë", + }, +}; + +const ordinalNumber = (dirtyNumber, options) => { + const number = Number(dirtyNumber); + + if (options?.unit === "hour") return String(number); + + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + + return number + "-të"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sq/_lib/match.cjs b/node_modules/date-fns/locale/sq/_lib/match.cjs new file mode 100644 index 000000000..8e3d1ff0c --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match.cjs @@ -0,0 +1,135 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(-rë|-të|t|)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(p|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sq/_lib/match.d.cts b/node_modules/date-fns/locale/sq/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sq/_lib/match.d.ts b/node_modules/date-fns/locale/sq/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sq/_lib/match.js b/node_modules/date-fns/locale/sq/_lib/match.js new file mode 100644 index 000000000..f545eca0c --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match.js @@ -0,0 +1,132 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(-rë|-të|t|)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i, +}; +const parseEraPatterns = { + any: [/^b/i, /^(p|m)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i, +}; +const parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sq/cdn.js b/node_modules/date-fns/locale/sq/cdn.js new file mode 100644 index 000000000..1848df7e0 --- /dev/null +++ b/node_modules/date-fns/locale/sq/cdn.js @@ -0,0 +1,577 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/sq/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "më pak se një sekondë", + other: "më pak se {{count}} sekonda" + }, + xSeconds: { + one: "1 sekondë", + other: "{{count}} sekonda" + }, + halfAMinute: "gjysëm minuti", + lessThanXMinutes: { + one: "më pak se një minute", + other: "më pak se {{count}} minuta" + }, + xMinutes: { + one: "1 minutë", + other: "{{count}} minuta" + }, + aboutXHours: { + one: "rreth 1 orë", + other: "rreth {{count}} orë" + }, + xHours: { + one: "1 orë", + other: "{{count}} orë" + }, + xDays: { + one: "1 ditë", + other: "{{count}} ditë" + }, + aboutXWeeks: { + one: "rreth 1 javë", + other: "rreth {{count}} javë" + }, + xWeeks: { + one: "1 javë", + other: "{{count}} javë" + }, + aboutXMonths: { + one: "rreth 1 muaj", + other: "rreth {{count}} muaj" + }, + xMonths: { + one: "1 muaj", + other: "{{count}} muaj" + }, + aboutXYears: { + one: "rreth 1 vit", + other: "rreth {{count}} vite" + }, + xYears: { + one: "1 vit", + other: "{{count}} vite" + }, + overXYears: { + one: "mbi 1 vit", + other: "mbi {{count}} vite" + }, + almostXYears: { + one: "pothuajse 1 vit", + other: "pothuajse {{count}} vite" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "në " + result;else + return result + " më parë"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, MMMM do, y", + long: "MMMM do, y", + medium: "MMM d, y", + short: "MM/dd/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sq/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sq/_lib/localize.js +var eraValues = { + narrow: ["P", "M"], + abbreviated: ["PK", "MK"], + wide: ["Para Krishtit", "Mbas Krishtit"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "4-mujori I", + "4-mujori II", + "4-mujori III", + "4-mujori IV"] + +}; +var monthValues = { + narrow: [ + "J", + "S", + "M", + "P", + "M", + "Q", + "K", + "G", + "S", + "T", + "N", + "D"], + + abbreviated: [ + "Jan", + "Shk", + "Mar", + "Pri", + "Maj", + "Qer", + "Kor", + "Gus", + "Sht", + "Tet", + "Nën", + "Dhj"], + + wide: [ + "Janar", + "Shkurt", + "Mars", + "Prill", + "Maj", + "Qershor", + "Korrik", + "Gusht", + "Shtator", + "Tetor", + "Nëntor", + "Dhjetor"] + +}; +var dayValues = { + narrow: [ + "D", + "H", + "M", + "M", + "E", + "P", + "S"], + + short: [ + "Di", + "Hë", + "Ma", + "Më", + "En", + "Pr", + "Sh"], + + abbreviated: [ + "Die", + "Hën", + "Mar", + "Mër", + "Enj", + "Pre", + "Sht"], + + wide: [ + "Dielë", + "Hënë", + "Martë", + "Mërkurë", + "Enjte", + "Premte", + "Shtunë"] + +}; +var dayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "mëngjes", + afternoon: "dite", + evening: "mbrëmje", + night: "natë" + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë" + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnëtë", + noon: "drek", + morning: "mëngjes", + afternoon: "mbasdite", + evening: "mbrëmje", + night: "natë" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "p", + pm: "m", + midnight: "m", + noon: "d", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + }, + abbreviated: { + am: "PD", + pm: "MD", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + }, + wide: { + am: "p.d.", + pm: "m.d.", + midnight: "mesnatë", + noon: "drek", + morning: "në mëngjes", + afternoon: "në mbasdite", + evening: "në mbrëmje", + night: "në mesnatë" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === "hour") return String(number); + if (number === 1) return number + "-rë"; + if (number === 4) return number + "t"; + return number + "-të"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sq.js +/** +* @category Locales +* @summary Albanian locale. +* @language Shqip +* @iso-639-2 sqi +* @author Ardit Dine [@arditdine](https://github.com/arditdine) +*/ +var sq = { + code: "sq", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(-rë|-të|t|)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^b/i, /^(p|m)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^s/i, + /^m/i, + /^p/i, + /^m/i, + /^q/i, + /^k/i, + /^g/i, + /^s/i, + /^t/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^shk/i, + /^mar/i, + /^pri/i, + /^maj/i, + /^qer/i, + /^kor/i, + /^gu/i, + /^sht/i, + /^tet/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^d/i, + /^h/i, + /^m/i, + /^m/i, + /^e/i, + /^p/i, + /^s/i], + + any: [ + /^d/i, + /^h/i, + /^ma/i, + /^më/i, + /^e/i, + /^p/i, + /^s/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sq/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + sq: sq }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/cdn.min.js b/node_modules/date-fns/locale/sq/cdn.min.js new file mode 100644 index 000000000..5bc9ec7a7 --- /dev/null +++ b/node_modules/date-fns/locale/sq/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`në `+r:r+` më parë`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'në' {{time}}`,long:`{{date}} 'në' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'të' eeee 'e shkuar në' p`,yesterday:`'dje në' p`,today:`'sot në' p`,tomorrow:`'nesër në' p`,nextWeek:`eeee 'at' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){var n=Number(e);return t?.unit===`hour`?String(n):n===1?n+`-rë`:n===4?n+`t`:n+`-të`},era:f({values:{narrow:[`P`,`M`],abbreviated:[`PK`,`MK`],wide:[`Para Krishtit`,`Mbas Krishtit`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`4-mujori I`,`4-mujori II`,`4-mujori III`,`4-mujori IV`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`J`,`S`,`M`,`P`,`M`,`Q`,`K`,`G`,`S`,`T`,`N`,`D`],abbreviated:[`Jan`,`Shk`,`Mar`,`Pri`,`Maj`,`Qer`,`Kor`,`Gus`,`Sht`,`Tet`,`Nën`,`Dhj`],wide:[`Janar`,`Shkurt`,`Mars`,`Prill`,`Maj`,`Qershor`,`Korrik`,`Gusht`,`Shtator`,`Tetor`,`Nëntor`,`Dhjetor`]},defaultWidth:`wide`}),day:f({values:{narrow:[`D`,`H`,`M`,`M`,`E`,`P`,`S`],short:[`Di`,`Hë`,`Ma`,`Më`,`En`,`Pr`,`Sh`],abbreviated:[`Die`,`Hën`,`Mar`,`Mër`,`Enj`,`Pre`,`Sht`],wide:[`Dielë`,`Hënë`,`Martë`,`Mërkurë`,`Enjte`,`Premte`,`Shtunë`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`mëngjes`,afternoon:`dite`,evening:`mbrëmje`,night:`natë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnëtë`,noon:`drek`,morning:`mëngjes`,afternoon:`mbasdite`,evening:`mbrëmje`,night:`natë`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`p`,pm:`m`,midnight:`m`,noon:`d`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},abbreviated:{am:`PD`,pm:`MD`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`},wide:{am:`p.d.`,pm:`m.d.`,midnight:`mesnatë`,noon:`drek`,morning:`në mëngjes`,afternoon:`në mbasdite`,evening:`në mbrëmje`,night:`në mesnatë`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`sq`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sq:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn.cjs b/node_modules/date-fns/locale/sr-Latn.cjs new file mode 100644 index 000000000..1cd554622 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.srLatn = void 0; +var _index = require("./sr-Latn/_lib/formatDistance.cjs"); +var _index2 = require("./sr-Latn/_lib/formatLong.cjs"); +var _index3 = require("./sr-Latn/_lib/formatRelative.cjs"); +var _index4 = require("./sr-Latn/_lib/localize.cjs"); +var _index5 = require("./sr-Latn/_lib/match.cjs"); + +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +const srLatn = (exports.srLatn = { + code: "sr-Latn", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/sr-Latn.d.cts b/node_modules/date-fns/locale/sr-Latn.d.cts new file mode 100644 index 000000000..f25c3519d --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const srLatn: Locale; diff --git a/node_modules/date-fns/locale/sr-Latn.d.ts b/node_modules/date-fns/locale/sr-Latn.d.ts new file mode 100644 index 000000000..f25c3519d --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const srLatn: Locale; diff --git a/node_modules/date-fns/locale/sr-Latn.js b/node_modules/date-fns/locale/sr-Latn.js new file mode 100644 index 000000000..b745e5a28 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sr-Latn/_lib/formatDistance.js"; +import { formatLong } from "./sr-Latn/_lib/formatLong.js"; +import { formatRelative } from "./sr-Latn/_lib/formatRelative.js"; +import { localize } from "./sr-Latn/_lib/localize.js"; +import { match } from "./sr-Latn/_lib/match.js"; + +/** + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export const srLatn = { + code: "sr-Latn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default srLatn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs new file mode 100644 index 000000000..01263d385 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju", + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje", + }, + + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju", + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec", + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci", + }, + + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec", + }, + dual: "{{count}} meseca", + other: "{{count}} meseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "pre " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.js new file mode 100644 index 000000000..63e3fd35f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu", + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi", + }, + + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu", + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi", + }, + + halfAMinute: "pola minute", + + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu", + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta", + }, + + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu", + }, + dual: "{{count}} minute", + other: "{{count}} minuta", + }, + + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat", + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati", + }, + + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat", + }, + dual: "{{count}} sata", + other: "{{count}} sati", + }, + + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan", + }, + dual: "{{count}} dana", + other: "{{count}} dana", + }, + + aboutXWeeks: { + one: { + standalone: "oko 1 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju", + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje", + }, + + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju", + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje", + }, + + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec", + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci", + }, + + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec", + }, + dual: "{{count}} meseca", + other: "{{count}} meseci", + }, + + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu", + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina", + }, + + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu", + }, + dual: "{{count}} godine", + other: "{{count}} godina", + }, + + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu", + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina", + }, + + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu", + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "za " + result; + } else { + return "pre " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs new file mode 100644 index 000000000..2099da340 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.js new file mode 100644 index 000000000..3e29d6580 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs new file mode 100644 index 000000000..e0c0b3aec --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.cjs @@ -0,0 +1,44 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedelje u' p"; + case 3: + return "'prošle srede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sledeće nedelje u' p"; + case 3: + return "'sledeću sredu u' p"; + case 6: + return "'sledeću subotu u' p"; + default: + return "'sledeći' EEEE 'u' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js new file mode 100644 index 000000000..d5892e689 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative.js @@ -0,0 +1,40 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'prošle nedelje u' p"; + case 3: + return "'prošle srede u' p"; + case 6: + return "'prošle subote u' p"; + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: (date) => { + switch (date.getDay()) { + case 0: + return "'sledeće nedelje u' p"; + case 3: + return "'sledeću sredu u' p"; + case 6: + return "'sledeću subotu u' p"; + default: + return "'sledeći' EEEE 'u' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/localize.cjs new file mode 100644 index 000000000..dd52066ef --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.cjs @@ -0,0 +1,229 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize.js b/node_modules/date-fns/locale/sr-Latn/_lib/localize.js new file mode 100644 index 000000000..ab222cee0 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."], + wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec", + ], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar", + ], +}; + +const dayValues = { + narrow: ["N", "P", "U", "S", "Č", "P", "S"], + short: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + abbreviated: ["ned", "pon", "uto", "sre", "čet", "pet", "sub"], + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match.cjs b/node_modules/date-fns/locale/sr-Latn/_lib/match.cjs new file mode 100644 index 000000000..aa9442d93 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match.d.cts b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match.d.ts b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match.js b/node_modules/date-fns/locale/sr-Latn/_lib/match.js new file mode 100644 index 000000000..3249e010b --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i, +}; +const parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i, +}; +const parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i], +}; + +const matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sr-Latn/cdn.js b/node_modules/date-fns/locale/sr-Latn/cdn.js new file mode 100644 index 000000000..14d868bab --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/cdn.js @@ -0,0 +1,712 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/sr-Latn/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "manje od 1 sekunde", + withPrepositionAgo: "manje od 1 sekunde", + withPrepositionIn: "manje od 1 sekundu" + }, + dual: "manje od {{count}} sekunde", + other: "manje od {{count}} sekundi" + }, + xSeconds: { + one: { + standalone: "1 sekunda", + withPrepositionAgo: "1 sekunde", + withPrepositionIn: "1 sekundu" + }, + dual: "{{count}} sekunde", + other: "{{count}} sekundi" + }, + halfAMinute: "pola minute", + lessThanXMinutes: { + one: { + standalone: "manje od 1 minute", + withPrepositionAgo: "manje od 1 minute", + withPrepositionIn: "manje od 1 minutu" + }, + dual: "manje od {{count}} minute", + other: "manje od {{count}} minuta" + }, + xMinutes: { + one: { + standalone: "1 minuta", + withPrepositionAgo: "1 minute", + withPrepositionIn: "1 minutu" + }, + dual: "{{count}} minute", + other: "{{count}} minuta" + }, + aboutXHours: { + one: { + standalone: "oko 1 sat", + withPrepositionAgo: "oko 1 sat", + withPrepositionIn: "oko 1 sat" + }, + dual: "oko {{count}} sata", + other: "oko {{count}} sati" + }, + xHours: { + one: { + standalone: "1 sat", + withPrepositionAgo: "1 sat", + withPrepositionIn: "1 sat" + }, + dual: "{{count}} sata", + other: "{{count}} sati" + }, + xDays: { + one: { + standalone: "1 dan", + withPrepositionAgo: "1 dan", + withPrepositionIn: "1 dan" + }, + dual: "{{count}} dana", + other: "{{count}} dana" + }, + aboutXWeeks: { + one: { + standalone: "oko 1 nedelju", + withPrepositionAgo: "oko 1 nedelju", + withPrepositionIn: "oko 1 nedelju" + }, + dual: "oko {{count}} nedelje", + other: "oko {{count}} nedelje" + }, + xWeeks: { + one: { + standalone: "1 nedelju", + withPrepositionAgo: "1 nedelju", + withPrepositionIn: "1 nedelju" + }, + dual: "{{count}} nedelje", + other: "{{count}} nedelje" + }, + aboutXMonths: { + one: { + standalone: "oko 1 mesec", + withPrepositionAgo: "oko 1 mesec", + withPrepositionIn: "oko 1 mesec" + }, + dual: "oko {{count}} meseca", + other: "oko {{count}} meseci" + }, + xMonths: { + one: { + standalone: "1 mesec", + withPrepositionAgo: "1 mesec", + withPrepositionIn: "1 mesec" + }, + dual: "{{count}} meseca", + other: "{{count}} meseci" + }, + aboutXYears: { + one: { + standalone: "oko 1 godinu", + withPrepositionAgo: "oko 1 godinu", + withPrepositionIn: "oko 1 godinu" + }, + dual: "oko {{count}} godine", + other: "oko {{count}} godina" + }, + xYears: { + one: { + standalone: "1 godina", + withPrepositionAgo: "1 godine", + withPrepositionIn: "1 godinu" + }, + dual: "{{count}} godine", + other: "{{count}} godina" + }, + overXYears: { + one: { + standalone: "preko 1 godinu", + withPrepositionAgo: "preko 1 godinu", + withPrepositionIn: "preko 1 godinu" + }, + dual: "preko {{count}} godine", + other: "preko {{count}} godina" + }, + almostXYears: { + one: { + standalone: "gotovo 1 godinu", + withPrepositionAgo: "gotovo 1 godinu", + withPrepositionIn: "gotovo 1 godinu" + }, + dual: "gotovo {{count}} godine", + other: "gotovo {{count}} godina" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) result = tokenValue.one.withPrepositionIn;else + result = tokenValue.one.withPrepositionAgo;} else + result = tokenValue.one.standalone;} else + if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") result = tokenValue.dual.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "za " + result;else + return "pre " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sr-Latn/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'prošle nedelje u' p"; + case 3:return "'prošle srede u' p"; + case 6:return "'prošle subote u' p"; + default:return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'sledeće nedelje u' p"; + case 3:return "'sledeću sredu u' p"; + case 6:return "'sledeću subotu u' p"; + default:return "'sledeći' EEEE 'u' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sr-Latn/_lib/localize.js +var eraValues = { + narrow: ["pr.n.e.", "AD"], + abbreviated: ["pr. Hr.", "po. Hr."], + wide: ["Pre Hrista", "Posle Hrista"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. kv.", + "2. kv.", + "3. kv.", + "4. kv."], + + wide: [ + "1. kvartal", + "2. kvartal", + "3. kvartal", + "4. kvartal"] + +}; +var monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "jan", + "feb", + "mar", + "apr", + "maj", + "jun", + "jul", + "avg", + "sep", + "okt", + "nov", + "dec"], + + wide: [ + "januar", + "februar", + "mart", + "april", + "maj", + "jun", + "jul", + "avgust", + "septembar", + "oktobar", + "novembar", + "decembar"] + +}; +var dayValues = { + narrow: [ + "N", + "P", + "U", + "S", + "Č", + "P", + "S"], + + short: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + abbreviated: [ + "ned", + "pon", + "uto", + "sre", + "čet", + "pet", + "sub"], + + wide: [ + "nedelja", + "ponedeljak", + "utorak", + "sreda", + "četvrtak", + "petak", + "subota"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću" + } +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "popodne", + evening: "uveče", + night: "noću" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "ponoć", + noon: "podne", + morning: "ujutru", + afternoon: "posle podne", + evening: "uveče", + night: "noću" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sr-Latn.js +/** +* @category Locales +* @summary Serbian latin locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var srLatn = { + code: "sr-Latn", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^pr/i, /^(po|nova)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^avg/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^s/i, + /^m/i, + /^t/i, + /^w/i, + /^t/i, + /^f/i, + /^s/i], + + any: [ + /^su/i, + /^m/i, + /^tu/i, + /^w/i, + /^th/i, + /^f/i, + /^sa/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sr-Latn/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + srLatn: srLatn }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/cdn.min.js b/node_modules/date-fns/locale/sr-Latn/cdn.min.js new file mode 100644 index 000000000..19c06593d --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`za `+r:`pre `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'u' {{time}}`,long:`{{date}} 'u' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 0:return`'prošle nedelje u' p`;case 3:return`'prošle srede u' p`;case 6:return`'prošle subote u' p`;default:return`'prošli' EEEE 'u' p`}},yesterday:`'juče u' p`,today:`'danas u' p`,tomorrow:`'sutra u' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'sledeće nedelje u' p`;case 3:return`'sledeću sredu u' p`;case 6:return`'sledeću subotu u' p`;default:return`'sledeći' EEEE 'u' p`}},other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`pr.n.e.`,`AD`],abbreviated:[`pr. Hr.`,`po. Hr.`],wide:[`Pre Hrista`,`Posle Hrista`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. kv.`,`2. kv.`,`3. kv.`,`4. kv.`],wide:[`1. kvartal`,`2. kvartal`,`3. kvartal`,`4. kvartal`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`jan`,`feb`,`mar`,`apr`,`maj`,`jun`,`jul`,`avg`,`sep`,`okt`,`nov`,`dec`],wide:[`januar`,`februar`,`mart`,`april`,`maj`,`jun`,`jul`,`avgust`,`septembar`,`oktobar`,`novembar`,`decembar`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`N`,`P`,`U`,`S`,`Č`,`P`,`S`],short:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],abbreviated:[`ned`,`pon`,`uto`,`sre`,`čet`,`pet`,`sub`],wide:[`nedelja`,`ponedeljak`,`utorak`,`sreda`,`četvrtak`,`petak`,`subota`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,night:`noću`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},abbreviated:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`popodne`,evening:`uveče`,night:`noću`},wide:{am:`AM`,pm:`PM`,midnight:`ponoć`,noon:`podne`,morning:`ujutru`,afternoon:`posle podne`,evening:`uveče`,night:`noću`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`sr-Latn`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{srLatn:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr.cjs b/node_modules/date-fns/locale/sr.cjs new file mode 100644 index 000000000..b5e105ed0 --- /dev/null +++ b/node_modules/date-fns/locale/sr.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.sr = void 0; +var _index = require("./sr/_lib/formatDistance.cjs"); +var _index2 = require("./sr/_lib/formatLong.cjs"); +var _index3 = require("./sr/_lib/formatRelative.cjs"); +var _index4 = require("./sr/_lib/localize.cjs"); +var _index5 = require("./sr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +const sr = (exports.sr = { + code: "sr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/sr.d.cts b/node_modules/date-fns/locale/sr.d.cts new file mode 100644 index 000000000..a9c4d650f --- /dev/null +++ b/node_modules/date-fns/locale/sr.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const sr: Locale; diff --git a/node_modules/date-fns/locale/sr.d.ts b/node_modules/date-fns/locale/sr.d.ts new file mode 100644 index 000000000..a9c4d650f --- /dev/null +++ b/node_modules/date-fns/locale/sr.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export declare const sr: Locale; diff --git a/node_modules/date-fns/locale/sr.js b/node_modules/date-fns/locale/sr.js new file mode 100644 index 000000000..672cdb853 --- /dev/null +++ b/node_modules/date-fns/locale/sr.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./sr/_lib/formatDistance.js"; +import { formatLong } from "./sr/_lib/formatLong.js"; +import { formatRelative } from "./sr/_lib/formatRelative.js"; +import { localize } from "./sr/_lib/localize.js"; +import { match } from "./sr/_lib/match.js"; + +/** + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) + */ +export const sr = { + code: "sr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default sr; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs new file mode 100644 index 000000000..3ea5b0153 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.cjs @@ -0,0 +1,194 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду", + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди", + }, + + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду", + }, + dual: "{{count}} секунде", + other: "{{count}} секунди", + }, + + halfAMinute: "пола минуте", + + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту", + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута", + }, + + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту", + }, + dual: "{{count}} минуте", + other: "{{count}} минута", + }, + + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат", + }, + dual: "око {{count}} сата", + other: "око {{count}} сати", + }, + + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат", + }, + dual: "{{count}} сата", + other: "{{count}} сати", + }, + + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан", + }, + dual: "{{count}} дана", + other: "{{count}} дана", + }, + + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу", + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље", + }, + + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу", + }, + dual: "{{count}} недеље", + other: "{{count}} недеље", + }, + + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец", + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци", + }, + + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец", + }, + dual: "{{count}} месеца", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину", + }, + dual: "око {{count}} године", + other: "око {{count}} година", + }, + + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину", + }, + dual: "{{count}} године", + other: "{{count}} година", + }, + + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину", + }, + dual: "преко {{count}} године", + other: "преко {{count}} година", + }, + + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину", + }, + dual: "готово {{count}} године", + other: "готово {{count}} година", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "за " + result; + } else { + return "пре " + result; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance.js b/node_modules/date-fns/locale/sr/_lib/formatDistance.js new file mode 100644 index 000000000..766eb08f3 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance.js @@ -0,0 +1,190 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду", + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди", + }, + + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду", + }, + dual: "{{count}} секунде", + other: "{{count}} секунди", + }, + + halfAMinute: "пола минуте", + + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту", + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута", + }, + + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту", + }, + dual: "{{count}} минуте", + other: "{{count}} минута", + }, + + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат", + }, + dual: "око {{count}} сата", + other: "око {{count}} сати", + }, + + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат", + }, + dual: "{{count}} сата", + other: "{{count}} сати", + }, + + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан", + }, + dual: "{{count}} дана", + other: "{{count}} дана", + }, + + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу", + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље", + }, + + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу", + }, + dual: "{{count}} недеље", + other: "{{count}} недеље", + }, + + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец", + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци", + }, + + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец", + }, + dual: "{{count}} месеца", + other: "{{count}} месеци", + }, + + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину", + }, + dual: "око {{count}} године", + other: "око {{count}} година", + }, + + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину", + }, + dual: "{{count}} године", + other: "{{count}} година", + }, + + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину", + }, + dual: "преко {{count}} године", + other: "преко {{count}} година", + }, + + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину", + }, + dual: "готово {{count}} године", + other: "готово {{count}} година", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if ( + count % 10 > 1 && + count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== "1" // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace("{{count}}", String(count)); + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "за " + result; + } else { + return "пре " + result; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.cjs b/node_modules/date-fns/locale/sr/_lib/formatLong.cjs new file mode 100644 index 000000000..01082a752 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'у' {{time}}", + long: "{{date}} 'у' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sr/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sr/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong.js b/node_modules/date-fns/locale/sr/_lib/formatLong.js new file mode 100644 index 000000000..09d808d3a --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy.", +}; + +const timeFormats = { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'у' {{time}}", + long: "{{date}} 'у' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sr/_lib/formatRelative.cjs new file mode 100644 index 000000000..7afc12cdb --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.cjs @@ -0,0 +1,48 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + case 3: + return "'прошле среде у' p"; + case 6: + return "'прошле суботе у' p"; + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + case 3: + return "'следећу среду у' p"; + case 6: + return "'следећу суботу у' p"; + default: + return "'следећи' EEEE 'у' p"; + } + }, + other: "P", +}; + +const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative.js b/node_modules/date-fns/locale/sr/_lib/formatRelative.js new file mode 100644 index 000000000..8c21ead6d --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative.js @@ -0,0 +1,44 @@ +const formatRelativeLocale = { + lastWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + case 3: + return "'прошле среде у' p"; + case 6: + return "'прошле суботе у' p"; + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: (date) => { + const day = date.getDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + case 3: + return "'следећу среду у' p"; + case 6: + return "'следећу суботу у' p"; + default: + return "'следећи' EEEE 'у' p"; + } + }, + other: "P", +}; + +export const formatRelative = (token, date, _baseDate, _options) => { + const format = formatRelativeLocale[token]; + + if (typeof format === "function") { + return format(date); + } + + return format; +}; diff --git a/node_modules/date-fns/locale/sr/_lib/localize.cjs b/node_modules/date-fns/locale/sr/_lib/localize.cjs new file mode 100644 index 000000000..54de2fba9 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.cjs @@ -0,0 +1,229 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["пр.н.е.", "АД"], + abbreviated: ["пр. Хр.", "по. Хр."], + wide: ["Пре Христа", "После Христа"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. кв.", "2. кв.", "3. кв.", "4. кв."], + wide: ["1. квартал", "2. квартал", "3. квартал", "4. квартал"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "У", "С", "Ч", "П", "С"], + short: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + abbreviated: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sr/_lib/localize.d.cts b/node_modules/date-fns/locale/sr/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr/_lib/localize.d.ts b/node_modules/date-fns/locale/sr/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sr/_lib/localize.js b/node_modules/date-fns/locale/sr/_lib/localize.js new file mode 100644 index 000000000..559e0bb8f --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize.js @@ -0,0 +1,227 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["пр.н.е.", "АД"], + abbreviated: ["пр. Хр.", "по. Хр."], + wide: ["Пре Христа", "После Христа"], +}; + +const quarterValues = { + narrow: ["1.", "2.", "3.", "4."], + abbreviated: ["1. кв.", "2. кв.", "3. кв.", "4. кв."], + wide: ["1. квартал", "2. квартал", "3. квартал", "4. квартал"], +}; + +const monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12.", + ], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец", + ], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар", + ], +}; + +const dayValues = { + narrow: ["Н", "П", "У", "С", "Ч", "П", "С"], + short: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + abbreviated: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"], + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота", + ], +}; + +const formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +const dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу", + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sr/_lib/match.cjs b/node_modules/date-fns/locale/sr/_lib/match.cjs new file mode 100644 index 000000000..1ac12337b --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(пр\.н\.е\.|АД)/i, + abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ја/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^авг/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[пусчн]/i, + short: /^(нед|пон|уто|сре|чет|пет|суб)/i, + abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i, + wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i, +}; +const parseDayPatterns = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sr/_lib/match.d.cts b/node_modules/date-fns/locale/sr/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr/_lib/match.d.ts b/node_modules/date-fns/locale/sr/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sr/_lib/match.js b/node_modules/date-fns/locale/sr/_lib/match.js new file mode 100644 index 000000000..74a19fc7a --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)\./i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(пр\.н\.е\.|АД)/i, + abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i, +}; +const parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i, +}; +const parseMonthPatterns = { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i, + ], + + any: [ + /^ја/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^авг/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[пусчн]/i, + short: /^(нед|пон|уто|сре|чет|пет|суб)/i, + abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i, + wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i, +}; +const parseDayPatterns = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sr/cdn.js b/node_modules/date-fns/locale/sr/cdn.js new file mode 100644 index 000000000..f3595a2d1 --- /dev/null +++ b/node_modules/date-fns/locale/sr/cdn.js @@ -0,0 +1,712 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/sr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: "мање од 1 секунде", + withPrepositionAgo: "мање од 1 секунде", + withPrepositionIn: "мање од 1 секунду" + }, + dual: "мање од {{count}} секунде", + other: "мање од {{count}} секунди" + }, + xSeconds: { + one: { + standalone: "1 секунда", + withPrepositionAgo: "1 секунде", + withPrepositionIn: "1 секунду" + }, + dual: "{{count}} секунде", + other: "{{count}} секунди" + }, + halfAMinute: "пола минуте", + lessThanXMinutes: { + one: { + standalone: "мање од 1 минуте", + withPrepositionAgo: "мање од 1 минуте", + withPrepositionIn: "мање од 1 минуту" + }, + dual: "мање од {{count}} минуте", + other: "мање од {{count}} минута" + }, + xMinutes: { + one: { + standalone: "1 минута", + withPrepositionAgo: "1 минуте", + withPrepositionIn: "1 минуту" + }, + dual: "{{count}} минуте", + other: "{{count}} минута" + }, + aboutXHours: { + one: { + standalone: "око 1 сат", + withPrepositionAgo: "око 1 сат", + withPrepositionIn: "око 1 сат" + }, + dual: "око {{count}} сата", + other: "око {{count}} сати" + }, + xHours: { + one: { + standalone: "1 сат", + withPrepositionAgo: "1 сат", + withPrepositionIn: "1 сат" + }, + dual: "{{count}} сата", + other: "{{count}} сати" + }, + xDays: { + one: { + standalone: "1 дан", + withPrepositionAgo: "1 дан", + withPrepositionIn: "1 дан" + }, + dual: "{{count}} дана", + other: "{{count}} дана" + }, + aboutXWeeks: { + one: { + standalone: "око 1 недељу", + withPrepositionAgo: "око 1 недељу", + withPrepositionIn: "око 1 недељу" + }, + dual: "око {{count}} недеље", + other: "око {{count}} недеље" + }, + xWeeks: { + one: { + standalone: "1 недељу", + withPrepositionAgo: "1 недељу", + withPrepositionIn: "1 недељу" + }, + dual: "{{count}} недеље", + other: "{{count}} недеље" + }, + aboutXMonths: { + one: { + standalone: "око 1 месец", + withPrepositionAgo: "око 1 месец", + withPrepositionIn: "око 1 месец" + }, + dual: "око {{count}} месеца", + other: "око {{count}} месеци" + }, + xMonths: { + one: { + standalone: "1 месец", + withPrepositionAgo: "1 месец", + withPrepositionIn: "1 месец" + }, + dual: "{{count}} месеца", + other: "{{count}} месеци" + }, + aboutXYears: { + one: { + standalone: "око 1 годину", + withPrepositionAgo: "око 1 годину", + withPrepositionIn: "око 1 годину" + }, + dual: "око {{count}} године", + other: "око {{count}} година" + }, + xYears: { + one: { + standalone: "1 година", + withPrepositionAgo: "1 године", + withPrepositionIn: "1 годину" + }, + dual: "{{count}} године", + other: "{{count}} година" + }, + overXYears: { + one: { + standalone: "преко 1 годину", + withPrepositionAgo: "преко 1 годину", + withPrepositionIn: "преко 1 годину" + }, + dual: "преко {{count}} године", + other: "преко {{count}} година" + }, + almostXYears: { + one: { + standalone: "готово 1 годину", + withPrepositionAgo: "готово 1 годину", + withPrepositionIn: "готово 1 годину" + }, + dual: "готово {{count}} године", + other: "готово {{count}} година" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) {if (options !== null && options !== void 0 && options.addSuffix) {if (options.comparison && options.comparison > 0) result = tokenValue.one.withPrepositionIn;else + result = tokenValue.one.withPrepositionAgo;} else + result = tokenValue.one.standalone;} else + if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") result = tokenValue.dual.replace("{{count}}", String(count));else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "за " + result;else + return "пре " + result; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d. MMMM yyyy.", + long: "d. MMMM yyyy.", + medium: "d. MMM yy.", + short: "dd. MM. yy." + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss (zzzz)", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'у' {{time}}", + long: "{{date}} 'у' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getDay()) { + case 0:return "'прошле недеље у' p"; + case 3:return "'прошле среде у' p"; + case 6:return "'прошле суботе у' p"; + default:return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: function nextWeek(date) { + switch (date.getDay()) { + case 0:return "'следеће недеље у' p"; + case 3:return "'следећу среду у' p"; + case 6:return "'следећу суботу у' p"; + default:return "'следећи' EEEE 'у' p"; + } + }, + other: "P" +}; +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + if (typeof format === "function") return format(date); + return format; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sr/_lib/localize.js +var eraValues = { + narrow: ["пр.н.е.", "АД"], + abbreviated: ["пр. Хр.", "по. Хр."], + wide: ["Пре Христа", "После Христа"] +}; +var quarterValues = { + narrow: [ + "1.", + "2.", + "3.", + "4."], + + abbreviated: [ + "1. кв.", + "2. кв.", + "3. кв.", + "4. кв."], + + wide: [ + "1. квартал", + "2. квартал", + "3. квартал", + "4. квартал"] + +}; +var monthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец"], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар"] + +}; +var formattingMonthValues = { + narrow: [ + "1.", + "2.", + "3.", + "4.", + "5.", + "6.", + "7.", + "8.", + "9.", + "10.", + "11.", + "12."], + + abbreviated: [ + "јан", + "феб", + "мар", + "апр", + "мај", + "јун", + "јул", + "авг", + "сеп", + "окт", + "нов", + "дец"], + + wide: [ + "јануар", + "фебруар", + "март", + "април", + "мај", + "јун", + "јул", + "август", + "септембар", + "октобар", + "новембар", + "децембар"] + +}; +var dayValues = { + narrow: [ + "Н", + "П", + "У", + "С", + "Ч", + "П", + "С"], + + short: [ + "нед", + "пон", + "уто", + "сре", + "чет", + "пет", + "суб"], + + abbreviated: [ + "нед", + "пон", + "уто", + "сре", + "чет", + "пет", + "суб"], + + wide: [ + "недеља", + "понедељак", + "уторак", + "среда", + "четвртак", + "петак", + "субота"] + +}; +var formattingDayPeriodValues = { + narrow: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + abbreviated: { + am: "АМ", + pm: "ПМ", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу" + } +}; +var dayPeriodValues = { + narrow: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + abbreviated: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "поподне", + evening: "увече", + night: "ноћу" + }, + wide: { + am: "AM", + pm: "PM", + midnight: "поноћ", + noon: "подне", + morning: "ујутру", + afternoon: "после подне", + evening: "увече", + night: "ноћу" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + formattingValues: formattingMonthValues, + defaultFormattingWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sr.js +/** +* @category Locales +* @summary Serbian cyrillic locale. +* @language Serbian +* @iso-639-2 srp +* @author Igor Radivojević [@rogyvoje](https://github.com/rogyvoje) +*/ +var sr = { + code: "sr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)\./i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(пр\.н\.е\.|АД)/i, + abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^пр/i, /^(по|нова)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^1/i, + /^2/i, + /^3/i, + /^4/i, + /^5/i, + /^6/i, + /^7/i, + /^8/i, + /^9/i, + /^10/i, + /^11/i, + /^12/i], + + any: [ + /^ја/i, + /^ф/i, + /^мар/i, + /^ап/i, + /^мај/i, + /^јун/i, + /^јул/i, + /^авг/i, + /^с/i, + /^о/i, + /^н/i, + /^д/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[пусчн]/i, + short: /^(нед|пон|уто|сре|чет|пет|суб)/i, + abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i, + wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^п/i, + /^у/i, + /^с/i, + /^ч/i, + /^п/i, + /^с/i, + /^н/i], + + any: [ + /^нед/i, + /^пон/i, + /^уто/i, + /^сре/i, + /^чет/i, + /^пет/i, + /^суб/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + sr: sr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/cdn.min.js b/node_modules/date-fns/locale/sr/cdn.min.js new file mode 100644 index 000000000..046afcf0a --- /dev/null +++ b/node_modules/date-fns/locale/sr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?i.one.withPrepositionIn:i.one.withPrepositionAgo:i.one.standalone:t%10>1&&t%10<5&&String(t).substr(-2,1)!==`1`?i.dual.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?`за `+r:`пре `+r:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`EEEE, d. MMMM yyyy.`,long:`d. MMMM yyyy.`,medium:`d. MMM yy.`,short:`dd. MM. yy.`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss (zzzz)`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'у' {{time}}`,long:`{{date}} 'у' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:function(e){switch(e.getDay()){case 0:return`'прошле недеље у' p`;case 3:return`'прошле среде у' p`;case 6:return`'прошле суботе у' p`;default:return`'прошли' EEEE 'у' p`}},yesterday:`'јуче у' p`,today:`'данас у' p`,tomorrow:`'сутра у' p`,nextWeek:function(e){switch(e.getDay()){case 0:return`'следеће недеље у' p`;case 3:return`'следећу среду у' p`;case 6:return`'следећу суботу у' p`;default:return`'следећи' EEEE 'у' p`}},other:`P`},d=function(e,t,n,r){var i=u[e];return typeof i==`function`?i(t):i};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`пр.н.е.`,`АД`],abbreviated:[`пр. Хр.`,`по. Хр.`],wide:[`Пре Христа`,`После Христа`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`],abbreviated:[`1. кв.`,`2. кв.`,`3. кв.`,`4. кв.`],wide:[`1. квартал`,`2. квартал`,`3. квартал`,`4. квартал`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultWidth:`wide`,formattingValues:{narrow:[`1.`,`2.`,`3.`,`4.`,`5.`,`6.`,`7.`,`8.`,`9.`,`10.`,`11.`,`12.`],abbreviated:[`јан`,`феб`,`мар`,`апр`,`мај`,`јун`,`јул`,`авг`,`сеп`,`окт`,`нов`,`дец`],wide:[`јануар`,`фебруар`,`март`,`април`,`мај`,`јун`,`јул`,`август`,`септембар`,`октобар`,`новембар`,`децембар`]},defaultFormattingWidth:`wide`}),day:f({values:{narrow:[`Н`,`П`,`У`,`С`,`Ч`,`П`,`С`],short:[`нед`,`пон`,`уто`,`сре`,`чет`,`пет`,`суб`],abbreviated:[`нед`,`пон`,`уто`,`сре`,`чет`,`пет`,`суб`],wide:[`недеља`,`понедељак`,`уторак`,`среда`,`четвртак`,`петак`,`субота`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},abbreviated:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},wide:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`после подне`,evening:`увече`,night:`ноћу`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`АМ`,pm:`ПМ`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},abbreviated:{am:`АМ`,pm:`ПМ`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`поподне`,evening:`увече`,night:`ноћу`},wide:{am:`AM`,pm:`PM`,midnight:`поноћ`,noon:`подне`,morning:`ујутру`,afternoon:`после подне`,evening:`увече`,night:`ноћу`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`sr`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sr:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv.cjs b/node_modules/date-fns/locale/sv.cjs new file mode 100644 index 000000000..da828fdd3 --- /dev/null +++ b/node_modules/date-fns/locale/sv.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.sv = void 0; +var _index = require("./sv/_lib/formatDistance.cjs"); +var _index2 = require("./sv/_lib/formatLong.cjs"); +var _index3 = require("./sv/_lib/formatRelative.cjs"); +var _index4 = require("./sv/_lib/localize.cjs"); +var _index5 = require("./sv/_lib/match.cjs"); + +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +const sv = (exports.sv = { + code: "sv", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/sv.d.cts b/node_modules/date-fns/locale/sv.d.cts new file mode 100644 index 000000000..88697d46a --- /dev/null +++ b/node_modules/date-fns/locale/sv.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export declare const sv: Locale; diff --git a/node_modules/date-fns/locale/sv.d.ts b/node_modules/date-fns/locale/sv.d.ts new file mode 100644 index 000000000..88697d46a --- /dev/null +++ b/node_modules/date-fns/locale/sv.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export declare const sv: Locale; diff --git a/node_modules/date-fns/locale/sv.js b/node_modules/date-fns/locale/sv.js new file mode 100644 index 000000000..fecd17ed7 --- /dev/null +++ b/node_modules/date-fns/locale/sv.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./sv/_lib/formatDistance.js"; +import { formatLong } from "./sv/_lib/formatLong.js"; +import { formatRelative } from "./sv/_lib/formatRelative.js"; +import { localize } from "./sv/_lib/localize.js"; +import { match } from "./sv/_lib/match.js"; + +/** + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen](https://github.com/ejulen) + * @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) + * @author Henrik Andersson [@limelights](https://github.com/limelights) + */ +export const sv = { + code: "sv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default sv; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs b/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs new file mode 100644 index 000000000..846171184 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.cjs @@ -0,0 +1,124 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder", + }, + + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "en halv minut", + + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter", + }, + + xMinutes: { + one: "en minut", + other: "{{count}} minuter", + }, + + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar", + }, + + xHours: { + one: "en timme", + other: "{{count}} timmar", + }, + + xDays: { + one: "en dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor", + }, + + xWeeks: { + one: "en vecka", + other: "{{count}} veckor", + }, + + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader", + }, + + xMonths: { + one: "en månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "över ett år", + other: "över {{count}} år", + }, + + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år", + }, +}; + +const wordMapping = [ + "noll", + "en", + "två", + "tre", + "fyra", + "fem", + "sex", + "sju", + "åtta", + "nio", + "tio", + "elva", + "tolv", +]; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + count < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sedan"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance.js b/node_modules/date-fns/locale/sv/_lib/formatDistance.js new file mode 100644 index 000000000..0633dceae --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance.js @@ -0,0 +1,120 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder", + }, + + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder", + }, + + halfAMinute: "en halv minut", + + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter", + }, + + xMinutes: { + one: "en minut", + other: "{{count}} minuter", + }, + + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar", + }, + + xHours: { + one: "en timme", + other: "{{count}} timmar", + }, + + xDays: { + one: "en dag", + other: "{{count}} dagar", + }, + + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor", + }, + + xWeeks: { + one: "en vecka", + other: "{{count}} veckor", + }, + + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader", + }, + + xMonths: { + one: "en månad", + other: "{{count}} månader", + }, + + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år", + }, + + xYears: { + one: "ett år", + other: "{{count}} år", + }, + + overXYears: { + one: "över ett år", + other: "över {{count}} år", + }, + + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år", + }, +}; + +const wordMapping = [ + "noll", + "en", + "två", + "tre", + "fyra", + "fem", + "sex", + "sju", + "åtta", + "nio", + "tio", + "elva", + "tolv", +]; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace( + "{{count}}", + count < 13 ? wordMapping[count] : String(count), + ); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "om " + result; + } else { + return result + " sedan"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.cjs b/node_modules/date-fns/locale/sv/_lib/formatLong.cjs new file mode 100644 index 000000000..448858d33 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "y-MM-dd", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.d.cts b/node_modules/date-fns/locale/sv/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.d.ts b/node_modules/date-fns/locale/sv/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong.js b/node_modules/date-fns/locale/sv/_lib/formatLong.js new file mode 100644 index 000000000..710a66fad --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "y-MM-dd", +}; + +const timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.cjs b/node_modules/date-fns/locale/sv/_lib/formatRelative.cjs new file mode 100644 index 000000000..7013808e5 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative.js b/node_modules/date-fns/locale/sv/_lib/formatRelative.js new file mode 100644 index 000000000..2a04693ca --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/sv/_lib/localize.cjs b/node_modules/date-fns/locale/sv/_lib/localize.cjs new file mode 100644 index 000000000..6ab0c4b72 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.cjs @@ -0,0 +1,168 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sö", "må", "ti", "on", "to", "fr", "lö"], + abbreviated: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"], + wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 +const dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ":a"; + } + } + return number + ":e"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/sv/_lib/localize.d.cts b/node_modules/date-fns/locale/sv/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sv/_lib/localize.d.ts b/node_modules/date-fns/locale/sv/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/sv/_lib/localize.js b/node_modules/date-fns/locale/sv/_lib/localize.js new file mode 100644 index 000000000..2755f356b --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize.js @@ -0,0 +1,166 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["1:a kvartalet", "2:a kvartalet", "3:e kvartalet", "4:e kvartalet"], +}; + +const monthValues = { + narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec.", + ], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december", + ], +}; + +const dayValues = { + narrow: ["S", "M", "T", "O", "T", "F", "L"], + short: ["sö", "må", "ti", "on", "to", "fr", "lö"], + abbreviated: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"], + wide: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], +}; + +// https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 +const dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt", + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten", + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + + const rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ":a"; + } + } + return number + ":e"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/sv/_lib/match.cjs b/node_modules/date-fns/locale/sv/_lib/match.cjs new file mode 100644 index 000000000..fb537b85a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.cjs @@ -0,0 +1,134 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^[ev]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/sv/_lib/match.d.cts b/node_modules/date-fns/locale/sv/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sv/_lib/match.d.ts b/node_modules/date-fns/locale/sv/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/sv/_lib/match.js b/node_modules/date-fns/locale/sv/_lib/match.js new file mode 100644 index 000000000..a1d8a2f9a --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match.js @@ -0,0 +1,131 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i, +}; +const parseEraPatterns = { + any: [/^f/i, /^[ev]/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: + /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i, +}; +const parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i], +}; + +const matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/sv/cdn.js b/node_modules/date-fns/locale/sv/cdn.js new file mode 100644 index 000000000..96d31dfb0 --- /dev/null +++ b/node_modules/date-fns/locale/sv/cdn.js @@ -0,0 +1,582 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/sv/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "mindre än en sekund", + other: "mindre än {{count}} sekunder" + }, + xSeconds: { + one: "en sekund", + other: "{{count}} sekunder" + }, + halfAMinute: "en halv minut", + lessThanXMinutes: { + one: "mindre än en minut", + other: "mindre än {{count}} minuter" + }, + xMinutes: { + one: "en minut", + other: "{{count}} minuter" + }, + aboutXHours: { + one: "ungefär en timme", + other: "ungefär {{count}} timmar" + }, + xHours: { + one: "en timme", + other: "{{count}} timmar" + }, + xDays: { + one: "en dag", + other: "{{count}} dagar" + }, + aboutXWeeks: { + one: "ungefär en vecka", + other: "ungefär {{count}} veckor" + }, + xWeeks: { + one: "en vecka", + other: "{{count}} veckor" + }, + aboutXMonths: { + one: "ungefär en månad", + other: "ungefär {{count}} månader" + }, + xMonths: { + one: "en månad", + other: "{{count}} månader" + }, + aboutXYears: { + one: "ungefär ett år", + other: "ungefär {{count}} år" + }, + xYears: { + one: "ett år", + other: "{{count}} år" + }, + overXYears: { + one: "över ett år", + other: "över {{count}} år" + }, + almostXYears: { + one: "nästan ett år", + other: "nästan {{count}} år" + } +}; +var wordMapping = [ +"noll", +"en", +"två", +"tre", +"fyra", +"fem", +"sex", +"sju", +"åtta", +"nio", +"tio", +"elva", +"tolv"]; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count < 13 ? wordMapping[count] : String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "om " + result;else + return result + " sedan"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE d MMMM y", + long: "d MMMM y", + medium: "d MMM y", + short: "y-MM-dd" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "'kl'. HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/sv/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/sv/_lib/localize.js +var eraValues = { + narrow: ["f.Kr.", "e.Kr."], + abbreviated: ["f.Kr.", "e.Kr."], + wide: ["före Kristus", "efter Kristus"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "1:a kvartalet", + "2:a kvartalet", + "3:e kvartalet", + "4:e kvartalet"] + +}; +var monthValues = { + narrow: [ + "J", + "F", + "M", + "A", + "M", + "J", + "J", + "A", + "S", + "O", + "N", + "D"], + + abbreviated: [ + "jan.", + "feb.", + "mars", + "apr.", + "maj", + "juni", + "juli", + "aug.", + "sep.", + "okt.", + "nov.", + "dec."], + + wide: [ + "januari", + "februari", + "mars", + "april", + "maj", + "juni", + "juli", + "augusti", + "september", + "oktober", + "november", + "december"] + +}; +var dayValues = { + narrow: [ + "S", + "M", + "T", + "O", + "T", + "F", + "L"], + + short: [ + "sö", + "må", + "ti", + "on", + "to", + "fr", + "lö"], + + abbreviated: [ + "sön", + "mån", + "tis", + "ons", + "tors", + "fre", + "lör"], + + wide: [ + "söndag", + "måndag", + "tisdag", + "onsdag", + "torsdag", + "fredag", + "lördag"] + +}; +var dayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "morg.", + afternoon: "efterm.", + evening: "kväll", + night: "natt" + }, + abbreviated: { + am: "f.m.", + pm: "e.m.", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "efterm.", + evening: "kväll", + night: "natt" + }, + wide: { + am: "förmiddag", + pm: "eftermiddag", + midnight: "midnatt", + noon: "middag", + morning: "morgon", + afternoon: "eftermiddag", + evening: "kväll", + night: "natt" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten" + }, + abbreviated: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morg.", + afternoon: "på efterm.", + evening: "på kvällen", + night: "på natten" + }, + wide: { + am: "fm", + pm: "em", + midnight: "midnatt", + noon: "middag", + morning: "på morgonen", + afternoon: "på eftermiddagen", + evening: "på kvällen", + night: "på natten" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) { + case 1: + case 2:return number + ":a"; + } + return number + ":e"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/sv.js +/** +* @category Locales +* @summary Swedish locale. +* @language Swedish +* @iso-639-2 swe +* @author Johannes Ulén [@ejulen](https://github.com/ejulen) +* @author Alexander Nanberg [@alexandernanberg](https://github.com/alexandernanberg) +* @author Henrik Andersson [@limelights](https://github.com/limelights) +*/ +var sv = { + code: "sv", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(:a|:e)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^f/i, /^[ev]/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^j/i, + /^f/i, + /^m/i, + /^a/i, + /^m/i, + /^j/i, + /^j/i, + /^a/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i], + + any: [ + /^ja/i, + /^f/i, + /^mar/i, + /^ap/i, + /^maj/i, + /^jun/i, + /^jul/i, + /^au/i, + /^s/i, + /^o/i, + /^n/i, + /^d/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /^s/i, + /^m/i, + /^ti/i, + /^o/i, + /^to/i, + /^f/i, + /^l/i] + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/sv/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + sv: sv }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/cdn.min.js b/node_modules/date-fns/locale/sv/cdn.min.js new file mode 100644 index 000000000..af5729c3c --- /dev/null +++ b/node_modules/date-fns/locale/sv/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`om `+r:r+` sedan`:r};function l(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var u={date:l({formats:{full:`EEEE d MMMM y`,long:`d MMMM y`,medium:`d MMM y`,short:`y-MM-dd`},defaultWidth:`full`}),time:l({formats:{full:`'kl'. HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} 'kl.' {{time}}`,long:`{{date}} 'kl.' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},d={lastWeek:`'i' EEEE's kl.' p`,yesterday:`'igår kl.' p`,today:`'idag kl.' p`,tomorrow:`'imorgon kl.' p`,nextWeek:`EEEE 'kl.' p`,other:`P`},f=function(e,t,n,r){return d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+`:a`}return n+`:e`},era:p({values:{narrow:[`f.Kr.`,`e.Kr.`],abbreviated:[`f.Kr.`,`e.Kr.`],wide:[`före Kristus`,`efter Kristus`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1:a kvartalet`,`2:a kvartalet`,`3:e kvartalet`,`4:e kvartalet`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`jan.`,`feb.`,`mars`,`apr.`,`maj`,`juni`,`juli`,`aug.`,`sep.`,`okt.`,`nov.`,`dec.`],wide:[`januari`,`februari`,`mars`,`april`,`maj`,`juni`,`juli`,`augusti`,`september`,`oktober`,`november`,`december`]},defaultWidth:`wide`}),day:p({values:{narrow:[`S`,`M`,`T`,`O`,`T`,`F`,`L`],short:[`sö`,`må`,`ti`,`on`,`to`,`fr`,`lö`],abbreviated:[`sön`,`mån`,`tis`,`ons`,`tors`,`fre`,`lör`],wide:[`söndag`,`måndag`,`tisdag`,`onsdag`,`torsdag`,`fredag`,`lördag`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`morg.`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},abbreviated:{am:`f.m.`,pm:`e.m.`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`efterm.`,evening:`kväll`,night:`natt`},wide:{am:`förmiddag`,pm:`eftermiddag`,midnight:`midnatt`,noon:`middag`,morning:`morgon`,afternoon:`eftermiddag`,evening:`kväll`,night:`natt`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},abbreviated:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morg.`,afternoon:`på efterm.`,evening:`på kvällen`,night:`på natten`},wide:{am:`fm`,pm:`em`,midnight:`midnatt`,noon:`middag`,morning:`på morgonen`,afternoon:`på eftermiddagen`,evening:`på kvällen`,night:`på natten`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`sv`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{sv:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta.cjs b/node_modules/date-fns/locale/ta.cjs new file mode 100644 index 000000000..2abf6fee8 --- /dev/null +++ b/node_modules/date-fns/locale/ta.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.ta = void 0; +var _index = require("./ta/_lib/formatDistance.cjs"); +var _index2 = require("./ta/_lib/formatLong.cjs"); +var _index3 = require("./ta/_lib/formatRelative.cjs"); +var _index4 = require("./ta/_lib/localize.cjs"); +var _index5 = require("./ta/_lib/match.cjs"); + +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +const ta = (exports.ta = { + code: "ta", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}); diff --git a/node_modules/date-fns/locale/ta.d.cts b/node_modules/date-fns/locale/ta.d.cts new file mode 100644 index 000000000..3584c26c3 --- /dev/null +++ b/node_modules/date-fns/locale/ta.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export declare const ta: Locale; diff --git a/node_modules/date-fns/locale/ta.d.ts b/node_modules/date-fns/locale/ta.d.ts new file mode 100644 index 000000000..3584c26c3 --- /dev/null +++ b/node_modules/date-fns/locale/ta.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export declare const ta: Locale; diff --git a/node_modules/date-fns/locale/ta.js b/node_modules/date-fns/locale/ta.js new file mode 100644 index 000000000..2f318478f --- /dev/null +++ b/node_modules/date-fns/locale/ta.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./ta/_lib/formatDistance.js"; +import { formatLong } from "./ta/_lib/formatLong.js"; +import { formatRelative } from "./ta/_lib/formatRelative.js"; +import { localize } from "./ta/_lib/localize.js"; +import { match } from "./ta/_lib/match.js"; + +/** + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) + */ +export const ta = { + code: "ta", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 4, + }, +}; + +// Fallback for modularized imports: +export default ta; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs b/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs new file mode 100644 index 000000000..6679eb6d8 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.cjs @@ -0,0 +1,228 @@ +"use strict"; +exports.formatDistance = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு", + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு", + }, + }, + + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு", + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு", + }, + }, + + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு", + }, + + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு", + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு", + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்", + }, + }, + + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு", + }, + }, + + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு", + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு", + }, + }, + + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு", + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு", + }, + }, + + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு", + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு", + }, + }, + + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு", + }, + }, + + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு", + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு", + }, + }, + + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு", + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு", + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, +}; + +const formatDistance = (token, count, options) => { + const tense = options?.addSuffix + ? options.comparison && options.comparison > 0 + ? "in" + : "ago" + : "default"; + + const tokenValue = formatDistanceLocale[token]; + + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace("{{count}}", String(count)); + } +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance.js b/node_modules/date-fns/locale/ta/_lib/formatDistance.js new file mode 100644 index 000000000..f87daabd1 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance.js @@ -0,0 +1,224 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +const formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு", + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு", + }, + }, + + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு", + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு", + }, + }, + + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு", + }, + + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு", + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு", + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு", + }, + }, + + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்", + }, + }, + + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு", + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு", + }, + }, + + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு", + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு", + }, + }, + + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு", + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு", + }, + }, + + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு", + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு", + }, + }, + + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு", + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு", + }, + }, + + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு", + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு", + }, + }, + + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு", + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு", + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, + + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு", + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + const tense = options?.addSuffix + ? options.comparison && options.comparison > 0 + ? "in" + : "ago" + : "default"; + + const tokenValue = formatDistanceLocale[token]; + + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace("{{count}}", String(count)); + } +}; diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.cjs b/node_modules/date-fns/locale/ta/_lib/formatLong.cjs new file mode 100644 index 000000000..1f1c17198 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.cjs @@ -0,0 +1,45 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +// CLDR #1846 - #1849 +const dateFormats = { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy", +}; + +// CLDR #1850 - #1853 +const timeFormats = { + full: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a h:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.d.cts b/node_modules/date-fns/locale/ta/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.d.ts b/node_modules/date-fns/locale/ta/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong.js b/node_modules/date-fns/locale/ta/_lib/formatLong.js new file mode 100644 index 000000000..ea20b9501 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong.js @@ -0,0 +1,43 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +// CLDR #1846 - #1849 +const dateFormats = { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy", +}; + +// CLDR #1850 - #1853 +const timeFormats = { + full: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a h:mm", +}; + +const dateTimeFormats = { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative.cjs b/node_modules/date-fns/locale/ta/_lib/formatRelative.cjs new file mode 100644 index 000000000..4966ae842 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative.js b/node_modules/date-fns/locale/ta/_lib/formatRelative.js new file mode 100644 index 000000000..fe29d16ec --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/ta/_lib/localize.cjs b/node_modules/date-fns/locale/ta/_lib/localize.cjs new file mode 100644 index 000000000..ddd03564a --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.cjs @@ -0,0 +1,185 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +const eraValues = { + narrow: ["கி.மு.", "கி.பி."], + abbreviated: ["கி.மு.", "கி.பி."], // CLDR #1624, #1626 + wide: ["கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"], // CLDR #1620, #1622 +}; + +const quarterValues = { + // CLDR #1644 - #1647 + narrow: ["1", "2", "3", "4"], + // CLDR #1636 - #1639 + abbreviated: ["காலா.1", "காலா.2", "காலா.3", "காலா.4"], + // CLDR #1628 - #1631 + wide: [ + "ஒன்றாம் காலாண்டு", + "இரண்டாம் காலாண்டு", + "மூன்றாம் காலாண்டு", + "நான்காம் காலாண்டு", + ], +}; + +const monthValues = { + // CLDR #700 - #711 + narrow: ["ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"], + + // CLDR #1676 - #1687 + abbreviated: [ + "ஜன.", + "பிப்.", + "மார்.", + "ஏப்.", + "மே", + "ஜூன்", + "ஜூலை", + "ஆக.", + "செப்.", + "அக்.", + "நவ.", + "டிச.", + ], + + // CLDR #1652 - #1663 + wide: [ + "ஜனவரி", // January + "பிப்ரவரி", // February + "மார்ச்", // March + "ஏப்ரல்", // April + "மே", // May + "ஜூன்", // June + "ஜூலை", // July + "ஆகஸ்ட்", // August + "செப்டம்பர்", // September + "அக்டோபர்", // October + "நவம்பர்", // November + "டிசம்பர்", // December + ], +}; + +const dayValues = { + // CLDR #1766 - #1772 + narrow: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1752 - #1758 + short: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1738 - #1744 + abbreviated: ["ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"], + // CLDR #1724 - #1730 + wide: [ + "ஞாயிறு", // Sunday + "திங்கள்", // Monday + "செவ்வாய்", // Tuesday + "புதன்", // Wednesday + "வியாழன்", // Thursday + "வெள்ளி", // Friday + "சனி", // Saturday + ], +}; + +// CLDR #1780 - #1845 +const dayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர.", + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, +}; + +// CLDR #1780 - #1845 +const formattingDayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர.", + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/ta/_lib/localize.d.cts b/node_modules/date-fns/locale/ta/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ta/_lib/localize.d.ts b/node_modules/date-fns/locale/ta/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/ta/_lib/localize.js b/node_modules/date-fns/locale/ta/_lib/localize.js new file mode 100644 index 000000000..dc15f3df4 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize.js @@ -0,0 +1,183 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +const eraValues = { + narrow: ["கி.மு.", "கி.பி."], + abbreviated: ["கி.மு.", "கி.பி."], // CLDR #1624, #1626 + wide: ["கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"], // CLDR #1620, #1622 +}; + +const quarterValues = { + // CLDR #1644 - #1647 + narrow: ["1", "2", "3", "4"], + // CLDR #1636 - #1639 + abbreviated: ["காலா.1", "காலா.2", "காலா.3", "காலா.4"], + // CLDR #1628 - #1631 + wide: [ + "ஒன்றாம் காலாண்டு", + "இரண்டாம் காலாண்டு", + "மூன்றாம் காலாண்டு", + "நான்காம் காலாண்டு", + ], +}; + +const monthValues = { + // CLDR #700 - #711 + narrow: ["ஜ", "பி", "மா", "ஏ", "மே", "ஜூ", "ஜூ", "ஆ", "செ", "அ", "ந", "டி"], + + // CLDR #1676 - #1687 + abbreviated: [ + "ஜன.", + "பிப்.", + "மார்.", + "ஏப்.", + "மே", + "ஜூன்", + "ஜூலை", + "ஆக.", + "செப்.", + "அக்.", + "நவ.", + "டிச.", + ], + + // CLDR #1652 - #1663 + wide: [ + "ஜனவரி", // January + "பிப்ரவரி", // February + "மார்ச்", // March + "ஏப்ரல்", // April + "மே", // May + "ஜூன்", // June + "ஜூலை", // July + "ஆகஸ்ட்", // August + "செப்டம்பர்", // September + "அக்டோபர்", // October + "நவம்பர்", // November + "டிசம்பர்", // December + ], +}; + +const dayValues = { + // CLDR #1766 - #1772 + narrow: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1752 - #1758 + short: ["ஞா", "தி", "செ", "பு", "வி", "வெ", "ச"], + // CLDR #1738 - #1744 + abbreviated: ["ஞாயி.", "திங்.", "செவ்.", "புத.", "வியா.", "வெள்.", "சனி"], + // CLDR #1724 - #1730 + wide: [ + "ஞாயிறு", // Sunday + "திங்கள்", // Monday + "செவ்வாய்", // Tuesday + "புதன்", // Wednesday + "வியாழன்", // Thursday + "வெள்ளி", // Friday + "சனி", // Saturday + ], +}; + +// CLDR #1780 - #1845 +const dayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர.", + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, +}; + +// CLDR #1780 - #1845 +const formattingDayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர.", + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/ta/_lib/match.cjs b/node_modules/date-fns/locale/ta/_lib/match.cjs new file mode 100644 index 000000000..615ce1385 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/match.cjs @@ -0,0 +1,141 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(வது)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(கி.மு.|கி.பி.)/i, + abbreviated: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i, +}; +const parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.4|நான்காம்)/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, + abbreviated: /^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, + wide: /^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ஜ$/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூ/i, + /^ஜூ/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i, + ], + + any: [ + /^ஜன/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூன்/i, + /^ஜூலை/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + short: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + abbreviated: /^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, + wide: /^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i, +}; +const parseDayPatterns = { + narrow: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], + any: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, + any: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^மு/i, + pm: /^பி/i, + midnight: /^நள்/i, + noon: /^நண்/i, + morning: /காலை/i, + afternoon: /மதியம்/i, + evening: /மாலை/i, + night: /இரவு/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/ta/_lib/match.d.cts b/node_modules/date-fns/locale/ta/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ta/_lib/match.d.ts b/node_modules/date-fns/locale/ta/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/ta/_lib/match.js b/node_modules/date-fns/locale/ta/_lib/match.js new file mode 100644 index 000000000..4e075c7b6 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/match.js @@ -0,0 +1,138 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(வது)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(கி.மு.|கி.பி.)/i, + abbreviated: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i, +}; +const parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i, +}; +const parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.4|நான்காம்)/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, + abbreviated: /^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, + wide: /^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^ஜ$/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூ/i, + /^ஜூ/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i, + ], + + any: [ + /^ஜன/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூன்/i, + /^ஜூலை/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + short: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + abbreviated: /^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, + wide: /^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i, +}; +const parseDayPatterns = { + narrow: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], + any: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], +}; + +const matchDayPeriodPatterns = { + narrow: /^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, + any: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^மு/i, + pm: /^பி/i, + midnight: /^நள்/i, + noon: /^நண்/i, + morning: /காலை/i, + afternoon: /மதியம்/i, + evening: /மாலை/i, + night: /இரவு/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/ta/cdn.js b/node_modules/date-fns/locale/ta/cdn.js new file mode 100644 index 000000000..be1dce31d --- /dev/null +++ b/node_modules/date-fns/locale/ta/cdn.js @@ -0,0 +1,705 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ta/_lib/formatDistance.js +function isPluralType(val) { + return val.one !== void 0; +} +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: "ஒரு வினாடிக்கு குறைவாக", + in: "ஒரு வினாடிக்குள்", + ago: "ஒரு வினாடிக்கு முன்பு" + }, + other: { + default: "{{count}} வினாடிகளுக்கு குறைவாக", + in: "{{count}} வினாடிகளுக்குள்", + ago: "{{count}} வினாடிகளுக்கு முன்பு" + } + }, + xSeconds: { + one: { + default: "1 வினாடி", + in: "1 வினாடியில்", + ago: "1 வினாடி முன்பு" + }, + other: { + default: "{{count}} விநாடிகள்", + in: "{{count}} வினாடிகளில்", + ago: "{{count}} விநாடிகளுக்கு முன்பு" + } + }, + halfAMinute: { + default: "அரை நிமிடம்", + in: "அரை நிமிடத்தில்", + ago: "அரை நிமிடம் முன்பு" + }, + lessThanXMinutes: { + one: { + default: "ஒரு நிமிடத்திற்கும் குறைவாக", + in: "ஒரு நிமிடத்திற்குள்", + ago: "ஒரு நிமிடத்திற்கு முன்பு" + }, + other: { + default: "{{count}} நிமிடங்களுக்கும் குறைவாக", + in: "{{count}} நிமிடங்களுக்குள்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு" + } + }, + xMinutes: { + one: { + default: "1 நிமிடம்", + in: "1 நிமிடத்தில்", + ago: "1 நிமிடம் முன்பு" + }, + other: { + default: "{{count}} நிமிடங்கள்", + in: "{{count}} நிமிடங்களில்", + ago: "{{count}} நிமிடங்களுக்கு முன்பு" + } + }, + aboutXHours: { + one: { + default: "சுமார் 1 மணி நேரம்", + in: "சுமார் 1 மணி நேரத்தில்", + ago: "சுமார் 1 மணி நேரத்திற்கு முன்பு" + }, + other: { + default: "சுமார் {{count}} மணி நேரம்", + in: "சுமார் {{count}} மணி நேரத்திற்கு முன்பு", + ago: "சுமார் {{count}} மணி நேரத்தில்" + } + }, + xHours: { + one: { + default: "1 மணி நேரம்", + in: "1 மணி நேரத்தில்", + ago: "1 மணி நேரத்திற்கு முன்பு" + }, + other: { + default: "{{count}} மணி நேரம்", + in: "{{count}} மணி நேரத்தில்", + ago: "{{count}} மணி நேரத்திற்கு முன்பு" + } + }, + xDays: { + one: { + default: "1 நாள்", + in: "1 நாளில்", + ago: "1 நாள் முன்பு" + }, + other: { + default: "{{count}} நாட்கள்", + in: "{{count}} நாட்களில்", + ago: "{{count}} நாட்களுக்கு முன்பு" + } + }, + aboutXWeeks: { + one: { + default: "சுமார் 1 வாரம்", + in: "சுமார் 1 வாரத்தில்", + ago: "சுமார் 1 வாரம் முன்பு" + }, + other: { + default: "சுமார் {{count}} வாரங்கள்", + in: "சுமார் {{count}} வாரங்களில்", + ago: "சுமார் {{count}} வாரங்களுக்கு முன்பு" + } + }, + xWeeks: { + one: { + default: "1 வாரம்", + in: "1 வாரத்தில்", + ago: "1 வாரம் முன்பு" + }, + other: { + default: "{{count}} வாரங்கள்", + in: "{{count}} வாரங்களில்", + ago: "{{count}} வாரங்களுக்கு முன்பு" + } + }, + aboutXMonths: { + one: { + default: "சுமார் 1 மாதம்", + in: "சுமார் 1 மாதத்தில்", + ago: "சுமார் 1 மாதத்திற்கு முன்பு" + }, + other: { + default: "சுமார் {{count}} மாதங்கள்", + in: "சுமார் {{count}} மாதங்களில்", + ago: "சுமார் {{count}} மாதங்களுக்கு முன்பு" + } + }, + xMonths: { + one: { + default: "1 மாதம்", + in: "1 மாதத்தில்", + ago: "1 மாதம் முன்பு" + }, + other: { + default: "{{count}} மாதங்கள்", + in: "{{count}} மாதங்களில்", + ago: "{{count}} மாதங்களுக்கு முன்பு" + } + }, + aboutXYears: { + one: { + default: "சுமார் 1 வருடம்", + in: "சுமார் 1 ஆண்டில்", + ago: "சுமார் 1 வருடம் முன்பு" + }, + other: { + default: "சுமார் {{count}} ஆண்டுகள்", + in: "சுமார் {{count}} ஆண்டுகளில்", + ago: "சுமார் {{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + xYears: { + one: { + default: "1 வருடம்", + in: "1 ஆண்டில்", + ago: "1 வருடம் முன்பு" + }, + other: { + default: "{{count}} ஆண்டுகள்", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + overXYears: { + one: { + default: "1 வருடத்திற்கு மேல்", + in: "1 வருடத்திற்கும் மேலாக", + ago: "1 வருடம் முன்பு" + }, + other: { + default: "{{count}} ஆண்டுகளுக்கும் மேலாக", + in: "{{count}} ஆண்டுகளில்", + ago: "{{count}} ஆண்டுகளுக்கு முன்பு" + } + }, + almostXYears: { + one: { + default: "கிட்டத்தட்ட 1 வருடம்", + in: "கிட்டத்தட்ட 1 ஆண்டில்", + ago: "கிட்டத்தட்ட 1 வருடம் முன்பு" + }, + other: { + default: "கிட்டத்தட்ட {{count}} ஆண்டுகள்", + in: "கிட்டத்தட்ட {{count}} ஆண்டுகளில்", + ago: "கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var tense = options !== null && options !== void 0 && options.addSuffix ? options.comparison && options.comparison > 0 ? "in" : "ago" : "default"; + var tokenValue = formatDistanceLocale[token]; + if (!isPluralType(tokenValue)) return tokenValue[tense]; + if (count === 1) return tokenValue.one[tense];else + return tokenValue.other[tense].replace("{{count}}", String(count)); +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "EEEE, d MMMM, y", + long: "d MMMM, y", + medium: "d MMM, y", + short: "d/M/yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "a h:mm:ss zzzz", + long: "a h:mm:ss z", + medium: "a h:mm:ss", + short: "a h:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}", + long: "{{date}} {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/ta/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/ta/_lib/localize.js +var eraValues = { + narrow: ["கி.மு.", "கி.பி."], + abbreviated: ["கி.மு.", "கி.பி."], + wide: ["கிறிஸ்துவுக்கு முன்", "அன்னோ டோமினி"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "காலா.1", + "காலா.2", + "காலா.3", + "காலா.4"], + + wide: [ + "ஒன்றாம் காலாண்டு", + "இரண்டாம் காலாண்டு", + "மூன்றாம் காலாண்டு", + "நான்காம் காலாண்டு"] + +}; +var monthValues = { + narrow: [ + "ஜ", + "பி", + "மா", + "ஏ", + "மே", + "ஜூ", + "ஜூ", + "ஆ", + "செ", + "அ", + "ந", + "டி"], + + abbreviated: [ + "ஜன.", + "பிப்.", + "மார்.", + "ஏப்.", + "மே", + "ஜூன்", + "ஜூலை", + "ஆக.", + "செப்.", + "அக்.", + "நவ.", + "டிச."], + + wide: [ + "ஜனவரி", + "பிப்ரவரி", + "மார்ச்", + "ஏப்ரல்", + "மே", + "ஜூன்", + "ஜூலை", + "ஆகஸ்ட்", + "செப்டம்பர்", + "அக்டோபர்", + "நவம்பர்", + "டிசம்பர்"] + +}; +var dayValues = { + narrow: [ + "ஞா", + "தி", + "செ", + "பு", + "வி", + "வெ", + "ச"], + + short: [ + "ஞா", + "தி", + "செ", + "பு", + "வி", + "வெ", + "ச"], + + abbreviated: [ + "ஞாயி.", + "திங்.", + "செவ்.", + "புத.", + "வியா.", + "வெள்.", + "சனி"], + + wide: [ + "ஞாயிறு", + "திங்கள்", + "செவ்வாய்", + "புதன்", + "வியாழன்", + "வெள்ளி", + "சனி"] + +}; +var dayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர." + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு" + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "மு.ப", + pm: "பி.ப", + midnight: "நள்.", + noon: "நண்.", + morning: "கா.", + afternoon: "மதி.", + evening: "மா.", + night: "இர." + }, + abbreviated: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு" + }, + wide: { + am: "முற்பகல்", + pm: "பிற்பகல்", + midnight: "நள்ளிரவு", + noon: "நண்பகல்", + morning: "காலை", + afternoon: "மதியம்", + evening: "மாலை", + night: "இரவு" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/ta.js +/** +* @category Locales +* @summary Tamil locale (India). +* @language Tamil +* @iso-639-2 tam +* @author Sibiraj [@sibiraj-s](https://github.com/sibiraj-s) +*/ +var ta = { + code: "ta", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(வது)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(கி.மு.|கி.பி.)/i, + abbreviated: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /1/i, + /2/i, + /3/i, + /4/i], + + any: [ + /(1|காலா.1|ஒன்றாம்)/i, + /(2|காலா.2|இரண்டாம்)/i, + /(3|காலா.3|மூன்றாம்)/i, + /(4|காலா.4|நான்காம்)/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, + abbreviated: /^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, + wide: /^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ஜ$/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூ/i, + /^ஜூ/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i], + + any: [ + /^ஜன/i, + /^பி/i, + /^மா/i, + /^ஏ/i, + /^மே/i, + /^ஜூன்/i, + /^ஜூலை/i, + /^ஆ/i, + /^செ/i, + /^அ/i, + /^ந/i, + /^டி/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + short: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + abbreviated: /^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, + wide: /^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ஞா/i, + /^தி/i, + /^செ/i, + /^பு/i, + /^வி/i, + /^வெ/i, + /^ச/i], + + any: [ + /^ஞா/i, + /^தி/i, + /^செ/i, + /^பு/i, + /^வி/i, + /^வெ/i, + /^ச/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, + any: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^மு/i, + pm: /^பி/i, + midnight: /^நள்/i, + noon: /^நண்/i, + morning: /காலை/i, + afternoon: /மதியம்/i, + evening: /மாலை/i, + night: /இரவு/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/ta/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + ta: ta }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/cdn.min.js b/node_modules/date-fns/locale/ta/cdn.min.js new file mode 100644 index 000000000..793f9638d --- /dev/null +++ b/node_modules/date-fns/locale/ta/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?`in`:`ago`:`default`,i=s[e];return o(i)?t===1?i.one[r]:i.other[r].replace(`{{count}}`,String(t)):i[r]};function l(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var u={date:l({formats:{full:`EEEE, d MMMM, y`,long:`d MMMM, y`,medium:`d MMM, y`,short:`d/M/yy`},defaultWidth:`full`}),time:l({formats:{full:`a h:mm:ss zzzz`,long:`a h:mm:ss z`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:l({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},d={lastWeek:`'கடந்த' eeee p 'மணிக்கு'`,yesterday:`'நேற்று ' p 'மணிக்கு'`,today:`'இன்று ' p 'மணிக்கு'`,tomorrow:`'நாளை ' p 'மணிக்கு'`,nextWeek:`eeee p 'மணிக்கு'`,other:`P`},f=function(e,t,n,r){return d[e]};function p(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var m={ordinalNumber:function(e,t){return String(e)},era:p({values:{narrow:[`கி.மு.`,`கி.பி.`],abbreviated:[`கி.மு.`,`கி.பி.`],wide:[`கிறிஸ்துவுக்கு முன்`,`அன்னோ டோமினி`]},defaultWidth:`wide`}),quarter:p({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`காலா.1`,`காலா.2`,`காலா.3`,`காலா.4`],wide:[`ஒன்றாம் காலாண்டு`,`இரண்டாம் காலாண்டு`,`மூன்றாம் காலாண்டு`,`நான்காம் காலாண்டு`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:p({values:{narrow:[`ஜ`,`பி`,`மா`,`ஏ`,`மே`,`ஜூ`,`ஜூ`,`ஆ`,`செ`,`அ`,`ந`,`டி`],abbreviated:[`ஜன.`,`பிப்.`,`மார்.`,`ஏப்.`,`மே`,`ஜூன்`,`ஜூலை`,`ஆக.`,`செப்.`,`அக்.`,`நவ.`,`டிச.`],wide:[`ஜனவரி`,`பிப்ரவரி`,`மார்ச்`,`ஏப்ரல்`,`மே`,`ஜூன்`,`ஜூலை`,`ஆகஸ்ட்`,`செப்டம்பர்`,`அக்டோபர்`,`நவம்பர்`,`டிசம்பர்`]},defaultWidth:`wide`}),day:p({values:{narrow:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],short:[`ஞா`,`தி`,`செ`,`பு`,`வி`,`வெ`,`ச`],abbreviated:[`ஞாயி.`,`திங்.`,`செவ்.`,`புத.`,`வியா.`,`வெள்.`,`சனி`],wide:[`ஞாயிறு`,`திங்கள்`,`செவ்வாய்`,`புதன்`,`வியாழன்`,`வெள்ளி`,`சனி`]},defaultWidth:`wide`}),dayPeriod:p({values:{narrow:{am:`மு.ப`,pm:`பி.ப`,midnight:`நள்.`,noon:`நண்.`,morning:`கா.`,afternoon:`மதி.`,evening:`மா.`,night:`இர.`},abbreviated:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`},wide:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`மு.ப`,pm:`பி.ப`,midnight:`நள்.`,noon:`நண்.`,morning:`கா.`,afternoon:`மதி.`,evening:`மா.`,night:`இர.`},abbreviated:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`},wide:{am:`முற்பகல்`,pm:`பிற்பகல்`,midnight:`நள்ளிரவு`,noon:`நண்பகல்`,morning:`காலை`,afternoon:`மதியம்`,evening:`மாலை`,night:`இரவு`}},defaultFormattingWidth:`wide`})};function h(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?_(s,function(e){return e.test(o)}):g(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var y={code:`ta`,formatDistance:c,formatLong:u,formatRelative:f,localize:m,match:{ordinalNumber:v({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:h({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:`any`}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:h({matchPatterns:{narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},defaultParseWidth:`any`}),day:h({matchPatterns:{narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},defaultParseWidth:`any`}),dayPeriod:h({matchPatterns:{narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{ta:y})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/te.cjs b/node_modules/date-fns/locale/te.cjs new file mode 100644 index 000000000..caaf420c8 --- /dev/null +++ b/node_modules/date-fns/locale/te.cjs @@ -0,0 +1,27 @@ +"use strict"; +exports.te = void 0; +var _index = require("./te/_lib/formatDistance.cjs"); +var _index2 = require("./te/_lib/formatLong.cjs"); +var _index3 = require("./te/_lib/formatRelative.cjs"); +var _index4 = require("./te/_lib/localize.cjs"); +var _index5 = require("./te/_lib/match.cjs"); + +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +const te = (exports.te = { + code: "te", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/te.d.cts b/node_modules/date-fns/locale/te.d.cts new file mode 100644 index 000000000..bab046bcf --- /dev/null +++ b/node_modules/date-fns/locale/te.d.cts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export declare const te: Locale; diff --git a/node_modules/date-fns/locale/te.d.ts b/node_modules/date-fns/locale/te.d.ts new file mode 100644 index 000000000..bab046bcf --- /dev/null +++ b/node_modules/date-fns/locale/te.d.ts @@ -0,0 +1,9 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export declare const te: Locale; diff --git a/node_modules/date-fns/locale/te.js b/node_modules/date-fns/locale/te.js new file mode 100644 index 000000000..321b0b47e --- /dev/null +++ b/node_modules/date-fns/locale/te.js @@ -0,0 +1,28 @@ +import { formatDistance } from "./te/_lib/formatDistance.js"; +import { formatLong } from "./te/_lib/formatLong.js"; +import { formatRelative } from "./te/_lib/formatRelative.js"; +import { localize } from "./te/_lib/localize.js"; +import { match } from "./te/_lib/match.js"; + +/** + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) + */ +export const te = { + code: "te", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default te; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.cjs b/node_modules/date-fns/locale/te/_lib/formatDistance.cjs new file mode 100644 index 000000000..649fe73b5 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.cjs @@ -0,0 +1,203 @@ +"use strict"; +exports.formatDistance = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ", + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + xSeconds: { + standalone: { + one: "ఒక సెకను", // CLDR #1314 + other: "{{count}} సెకన్ల", + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం", + }, + + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ", + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల", + }, + }, + + xMinutes: { + standalone: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాలు", + }, + withPreposition: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాల", + }, + }, + + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు", + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల", + }, + }, + + xHours: { + standalone: { + one: "ఒక గంట", // CLDR #1308 + other: "{{count}} గంటలు", + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల", + }, + }, + + xDays: { + standalone: { + one: "ఒక రోజు", // CLDR #1292 + other: "{{count}} రోజులు", + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల", + }, + }, + + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు", + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల", + }, + }, + + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు", + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల", + }, + }, + + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు", + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల", + }, + }, + + xMonths: { + standalone: { + one: "ఒక నెల", // CLDR #1281 + other: "{{count}} నెలలు", + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల", + }, + }, + + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల", + }, + }, + + xYears: { + standalone: { + one: "ఒక సంవత్సరం", // CLDR #1275 + other: "{{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల", + }, + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "లో"; + } else { + return result + " క్రితం"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/te/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/te/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance.js b/node_modules/date-fns/locale/te/_lib/formatDistance.js new file mode 100644 index 000000000..0e8fb94bb --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance.js @@ -0,0 +1,199 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ", + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + xSeconds: { + standalone: { + one: "ఒక సెకను", // CLDR #1314 + other: "{{count}} సెకన్ల", + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల", + }, + }, + + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం", + }, + + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ", + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల", + }, + }, + + xMinutes: { + standalone: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాలు", + }, + withPreposition: { + one: "ఒక నిమిషం", // CLDR #1311 + other: "{{count}} నిమిషాల", + }, + }, + + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు", + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల", + }, + }, + + xHours: { + standalone: { + one: "ఒక గంట", // CLDR #1308 + other: "{{count}} గంటలు", + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల", + }, + }, + + xDays: { + standalone: { + one: "ఒక రోజు", // CLDR #1292 + other: "{{count}} రోజులు", + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల", + }, + }, + + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు", + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల", + }, + }, + + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు", + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల", + }, + }, + + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు", + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల", + }, + }, + + xMonths: { + standalone: { + one: "ఒక నెల", // CLDR #1281 + other: "{{count}} నెలలు", + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల", + }, + }, + + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల", + }, + }, + + xYears: { + standalone: { + one: "ఒక సంవత్సరం", // CLDR #1275 + other: "{{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా", + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల", + }, + }, + + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు", + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల", + }, + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = options?.addSuffix + ? formatDistanceLocale[token].withPreposition + : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + "లో"; + } else { + return result + " క్రితం"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/te/_lib/formatLong.cjs b/node_modules/date-fns/locale/te/_lib/formatLong.cjs new file mode 100644 index 000000000..9fc4406d3 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.cjs @@ -0,0 +1,46 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +// CLDR #1807 - #1811 +const dateFormats = { + full: "d, MMMM y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd-MM-yy", +}; + +// CLDR #1807 - #1811 +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +// CLDR #1815 - #1818 +const dateTimeFormats = { + full: "{{date}} {{time}}'కి'", + long: "{{date}} {{time}}'కి'", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/te/_lib/formatLong.d.cts b/node_modules/date-fns/locale/te/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/te/_lib/formatLong.d.ts b/node_modules/date-fns/locale/te/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/te/_lib/formatLong.js b/node_modules/date-fns/locale/te/_lib/formatLong.js new file mode 100644 index 000000000..3a63bab0d --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong.js @@ -0,0 +1,44 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +// CLDR #1807 - #1811 +const dateFormats = { + full: "d, MMMM y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd-MM-yy", +}; + +// CLDR #1807 - #1811 +const timeFormats = { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a", +}; + +// CLDR #1815 - #1818 +const dateTimeFormats = { + full: "{{date}} {{time}}'కి'", + long: "{{date}} {{time}}'కి'", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative.cjs b/node_modules/date-fns/locale/te/_lib/formatRelative.cjs new file mode 100644 index 000000000..3883b2c7d --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.cjs @@ -0,0 +1,17 @@ +"use strict"; +exports.formatRelative = void 0; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatRelativeLocale = { + lastWeek: "'గత' eeee p", // CLDR #1384 + yesterday: "'నిన్న' p", // CLDR #1393 + today: "'ఈ రోజు' p", // CLDR #1394 + tomorrow: "'రేపు' p", // CLDR #1395 + nextWeek: "'తదుపరి' eeee p", // CLDR #1386 + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/te/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/te/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative.js b/node_modules/date-fns/locale/te/_lib/formatRelative.js new file mode 100644 index 000000000..4e39f1f6a --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative.js @@ -0,0 +1,13 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html + +const formatRelativeLocale = { + lastWeek: "'గత' eeee p", // CLDR #1384 + yesterday: "'నిన్న' p", // CLDR #1393 + today: "'ఈ రోజు' p", // CLDR #1394 + tomorrow: "'రేపు' p", // CLDR #1395 + nextWeek: "'తదుపరి' eeee p", // CLDR #1386 + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/te/_lib/localize.cjs b/node_modules/date-fns/locale/te/_lib/localize.cjs new file mode 100644 index 000000000..ed331ff60 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.cjs @@ -0,0 +1,175 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ + +// CLDR #1605 - #1608 +const eraValues = { + narrow: ["క్రీ.పూ.", "క్రీ.శ."], + abbreviated: ["క్రీ.పూ.", "క్రీ.శ."], + wide: ["క్రీస్తు పూర్వం", "క్రీస్తుశకం"], +}; + +// CLDR #1613 - #1628 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["త్రై1", "త్రై2", "త్రై3", "త్రై4"], + wide: ["1వ త్రైమాసికం", "2వ త్రైమాసికం", "3వ త్రైమాసికం", "4వ త్రైమాసికం"], +}; + +// CLDR #1637 - #1708 +const monthValues = { + narrow: ["జ", "ఫి", "మా", "ఏ", "మే", "జూ", "జు", "ఆ", "సె", "అ", "న", "డి"], + + abbreviated: [ + "జన", + "ఫిబ్ర", + "మార్చి", + "ఏప్రి", + "మే", + "జూన్", + "జులై", + "ఆగ", + "సెప్టెం", + "అక్టో", + "నవం", + "డిసెం", + ], + + wide: [ + "జనవరి", + "ఫిబ్రవరి", + "మార్చి", + "ఏప్రిల్", + "మే", + "జూన్", + "జులై", + "ఆగస్టు", + "సెప్టెంబర్", + "అక్టోబర్", + "నవంబర్", + "డిసెంబర్", + ], +}; + +// CLDR #1709 - #1764 +const dayValues = { + narrow: ["ఆ", "సో", "మ", "బు", "గు", "శు", "శ"], + short: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + abbreviated: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + wide: [ + "ఆదివారం", + "సోమవారం", + "మంగళవారం", + "బుధవారం", + "గురువారం", + "శుక్రవారం", + "శనివారం", + ], +}; + +// CLDR #1767 - #1806 +const dayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "వ"; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/te/_lib/localize.d.cts b/node_modules/date-fns/locale/te/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/te/_lib/localize.d.ts b/node_modules/date-fns/locale/te/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/te/_lib/localize.js b/node_modules/date-fns/locale/te/_lib/localize.js new file mode 100644 index 000000000..d94e55bd7 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize.js @@ -0,0 +1,173 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ + +// CLDR #1605 - #1608 +const eraValues = { + narrow: ["క్రీ.పూ.", "క్రీ.శ."], + abbreviated: ["క్రీ.పూ.", "క్రీ.శ."], + wide: ["క్రీస్తు పూర్వం", "క్రీస్తుశకం"], +}; + +// CLDR #1613 - #1628 +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["త్రై1", "త్రై2", "త్రై3", "త్రై4"], + wide: ["1వ త్రైమాసికం", "2వ త్రైమాసికం", "3వ త్రైమాసికం", "4వ త్రైమాసికం"], +}; + +// CLDR #1637 - #1708 +const monthValues = { + narrow: ["జ", "ఫి", "మా", "ఏ", "మే", "జూ", "జు", "ఆ", "సె", "అ", "న", "డి"], + + abbreviated: [ + "జన", + "ఫిబ్ర", + "మార్చి", + "ఏప్రి", + "మే", + "జూన్", + "జులై", + "ఆగ", + "సెప్టెం", + "అక్టో", + "నవం", + "డిసెం", + ], + + wide: [ + "జనవరి", + "ఫిబ్రవరి", + "మార్చి", + "ఏప్రిల్", + "మే", + "జూన్", + "జులై", + "ఆగస్టు", + "సెప్టెంబర్", + "అక్టోబర్", + "నవంబర్", + "డిసెంబర్", + ], +}; + +// CLDR #1709 - #1764 +const dayValues = { + narrow: ["ఆ", "సో", "మ", "బు", "గు", "శు", "శ"], + short: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + abbreviated: ["ఆది", "సోమ", "మంగళ", "బుధ", "గురు", "శుక్ర", "శని"], + wide: [ + "ఆదివారం", + "సోమవారం", + "మంగళవారం", + "బుధవారం", + "గురువారం", + "శుక్రవారం", + "శనివారం", + ], +}; + +// CLDR #1767 - #1806 +const dayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "వ"; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/te/_lib/match.cjs b/node_modules/date-fns/locale/te/_lib/match.cjs new file mode 100644 index 000000000..080444497 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(వ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, + abbreviated: + /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, + wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i, +}; +const parseEraPatterns = { + any: [/^(పూ|శ)/i, /^సా/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^త్రై[1234]/i, + wide: /^[1234](వ)? త్రైమాసికం/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, + abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, + wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^జ/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూ/i, + /^జు/i, + /^ఆ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i, + ], + + any: [ + /^జన/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూన్/i, + /^జులై/i, + /^ఆగ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i, + short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i, +}; +const parseDayPatterns = { + narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i], + any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, + any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^పూర్వాహ్నం/i, + pm: /^అపరాహ్నం/i, + midnight: /^అర్ధ/i, + noon: /^మిట్ట/i, + morning: /ఉదయం/i, + afternoon: /మధ్యాహ్నం/i, + evening: /సాయంత్రం/i, + night: /రాత్రి/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/te/_lib/match.d.cts b/node_modules/date-fns/locale/te/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/te/_lib/match.d.ts b/node_modules/date-fns/locale/te/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/te/_lib/match.js b/node_modules/date-fns/locale/te/_lib/match.js new file mode 100644 index 000000000..fc526f07c --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(వ)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, + abbreviated: + /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, + wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i, +}; +const parseEraPatterns = { + any: [/^(పూ|శ)/i, /^సా/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^త్రై[1234]/i, + wide: /^[1234](వ)? త్రైమాసికం/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], +}; + +const matchMonthPatterns = { + narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, + abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, + wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^జ/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూ/i, + /^జు/i, + /^ఆ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i, + ], + + any: [ + /^జన/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూన్/i, + /^జులై/i, + /^ఆగ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i, + short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i, +}; +const parseDayPatterns = { + narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i], + any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i], +}; + +const matchDayPeriodPatterns = { + narrow: + /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, + any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^పూర్వాహ్నం/i, + pm: /^అపరాహ్నం/i, + midnight: /^అర్ధ/i, + noon: /^మిట్ట/i, + morning: /ఉదయం/i, + afternoon: /మధ్యాహ్నం/i, + evening: /సాయంత్రం/i, + night: /రాత్రి/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/te/cdn.js b/node_modules/date-fns/locale/te/cdn.js new file mode 100644 index 000000000..d5982bd13 --- /dev/null +++ b/node_modules/date-fns/locale/te/cdn.js @@ -0,0 +1,666 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/te/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: "సెకను కన్నా తక్కువ", + other: "{{count}} సెకన్ల కన్నా తక్కువ" + }, + withPreposition: { + one: "సెకను", + other: "{{count}} సెకన్ల" + } + }, + xSeconds: { + standalone: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల" + }, + withPreposition: { + one: "ఒక సెకను", + other: "{{count}} సెకన్ల" + } + }, + halfAMinute: { + standalone: "అర నిమిషం", + withPreposition: "అర నిమిషం" + }, + lessThanXMinutes: { + standalone: { + one: "ఒక నిమిషం కన్నా తక్కువ", + other: "{{count}} నిమిషాల కన్నా తక్కువ" + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల" + } + }, + xMinutes: { + standalone: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాలు" + }, + withPreposition: { + one: "ఒక నిమిషం", + other: "{{count}} నిమిషాల" + } + }, + aboutXHours: { + standalone: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటలు" + }, + withPreposition: { + one: "సుమారు ఒక గంట", + other: "సుమారు {{count}} గంటల" + } + }, + xHours: { + standalone: { + one: "ఒక గంట", + other: "{{count}} గంటలు" + }, + withPreposition: { + one: "ఒక గంట", + other: "{{count}} గంటల" + } + }, + xDays: { + standalone: { + one: "ఒక రోజు", + other: "{{count}} రోజులు" + }, + withPreposition: { + one: "ఒక రోజు", + other: "{{count}} రోజుల" + } + }, + aboutXWeeks: { + standalone: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలు" + }, + withPreposition: { + one: "సుమారు ఒక వారం", + other: "సుమారు {{count}} వారాలల" + } + }, + xWeeks: { + standalone: { + one: "ఒక వారం", + other: "{{count}} వారాలు" + }, + withPreposition: { + one: "ఒక వారం", + other: "{{count}} వారాలల" + } + }, + aboutXMonths: { + standalone: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలలు" + }, + withPreposition: { + one: "సుమారు ఒక నెల", + other: "సుమారు {{count}} నెలల" + } + }, + xMonths: { + standalone: { + one: "ఒక నెల", + other: "{{count}} నెలలు" + }, + withPreposition: { + one: "ఒక నెల", + other: "{{count}} నెలల" + } + }, + aboutXYears: { + standalone: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "సుమారు ఒక సంవత్సరం", + other: "సుమారు {{count}} సంవత్సరాల" + } + }, + xYears: { + standalone: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల" + } + }, + overXYears: { + standalone: { + one: "ఒక సంవత్సరం పైగా", + other: "{{count}} సంవత్సరాలకు పైగా" + }, + withPreposition: { + one: "ఒక సంవత్సరం", + other: "{{count}} సంవత్సరాల" + } + }, + almostXYears: { + standalone: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాలు" + }, + withPreposition: { + one: "దాదాపు ఒక సంవత్సరం", + other: "దాదాపు {{count}} సంవత్సరాల" + } + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + "లో";else + return result + " క్రితం"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "d, MMMM y, EEEE", + long: "d MMMM, y", + medium: "d MMM, y", + short: "dd-MM-yy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "h:mm:ss a zzzz", + long: "h:mm:ss a z", + medium: "h:mm:ss a", + short: "h:mm a" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} {{time}}'కి'", + long: "{{date}} {{time}}'కి'", + medium: "{{date}} {{time}}", + short: "{{date}} {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/te/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'గత' eeee p", + yesterday: "'నిన్న' p", + today: "'ఈ రోజు' p", + tomorrow: "'రేపు' p", + nextWeek: "'తదుపరి' eeee p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/te/_lib/localize.js +var eraValues = { + narrow: ["క్రీ.పూ.", "క్రీ.శ."], + abbreviated: ["క్రీ.పూ.", "క్రీ.శ."], + wide: ["క్రీస్తు పూర్వం", "క్రీస్తుశకం"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "త్రై1", + "త్రై2", + "త్రై3", + "త్రై4"], + + wide: [ + "1వ త్రైమాసికం", + "2వ త్రైమాసికం", + "3వ త్రైమాసికం", + "4వ త్రైమాసికం"] + +}; +var monthValues = { + narrow: [ + "జ", + "ఫి", + "మా", + "ఏ", + "మే", + "జూ", + "జు", + "ఆ", + "సె", + "అ", + "న", + "డి"], + + abbreviated: [ + "జన", + "ఫిబ్ర", + "మార్చి", + "ఏప్రి", + "మే", + "జూన్", + "జులై", + "ఆగ", + "సెప్టెం", + "అక్టో", + "నవం", + "డిసెం"], + + wide: [ + "జనవరి", + "ఫిబ్రవరి", + "మార్చి", + "ఏప్రిల్", + "మే", + "జూన్", + "జులై", + "ఆగస్టు", + "సెప్టెంబర్", + "అక్టోబర్", + "నవంబర్", + "డిసెంబర్"] + +}; +var dayValues = { + narrow: [ + "ఆ", + "సో", + "మ", + "బు", + "గు", + "శు", + "శ"], + + short: [ + "ఆది", + "సోమ", + "మంగళ", + "బుధ", + "గురు", + "శుక్ర", + "శని"], + + abbreviated: [ + "ఆది", + "సోమ", + "మంగళ", + "బుధ", + "గురు", + "శుక్ర", + "శని"], + + wide: [ + "ఆదివారం", + "సోమవారం", + "మంగళవారం", + "బుధవారం", + "గురువారం", + "శుక్రవారం", + "శనివారం"] + +}; +var dayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + }, + abbreviated: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + }, + wide: { + am: "పూర్వాహ్నం", + pm: "అపరాహ్నం", + midnight: "అర్ధరాత్రి", + noon: "మిట్టమధ్యాహ్నం", + morning: "ఉదయం", + afternoon: "మధ్యాహ్నం", + evening: "సాయంత్రం", + night: "రాత్రి" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "వ"; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/te.js +/** +* @category Locales +* @summary Telugu locale +* @language Telugu +* @iso-639-2 tel +* @author Kranthi Lakum [@kranthilakum](https://github.com/kranthilakum) +*/ +var te = { + code: "te", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(వ)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, + abbreviated: /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, + wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^(పూ|శ)/i, /^సా/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^త్రై[1234]/i, + wide: /^[1234](వ)? త్రైమాసికం/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /1/i, + /2/i, + /3/i, + /4/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, + abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, + wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^జ/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూ/i, + /^జు/i, + /^ఆ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i], + + any: [ + /^జన/i, + /^ఫి/i, + /^మా/i, + /^ఏ/i, + /^మే/i, + /^జూన్/i, + /^జులై/i, + /^ఆగ/i, + /^సె/i, + /^అ/i, + /^న/i, + /^డి/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i, + short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^ఆ/i, + /^సో/i, + /^మ/i, + /^బు/i, + /^గు/i, + /^శు/i, + /^శ/i], + + any: [ + /^ఆది/i, + /^సోమ/i, + /^మం/i, + /^బుధ/i, + /^గురు/i, + /^శుక్ర/i, + /^శని/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, + any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^పూర్వాహ్నం/i, + pm: /^అపరాహ్నం/i, + midnight: /^అర్ధ/i, + noon: /^మిట్ట/i, + morning: /ఉదయం/i, + afternoon: /మధ్యాహ్నం/i, + evening: /సాయంత్రం/i, + night: /రాత్రి/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/te/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + te: te }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/cdn.min.js b/node_modules/date-fns/locale/te/cdn.min.js new file mode 100644 index 000000000..b0f25c8c0 --- /dev/null +++ b/node_modules/date-fns/locale/te/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+`లో`:r+` క్రితం`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`d, MMMM y, EEEE`,long:`d MMMM, y`,medium:`d MMM, y`,short:`dd-MM-yy`},defaultWidth:`full`}),time:c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} {{time}}'కి'`,long:`{{date}} {{time}}'కి'`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},u={lastWeek:`'గత' eeee p`,yesterday:`'నిన్న' p`,today:`'ఈ రోజు' p`,tomorrow:`'రేపు' p`,nextWeek:`'తదుపరి' eeee p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`వ`},era:f({values:{narrow:[`క్రీ.పూ.`,`క్రీ.శ.`],abbreviated:[`క్రీ.పూ.`,`క్రీ.శ.`],wide:[`క్రీస్తు పూర్వం`,`క్రీస్తుశకం`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`త్రై1`,`త్రై2`,`త్రై3`,`త్రై4`],wide:[`1వ త్రైమాసికం`,`2వ త్రైమాసికం`,`3వ త్రైమాసికం`,`4వ త్రైమాసికం`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`జ`,`ఫి`,`మా`,`ఏ`,`మే`,`జూ`,`జు`,`ఆ`,`సె`,`అ`,`న`,`డి`],abbreviated:[`జన`,`ఫిబ్ర`,`మార్చి`,`ఏప్రి`,`మే`,`జూన్`,`జులై`,`ఆగ`,`సెప్టెం`,`అక్టో`,`నవం`,`డిసెం`],wide:[`జనవరి`,`ఫిబ్రవరి`,`మార్చి`,`ఏప్రిల్`,`మే`,`జూన్`,`జులై`,`ఆగస్టు`,`సెప్టెంబర్`,`అక్టోబర్`,`నవంబర్`,`డిసెంబర్`]},defaultWidth:`wide`}),day:f({values:{narrow:[`ఆ`,`సో`,`మ`,`బు`,`గు`,`శు`,`శ`],short:[`ఆది`,`సోమ`,`మంగళ`,`బుధ`,`గురు`,`శుక్ర`,`శని`],abbreviated:[`ఆది`,`సోమ`,`మంగళ`,`బుధ`,`గురు`,`శుక్ర`,`శని`],wide:[`ఆదివారం`,`సోమవారం`,`మంగళవారం`,`బుధవారం`,`గురువారం`,`శుక్రవారం`,`శనివారం`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},abbreviated:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},wide:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},abbreviated:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`},wide:{am:`పూర్వాహ్నం`,pm:`అపరాహ్నం`,midnight:`అర్ధరాత్రి`,noon:`మిట్టమధ్యాహ్నం`,morning:`ఉదయం`,afternoon:`మధ్యాహ్నం`,evening:`సాయంత్రం`,night:`రాత్రి`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`te`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(వ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{te:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/th.cjs b/node_modules/date-fns/locale/th.cjs new file mode 100644 index 000000000..727a21e40 --- /dev/null +++ b/node_modules/date-fns/locale/th.cjs @@ -0,0 +1,29 @@ +"use strict"; +exports.th = void 0; +var _index = require("./th/_lib/formatDistance.cjs"); +var _index2 = require("./th/_lib/formatLong.cjs"); +var _index3 = require("./th/_lib/formatRelative.cjs"); +var _index4 = require("./th/_lib/localize.cjs"); +var _index5 = require("./th/_lib/match.cjs"); + +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +const th = (exports.th = { + code: "th", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/th.d.cts b/node_modules/date-fns/locale/th.d.cts new file mode 100644 index 000000000..03d00d052 --- /dev/null +++ b/node_modules/date-fns/locale/th.d.cts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export declare const th: Locale; diff --git a/node_modules/date-fns/locale/th.d.ts b/node_modules/date-fns/locale/th.d.ts new file mode 100644 index 000000000..03d00d052 --- /dev/null +++ b/node_modules/date-fns/locale/th.d.ts @@ -0,0 +1,11 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export declare const th: Locale; diff --git a/node_modules/date-fns/locale/th.js b/node_modules/date-fns/locale/th.js new file mode 100644 index 000000000..39a50289c --- /dev/null +++ b/node_modules/date-fns/locale/th.js @@ -0,0 +1,30 @@ +import { formatDistance } from "./th/_lib/formatDistance.js"; +import { formatLong } from "./th/_lib/formatLong.js"; +import { formatRelative } from "./th/_lib/formatRelative.js"; +import { localize } from "./th/_lib/localize.js"; +import { match } from "./th/_lib/match.js"; + +/** + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) + * @author [@hawkup](https://github.com/hawkup) + * @author Jirawat I. [@nodtem66](https://github.com/nodtem66) + */ +export const th = { + code: "th", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default th; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.cjs b/node_modules/date-fns/locale/th/_lib/formatDistance.cjs new file mode 100644 index 000000000..09e746092 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.cjs @@ -0,0 +1,109 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "น้อยกว่า 1 วินาที", + other: "น้อยกว่า {{count}} วินาที", + }, + + xSeconds: { + one: "1 วินาที", + other: "{{count}} วินาที", + }, + + halfAMinute: "ครึ่งนาที", + + lessThanXMinutes: { + one: "น้อยกว่า 1 นาที", + other: "น้อยกว่า {{count}} นาที", + }, + + xMinutes: { + one: "1 นาที", + other: "{{count}} นาที", + }, + + aboutXHours: { + one: "ประมาณ 1 ชั่วโมง", + other: "ประมาณ {{count}} ชั่วโมง", + }, + + xHours: { + one: "1 ชั่วโมง", + other: "{{count}} ชั่วโมง", + }, + + xDays: { + one: "1 วัน", + other: "{{count}} วัน", + }, + + aboutXWeeks: { + one: "ประมาณ 1 สัปดาห์", + other: "ประมาณ {{count}} สัปดาห์", + }, + + xWeeks: { + one: "1 สัปดาห์", + other: "{{count}} สัปดาห์", + }, + + aboutXMonths: { + one: "ประมาณ 1 เดือน", + other: "ประมาณ {{count}} เดือน", + }, + + xMonths: { + one: "1 เดือน", + other: "{{count}} เดือน", + }, + + aboutXYears: { + one: "ประมาณ 1 ปี", + other: "ประมาณ {{count}} ปี", + }, + + xYears: { + one: "1 ปี", + other: "{{count}} ปี", + }, + + overXYears: { + one: "มากกว่า 1 ปี", + other: "มากกว่า {{count}} ปี", + }, + + almostXYears: { + one: "เกือบ 1 ปี", + other: "เกือบ {{count}} ปี", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (token === "halfAMinute") { + return "ใน" + result; + } else { + return "ใน " + result; + } + } else { + return result + "ที่ผ่านมา"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/th/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/th/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance.js b/node_modules/date-fns/locale/th/_lib/formatDistance.js new file mode 100644 index 000000000..c010b3326 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance.js @@ -0,0 +1,105 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "น้อยกว่า 1 วินาที", + other: "น้อยกว่า {{count}} วินาที", + }, + + xSeconds: { + one: "1 วินาที", + other: "{{count}} วินาที", + }, + + halfAMinute: "ครึ่งนาที", + + lessThanXMinutes: { + one: "น้อยกว่า 1 นาที", + other: "น้อยกว่า {{count}} นาที", + }, + + xMinutes: { + one: "1 นาที", + other: "{{count}} นาที", + }, + + aboutXHours: { + one: "ประมาณ 1 ชั่วโมง", + other: "ประมาณ {{count}} ชั่วโมง", + }, + + xHours: { + one: "1 ชั่วโมง", + other: "{{count}} ชั่วโมง", + }, + + xDays: { + one: "1 วัน", + other: "{{count}} วัน", + }, + + aboutXWeeks: { + one: "ประมาณ 1 สัปดาห์", + other: "ประมาณ {{count}} สัปดาห์", + }, + + xWeeks: { + one: "1 สัปดาห์", + other: "{{count}} สัปดาห์", + }, + + aboutXMonths: { + one: "ประมาณ 1 เดือน", + other: "ประมาณ {{count}} เดือน", + }, + + xMonths: { + one: "1 เดือน", + other: "{{count}} เดือน", + }, + + aboutXYears: { + one: "ประมาณ 1 ปี", + other: "ประมาณ {{count}} ปี", + }, + + xYears: { + one: "1 ปี", + other: "{{count}} ปี", + }, + + overXYears: { + one: "มากกว่า 1 ปี", + other: "มากกว่า {{count}} ปี", + }, + + almostXYears: { + one: "เกือบ 1 ปี", + other: "เกือบ {{count}} ปี", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", String(count)); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (token === "halfAMinute") { + return "ใน" + result; + } else { + return "ใน " + result; + } + } else { + return result + "ที่ผ่านมา"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.cjs b/node_modules/date-fns/locale/th/_lib/formatLong.cjs new file mode 100644 index 000000000..60633d65f --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "วันEEEEที่ do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "H:mm:ss น. zzzz", + long: "H:mm:ss น. z", + medium: "H:mm:ss น.", + short: "H:mm น.", +}; + +const dateTimeFormats = { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "medium", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.d.cts b/node_modules/date-fns/locale/th/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.d.ts b/node_modules/date-fns/locale/th/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/th/_lib/formatLong.js b/node_modules/date-fns/locale/th/_lib/formatLong.js new file mode 100644 index 000000000..5a62569fd --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "วันEEEEที่ do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy", +}; + +const timeFormats = { + full: "H:mm:ss น. zzzz", + long: "H:mm:ss น. z", + medium: "H:mm:ss น.", + short: "H:mm น.", +}; + +const dateTimeFormats = { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "medium", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.cjs b/node_modules/date-fns/locale/th/_lib/formatRelative.cjs new file mode 100644 index 000000000..8419e1ec9 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/th/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/th/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative.js b/node_modules/date-fns/locale/th/_lib/formatRelative.js new file mode 100644 index 000000000..b73deab8d --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/th/_lib/localize.cjs b/node_modules/date-fns/locale/th/_lib/localize.cjs new file mode 100644 index 000000000..d590c2d82 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.cjs @@ -0,0 +1,171 @@ +"use strict"; +exports.localize = void 0; +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ไตรมาสแรก", "ไตรมาสที่สอง", "ไตรมาสที่สาม", "ไตรมาสที่สี่"], +}; + +const dayValues = { + narrow: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + short: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + abbreviated: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + wide: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"], +}; + +const monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + abbreviated: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + wide: [ + "มกราคม", + "กุมภาพันธ์", + "มีนาคม", + "เมษายน", + "พฤษภาคม", + "มิถุนายน", + "กรกฎาคม", + "สิงหาคม", + "กันยายน", + "ตุลาคม", + "พฤศจิกายน", + "ธันวาคม", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/th/_lib/localize.d.cts b/node_modules/date-fns/locale/th/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/th/_lib/localize.d.ts b/node_modules/date-fns/locale/th/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/th/_lib/localize.js b/node_modules/date-fns/locale/th/_lib/localize.js new file mode 100644 index 000000000..66c9b8ab1 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize.js @@ -0,0 +1,169 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["Q1", "Q2", "Q3", "Q4"], + wide: ["ไตรมาสแรก", "ไตรมาสที่สอง", "ไตรมาสที่สาม", "ไตรมาสที่สี่"], +}; + +const dayValues = { + narrow: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + short: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + abbreviated: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."], + wide: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"], +}; + +const monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + abbreviated: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค.", + ], + + wide: [ + "มกราคม", + "กุมภาพันธ์", + "มีนาคม", + "เมษายน", + "พฤษภาคม", + "มิถุนายน", + "กรกฎาคม", + "สิงหาคม", + "กันยายน", + "ตุลาคม", + "พฤศจิกายน", + "ธันวาคม", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + return String(dirtyNumber); +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => quarter - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/th/_lib/match.cjs b/node_modules/date-fns/locale/th/_lib/match.cjs new file mode 100644 index 000000000..6e0901324 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/match.cjs @@ -0,0 +1,137 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^\d+/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([bB]|[aA]|คศ)/i, + abbreviated: + /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i, +}; +const parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^ไตรมาส(ที่)? ?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/(1|แรก|หนึ่ง)/i, /(2|สอง)/i, /(3|สาม)/i, /(4|สี่)/i], +}; + +const matchMonthPatterns = { + narrow: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i, +}; +const parseMonthPatterns = { + wide: [ + /^มก/i, + /^กุม/i, + /^มี/i, + /^เม/i, + /^พฤษ/i, + /^มิ/i, + /^กรก/i, + /^ส/i, + /^กัน/i, + /^ต/i, + /^พฤศ/i, + /^ธ/i, + ], + + any: [ + /^ม\.?ค\.?/i, + /^ก\.?พ\.?/i, + /^มี\.?ค\.?/i, + /^เม\.?ย\.?/i, + /^พ\.?ค\.?/i, + /^มิ\.?ย\.?/i, + /^ก\.?ค\.?/i, + /^ส\.?ค\.?/i, + /^ก\.?ย\.?/i, + /^ต\.?ค\.?/i, + /^พ\.?ย\.?/i, + /^ธ\.?ค\.?/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + short: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + abbreviated: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + wide: /^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i, +}; +const parseDayPatterns = { + wide: [/^อา/i, /^จั/i, /^อั/i, /^พุธ/i, /^พฤ/i, /^ศ/i, /^เส/i], + any: [/^อา/i, /^จ/i, /^อ/i, /^พ(?!ฤ)/i, /^พฤ/i, /^ศ/i, /^ส/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ก่อนเที่ยง/i, + pm: /^หลังเที่ยง/i, + midnight: /^เที่ยงคืน/i, + noon: /^เที่ยง/i, + morning: /เช้า/i, + afternoon: /บ่าย/i, + evening: /เย็น/i, + night: /กลางคืน/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/th/_lib/match.d.cts b/node_modules/date-fns/locale/th/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/th/_lib/match.d.ts b/node_modules/date-fns/locale/th/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/th/_lib/match.js b/node_modules/date-fns/locale/th/_lib/match.js new file mode 100644 index 000000000..dc1c9500d --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/match.js @@ -0,0 +1,134 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^\d+/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^([bB]|[aA]|คศ)/i, + abbreviated: + /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i, +}; +const parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^ไตรมาส(ที่)? ?[1234]/i, +}; +const parseQuarterPatterns = { + any: [/(1|แรก|หนึ่ง)/i, /(2|สอง)/i, /(3|สาม)/i, /(4|สี่)/i], +}; + +const matchMonthPatterns = { + narrow: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: + /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i, +}; +const parseMonthPatterns = { + wide: [ + /^มก/i, + /^กุม/i, + /^มี/i, + /^เม/i, + /^พฤษ/i, + /^มิ/i, + /^กรก/i, + /^ส/i, + /^กัน/i, + /^ต/i, + /^พฤศ/i, + /^ธ/i, + ], + + any: [ + /^ม\.?ค\.?/i, + /^ก\.?พ\.?/i, + /^มี\.?ค\.?/i, + /^เม\.?ย\.?/i, + /^พ\.?ค\.?/i, + /^มิ\.?ย\.?/i, + /^ก\.?ค\.?/i, + /^ส\.?ค\.?/i, + /^ก\.?ย\.?/i, + /^ต\.?ค\.?/i, + /^พ\.?ย\.?/i, + /^ธ\.?ค\.?/i, + ], +}; + +const matchDayPatterns = { + narrow: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + short: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + abbreviated: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + wide: /^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i, +}; +const parseDayPatterns = { + wide: [/^อา/i, /^จั/i, /^อั/i, /^พุธ/i, /^พฤ/i, /^ศ/i, /^เส/i], + any: [/^อา/i, /^จ/i, /^อ/i, /^พ(?!ฤ)/i, /^พฤ/i, /^ศ/i, /^ส/i], +}; + +const matchDayPeriodPatterns = { + any: /^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ก่อนเที่ยง/i, + pm: /^หลังเที่ยง/i, + midnight: /^เที่ยงคืน/i, + noon: /^เที่ยง/i, + morning: /เช้า/i, + afternoon: /บ่าย/i, + evening: /เย็น/i, + night: /กลางคืน/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: (value) => parseInt(value, 10), + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/th/cdn.js b/node_modules/date-fns/locale/th/cdn.js new file mode 100644 index 000000000..899c2549b --- /dev/null +++ b/node_modules/date-fns/locale/th/cdn.js @@ -0,0 +1,573 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/th/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "น้อยกว่า 1 วินาที", + other: "น้อยกว่า {{count}} วินาที" + }, + xSeconds: { + one: "1 วินาที", + other: "{{count}} วินาที" + }, + halfAMinute: "ครึ่งนาที", + lessThanXMinutes: { + one: "น้อยกว่า 1 นาที", + other: "น้อยกว่า {{count}} นาที" + }, + xMinutes: { + one: "1 นาที", + other: "{{count}} นาที" + }, + aboutXHours: { + one: "ประมาณ 1 ชั่วโมง", + other: "ประมาณ {{count}} ชั่วโมง" + }, + xHours: { + one: "1 ชั่วโมง", + other: "{{count}} ชั่วโมง" + }, + xDays: { + one: "1 วัน", + other: "{{count}} วัน" + }, + aboutXWeeks: { + one: "ประมาณ 1 สัปดาห์", + other: "ประมาณ {{count}} สัปดาห์" + }, + xWeeks: { + one: "1 สัปดาห์", + other: "{{count}} สัปดาห์" + }, + aboutXMonths: { + one: "ประมาณ 1 เดือน", + other: "ประมาณ {{count}} เดือน" + }, + xMonths: { + one: "1 เดือน", + other: "{{count}} เดือน" + }, + aboutXYears: { + one: "ประมาณ 1 ปี", + other: "ประมาณ {{count}} ปี" + }, + xYears: { + one: "1 ปี", + other: "{{count}} ปี" + }, + overXYears: { + one: "มากกว่า 1 ปี", + other: "มากกว่า {{count}} ปี" + }, + almostXYears: { + one: "เกือบ 1 ปี", + other: "เกือบ {{count}} ปี" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", String(count)); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) {if (token === "halfAMinute") return "ใน" + result;else + return "ใน " + result;} else + return result + "ที่ผ่านมา"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "วันEEEEที่ do MMMM y", + long: "do MMMM y", + medium: "d MMM y", + short: "dd/MM/yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "H:mm:ss น. zzzz", + long: "H:mm:ss น. z", + medium: "H:mm:ss น.", + short: "H:mm น." + }, + defaultWidth: "medium" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/th/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/th/_lib/localize.js +var eraValues = { + narrow: ["B", "คศ"], + abbreviated: ["BC", "ค.ศ."], + wide: ["ปีก่อนคริสตกาล", "คริสต์ศักราช"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "Q1", + "Q2", + "Q3", + "Q4"], + + wide: [ + "ไตรมาสแรก", + "ไตรมาสที่สอง", + "ไตรมาสที่สาม", + "ไตรมาสที่สี่"] + +}; +var dayValues = { + narrow: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + short: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + abbreviated: [ + "อา.", + "จ.", + "อ.", + "พ.", + "พฤ.", + "ศ.", + "ส."], + + wide: [ + "อาทิตย์", + "จันทร์", + "อังคาร", + "พุธ", + "พฤหัสบดี", + "ศุกร์", + "เสาร์"] + +}; +var monthValues = { + narrow: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค."], + + abbreviated: [ + "ม.ค.", + "ก.พ.", + "มี.ค.", + "เม.ย.", + "พ.ค.", + "มิ.ย.", + "ก.ค.", + "ส.ค.", + "ก.ย.", + "ต.ค.", + "พ.ย.", + "ธ.ค."], + + wide: [ + "มกราคม", + "กุมภาพันธ์", + "มีนาคม", + "เมษายน", + "พฤษภาคม", + "มิถุนายน", + "กรกฎาคม", + "สิงหาคม", + "กันยายน", + "ตุลาคม", + "พฤศจิกายน", + "ธันวาคม"] + +}; +var dayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน" + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน" + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "เช้า", + afternoon: "บ่าย", + evening: "เย็น", + night: "กลางคืน" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน" + }, + abbreviated: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน" + }, + wide: { + am: "ก่อนเที่ยง", + pm: "หลังเที่ยง", + midnight: "เที่ยงคืน", + noon: "เที่ยง", + morning: "ตอนเช้า", + afternoon: "ตอนกลางวัน", + evening: "ตอนเย็น", + night: "ตอนกลางคืน" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return quarter - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/th.js +/** +* @category Locales +* @summary Thai locale. +* @language Thai +* @iso-639-2 tha +* @author Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat) +* @author [@hawkup](https://github.com/hawkup) +* @author Jirawat I. [@nodtem66](https://github.com/nodtem66) +*/ +var th = { + code: "th", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^\d+/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) {return parseInt(value, 10);} + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^([bB]|[aA]|คศ)/i, + abbreviated: /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^ไตรมาส(ที่)? ?[1234]/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [ + /(1|แรก|หนึ่ง)/i, + /(2|สอง)/i, + /(3|สาม)/i, + /(4|สี่)/i] + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [ + /^มก/i, + /^กุม/i, + /^มี/i, + /^เม/i, + /^พฤษ/i, + /^มิ/i, + /^กรก/i, + /^ส/i, + /^กัน/i, + /^ต/i, + /^พฤศ/i, + /^ธ/i], + + any: [ + /^ม\.?ค\.?/i, + /^ก\.?พ\.?/i, + /^มี\.?ค\.?/i, + /^เม\.?ย\.?/i, + /^พ\.?ค\.?/i, + /^มิ\.?ย\.?/i, + /^ก\.?ค\.?/i, + /^ส\.?ค\.?/i, + /^ก\.?ย\.?/i, + /^ต\.?ค\.?/i, + /^พ\.?ย\.?/i, + /^ธ\.?ค\.?/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + short: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + abbreviated: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + wide: /^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + wide: [ + /^อา/i, + /^จั/i, + /^อั/i, + /^พุธ/i, + /^พฤ/i, + /^ศ/i, + /^เส/i], + + any: [ + /^อา/i, + /^จ/i, + /^อ/i, + /^พ(?!ฤ)/i, + /^พฤ/i, + /^ศ/i, + /^ส/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { any: /^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ก่อนเที่ยง/i, + pm: /^หลังเที่ยง/i, + midnight: /^เที่ยงคืน/i, + noon: /^เที่ยง/i, + morning: /เช้า/i, + afternoon: /บ่าย/i, + evening: /เย็น/i, + night: /กลางคืน/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 0, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/th/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + th: th }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/cdn.min.js b/node_modules/date-fns/locale/th/cdn.min.js new file mode 100644 index 000000000..3c3ee6d8c --- /dev/null +++ b/node_modules/date-fns/locale/th/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?e===`halfAMinute`?`ใน`+r:`ใน `+r:r+`ที่ผ่านมา`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`วันEEEEที่ do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:c({formats:{full:`H:mm:ss น. zzzz`,long:`H:mm:ss น. z`,medium:`H:mm:ss น.`,short:`H:mm น.`},defaultWidth:`medium`}),dateTime:c({formats:{full:`{{date}} 'เวลา' {{time}}`,long:`{{date}} 'เวลา' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`eeee'ที่แล้วเวลา' p`,yesterday:`'เมื่อวานนี้เวลา' p`,today:`'วันนี้เวลา' p`,tomorrow:`'พรุ่งนี้เวลา' p`,nextWeek:`eeee 'เวลา' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return String(e)},era:f({values:{narrow:[`B`,`คศ`],abbreviated:[`BC`,`ค.ศ.`],wide:[`ปีก่อนคริสตกาล`,`คริสต์ศักราช`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`ไตรมาสแรก`,`ไตรมาสที่สอง`,`ไตรมาสที่สาม`,`ไตรมาสที่สี่`]},defaultWidth:`wide`,argumentCallback:function(e){return e-1}}),month:f({values:{narrow:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],abbreviated:[`ม.ค.`,`ก.พ.`,`มี.ค.`,`เม.ย.`,`พ.ค.`,`มิ.ย.`,`ก.ค.`,`ส.ค.`,`ก.ย.`,`ต.ค.`,`พ.ย.`,`ธ.ค.`],wide:[`มกราคม`,`กุมภาพันธ์`,`มีนาคม`,`เมษายน`,`พฤษภาคม`,`มิถุนายน`,`กรกฎาคม`,`สิงหาคม`,`กันยายน`,`ตุลาคม`,`พฤศจิกายน`,`ธันวาคม`]},defaultWidth:`wide`}),day:f({values:{narrow:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],short:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],abbreviated:[`อา.`,`จ.`,`อ.`,`พ.`,`พฤ.`,`ศ.`,`ส.`],wide:[`อาทิตย์`,`จันทร์`,`อังคาร`,`พุธ`,`พฤหัสบดี`,`ศุกร์`,`เสาร์`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`},abbreviated:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`},wide:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`เช้า`,afternoon:`บ่าย`,evening:`เย็น`,night:`กลางคืน`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`},abbreviated:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`},wide:{am:`ก่อนเที่ยง`,pm:`หลังเที่ยง`,midnight:`เที่ยงคืน`,noon:`เที่ยง`,morning:`ตอนเช้า`,afternoon:`ตอนกลางวัน`,evening:`ตอนเย็น`,night:`ตอนกลางคืน`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`th`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{th:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr.cjs b/node_modules/date-fns/locale/tr.cjs new file mode 100644 index 000000000..f7c043aec --- /dev/null +++ b/node_modules/date-fns/locale/tr.cjs @@ -0,0 +1,33 @@ +"use strict"; +exports.tr = void 0; +var _index = require("./tr/_lib/formatDistance.cjs"); +var _index2 = require("./tr/_lib/formatLong.cjs"); +var _index3 = require("./tr/_lib/formatRelative.cjs"); +var _index4 = require("./tr/_lib/localize.cjs"); +var _index5 = require("./tr/_lib/match.cjs"); + +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +const tr = (exports.tr = { + code: "tr", + formatDistance: _index.formatDistance, + formatLong: _index2.formatLong, + formatRelative: _index3.formatRelative, + localize: _index4.localize, + match: _index5.match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}); diff --git a/node_modules/date-fns/locale/tr.d.cts b/node_modules/date-fns/locale/tr.d.cts new file mode 100644 index 000000000..b66981d32 --- /dev/null +++ b/node_modules/date-fns/locale/tr.d.cts @@ -0,0 +1,15 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export declare const tr: Locale; diff --git a/node_modules/date-fns/locale/tr.d.ts b/node_modules/date-fns/locale/tr.d.ts new file mode 100644 index 000000000..b66981d32 --- /dev/null +++ b/node_modules/date-fns/locale/tr.d.ts @@ -0,0 +1,15 @@ +import type { Locale } from "./types.ts"; +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export declare const tr: Locale; diff --git a/node_modules/date-fns/locale/tr.js b/node_modules/date-fns/locale/tr.js new file mode 100644 index 000000000..7d227a965 --- /dev/null +++ b/node_modules/date-fns/locale/tr.js @@ -0,0 +1,34 @@ +import { formatDistance } from "./tr/_lib/formatDistance.js"; +import { formatLong } from "./tr/_lib/formatLong.js"; +import { formatRelative } from "./tr/_lib/formatRelative.js"; +import { localize } from "./tr/_lib/localize.js"; +import { match } from "./tr/_lib/match.js"; + +/** + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) + * @author Berkay Sargın [@berkaey](https://github.com/berkaey) + * @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) + * @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) + * @author İsmail Kayar [@ikayar](https://github.com/ikayar) + * + * + */ +export const tr = { + code: "tr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 /* Monday */, + firstWeekContainsDate: 1, + }, +}; + +// Fallback for modularized imports: +export default tr; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs b/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs new file mode 100644 index 000000000..e76c9927d --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.cjs @@ -0,0 +1,105 @@ +"use strict"; +exports.formatDistance = void 0; + +const formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az", + }, + + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye", + }, + + halfAMinute: "yarım dakika", + + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az", + }, + + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika", + }, + + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat", + }, + + xHours: { + one: "1 saat", + other: "{{count}} saat", + }, + + xDays: { + one: "1 gün", + other: "{{count}} gün", + }, + + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta", + }, + + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta", + }, + + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay", + }, + + xMonths: { + one: "1 ay", + other: "{{count}} ay", + }, + + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl", + }, + + xYears: { + one: "1 yıl", + other: "{{count}} yıl", + }, + + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla", + }, + + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl", + }, +}; + +const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " sonra"; + } else { + return result + " önce"; + } + } + + return result; +}; +exports.formatDistance = formatDistance; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.cts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.d.ts b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.ts new file mode 100644 index 000000000..abc57772a --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.d.ts @@ -0,0 +1,2 @@ +import type { FormatDistanceFn } from "../../types.ts"; +export declare const formatDistance: FormatDistanceFn; diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance.js b/node_modules/date-fns/locale/tr/_lib/formatDistance.js new file mode 100644 index 000000000..9aea4710a --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance.js @@ -0,0 +1,101 @@ +const formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az", + }, + + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye", + }, + + halfAMinute: "yarım dakika", + + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az", + }, + + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika", + }, + + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat", + }, + + xHours: { + one: "1 saat", + other: "{{count}} saat", + }, + + xDays: { + one: "1 gün", + other: "{{count}} gün", + }, + + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta", + }, + + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta", + }, + + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay", + }, + + xMonths: { + one: "1 ay", + other: "{{count}} ay", + }, + + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl", + }, + + xYears: { + one: "1 yıl", + other: "{{count}} yıl", + }, + + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla", + }, + + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl", + }, +}; + +export const formatDistance = (token, count, options) => { + let result; + + const tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace("{{count}}", count.toString()); + } + + if (options?.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + " sonra"; + } else { + return result + " önce"; + } + } + + return result; +}; diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.cjs b/node_modules/date-fns/locale/tr/_lib/formatLong.cjs new file mode 100644 index 000000000..45054b6bc --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong.cjs @@ -0,0 +1,41 @@ +"use strict"; +exports.formatLong = void 0; +var _index = require("../../_lib/buildFormatLongFn.cjs"); + +const dateFormats = { + full: "d MMMM y EEEE", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +const formatLong = (exports.formatLong = { + date: (0, _index.buildFormatLongFn)({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: (0, _index.buildFormatLongFn)({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: (0, _index.buildFormatLongFn)({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}); diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.d.cts b/node_modules/date-fns/locale/tr/_lib/formatLong.d.cts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong.d.cts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.d.ts b/node_modules/date-fns/locale/tr/_lib/formatLong.d.ts new file mode 100644 index 000000000..cd43c2c73 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong.d.ts @@ -0,0 +1,2 @@ +import type { FormatLong } from "../../types.ts"; +export declare const formatLong: FormatLong; diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong.js b/node_modules/date-fns/locale/tr/_lib/formatLong.js new file mode 100644 index 000000000..064d93afc --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong.js @@ -0,0 +1,39 @@ +import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js"; + +const dateFormats = { + full: "d MMMM y EEEE", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.yyyy", +}; + +const timeFormats = { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm", +}; + +const dateTimeFormats = { + full: "{{date}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}", +}; + +export const formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: "full", + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: "full", + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: "full", + }), +}; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.cjs b/node_modules/date-fns/locale/tr/_lib/formatRelative.cjs new file mode 100644 index 000000000..e7c351155 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.cjs @@ -0,0 +1,15 @@ +"use strict"; +exports.formatRelative = void 0; + +const formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: "P", +}; + +const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; +exports.formatRelative = formatRelative; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.cts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.d.ts b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.ts new file mode 100644 index 000000000..bb4cb3cde --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.d.ts @@ -0,0 +1,2 @@ +import type { FormatRelativeFn } from "../../types.ts"; +export declare const formatRelative: FormatRelativeFn; diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative.js b/node_modules/date-fns/locale/tr/_lib/formatRelative.js new file mode 100644 index 000000000..3c6336d40 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative.js @@ -0,0 +1,11 @@ +const formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: "P", +}; + +export const formatRelative = (token, _date, _baseDate, _options) => + formatRelativeLocale[token]; diff --git a/node_modules/date-fns/locale/tr/_lib/localize.cjs b/node_modules/date-fns/locale/tr/_lib/localize.cjs new file mode 100644 index 000000000..9109c386a --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.cjs @@ -0,0 +1,167 @@ +"use strict"; +exports.localize = void 0; + +var _index = require("../../_lib/buildLocalizeFn.cjs"); + +const eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"], + wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"], +}; + +const monthValues = { + narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"], + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara", + ], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık", + ], +}; + +const dayValues = { + narrow: ["P", "P", "S", "Ç", "P", "C", "C"], + short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], + abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"], + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +const localize = (exports.localize = { + ordinalNumber, + + era: (0, _index.buildLocalizeFn)({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: (0, _index.buildLocalizeFn)({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: (0, _index.buildLocalizeFn)({ + values: monthValues, + defaultWidth: "wide", + }), + + day: (0, _index.buildLocalizeFn)({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: (0, _index.buildLocalizeFn)({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}); diff --git a/node_modules/date-fns/locale/tr/_lib/localize.d.cts b/node_modules/date-fns/locale/tr/_lib/localize.d.cts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.d.cts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/tr/_lib/localize.d.ts b/node_modules/date-fns/locale/tr/_lib/localize.d.ts new file mode 100644 index 000000000..8a11c696f --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.d.ts @@ -0,0 +1,2 @@ +import type { Localize } from "../../types.ts"; +export declare const localize: Localize; diff --git a/node_modules/date-fns/locale/tr/_lib/localize.js b/node_modules/date-fns/locale/tr/_lib/localize.js new file mode 100644 index 000000000..bb9edf0a0 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize.js @@ -0,0 +1,164 @@ +import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js"; + +const eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"], +}; + +const quarterValues = { + narrow: ["1", "2", "3", "4"], + abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"], + wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"], +}; + +const monthValues = { + narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"], + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara", + ], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık", + ], +}; + +const dayValues = { + narrow: ["P", "P", "S", "Ç", "P", "C", "C"], + short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], + abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"], + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi", + ], +}; + +const dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece", + }, +}; + +const formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge", + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin", + }, +}; + +const ordinalNumber = (dirtyNumber, _options) => { + const number = Number(dirtyNumber); + return number + "."; +}; + +export const localize = { + ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide", + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: (quarter) => Number(quarter) - 1, + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide", + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide", + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide", + }), +}; diff --git a/node_modules/date-fns/locale/tr/_lib/match.cjs b/node_modules/date-fns/locale/tr/_lib/match.cjs new file mode 100644 index 000000000..f7f93e056 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.cjs @@ -0,0 +1,153 @@ +"use strict"; +exports.match = void 0; + +var _index = require("../../_lib/buildMatchFn.cjs"); +var _index2 = require("../../_lib/buildMatchPatternFn.cjs"); + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i, +}; +const parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i, + ], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i, +}; +const parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i, + }, +}; + +const match = (exports.match = { + ordinalNumber: (0, _index2.buildMatchPatternFn)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: (0, _index.buildMatchFn)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: (0, _index.buildMatchFn)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: (0, _index.buildMatchFn)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: (0, _index.buildMatchFn)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}); diff --git a/node_modules/date-fns/locale/tr/_lib/match.d.cts b/node_modules/date-fns/locale/tr/_lib/match.d.cts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.d.cts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/tr/_lib/match.d.ts b/node_modules/date-fns/locale/tr/_lib/match.d.ts new file mode 100644 index 000000000..e9076cb82 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.d.ts @@ -0,0 +1,2 @@ +import type { Match } from "../../types.ts"; +export declare const match: Match; diff --git a/node_modules/date-fns/locale/tr/_lib/match.js b/node_modules/date-fns/locale/tr/_lib/match.js new file mode 100644 index 000000000..99c612121 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match.js @@ -0,0 +1,150 @@ +import { buildMatchFn } from "../../_lib/buildMatchFn.js"; +import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js"; + +const matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +const parseOrdinalNumberPattern = /\d+/i; + +const matchEraPatterns = { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i, +}; +const parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i], +}; + +const matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i, +}; +const parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i, + ], +}; + +const matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i, +}; +const parseMonthPatterns = { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i, + ], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i, + ], +}; + +const matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i, +}; +const parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i, + ], +}; + +const matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i, +}; +const parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i, + }, +}; + +export const match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10); + }, + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseEraPatterns, + defaultParseWidth: "any", + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseQuarterPatterns, + defaultParseWidth: "any", + valueCallback: (index) => index + 1, + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseMonthPatterns, + defaultParseWidth: "any", + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: "wide", + parsePatterns: parseDayPatterns, + defaultParseWidth: "any", + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: "any", + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: "any", + }), +}; diff --git a/node_modules/date-fns/locale/tr/cdn.js b/node_modules/date-fns/locale/tr/cdn.js new file mode 100644 index 000000000..81b44e1e8 --- /dev/null +++ b/node_modules/date-fns/locale/tr/cdn.js @@ -0,0 +1,604 @@ +(() => { +var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/tr/_lib/formatDistance.js +var formatDistanceLocale = { + lessThanXSeconds: { + one: "bir saniyeden az", + other: "{{count}} saniyeden az" + }, + xSeconds: { + one: "1 saniye", + other: "{{count}} saniye" + }, + halfAMinute: "yarım dakika", + lessThanXMinutes: { + one: "bir dakikadan az", + other: "{{count}} dakikadan az" + }, + xMinutes: { + one: "1 dakika", + other: "{{count}} dakika" + }, + aboutXHours: { + one: "yaklaşık 1 saat", + other: "yaklaşık {{count}} saat" + }, + xHours: { + one: "1 saat", + other: "{{count}} saat" + }, + xDays: { + one: "1 gün", + other: "{{count}} gün" + }, + aboutXWeeks: { + one: "yaklaşık 1 hafta", + other: "yaklaşık {{count}} hafta" + }, + xWeeks: { + one: "1 hafta", + other: "{{count}} hafta" + }, + aboutXMonths: { + one: "yaklaşık 1 ay", + other: "yaklaşık {{count}} ay" + }, + xMonths: { + one: "1 ay", + other: "{{count}} ay" + }, + aboutXYears: { + one: "yaklaşık 1 yıl", + other: "yaklaşık {{count}} yıl" + }, + xYears: { + one: "1 yıl", + other: "{{count}} yıl" + }, + overXYears: { + one: "1 yıldan fazla", + other: "{{count}} yıldan fazla" + }, + almostXYears: { + one: "neredeyse 1 yıl", + other: "neredeyse {{count}} yıl" + } +}; +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === "string") result = tokenValue;else + if (count === 1) result = tokenValue.one;else + result = tokenValue.other.replace("{{count}}", count.toString()); + if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return result + " sonra";else + return result + " önce"; + return result; +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildFormatLongFn.js +function buildFormatLongFn(args) { + return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var width = options.width ? String(options.width) : args.defaultWidth; + return args.formats[width] || args.formats[args.defaultWidth]; + }; +} +var formatLong = { + date: buildFormatLongFn({ + formats: { + full: "d MMMM y EEEE", + long: "d MMMM y", + medium: "d MMM y", + short: "dd.MM.yyyy" + }, + defaultWidth: "full" + }), + time: buildFormatLongFn({ + formats: { + full: "HH:mm:ss zzzz", + long: "HH:mm:ss z", + medium: "HH:mm:ss", + short: "HH:mm" + }, + defaultWidth: "full" + }), + dateTime: buildFormatLongFn({ + formats: { + full: "{{date}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: "{{date}}, {{time}}", + short: "{{date}}, {{time}}" + }, + defaultWidth: "full" + }) +}; +//#endregion +//#region dist/date-fns/locale/tr/_lib/formatRelative.js +var formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: "P" +}; +var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];}; +//#endregion +//#region dist/date-fns/locale/_lib/buildLocalizeFn.js +/** +* The localize function argument callback which allows to convert raw value to +* the actual type. +* +* @param value - The value to convert +* +* @returns The converted value +*/ +/** +* The map of localized values for each width. +*/ +/** +* The index type of the locale unit value. It types conversion of units of +* values that don't start at 0 (i.e. quarters). +*/ +/** +* Converts the unit value to the tuple of values. +*/ +/** +* The tuple of localized era values. The first element represents BC, +* the second element represents AD. +*/ +/** +* The tuple of localized quarter values. The first element represents Q1. +*/ +/** +* The tuple of localized day values. The first element represents Sunday. +*/ +/** +* The tuple of localized month values. The first element represents January. +*/ +function buildLocalizeFn(args) { + return function (value, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; + var valuesArray; + if (context === "formatting" && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + var index = args.argumentCallback ? args.argumentCallback(value) : value; + return valuesArray[index]; + }; +} +//#endregion +//#region dist/date-fns/locale/tr/_lib/localize.js +var eraValues = { + narrow: ["MÖ", "MS"], + abbreviated: ["MÖ", "MS"], + wide: ["Milattan Önce", "Milattan Sonra"] +}; +var quarterValues = { + narrow: [ + "1", + "2", + "3", + "4"], + + abbreviated: [ + "1Ç", + "2Ç", + "3Ç", + "4Ç"], + + wide: [ + "İlk çeyrek", + "İkinci Çeyrek", + "Üçüncü çeyrek", + "Son çeyrek"] + +}; +var monthValues = { + narrow: [ + "O", + "Ş", + "M", + "N", + "M", + "H", + "T", + "A", + "E", + "E", + "K", + "A"], + + abbreviated: [ + "Oca", + "Şub", + "Mar", + "Nis", + "May", + "Haz", + "Tem", + "Ağu", + "Eyl", + "Eki", + "Kas", + "Ara"], + + wide: [ + "Ocak", + "Şubat", + "Mart", + "Nisan", + "Mayıs", + "Haziran", + "Temmuz", + "Ağustos", + "Eylül", + "Ekim", + "Kasım", + "Aralık"] + +}; +var dayValues = { + narrow: [ + "P", + "P", + "S", + "Ç", + "P", + "C", + "C"], + + short: [ + "Pz", + "Pt", + "Sa", + "Ça", + "Pe", + "Cu", + "Ct"], + + abbreviated: [ + "Paz", + "Pzt", + "Sal", + "Çar", + "Per", + "Cum", + "Cts"], + + wide: [ + "Pazar", + "Pazartesi", + "Salı", + "Çarşamba", + "Perşembe", + "Cuma", + "Cumartesi"] + +}; +var dayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge" + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece" + }, + wide: { + am: "Ö.Ö.", + pm: "Ö.S.", + midnight: "gece yarısı", + noon: "öğle", + morning: "sabah", + afternoon: "öğleden sonra", + evening: "akşam", + night: "gece" + } +}; +var formattingDayPeriodValues = { + narrow: { + am: "öö", + pm: "ös", + midnight: "gy", + noon: "ö", + morning: "sa", + afternoon: "ös", + evening: "ak", + night: "ge" + }, + abbreviated: { + am: "ÖÖ", + pm: "ÖS", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin" + }, + wide: { + am: "ö.ö.", + pm: "ö.s.", + midnight: "gece yarısı", + noon: "öğlen", + morning: "sabahleyin", + afternoon: "öğleden sonra", + evening: "akşamleyin", + night: "geceleyin" + } +}; +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return Number(dirtyNumber) + "."; +}; +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: "wide" + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: "wide", + argumentCallback: function argumentCallback(quarter) {return Number(quarter) - 1;} + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: "wide" + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: "wide" + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: "wide", + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: "wide" + }) +}; +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchFn.js +function buildMatchFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);}); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +function findKey(object, predicate) { + for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key; +} +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key; +} +//#endregion +//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js +function buildMatchPatternFn(args) { + return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} +//#endregion +//#region dist/date-fns/locale/tr.js +/** +* @category Locales +* @summary Turkish locale. +* @language Turkish +* @iso-639-2 tur +* @author Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin) +* @author Berkay Sargın [@berkaey](https://github.com/berkaey) +* @author Fatih Bulut [@bulutfatih](https://github.com/bulutfatih) +* @author Ismail Demirbilek [@dbtek](https://github.com/dbtek) +* @author İsmail Kayar [@ikayar](https://github.com/ikayar) +* +* +*/ +var tr = { + code: "tr", + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: { + ordinalNumber: buildMatchPatternFn({ + matchPattern: /^(\d+)(\.)?/i, + parsePattern: /\d+/i, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i] }, + defaultParseWidth: "any" + }), + quarter: buildMatchFn({ + matchPatterns: { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + any: [ + /1/i, + /2/i, + /3/i, + /4/i], + + abbreviated: [ + /1ç/i, + /2ç/i, + /3ç/i, + /4ç/i], + + wide: [ + /^(i|İ)lk çeyrek/i, + /(i|İ)kinci çeyrek/i, + /üçüncü çeyrek/i, + /son çeyrek/i] + + }, + defaultParseWidth: "any", + valueCallback: function valueCallback(index) {return index + 1;} + }), + month: buildMatchFn({ + matchPatterns: { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^o/i, + /^ş/i, + /^m/i, + /^n/i, + /^m/i, + /^h/i, + /^t/i, + /^a/i, + /^e/i, + /^e/i, + /^k/i, + /^a/i], + + any: [ + /^o/i, + /^ş/i, + /^mar/i, + /^n/i, + /^may/i, + /^h/i, + /^t/i, + /^ağ/i, + /^ey/i, + /^ek/i, + /^k/i, + /^ar/i] + + }, + defaultParseWidth: "any" + }), + day: buildMatchFn({ + matchPatterns: { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i + }, + defaultMatchWidth: "wide", + parsePatterns: { + narrow: [ + /^p/i, + /^p/i, + /^s/i, + /^ç/i, + /^p/i, + /^c/i, + /^c/i], + + any: [ + /^pz/i, + /^pt/i, + /^sa/i, + /^ça/i, + /^pe/i, + /^cu/i, + /^ct/i], + + wide: [ + /^pazar(?!tesi)/i, + /^pazartesi/i, + /^salı/i, + /^çarşamba/i, + /^perşembe/i, + /^cuma(?!rtesi)/i, + /^cumartesi/i] + + }, + defaultParseWidth: "any" + }), + dayPeriod: buildMatchFn({ + matchPatterns: { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i + }, + defaultMatchWidth: "any", + parsePatterns: { any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i + } }, + defaultParseWidth: "any" + }) + }, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +//#endregion +//#region dist/date-fns/_entries/locale/tr/cdn.js +window.dateFns = _objectSpread(_objectSpread({}, +window.dateFns), {}, { + locale: _objectSpread(_objectSpread({}, (_window$dateFns = + window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, { + tr: tr }) }); + + +//#endregion + +console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN"); +})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/cdn.min.js b/node_modules/date-fns/locale/tr/cdn.min.js new file mode 100644 index 000000000..8f03d6504 --- /dev/null +++ b/node_modules/date-fns/locale/tr/cdn.min.js @@ -0,0 +1 @@ +(()=>{function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(e){for(var n=1;n0?r+` sonra`:r+` önce`:r};function c(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var l={date:c({formats:{full:`d MMMM y EEEE`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:c({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:c({formats:{full:`{{date}} 'saat' {{time}}`,long:`{{date}} 'saat' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},u={lastWeek:`'geçen hafta' eeee 'saat' p`,yesterday:`'dün saat' p`,today:`'bugün saat' p`,tomorrow:`'yarın saat' p`,nextWeek:`eeee 'saat' p`,other:`P`},d=function(e,t,n,r){return u[e]};function f(e){return function(t,n){var r=n!=null&&n.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var p={ordinalNumber:function(e,t){return Number(e)+`.`},era:f({values:{narrow:[`MÖ`,`MS`],abbreviated:[`MÖ`,`MS`],wide:[`Milattan Önce`,`Milattan Sonra`]},defaultWidth:`wide`}),quarter:f({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1Ç`,`2Ç`,`3Ç`,`4Ç`],wide:[`İlk çeyrek`,`İkinci Çeyrek`,`Üçüncü çeyrek`,`Son çeyrek`]},defaultWidth:`wide`,argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:[`O`,`Ş`,`M`,`N`,`M`,`H`,`T`,`A`,`E`,`E`,`K`,`A`],abbreviated:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],wide:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`]},defaultWidth:`wide`}),day:f({values:{narrow:[`P`,`P`,`S`,`Ç`,`P`,`C`,`C`],short:[`Pz`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],abbreviated:[`Paz`,`Pzt`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],wide:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`]},defaultWidth:`wide`}),dayPeriod:f({values:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`},wide:{am:`Ö.Ö.`,pm:`Ö.S.`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`},wide:{am:`ö.ö.`,pm:`ö.s.`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`}},defaultFormattingWidth:`wide`})};function m(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?g(s,function(e){return e.test(o)}):h(s,function(e){return e.test(o)}),l=e.valueCallback?e.valueCallback(c):c;l=n.valueCallback?n.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}function h(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function g(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var v={code:`tr`,formatDistance:s,formatLong:l,formatRelative:d,localize:p,match:{ordinalNumber:_({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:m({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:`any`}),quarter:m({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:`any`,valueCallback:function(e){return e+1}}),month:m({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:`any`}),day:m({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:`any`}),dayPeriod:m({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}};window.dateFns=n(n({},window.dateFns),{},{locale:n(n({},window.dateFns?.locale),{},{tr:v})}),console.log(`date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN`)})(); \ No newline at end of file diff --git a/node_modules/date-fns/locale/types.cjs b/node_modules/date-fns/locale/types.cjs new file mode 100644 index 000000000..3918c74e4 --- /dev/null +++ b/node_modules/date-fns/locale/types.cjs @@ -0,0 +1 @@ +"use strict"; diff --git a/node_modules/date-fns/locale/types.d.cts b/node_modules/date-fns/locale/types.d.cts new file mode 100644 index 000000000..4c74aa907 --- /dev/null +++ b/node_modules/date-fns/locale/types.d.cts @@ -0,0 +1,367 @@ +import type { + DateArg, + Day, + Era, + FirstWeekContainsDateOptions, + LocalizedOptions, + Month, + Quarter, + WeekOptions, +} from "../types.ts"; +/** + * The locale object with all functions and data needed to parse and format + * dates. This is what each locale implements and exports. + */ +export interface Locale { + /** The locale code (ISO 639-1 + optional country code) */ + code: string; + /** The function to format distance */ + formatDistance: FormatDistanceFn; + /** The function to relative time */ + formatRelative: FormatRelativeFn; + /** The object with functions used to localize various values */ + localize: Localize; + /** The object with functions that return localized formats */ + formatLong: FormatLong; + /** The object with functions used to match and parse various localized values */ + match: Match; + /** An object with locale options */ + options?: LocaleOptions; +} +/** + * The locale options. + */ +export interface LocaleOptions + extends WeekOptions, + FirstWeekContainsDateOptions {} +/** + * The function that takes a token (i.e. halfAMinute) passed by `formatDistance` + * or `formatDistanceStrict` and payload, and returns localized distance. + * + * @param token - The token to localize + * @param count - The distance number + * @param options - The object with options + * + * @returns The localized distance in words + */ +export type FormatDistanceFn = ( + token: FormatDistanceToken, + count: number, + options?: FormatDistanceFnOptions, +) => string; +/** + * The {@link FormatDistanceFn} function options. + */ +export interface FormatDistanceFnOptions { + /** Add "X ago"/"in X" in the locale language */ + addSuffix?: boolean; + /** The distance vector. -1 represents past and 1 future. Tells which suffix + * to use. */ + comparison?: -1 | 0 | 1; +} +/** + * The function used inside the {@link FormatDistanceFn} function, implementing + * formatting for a particular token. + */ +export type FormatDistanceTokenFn = ( + /** The distance as number to format */ + count: number, + /** The object with options */ + options?: FormatDistanceFnOptions, +) => string; +/** + * The tokens map to string templates used in the format distance function. + * It looks like this: + * + * const formatDistanceLocale: FormatDistanceLocale = { + * lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', + * xSeconds: '{{count}} វិនាទី', + * // ... + * } + * + * @typeParam Template - The property value type. + */ +export type FormatDistanceLocale